@chrisjowen/wheelhouse 0.16.0 → 0.16.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 (375) hide show
  1. package/build/client/_app/immutable/chunks/{Bpoe0kdM.js → -PxedOl8.js} +1 -1
  2. package/build/client/_app/immutable/chunks/-PxedOl8.js.br +0 -0
  3. package/build/client/_app/immutable/chunks/-PxedOl8.js.gz +0 -0
  4. package/build/client/_app/immutable/chunks/{CIXD8yUP.js → 8PhaMXz9.js} +1 -1
  5. package/build/client/_app/immutable/chunks/8PhaMXz9.js.br +0 -0
  6. package/build/client/_app/immutable/chunks/8PhaMXz9.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/{CGKMBwQH.js → BP2Qtph5.js} +1 -1
  8. package/build/client/_app/immutable/chunks/BP2Qtph5.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/BP2Qtph5.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/{kQFtkWpw.js → BaV2UMay.js} +1 -1
  11. package/build/client/_app/immutable/chunks/BaV2UMay.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/BaV2UMay.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/{CV9fVJKz.js → C237xJzy.js} +1 -1
  14. package/build/client/_app/immutable/chunks/C237xJzy.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/C237xJzy.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/{01zSWHgS.js → CFyednqY.js} +1 -1
  17. package/build/client/_app/immutable/chunks/CFyednqY.js.br +3 -0
  18. package/build/client/_app/immutable/chunks/CFyednqY.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/{DN_cUEc5.js → CI38zzdF.js} +1 -1
  20. package/build/client/_app/immutable/chunks/CI38zzdF.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/CI38zzdF.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/{BTAHFHcI.js → CIDO3V-e.js} +1 -1
  23. package/build/client/_app/immutable/chunks/CIDO3V-e.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/CIDO3V-e.js.gz +0 -0
  25. package/build/client/_app/immutable/chunks/{_xQwGlKC.js → CLj8aQLL.js} +1 -1
  26. package/build/client/_app/immutable/chunks/CLj8aQLL.js.br +0 -0
  27. package/build/client/_app/immutable/chunks/CLj8aQLL.js.gz +0 -0
  28. package/build/client/_app/immutable/chunks/{CvBYM8q3.js → CXqiEZDa.js} +1 -1
  29. package/build/client/_app/immutable/chunks/CXqiEZDa.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/CXqiEZDa.js.gz +0 -0
  31. package/build/client/_app/immutable/chunks/{-VKim-Eb.js → CYD68e6V.js} +1 -1
  32. package/build/client/_app/immutable/chunks/CYD68e6V.js.br +0 -0
  33. package/build/client/_app/immutable/chunks/CYD68e6V.js.gz +0 -0
  34. package/build/client/_app/immutable/chunks/{BNqm5dMM.js → CejLiPvM.js} +2 -2
  35. package/build/client/_app/immutable/chunks/CejLiPvM.js.br +0 -0
  36. package/build/client/_app/immutable/chunks/CejLiPvM.js.gz +0 -0
  37. package/build/client/_app/immutable/chunks/{D3U8nDaU.js → CnNJ9y58.js} +1 -1
  38. package/build/client/_app/immutable/chunks/CnNJ9y58.js.br +0 -0
  39. package/build/client/_app/immutable/chunks/CnNJ9y58.js.gz +0 -0
  40. package/build/client/_app/immutable/chunks/{DvvdbrXj.js → Cx2pfZgS.js} +1 -1
  41. package/build/client/_app/immutable/chunks/Cx2pfZgS.js.br +0 -0
  42. package/build/client/_app/immutable/chunks/Cx2pfZgS.js.gz +0 -0
  43. package/build/client/_app/immutable/chunks/{l1ecpO65.js → DF5qBysY.js} +1 -1
  44. package/build/client/_app/immutable/chunks/DF5qBysY.js.br +0 -0
  45. package/build/client/_app/immutable/chunks/DF5qBysY.js.gz +0 -0
  46. package/build/client/_app/immutable/chunks/{D62zkI9j.js → DKuj2J54.js} +1 -1
  47. package/build/client/_app/immutable/chunks/DKuj2J54.js.br +0 -0
  48. package/build/client/_app/immutable/chunks/DKuj2J54.js.gz +0 -0
  49. package/build/client/_app/immutable/chunks/{Crqp6P7x.js → DwipL_Cn.js} +1 -1
  50. package/build/client/_app/immutable/chunks/DwipL_Cn.js.br +0 -0
  51. package/build/client/_app/immutable/chunks/DwipL_Cn.js.gz +0 -0
  52. package/build/client/_app/immutable/chunks/{Bm5t_TcQ.js → _wNDtuC3.js} +1 -1
  53. package/build/client/_app/immutable/chunks/_wNDtuC3.js.br +0 -0
  54. package/build/client/_app/immutable/chunks/_wNDtuC3.js.gz +0 -0
  55. package/build/client/_app/immutable/chunks/{BOuuGRjG.js → eaKSEJEz.js} +1 -1
  56. package/build/client/_app/immutable/chunks/eaKSEJEz.js.br +0 -0
  57. package/build/client/_app/immutable/chunks/eaKSEJEz.js.gz +0 -0
  58. package/build/client/_app/immutable/chunks/{CVuE8Mrz.js → yB7gO-LO.js} +1 -1
  59. package/build/client/_app/immutable/chunks/yB7gO-LO.js.br +0 -0
  60. package/build/client/_app/immutable/chunks/yB7gO-LO.js.gz +0 -0
  61. package/build/client/_app/immutable/entry/{app.CnyVl7c2.js → app.BOOXafZJ.js} +2 -2
  62. package/build/client/_app/immutable/entry/app.BOOXafZJ.js.br +0 -0
  63. package/build/client/_app/immutable/entry/app.BOOXafZJ.js.gz +0 -0
  64. package/build/client/_app/immutable/entry/start.C3VwH72E.js +1 -0
  65. package/build/client/_app/immutable/entry/start.C3VwH72E.js.br +0 -0
  66. package/build/client/_app/immutable/entry/start.C3VwH72E.js.gz +0 -0
  67. package/build/client/_app/immutable/nodes/{0.8GFbRTop.js → 0.py9DNAwX.js} +1 -1
  68. package/build/client/_app/immutable/nodes/0.py9DNAwX.js.br +0 -0
  69. package/build/client/_app/immutable/nodes/0.py9DNAwX.js.gz +0 -0
  70. package/build/client/_app/immutable/nodes/{1.B7dgllIV.js → 1.CLi5bKEj.js} +1 -1
  71. package/build/client/_app/immutable/nodes/1.CLi5bKEj.js.br +0 -0
  72. package/build/client/_app/immutable/nodes/1.CLi5bKEj.js.gz +0 -0
  73. package/build/client/_app/immutable/nodes/{10.Bg5oK9sw.js → 10.yQfIVnsR.js} +1 -1
  74. package/build/client/_app/immutable/nodes/10.yQfIVnsR.js.br +0 -0
  75. package/build/client/_app/immutable/nodes/10.yQfIVnsR.js.gz +0 -0
  76. package/build/client/_app/immutable/nodes/{11.DYPka59n.js → 11.B0fQm_d5.js} +1 -1
  77. package/build/client/_app/immutable/nodes/11.B0fQm_d5.js.br +0 -0
  78. package/build/client/_app/immutable/nodes/11.B0fQm_d5.js.gz +0 -0
  79. package/build/client/_app/immutable/nodes/{12.B6I0GxaX.js → 12.DobuoNGx.js} +1 -1
  80. package/build/client/_app/immutable/nodes/12.DobuoNGx.js.br +0 -0
  81. package/build/client/_app/immutable/nodes/12.DobuoNGx.js.gz +0 -0
  82. package/build/client/_app/immutable/nodes/{13.HNCDjm9L.js → 13.DrO72J_j.js} +1 -1
  83. package/build/client/_app/immutable/nodes/13.DrO72J_j.js.br +0 -0
  84. package/build/client/_app/immutable/nodes/13.DrO72J_j.js.gz +0 -0
  85. package/build/client/_app/immutable/nodes/{14.Dm2jB_N0.js → 14.B9bNPNMC.js} +1 -1
  86. package/build/client/_app/immutable/nodes/14.B9bNPNMC.js.br +0 -0
  87. package/build/client/_app/immutable/nodes/14.B9bNPNMC.js.gz +0 -0
  88. package/build/client/_app/immutable/nodes/{15.DnSRUIFM.js → 15.0P3R4toY.js} +1 -1
  89. package/build/client/_app/immutable/nodes/15.0P3R4toY.js.br +0 -0
  90. package/build/client/_app/immutable/nodes/15.0P3R4toY.js.gz +0 -0
  91. package/build/client/_app/immutable/nodes/{16.BEJtiT-C.js → 16.BnUrhlYC.js} +1 -1
  92. package/build/client/_app/immutable/nodes/16.BnUrhlYC.js.br +0 -0
  93. package/build/client/_app/immutable/nodes/16.BnUrhlYC.js.gz +0 -0
  94. package/build/client/_app/immutable/nodes/{17.BJgcp0oo.js → 17.CHTdkvmi.js} +1 -1
  95. package/build/client/_app/immutable/nodes/17.CHTdkvmi.js.br +0 -0
  96. package/build/client/_app/immutable/nodes/17.CHTdkvmi.js.gz +0 -0
  97. package/build/client/_app/immutable/nodes/{19.BxG6SINq.js → 19.BqId6Q50.js} +1 -1
  98. package/build/client/_app/immutable/nodes/19.BqId6Q50.js.br +0 -0
  99. package/build/client/_app/immutable/nodes/19.BqId6Q50.js.gz +0 -0
  100. package/build/client/_app/immutable/nodes/{2.CQlQaA3F.js → 2.CEJmYaPJ.js} +1 -1
  101. package/build/client/_app/immutable/nodes/2.CEJmYaPJ.js.br +0 -0
  102. package/build/client/_app/immutable/nodes/2.CEJmYaPJ.js.gz +0 -0
  103. package/build/client/_app/immutable/nodes/{20.CRi-FHPN.js → 20.CHH39Z2Z.js} +1 -1
  104. package/build/client/_app/immutable/nodes/20.CHH39Z2Z.js.br +0 -0
  105. package/build/client/_app/immutable/nodes/20.CHH39Z2Z.js.gz +0 -0
  106. package/build/client/_app/immutable/nodes/{21.f5SleuvG.js → 21.CbnS5dV1.js} +1 -1
  107. package/build/client/_app/immutable/nodes/21.CbnS5dV1.js.br +0 -0
  108. package/build/client/_app/immutable/nodes/21.CbnS5dV1.js.gz +0 -0
  109. package/build/client/_app/immutable/nodes/{22.DNrAQQXU.js → 22.malZaF0r.js} +1 -1
  110. package/build/client/_app/immutable/nodes/22.malZaF0r.js.br +0 -0
  111. package/build/client/_app/immutable/nodes/22.malZaF0r.js.gz +0 -0
  112. package/build/client/_app/immutable/nodes/{23.D6Fe2Mdx.js → 23.B-MnoGp_.js} +1 -1
  113. package/build/client/_app/immutable/nodes/23.B-MnoGp_.js.br +0 -0
  114. package/build/client/_app/immutable/nodes/23.B-MnoGp_.js.gz +0 -0
  115. package/build/client/_app/immutable/nodes/{24.C56ldwPz.js → 24.D4YfUDkp.js} +1 -1
  116. package/build/client/_app/immutable/nodes/24.D4YfUDkp.js.br +0 -0
  117. package/build/client/_app/immutable/nodes/24.D4YfUDkp.js.gz +0 -0
  118. package/build/client/_app/immutable/nodes/{25.DZ4DThMl.js → 25.CGUyx5gm.js} +1 -1
  119. package/build/client/_app/immutable/nodes/25.CGUyx5gm.js.br +0 -0
  120. package/build/client/_app/immutable/nodes/25.CGUyx5gm.js.gz +0 -0
  121. package/build/client/_app/immutable/nodes/{26.C1eMf9Tn.js → 26.CSoLyIuT.js} +1 -1
  122. package/build/client/_app/immutable/nodes/26.CSoLyIuT.js.br +0 -0
  123. package/build/client/_app/immutable/nodes/26.CSoLyIuT.js.gz +0 -0
  124. package/build/client/_app/immutable/nodes/{28.ByjDiuDk.js → 28.CnDXbxut.js} +1 -1
  125. package/build/client/_app/immutable/nodes/28.CnDXbxut.js.br +0 -0
  126. package/build/client/_app/immutable/nodes/28.CnDXbxut.js.gz +0 -0
  127. package/build/client/_app/immutable/nodes/{3.Dw9t6bnq.js → 3.7M8y-hh1.js} +1 -1
  128. package/build/client/_app/immutable/nodes/3.7M8y-hh1.js.br +0 -0
  129. package/build/client/_app/immutable/nodes/3.7M8y-hh1.js.gz +0 -0
  130. package/build/client/_app/immutable/nodes/{4.C-Vhe6qo.js → 4.C-_GUkXF.js} +1 -1
  131. package/build/client/_app/immutable/nodes/4.C-_GUkXF.js.br +0 -0
  132. package/build/client/_app/immutable/nodes/4.C-_GUkXF.js.gz +0 -0
  133. package/build/client/_app/immutable/nodes/{6.-GosPZsI.js → 6.BtFuhrhK.js} +1 -1
  134. package/build/client/_app/immutable/nodes/6.BtFuhrhK.js.br +0 -0
  135. package/build/client/_app/immutable/nodes/6.BtFuhrhK.js.gz +0 -0
  136. package/build/client/_app/immutable/nodes/{7.D5C714Zn.js → 7.YcUXbAew.js} +1 -1
  137. package/build/client/_app/immutable/nodes/7.YcUXbAew.js.br +0 -0
  138. package/build/client/_app/immutable/nodes/7.YcUXbAew.js.gz +0 -0
  139. package/build/client/_app/immutable/nodes/{8.CBl3BgIN.js → 8.DsZ8ckdf.js} +1 -1
  140. package/build/client/_app/immutable/nodes/8.DsZ8ckdf.js.br +0 -0
  141. package/build/client/_app/immutable/nodes/8.DsZ8ckdf.js.gz +0 -0
  142. package/build/client/_app/immutable/nodes/{9.flfI1cr8.js → 9.C_to2yZ7.js} +1 -1
  143. package/build/client/_app/immutable/nodes/9.C_to2yZ7.js.br +0 -0
  144. package/build/client/_app/immutable/nodes/9.C_to2yZ7.js.gz +0 -0
  145. package/build/client/_app/version.json +1 -1
  146. package/build/client/_app/version.json.br +0 -0
  147. package/build/client/_app/version.json.gz +0 -0
  148. package/build/handler.js +4 -4
  149. package/build/index.js +4 -4
  150. package/build/server/chunks/chunks/{detail.js-D_HFAT2R.js → detail.js-C63yRaSC.js} +2 -2
  151. package/build/server/chunks/chunks/{feedback.js-DFn0QGh9.js → feedback.js-CoDUWcj9.js} +2 -2
  152. package/build/server/chunks/chunks/{internal.js-CGSGg70w.js → internal.js-DRYzzYai.js} +3 -3
  153. package/build/server/chunks/chunks/{keychain.js-DWxqf9BG.js → keychain.js-B__X3k_t.js} +2 -2
  154. package/build/server/chunks/chunks/{marketplace-service.js-DFXVn_eQ.js → marketplace-service.js-C0HaauhN.js} +2 -2
  155. package/build/server/chunks/chunks/{page.js-BtTVbG0k.js → page.js-duntsJGm.js} +2 -2
  156. package/build/server/chunks/chunks/{previewhelper2.js-DYr_o-vO.js → previewhelper2.js-KYHlnmkc.js} +2 -2
  157. package/build/server/chunks/chunks/{repo.js-Dv-yIN8Y.js → repo.js-BuqHotOZ.js} +2 -2
  158. package/build/server/chunks/chunks/{runtime.js-CUYCZ2fw.js → runtime.js-r5K-2IqO.js} +93 -31
  159. package/build/server/chunks/chunks/{service.js-F86ETkjI.js → service.js-DhsbI-7z.js} +2 -2
  160. package/build/server/chunks/chunks/{service2.js-DFBl79w6.js → service2.js-DtkDw6vU.js} +2 -2
  161. package/build/server/chunks/chunks/{starter.js-jUCQlAAZ.js → starter.js-7_g91123.js} +2 -2
  162. package/build/server/chunks/chunks/{view.js-De80u4gl.js → view.js-DsUz24Rz.js} +2 -2
  163. package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-D_B7_i9Y.js → _server.ts.js-Xzvf5h6k.js} +3 -3
  164. package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-lvLHkipj.js → _server.ts.js-CGAcwpTU.js} +3 -3
  165. package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-BtwM6kge.js → _server.ts.js-B58Bz7g3.js} +3 -3
  166. package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-AZw0MiM5.js → _server.ts.js-CnBeqc-z.js} +3 -3
  167. package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-CapjdAiy.js → _server.ts.js-BBm-d7Q_.js} +3 -3
  168. package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-D5CXnG6E.js → _server.ts.js-CMM6ufeL.js} +3 -3
  169. package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-DtTX-IQ0.js → _server.ts.js-DVh0xnbz.js} +3 -3
  170. package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-CZOvv2M2.js → _server.ts.js-B6rsXvtL.js} +3 -3
  171. package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-DtLM2nDS.js → _server.ts.js-BcnbVb8B.js} +3 -3
  172. package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-RuBXxm8l.js → _server.ts.js-B2vtZDSn.js} +3 -3
  173. package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-K1lv6lDp.js → _server.ts.js-CqZYPGnv.js} +3 -3
  174. package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-CUKrxHEz.js → _server.ts.js-DyvHq1QM.js} +3 -3
  175. package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-Bf2HCJA6.js → _server.ts.js-CkQOGcx8.js} +3 -3
  176. package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-D5wImb85.js → _server.ts.js-NlWKPhvj.js} +3 -3
  177. package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-COxUDh66.js → _server.ts.js-CGqQFYCY.js} +3 -3
  178. package/build/server/chunks/entries/endpoints/api/gateway/{_server.ts.js-BIdX1HqN.js → _server.ts.js-9kdSlog2.js} +3 -3
  179. package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-Xgbc9XA2.js → _server.ts.js-BmX4U6It.js} +3 -3
  180. package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-nHm2J-sv.js → _server.ts.js-DGgwPazr.js} +3 -3
  181. package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-C8wbe2uN.js → _server.ts.js-BhlPv4sX.js} +3 -3
  182. package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-BtcTcgkS.js → _server.ts.js-CBv70Y5L.js} +3 -3
  183. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-KANrega5.js → _server.ts.js-ZFjBkYRX.js} +3 -3
  184. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-CHTJXjZq.js → _server.ts.js-Dye0RV5S.js} +4 -4
  185. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-DZZ7jsff.js → _server.ts.js-R01322_G.js} +5 -5
  186. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-DmBrST5y.js → _server.ts.js-D9D-pKLW.js} +3 -3
  187. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-DcjaF46g.js → _server.ts.js-bsKmmR9t.js} +2 -2
  188. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-8zoDyrl2.js → _server.ts.js-KvMFVmRQ.js} +3 -3
  189. package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-DCRHbkLC.js → _server.ts.js-otZqZBEm.js} +2 -2
  190. package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-CsI1UOHt.js → _server.ts.js-BYHIZAYi.js} +3 -3
  191. package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-DWbYekhb.js → _server.ts.js-BpZ3GTwz.js} +2 -2
  192. package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-AXCutY-U.js → _server.ts.js-Cl9zK50Z.js} +2 -2
  193. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-CFXMktEA.js → _server.ts.js-BGPTLoZC.js} +4 -4
  194. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-Cy05NfhF.js → _server.ts.js-BVB932SW.js} +4 -4
  195. package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/{_server.ts.js-DQqqgWKo.js → _server.ts.js-D82HBSqM.js} +4 -4
  196. package/build/server/chunks/entries/endpoints/api/plugins/roles/{_server.ts.js-B79S5asG.js → _server.ts.js-CMSUPmoz.js} +3 -3
  197. package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-Thl2IcAK.js → _server.ts.js-DgYB9fQH.js} +2 -2
  198. package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-B_k324Tr.js → _server.ts.js-D87d2rZ_.js} +3 -3
  199. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-CIxhoBpL.js → _server.ts.js-KhwSPgmC.js} +4 -4
  200. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-O9x_13pZ.js → _server.ts.js-DZW5ka2V.js} +4 -4
  201. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-DEgzcDqe.js → _server.ts.js-BNTbARpk.js} +4 -4
  202. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-BSjtrwJd.js → _server.ts.js-DOrtYzqZ.js} +4 -4
  203. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-BUurWySt.js → _server.ts.js-CUr8NM7B.js} +4 -4
  204. package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js-D3Pa9Duf.js → _server.ts.js-2EJ0pusQ.js} +4 -4
  205. package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-CgHOXKL2.js → _server.ts.js-CElRDR1Y.js} +3 -3
  206. package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-Bvp43GRW.js → _server.ts.js-DnOLyc7Y.js} +3 -3
  207. package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-Cg2r7zrS.js → _server.ts.js-CWMcwyIE.js} +4 -4
  208. package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-BFb5QbZV.js → _server.ts.js-CG5PhG0B.js} +3 -3
  209. package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-DhUkYscn.js → _server.ts.js-BaglzvAu.js} +4 -4
  210. package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-Dq7FA9oT.js → _server.ts.js-B-Etpm4f.js} +3 -3
  211. package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-BMvUuQBd.js → _server.ts.js-Bi4V_zBg.js} +3 -3
  212. package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-Dg5StgV_.js → _server.ts.js-BL8YDwGM.js} +3 -3
  213. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-CiHZBBZf.js → _server.ts.js-Be6htkUX.js} +3 -3
  214. package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-NFGa62rx.js → _server.ts.js-D6RTMJ5Z.js} +4 -4
  215. package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-ZazsNjR_.js → _server.ts.js-C-MF_p4N.js} +3 -3
  216. package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-Dhn50zd_.js → _server.ts.js-DH3NxauC.js} +2 -2
  217. package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-DQaOoYAD.js → _server.ts.js-Cyptrvpa.js} +2 -2
  218. package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-C2YczFvz.js → _server.ts.js-zslRlgO8.js} +2 -2
  219. package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-gs8qidIj.js → _server.ts.js-BawOwof0.js} +3 -3
  220. package/build/server/chunks/entries/{hooks.server.js-DYlKpcCn.js → hooks.server.js-DoSFsv-T.js} +3 -3
  221. package/build/server/chunks/entries/pages/{_layout.server.ts.js-XDkbdDnv.js → _layout.server.ts.js-Be39BJt8.js} +2 -2
  222. package/build/server/chunks/entries/pages/{_page.server.ts.js-Df8OWu0u.js → _page.server.ts.js-BP0lx7aM.js} +2 -2
  223. package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-6dqY7i4n.js → _page.server.ts.js-C_gST4Ql.js} +2 -2
  224. package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-BcgWass3.js → _page.server.ts.js-BmoQQEUP.js} +2 -2
  225. package/build/server/chunks/entries/pages/files/{_page.server.ts.js-DlAHIttA.js → _page.server.ts.js-CnW58Q1_.js} +2 -2
  226. package/build/server/chunks/entries/pages/harbour/{_page.server.ts.js-ttP7EjYb.js → _page.server.ts.js-IwVthdWl.js} +2 -2
  227. package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-CIRdCAak.js → _page.server.ts.js-BNwH-NUG.js} +2 -2
  228. package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-5fpuQdmf.js → _page.server.ts.js-Xn2rpOlN.js} +2 -2
  229. package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-BqCys3fk.js → _page.server.ts.js-D9oc4Zbv.js} +2 -2
  230. package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-D2cX34De.js → _page.server.ts.js-B8XcaDI6.js} +3 -3
  231. package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-CHcG1ZY_.js → _page.server.ts.js-9PxhdtRJ.js} +3 -3
  232. package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-D9iYBYt8.js → _page.server.ts.js-DRw5dO8q.js} +4 -4
  233. package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-DSfSLIgw.js → _page.server.ts.js-9h5x_BlZ.js} +2 -2
  234. package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-D0Z4vRAZ.js → _page.server.ts.js-DjYOr7fW.js} +2 -2
  235. package/build/server/chunks/entries/pages/settings/cloud/{_page.server.ts.js-C_n0FEhO.js → _page.server.ts.js-DAG7EeWI.js} +2 -2
  236. package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-CJiUzhR7.js → _page.server.ts.js-CF7Pq68d.js} +2 -2
  237. package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-CLBcpfCA.js → _page.server.ts.js-BcUQwg4K.js} +2 -2
  238. package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-BFQ4GDtX.js → _page.server.ts.js-BRBNSxOW.js} +2 -2
  239. package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-mh9uyV2P.js → _page.server.ts.js-CWdA2rpo.js} +2 -2
  240. package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-DlrL-7uB.js → _page.server.ts.js-Ddip-Rpl.js} +2 -2
  241. package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-DI4L_wuh.js → _page.server.ts.js-BeaxanMx.js} +3 -3
  242. package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-CvW38tDM.js → _page.server.ts.js-C_hg-0na.js} +3 -3
  243. package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-Db9ngKZm.js → _page.server.ts.js-DJFCXtwU.js} +2 -2
  244. package/build/server/chunks/entries/pages/time/{_page.server.ts.js-DaUxp622.js → _page.server.ts.js-BPudgjHm.js} +2 -2
  245. package/build/server/chunks/{handler-DuE9inyi.js → handler-BCGgzMNK.js} +3 -3
  246. package/build/server/chunks/{index.js-v6NQYBK5.js → index.js-D3B2sWMy.js} +2 -2
  247. package/build/server/chunks/{manifest.js-C-BasyGm.js → manifest.js-wJn9bmrp.js} +87 -87
  248. package/build/server/chunks/nodes/{0.js-CkGqrpTr.js → 0.js-zlZLRzvM.js} +5 -5
  249. package/build/server/chunks/nodes/{1.js-DPvN_CLJ.js → 1.js--1gHO-TC.js} +2 -2
  250. package/build/server/chunks/nodes/{10.js-BJnSBLIC.js → 10.js-R4llf3g7.js} +2 -2
  251. package/build/server/chunks/nodes/{11.js-jTPdk8pR.js → 11.js-Nz-YFyz6.js} +5 -5
  252. package/build/server/chunks/nodes/{12.js-CO7t1TeY.js → 12.js-BFoN1hdZ.js} +6 -6
  253. package/build/server/chunks/nodes/{13.js-BLvOGglK.js → 13.js-C7uxCJSk.js} +6 -6
  254. package/build/server/chunks/nodes/{14.js-CeAXlMCF.js → 14.js-KjfLhRwn.js} +7 -7
  255. package/build/server/chunks/nodes/{15.js-PpPpmDDu.js → 15.js-DbvBUigb.js} +6 -6
  256. package/build/server/chunks/nodes/{16.js-CuhrVsHH.js → 16.js-C0p6-_Wc.js} +6 -6
  257. package/build/server/chunks/nodes/{17.js-CokOaMn3.js → 17.js-OgyjPP8E.js} +2 -2
  258. package/build/server/chunks/nodes/{19.js-B0hnu-OJ.js → 19.js-CjveYWJd.js} +6 -6
  259. package/build/server/chunks/nodes/{2.js-Br8oRykT.js → 2.js-DBCmgKJ3.js} +5 -5
  260. package/build/server/chunks/nodes/{20.js-SER2nvxc.js → 20.js-BO7QgmVR.js} +5 -5
  261. package/build/server/chunks/nodes/{21.js-R5Vlv7DW.js → 21.js-D1siyorn.js} +5 -5
  262. package/build/server/chunks/nodes/{22.js-c2XCaRat.js → 22.js-BOJevTr3.js} +5 -5
  263. package/build/server/chunks/nodes/{23.js-BTZOfMOZ.js → 23.js-By7E4CPh.js} +6 -6
  264. package/build/server/chunks/nodes/{24.js-D-FLfvVz.js → 24.js-CpltmZ68.js} +4 -4
  265. package/build/server/chunks/nodes/{25.js-U6Wy5W2D.js → 25.js-lcZJHDCG.js} +6 -6
  266. package/build/server/chunks/nodes/{26.js-BQMRBWsE.js → 26.js-BeZ6lpoO.js} +6 -6
  267. package/build/server/chunks/nodes/{27.js-DpDWMG3J.js → 27.js-CLYqG4lL.js} +5 -5
  268. package/build/server/chunks/nodes/{28.js-EI5OlQC1.js → 28.js-CBfIHgUg.js} +5 -5
  269. package/build/server/chunks/nodes/{3.js-CO7rtIdb.js → 3.js-Bi0cxlWn.js} +5 -5
  270. package/build/server/chunks/nodes/{4.js-D-AgbO-p.js → 4.js-BzCAFdWl.js} +5 -5
  271. package/build/server/chunks/nodes/{5.js-BgkAAZis.js → 5.js-CaYpi43a.js} +4 -4
  272. package/build/server/chunks/nodes/{6.js-DX-_LVTg.js → 6.js-DiorXbJJ.js} +5 -5
  273. package/build/server/chunks/nodes/{7.js-DuuPTzmE.js → 7.js-CP1Kjbql.js} +5 -5
  274. package/build/server/chunks/nodes/{8.js-C5KCp3j1.js → 8.js-BuPd1Oz6.js} +5 -5
  275. package/build/server/chunks/nodes/{9.js-DMV1P9qA.js → 9.js-Djv-sGNi.js} +2 -2
  276. package/dist/cli.js +1 -1
  277. package/dist/wh-vault.js +1 -1
  278. package/package.json +1 -1
  279. package/build/client/_app/immutable/chunks/-VKim-Eb.js.br +0 -0
  280. package/build/client/_app/immutable/chunks/-VKim-Eb.js.gz +0 -0
  281. package/build/client/_app/immutable/chunks/01zSWHgS.js.br +0 -1
  282. package/build/client/_app/immutable/chunks/01zSWHgS.js.gz +0 -0
  283. package/build/client/_app/immutable/chunks/BNqm5dMM.js.br +0 -0
  284. package/build/client/_app/immutable/chunks/BNqm5dMM.js.gz +0 -0
  285. package/build/client/_app/immutable/chunks/BOuuGRjG.js.br +0 -0
  286. package/build/client/_app/immutable/chunks/BOuuGRjG.js.gz +0 -0
  287. package/build/client/_app/immutable/chunks/BTAHFHcI.js.br +0 -0
  288. package/build/client/_app/immutable/chunks/BTAHFHcI.js.gz +0 -0
  289. package/build/client/_app/immutable/chunks/Bm5t_TcQ.js.br +0 -0
  290. package/build/client/_app/immutable/chunks/Bm5t_TcQ.js.gz +0 -0
  291. package/build/client/_app/immutable/chunks/Bpoe0kdM.js.br +0 -0
  292. package/build/client/_app/immutable/chunks/Bpoe0kdM.js.gz +0 -0
  293. package/build/client/_app/immutable/chunks/CGKMBwQH.js.br +0 -0
  294. package/build/client/_app/immutable/chunks/CGKMBwQH.js.gz +0 -0
  295. package/build/client/_app/immutable/chunks/CIXD8yUP.js.br +0 -4
  296. package/build/client/_app/immutable/chunks/CIXD8yUP.js.gz +0 -0
  297. package/build/client/_app/immutable/chunks/CV9fVJKz.js.br +0 -0
  298. package/build/client/_app/immutable/chunks/CV9fVJKz.js.gz +0 -0
  299. package/build/client/_app/immutable/chunks/CVuE8Mrz.js.br +0 -0
  300. package/build/client/_app/immutable/chunks/CVuE8Mrz.js.gz +0 -0
  301. package/build/client/_app/immutable/chunks/Crqp6P7x.js.br +0 -0
  302. package/build/client/_app/immutable/chunks/Crqp6P7x.js.gz +0 -0
  303. package/build/client/_app/immutable/chunks/CvBYM8q3.js.br +0 -0
  304. package/build/client/_app/immutable/chunks/CvBYM8q3.js.gz +0 -0
  305. package/build/client/_app/immutable/chunks/D3U8nDaU.js.br +0 -0
  306. package/build/client/_app/immutable/chunks/D3U8nDaU.js.gz +0 -0
  307. package/build/client/_app/immutable/chunks/D62zkI9j.js.br +0 -0
  308. package/build/client/_app/immutable/chunks/D62zkI9j.js.gz +0 -0
  309. package/build/client/_app/immutable/chunks/DN_cUEc5.js.br +0 -0
  310. package/build/client/_app/immutable/chunks/DN_cUEc5.js.gz +0 -0
  311. package/build/client/_app/immutable/chunks/DvvdbrXj.js.br +0 -0
  312. package/build/client/_app/immutable/chunks/DvvdbrXj.js.gz +0 -0
  313. package/build/client/_app/immutable/chunks/_xQwGlKC.js.br +0 -0
  314. package/build/client/_app/immutable/chunks/_xQwGlKC.js.gz +0 -0
  315. package/build/client/_app/immutable/chunks/kQFtkWpw.js.br +0 -0
  316. package/build/client/_app/immutable/chunks/kQFtkWpw.js.gz +0 -0
  317. package/build/client/_app/immutable/chunks/l1ecpO65.js.br +0 -0
  318. package/build/client/_app/immutable/chunks/l1ecpO65.js.gz +0 -0
  319. package/build/client/_app/immutable/entry/app.CnyVl7c2.js.br +0 -0
  320. package/build/client/_app/immutable/entry/app.CnyVl7c2.js.gz +0 -0
  321. package/build/client/_app/immutable/entry/start.DTz_QGqw.js +0 -1
  322. package/build/client/_app/immutable/entry/start.DTz_QGqw.js.br +0 -0
  323. package/build/client/_app/immutable/entry/start.DTz_QGqw.js.gz +0 -0
  324. package/build/client/_app/immutable/nodes/0.8GFbRTop.js.br +0 -0
  325. package/build/client/_app/immutable/nodes/0.8GFbRTop.js.gz +0 -0
  326. package/build/client/_app/immutable/nodes/1.B7dgllIV.js.br +0 -0
  327. package/build/client/_app/immutable/nodes/1.B7dgllIV.js.gz +0 -0
  328. package/build/client/_app/immutable/nodes/10.Bg5oK9sw.js.br +0 -0
  329. package/build/client/_app/immutable/nodes/10.Bg5oK9sw.js.gz +0 -0
  330. package/build/client/_app/immutable/nodes/11.DYPka59n.js.br +0 -0
  331. package/build/client/_app/immutable/nodes/11.DYPka59n.js.gz +0 -0
  332. package/build/client/_app/immutable/nodes/12.B6I0GxaX.js.br +0 -0
  333. package/build/client/_app/immutable/nodes/12.B6I0GxaX.js.gz +0 -0
  334. package/build/client/_app/immutable/nodes/13.HNCDjm9L.js.br +0 -0
  335. package/build/client/_app/immutable/nodes/13.HNCDjm9L.js.gz +0 -0
  336. package/build/client/_app/immutable/nodes/14.Dm2jB_N0.js.br +0 -0
  337. package/build/client/_app/immutable/nodes/14.Dm2jB_N0.js.gz +0 -0
  338. package/build/client/_app/immutable/nodes/15.DnSRUIFM.js.br +0 -0
  339. package/build/client/_app/immutable/nodes/15.DnSRUIFM.js.gz +0 -0
  340. package/build/client/_app/immutable/nodes/16.BEJtiT-C.js.br +0 -0
  341. package/build/client/_app/immutable/nodes/16.BEJtiT-C.js.gz +0 -0
  342. package/build/client/_app/immutable/nodes/17.BJgcp0oo.js.br +0 -0
  343. package/build/client/_app/immutable/nodes/17.BJgcp0oo.js.gz +0 -0
  344. package/build/client/_app/immutable/nodes/19.BxG6SINq.js.br +0 -0
  345. package/build/client/_app/immutable/nodes/19.BxG6SINq.js.gz +0 -0
  346. package/build/client/_app/immutable/nodes/2.CQlQaA3F.js.br +0 -0
  347. package/build/client/_app/immutable/nodes/2.CQlQaA3F.js.gz +0 -0
  348. package/build/client/_app/immutable/nodes/20.CRi-FHPN.js.br +0 -0
  349. package/build/client/_app/immutable/nodes/20.CRi-FHPN.js.gz +0 -0
  350. package/build/client/_app/immutable/nodes/21.f5SleuvG.js.br +0 -0
  351. package/build/client/_app/immutable/nodes/21.f5SleuvG.js.gz +0 -0
  352. package/build/client/_app/immutable/nodes/22.DNrAQQXU.js.br +0 -0
  353. package/build/client/_app/immutable/nodes/22.DNrAQQXU.js.gz +0 -0
  354. package/build/client/_app/immutable/nodes/23.D6Fe2Mdx.js.br +0 -0
  355. package/build/client/_app/immutable/nodes/23.D6Fe2Mdx.js.gz +0 -0
  356. package/build/client/_app/immutable/nodes/24.C56ldwPz.js.br +0 -0
  357. package/build/client/_app/immutable/nodes/24.C56ldwPz.js.gz +0 -0
  358. package/build/client/_app/immutable/nodes/25.DZ4DThMl.js.br +0 -0
  359. package/build/client/_app/immutable/nodes/25.DZ4DThMl.js.gz +0 -0
  360. package/build/client/_app/immutable/nodes/26.C1eMf9Tn.js.br +0 -0
  361. package/build/client/_app/immutable/nodes/26.C1eMf9Tn.js.gz +0 -0
  362. package/build/client/_app/immutable/nodes/28.ByjDiuDk.js.br +0 -0
  363. package/build/client/_app/immutable/nodes/28.ByjDiuDk.js.gz +0 -0
  364. package/build/client/_app/immutable/nodes/3.Dw9t6bnq.js.br +0 -0
  365. package/build/client/_app/immutable/nodes/3.Dw9t6bnq.js.gz +0 -0
  366. package/build/client/_app/immutable/nodes/4.C-Vhe6qo.js.br +0 -0
  367. package/build/client/_app/immutable/nodes/4.C-Vhe6qo.js.gz +0 -0
  368. package/build/client/_app/immutable/nodes/6.-GosPZsI.js.br +0 -0
  369. package/build/client/_app/immutable/nodes/6.-GosPZsI.js.gz +0 -0
  370. package/build/client/_app/immutable/nodes/7.D5C714Zn.js.br +0 -0
  371. package/build/client/_app/immutable/nodes/7.D5C714Zn.js.gz +0 -0
  372. package/build/client/_app/immutable/nodes/8.CBl3BgIN.js.br +0 -0
  373. package/build/client/_app/immutable/nodes/8.CBl3BgIN.js.gz +0 -0
  374. package/build/client/_app/immutable/nodes/9.flfI1cr8.js.br +0 -0
  375. package/build/client/_app/immutable/nodes/9.flfI1cr8.js.gz +0 -0
@@ -1,4 +1,4 @@
1
- import"../chunks/DsnmJJEf.js";import{o as wt}from"../chunks/RYq3318d.js";import{p as xe,v as P,j as Z,f as y,g as t,a,b as _e,i as u,m as ue,bD as ts,q as gt,u as at,A as rs,aE as Wt,h as S,r as C,c as x,aa as Re,t as j,br as ns,bG as ss,aG as pt,l as nr,s as h,y as st,o as re,d as z,k as gn,x as Xt,n as Ke,w as ct,aC as os,$ as as}from"../chunks/BuRWgnCz.js";import{i as D}from"../chunks/BDpRITyb.js";import{s as Me}from"../chunks/B2RyWxmQ.js";import{c as oe}from"../chunks/DLuhTA05.js";import{l as Ge,s as ce,r as Ur,e as Je,a as je,b as is,d as _r,h as ls,f as ds}from"../chunks/Cwb6d3g_.js";import{g as jt,o as cs,i as us}from"../chunks/BNqm5dMM.js";import{p as We}from"../chunks/01zSWHgS.js";import{l as He,b as mn,c as Cr}from"../chunks/BOuuGRjG.js";import{i as zt}from"../chunks/CspN1OJw.js";import{P as hs,s as ps,e as fs,a as dr,r as vs}from"../chunks/Bm5t_TcQ.js";import{s as Gr,a as cr,n as gs}from"../chunks/BT_DAfvO.js";import{m as ms}from"../chunks/cwI46DFb.js";import{d as bs,b as Rr}from"../chunks/DJNADPa5.js";import{b as Jt}from"../chunks/BWRIDih-.js";import{s as ge,r as me,p as k}from"../chunks/BAOiF0in.js";import{P as xs}from"../chunks/CvBYM8q3.js";import{a as $t,k as Yr,p as yr,A as bn,n as _s}from"../chunks/Dse7bjta.js";import{a as ys}from"../chunks/DcVvrp03.js";import{F as ws,x as xn,y as _n,z as yn,A as Zt,C as ks,D as Cs,u as Ps,B as Ts,g as wn,P as kn,f as Cn,S as Ss,U as Ms,j as $s,h as ur}from"../chunks/DvvdbrXj.js";import{a as Is}from"../chunks/BMFk7aZ6.js";import{S as As}from"../chunks/BksDoLoM.js";import{C as It}from"../chunks/cmRB1an4.js";import{I as lt,t as wr,a as Os}from"../chunks/xH4qmLqM.js";import{p as Es}from"../chunks/fuBLR9dZ.js";import{c as yt}from"../chunks/DYbDyf3M.js";import{L as Ds,M as Ns,j as Fs,b as V,N as zs,O as Ws,Q as js,R as Ls,U as Qt,V as Pr,W as Tr,X as Bt,Y as Pn,Z as Ot,_ as Tn,K as tt,u as Sn,m as Ye,$ as Bs,a0 as Ks,z as Mn,A as Sr,r as sr,a1 as Hs,a2 as qs,H as Mr,a3 as Us,a4 as Gs,a5 as Rs,C as kt,v as $n,w as it,k as Ct,B as In,a6 as or,G as An,x as On,t as _t,a7 as xt,a8 as Ys,a9 as Vs,I as En,aa as Xs,J as Dn,ab as Nn,c as mt,s as Fn,ac as Js,P as ar}from"../chunks/DVEiwmFn.js";import{B as ot}from"../chunks/C5BN6RHR.js";import{a as er,p as Zs,c as Qs,f as eo}from"../chunks/BCUUi0V0.js";import{h as to,G as zn,a as ro,i as no,b as so}from"../chunks/Dd58JmFO.js";import{M as oo}from"../chunks/Ddta0BJw.js";import{A as Wn,r as ut,s as Vr,t as ao}from"../chunks/ClsjySa8.js";import{t as jn,b as Ln,d as io}from"../chunks/BY5XjwMm.js";import{w as nt}from"../chunks/DZeIs8RO.js";import{L as hr}from"../chunks/CP7u-DWX.js";import{T as Xr}from"../chunks/kynOtL7x.js";import{R as lo}from"../chunks/DXoZBzFG.js";import{C as Jr}from"../chunks/CCL5M9Xl.js";import{E as Bn}from"../chunks/IuxiJfHx.js";import{S as co}from"../chunks/DU3FdAFH.js";import{C as Kn}from"../chunks/C6T16bV1.js";import{k as uo,X as ho}from"../chunks/rS7QE60d.js";import{B as po}from"../chunks/7vF3ego3.js";import{a as fo,M as vo}from"../chunks/CoGHF2lE.js";import{S as go}from"../chunks/DGK4csRg.js";import{P as mo}from"../chunks/Cu50g1zS.js";import"../chunks/CGKMBwQH.js";import{a as Zr}from"../chunks/B-JNrTge.js";import{f as bo}from"../chunks/hxhxtxcx.js";var xo=new Set(["$$slots","$$events","$$legacy"]);function _o(o,e){let r=me(e,xo);const n={name:"bell-off",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742"}],["path",{d:"m2 2 20 20"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var yo=new Set(["$$slots","$$events","$$legacy"]);function Qr(o,e){let r=me(e,yo);const n={name:"bell-ring",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var wo=new Set(["$$slots","$$events","$$legacy"]);function ko(o,e){let r=me(e,wo);const n={name:"blocks",size:24,node:[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var Co=new Set(["$$slots","$$events","$$legacy"]);function Po(o,e){let r=me(e,Co);const n={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]],aliases:["more-horizontal"]};lt(o,ge(()=>r,{get icon(){return n}}))}var To=new Set(["$$slots","$$events","$$legacy"]);function So(o,e){let r=me(e,To);const n={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var Mo=new Set(["$$slots","$$events","$$legacy"]);function $o(o,e){let r=me(e,Mo);const n={name:"message-circle",size:24,node:[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var Io=new Set(["$$slots","$$events","$$legacy"]);function Ao(o,e){let r=me(e,Io);const n={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var Oo=new Set(["$$slots","$$events","$$legacy"]);function Eo(o,e){let r=me(e,Oo);const n={name:"panel-left-close",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}],["path",{d:"m16 15-3-3 3-3"}]],aliases:["sidebar-close"]};lt(o,ge(()=>r,{get icon(){return n}}))}var Do=new Set(["$$slots","$$events","$$legacy"]);function No(o,e){let r=me(e,Do);const n={name:"panel-left-open",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}],["path",{d:"m14 9 3 3-3 3"}]],aliases:["sidebar-open"]};lt(o,ge(()=>r,{get icon(){return n}}))}var Fo=new Set(["$$slots","$$events","$$legacy"]);function zo(o,e){let r=me(e,Fo);const n={name:"pencil",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var Wo=new Set(["$$slots","$$events","$$legacy"]);function jo(o,e){let r=me(e,Wo);const n={name:"pin",size:24,node:[["path",{d:"M12 17v5"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var Lo=new Set(["$$slots","$$events","$$legacy"]);function Bo(o,e){let r=me(e,Lo);const n={name:"radio-tower",size:24,node:[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5"}],["circle",{cx:"12",cy:"9",r:"2"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1"}],["path",{d:"M9.5 18h5"}],["path",{d:"m8 22 4-11 4 11"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var Ko=new Set(["$$slots","$$events","$$legacy"]);function Ho(o,e){let r=me(e,Ko);const n={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M12 2v2"}],["path",{d:"M12 20v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"m17.66 17.66 1.41 1.41"}],["path",{d:"M2 12h2"}],["path",{d:"M20 12h2"}],["path",{d:"m6.34 17.66-1.41 1.41"}],["path",{d:"m19.07 4.93-1.41 1.41"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}function qo(o,e){xe(e,!0);const r=u(()=>"component"in e.entry.render?xs[e.entry.render.component]:void 0);let n=ue(!1);wt(()=>{P(n,!0)});var s=Z(),i=y(s);{var l=c=>{hs(c,{get entry(){return e.entry},get data(){return e.entry.content.value},quiet:!0})},d=c=>{var g=Z(),_=y(g);ts(_,{failed:p=>{}},p=>{var b=Z(),w=y(b);oe(w,()=>t(r),(v,M)=>{M(v,{get data(){return e.entry.content.value},get entry(){return e.entry}})}),a(p,b)}),a(c,g)};D(i,c=>{t(n)&&"element"in e.entry.render&&e.entry.content.available?c(l):t(n)&&t(r)&&e.entry.content.available&&c(d,1)})}a(o,s),_e()}function Pt(o){let e=ue(gt(o));return{[Ns]:!0,[Ds]:!0,get current(){return t(e)},set current(r){P(e,r,!0)}}}Pt.from=Fs;Pt.with=V;Pt.flatten=zs;Pt.readonly=Ws;Pt.isBox=js;Pt.isWritableBox=Ls;function $r(o){at(()=>rs(()=>o()))}function Uo(o){return window.getComputedStyle(o).getPropertyValue("direction")}function Go(o="ltr",e="horizontal"){return{horizontal:o==="rtl"?Tr:Pr,vertical:Bt}[e]}function Ro(o="ltr",e="horizontal"){return{horizontal:o==="rtl"?Pr:Tr,vertical:Qt}[e]}function Yo(o="ltr",e="horizontal"){return["ltr","rtl"].includes(o)||(o="ltr"),["horizontal","vertical"].includes(e)||(e="horizontal"),{nextKey:Go(o,e),prevKey:Ro(o,e)}}class Vo{#e;#t=Pt(null);constructor(e){this.#e=e}getCandidateNodes(){return this.#e.rootNode.current?this.#e.candidateSelector?Array.from(this.#e.rootNode.current.querySelectorAll(this.#e.candidateSelector)):this.#e.candidateAttr?Array.from(this.#e.rootNode.current.querySelectorAll(`[${this.#e.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const e=this.getCandidateNodes();e.length&&e[0]?.focus()}handleKeydown(e,r,n=!1){const s=this.#e.rootNode.current;if(!s||!e)return;const i=this.getCandidateNodes();if(!i.length)return;const l=i.indexOf(e),d=Uo(s),{nextKey:c,prevKey:g}=Yo(d,this.#e.orientation.current),_=this.#e.loop.current,f={[c]:l+1,[g]:l-1,[Tn]:0,[Pn]:i.length-1};if(n){const w=c===Bt?Pr:Bt,v=g===Qt?Tr:Qt;f[w]=l+1,f[v]=l-1}let p=f[r.key];if(p===void 0)return;r.preventDefault(),p<0&&_?p=i.length-1:p===i.length&&_&&(p=0);const b=i[p];if(b)return b.focus(),this.#t.current=b.id,this.#e.onCandidateFocus?.(b),b}getTabIndex(e){const r=this.getCandidateNodes(),n=this.#t.current!==null;return e&&!n&&r[0]===e?(this.#t.current=e.id,0):e?.id===this.#t.current?0:-1}setCurrentTabStopId(e){this.#t.current=e}focusCurrentTabStop(){const e=this.#t.current;if(!e)return;const r=this.#e.rootNode.current?.querySelector(`#${e}`);!r||!Ot(r)||r.focus()}}class Xo{eventName;options;constructor(e,r={bubbles:!0,cancelable:!0}){this.eventName=e,this.options=r}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,r){const n=this.createEvent(r);return e.dispatchEvent(n),n}listen(e,r,n){const s=i=>{r(i)};return Wt(e,this.eventName,s,n)}}function Hn(o,e,r){const n=e.toLowerCase();if(n.endsWith(" ")){const f=n.slice(0,-1);if(o.filter(v=>v.toLowerCase().startsWith(f)).length<=1)return Hn(o,f,r);const b=r?.toLowerCase();if(b&&b.startsWith(f)&&b.charAt(f.length)===" "&&e.trim()===f)return r;const w=o.filter(v=>v.toLowerCase().startsWith(n));if(w.length>0){const v=r?o.indexOf(r):-1;return en(w,Math.max(v,0)).find(ne=>ne!==r)||r}}const i=e.length>1&&Array.from(e).every(f=>f===e[0])?e[0]:e,l=i.toLowerCase(),d=r?o.indexOf(r):-1;let c=en(o,Math.max(d,0));i.length===1&&(c=c.filter(f=>f!==r));const _=c.find(f=>f?.toLowerCase().startsWith(l));return _!==r?_:void 0}function en(o,e){return o.map((r,n)=>o[(e+n)%o.length])}const Jo={afterMs:1e4,onChange:tt};function Zo(o,e){const{afterMs:r,onChange:n,getWindow:s}={...Jo,...e};let i=null,l=ue(gt(o));function d(){return s().setTimeout(()=>{P(l,o,!0),n?.(o)},r)}return at(()=>()=>{i&&s().clearTimeout(i)}),V(()=>t(l),c=>{P(l,c,!0),n?.(c),i&&s().clearTimeout(i),i=d()})}class Qo{#e;#t;#r=u(()=>this.#e.onMatch?this.#e.onMatch:e=>e.focus());#n=u(()=>this.#e.getCurrentItem?this.#e.getCurrentItem:this.#e.getActiveElement);constructor(e){this.#e=e,this.#t=Zo("",{afterMs:1e3,getWindow:e.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e,r){if(!r.length)return;this.#t.current=this.#t.current+e;const n=t(this.#n)(),s=r.find(c=>c===n)?.textContent?.trim()??"",i=r.map(c=>c.textContent?.trim()??""),l=Hn(i,this.#t.current,s),d=r.find(c=>c.textContent?.trim()===l);return d&&t(this.#r)(d),d}resetTypeahead(){this.#t.current=""}get search(){return this.#t.current}}var ea=new Set(["$$slots","$$events","$$legacy","id","children","child","width","height"]),ta=ns('<svg viewBox="0 0 30 10" preserveAspectRatio="none" data-arrow=""><polygon points="0,0 30,0 15,10" fill="currentColor"></polygon></svg>'),ra=x("<span><!></span>");function na(o,e){xe(e,!0);let r=k(e,"id",19,Sn),n=k(e,"width",3,10),s=k(e,"height",3,5),i=me(e,ea);const l=u(()=>Ye(i,{id:r()}));var d=Z(),c=y(d);{var g=f=>{var p=Z(),b=y(p);Me(b,()=>e.child,()=>({props:t(l)})),a(f,p)},_=f=>{var p=ra();Ge(p,()=>({...t(l)}));var b=S(p);{var w=M=>{var O=Z(),ne=y(O);Me(ne,()=>e.children??Re),a(M,O)},v=M=>{var O=ta();j(()=>{ce(O,"width",n()),ce(O,"height",s())}),a(M,O)};D(b,M=>{e.children?M(w):M(v,-1)})}C(p),a(f,p)};D(c,f=>{e.child?f(g):f(_,-1)})}a(o,d),_e()}var sa=new Set(["$$slots","$$events","$$legacy","id","ref"]);function oa(o,e){xe(e,!0);let r=k(e,"id",19,Sn),n=k(e,"ref",15,null),s=me(e,sa);const i=ws.create({id:V(()=>r()),ref:V(()=>n(),d=>n(d))}),l=u(()=>Ye(s,i.props));na(o,ge(()=>t(l))),_e()}const aa=[Mn,Sr],ia=[Bt,Bs,Tn],qn=[Qt,Ks,Pn],la=[...ia,...qn];function da(o){return o==="indeterminate"}function ca(o){return da(o)?"indeterminate":o?"checked":"unchecked"}function ht(o){return o.pointerType==="mouse"}function ua(o,{select:e=!1}={}){if(!o||!o.focus)return;const r=sr(o);if(r.activeElement===o)return;const n=r.activeElement;o.focus({preventScroll:!0}),o!==n&&Hs(o)&&e&&o.select()}function ha(o,{select:e=!1}={},r){const n=r();for(const s of o)if(ua(s,{select:e}),r()!==n)return!0}let Tt=ue(!1);class vt{static _refs=0;static _cleanup;constructor(){at(()=>(vt._refs===0&&(vt._cleanup=ss(()=>{const e=[],r=s=>{P(Tt,!1)},n=s=>{P(Tt,!0)};return e.push(Wt(document,"pointerdown",r,{capture:!0}),Wt(document,"keydown",n,{capture:!0})),at(()=>{if(t(Tt))return Wt(document,"pointermove",r,{capture:!0})}),qs(...e)})),vt._refs++,()=>{vt._refs--,vt._refs===0&&(P(Tt,!1),vt._cleanup?.())}))}get current(){return t(Tt)}set current(e){P(Tt,e,!0)}}function Lt(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function pa(o,e){if(!Mr(o,Lt()))return fa(o,e);const r=sr(o),n=Us(r.body,Lt());e==="prev"&&n.reverse();const s=n.indexOf(o);return s===-1?r.body:n.slice(s+1)[0]}function fa(o,e){const r=sr(o);if(!Gs(o,Lt()))return r.body;const n=Rs(r.body,Lt());e==="prev"&&n.reverse();const s=n.indexOf(o);return s===-1?r.body:n.slice(s+1).find(l=>Mr(l,Lt()))??r.body}const Ir=new kt("Menu.Root"),Ar=new kt("Menu.Root | Menu.Sub"),Or=new kt("Menu.Content"),va=new kt("Menu.Group | Menu.RadioGroup"),ga=new kt("Menu.CheckboxGroup"),ma=new Xo("bitsmenuopen",{bubbles:!1,cancelable:!0}),ba=Dn({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});class xa{#e;#t=null;#r=null;#n=!1;#s=null;#a=null;#o=null;#i=null;constructor(e){this.#e=e,it([e.triggerNode,e.contentNode,e.enabled],([r,n,s])=>{if(this.#p(),!r||!n||!s)return;const i=f=>{ht(f)&&(this.#i={x:f.clientX,y:f.clientY},this.#n||this.#m(f,"content"))},l=f=>{ht(f)&&this.#b(f,"content")},d=f=>{ht(f)&&(this.#n||this.#m(f,"trigger"))},c=f=>{if(ht(f)){if(_t(f.relatedTarget)){const p=this.#e.subContentSelector(),b=f.relatedTarget.closest(p);if(b&&b!==n&&b.id&&!!n.querySelector(`[aria-controls="${b.id}"]`))return}this.#b(f,"trigger")}},g=f=>{ht(f)&&this.#u()},_=f=>{ht(f)&&this.#u()};return r.addEventListener("pointermove",i),r.addEventListener("pointerleave",l),r.addEventListener("pointerenter",g),n.addEventListener("pointermove",d),n.addEventListener("pointerleave",c),n.addEventListener("pointerenter",_),()=>{r.removeEventListener("pointermove",i),r.removeEventListener("pointerleave",l),r.removeEventListener("pointerenter",g),n.removeEventListener("pointermove",d),n.removeEventListener("pointerleave",c),n.removeEventListener("pointerenter",_),this.#p()}}),Nn(()=>{this.#p()})}#l(){const e=this.#e.parentContentNode();return e?e.getBoundingClientRect():this.#e.triggerNode()?.getBoundingClientRect()??null}#d(e,r){const n=this.#e.triggerNode(),s=this.#e.contentNode();if(!n||!s)return null;const i=n.getBoundingClientRect(),l=s.getBoundingClientRect(),d=ya(i,l);let c,g,_;return r==="content"?(c=this.#n?this.#a??e:e,g=l):(c=this.#i??e,g=this.#l()??i,_=l),this.#a=c,{corridor:wa(i,l,d),intent:ka(c,g,d,r,_),targetRect:g,side:d}}#g(e,r,n){return tn(e,r)||tn(e,n)}#m(e,r){const n={x:e.clientX,y:e.clientY};this.#d(n,r)&&(this.#s=r,this.#o=n)}#b(e,r){if(!this.#e.enabled())return;const n=this.#e.triggerNode(),s=this.#e.contentNode();if(!n||!s)return;const i=e.relatedTarget;if(_t(i)&&(r==="content"&&s.contains(i)||r==="trigger"&&n.contains(i)))return;const l={x:e.clientX,y:e.clientY},d=this.#d(l,r);if(d){if(!rn(l,d.targetRect)&&!this.#g(l,d.corridor,d.intent)){this.#y();return}this.#n=!0,this.#s=r,this.#o=l,this.#e.setIsPointerInTransit(!0),this.#C(),this.#_()}}#c=null;#u(){if(!this.#n)return;const e=this.#s==="trigger";this.#x(),this.#v(),this.#n=!1,this.#y(),e?(this.#f(),this.#c=setTimeout(()=>{this.#c=null,this.#e.setIsPointerInTransit(!1)},100)):this.#e.setIsPointerInTransit(!1)}#f(){this.#c!==null&&(clearTimeout(this.#c),this.#c=null)}#h(){const e=this.#o;this.#x(),this.#v(),this.#f(),this.#n=!1,this.#e.setIsPointerInTransit(!1),this.#y(),this.#e.onIntentExit(e)}#p(){this.#x(),this.#v(),this.#f(),this.#n&&this.#e.setIsPointerInTransit(!1),this.#n=!1,this.#s=null,this.#a=null,this.#o=null,this.#i=null}#k(e){const r=this.#e.contentNode();if(!r)return!1;const s=r.ownerDocument.elementFromPoint(e.x,e.y);if(!s)return!1;const i=this.#e.subContentSelector(),l=s.closest(i);return!l||l===r?!1:l.id?!!r.querySelector(`[aria-controls="${l.id}"]`):!1}#w=e=>{if(!this.#n||!this.#s||!ht(e))return;const r=this.#e.triggerNode(),n=this.#e.contentNode();if(!r||!n){this.#h();return}this.#v();const s={x:e.clientX,y:e.clientY};this.#o=s;const i=r.getBoundingClientRect(),l=n.getBoundingClientRect();if(this.#s==="content"&&rn(s,l)){this.#u();return}if(this.#s==="trigger"&&_a(s,i,4)){this.#u();return}if(this.#k(s)){this.#_();return}const d=this.#d(s,this.#s);if(!d){this.#h();return}if(this.#g(s,d.corridor,d.intent)){this.#_();return}this.#h()};#C(){if(this.#t)return;const e=sr(this.#e.triggerNode()??this.#e.contentNode());e&&(e.addEventListener("pointermove",this.#w,!0),this.#t=()=>{e.removeEventListener("pointermove",this.#w,!0),this.#t=null})}#x(){this.#t?.()}#_(){this.#v(),this.#r=setTimeout(()=>{this.#r=null,this.#n&&this.#h()},500)}#v(){this.#r!==null&&(clearTimeout(this.#r),this.#r=null)}#y(){this.#s=null,this.#a=null,this.#o=null}}function tn(o,e){const{x:r,y:n}=o;let s=!1;for(let i=0,l=e.length-1;i<e.length;l=i++){const d=e[i].x,c=e[i].y,g=e[l].x,_=e[l].y;c>n!=_>n&&r<(g-d)*(n-c)/(_-c)+d&&(s=!s)}return s}function rn(o,e){return o.x>=e.left&&o.x<=e.right&&o.y>=e.top&&o.y<=e.bottom}function _a(o,e,r){return o.x>=e.left+r&&o.x<=e.right-r&&o.y>=e.top+r&&o.y<=e.bottom-r}function ya(o,e){const r=o.left+o.width/2,n=o.top+o.height/2,s=e.left+e.width/2,i=e.top+e.height/2,l=s-r,d=i-n;return Math.abs(l)>Math.abs(d)?l>0?"right":"left":d>0?"bottom":"top"}function wa(o,e,r){switch(r){case"top":return[{x:Math.min(o.left,e.left)-2,y:o.top},{x:Math.min(o.left,e.left)-2,y:e.bottom},{x:Math.max(o.right,e.right)+2,y:e.bottom},{x:Math.max(o.right,e.right)+2,y:o.top}];case"bottom":return[{x:Math.min(o.left,e.left)-2,y:o.bottom},{x:Math.min(o.left,e.left)-2,y:e.top},{x:Math.max(o.right,e.right)+2,y:e.top},{x:Math.max(o.right,e.right)+2,y:o.bottom}];case"left":return[{x:o.left,y:Math.min(o.top,e.top)-2},{x:e.right,y:Math.min(o.top,e.top)-2},{x:e.right,y:Math.max(o.bottom,e.bottom)+2},{x:o.left,y:Math.max(o.bottom,e.bottom)+2}];case"right":return[{x:o.right,y:Math.min(o.top,e.top)-2},{x:e.left,y:Math.min(o.top,e.top)-2},{x:e.left,y:Math.max(o.bottom,e.bottom)+2},{x:o.right,y:Math.max(o.bottom,e.bottom)+2}]}}function ka(o,e,r,n,s){const l=n==="trigger"?Ca(r):r,d=s?Math.min(e.top,s.top)-8:e.top-8,c=s?Math.max(e.bottom,s.bottom)+8:e.bottom+8,g=s?Math.min(e.left,s.left)-8:e.left-8,_=s?Math.max(e.right,s.right)+8:e.right+8;switch(l){case"right":return[o,{x:e.left,y:d},{x:e.left,y:c}];case"left":return[o,{x:e.right,y:d},{x:e.right,y:c}];case"bottom":return[o,{x:g,y:e.top},{x:_,y:e.top}];case"top":return[o,{x:g,y:e.bottom},{x:_,y:e.bottom}]}}function Ca(o){switch(o){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}class Er{static create(e){const r=new Er(e);return Ir.set(r)}opts;isUsingKeyboard=new vt;#e=ue(!1);get ignoreCloseAutoFocus(){return t(this.#e)}set ignoreCloseAutoFocus(e){P(this.#e,e,!0)}#t=ue(!1);get isPointerInTransit(){return t(this.#t)}set isPointerInTransit(e){P(this.#t,e,!0)}constructor(e){this.opts=e}getBitsAttr=e=>ba.getAttr(e,this.opts.variant.current)}class Dr{static create(e,r){return Ar.set(new Dr(e,r,null))}opts;root;parentMenu;#e=ue(V(()=>""));get contentId(){return t(this.#e)}set contentId(e){P(this.#e,e)}#t=ue(null);get contentNode(){return t(this.#t)}set contentNode(e){P(this.#t,e,!0)}contentPresence;#r=ue(null);get triggerNode(){return t(this.#r)}set triggerNode(e){P(this.#r,e,!0)}constructor(e,r,n){this.opts=e,this.root=r,this.parentMenu=n,this.contentPresence=new $n({ref:V(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)},shouldSkipExitAnimation:()=>this.root.opts.variant.current!=="menubar"||this.parentMenu!==null?!1:this.root.opts.shouldSkipExitAnimation?.()??!1}),n&&it(()=>n.opts.open.current,()=>{n.opts.open.current||(this.opts.open.current=!1)})}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}}class Nr{static create(e){return Or.set(new Nr(e,Ar.get()))}opts;parentMenu;rovingFocusGroup;domContext;attachment;#e=ue("");get search(){return t(this.#e)}set search(e){P(this.#e,e,!0)}#t=0;#r;#n=ue(!1);get mounted(){return t(this.#n)}set mounted(e){P(this.#n,e,!0)}#s;constructor(e,r){this.opts=e,this.parentMenu=r,this.domContext=new On(e.ref),this.attachment=Ct(this.opts.ref,n=>{this.parentMenu.contentNode!==n&&(this.parentMenu.contentNode=n)}),r.contentId=e.id,this.#s=e.isSub??!1,this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new xa({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,parentContentNode:()=>this.parentMenu.parentMenu?.contentNode??null,subContentSelector:()=>`[${this.parentMenu.root.getBitsAttr("sub-content")}]`,enabled:()=>this.parentMenu.opts.open.current&&!!this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")),onIntentExit:n=>{this.parentMenu.opts.open.current=!1,this.#i(n)},setIsPointerInTransit:n=>{this.parentMenu.root.isPointerInTransit=n}}),this.#r=new Qo({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch,this.rovingFocusGroup=new Vo({rootNode:V(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:V(()=>"vertical")}),it(()=>this.parentMenu.contentNode,n=>{if(!n)return;const s=()=>{xt(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return ma.listen(n,s)}),at(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(this.#t)})}#a(){const e=this.parentMenu.contentNode;return e?Array.from(e.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]}#o(){return this.parentMenu.root.isPointerInTransit}#i(e){if(!e)return;const r=this.parentMenu.parentMenu?.contentNode;if(!r)return;const n=this.domContext.getDocument().elementFromPoint(e.x,e.y);if(!_t(n))return;const s=n.closest(`[${this.parentMenu.root.getBitsAttr("sub-trigger")}]`);!s||!r.contains(s)||s!==this.parentMenu.triggerNode&&s.dispatchEvent(new PointerEvent("pointermove",{bubbles:!0,cancelable:!0,pointerType:"mouse",clientX:e.x,clientY:e.y}))}onCloseAutoFocus=e=>{if(this.opts.onCloseAutoFocus.current?.(e),!(e.defaultPrevented||this.#s)){if(this.parentMenu.root.ignoreCloseAutoFocus){e.preventDefault();return}this.parentMenu.triggerNode&&Mr(this.parentMenu.triggerNode)&&(e.preventDefault(),this.parentMenu.triggerNode.focus())}};handleTabKeyDown(e){let r=this.parentMenu;for(;r.parentMenu!==null;)r=r.parentMenu;if(!r.triggerNode)return;e.preventDefault();const n=pa(r.triggerNode,e.shiftKey?"prev":"next");n?(this.parentMenu.root.ignoreCloseAutoFocus=!0,r.onClose(),xt(()=>{n.focus(),xt(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(e){if(e.defaultPrevented)return;if(e.key===Ys){this.handleTabKeyDown(e);return}const r=e.target,n=e.currentTarget;if(!Ot(r)||!Ot(n))return;const s=r.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`)?.id===this.parentMenu.contentId.current,i=e.ctrlKey||e.altKey||e.metaKey,l=e.key.length===1;if(this.rovingFocusGroup.handleKeydown(r,e)||e.code==="Space")return;const c=this.#a();s&&!i&&l&&this.#r(e.key,c),e.target?.id===this.parentMenu.contentId.current&&la.includes(e.key)&&(e.preventDefault(),qn.includes(e.key)&&c.reverse(),ha(c,{select:!1},()=>this.domContext.getActiveElement()))}onblur(e){_t(e.currentTarget)&&_t(e.target)&&(e.currentTarget.contains?.(e.target)||(this.domContext.getWindow().clearTimeout(this.#t),this.search=""))}onfocus(e){this.parentMenu.root.isUsingKeyboard.current&&xt(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return this.#o()}onItemLeave(e){if(e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||this.#o()||this.parentMenu.root.isUsingKeyboard.current)return;this.parentMenu.contentNode?.focus({preventScroll:!0}),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!this.#o()}handleInteractOutside(e){if(!Vs(e.target))return;const r=this.parentMenu.triggerNode?.id;if(e.target.id===r){e.preventDefault();return}if(e.target.closest(`#${r}`)){e.preventDefault();return}this.parentMenu.root.ignoreCloseAutoFocus=!0,xt(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}#l=u(()=>({open:this.parentMenu.opts.open.current}));get snippetProps(){return t(this.#l)}set snippetProps(e){P(this.#l,e)}#d=u(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":In(this.parentMenu.opts.open.current),...En(this.parentMenu.contentPresence.transitionStatus),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto",contain:"layout style"},...this.attachment}));get props(){return t(this.#d)}set props(e){P(this.#d,e)}popperProps={onCloseAutoFocus:e=>this.onCloseAutoFocus(e)}}class Un{opts;content;attachment;#e=ue(!1);constructor(e,r){this.opts=e,this.content=r,this.attachment=Ct(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(e){if(!e.defaultPrevented&&ht(e))if(this.opts.disabled.current)this.content.onItemLeave(e);else{if(this.content.onItemEnter())return;const n=e.currentTarget;if(!Ot(n))return;n.focus({preventScroll:!0})}}onpointerleave(e){e.defaultPrevented||ht(e)&&this.content.onItemLeave(e)}onfocus(e){xt(()=>{e.defaultPrevented||this.opts.disabled.current||P(this.#e,!0)})}onblur(e){xt(()=>{e.defaultPrevented||P(this.#e,!1)})}#t=u(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":An(this.opts.disabled.current),"data-disabled":or(this.opts.disabled.current),"data-highlighted":t(this.#e)?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment}));get props(){return t(this.#t)}set props(e){P(this.#t,e)}}class ir{static create(e){const r=new Un(e,Or.get());return new ir(e,r)}opts;item;root;#e=!1;constructor(e,r){this.opts=e,this.item=r,this.root=r.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}#t(){if(this.item.opts.disabled.current)return;const e=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(e),e.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()}onkeydown(e){const r=this.item.content.search!=="";if(!(this.item.opts.disabled.current||r&&e.key===Sr)&&aa.includes(e.key)){if(!Ot(e.currentTarget))return;e.currentTarget.click(),e.preventDefault()}}onclick(e){this.item.opts.disabled.current||this.#t()}onpointerup(e){if(!e.defaultPrevented&&!this.#e){if(!Ot(e.currentTarget))return;e.currentTarget?.click()}}onpointerdown(e){this.#e=!0}#r=u(()=>Ye(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown}));get props(){return t(this.#r)}set props(e){P(this.#r,e)}}class Fr{static create(e,r){const n=new ir(e,new Un(e,Or.get()));return new Fr(e,n,r)}opts;item;group;constructor(e,r,n=null){this.opts=e,this.item=r,this.group=n,this.group&&(it(()=>this.group.opts.value.current,s=>{this.opts.checked.current=s.includes(this.opts.value.current)}),it(()=>this.opts.checked.current,s=>{s?this.group.addValue(this.opts.value.current):this.group.removeValue(this.opts.value.current)}))}toggleChecked(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}#e=u(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return t(this.#e)}set snippetProps(e){P(this.#e,e)}#t=u(()=>({...this.item.props,role:"menuitemcheckbox","aria-checked":Xs(this.opts.checked.current,this.opts.indeterminate.current),"data-state":ca(this.opts.checked.current),[this.item.root.getBitsAttr("checkbox-item")]:""}));get props(){return t(this.#t)}set props(e){P(this.#t,e)}}class zr{static create(e){return va.set(new zr(e,Ir.get()))}opts;root;attachment;#e=ue(void 0);get groupHeadingId(){return t(this.#e)}set groupHeadingId(e){P(this.#e,e,!0)}constructor(e,r){this.opts=e,this.root=r,this.attachment=Ct(this.opts.ref)}#t=u(()=>({id:this.opts.id.current,role:"group","aria-labelledby":this.groupHeadingId,[this.root.getBitsAttr("group")]:"",...this.attachment}));get props(){return t(this.#t)}set props(e){P(this.#t,e)}}class Wr{static create(e){return new Wr(e,Ir.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=Ct(this.opts.ref)}#e=u(()=>({id:this.opts.id.current,role:"separator",[this.root.getBitsAttr("separator")]:"",...this.attachment}));get props(){return t(this.#e)}set props(e){P(this.#e,e)}}class jr{static create(e){return new jr(e,Ar.get())}opts;parentMenu;attachment;constructor(e,r){this.opts=e,this.parentMenu=r,this.attachment=Ct(this.opts.ref,n=>this.parentMenu.triggerNode=n)}onclick=e=>{this.opts.disabled.current||e.detail!==0||(this.parentMenu.toggleOpen(),e.preventDefault())};onpointerdown=e=>{if(!this.opts.disabled.current){if(e.pointerType==="touch")return e.preventDefault();e.button===0&&e.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||e.preventDefault())}};onpointerup=e=>{this.opts.disabled.current||e.pointerType==="touch"&&(e.preventDefault(),this.parentMenu.toggleOpen())};onkeydown=e=>{if(!this.opts.disabled.current){if(e.key===Sr||e.key===Mn){this.parentMenu.toggleOpen(),e.preventDefault();return}e.key===Bt&&(this.parentMenu.onOpen(),e.preventDefault())}};#e=u(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current});#t=u(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":An(this.parentMenu.opts.open.current),"aria-controls":t(this.#e),"data-disabled":or(this.opts.disabled.current),"data-state":In(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment}));get props(){return t(this.#t)}set props(e){P(this.#t,e)}}var Pa=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","disabled","onSelect","closeOnSelect"]),Ta=x("<div><!></div>");function Sa(o,e){const r=pt();xe(e,!0);let n=k(e,"ref",15,null),s=k(e,"id",19,()=>mt(r)),i=k(e,"disabled",3,!1),l=k(e,"onSelect",3,tt),d=k(e,"closeOnSelect",3,!0),c=me(e,Pa);const g=ir.create({id:V(()=>s()),disabled:V(()=>i()),onSelect:V(()=>l()),ref:V(()=>n(),v=>n(v)),closeOnSelect:V(()=>d())}),_=u(()=>Ye(c,g.props));var f=Z(),p=y(f);{var b=v=>{var M=Z(),O=y(M);Me(O,()=>e.child,()=>({props:t(_)})),a(v,M)},w=v=>{var M=Ta();Ge(M,()=>({...t(_)}));var O=S(M);Me(O,()=>e.children??Re),C(M),a(v,M)};D(p,v=>{e.child?v(b):v(w,-1)})}a(o,f),_e()}var Ma=new Set(["$$slots","$$events","$$legacy","children","child","ref","id"]),$a=x("<div><!></div>");function Ia(o,e){const r=pt();xe(e,!0);let n=k(e,"ref",15,null),s=k(e,"id",19,()=>mt(r)),i=me(e,Ma);const l=zr.create({id:V(()=>s()),ref:V(()=>n(),p=>n(p))}),d=u(()=>Ye(i,l.props));var c=Z(),g=y(c);{var _=p=>{var b=Z(),w=y(b);Me(w,()=>e.child,()=>({props:t(d)})),a(p,b)},f=p=>{var b=$a();Ge(b,()=>({...t(d)}));var w=S(b);Me(w,()=>e.children??Re),C(b),a(p,b)};D(g,p=>{e.child?p(_):p(f,-1)})}a(o,c),_e()}var Aa=new Set(["$$slots","$$events","$$legacy","ref","id","child","children"]),Oa=x("<div><!></div>");function Ea(o,e){const r=pt();xe(e,!0);let n=k(e,"ref",15,null),s=k(e,"id",19,()=>mt(r)),i=me(e,Aa);const l=Wr.create({id:V(()=>s()),ref:V(()=>n(),p=>n(p))}),d=u(()=>Ye(i,l.props));var c=Z(),g=y(c);{var _=p=>{var b=Z(),w=y(b);Me(w,()=>e.child,()=>({props:t(d)})),a(p,b)},f=p=>{var b=Oa();Ge(b,()=>({...t(d)}));var w=S(b);Me(w,()=>e.children??Re),C(b),a(p,b)};D(g,p=>{e.child?p(_):p(f,-1)})}a(o,c),_e()}var Da=new Set(["$$slots","$$events","$$legacy","child","children","ref","checked","id","onCheckedChange","disabled","onSelect","closeOnSelect","indeterminate","onIndeterminateChange","value"]),Na=x("<div><!></div>");function Fa(o,e){const r=pt();xe(e,!0);let n=k(e,"ref",15,null),s=k(e,"checked",15,!1),i=k(e,"id",19,()=>mt(r)),l=k(e,"onCheckedChange",3,tt),d=k(e,"disabled",3,!1),c=k(e,"onSelect",3,tt),g=k(e,"closeOnSelect",3,!0),_=k(e,"indeterminate",15,!1),f=k(e,"onIndeterminateChange",3,tt),p=k(e,"value",3,""),b=me(e,Da);const w=ga.getOr(null);w&&p()&&(w.opts.value.current.includes(p())?s(!0):s(!1)),it.pre(()=>p(),()=>{w&&p()&&(w.opts.value.current.includes(p())?s(!0):s(!1))});const v=Fr.create({checked:V(()=>s(),m=>{m!==s()&&(s(m),l()(m))}),id:V(()=>i()),disabled:V(()=>d()),onSelect:V(()=>M),ref:V(()=>n(),m=>n(m)),closeOnSelect:V(()=>g()),indeterminate:V(()=>_(),m=>{m!==_()&&(_(m),f()(m))}),value:V(()=>p())},w);function M(m){c()(m),!m.defaultPrevented&&v.toggleChecked()}const O=u(()=>Ye(b,v.props));var ne=Z(),le=y(ne);{var L=m=>{var A=Z(),$=y(A);Me($,()=>e.child,()=>({checked:s(),indeterminate:_(),props:t(O)})),a(m,A)},q=m=>{var A=Na();Ge(A,()=>({...t(O)}));var $=S(A);Me($,()=>e.children??Re,()=>({checked:s(),indeterminate:_()})),C(A),a(m,A)};D(le,m=>{e.child?m(L):m(q,-1)})}a(o,ne),_e()}function za(o,e){xe(e,!0);let r=k(e,"open",15,!1),n=k(e,"dir",3,"ltr"),s=k(e,"onOpenChange",3,tt),i=k(e,"onOpenChangeComplete",3,tt),l=k(e,"_internal_variant",3,"dropdown-menu"),d=k(e,"_internal_should_skip_exit_animation",3,void 0);const c=Er.create({variant:V(()=>l()),dir:V(()=>n()),onClose:()=>{r(!1),s()(!1)},shouldSkipExitAnimation:()=>d()?.()??!1});Dr.create({open:V(()=>r(),g=>{r(g),s()(g)}),onOpenChangeComplete:V(()=>i())},c),xn(o,{children:(g,_)=>{var f=Z(),p=y(f);Me(p,()=>e.children??Re),a(g,f)},$$slots:{default:!0}}),_e()}var Wa=new Set(["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus","style"]),nn=x("<div><div><!></div></div>");function ja(o,e){const r=pt();xe(e,!0);let n=k(e,"id",19,()=>mt(r)),s=k(e,"ref",15,null),i=k(e,"loop",3,!0),l=k(e,"onInteractOutside",3,tt),d=k(e,"onEscapeKeydown",3,tt),c=k(e,"onCloseAutoFocus",3,tt),g=k(e,"forceMount",3,!1),_=k(e,"trapFocus",3,!1),f=me(e,Wa);const p=Nr.create({id:V(()=>n()),loop:V(()=>i()),ref:V(()=>s(),L=>s(L)),onCloseAutoFocus:V(()=>c())}),b=u(()=>Ye(f,p.props));function w(L){if(p.handleInteractOutside(L),!L.defaultPrevented&&(l()(L),!L.defaultPrevented)){if(L.target&&L.target instanceof Element){const q=`[${p.parentMenu.root.getBitsAttr("sub-content")}]`;if(L.target.closest(q))return}p.parentMenu.onClose()}}function v(L){d()(L),!L.defaultPrevented&&p.parentMenu.onClose()}var M=Z(),O=y(M);{var ne=L=>{_n(L,ge(()=>t(b),()=>p.popperProps,{get ref(){return p.opts.ref},get enabled(){return p.parentMenu.opts.open.current},onInteractOutside:w,onEscapeKeydown:v,get trapFocus(){return _()},get loop(){return i()},forceMount:!0,get id(){return n()},get shouldRender(){return p.shouldRender},popper:(m,A)=>{let $=()=>(A?.()).props,X=()=>(A?.()).wrapperProps;const G=u(()=>Ye($(),{style:Zt("dropdown-menu")},{style:e.style}));var B=Z(),ae=y(B);{var T=I=>{var F=Z(),Q=y(F);{let se=u(()=>({props:t(G),wrapperProps:X(),...p.snippetProps}));Me(Q,()=>e.child,()=>t(se))}a(I,F)},R=I=>{var F=nn();Ge(F,()=>({...X()}));var Q=S(F);Ge(Q,()=>({...t(G)}));var se=S(Q);Me(se,()=>e.children??Re),C(Q),C(F),a(I,F)};D(ae,I=>{e.child?I(T):I(R,-1)})}a(m,B)},$$slots:{popper:!0}}))},le=L=>{yn(L,ge(()=>t(b),()=>p.popperProps,{get ref(){return p.opts.ref},get open(){return p.parentMenu.opts.open.current},onInteractOutside:w,onEscapeKeydown:v,get trapFocus(){return _()},get loop(){return i()},forceMount:!1,get id(){return n()},get shouldRender(){return p.shouldRender},popper:(m,A)=>{let $=()=>(A?.()).props,X=()=>(A?.()).wrapperProps;const G=u(()=>Ye($(),{style:Zt("dropdown-menu")},{style:e.style}));var B=Z(),ae=y(B);{var T=I=>{var F=Z(),Q=y(F);{let se=u(()=>({props:t(G),wrapperProps:X(),...p.snippetProps}));Me(Q,()=>e.child,()=>t(se))}a(I,F)},R=I=>{var F=nn();Ge(F,()=>({...X()}));var Q=S(F);Ge(Q,()=>({...t(G)}));var se=S(Q);Me(se,()=>e.children??Re),C(Q),C(F),a(I,F)};D(ae,I=>{e.child?I(T):I(R,-1)})}a(m,B)},$$slots:{popper:!0}}))};D(O,L=>{g()?L(ne):g()||L(le,1)})}a(o,M),_e()}var La=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]),Ba=x("<button><!></button>");function Ka(o,e){const r=pt();xe(e,!0);let n=k(e,"id",19,()=>mt(r)),s=k(e,"ref",15,null),i=k(e,"disabled",3,!1),l=k(e,"type",3,"button"),d=me(e,La);const c=jr.create({id:V(()=>n()),disabled:V(()=>i()??!1),ref:V(()=>s(),_=>s(_))}),g=u(()=>Ye(d,c.props,{type:l()}));ks(o,{get id(){return n()},get ref(){return c.opts.ref},children:(_,f)=>{var p=Z(),b=y(p);{var w=M=>{var O=Z(),ne=y(O);Me(ne,()=>e.child,()=>({props:t(g)})),a(M,O)},v=M=>{var O=Ba();Ge(O,()=>({...t(g)}));var ne=S(O);Me(ne,()=>e.children??Re),C(O),a(M,O)};D(b,M=>{e.child?M(w):M(v,-1)})}a(_,p)},$$slots:{default:!0}}),_e()}class kr{#e;#t;#r=null;constructor(e,r){this.#t=e,this.#e=r,this.stop=this.stop.bind(this),this.start=this.start.bind(this),Nn(this.stop)}#n(){this.#r!==null&&(window.clearTimeout(this.#r),this.#r=null)}stop(){this.#n()}start(...e){this.#n(),this.#r=window.setTimeout(()=>{this.#r=null,this.#t(...e)},this.#e)}}const Gn=Dn({component:"tooltip",parts:["content","trigger"]}),Rn=new kt("Tooltip.Provider"),Lr=new kt("Tooltip.Root");class Ha{#e=ue(gt(new Map));get triggers(){return t(this.#e)}set triggers(e){P(this.#e,e,!0)}#t=ue(null);get activeTriggerId(){return t(this.#t)}set activeTriggerId(e){P(this.#t,e,!0)}#r=u(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.node??null});get activeTriggerNode(){return t(this.#r)}set activeTriggerNode(e){P(this.#r,e)}#n=u(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.payload??null});get activePayload(){return t(this.#n)}set activePayload(e){P(this.#n,e)}register=e=>{const r=new Map(this.triggers);r.set(e.id,e),this.triggers=r,this.#s()};update=e=>{const r=new Map(this.triggers);r.set(e.id,e),this.triggers=r,this.#s()};unregister=e=>{if(!this.triggers.has(e))return;const r=new Map(this.triggers);r.delete(e),this.triggers=r,this.activeTriggerId===e&&(this.activeTriggerId=null)};setActiveTrigger=e=>{if(e===null){this.activeTriggerId=null;return}if(!this.triggers.has(e)){this.activeTriggerId=null;return}this.activeTriggerId=e};get=e=>this.triggers.get(e);has=e=>this.triggers.has(e);getFirstTriggerId=()=>{const e=this.triggers.entries().next();return e.done?null:e.value[0]};#s=()=>{const e=this.activeTriggerId;e!==null&&(this.triggers.has(e)||(this.activeTriggerId=null))}}class Br{static create(e){return Rn.set(new Br(e))}opts;#e=ue(!0);get isOpenDelayed(){return t(this.#e)}set isOpenDelayed(e){P(this.#e,e,!0)}isPointerInTransit=Fn(!1);#t;#r=ue(null);constructor(e){this.opts=e,this.#t=new kr(()=>{this.isOpenDelayed=!0},this.opts.skipDelayDuration.current),$r(()=>Wt(window,"scroll",r=>{const n=t(this.#r);if(!n)return;const s=n.triggerNode;if(!s)return;const i=r.target;(i instanceof Element||i instanceof Document)&&i.contains(s)&&n.handleClose()}))}#n=()=>{if(this.opts.skipDelayDuration.current===0){this.isOpenDelayed=!0;return}else this.#t.start()};#s=()=>{this.#t.stop()};onOpen=e=>{t(this.#r)&&t(this.#r)!==e&&t(this.#r).handleClose(),this.#s(),this.isOpenDelayed=!1,P(this.#r,e,!0)};onClose=e=>{t(this.#r)===e&&(P(this.#r,null),this.#n())};isTooltipOpen=e=>t(this.#r)===e}class Kr{static create(e){return Lr.set(new Kr(e,Rn.get()))}opts;provider;#e=u(()=>this.opts.delayDuration.current??this.provider.opts.delayDuration.current);get delayDuration(){return t(this.#e)}set delayDuration(e){P(this.#e,e)}#t=u(()=>this.opts.disableHoverableContent.current??this.provider.opts.disableHoverableContent.current);get disableHoverableContent(){return t(this.#t)}set disableHoverableContent(e){P(this.#t,e)}#r=u(()=>this.opts.disableCloseOnTriggerClick.current??this.provider.opts.disableCloseOnTriggerClick.current);get disableCloseOnTriggerClick(){return t(this.#r)}set disableCloseOnTriggerClick(e){P(this.#r,e)}#n=u(()=>this.opts.disabled.current??this.provider.opts.disabled.current);get disabled(){return t(this.#n)}set disabled(e){P(this.#n,e)}#s=u(()=>this.opts.ignoreNonKeyboardFocus.current??this.provider.opts.ignoreNonKeyboardFocus.current);get ignoreNonKeyboardFocus(){return t(this.#s)}set ignoreNonKeyboardFocus(e){P(this.#s,e)}registry;tether;#a=ue(null);get contentNode(){return t(this.#a)}set contentNode(e){P(this.#a,e,!0)}contentPresence;#o=ue(!1);#i;#l=u(()=>this.opts.open.current?t(this.#o)?"delayed-open":"instant-open":"closed");get stateAttr(){return t(this.#l)}set stateAttr(e){P(this.#l,e)}constructor(e,r){this.opts=e,this.provider=r,this.tether=e.tether.current?.state??null,this.registry=this.tether?.registry??new Ha,this.#i=new kr(()=>{P(this.#o,!0),this.opts.open.current=!0},this.delayDuration??0),this.tether&&(this.tether.root=this,$r(()=>()=>{this.tether?.root===this&&(this.tether.root=null)})),this.contentPresence=new $n({open:this.opts.open,ref:V(()=>this.contentNode),onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),it(()=>this.delayDuration,()=>{this.delayDuration!==void 0&&(this.#i=new kr(()=>{P(this.#o,!0),this.opts.open.current=!0},this.delayDuration))}),it(()=>this.opts.open.current,n=>{n?(this.ensureActiveTrigger(),this.provider.onOpen(this)):this.provider.onClose(this)},{lazy:!0}),it(()=>this.opts.triggerId.current,n=>{n!==this.registry.activeTriggerId&&this.registry.setActiveTrigger(n)}),it(()=>this.registry.activeTriggerId,n=>{this.opts.triggerId.current!==n&&(this.opts.triggerId.current=n)})}handleOpen=()=>{this.#i.stop(),P(this.#o,!1),this.ensureActiveTrigger(),this.opts.open.current=!0};handleClose=()=>{this.#i.stop(),this.opts.open.current=!1};cancelPendingOpen=()=>{this.#i.stop()};#d=()=>{this.#i.stop();const e=!this.provider.isOpenDelayed,r=this.delayDuration??0;e||r===0?(P(this.#o,!1),this.opts.open.current=!0):this.#i.start()};onTriggerEnter=e=>{this.setActiveTrigger(e),this.#d()};onTriggerLeave=()=>{this.disableHoverableContent?this.handleClose():this.#i.stop()};ensureActiveTrigger=()=>{if(this.registry.activeTriggerId!==null&&this.registry.has(this.registry.activeTriggerId))return;if(this.opts.triggerId.current!==null&&this.registry.has(this.opts.triggerId.current)){this.registry.setActiveTrigger(this.opts.triggerId.current);return}const e=this.registry.getFirstTriggerId();this.registry.setActiveTrigger(e)};setActiveTrigger=e=>{this.registry.setActiveTrigger(e)};registerTrigger=e=>{this.registry.register(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()};updateTrigger=e=>{this.registry.update(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()};unregisterTrigger=e=>{const r=this.registry.activeTriggerId===e;this.registry.unregister(e),r&&this.opts.open.current&&this.handleClose()};isActiveTrigger=e=>this.registry.activeTriggerId===e;get triggerNode(){return this.registry.activeTriggerNode}get activePayload(){return this.registry.activePayload}get activeTriggerId(){return this.registry.activeTriggerId}}class tr{static create(e){return e.tether.current?new tr(e,null,e.tether.current.state):new tr(e,Lr.get(),null)}opts;root;tether;attachment;#e=Fn(!1);#t=ue(!1);domContext;#r=null;#n=!1;#s=null;constructor(e,r,n){this.opts=e,this.root=r,this.tether=n,this.domContext=new On(e.ref),this.attachment=Ct(this.opts.ref,s=>this.#i(s)),it(()=>this.opts.id.current,()=>{this.#i(this.opts.ref.current)}),it(()=>this.opts.payload.current,()=>{this.#i(this.opts.ref.current)}),it(()=>this.opts.disabled.current,()=>{this.#i(this.opts.ref.current)}),$r(()=>(this.#n=!0,this.#i(this.opts.ref.current),()=>{const s=this.#a(),i=this.#s;i&&(this.tether?this.tether.registry.unregister(i):s?.unregisterTrigger(i)),this.#s=null,this.#n=!1}))}#a=()=>this.tether?.root??this.root;#o=()=>{const e=this.#a();return this.opts.disabled.current||!!e?.disabled};#i=e=>{if(!this.#n)return;const r=this.opts.id.current,n=this.opts.payload.current,s=this.opts.disabled.current;if(this.#s&&this.#s!==r){const d=this.#a();this.tether?this.tether.registry.unregister(this.#s):d?.unregisterTrigger(this.#s)}const i={id:r,node:e,payload:n,disabled:s},l=this.#a();this.tether?(this.tether.registry.has(r)?this.tether.registry.update(i):this.tether.registry.register(i),s&&this.tether.registry.activeTriggerId===r&&l?.opts.open.current&&l.handleClose()):l?.registry.has(r)?l.updateTrigger(i):l?.registerTrigger(i),this.#s=r};#l=()=>{this.#r!==null&&(clearTimeout(this.#r),this.#r=null)};handlePointerUp=()=>{this.#e.current=!1};#d=()=>{this.#o()||(this.#e.current=!1)};#g=()=>{if(this.#o())return;const e=this.#a();e&&!e.disableCloseOnTriggerClick&&(e.opts.open.current?e.handleClose():e.cancelPendingOpen()),this.#e.current=!0,this.domContext.getDocument().addEventListener("pointerup",()=>{this.handlePointerUp()},{once:!0})};#m=e=>{const r=this.#a();if(r){if(this.#o()){r.opts.open.current&&r.handleClose();return}if(e.pointerType!=="touch"){if(r.provider.isPointerInTransit.current){this.#l(),this.#r=window.setTimeout(()=>{r.provider.isPointerInTransit.current&&(r.provider.isPointerInTransit.current=!1,r.onTriggerEnter(this.opts.id.current),P(this.#t,!0))},250);return}r.onTriggerEnter(this.opts.id.current),P(this.#t,!0)}}};#b=e=>{const r=this.#a();if(r){if(this.#o()){r.opts.open.current&&r.handleClose();return}e.pointerType!=="touch"&&(t(this.#t)||(this.#l(),r.provider.isPointerInTransit.current=!1,r.onTriggerEnter(this.opts.id.current),P(this.#t,!0)))}};#c=e=>{const r=this.#a();if(!r||this.#o())return;if(this.#l(),!r.isActiveTrigger(this.opts.id.current)){P(this.#t,!1);return}const n=e.relatedTarget;if(_t(n)){for(const s of r.registry.triggers.values())if(s.node===n){if(r.provider.opts.skipDelayDuration.current>0){P(this.#t,!1);return}r.handleClose(),P(this.#t,!1);return}}r.onTriggerLeave(),P(this.#t,!1)};#u=e=>{const r=this.#a();if(r&&!this.#e.current){if(this.#o()){r.opts.open.current&&r.handleClose();return}r.ignoreNonKeyboardFocus&&!Js(e.currentTarget)||(r.setActiveTrigger(this.opts.id.current),r.handleOpen())}};#f=()=>{const e=this.#a();!e||this.#o()||e.handleClose()};#h=()=>{const e=this.#a();!e||e.disableCloseOnTriggerClick||this.#o()||e.handleClose()};#p=u(()=>{const e=this.#a(),r=!!(e?.opts.open.current&&e.isActiveTrigger(this.opts.id.current)),n=this.#o();return{id:this.opts.id.current,"aria-describedby":r?e?.contentNode?.id:void 0,"data-state":r?e?.stateAttr:"closed","data-disabled":or(n),"data-delay-duration":`${e?.delayDuration??0}`,[Gn.trigger]:"",tabindex:n?void 0:this.opts.tabindex.current,disabled:this.opts.disabled.current,onpointerup:this.#d,onpointerdown:this.#g,onpointerenter:this.#m,onpointermove:this.#b,onpointerleave:this.#c,onfocus:this.#u,onblur:this.#f,onclick:this.#h,...this.attachment}});get props(){return t(this.#p)}set props(e){P(this.#p,e)}}class Hr{static create(e){return new Hr(e,Lr.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=Ct(this.opts.ref,n=>this.root.contentNode=n),new Cs({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&!this.root.disableHoverableContent,transitIntentTimeout:180,ignoredTargets:()=>{if(this.root.provider.opts.skipDelayDuration.current===0)return[];const n=[],s=this.root.triggerNode;for(const i of this.root.registry.triggers.values())i.node&&i.node!==s&&n.push(i.node);return n},onPointerExit:()=>{this.root.provider.isTooltipOpen(this.root)&&this.root.handleClose()}})}onInteractOutside=e=>{if(_t(e.target)&&this.root.triggerNode?.contains(e.target)&&this.root.disableCloseOnTriggerClick){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current?.(e),!e.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=e=>{e.preventDefault()};onCloseAutoFocus=e=>{e.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#e=u(()=>({open:this.root.opts.open.current}));get snippetProps(){return t(this.#e)}set snippetProps(e){P(this.#e,e)}#t=u(()=>({id:this.opts.id.current,"data-state":this.root.stateAttr,"data-disabled":or(this.root.disabled),...En(this.root.contentPresence.transitionStatus),style:{outline:"none"},[Gn.content]:"",...this.attachment}));get props(){return t(this.#t)}set props(e){P(this.#t,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus}}function qa(o,e){xe(e,!0);let r=k(e,"open",15,!1),n=k(e,"triggerId",15,null),s=k(e,"onOpenChange",3,tt),i=k(e,"onOpenChangeComplete",3,tt);const l=Kr.create({open:V(()=>r(),d=>{r(d),s()(d)}),triggerId:V(()=>n(),d=>{n(d)}),delayDuration:V(()=>e.delayDuration),disableCloseOnTriggerClick:V(()=>e.disableCloseOnTriggerClick),disableHoverableContent:V(()=>e.disableHoverableContent),ignoreNonKeyboardFocus:V(()=>e.ignoreNonKeyboardFocus),disabled:V(()=>e.disabled),onOpenChangeComplete:V(()=>i()),tether:V(()=>e.tether)});xn(o,{tooltip:!0,children:(d,c)=>{var g=Z(),_=y(g);Me(_,()=>e.children??Re,()=>({open:l.opts.open.current,triggerId:l.activeTriggerId,payload:l.activePayload})),a(d,g)},$$slots:{default:!0}}),_e()}var Ua=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","side","sideOffset","align","avoidCollisions","arrowPadding","sticky","strategy","hideWhenDetached","customAnchor","collisionPadding","onInteractOutside","onEscapeKeydown","forceMount","style"]),sn=x("<div><div><!></div></div>");function Ga(o,e){const r=pt();xe(e,!0);let n=k(e,"id",19,()=>mt(r)),s=k(e,"ref",15,null),i=k(e,"side",3,"top"),l=k(e,"sideOffset",3,0),d=k(e,"align",3,"center"),c=k(e,"avoidCollisions",3,!0),g=k(e,"arrowPadding",3,0),_=k(e,"sticky",3,"partial"),f=k(e,"hideWhenDetached",3,!1),p=k(e,"collisionPadding",3,0),b=k(e,"onInteractOutside",3,tt),w=k(e,"onEscapeKeydown",3,tt),v=k(e,"forceMount",3,!1),M=me(e,Ua);const O=Hr.create({id:V(()=>n()),ref:V(()=>s(),$=>s($)),onInteractOutside:V(()=>b()),onEscapeKeydown:V(()=>w())}),ne=u(()=>({side:i(),sideOffset:l(),align:d(),avoidCollisions:c(),arrowPadding:g(),sticky:_(),hideWhenDetached:f(),collisionPadding:p(),strategy:e.strategy,customAnchor:e.customAnchor??O.root.triggerNode})),le=u(()=>Ye(M,t(ne),O.props));var L=Z(),q=y(L);{var m=$=>{{const X=(B,ae)=>{let T=()=>(ae?.()).props,R=()=>(ae?.()).wrapperProps;const I=u(()=>Ye(R(),{style:{pointerEvents:O.root.disableHoverableContent?"none":void 0}})),F=u(()=>Ye(T(),{style:Zt("tooltip")},{style:e.style}));var Q=Z(),se=y(Q);{var de=J=>{var Y=Z(),ee=y(Y);{let be=u(()=>({props:t(F),wrapperProps:t(I),...O.snippetProps}));Me(ee,()=>e.child,()=>t(be))}a(J,Y)},ye=J=>{var Y=sn();Ge(Y,()=>({...t(I)}));var ee=S(Y);Ge(ee,()=>({...t(F)}));var be=S(ee);Me(be,()=>e.children??Re),C(ee),C(Y),a(J,Y)};D(se,J=>{e.child?J(de):J(ye,-1)})}a(B,Q)};let G=u(()=>O.root.disableHoverableContent?"none":"auto");_n($,ge(()=>t(le),()=>O.popperProps,{get enabled(){return O.root.opts.open.current},get id(){return n()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!0,get ref(){return O.opts.ref},tooltip:!0,get shouldRender(){return O.shouldRender},get contentPointerEvents(){return t(G)},popper:X,$$slots:{popper:!0}}))}},A=$=>{{const X=(B,ae)=>{let T=()=>(ae?.()).props,R=()=>(ae?.()).wrapperProps;const I=u(()=>Ye(R(),{style:{pointerEvents:O.root.disableHoverableContent?"none":void 0}})),F=u(()=>Ye(T(),{style:Zt("tooltip")},{style:e.style}));var Q=Z(),se=y(Q);{var de=J=>{var Y=Z(),ee=y(Y);{let be=u(()=>({props:t(F),wrapperProps:t(I),...O.snippetProps}));Me(ee,()=>e.child,()=>t(be))}a(J,Y)},ye=J=>{var Y=sn();Ge(Y,()=>({...t(I)}));var ee=S(Y);Ge(ee,()=>({...t(F)}));var be=S(ee);Me(be,()=>e.children??Re),C(ee),C(Y),a(J,Y)};D(se,J=>{e.child?J(de):J(ye,-1)})}a(B,Q)};let G=u(()=>O.root.disableHoverableContent?"none":"auto");yn($,ge(()=>t(le),()=>O.popperProps,{get open(){return O.root.opts.open.current},get id(){return n()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!1,get ref(){return O.opts.ref},tooltip:!0,get shouldRender(){return O.shouldRender},get contentPointerEvents(){return t(G)},popper:X,$$slots:{popper:!0}}))}};D(q,$=>{v()?$(m):v()||$(A,1)})}a(o,L),_e()}var Ra=new Set(["$$slots","$$events","$$legacy","children","child","id","disabled","payload","tether","type","tabindex","ref"]),Ya=x("<button><!></button>");function Va(o,e){const r=pt();xe(e,!0);let n=k(e,"id",19,()=>mt(r)),s=k(e,"disabled",3,!1),i=k(e,"type",3,"button"),l=k(e,"tabindex",3,0),d=k(e,"ref",15,null),c=me(e,Ra);const g=tr.create({id:V(()=>n()),disabled:V(()=>s()??!1),tabindex:V(()=>l()??0),payload:V(()=>e.payload),tether:V(()=>e.tether),ref:V(()=>d(),v=>d(v))}),_=u(()=>Ye(c,g.props,{type:i()}));var f=Z(),p=y(f);{var b=v=>{var M=Z(),O=y(M);Me(O,()=>e.child,()=>({props:t(_)})),a(v,M)},w=v=>{var M=Ya();Ge(M,()=>({...t(_)}));var O=S(M);Me(O,()=>e.children??Re),C(M),a(v,M)};D(p,v=>{e.child?v(b):v(w,-1)})}a(o,f),_e()}var Xa=new Set(["$$slots","$$events","$$legacy","ref"]);function Ja(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=me(e,Xa);oa(o,ge(()=>n,{get ref(){return r()},set ref(s){r(s)}})),_e()}function Za(o,e){xe(e,!0);let r=k(e,"delayDuration",3,700),n=k(e,"disableCloseOnTriggerClick",3,!1),s=k(e,"disableHoverableContent",3,!1),i=k(e,"disabled",3,!1),l=k(e,"ignoreNonKeyboardFocus",3,!1),d=k(e,"skipDelayDuration",3,300);Br.create({delayDuration:V(()=>r()),disableCloseOnTriggerClick:V(()=>n()),disableHoverableContent:V(()=>s()),disabled:V(()=>i()),ignoreNonKeyboardFocus:V(()=>l()),skipDelayDuration:V(()=>d())});var c=Z(),g=y(c);Me(g,()=>e.children??Re),a(o,c),_e()}const Qa=6;function ei(o,e){return e.needsYou-o.needsYou||e.underWay-o.underWay||(e.lastActivity??0)-(o.lastActivity??0)||e.queued-o.queued}function ti(o,e,r){const n=new Map(o.map(s=>[s.id,[]]));for(const s of e)n.get(s.projectId)?.push(s);return new Map(o.map(s=>[s.id,ys(n.get(s.id)??[],r)]))}const rr=(o,e)=>o.name.localeCompare(e.name,void 0,{sensitivity:"base"});function ri(o,e,r){const n=r.limit??Qa,s=new Set(r.pinned),i=o.filter(p=>s.has(p.id)),l={underWay:0,needsYou:0,landed:0,queued:0,lastActivity:null},d=p=>e.get(p.id)??l,c=o.filter(p=>!s.has(p.id)).toSorted((p,b)=>ei(d(p),d(b))||rr(p,b)),g=c.slice(0,Math.max(0,n-i.length)),_=r.current?c.find(p=>p.id===r.current):void 0;_&&!g.includes(_)&&g.push(_);const f=new Set(g.map(p=>p.id));return{pinned:i,top:g,rest:c.filter(p=>!f.has(p.id)).toSorted(rr)}}function ni(o,e,r=[],n={}){const s=e.trim().toLowerCase();if(!s)return o.toSorted(rr);const i=new Set(r),l=d=>{const c=[d.name,n[d.id]].filter(Boolean).map(g=>g.toLowerCase());return c.some(g=>g.startsWith(s))?0:c.some(g=>g.split(/[\s\-_.:/]+/).some(_=>_.startsWith(s)))?1:c.some(g=>g.includes(s))||d.id.toLowerCase().includes(s)?2:-1};return o.map(d=>({p:d,r:l(d)})).filter(d=>d.r>=0).toSorted((d,c)=>d.r-c.r||Number(i.has(c.p.id))-Number(i.has(d.p.id))||rr(d.p,c.p)).map(d=>d.p)}function si(o){try{const e=o?JSON.parse(o):[];return Array.isArray(e)?[...new Set(e.filter(r=>typeof r=="string"))]:[]}catch{return[]}}const pr="wheelhouse-pinned-projects";class oi{#e=ue(gt([]));get ids(){return t(this.#e)}set ids(e){P(this.#e,e,!0)}loaded=!1;load(){if(!this.loaded){this.loaded=!0,this.read();try{window.addEventListener("storage",e=>{e.key===pr&&this.read()})}catch{}}}has(e){return this.ids.includes(e)}toggle(e){this.ids=this.has(e)?this.ids.filter(r=>r!==e):[...this.ids,e];try{localStorage.setItem(pr,JSON.stringify(this.ids))}catch{}}read(){try{this.ids=si(localStorage.getItem(pr))}catch{this.ids=[]}}}const Nt=new oi;var ai=x('<p class="px-2 py-3 text-sm text-muted-foreground"> </p>'),ii=x('<p class="px-2 pt-2 pb-1 text-xs font-medium tracking-wide text-muted-foreground uppercase"> </p>'),li=x('<div class="-mx-1 my-1 h-px bg-border" role="separator"></div>'),di=x('<p class="truncate px-2 pt-1.5 pb-0.5 text-xs text-muted-foreground"> </p>'),ci=x('<span aria-hidden="true"> </span> <input class="-my-1 min-w-0 flex-1 rounded border border-ring bg-card px-1.5 py-0.5 text-sm text-foreground outline-none"/>',1),ui=x('<span class="project-name"><span class="project-prefix"> </span><span class="truncate"> </span></span>'),hi=x('<span class="min-w-0 flex-1 truncate"> </span>'),pi=x('<span aria-hidden="true"> </span> <!>',1),fi=x('<span class="flex w-[1.45rem] shrink-0 justify-center" aria-hidden="true"><span class="thread-dot"></span></span>'),vi=x('<!> <span class="min-w-0 flex-1 truncate"> </span>',1),gi=x('<span class="tabular text-xs whitespace-nowrap text-sea"> </span>'),mi=x('<span class="tabular text-xs whitespace-nowrap text-muted-foreground"> </span>'),bi=x('<button type="button" tabindex="-1" class="-my-1 rounded p-1 text-muted-foreground opacity-0 group-hover:opacity-100 group-aria-selected:opacity-100 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring max-md:my-0 max-md:grid max-md:size-11 max-md:place-items-center pointer-coarse:opacity-100"><!></button> <button type="button" tabindex="-1"><!></button>',1),xi=x('<div role="option" tabindex="-1"><!> <!> <!> <!> <!></div>'),on=x("<!> <!>",1),_i=x('<div class="flex flex-col"><label class="flex items-center gap-2 border-b border-hair px-3 max-md:px-5"><!> <input type="search" role="combobox" aria-expanded="true" aria-autocomplete="list" aria-label="Find a project" placeholder="Find a project…" autocomplete="off" spellcheck="false" class="h-10 min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground max-md:h-12 max-md:text-base [&amp;::-webkit-search-cancel-button]:hidden"/></label> <div role="listbox" aria-label="Projects" class="max-h-[min(24rem,60dvh)] overflow-y-auto p-1 max-md:max-h-none max-md:px-2 max-md:pb-3"><!> <!></div></div>');function yi(o,e){const r=pt();xe(e,!0);let n=k(e,"topics",19,()=>[]);const s={id:"all",name:"All projects"};let i=ue(""),l=ue(0),d=ue(null),c=ue(null);wt(()=>{Nt.load(),$t.load(),P(l,Math.max(0,t(f).findIndex(T=>T.id===e.current)),!0)});const g=u(()=>yr(e.projects,$t.names)),_=u(()=>{const T=t(i).trim()?null:ri(e.projects,e.stats,{pinned:Nt.ids,current:e.current});return(T?[{label:null,options:[s]},{label:"Chat topics",options:n()},{label:"Pinned",options:T.pinned},{label:"Most active",options:T.top},{label:T.pinned.length||T.top.length?"Other projects":"Projects",options:T.rest}]:[{label:null,options:ni(e.projects,t(i),Nt.ids,$t.names)},{label:"Chat topics",options:n().filter(I=>I.name.toLowerCase().includes(t(i).trim().toLowerCase()))}]).map(I=>({...I,options:Yr(I.options,t(g)).flatMap(F=>F.items)})).filter(I=>I.options.length)}),f=u(()=>t(_).flatMap(T=>T.options));function p(T){P(i,T,!0),P(l,0)}at(()=>{t(c)?.querySelector(`#${CSS.escape(`${r}-${t(l)}`)}`)?.scrollIntoView?.({block:"nearest"})});function b(T){const R=t(f).length;if(T.key==="ArrowDown"||T.key==="ArrowUp")T.preventDefault(),R&&P(l,(t(l)+(T.key==="ArrowDown"?1:R-1))%R);else if(T.key==="Enter"){T.preventDefault();const I=t(f)[t(l)];I&&e.onpick(I.id)}}function w(){t(d)?.focus()}let v=ue(null),M=ue("");function O(T){P(M,$t.names[T]??t(g).get(T)?.label??T,!0),P(v,T,!0)}function ne(){if(!t(v))return;const T=yr(e.projects).get(t(v))?.label;$t.set(t(v),t(M).trim()===T?"":t(M)),P(v,null),t(d)?.focus()}const le=T=>{T.focus(),T.select()};var L={focus:w},q=_i(),m=S(q),A=S(m);As(A,{class:"size-4 shrink-0 text-muted-foreground","aria-hidden":"true"});var $=h(A,2);Ur($),Jt($,T=>P(d,T),()=>t(d)),C(m);var X=h(m,2),G=S(X);{var B=T=>{var R=ai(),I=re(R);j(F=>z(I,`No project matches “${F??""}”.`),[()=>t(i).trim()]),a(T,R)};D(G,T=>{t(f).length||T(B)})}var ae=h(G,2);return Je(ae,19,()=>t(_),(T,R)=>T.label??`g${R}`,(T,R,I)=>{var F=on(),Q=y(F);{var se=J=>{var Y=ii(),ee=re(Y,!0);j(()=>z(ee,t(R).label)),a(J,Y)},de=J=>{var Y=li();a(J,Y)};D(Q,J=>{t(R).label?J(se):t(I)>0&&J(de,1)})}var ye=h(Q,2);Je(ye,17,()=>Yr(t(R).options,t(g)),J=>J.group?`g:${J.group}`:`p:${J.items[0].id}`,(J,Y)=>{var ee=on(),be=y(ee);{var $e=Oe=>{var ie=di(),Ie=re(ie,!0);j(()=>{ce(ie,"title",t(Y).group),z(Ie,t(Y).group)}),a(Oe,ie)};D(be,Oe=>{t(Y).group&&Oe($e)})}var De=h(be,2);Je(De,17,()=>t(Y).items,Oe=>Oe.id,(Oe,ie)=>{const Ie=u(()=>t(f).indexOf(t(ie))),Ze=u(()=>e.needCount(t(ie).id)),E=u(()=>Nt.has(t(ie).id)),H=u(()=>t(g).get(t(ie).id)),we=u(()=>"hue"in t(ie)),Pe=u(()=>e.counts?.get(t(ie).id));var he=xi(),qe=S(he);{var rt=K=>{var te=ci(),pe=y(te),ze=re(pe,!0),ke=h(pe,2);Ur(ke),gn(()=>Is(ke,()=>t(M),fe=>P(M,fe))),Ps(ke,fe=>le?.(fe)),j(()=>{je(pe,1,`project-tile ${t(Y).group?"ml-3":""}`),ce(pe,"data-hue",t(H)?.hue),z(ze,t(H)?.monogram),ce(ke,"aria-label",`Friendly name for ${t(H)?.full??t(ie).name??""}`),ce(ke,"placeholder",t(H)?.full??t(ie).name)}),Xt("blur",ke,ne),st("click",ke,fe=>fe.stopPropagation()),st("keydown",ke,fe=>{fe.stopPropagation(),fe.key==="Enter"?(fe.preventDefault(),ne()):fe.key==="Escape"&&(fe.preventDefault(),P(v,null),t(d)?.focus())}),a(K,te)},Fe=K=>{var te=pi(),pe=y(te),ze=re(pe,!0),ke=h(pe,2);{var fe=Be=>{var Ue=ui(),Ve=S(Ue),Et=re(Ve),Kt=h(Ve),lr=re(Kt,!0);C(Ue),j(()=>{ce(Ue,"title",t(H).full),z(Et,`${t(H).group??""} ›`),z(lr,t(H).label)}),a(Be,Ue)},Ne=Be=>{var Ue=hi(),Ve=re(Ue,!0);j(()=>{ce(Ue,"title",t(H).full),z(Ve,t(H).label)}),a(Be,Ue)};D(ke,Be=>{t(H).group&&!t(Y).group&&t(H).label!==t(H).full?Be(fe):Be(Ne,-1)})}j(()=>{je(pe,1,`project-tile ${t(Y).group?"ml-3":""}`),ce(pe,"data-hue",t(H).hue),z(ze,t(H).monogram)}),a(K,te)},Qe=K=>{var te=vi(),pe=y(te);{var ze=Ne=>{var Be=fi(),Ue=re(Be);j(()=>ce(Ue,"data-hue",t(ie).hue??void 0)),a(Ne,Be)};D(pe,Ne=>{t(we)&&Ne(ze)})}var ke=h(pe,2),fe=re(ke,!0);j(()=>z(fe,t(ie).name)),a(K,te)};D(qe,K=>{t(v)===t(ie).id?K(rt):t(H)?K(Fe,1):K(Qe,-1)})}var Xe=h(qe,2);{var Le=K=>{var te=gi(),pe=re(te);j(()=>z(pe,`${t(Ze)??""} need you`)),a(K,te)};D(Xe,K=>{t(Ze)&&K(Le)})}var Ce=h(Xe,2);{var U=K=>{var te=mi(),pe=re(te,!0);j(()=>{ce(te,"title",`${t(Pe)??""} in the chat`),z(pe,t(Pe))}),a(K,te)};D(Ce,K=>{t(Pe)&&K(U)})}var N=h(Ce,2);{var W=K=>{It(K,{class:"size-4 shrink-0","aria-label":"Selected"})};D(N,K=>{e.current===t(ie).id&&K(W)})}var ve=h(N,2);{var Ae=K=>{var te=bi(),pe=y(te),ze=S(pe);zo(ze,{class:"size-3.5"}),C(pe);var ke=h(pe,2),fe=S(ke);{let Ne=u(()=>t(E)?"currentColor":"none");jo(fe,{class:"size-3.5",get fill(){return t(Ne)}})}C(ke),j(()=>{ce(pe,"aria-label",`Rename ${t(H)?.full??t(ie).name??""}`),je(ke,1,`-my-1 rounded p-1 text-muted-foreground hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring max-md:my-0 max-md:grid max-md:size-11 max-md:place-items-center ${t(E)?"":"opacity-0 group-hover:opacity-100 group-aria-selected:opacity-100 pointer-coarse:opacity-100"}`),ce(ke,"aria-label",t(E)?`Unpin ${t(ie).name}`:`Pin ${t(ie).name}`),ce(ke,"aria-pressed",t(E))}),st("click",pe,Ne=>{Ne.stopPropagation(),O(t(ie).id)}),st("click",ke,Ne=>{Ne.stopPropagation(),Nt.toggle(t(ie).id),t(d)?.focus()}),a(K,te)};D(ve,K=>{t(ie).id!=="all"&&!t(we)&&t(v)!==t(ie).id&&K(Ae)})}C(he),j(()=>{ce(he,"id",`${r}-${t(Ie)??""}`),ce(he,"aria-selected",t(Ie)===t(l)),ce(he,"data-project",t(ie).id),je(he,1,`group flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm select-none max-md:min-h-12 max-md:rounded-md max-md:py-1 ${t(Ie)===t(l)?"bg-accent text-accent-foreground":""}`)}),st("mousemove",he,()=>P(l,t(Ie),!0)),st("click",he,()=>e.onpick(t(ie).id)),st("keydown",he,()=>{}),a(Oe,he)}),a(J,ee)}),a(T,F)}),C(X),Jt(X,T=>P(c,T),()=>t(c)),C(q),j(()=>{is($,t(i)),ce($,"aria-controls",`${r}-list`),ce($,"aria-activedescendant",t(f).length?`${r}-${t(l)}`:void 0),ce(X,"id",`${r}-list`)}),st("input",$,T=>p(T.currentTarget.value)),st("keydown",$,b),a(o,q),_e(L)}nr(["input","keydown","mousemove","click"]);var wi=new Set(["$$slots","$$events","$$legacy"]);function ki(o,e){let r=me(e,wi);var n=Z(),s=y(n);oe(s,()=>ar,(i,l)=>{l(i,ge(()=>r))}),a(o,n)}var Ci=new Set(["$$slots","$$events","$$legacy","ref","class","sideOffset","side","children","arrowClasses","portalProps"]),Pi=x("<div></div>"),Ti=x("<!> <!>",1);function Yn(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=k(e,"sideOffset",3,0),s=k(e,"side",3,"top"),i=me(e,Ci);ki(o,ge(()=>e.portalProps,{children:(l,d)=>{var c=Z(),g=y(c);{let _=u(()=>yt("z-50 inline-flex w-fit max-w-xs origin-(--bits-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e.class));oe(g,()=>Ga,(f,p)=>{p(f,ge({"data-slot":"tooltip-content",get sideOffset(){return n()},get side(){return s()},get class(){return t(_)}},()=>i,{get ref(){return r()},set ref(b){r(b)},children:(b,w)=>{var v=Ti(),M=y(v);Me(M,()=>e.children??Re);var O=h(M,2);{const ne=(le,L)=>{let q=()=>(L?.()).props;var m=Pi();Ge(m,A=>({class:A,...q()}),[()=>yt("z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:-translate-x-1/2 data-[side=bottom]:-translate-y-[calc(-50%_+_1px)] data-[side=left]:-translate-y-[calc(50%_-_3px)] data-[side=right]:translate-x-[calc(50%_+_2px)] data-[side=right]:translate-y-1/2 data-[side=top]:translate-x-1/2 data-[side=top]:translate-y-[calc(-50%_+_2px)]",e.arrowClasses)]),a(le,m)};oe(O,()=>Ja,(le,L)=>{L(le,{child:ne,$$slots:{child:!0}})})}a(b,v)},$$slots:{default:!0}}))})}a(l,c)},$$slots:{default:!0}})),_e()}var Si=new Set(["$$slots","$$events","$$legacy","delayDuration"]);function Mi(o,e){let r=k(e,"delayDuration",3,0),n=me(e,Si);var s=Z(),i=y(s);oe(i,()=>Za,(l,d)=>{d(l,ge({get delayDuration(){return r()}},()=>n))}),a(o,s)}var $i=new Set(["$$slots","$$events","$$legacy","ref"]);function Rt(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=me(e,$i);var s=Z(),i=y(s);oe(i,()=>Va,(l,d)=>{d(l,ge({"data-slot":"tooltip-trigger"},()=>n,{get ref(){return r()},set ref(c){r(c)}}))}),a(o,s),_e()}var Ii=new Set(["$$slots","$$events","$$legacy","open"]);function Yt(o,e){xe(e,!0);let r=k(e,"open",15,!1),n=me(e,Ii);var s=Z(),i=y(s);oe(i,()=>qa,(l,d)=>{d(l,ge(()=>n,{get open(){return r()},set open(c){r(c)}}))}),a(o,s),_e()}var Ai=new Set(["$$slots","$$events","$$legacy","ref","checked","indeterminate","class","children","closeOnSelect"]),Oi=x('<span class="pointer-events-none absolute right-2 flex items-center justify-center" data-slot="dropdown-menu-checkbox-item-indicator"><!></span> <!>',1);function fr(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=k(e,"checked",15,!1),s=k(e,"indeterminate",15,!1),i=k(e,"closeOnSelect",3,!1),l=me(e,Ai);var d=Z(),c=y(d);{const g=(f,p)=>{let b=()=>(p?.()).checked,w=()=>(p?.()).indeterminate;var v=Oi(),M=y(v),O=S(M);{var ne=q=>{oo(q,{})},le=q=>{It(q,{})};D(O,q=>{w()?q(ne):b()&&q(le,1)})}C(M);var L=h(M,2);Me(L,()=>e.children??Re),a(f,v)};let _=u(()=>yt("relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e.class));oe(c,()=>Fa,(f,p)=>{p(f,ge({get closeOnSelect(){return i()},"data-slot":"dropdown-menu-checkbox-item",get class(){return t(_)}},()=>l,{get ref(){return r()},set ref(b){r(b)},get checked(){return n()},set checked(b){n(b)},get indeterminate(){return s()},set indeterminate(b){s(b)},children:g,$$slots:{default:!0}}))})}a(o,d),_e()}var Ei=new Set(["$$slots","$$events","$$legacy"]);function Di(o,e){let r=me(e,Ei);var n=Z(),s=y(n);oe(s,()=>ar,(i,l)=>{l(i,ge(()=>r))}),a(o,n)}var Ni=new Set(["$$slots","$$events","$$legacy","ref","sideOffset","align","portalProps","class"]);function Fi(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=k(e,"sideOffset",3,4),s=k(e,"align",3,"start"),i=me(e,Ni);Di(o,ge(()=>e.portalProps,{children:(l,d)=>{var c=Z(),g=y(c);{let _=u(()=>yt("z-50 max-h-(--bits-dropdown-menu-content-available-height) w-(--bits-dropdown-menu-anchor-width) min-w-32 origin-(--bits-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95",e.class));oe(g,()=>ja,(f,p)=>{p(f,ge({"data-slot":"dropdown-menu-content",get sideOffset(){return n()},get align(){return s()},get class(){return t(_)}},()=>i,{get ref(){return r()},set ref(b){r(b)}}))})}a(l,c)},$$slots:{default:!0}})),_e()}var zi=new Set(["$$slots","$$events","$$legacy","ref"]);function vr(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=me(e,zi);var s=Z(),i=y(s);oe(i,()=>Ia,(l,d)=>{d(l,ge({"data-slot":"dropdown-menu-group"},()=>n,{get ref(){return r()},set ref(c){r(c)}}))}),a(o,s),_e()}var Wi=new Set(["$$slots","$$events","$$legacy","ref","class","inset","variant"]);function an(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=k(e,"variant",3,"default"),s=me(e,Wi);var i=Z(),l=y(i);{let d=u(()=>yt("group/dropdown-menu-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",e.class));oe(l,()=>Sa,(c,g)=>{g(c,ge({"data-slot":"dropdown-menu-item",get"data-inset"(){return e.inset},get"data-variant"(){return n()},get class(){return t(d)}},()=>s,{get ref(){return r()},set ref(_){r(_)}}))})}a(o,i),_e()}var ji=new Set(["$$slots","$$events","$$legacy","ref","class","inset","children"]),Li=x("<div><!></div>");function gr(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=me(e,ji);var s=Li();Ge(s,l=>({"data-slot":"dropdown-menu-label","data-inset":e.inset,class:l,...n}),[()=>yt("px-2 py-1.5 text-xs font-medium text-muted-foreground data-inset:pl-8",e.class)]);var i=S(s);Me(i,()=>e.children??Re),C(s),Jt(s,l=>r(l),()=>r()),a(o,s),_e()}var Bi=new Set(["$$slots","$$events","$$legacy","ref","class"]);function ln(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=me(e,Bi);var s=Z(),i=y(s);{let l=u(()=>yt("-mx-1 my-1 h-px bg-border",e.class));oe(i,()=>Ea,(d,c)=>{c(d,ge({"data-slot":"dropdown-menu-separator",get class(){return t(l)}},()=>n,{get ref(){return r()},set ref(g){r(g)}}))})}a(o,s),_e()}var Ki=new Set(["$$slots","$$events","$$legacy","ref"]);function Hi(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=me(e,Ki);var s=Z(),i=y(s);oe(i,()=>Ka,(l,d)=>{d(l,ge({"data-slot":"dropdown-menu-trigger"},()=>n,{get ref(){return r()},set ref(c){r(c)}}))}),a(o,s),_e()}var qi=new Set(["$$slots","$$events","$$legacy","open"]);function Ui(o,e){xe(e,!0);let r=k(e,"open",15,!1),n=me(e,qi);var s=Z(),i=y(s);oe(i,()=>za,(l,d)=>{d(l,ge(()=>n,{get open(){return r()},set open(c){r(c)}}))}),a(o,s),_e()}const Gi=587,Ri=[[.5,.35,2.8],[1,.6,2.2],[1.2,.3,1.6],[1.5,.22,1.3],[2,.4,1.1],[2.74,.12,.7],[3.76,.08,.45]],Yi=.42,Vi=.16;let St=null;function Vt(){try{const o=globalThis.AudioContext??globalThis.webkitAudioContext;if(!o)return;St??=new o,St.state==="suspended"&&St.resume();const e=St.currentTime+.02;dn(St,e),dn(St,e+Yi)}catch{}}function dn(o,e){const r=o.createGain();r.gain.value=Vi,r.connect(o.destination);for(const[n,s,i]of Ri){const l=o.createOscillator(),d=o.createGain();l.type="sine",l.frequency.value=Gi*n,d.gain.setValueAtTime(1e-4,e),d.gain.exponentialRampToValueAtTime(s,e+.004),d.gain.exponentialRampToValueAtTime(1e-4,e+i),l.connect(d).connect(r),l.start(e),l.stop(e+i+.05)}}const Ht="wheelhouse-bell",cn="wheelhouse-bell-seen",Ft="wheelhouse-bell-dismissed",Xi="wheelhouse-bell",Ji=400,Zi=12,Qi=12,el=400,Vn={sound:!1,notify:!1,kinds:{"pr-green":!0,question:!0,stuck:!0,landed:!0,issue:!0}};function qr(o){return Wn.find(e=>e.kind===o)?.label??o}function Mt(o,e){try{const r=localStorage.getItem(o);return r?JSON.parse(r):e}catch{return e}}function mr(o,e){try{localStorage.setItem(o,JSON.stringify(e))}catch{}}function un(o){const e=o&&typeof o=="object"?o:{},r={...Vn.kinds};for(const n of Object.keys(r))typeof e.kinds?.[n]=="boolean"&&(r[n]=e.kinds[n]);return{sound:e.sound===!0,notify:e.notify===!0,kinds:r}}function hn(o,e,r=Ji){return o.includes(e)?!1:(o.push(e),o.length>r&&o.splice(0,o.length-r),!0)}class tl{#e=ue(gt(Vn));get settings(){return t(this.#e)}set settings(e){P(this.#e,e,!0)}#t=ue(gt([]));get toasts(){return t(this.#t)}set toasts(e){P(this.#t,e,!0)}#r=ue(gt([]));get log(){return t(this.#r)}set log(e){P(this.#r,e,!0)}#n=ue(0);get unread(){return t(this.#n)}set unread(e){P(this.#n,e,!0)}#s=ue("default");get permission(){return t(this.#s)}set permission(e){P(this.#s,e,!0)}#a=ue(gt({}));get notes(){return t(this.#a)}set notes(e){P(this.#a,e,!0)}dismissed=[];raisedAt=new Map;rang=new Set;channel=null;started=!1;start(){if(this.started)return()=>{};this.started=!0,this.settings=un(Mt(Ht,null)),this.dismissed=Mt(Ft,[]),this.permission=typeof Notification>"u"?"unsupported":Notification.permission,He.claim=n=>{const s=Mt(cn,[]),i=hn(s,ut(n));return i&&mr(cn,s),i};const e=He.onAlert(n=>this.receive(n)),r=n=>{n.key===Ht&&(this.settings=un(Mt(Ht,null))),n.key===Ft&&(this.dismissed=Mt(Ft,[]),this.toasts=this.toasts.filter(s=>!this.dismissed.includes(ut(s.alert))))};return addEventListener("storage",r),typeof BroadcastChannel<"u"&&(this.channel=new BroadcastChannel(Xi),this.channel.onmessage=n=>{n.data?.t==="rang"&&this.rang.add(n.data.id)}),()=>{e(),removeEventListener("storage",r),this.channel?.close(),this.channel=null,He.claim=()=>!0,this.started=!1}}receive(e){if(e.type==="settled"){this.toasts=this.toasts.filter(n=>n.alert.id!==e.data);return}const r=e.type==="alert"?[{alert:e.data,fresh:e.fresh}]:e.data;for(const{alert:n,fresh:s}of r){const i=Date.parse(n.at);if(i<(this.raisedAt.get(n.id)??-1/0))continue;this.raisedAt.set(n.id,i),this.log=[n,...this.log.filter(d=>d.id!==n.id)].sort((d,c)=>Date.parse(c.at)-Date.parse(d.at)).slice(0,Zi);const l=ut(n);!this.settings.kinds[n.kind]||this.dismissed.includes(l)||this.toasts.some(d=>ut(d.alert)===l)||(s?(this.unread++,this.show({alert:n,fresh:s}),this.ring(n)):n.captain&&Vr(n,He.fleet)&&this.show({alert:n,fresh:s}))}}show(e){const r=[...this.toasts.filter(n=>n.alert.id!==e.alert.id),e];for(;r.length>Qi;){const n=r.findIndex(s=>!s.alert.captain);r.splice(n===-1?0:n,1)}this.toasts=r}dismiss(e){const r=ut(e);this.toasts=this.toasts.filter(s=>ut(s.alert)!==r);const n=Mt(Ft,[]);hn(n,r)&&mr(Ft,n),this.dismissed=n}expire(e){this.toasts=this.toasts.filter(r=>r.alert.id!==e||r.alert.captain)}prune(){const e=He.fleet;if(!e)return;const r=this.toasts.filter(n=>Vr(n.alert,e));r.length!==this.toasts.length&&(this.toasts=r)}update(e){this.settings={...this.settings,...e},mr(Ht,this.settings)}setKind(e,r){this.update({kinds:{...this.settings.kinds,[e]:r}}),r||(this.toasts=this.toasts.filter(n=>n.alert.kind!==e))}async setNotify(e){if(!e||typeof Notification>"u"){this.update({notify:!1});return}let r=Notification.permission;r==="default"&&(r=await Notification.requestPermission()),this.permission=r,this.update({notify:r==="granted"})}setSound(e){this.update({sound:e}),e&&Vt()}opened(){this.unread=0}async act(e,r=""){if(e.kind==="open"){e.external?window.open(e.href,"_blank","noopener,noreferrer"):await jt(e.href);return}const n=this.notes[e.requestId];if(n?.state==="sending"||n?.state==="sent")return;this.notes[e.requestId]={state:"sending"};const s=await ps(e.text,r,null,e.requestId);this.notes[e.requestId]=s.ok?{state:"sent"}:{state:"failed",error:s.error}}ring(e){if(document.visibilityState==="visible"&&document.hasFocus()){this.settings.sound&&Vt(),this.channel?.postMessage({t:"rang",id:ut(e)});return}He.leader&&setTimeout(()=>{this.rang.has(ut(e))||(this.settings.sound&&Vt(),this.notify(e))},el)}notify(e){if(!(!this.settings.notify||typeof Notification>"u")&&Notification.permission==="granted")try{const r=new Notification(`${qr(e.kind)}: ${e.title}`,{body:e.text,tag:e.id}),n=e.actions.find(s=>s.kind==="open"&&!s.external);r.onclick=()=>{window.focus(),jt(n?.kind==="open"?n.href:e.taskId?ao(e.taskId):"/"),r.close()}}catch{}}}const Se=new tl;var rl=x('<span class="tabular absolute -top-0.5 -right-0.5 min-w-4 rounded-full bg-brass px-1 text-[0.6875rem] leading-4 font-semibold text-on-accent" aria-hidden="true"> </span>'),qt=x("<!> <!>",1),nl=x('<span class="flex w-full items-baseline justify-between gap-3 text-xs"><span> </span> <span class="text-muted-foreground"> </span></span> <span class="line-clamp-1 font-medium"> </span> <span class="line-clamp-2 text-xs text-muted-foreground"> </span>',1),sl=x('<p class="px-2 pb-2 text-sm text-muted-foreground">Nothing has rung yet.</p>'),ol=x('<span class="flex flex-col"><span> </span> <span class="text-xs text-muted-foreground"> </span></span>'),al=x('<span class="flex flex-col"><span>Bell sound</span> <span class="text-xs text-muted-foreground">Two strokes of a ship’s bell. Off unless you turn it on.</span></span>'),il=x('<span class="flex flex-col"><span>Browser notifications</span> <span class="text-xs text-muted-foreground"> </span></span>'),ll=x("<!>Ring the bell to hear it",1),dl=x("<!> <!> <!> <!>",1),cl=x('<div class="border-b border-b-brass/60 px-3 py-2.5"><p class="font-display text-base font-semibold">Ship’s bell</p> <p class="text-xs text-muted-foreground">Rings for the moments that need you.</p></div> <!> <!> <!> <!> <!>',1);function ul(o,e){xe(e,!0);const r=u(()=>Object.values(Se.settings.kinds).every(l=>!l)),n=u(()=>Se.permission==="unsupported"?"This browser cannot show notifications.":Se.permission==="denied"?"Blocked in this browser’s site settings.":"When no Wheelhouse tab is in front.");var s=Z(),i=y(s);oe(i,()=>Ui,(l,d)=>{d(l,{onOpenChange:c=>c&&Se.opened(),children:(c,g)=>{var _=qt(),f=y(_);{const b=(w,v)=>{let M=()=>(v?.()).props;{let O=u(()=>Se.unread?`Ship’s bell: ${Se.unread} new ${Se.unread===1?"alert":"alerts"}`:"Ship’s bell");ot(w,ge(M,{variant:"ghost",size:"icon-sm",class:"relative",get"aria-label"(){return t(O)},children:(ne,le)=>{var L=qt(),q=y(L);{var m=B=>{_o(B,{})},A=B=>{Qr(B,{})},$=B=>{Ts(B,{})};D(q,B=>{t(r)?B(m):Se.unread?B(A,1):B($,-1)})}var X=h(q,2);{var G=B=>{var ae=rl(),T=re(ae,!0);j(()=>z(T,Se.unread)),a(B,ae)};D(X,B=>{Se.unread&&B(G)})}a(ne,L)},$$slots:{default:!0}}))}};oe(f,()=>Hi,(w,v)=>{v(w,{child:b,$$slots:{child:!0}})})}var p=h(f,2);oe(p,()=>Fi,(b,w)=>{w(b,{align:"end",class:"w-80 max-w-[calc(100vw-2rem)] p-0",children:(v,M)=>{var O=cl(),ne=h(y(O),2);oe(ne,()=>vr,(A,$)=>{$(A,{class:"p-1",children:(X,G)=>{var B=qt(),ae=y(B);oe(ae,()=>gr,(R,I)=>{I(R,{children:(F,Q)=>{Ke();var se=ct("Recent");a(F,se)},$$slots:{default:!0}})});var T=h(ae,2);Je(T,17,()=>Se.log,R=>R.id,(R,I)=>{const F=u(()=>t(I).actions.find(de=>de.kind==="open"));var Q=Z(),se=y(Q);oe(se,()=>an,(de,ye)=>{ye(de,{class:"flex-col items-start gap-0.5",onSelect:()=>t(F)&&Se.act(t(F)),children:(J,Y)=>{var ee=nl(),be=y(ee),$e=S(be),De=re($e,!0),Oe=h($e,2),ie=re(Oe,!0);C(be);var Ie=h(be,2),Ze=re(Ie,!0),E=h(Ie,2),H=re(E,!0);j((we,Pe)=>{je($e,1,`font-medium ${jn[Ln[t(I).kind]]??""}`),z(De,we),z(ie,Pe),z(Ze,t(I).title),z(H,t(I).text)},[()=>qr(t(I).kind),()=>er(t(I).at,He.now)]),a(J,ee)},$$slots:{default:!0}})}),a(R,Q)},R=>{var I=sl();a(R,I)}),a(X,B)},$$slots:{default:!0}})});var le=h(ne,2);oe(le,()=>ln,(A,$)=>{$(A,{class:"my-0"})});var L=h(le,2);oe(L,()=>vr,(A,$)=>{$(A,{class:"p-1",children:(X,G)=>{var B=qt(),ae=y(B);oe(ae,()=>gr,(R,I)=>{I(R,{children:(F,Q)=>{Ke();var se=ct("Ring for");a(F,se)},$$slots:{default:!0}})});var T=h(ae,2);Je(T,17,()=>Wn,R=>R.kind,(R,I)=>{var F=Z(),Q=y(F);oe(Q,()=>fr,(se,de)=>{de(se,{get checked(){return Se.settings.kinds[t(I).kind]},onCheckedChange:ye=>Se.setKind(t(I).kind,ye),children:(ye,J)=>{var Y=ol(),ee=S(Y),be=re(ee,!0),$e=h(ee,2),De=re($e,!0);C(Y),j(()=>{z(be,t(I).label),z(De,t(I).hint)}),a(ye,Y)},$$slots:{default:!0}})}),a(R,F)}),a(X,B)},$$slots:{default:!0}})});var q=h(L,2);oe(q,()=>ln,(A,$)=>{$(A,{class:"my-0"})});var m=h(q,2);oe(m,()=>vr,(A,$)=>{$(A,{class:"p-1",children:(X,G)=>{var B=dl(),ae=y(B);oe(ae,()=>gr,(F,Q)=>{Q(F,{children:(se,de)=>{Ke();var ye=ct("How");a(se,ye)},$$slots:{default:!0}})});var T=h(ae,2);oe(T,()=>fr,(F,Q)=>{Q(F,{get checked(){return Se.settings.sound},onCheckedChange:se=>Se.setSound(se),children:(se,de)=>{var ye=al();a(se,ye)},$$slots:{default:!0}})});var R=h(T,2);{let F=u(()=>Se.permission==="unsupported"||Se.permission==="denied");oe(R,()=>fr,(Q,se)=>{se(Q,{get checked(){return Se.settings.notify},get disabled(){return t(F)},onCheckedChange:de=>{Se.setNotify(de)},children:(de,ye)=>{var J=il(),Y=h(S(J),2),ee=re(Y,!0);C(J),j(()=>z(ee,t(n))),a(de,J)},$$slots:{default:!0}})})}var I=h(R,2);oe(I,()=>an,(F,Q)=>{Q(F,{closeOnSelect:!1,onSelect:()=>Vt(),children:(se,de)=>{var ye=ll(),J=y(ye);Qr(J,{class:"text-brass"}),Ke(),a(se,ye)},$$slots:{default:!0}})}),a(X,B)},$$slots:{default:!0}})}),a(v,O)},$$slots:{default:!0}})}),a(c,_)},$$slots:{default:!0}})}),a(o,s),_e()}const At=[{step:"fetch",label:"Fetch from GitHub"},{step:"fast-forward",label:"Fast-forward the clone"},{step:"install",label:"Install packages (npm ci)"},{step:"build",label:"Build"},{step:"restart",label:"Restart Wheelhouse"}],hl=[{step:"npm-install",label:"Install from npm"},{step:"restart",label:"Restart Wheelhouse"}],Xn={step:"link",label:"Link the clone (npm link)"};[...At.slice(0,-1),At[4]];At[2],At[3],At[4];var pl=x('<!> <span class="hidden md:inline"> </span>',1),fl=x('<span class="absolute top-1 right-1 size-1.5 rounded-full bg-warning" aria-hidden="true"></span>'),br=x("<!> <!>",1),vl=x('· from <a class="hover:underline" target="_blank" rel="noreferrer"> </a> ',1),gl=x('<span class="size-4 text-center" aria-hidden="true">·</span>'),ml=x("<li><!> </li>"),bl=x('<p class="mt-3 text-xs text-muted-foreground">Waiting for Wheelhouse to come back…</p>'),xl=x('<ol class="space-y-1.5" aria-label="Upgrade progress"></ol> <!>',1),_l=x('<p class="mt-1 text-xs text-muted-foreground"> </p>'),yl=x('<p class="flex items-center gap-2"><!>Upgraded and restarted.</p> <!>',1),wl=x('<pre class="mt-2 max-h-32 overflow-auto rounded-md bg-muted/60 px-2.5 py-1.5 font-mono text-[0.7rem] whitespace-pre-wrap"> </pre>'),pn=x('<pre class="mt-2 max-h-32 overflow-auto rounded-md bg-muted/60 px-2.5 py-1.5 font-mono text-xs"> </pre>'),fn=x('<p class="flex items-start gap-2"><!> <span> </span></p> <!> <!>',1),kl=x('<p class="flex items-center gap-2 text-muted-foreground"><!> </p>'),Cl=x('<p class="flex items-center gap-2"><!>Up to date.</p> <p class="mt-1 text-xs text-muted-foreground"> </p>',1),Pl=x('<span class="font-normal text-muted-foreground"> </span>'),Tl=x('<li class="text-xs"><span class="line-clamp-2"> </span> <span class="tabular text-muted-foreground"> </span></li>'),Sl=x('<li class="text-xs text-muted-foreground"> </li>'),Ml=x('<a target="_blank" rel="noreferrer" class="mt-2 inline-flex items-center gap-1 text-xs text-sea hover:underline">Compare on GitHub<!></a>'),$l=x(`Upgrading runs <code>npm install -g @chrisjowen/wheelhouse</code> and restarts
1
+ import"../chunks/DsnmJJEf.js";import{o as wt}from"../chunks/RYq3318d.js";import{p as xe,v as P,j as Z,f as y,g as t,a,b as _e,i as u,m as ue,bD as ts,q as gt,u as at,A as rs,aE as Wt,h as S,r as C,c as x,aa as Re,t as j,br as ns,bG as ss,aG as pt,l as nr,s as h,y as st,o as re,d as z,k as gn,x as Xt,n as Ke,w as ct,aC as os,$ as as}from"../chunks/BuRWgnCz.js";import{i as D}from"../chunks/BDpRITyb.js";import{s as Me}from"../chunks/B2RyWxmQ.js";import{c as oe}from"../chunks/DLuhTA05.js";import{l as Ge,s as ce,r as Ur,e as Je,a as je,b as is,d as _r,h as ls,f as ds}from"../chunks/Cwb6d3g_.js";import{g as jt,o as cs,i as us}from"../chunks/CejLiPvM.js";import{p as We}from"../chunks/CFyednqY.js";import{l as He,b as mn,c as Cr}from"../chunks/eaKSEJEz.js";import{i as zt}from"../chunks/CspN1OJw.js";import{P as hs,s as ps,e as fs,a as dr,r as vs}from"../chunks/_wNDtuC3.js";import{s as Gr,a as cr,n as gs}from"../chunks/BT_DAfvO.js";import{m as ms}from"../chunks/cwI46DFb.js";import{d as bs,b as Rr}from"../chunks/DJNADPa5.js";import{b as Jt}from"../chunks/BWRIDih-.js";import{s as ge,r as me,p as k}from"../chunks/BAOiF0in.js";import{P as xs}from"../chunks/CXqiEZDa.js";import{a as $t,k as Yr,p as yr,A as bn,n as _s}from"../chunks/Dse7bjta.js";import{a as ys}from"../chunks/DcVvrp03.js";import{F as ws,x as xn,y as _n,z as yn,A as Zt,C as ks,D as Cs,u as Ps,B as Ts,g as wn,P as kn,f as Cn,S as Ss,U as Ms,j as $s,h as ur}from"../chunks/Cx2pfZgS.js";import{a as Is}from"../chunks/BMFk7aZ6.js";import{S as As}from"../chunks/BksDoLoM.js";import{C as It}from"../chunks/cmRB1an4.js";import{I as lt,t as wr,a as Os}from"../chunks/xH4qmLqM.js";import{p as Es}from"../chunks/fuBLR9dZ.js";import{c as yt}from"../chunks/DYbDyf3M.js";import{L as Ds,M as Ns,j as Fs,b as V,N as zs,O as Ws,Q as js,R as Ls,U as Qt,V as Pr,W as Tr,X as Bt,Y as Pn,Z as Ot,_ as Tn,K as tt,u as Sn,m as Ye,$ as Bs,a0 as Ks,z as Mn,A as Sr,r as sr,a1 as Hs,a2 as qs,H as Mr,a3 as Us,a4 as Gs,a5 as Rs,C as kt,v as $n,w as it,k as Ct,B as In,a6 as or,G as An,x as On,t as _t,a7 as xt,a8 as Ys,a9 as Vs,I as En,aa as Xs,J as Dn,ab as Nn,c as mt,s as Fn,ac as Js,P as ar}from"../chunks/DVEiwmFn.js";import{B as ot}from"../chunks/C5BN6RHR.js";import{a as er,p as Zs,c as Qs,f as eo}from"../chunks/BCUUi0V0.js";import{h as to,G as zn,a as ro,i as no,b as so}from"../chunks/Dd58JmFO.js";import{M as oo}from"../chunks/Ddta0BJw.js";import{A as Wn,r as ut,s as Vr,t as ao}from"../chunks/ClsjySa8.js";import{t as jn,b as Ln,d as io}from"../chunks/BY5XjwMm.js";import{w as nt}from"../chunks/DZeIs8RO.js";import{L as hr}from"../chunks/CP7u-DWX.js";import{T as Xr}from"../chunks/kynOtL7x.js";import{R as lo}from"../chunks/DXoZBzFG.js";import{C as Jr}from"../chunks/CCL5M9Xl.js";import{E as Bn}from"../chunks/IuxiJfHx.js";import{S as co}from"../chunks/DU3FdAFH.js";import{C as Kn}from"../chunks/C6T16bV1.js";import{k as uo,X as ho}from"../chunks/rS7QE60d.js";import{B as po}from"../chunks/7vF3ego3.js";import{a as fo,M as vo}from"../chunks/CoGHF2lE.js";import{S as go}from"../chunks/DGK4csRg.js";import{P as mo}from"../chunks/Cu50g1zS.js";import"../chunks/BP2Qtph5.js";import{a as Zr}from"../chunks/B-JNrTge.js";import{f as bo}from"../chunks/hxhxtxcx.js";var xo=new Set(["$$slots","$$events","$$legacy"]);function _o(o,e){let r=me(e,xo);const n={name:"bell-off",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742"}],["path",{d:"m2 2 20 20"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var yo=new Set(["$$slots","$$events","$$legacy"]);function Qr(o,e){let r=me(e,yo);const n={name:"bell-ring",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var wo=new Set(["$$slots","$$events","$$legacy"]);function ko(o,e){let r=me(e,wo);const n={name:"blocks",size:24,node:[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var Co=new Set(["$$slots","$$events","$$legacy"]);function Po(o,e){let r=me(e,Co);const n={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]],aliases:["more-horizontal"]};lt(o,ge(()=>r,{get icon(){return n}}))}var To=new Set(["$$slots","$$events","$$legacy"]);function So(o,e){let r=me(e,To);const n={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var Mo=new Set(["$$slots","$$events","$$legacy"]);function $o(o,e){let r=me(e,Mo);const n={name:"message-circle",size:24,node:[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var Io=new Set(["$$slots","$$events","$$legacy"]);function Ao(o,e){let r=me(e,Io);const n={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var Oo=new Set(["$$slots","$$events","$$legacy"]);function Eo(o,e){let r=me(e,Oo);const n={name:"panel-left-close",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}],["path",{d:"m16 15-3-3 3-3"}]],aliases:["sidebar-close"]};lt(o,ge(()=>r,{get icon(){return n}}))}var Do=new Set(["$$slots","$$events","$$legacy"]);function No(o,e){let r=me(e,Do);const n={name:"panel-left-open",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}],["path",{d:"m14 9 3 3-3 3"}]],aliases:["sidebar-open"]};lt(o,ge(()=>r,{get icon(){return n}}))}var Fo=new Set(["$$slots","$$events","$$legacy"]);function zo(o,e){let r=me(e,Fo);const n={name:"pencil",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var Wo=new Set(["$$slots","$$events","$$legacy"]);function jo(o,e){let r=me(e,Wo);const n={name:"pin",size:24,node:[["path",{d:"M12 17v5"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var Lo=new Set(["$$slots","$$events","$$legacy"]);function Bo(o,e){let r=me(e,Lo);const n={name:"radio-tower",size:24,node:[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5"}],["circle",{cx:"12",cy:"9",r:"2"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1"}],["path",{d:"M9.5 18h5"}],["path",{d:"m8 22 4-11 4 11"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var Ko=new Set(["$$slots","$$events","$$legacy"]);function Ho(o,e){let r=me(e,Ko);const n={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M12 2v2"}],["path",{d:"M12 20v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"m17.66 17.66 1.41 1.41"}],["path",{d:"M2 12h2"}],["path",{d:"M20 12h2"}],["path",{d:"m6.34 17.66-1.41 1.41"}],["path",{d:"m19.07 4.93-1.41 1.41"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}function qo(o,e){xe(e,!0);const r=u(()=>"component"in e.entry.render?xs[e.entry.render.component]:void 0);let n=ue(!1);wt(()=>{P(n,!0)});var s=Z(),i=y(s);{var l=c=>{hs(c,{get entry(){return e.entry},get data(){return e.entry.content.value},quiet:!0})},d=c=>{var g=Z(),_=y(g);ts(_,{failed:p=>{}},p=>{var b=Z(),w=y(b);oe(w,()=>t(r),(v,M)=>{M(v,{get data(){return e.entry.content.value},get entry(){return e.entry}})}),a(p,b)}),a(c,g)};D(i,c=>{t(n)&&"element"in e.entry.render&&e.entry.content.available?c(l):t(n)&&t(r)&&e.entry.content.available&&c(d,1)})}a(o,s),_e()}function Pt(o){let e=ue(gt(o));return{[Ns]:!0,[Ds]:!0,get current(){return t(e)},set current(r){P(e,r,!0)}}}Pt.from=Fs;Pt.with=V;Pt.flatten=zs;Pt.readonly=Ws;Pt.isBox=js;Pt.isWritableBox=Ls;function $r(o){at(()=>rs(()=>o()))}function Uo(o){return window.getComputedStyle(o).getPropertyValue("direction")}function Go(o="ltr",e="horizontal"){return{horizontal:o==="rtl"?Tr:Pr,vertical:Bt}[e]}function Ro(o="ltr",e="horizontal"){return{horizontal:o==="rtl"?Pr:Tr,vertical:Qt}[e]}function Yo(o="ltr",e="horizontal"){return["ltr","rtl"].includes(o)||(o="ltr"),["horizontal","vertical"].includes(e)||(e="horizontal"),{nextKey:Go(o,e),prevKey:Ro(o,e)}}class Vo{#e;#t=Pt(null);constructor(e){this.#e=e}getCandidateNodes(){return this.#e.rootNode.current?this.#e.candidateSelector?Array.from(this.#e.rootNode.current.querySelectorAll(this.#e.candidateSelector)):this.#e.candidateAttr?Array.from(this.#e.rootNode.current.querySelectorAll(`[${this.#e.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const e=this.getCandidateNodes();e.length&&e[0]?.focus()}handleKeydown(e,r,n=!1){const s=this.#e.rootNode.current;if(!s||!e)return;const i=this.getCandidateNodes();if(!i.length)return;const l=i.indexOf(e),d=Uo(s),{nextKey:c,prevKey:g}=Yo(d,this.#e.orientation.current),_=this.#e.loop.current,f={[c]:l+1,[g]:l-1,[Tn]:0,[Pn]:i.length-1};if(n){const w=c===Bt?Pr:Bt,v=g===Qt?Tr:Qt;f[w]=l+1,f[v]=l-1}let p=f[r.key];if(p===void 0)return;r.preventDefault(),p<0&&_?p=i.length-1:p===i.length&&_&&(p=0);const b=i[p];if(b)return b.focus(),this.#t.current=b.id,this.#e.onCandidateFocus?.(b),b}getTabIndex(e){const r=this.getCandidateNodes(),n=this.#t.current!==null;return e&&!n&&r[0]===e?(this.#t.current=e.id,0):e?.id===this.#t.current?0:-1}setCurrentTabStopId(e){this.#t.current=e}focusCurrentTabStop(){const e=this.#t.current;if(!e)return;const r=this.#e.rootNode.current?.querySelector(`#${e}`);!r||!Ot(r)||r.focus()}}class Xo{eventName;options;constructor(e,r={bubbles:!0,cancelable:!0}){this.eventName=e,this.options=r}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,r){const n=this.createEvent(r);return e.dispatchEvent(n),n}listen(e,r,n){const s=i=>{r(i)};return Wt(e,this.eventName,s,n)}}function Hn(o,e,r){const n=e.toLowerCase();if(n.endsWith(" ")){const f=n.slice(0,-1);if(o.filter(v=>v.toLowerCase().startsWith(f)).length<=1)return Hn(o,f,r);const b=r?.toLowerCase();if(b&&b.startsWith(f)&&b.charAt(f.length)===" "&&e.trim()===f)return r;const w=o.filter(v=>v.toLowerCase().startsWith(n));if(w.length>0){const v=r?o.indexOf(r):-1;return en(w,Math.max(v,0)).find(ne=>ne!==r)||r}}const i=e.length>1&&Array.from(e).every(f=>f===e[0])?e[0]:e,l=i.toLowerCase(),d=r?o.indexOf(r):-1;let c=en(o,Math.max(d,0));i.length===1&&(c=c.filter(f=>f!==r));const _=c.find(f=>f?.toLowerCase().startsWith(l));return _!==r?_:void 0}function en(o,e){return o.map((r,n)=>o[(e+n)%o.length])}const Jo={afterMs:1e4,onChange:tt};function Zo(o,e){const{afterMs:r,onChange:n,getWindow:s}={...Jo,...e};let i=null,l=ue(gt(o));function d(){return s().setTimeout(()=>{P(l,o,!0),n?.(o)},r)}return at(()=>()=>{i&&s().clearTimeout(i)}),V(()=>t(l),c=>{P(l,c,!0),n?.(c),i&&s().clearTimeout(i),i=d()})}class Qo{#e;#t;#r=u(()=>this.#e.onMatch?this.#e.onMatch:e=>e.focus());#n=u(()=>this.#e.getCurrentItem?this.#e.getCurrentItem:this.#e.getActiveElement);constructor(e){this.#e=e,this.#t=Zo("",{afterMs:1e3,getWindow:e.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e,r){if(!r.length)return;this.#t.current=this.#t.current+e;const n=t(this.#n)(),s=r.find(c=>c===n)?.textContent?.trim()??"",i=r.map(c=>c.textContent?.trim()??""),l=Hn(i,this.#t.current,s),d=r.find(c=>c.textContent?.trim()===l);return d&&t(this.#r)(d),d}resetTypeahead(){this.#t.current=""}get search(){return this.#t.current}}var ea=new Set(["$$slots","$$events","$$legacy","id","children","child","width","height"]),ta=ns('<svg viewBox="0 0 30 10" preserveAspectRatio="none" data-arrow=""><polygon points="0,0 30,0 15,10" fill="currentColor"></polygon></svg>'),ra=x("<span><!></span>");function na(o,e){xe(e,!0);let r=k(e,"id",19,Sn),n=k(e,"width",3,10),s=k(e,"height",3,5),i=me(e,ea);const l=u(()=>Ye(i,{id:r()}));var d=Z(),c=y(d);{var g=f=>{var p=Z(),b=y(p);Me(b,()=>e.child,()=>({props:t(l)})),a(f,p)},_=f=>{var p=ra();Ge(p,()=>({...t(l)}));var b=S(p);{var w=M=>{var O=Z(),ne=y(O);Me(ne,()=>e.children??Re),a(M,O)},v=M=>{var O=ta();j(()=>{ce(O,"width",n()),ce(O,"height",s())}),a(M,O)};D(b,M=>{e.children?M(w):M(v,-1)})}C(p),a(f,p)};D(c,f=>{e.child?f(g):f(_,-1)})}a(o,d),_e()}var sa=new Set(["$$slots","$$events","$$legacy","id","ref"]);function oa(o,e){xe(e,!0);let r=k(e,"id",19,Sn),n=k(e,"ref",15,null),s=me(e,sa);const i=ws.create({id:V(()=>r()),ref:V(()=>n(),d=>n(d))}),l=u(()=>Ye(s,i.props));na(o,ge(()=>t(l))),_e()}const aa=[Mn,Sr],ia=[Bt,Bs,Tn],qn=[Qt,Ks,Pn],la=[...ia,...qn];function da(o){return o==="indeterminate"}function ca(o){return da(o)?"indeterminate":o?"checked":"unchecked"}function ht(o){return o.pointerType==="mouse"}function ua(o,{select:e=!1}={}){if(!o||!o.focus)return;const r=sr(o);if(r.activeElement===o)return;const n=r.activeElement;o.focus({preventScroll:!0}),o!==n&&Hs(o)&&e&&o.select()}function ha(o,{select:e=!1}={},r){const n=r();for(const s of o)if(ua(s,{select:e}),r()!==n)return!0}let Tt=ue(!1);class vt{static _refs=0;static _cleanup;constructor(){at(()=>(vt._refs===0&&(vt._cleanup=ss(()=>{const e=[],r=s=>{P(Tt,!1)},n=s=>{P(Tt,!0)};return e.push(Wt(document,"pointerdown",r,{capture:!0}),Wt(document,"keydown",n,{capture:!0})),at(()=>{if(t(Tt))return Wt(document,"pointermove",r,{capture:!0})}),qs(...e)})),vt._refs++,()=>{vt._refs--,vt._refs===0&&(P(Tt,!1),vt._cleanup?.())}))}get current(){return t(Tt)}set current(e){P(Tt,e,!0)}}function Lt(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function pa(o,e){if(!Mr(o,Lt()))return fa(o,e);const r=sr(o),n=Us(r.body,Lt());e==="prev"&&n.reverse();const s=n.indexOf(o);return s===-1?r.body:n.slice(s+1)[0]}function fa(o,e){const r=sr(o);if(!Gs(o,Lt()))return r.body;const n=Rs(r.body,Lt());e==="prev"&&n.reverse();const s=n.indexOf(o);return s===-1?r.body:n.slice(s+1).find(l=>Mr(l,Lt()))??r.body}const Ir=new kt("Menu.Root"),Ar=new kt("Menu.Root | Menu.Sub"),Or=new kt("Menu.Content"),va=new kt("Menu.Group | Menu.RadioGroup"),ga=new kt("Menu.CheckboxGroup"),ma=new Xo("bitsmenuopen",{bubbles:!1,cancelable:!0}),ba=Dn({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});class xa{#e;#t=null;#r=null;#n=!1;#s=null;#a=null;#o=null;#i=null;constructor(e){this.#e=e,it([e.triggerNode,e.contentNode,e.enabled],([r,n,s])=>{if(this.#p(),!r||!n||!s)return;const i=f=>{ht(f)&&(this.#i={x:f.clientX,y:f.clientY},this.#n||this.#m(f,"content"))},l=f=>{ht(f)&&this.#b(f,"content")},d=f=>{ht(f)&&(this.#n||this.#m(f,"trigger"))},c=f=>{if(ht(f)){if(_t(f.relatedTarget)){const p=this.#e.subContentSelector(),b=f.relatedTarget.closest(p);if(b&&b!==n&&b.id&&!!n.querySelector(`[aria-controls="${b.id}"]`))return}this.#b(f,"trigger")}},g=f=>{ht(f)&&this.#u()},_=f=>{ht(f)&&this.#u()};return r.addEventListener("pointermove",i),r.addEventListener("pointerleave",l),r.addEventListener("pointerenter",g),n.addEventListener("pointermove",d),n.addEventListener("pointerleave",c),n.addEventListener("pointerenter",_),()=>{r.removeEventListener("pointermove",i),r.removeEventListener("pointerleave",l),r.removeEventListener("pointerenter",g),n.removeEventListener("pointermove",d),n.removeEventListener("pointerleave",c),n.removeEventListener("pointerenter",_),this.#p()}}),Nn(()=>{this.#p()})}#l(){const e=this.#e.parentContentNode();return e?e.getBoundingClientRect():this.#e.triggerNode()?.getBoundingClientRect()??null}#d(e,r){const n=this.#e.triggerNode(),s=this.#e.contentNode();if(!n||!s)return null;const i=n.getBoundingClientRect(),l=s.getBoundingClientRect(),d=ya(i,l);let c,g,_;return r==="content"?(c=this.#n?this.#a??e:e,g=l):(c=this.#i??e,g=this.#l()??i,_=l),this.#a=c,{corridor:wa(i,l,d),intent:ka(c,g,d,r,_),targetRect:g,side:d}}#g(e,r,n){return tn(e,r)||tn(e,n)}#m(e,r){const n={x:e.clientX,y:e.clientY};this.#d(n,r)&&(this.#s=r,this.#o=n)}#b(e,r){if(!this.#e.enabled())return;const n=this.#e.triggerNode(),s=this.#e.contentNode();if(!n||!s)return;const i=e.relatedTarget;if(_t(i)&&(r==="content"&&s.contains(i)||r==="trigger"&&n.contains(i)))return;const l={x:e.clientX,y:e.clientY},d=this.#d(l,r);if(d){if(!rn(l,d.targetRect)&&!this.#g(l,d.corridor,d.intent)){this.#y();return}this.#n=!0,this.#s=r,this.#o=l,this.#e.setIsPointerInTransit(!0),this.#C(),this.#_()}}#c=null;#u(){if(!this.#n)return;const e=this.#s==="trigger";this.#x(),this.#v(),this.#n=!1,this.#y(),e?(this.#f(),this.#c=setTimeout(()=>{this.#c=null,this.#e.setIsPointerInTransit(!1)},100)):this.#e.setIsPointerInTransit(!1)}#f(){this.#c!==null&&(clearTimeout(this.#c),this.#c=null)}#h(){const e=this.#o;this.#x(),this.#v(),this.#f(),this.#n=!1,this.#e.setIsPointerInTransit(!1),this.#y(),this.#e.onIntentExit(e)}#p(){this.#x(),this.#v(),this.#f(),this.#n&&this.#e.setIsPointerInTransit(!1),this.#n=!1,this.#s=null,this.#a=null,this.#o=null,this.#i=null}#k(e){const r=this.#e.contentNode();if(!r)return!1;const s=r.ownerDocument.elementFromPoint(e.x,e.y);if(!s)return!1;const i=this.#e.subContentSelector(),l=s.closest(i);return!l||l===r?!1:l.id?!!r.querySelector(`[aria-controls="${l.id}"]`):!1}#w=e=>{if(!this.#n||!this.#s||!ht(e))return;const r=this.#e.triggerNode(),n=this.#e.contentNode();if(!r||!n){this.#h();return}this.#v();const s={x:e.clientX,y:e.clientY};this.#o=s;const i=r.getBoundingClientRect(),l=n.getBoundingClientRect();if(this.#s==="content"&&rn(s,l)){this.#u();return}if(this.#s==="trigger"&&_a(s,i,4)){this.#u();return}if(this.#k(s)){this.#_();return}const d=this.#d(s,this.#s);if(!d){this.#h();return}if(this.#g(s,d.corridor,d.intent)){this.#_();return}this.#h()};#C(){if(this.#t)return;const e=sr(this.#e.triggerNode()??this.#e.contentNode());e&&(e.addEventListener("pointermove",this.#w,!0),this.#t=()=>{e.removeEventListener("pointermove",this.#w,!0),this.#t=null})}#x(){this.#t?.()}#_(){this.#v(),this.#r=setTimeout(()=>{this.#r=null,this.#n&&this.#h()},500)}#v(){this.#r!==null&&(clearTimeout(this.#r),this.#r=null)}#y(){this.#s=null,this.#a=null,this.#o=null}}function tn(o,e){const{x:r,y:n}=o;let s=!1;for(let i=0,l=e.length-1;i<e.length;l=i++){const d=e[i].x,c=e[i].y,g=e[l].x,_=e[l].y;c>n!=_>n&&r<(g-d)*(n-c)/(_-c)+d&&(s=!s)}return s}function rn(o,e){return o.x>=e.left&&o.x<=e.right&&o.y>=e.top&&o.y<=e.bottom}function _a(o,e,r){return o.x>=e.left+r&&o.x<=e.right-r&&o.y>=e.top+r&&o.y<=e.bottom-r}function ya(o,e){const r=o.left+o.width/2,n=o.top+o.height/2,s=e.left+e.width/2,i=e.top+e.height/2,l=s-r,d=i-n;return Math.abs(l)>Math.abs(d)?l>0?"right":"left":d>0?"bottom":"top"}function wa(o,e,r){switch(r){case"top":return[{x:Math.min(o.left,e.left)-2,y:o.top},{x:Math.min(o.left,e.left)-2,y:e.bottom},{x:Math.max(o.right,e.right)+2,y:e.bottom},{x:Math.max(o.right,e.right)+2,y:o.top}];case"bottom":return[{x:Math.min(o.left,e.left)-2,y:o.bottom},{x:Math.min(o.left,e.left)-2,y:e.top},{x:Math.max(o.right,e.right)+2,y:e.top},{x:Math.max(o.right,e.right)+2,y:o.bottom}];case"left":return[{x:o.left,y:Math.min(o.top,e.top)-2},{x:e.right,y:Math.min(o.top,e.top)-2},{x:e.right,y:Math.max(o.bottom,e.bottom)+2},{x:o.left,y:Math.max(o.bottom,e.bottom)+2}];case"right":return[{x:o.right,y:Math.min(o.top,e.top)-2},{x:e.left,y:Math.min(o.top,e.top)-2},{x:e.left,y:Math.max(o.bottom,e.bottom)+2},{x:o.right,y:Math.max(o.bottom,e.bottom)+2}]}}function ka(o,e,r,n,s){const l=n==="trigger"?Ca(r):r,d=s?Math.min(e.top,s.top)-8:e.top-8,c=s?Math.max(e.bottom,s.bottom)+8:e.bottom+8,g=s?Math.min(e.left,s.left)-8:e.left-8,_=s?Math.max(e.right,s.right)+8:e.right+8;switch(l){case"right":return[o,{x:e.left,y:d},{x:e.left,y:c}];case"left":return[o,{x:e.right,y:d},{x:e.right,y:c}];case"bottom":return[o,{x:g,y:e.top},{x:_,y:e.top}];case"top":return[o,{x:g,y:e.bottom},{x:_,y:e.bottom}]}}function Ca(o){switch(o){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}class Er{static create(e){const r=new Er(e);return Ir.set(r)}opts;isUsingKeyboard=new vt;#e=ue(!1);get ignoreCloseAutoFocus(){return t(this.#e)}set ignoreCloseAutoFocus(e){P(this.#e,e,!0)}#t=ue(!1);get isPointerInTransit(){return t(this.#t)}set isPointerInTransit(e){P(this.#t,e,!0)}constructor(e){this.opts=e}getBitsAttr=e=>ba.getAttr(e,this.opts.variant.current)}class Dr{static create(e,r){return Ar.set(new Dr(e,r,null))}opts;root;parentMenu;#e=ue(V(()=>""));get contentId(){return t(this.#e)}set contentId(e){P(this.#e,e)}#t=ue(null);get contentNode(){return t(this.#t)}set contentNode(e){P(this.#t,e,!0)}contentPresence;#r=ue(null);get triggerNode(){return t(this.#r)}set triggerNode(e){P(this.#r,e,!0)}constructor(e,r,n){this.opts=e,this.root=r,this.parentMenu=n,this.contentPresence=new $n({ref:V(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)},shouldSkipExitAnimation:()=>this.root.opts.variant.current!=="menubar"||this.parentMenu!==null?!1:this.root.opts.shouldSkipExitAnimation?.()??!1}),n&&it(()=>n.opts.open.current,()=>{n.opts.open.current||(this.opts.open.current=!1)})}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}}class Nr{static create(e){return Or.set(new Nr(e,Ar.get()))}opts;parentMenu;rovingFocusGroup;domContext;attachment;#e=ue("");get search(){return t(this.#e)}set search(e){P(this.#e,e,!0)}#t=0;#r;#n=ue(!1);get mounted(){return t(this.#n)}set mounted(e){P(this.#n,e,!0)}#s;constructor(e,r){this.opts=e,this.parentMenu=r,this.domContext=new On(e.ref),this.attachment=Ct(this.opts.ref,n=>{this.parentMenu.contentNode!==n&&(this.parentMenu.contentNode=n)}),r.contentId=e.id,this.#s=e.isSub??!1,this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new xa({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,parentContentNode:()=>this.parentMenu.parentMenu?.contentNode??null,subContentSelector:()=>`[${this.parentMenu.root.getBitsAttr("sub-content")}]`,enabled:()=>this.parentMenu.opts.open.current&&!!this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")),onIntentExit:n=>{this.parentMenu.opts.open.current=!1,this.#i(n)},setIsPointerInTransit:n=>{this.parentMenu.root.isPointerInTransit=n}}),this.#r=new Qo({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch,this.rovingFocusGroup=new Vo({rootNode:V(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:V(()=>"vertical")}),it(()=>this.parentMenu.contentNode,n=>{if(!n)return;const s=()=>{xt(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return ma.listen(n,s)}),at(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(this.#t)})}#a(){const e=this.parentMenu.contentNode;return e?Array.from(e.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]}#o(){return this.parentMenu.root.isPointerInTransit}#i(e){if(!e)return;const r=this.parentMenu.parentMenu?.contentNode;if(!r)return;const n=this.domContext.getDocument().elementFromPoint(e.x,e.y);if(!_t(n))return;const s=n.closest(`[${this.parentMenu.root.getBitsAttr("sub-trigger")}]`);!s||!r.contains(s)||s!==this.parentMenu.triggerNode&&s.dispatchEvent(new PointerEvent("pointermove",{bubbles:!0,cancelable:!0,pointerType:"mouse",clientX:e.x,clientY:e.y}))}onCloseAutoFocus=e=>{if(this.opts.onCloseAutoFocus.current?.(e),!(e.defaultPrevented||this.#s)){if(this.parentMenu.root.ignoreCloseAutoFocus){e.preventDefault();return}this.parentMenu.triggerNode&&Mr(this.parentMenu.triggerNode)&&(e.preventDefault(),this.parentMenu.triggerNode.focus())}};handleTabKeyDown(e){let r=this.parentMenu;for(;r.parentMenu!==null;)r=r.parentMenu;if(!r.triggerNode)return;e.preventDefault();const n=pa(r.triggerNode,e.shiftKey?"prev":"next");n?(this.parentMenu.root.ignoreCloseAutoFocus=!0,r.onClose(),xt(()=>{n.focus(),xt(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(e){if(e.defaultPrevented)return;if(e.key===Ys){this.handleTabKeyDown(e);return}const r=e.target,n=e.currentTarget;if(!Ot(r)||!Ot(n))return;const s=r.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`)?.id===this.parentMenu.contentId.current,i=e.ctrlKey||e.altKey||e.metaKey,l=e.key.length===1;if(this.rovingFocusGroup.handleKeydown(r,e)||e.code==="Space")return;const c=this.#a();s&&!i&&l&&this.#r(e.key,c),e.target?.id===this.parentMenu.contentId.current&&la.includes(e.key)&&(e.preventDefault(),qn.includes(e.key)&&c.reverse(),ha(c,{select:!1},()=>this.domContext.getActiveElement()))}onblur(e){_t(e.currentTarget)&&_t(e.target)&&(e.currentTarget.contains?.(e.target)||(this.domContext.getWindow().clearTimeout(this.#t),this.search=""))}onfocus(e){this.parentMenu.root.isUsingKeyboard.current&&xt(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return this.#o()}onItemLeave(e){if(e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||this.#o()||this.parentMenu.root.isUsingKeyboard.current)return;this.parentMenu.contentNode?.focus({preventScroll:!0}),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!this.#o()}handleInteractOutside(e){if(!Vs(e.target))return;const r=this.parentMenu.triggerNode?.id;if(e.target.id===r){e.preventDefault();return}if(e.target.closest(`#${r}`)){e.preventDefault();return}this.parentMenu.root.ignoreCloseAutoFocus=!0,xt(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}#l=u(()=>({open:this.parentMenu.opts.open.current}));get snippetProps(){return t(this.#l)}set snippetProps(e){P(this.#l,e)}#d=u(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":In(this.parentMenu.opts.open.current),...En(this.parentMenu.contentPresence.transitionStatus),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto",contain:"layout style"},...this.attachment}));get props(){return t(this.#d)}set props(e){P(this.#d,e)}popperProps={onCloseAutoFocus:e=>this.onCloseAutoFocus(e)}}class Un{opts;content;attachment;#e=ue(!1);constructor(e,r){this.opts=e,this.content=r,this.attachment=Ct(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(e){if(!e.defaultPrevented&&ht(e))if(this.opts.disabled.current)this.content.onItemLeave(e);else{if(this.content.onItemEnter())return;const n=e.currentTarget;if(!Ot(n))return;n.focus({preventScroll:!0})}}onpointerleave(e){e.defaultPrevented||ht(e)&&this.content.onItemLeave(e)}onfocus(e){xt(()=>{e.defaultPrevented||this.opts.disabled.current||P(this.#e,!0)})}onblur(e){xt(()=>{e.defaultPrevented||P(this.#e,!1)})}#t=u(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":An(this.opts.disabled.current),"data-disabled":or(this.opts.disabled.current),"data-highlighted":t(this.#e)?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment}));get props(){return t(this.#t)}set props(e){P(this.#t,e)}}class ir{static create(e){const r=new Un(e,Or.get());return new ir(e,r)}opts;item;root;#e=!1;constructor(e,r){this.opts=e,this.item=r,this.root=r.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}#t(){if(this.item.opts.disabled.current)return;const e=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(e),e.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()}onkeydown(e){const r=this.item.content.search!=="";if(!(this.item.opts.disabled.current||r&&e.key===Sr)&&aa.includes(e.key)){if(!Ot(e.currentTarget))return;e.currentTarget.click(),e.preventDefault()}}onclick(e){this.item.opts.disabled.current||this.#t()}onpointerup(e){if(!e.defaultPrevented&&!this.#e){if(!Ot(e.currentTarget))return;e.currentTarget?.click()}}onpointerdown(e){this.#e=!0}#r=u(()=>Ye(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown}));get props(){return t(this.#r)}set props(e){P(this.#r,e)}}class Fr{static create(e,r){const n=new ir(e,new Un(e,Or.get()));return new Fr(e,n,r)}opts;item;group;constructor(e,r,n=null){this.opts=e,this.item=r,this.group=n,this.group&&(it(()=>this.group.opts.value.current,s=>{this.opts.checked.current=s.includes(this.opts.value.current)}),it(()=>this.opts.checked.current,s=>{s?this.group.addValue(this.opts.value.current):this.group.removeValue(this.opts.value.current)}))}toggleChecked(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}#e=u(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return t(this.#e)}set snippetProps(e){P(this.#e,e)}#t=u(()=>({...this.item.props,role:"menuitemcheckbox","aria-checked":Xs(this.opts.checked.current,this.opts.indeterminate.current),"data-state":ca(this.opts.checked.current),[this.item.root.getBitsAttr("checkbox-item")]:""}));get props(){return t(this.#t)}set props(e){P(this.#t,e)}}class zr{static create(e){return va.set(new zr(e,Ir.get()))}opts;root;attachment;#e=ue(void 0);get groupHeadingId(){return t(this.#e)}set groupHeadingId(e){P(this.#e,e,!0)}constructor(e,r){this.opts=e,this.root=r,this.attachment=Ct(this.opts.ref)}#t=u(()=>({id:this.opts.id.current,role:"group","aria-labelledby":this.groupHeadingId,[this.root.getBitsAttr("group")]:"",...this.attachment}));get props(){return t(this.#t)}set props(e){P(this.#t,e)}}class Wr{static create(e){return new Wr(e,Ir.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=Ct(this.opts.ref)}#e=u(()=>({id:this.opts.id.current,role:"separator",[this.root.getBitsAttr("separator")]:"",...this.attachment}));get props(){return t(this.#e)}set props(e){P(this.#e,e)}}class jr{static create(e){return new jr(e,Ar.get())}opts;parentMenu;attachment;constructor(e,r){this.opts=e,this.parentMenu=r,this.attachment=Ct(this.opts.ref,n=>this.parentMenu.triggerNode=n)}onclick=e=>{this.opts.disabled.current||e.detail!==0||(this.parentMenu.toggleOpen(),e.preventDefault())};onpointerdown=e=>{if(!this.opts.disabled.current){if(e.pointerType==="touch")return e.preventDefault();e.button===0&&e.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||e.preventDefault())}};onpointerup=e=>{this.opts.disabled.current||e.pointerType==="touch"&&(e.preventDefault(),this.parentMenu.toggleOpen())};onkeydown=e=>{if(!this.opts.disabled.current){if(e.key===Sr||e.key===Mn){this.parentMenu.toggleOpen(),e.preventDefault();return}e.key===Bt&&(this.parentMenu.onOpen(),e.preventDefault())}};#e=u(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current});#t=u(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":An(this.parentMenu.opts.open.current),"aria-controls":t(this.#e),"data-disabled":or(this.opts.disabled.current),"data-state":In(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment}));get props(){return t(this.#t)}set props(e){P(this.#t,e)}}var Pa=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","disabled","onSelect","closeOnSelect"]),Ta=x("<div><!></div>");function Sa(o,e){const r=pt();xe(e,!0);let n=k(e,"ref",15,null),s=k(e,"id",19,()=>mt(r)),i=k(e,"disabled",3,!1),l=k(e,"onSelect",3,tt),d=k(e,"closeOnSelect",3,!0),c=me(e,Pa);const g=ir.create({id:V(()=>s()),disabled:V(()=>i()),onSelect:V(()=>l()),ref:V(()=>n(),v=>n(v)),closeOnSelect:V(()=>d())}),_=u(()=>Ye(c,g.props));var f=Z(),p=y(f);{var b=v=>{var M=Z(),O=y(M);Me(O,()=>e.child,()=>({props:t(_)})),a(v,M)},w=v=>{var M=Ta();Ge(M,()=>({...t(_)}));var O=S(M);Me(O,()=>e.children??Re),C(M),a(v,M)};D(p,v=>{e.child?v(b):v(w,-1)})}a(o,f),_e()}var Ma=new Set(["$$slots","$$events","$$legacy","children","child","ref","id"]),$a=x("<div><!></div>");function Ia(o,e){const r=pt();xe(e,!0);let n=k(e,"ref",15,null),s=k(e,"id",19,()=>mt(r)),i=me(e,Ma);const l=zr.create({id:V(()=>s()),ref:V(()=>n(),p=>n(p))}),d=u(()=>Ye(i,l.props));var c=Z(),g=y(c);{var _=p=>{var b=Z(),w=y(b);Me(w,()=>e.child,()=>({props:t(d)})),a(p,b)},f=p=>{var b=$a();Ge(b,()=>({...t(d)}));var w=S(b);Me(w,()=>e.children??Re),C(b),a(p,b)};D(g,p=>{e.child?p(_):p(f,-1)})}a(o,c),_e()}var Aa=new Set(["$$slots","$$events","$$legacy","ref","id","child","children"]),Oa=x("<div><!></div>");function Ea(o,e){const r=pt();xe(e,!0);let n=k(e,"ref",15,null),s=k(e,"id",19,()=>mt(r)),i=me(e,Aa);const l=Wr.create({id:V(()=>s()),ref:V(()=>n(),p=>n(p))}),d=u(()=>Ye(i,l.props));var c=Z(),g=y(c);{var _=p=>{var b=Z(),w=y(b);Me(w,()=>e.child,()=>({props:t(d)})),a(p,b)},f=p=>{var b=Oa();Ge(b,()=>({...t(d)}));var w=S(b);Me(w,()=>e.children??Re),C(b),a(p,b)};D(g,p=>{e.child?p(_):p(f,-1)})}a(o,c),_e()}var Da=new Set(["$$slots","$$events","$$legacy","child","children","ref","checked","id","onCheckedChange","disabled","onSelect","closeOnSelect","indeterminate","onIndeterminateChange","value"]),Na=x("<div><!></div>");function Fa(o,e){const r=pt();xe(e,!0);let n=k(e,"ref",15,null),s=k(e,"checked",15,!1),i=k(e,"id",19,()=>mt(r)),l=k(e,"onCheckedChange",3,tt),d=k(e,"disabled",3,!1),c=k(e,"onSelect",3,tt),g=k(e,"closeOnSelect",3,!0),_=k(e,"indeterminate",15,!1),f=k(e,"onIndeterminateChange",3,tt),p=k(e,"value",3,""),b=me(e,Da);const w=ga.getOr(null);w&&p()&&(w.opts.value.current.includes(p())?s(!0):s(!1)),it.pre(()=>p(),()=>{w&&p()&&(w.opts.value.current.includes(p())?s(!0):s(!1))});const v=Fr.create({checked:V(()=>s(),m=>{m!==s()&&(s(m),l()(m))}),id:V(()=>i()),disabled:V(()=>d()),onSelect:V(()=>M),ref:V(()=>n(),m=>n(m)),closeOnSelect:V(()=>g()),indeterminate:V(()=>_(),m=>{m!==_()&&(_(m),f()(m))}),value:V(()=>p())},w);function M(m){c()(m),!m.defaultPrevented&&v.toggleChecked()}const O=u(()=>Ye(b,v.props));var ne=Z(),le=y(ne);{var L=m=>{var A=Z(),$=y(A);Me($,()=>e.child,()=>({checked:s(),indeterminate:_(),props:t(O)})),a(m,A)},q=m=>{var A=Na();Ge(A,()=>({...t(O)}));var $=S(A);Me($,()=>e.children??Re,()=>({checked:s(),indeterminate:_()})),C(A),a(m,A)};D(le,m=>{e.child?m(L):m(q,-1)})}a(o,ne),_e()}function za(o,e){xe(e,!0);let r=k(e,"open",15,!1),n=k(e,"dir",3,"ltr"),s=k(e,"onOpenChange",3,tt),i=k(e,"onOpenChangeComplete",3,tt),l=k(e,"_internal_variant",3,"dropdown-menu"),d=k(e,"_internal_should_skip_exit_animation",3,void 0);const c=Er.create({variant:V(()=>l()),dir:V(()=>n()),onClose:()=>{r(!1),s()(!1)},shouldSkipExitAnimation:()=>d()?.()??!1});Dr.create({open:V(()=>r(),g=>{r(g),s()(g)}),onOpenChangeComplete:V(()=>i())},c),xn(o,{children:(g,_)=>{var f=Z(),p=y(f);Me(p,()=>e.children??Re),a(g,f)},$$slots:{default:!0}}),_e()}var Wa=new Set(["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus","style"]),nn=x("<div><div><!></div></div>");function ja(o,e){const r=pt();xe(e,!0);let n=k(e,"id",19,()=>mt(r)),s=k(e,"ref",15,null),i=k(e,"loop",3,!0),l=k(e,"onInteractOutside",3,tt),d=k(e,"onEscapeKeydown",3,tt),c=k(e,"onCloseAutoFocus",3,tt),g=k(e,"forceMount",3,!1),_=k(e,"trapFocus",3,!1),f=me(e,Wa);const p=Nr.create({id:V(()=>n()),loop:V(()=>i()),ref:V(()=>s(),L=>s(L)),onCloseAutoFocus:V(()=>c())}),b=u(()=>Ye(f,p.props));function w(L){if(p.handleInteractOutside(L),!L.defaultPrevented&&(l()(L),!L.defaultPrevented)){if(L.target&&L.target instanceof Element){const q=`[${p.parentMenu.root.getBitsAttr("sub-content")}]`;if(L.target.closest(q))return}p.parentMenu.onClose()}}function v(L){d()(L),!L.defaultPrevented&&p.parentMenu.onClose()}var M=Z(),O=y(M);{var ne=L=>{_n(L,ge(()=>t(b),()=>p.popperProps,{get ref(){return p.opts.ref},get enabled(){return p.parentMenu.opts.open.current},onInteractOutside:w,onEscapeKeydown:v,get trapFocus(){return _()},get loop(){return i()},forceMount:!0,get id(){return n()},get shouldRender(){return p.shouldRender},popper:(m,A)=>{let $=()=>(A?.()).props,X=()=>(A?.()).wrapperProps;const G=u(()=>Ye($(),{style:Zt("dropdown-menu")},{style:e.style}));var B=Z(),ae=y(B);{var T=I=>{var F=Z(),Q=y(F);{let se=u(()=>({props:t(G),wrapperProps:X(),...p.snippetProps}));Me(Q,()=>e.child,()=>t(se))}a(I,F)},R=I=>{var F=nn();Ge(F,()=>({...X()}));var Q=S(F);Ge(Q,()=>({...t(G)}));var se=S(Q);Me(se,()=>e.children??Re),C(Q),C(F),a(I,F)};D(ae,I=>{e.child?I(T):I(R,-1)})}a(m,B)},$$slots:{popper:!0}}))},le=L=>{yn(L,ge(()=>t(b),()=>p.popperProps,{get ref(){return p.opts.ref},get open(){return p.parentMenu.opts.open.current},onInteractOutside:w,onEscapeKeydown:v,get trapFocus(){return _()},get loop(){return i()},forceMount:!1,get id(){return n()},get shouldRender(){return p.shouldRender},popper:(m,A)=>{let $=()=>(A?.()).props,X=()=>(A?.()).wrapperProps;const G=u(()=>Ye($(),{style:Zt("dropdown-menu")},{style:e.style}));var B=Z(),ae=y(B);{var T=I=>{var F=Z(),Q=y(F);{let se=u(()=>({props:t(G),wrapperProps:X(),...p.snippetProps}));Me(Q,()=>e.child,()=>t(se))}a(I,F)},R=I=>{var F=nn();Ge(F,()=>({...X()}));var Q=S(F);Ge(Q,()=>({...t(G)}));var se=S(Q);Me(se,()=>e.children??Re),C(Q),C(F),a(I,F)};D(ae,I=>{e.child?I(T):I(R,-1)})}a(m,B)},$$slots:{popper:!0}}))};D(O,L=>{g()?L(ne):g()||L(le,1)})}a(o,M),_e()}var La=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]),Ba=x("<button><!></button>");function Ka(o,e){const r=pt();xe(e,!0);let n=k(e,"id",19,()=>mt(r)),s=k(e,"ref",15,null),i=k(e,"disabled",3,!1),l=k(e,"type",3,"button"),d=me(e,La);const c=jr.create({id:V(()=>n()),disabled:V(()=>i()??!1),ref:V(()=>s(),_=>s(_))}),g=u(()=>Ye(d,c.props,{type:l()}));ks(o,{get id(){return n()},get ref(){return c.opts.ref},children:(_,f)=>{var p=Z(),b=y(p);{var w=M=>{var O=Z(),ne=y(O);Me(ne,()=>e.child,()=>({props:t(g)})),a(M,O)},v=M=>{var O=Ba();Ge(O,()=>({...t(g)}));var ne=S(O);Me(ne,()=>e.children??Re),C(O),a(M,O)};D(b,M=>{e.child?M(w):M(v,-1)})}a(_,p)},$$slots:{default:!0}}),_e()}class kr{#e;#t;#r=null;constructor(e,r){this.#t=e,this.#e=r,this.stop=this.stop.bind(this),this.start=this.start.bind(this),Nn(this.stop)}#n(){this.#r!==null&&(window.clearTimeout(this.#r),this.#r=null)}stop(){this.#n()}start(...e){this.#n(),this.#r=window.setTimeout(()=>{this.#r=null,this.#t(...e)},this.#e)}}const Gn=Dn({component:"tooltip",parts:["content","trigger"]}),Rn=new kt("Tooltip.Provider"),Lr=new kt("Tooltip.Root");class Ha{#e=ue(gt(new Map));get triggers(){return t(this.#e)}set triggers(e){P(this.#e,e,!0)}#t=ue(null);get activeTriggerId(){return t(this.#t)}set activeTriggerId(e){P(this.#t,e,!0)}#r=u(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.node??null});get activeTriggerNode(){return t(this.#r)}set activeTriggerNode(e){P(this.#r,e)}#n=u(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.payload??null});get activePayload(){return t(this.#n)}set activePayload(e){P(this.#n,e)}register=e=>{const r=new Map(this.triggers);r.set(e.id,e),this.triggers=r,this.#s()};update=e=>{const r=new Map(this.triggers);r.set(e.id,e),this.triggers=r,this.#s()};unregister=e=>{if(!this.triggers.has(e))return;const r=new Map(this.triggers);r.delete(e),this.triggers=r,this.activeTriggerId===e&&(this.activeTriggerId=null)};setActiveTrigger=e=>{if(e===null){this.activeTriggerId=null;return}if(!this.triggers.has(e)){this.activeTriggerId=null;return}this.activeTriggerId=e};get=e=>this.triggers.get(e);has=e=>this.triggers.has(e);getFirstTriggerId=()=>{const e=this.triggers.entries().next();return e.done?null:e.value[0]};#s=()=>{const e=this.activeTriggerId;e!==null&&(this.triggers.has(e)||(this.activeTriggerId=null))}}class Br{static create(e){return Rn.set(new Br(e))}opts;#e=ue(!0);get isOpenDelayed(){return t(this.#e)}set isOpenDelayed(e){P(this.#e,e,!0)}isPointerInTransit=Fn(!1);#t;#r=ue(null);constructor(e){this.opts=e,this.#t=new kr(()=>{this.isOpenDelayed=!0},this.opts.skipDelayDuration.current),$r(()=>Wt(window,"scroll",r=>{const n=t(this.#r);if(!n)return;const s=n.triggerNode;if(!s)return;const i=r.target;(i instanceof Element||i instanceof Document)&&i.contains(s)&&n.handleClose()}))}#n=()=>{if(this.opts.skipDelayDuration.current===0){this.isOpenDelayed=!0;return}else this.#t.start()};#s=()=>{this.#t.stop()};onOpen=e=>{t(this.#r)&&t(this.#r)!==e&&t(this.#r).handleClose(),this.#s(),this.isOpenDelayed=!1,P(this.#r,e,!0)};onClose=e=>{t(this.#r)===e&&(P(this.#r,null),this.#n())};isTooltipOpen=e=>t(this.#r)===e}class Kr{static create(e){return Lr.set(new Kr(e,Rn.get()))}opts;provider;#e=u(()=>this.opts.delayDuration.current??this.provider.opts.delayDuration.current);get delayDuration(){return t(this.#e)}set delayDuration(e){P(this.#e,e)}#t=u(()=>this.opts.disableHoverableContent.current??this.provider.opts.disableHoverableContent.current);get disableHoverableContent(){return t(this.#t)}set disableHoverableContent(e){P(this.#t,e)}#r=u(()=>this.opts.disableCloseOnTriggerClick.current??this.provider.opts.disableCloseOnTriggerClick.current);get disableCloseOnTriggerClick(){return t(this.#r)}set disableCloseOnTriggerClick(e){P(this.#r,e)}#n=u(()=>this.opts.disabled.current??this.provider.opts.disabled.current);get disabled(){return t(this.#n)}set disabled(e){P(this.#n,e)}#s=u(()=>this.opts.ignoreNonKeyboardFocus.current??this.provider.opts.ignoreNonKeyboardFocus.current);get ignoreNonKeyboardFocus(){return t(this.#s)}set ignoreNonKeyboardFocus(e){P(this.#s,e)}registry;tether;#a=ue(null);get contentNode(){return t(this.#a)}set contentNode(e){P(this.#a,e,!0)}contentPresence;#o=ue(!1);#i;#l=u(()=>this.opts.open.current?t(this.#o)?"delayed-open":"instant-open":"closed");get stateAttr(){return t(this.#l)}set stateAttr(e){P(this.#l,e)}constructor(e,r){this.opts=e,this.provider=r,this.tether=e.tether.current?.state??null,this.registry=this.tether?.registry??new Ha,this.#i=new kr(()=>{P(this.#o,!0),this.opts.open.current=!0},this.delayDuration??0),this.tether&&(this.tether.root=this,$r(()=>()=>{this.tether?.root===this&&(this.tether.root=null)})),this.contentPresence=new $n({open:this.opts.open,ref:V(()=>this.contentNode),onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),it(()=>this.delayDuration,()=>{this.delayDuration!==void 0&&(this.#i=new kr(()=>{P(this.#o,!0),this.opts.open.current=!0},this.delayDuration))}),it(()=>this.opts.open.current,n=>{n?(this.ensureActiveTrigger(),this.provider.onOpen(this)):this.provider.onClose(this)},{lazy:!0}),it(()=>this.opts.triggerId.current,n=>{n!==this.registry.activeTriggerId&&this.registry.setActiveTrigger(n)}),it(()=>this.registry.activeTriggerId,n=>{this.opts.triggerId.current!==n&&(this.opts.triggerId.current=n)})}handleOpen=()=>{this.#i.stop(),P(this.#o,!1),this.ensureActiveTrigger(),this.opts.open.current=!0};handleClose=()=>{this.#i.stop(),this.opts.open.current=!1};cancelPendingOpen=()=>{this.#i.stop()};#d=()=>{this.#i.stop();const e=!this.provider.isOpenDelayed,r=this.delayDuration??0;e||r===0?(P(this.#o,!1),this.opts.open.current=!0):this.#i.start()};onTriggerEnter=e=>{this.setActiveTrigger(e),this.#d()};onTriggerLeave=()=>{this.disableHoverableContent?this.handleClose():this.#i.stop()};ensureActiveTrigger=()=>{if(this.registry.activeTriggerId!==null&&this.registry.has(this.registry.activeTriggerId))return;if(this.opts.triggerId.current!==null&&this.registry.has(this.opts.triggerId.current)){this.registry.setActiveTrigger(this.opts.triggerId.current);return}const e=this.registry.getFirstTriggerId();this.registry.setActiveTrigger(e)};setActiveTrigger=e=>{this.registry.setActiveTrigger(e)};registerTrigger=e=>{this.registry.register(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()};updateTrigger=e=>{this.registry.update(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()};unregisterTrigger=e=>{const r=this.registry.activeTriggerId===e;this.registry.unregister(e),r&&this.opts.open.current&&this.handleClose()};isActiveTrigger=e=>this.registry.activeTriggerId===e;get triggerNode(){return this.registry.activeTriggerNode}get activePayload(){return this.registry.activePayload}get activeTriggerId(){return this.registry.activeTriggerId}}class tr{static create(e){return e.tether.current?new tr(e,null,e.tether.current.state):new tr(e,Lr.get(),null)}opts;root;tether;attachment;#e=Fn(!1);#t=ue(!1);domContext;#r=null;#n=!1;#s=null;constructor(e,r,n){this.opts=e,this.root=r,this.tether=n,this.domContext=new On(e.ref),this.attachment=Ct(this.opts.ref,s=>this.#i(s)),it(()=>this.opts.id.current,()=>{this.#i(this.opts.ref.current)}),it(()=>this.opts.payload.current,()=>{this.#i(this.opts.ref.current)}),it(()=>this.opts.disabled.current,()=>{this.#i(this.opts.ref.current)}),$r(()=>(this.#n=!0,this.#i(this.opts.ref.current),()=>{const s=this.#a(),i=this.#s;i&&(this.tether?this.tether.registry.unregister(i):s?.unregisterTrigger(i)),this.#s=null,this.#n=!1}))}#a=()=>this.tether?.root??this.root;#o=()=>{const e=this.#a();return this.opts.disabled.current||!!e?.disabled};#i=e=>{if(!this.#n)return;const r=this.opts.id.current,n=this.opts.payload.current,s=this.opts.disabled.current;if(this.#s&&this.#s!==r){const d=this.#a();this.tether?this.tether.registry.unregister(this.#s):d?.unregisterTrigger(this.#s)}const i={id:r,node:e,payload:n,disabled:s},l=this.#a();this.tether?(this.tether.registry.has(r)?this.tether.registry.update(i):this.tether.registry.register(i),s&&this.tether.registry.activeTriggerId===r&&l?.opts.open.current&&l.handleClose()):l?.registry.has(r)?l.updateTrigger(i):l?.registerTrigger(i),this.#s=r};#l=()=>{this.#r!==null&&(clearTimeout(this.#r),this.#r=null)};handlePointerUp=()=>{this.#e.current=!1};#d=()=>{this.#o()||(this.#e.current=!1)};#g=()=>{if(this.#o())return;const e=this.#a();e&&!e.disableCloseOnTriggerClick&&(e.opts.open.current?e.handleClose():e.cancelPendingOpen()),this.#e.current=!0,this.domContext.getDocument().addEventListener("pointerup",()=>{this.handlePointerUp()},{once:!0})};#m=e=>{const r=this.#a();if(r){if(this.#o()){r.opts.open.current&&r.handleClose();return}if(e.pointerType!=="touch"){if(r.provider.isPointerInTransit.current){this.#l(),this.#r=window.setTimeout(()=>{r.provider.isPointerInTransit.current&&(r.provider.isPointerInTransit.current=!1,r.onTriggerEnter(this.opts.id.current),P(this.#t,!0))},250);return}r.onTriggerEnter(this.opts.id.current),P(this.#t,!0)}}};#b=e=>{const r=this.#a();if(r){if(this.#o()){r.opts.open.current&&r.handleClose();return}e.pointerType!=="touch"&&(t(this.#t)||(this.#l(),r.provider.isPointerInTransit.current=!1,r.onTriggerEnter(this.opts.id.current),P(this.#t,!0)))}};#c=e=>{const r=this.#a();if(!r||this.#o())return;if(this.#l(),!r.isActiveTrigger(this.opts.id.current)){P(this.#t,!1);return}const n=e.relatedTarget;if(_t(n)){for(const s of r.registry.triggers.values())if(s.node===n){if(r.provider.opts.skipDelayDuration.current>0){P(this.#t,!1);return}r.handleClose(),P(this.#t,!1);return}}r.onTriggerLeave(),P(this.#t,!1)};#u=e=>{const r=this.#a();if(r&&!this.#e.current){if(this.#o()){r.opts.open.current&&r.handleClose();return}r.ignoreNonKeyboardFocus&&!Js(e.currentTarget)||(r.setActiveTrigger(this.opts.id.current),r.handleOpen())}};#f=()=>{const e=this.#a();!e||this.#o()||e.handleClose()};#h=()=>{const e=this.#a();!e||e.disableCloseOnTriggerClick||this.#o()||e.handleClose()};#p=u(()=>{const e=this.#a(),r=!!(e?.opts.open.current&&e.isActiveTrigger(this.opts.id.current)),n=this.#o();return{id:this.opts.id.current,"aria-describedby":r?e?.contentNode?.id:void 0,"data-state":r?e?.stateAttr:"closed","data-disabled":or(n),"data-delay-duration":`${e?.delayDuration??0}`,[Gn.trigger]:"",tabindex:n?void 0:this.opts.tabindex.current,disabled:this.opts.disabled.current,onpointerup:this.#d,onpointerdown:this.#g,onpointerenter:this.#m,onpointermove:this.#b,onpointerleave:this.#c,onfocus:this.#u,onblur:this.#f,onclick:this.#h,...this.attachment}});get props(){return t(this.#p)}set props(e){P(this.#p,e)}}class Hr{static create(e){return new Hr(e,Lr.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=Ct(this.opts.ref,n=>this.root.contentNode=n),new Cs({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&!this.root.disableHoverableContent,transitIntentTimeout:180,ignoredTargets:()=>{if(this.root.provider.opts.skipDelayDuration.current===0)return[];const n=[],s=this.root.triggerNode;for(const i of this.root.registry.triggers.values())i.node&&i.node!==s&&n.push(i.node);return n},onPointerExit:()=>{this.root.provider.isTooltipOpen(this.root)&&this.root.handleClose()}})}onInteractOutside=e=>{if(_t(e.target)&&this.root.triggerNode?.contains(e.target)&&this.root.disableCloseOnTriggerClick){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current?.(e),!e.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=e=>{e.preventDefault()};onCloseAutoFocus=e=>{e.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#e=u(()=>({open:this.root.opts.open.current}));get snippetProps(){return t(this.#e)}set snippetProps(e){P(this.#e,e)}#t=u(()=>({id:this.opts.id.current,"data-state":this.root.stateAttr,"data-disabled":or(this.root.disabled),...En(this.root.contentPresence.transitionStatus),style:{outline:"none"},[Gn.content]:"",...this.attachment}));get props(){return t(this.#t)}set props(e){P(this.#t,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus}}function qa(o,e){xe(e,!0);let r=k(e,"open",15,!1),n=k(e,"triggerId",15,null),s=k(e,"onOpenChange",3,tt),i=k(e,"onOpenChangeComplete",3,tt);const l=Kr.create({open:V(()=>r(),d=>{r(d),s()(d)}),triggerId:V(()=>n(),d=>{n(d)}),delayDuration:V(()=>e.delayDuration),disableCloseOnTriggerClick:V(()=>e.disableCloseOnTriggerClick),disableHoverableContent:V(()=>e.disableHoverableContent),ignoreNonKeyboardFocus:V(()=>e.ignoreNonKeyboardFocus),disabled:V(()=>e.disabled),onOpenChangeComplete:V(()=>i()),tether:V(()=>e.tether)});xn(o,{tooltip:!0,children:(d,c)=>{var g=Z(),_=y(g);Me(_,()=>e.children??Re,()=>({open:l.opts.open.current,triggerId:l.activeTriggerId,payload:l.activePayload})),a(d,g)},$$slots:{default:!0}}),_e()}var Ua=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","side","sideOffset","align","avoidCollisions","arrowPadding","sticky","strategy","hideWhenDetached","customAnchor","collisionPadding","onInteractOutside","onEscapeKeydown","forceMount","style"]),sn=x("<div><div><!></div></div>");function Ga(o,e){const r=pt();xe(e,!0);let n=k(e,"id",19,()=>mt(r)),s=k(e,"ref",15,null),i=k(e,"side",3,"top"),l=k(e,"sideOffset",3,0),d=k(e,"align",3,"center"),c=k(e,"avoidCollisions",3,!0),g=k(e,"arrowPadding",3,0),_=k(e,"sticky",3,"partial"),f=k(e,"hideWhenDetached",3,!1),p=k(e,"collisionPadding",3,0),b=k(e,"onInteractOutside",3,tt),w=k(e,"onEscapeKeydown",3,tt),v=k(e,"forceMount",3,!1),M=me(e,Ua);const O=Hr.create({id:V(()=>n()),ref:V(()=>s(),$=>s($)),onInteractOutside:V(()=>b()),onEscapeKeydown:V(()=>w())}),ne=u(()=>({side:i(),sideOffset:l(),align:d(),avoidCollisions:c(),arrowPadding:g(),sticky:_(),hideWhenDetached:f(),collisionPadding:p(),strategy:e.strategy,customAnchor:e.customAnchor??O.root.triggerNode})),le=u(()=>Ye(M,t(ne),O.props));var L=Z(),q=y(L);{var m=$=>{{const X=(B,ae)=>{let T=()=>(ae?.()).props,R=()=>(ae?.()).wrapperProps;const I=u(()=>Ye(R(),{style:{pointerEvents:O.root.disableHoverableContent?"none":void 0}})),F=u(()=>Ye(T(),{style:Zt("tooltip")},{style:e.style}));var Q=Z(),se=y(Q);{var de=J=>{var Y=Z(),ee=y(Y);{let be=u(()=>({props:t(F),wrapperProps:t(I),...O.snippetProps}));Me(ee,()=>e.child,()=>t(be))}a(J,Y)},ye=J=>{var Y=sn();Ge(Y,()=>({...t(I)}));var ee=S(Y);Ge(ee,()=>({...t(F)}));var be=S(ee);Me(be,()=>e.children??Re),C(ee),C(Y),a(J,Y)};D(se,J=>{e.child?J(de):J(ye,-1)})}a(B,Q)};let G=u(()=>O.root.disableHoverableContent?"none":"auto");_n($,ge(()=>t(le),()=>O.popperProps,{get enabled(){return O.root.opts.open.current},get id(){return n()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!0,get ref(){return O.opts.ref},tooltip:!0,get shouldRender(){return O.shouldRender},get contentPointerEvents(){return t(G)},popper:X,$$slots:{popper:!0}}))}},A=$=>{{const X=(B,ae)=>{let T=()=>(ae?.()).props,R=()=>(ae?.()).wrapperProps;const I=u(()=>Ye(R(),{style:{pointerEvents:O.root.disableHoverableContent?"none":void 0}})),F=u(()=>Ye(T(),{style:Zt("tooltip")},{style:e.style}));var Q=Z(),se=y(Q);{var de=J=>{var Y=Z(),ee=y(Y);{let be=u(()=>({props:t(F),wrapperProps:t(I),...O.snippetProps}));Me(ee,()=>e.child,()=>t(be))}a(J,Y)},ye=J=>{var Y=sn();Ge(Y,()=>({...t(I)}));var ee=S(Y);Ge(ee,()=>({...t(F)}));var be=S(ee);Me(be,()=>e.children??Re),C(ee),C(Y),a(J,Y)};D(se,J=>{e.child?J(de):J(ye,-1)})}a(B,Q)};let G=u(()=>O.root.disableHoverableContent?"none":"auto");yn($,ge(()=>t(le),()=>O.popperProps,{get open(){return O.root.opts.open.current},get id(){return n()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!1,get ref(){return O.opts.ref},tooltip:!0,get shouldRender(){return O.shouldRender},get contentPointerEvents(){return t(G)},popper:X,$$slots:{popper:!0}}))}};D(q,$=>{v()?$(m):v()||$(A,1)})}a(o,L),_e()}var Ra=new Set(["$$slots","$$events","$$legacy","children","child","id","disabled","payload","tether","type","tabindex","ref"]),Ya=x("<button><!></button>");function Va(o,e){const r=pt();xe(e,!0);let n=k(e,"id",19,()=>mt(r)),s=k(e,"disabled",3,!1),i=k(e,"type",3,"button"),l=k(e,"tabindex",3,0),d=k(e,"ref",15,null),c=me(e,Ra);const g=tr.create({id:V(()=>n()),disabled:V(()=>s()??!1),tabindex:V(()=>l()??0),payload:V(()=>e.payload),tether:V(()=>e.tether),ref:V(()=>d(),v=>d(v))}),_=u(()=>Ye(c,g.props,{type:i()}));var f=Z(),p=y(f);{var b=v=>{var M=Z(),O=y(M);Me(O,()=>e.child,()=>({props:t(_)})),a(v,M)},w=v=>{var M=Ya();Ge(M,()=>({...t(_)}));var O=S(M);Me(O,()=>e.children??Re),C(M),a(v,M)};D(p,v=>{e.child?v(b):v(w,-1)})}a(o,f),_e()}var Xa=new Set(["$$slots","$$events","$$legacy","ref"]);function Ja(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=me(e,Xa);oa(o,ge(()=>n,{get ref(){return r()},set ref(s){r(s)}})),_e()}function Za(o,e){xe(e,!0);let r=k(e,"delayDuration",3,700),n=k(e,"disableCloseOnTriggerClick",3,!1),s=k(e,"disableHoverableContent",3,!1),i=k(e,"disabled",3,!1),l=k(e,"ignoreNonKeyboardFocus",3,!1),d=k(e,"skipDelayDuration",3,300);Br.create({delayDuration:V(()=>r()),disableCloseOnTriggerClick:V(()=>n()),disableHoverableContent:V(()=>s()),disabled:V(()=>i()),ignoreNonKeyboardFocus:V(()=>l()),skipDelayDuration:V(()=>d())});var c=Z(),g=y(c);Me(g,()=>e.children??Re),a(o,c),_e()}const Qa=6;function ei(o,e){return e.needsYou-o.needsYou||e.underWay-o.underWay||(e.lastActivity??0)-(o.lastActivity??0)||e.queued-o.queued}function ti(o,e,r){const n=new Map(o.map(s=>[s.id,[]]));for(const s of e)n.get(s.projectId)?.push(s);return new Map(o.map(s=>[s.id,ys(n.get(s.id)??[],r)]))}const rr=(o,e)=>o.name.localeCompare(e.name,void 0,{sensitivity:"base"});function ri(o,e,r){const n=r.limit??Qa,s=new Set(r.pinned),i=o.filter(p=>s.has(p.id)),l={underWay:0,needsYou:0,landed:0,queued:0,lastActivity:null},d=p=>e.get(p.id)??l,c=o.filter(p=>!s.has(p.id)).toSorted((p,b)=>ei(d(p),d(b))||rr(p,b)),g=c.slice(0,Math.max(0,n-i.length)),_=r.current?c.find(p=>p.id===r.current):void 0;_&&!g.includes(_)&&g.push(_);const f=new Set(g.map(p=>p.id));return{pinned:i,top:g,rest:c.filter(p=>!f.has(p.id)).toSorted(rr)}}function ni(o,e,r=[],n={}){const s=e.trim().toLowerCase();if(!s)return o.toSorted(rr);const i=new Set(r),l=d=>{const c=[d.name,n[d.id]].filter(Boolean).map(g=>g.toLowerCase());return c.some(g=>g.startsWith(s))?0:c.some(g=>g.split(/[\s\-_.:/]+/).some(_=>_.startsWith(s)))?1:c.some(g=>g.includes(s))||d.id.toLowerCase().includes(s)?2:-1};return o.map(d=>({p:d,r:l(d)})).filter(d=>d.r>=0).toSorted((d,c)=>d.r-c.r||Number(i.has(c.p.id))-Number(i.has(d.p.id))||rr(d.p,c.p)).map(d=>d.p)}function si(o){try{const e=o?JSON.parse(o):[];return Array.isArray(e)?[...new Set(e.filter(r=>typeof r=="string"))]:[]}catch{return[]}}const pr="wheelhouse-pinned-projects";class oi{#e=ue(gt([]));get ids(){return t(this.#e)}set ids(e){P(this.#e,e,!0)}loaded=!1;load(){if(!this.loaded){this.loaded=!0,this.read();try{window.addEventListener("storage",e=>{e.key===pr&&this.read()})}catch{}}}has(e){return this.ids.includes(e)}toggle(e){this.ids=this.has(e)?this.ids.filter(r=>r!==e):[...this.ids,e];try{localStorage.setItem(pr,JSON.stringify(this.ids))}catch{}}read(){try{this.ids=si(localStorage.getItem(pr))}catch{this.ids=[]}}}const Nt=new oi;var ai=x('<p class="px-2 py-3 text-sm text-muted-foreground"> </p>'),ii=x('<p class="px-2 pt-2 pb-1 text-xs font-medium tracking-wide text-muted-foreground uppercase"> </p>'),li=x('<div class="-mx-1 my-1 h-px bg-border" role="separator"></div>'),di=x('<p class="truncate px-2 pt-1.5 pb-0.5 text-xs text-muted-foreground"> </p>'),ci=x('<span aria-hidden="true"> </span> <input class="-my-1 min-w-0 flex-1 rounded border border-ring bg-card px-1.5 py-0.5 text-sm text-foreground outline-none"/>',1),ui=x('<span class="project-name"><span class="project-prefix"> </span><span class="truncate"> </span></span>'),hi=x('<span class="min-w-0 flex-1 truncate"> </span>'),pi=x('<span aria-hidden="true"> </span> <!>',1),fi=x('<span class="flex w-[1.45rem] shrink-0 justify-center" aria-hidden="true"><span class="thread-dot"></span></span>'),vi=x('<!> <span class="min-w-0 flex-1 truncate"> </span>',1),gi=x('<span class="tabular text-xs whitespace-nowrap text-sea"> </span>'),mi=x('<span class="tabular text-xs whitespace-nowrap text-muted-foreground"> </span>'),bi=x('<button type="button" tabindex="-1" class="-my-1 rounded p-1 text-muted-foreground opacity-0 group-hover:opacity-100 group-aria-selected:opacity-100 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring max-md:my-0 max-md:grid max-md:size-11 max-md:place-items-center pointer-coarse:opacity-100"><!></button> <button type="button" tabindex="-1"><!></button>',1),xi=x('<div role="option" tabindex="-1"><!> <!> <!> <!> <!></div>'),on=x("<!> <!>",1),_i=x('<div class="flex flex-col"><label class="flex items-center gap-2 border-b border-hair px-3 max-md:px-5"><!> <input type="search" role="combobox" aria-expanded="true" aria-autocomplete="list" aria-label="Find a project" placeholder="Find a project…" autocomplete="off" spellcheck="false" class="h-10 min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground max-md:h-12 max-md:text-base [&amp;::-webkit-search-cancel-button]:hidden"/></label> <div role="listbox" aria-label="Projects" class="max-h-[min(24rem,60dvh)] overflow-y-auto p-1 max-md:max-h-none max-md:px-2 max-md:pb-3"><!> <!></div></div>');function yi(o,e){const r=pt();xe(e,!0);let n=k(e,"topics",19,()=>[]);const s={id:"all",name:"All projects"};let i=ue(""),l=ue(0),d=ue(null),c=ue(null);wt(()=>{Nt.load(),$t.load(),P(l,Math.max(0,t(f).findIndex(T=>T.id===e.current)),!0)});const g=u(()=>yr(e.projects,$t.names)),_=u(()=>{const T=t(i).trim()?null:ri(e.projects,e.stats,{pinned:Nt.ids,current:e.current});return(T?[{label:null,options:[s]},{label:"Chat topics",options:n()},{label:"Pinned",options:T.pinned},{label:"Most active",options:T.top},{label:T.pinned.length||T.top.length?"Other projects":"Projects",options:T.rest}]:[{label:null,options:ni(e.projects,t(i),Nt.ids,$t.names)},{label:"Chat topics",options:n().filter(I=>I.name.toLowerCase().includes(t(i).trim().toLowerCase()))}]).map(I=>({...I,options:Yr(I.options,t(g)).flatMap(F=>F.items)})).filter(I=>I.options.length)}),f=u(()=>t(_).flatMap(T=>T.options));function p(T){P(i,T,!0),P(l,0)}at(()=>{t(c)?.querySelector(`#${CSS.escape(`${r}-${t(l)}`)}`)?.scrollIntoView?.({block:"nearest"})});function b(T){const R=t(f).length;if(T.key==="ArrowDown"||T.key==="ArrowUp")T.preventDefault(),R&&P(l,(t(l)+(T.key==="ArrowDown"?1:R-1))%R);else if(T.key==="Enter"){T.preventDefault();const I=t(f)[t(l)];I&&e.onpick(I.id)}}function w(){t(d)?.focus()}let v=ue(null),M=ue("");function O(T){P(M,$t.names[T]??t(g).get(T)?.label??T,!0),P(v,T,!0)}function ne(){if(!t(v))return;const T=yr(e.projects).get(t(v))?.label;$t.set(t(v),t(M).trim()===T?"":t(M)),P(v,null),t(d)?.focus()}const le=T=>{T.focus(),T.select()};var L={focus:w},q=_i(),m=S(q),A=S(m);As(A,{class:"size-4 shrink-0 text-muted-foreground","aria-hidden":"true"});var $=h(A,2);Ur($),Jt($,T=>P(d,T),()=>t(d)),C(m);var X=h(m,2),G=S(X);{var B=T=>{var R=ai(),I=re(R);j(F=>z(I,`No project matches “${F??""}”.`),[()=>t(i).trim()]),a(T,R)};D(G,T=>{t(f).length||T(B)})}var ae=h(G,2);return Je(ae,19,()=>t(_),(T,R)=>T.label??`g${R}`,(T,R,I)=>{var F=on(),Q=y(F);{var se=J=>{var Y=ii(),ee=re(Y,!0);j(()=>z(ee,t(R).label)),a(J,Y)},de=J=>{var Y=li();a(J,Y)};D(Q,J=>{t(R).label?J(se):t(I)>0&&J(de,1)})}var ye=h(Q,2);Je(ye,17,()=>Yr(t(R).options,t(g)),J=>J.group?`g:${J.group}`:`p:${J.items[0].id}`,(J,Y)=>{var ee=on(),be=y(ee);{var $e=Oe=>{var ie=di(),Ie=re(ie,!0);j(()=>{ce(ie,"title",t(Y).group),z(Ie,t(Y).group)}),a(Oe,ie)};D(be,Oe=>{t(Y).group&&Oe($e)})}var De=h(be,2);Je(De,17,()=>t(Y).items,Oe=>Oe.id,(Oe,ie)=>{const Ie=u(()=>t(f).indexOf(t(ie))),Ze=u(()=>e.needCount(t(ie).id)),E=u(()=>Nt.has(t(ie).id)),H=u(()=>t(g).get(t(ie).id)),we=u(()=>"hue"in t(ie)),Pe=u(()=>e.counts?.get(t(ie).id));var he=xi(),qe=S(he);{var rt=K=>{var te=ci(),pe=y(te),ze=re(pe,!0),ke=h(pe,2);Ur(ke),gn(()=>Is(ke,()=>t(M),fe=>P(M,fe))),Ps(ke,fe=>le?.(fe)),j(()=>{je(pe,1,`project-tile ${t(Y).group?"ml-3":""}`),ce(pe,"data-hue",t(H)?.hue),z(ze,t(H)?.monogram),ce(ke,"aria-label",`Friendly name for ${t(H)?.full??t(ie).name??""}`),ce(ke,"placeholder",t(H)?.full??t(ie).name)}),Xt("blur",ke,ne),st("click",ke,fe=>fe.stopPropagation()),st("keydown",ke,fe=>{fe.stopPropagation(),fe.key==="Enter"?(fe.preventDefault(),ne()):fe.key==="Escape"&&(fe.preventDefault(),P(v,null),t(d)?.focus())}),a(K,te)},Fe=K=>{var te=pi(),pe=y(te),ze=re(pe,!0),ke=h(pe,2);{var fe=Be=>{var Ue=ui(),Ve=S(Ue),Et=re(Ve),Kt=h(Ve),lr=re(Kt,!0);C(Ue),j(()=>{ce(Ue,"title",t(H).full),z(Et,`${t(H).group??""} ›`),z(lr,t(H).label)}),a(Be,Ue)},Ne=Be=>{var Ue=hi(),Ve=re(Ue,!0);j(()=>{ce(Ue,"title",t(H).full),z(Ve,t(H).label)}),a(Be,Ue)};D(ke,Be=>{t(H).group&&!t(Y).group&&t(H).label!==t(H).full?Be(fe):Be(Ne,-1)})}j(()=>{je(pe,1,`project-tile ${t(Y).group?"ml-3":""}`),ce(pe,"data-hue",t(H).hue),z(ze,t(H).monogram)}),a(K,te)},Qe=K=>{var te=vi(),pe=y(te);{var ze=Ne=>{var Be=fi(),Ue=re(Be);j(()=>ce(Ue,"data-hue",t(ie).hue??void 0)),a(Ne,Be)};D(pe,Ne=>{t(we)&&Ne(ze)})}var ke=h(pe,2),fe=re(ke,!0);j(()=>z(fe,t(ie).name)),a(K,te)};D(qe,K=>{t(v)===t(ie).id?K(rt):t(H)?K(Fe,1):K(Qe,-1)})}var Xe=h(qe,2);{var Le=K=>{var te=gi(),pe=re(te);j(()=>z(pe,`${t(Ze)??""} need you`)),a(K,te)};D(Xe,K=>{t(Ze)&&K(Le)})}var Ce=h(Xe,2);{var U=K=>{var te=mi(),pe=re(te,!0);j(()=>{ce(te,"title",`${t(Pe)??""} in the chat`),z(pe,t(Pe))}),a(K,te)};D(Ce,K=>{t(Pe)&&K(U)})}var N=h(Ce,2);{var W=K=>{It(K,{class:"size-4 shrink-0","aria-label":"Selected"})};D(N,K=>{e.current===t(ie).id&&K(W)})}var ve=h(N,2);{var Ae=K=>{var te=bi(),pe=y(te),ze=S(pe);zo(ze,{class:"size-3.5"}),C(pe);var ke=h(pe,2),fe=S(ke);{let Ne=u(()=>t(E)?"currentColor":"none");jo(fe,{class:"size-3.5",get fill(){return t(Ne)}})}C(ke),j(()=>{ce(pe,"aria-label",`Rename ${t(H)?.full??t(ie).name??""}`),je(ke,1,`-my-1 rounded p-1 text-muted-foreground hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring max-md:my-0 max-md:grid max-md:size-11 max-md:place-items-center ${t(E)?"":"opacity-0 group-hover:opacity-100 group-aria-selected:opacity-100 pointer-coarse:opacity-100"}`),ce(ke,"aria-label",t(E)?`Unpin ${t(ie).name}`:`Pin ${t(ie).name}`),ce(ke,"aria-pressed",t(E))}),st("click",pe,Ne=>{Ne.stopPropagation(),O(t(ie).id)}),st("click",ke,Ne=>{Ne.stopPropagation(),Nt.toggle(t(ie).id),t(d)?.focus()}),a(K,te)};D(ve,K=>{t(ie).id!=="all"&&!t(we)&&t(v)!==t(ie).id&&K(Ae)})}C(he),j(()=>{ce(he,"id",`${r}-${t(Ie)??""}`),ce(he,"aria-selected",t(Ie)===t(l)),ce(he,"data-project",t(ie).id),je(he,1,`group flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm select-none max-md:min-h-12 max-md:rounded-md max-md:py-1 ${t(Ie)===t(l)?"bg-accent text-accent-foreground":""}`)}),st("mousemove",he,()=>P(l,t(Ie),!0)),st("click",he,()=>e.onpick(t(ie).id)),st("keydown",he,()=>{}),a(Oe,he)}),a(J,ee)}),a(T,F)}),C(X),Jt(X,T=>P(c,T),()=>t(c)),C(q),j(()=>{is($,t(i)),ce($,"aria-controls",`${r}-list`),ce($,"aria-activedescendant",t(f).length?`${r}-${t(l)}`:void 0),ce(X,"id",`${r}-list`)}),st("input",$,T=>p(T.currentTarget.value)),st("keydown",$,b),a(o,q),_e(L)}nr(["input","keydown","mousemove","click"]);var wi=new Set(["$$slots","$$events","$$legacy"]);function ki(o,e){let r=me(e,wi);var n=Z(),s=y(n);oe(s,()=>ar,(i,l)=>{l(i,ge(()=>r))}),a(o,n)}var Ci=new Set(["$$slots","$$events","$$legacy","ref","class","sideOffset","side","children","arrowClasses","portalProps"]),Pi=x("<div></div>"),Ti=x("<!> <!>",1);function Yn(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=k(e,"sideOffset",3,0),s=k(e,"side",3,"top"),i=me(e,Ci);ki(o,ge(()=>e.portalProps,{children:(l,d)=>{var c=Z(),g=y(c);{let _=u(()=>yt("z-50 inline-flex w-fit max-w-xs origin-(--bits-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e.class));oe(g,()=>Ga,(f,p)=>{p(f,ge({"data-slot":"tooltip-content",get sideOffset(){return n()},get side(){return s()},get class(){return t(_)}},()=>i,{get ref(){return r()},set ref(b){r(b)},children:(b,w)=>{var v=Ti(),M=y(v);Me(M,()=>e.children??Re);var O=h(M,2);{const ne=(le,L)=>{let q=()=>(L?.()).props;var m=Pi();Ge(m,A=>({class:A,...q()}),[()=>yt("z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:-translate-x-1/2 data-[side=bottom]:-translate-y-[calc(-50%_+_1px)] data-[side=left]:-translate-y-[calc(50%_-_3px)] data-[side=right]:translate-x-[calc(50%_+_2px)] data-[side=right]:translate-y-1/2 data-[side=top]:translate-x-1/2 data-[side=top]:translate-y-[calc(-50%_+_2px)]",e.arrowClasses)]),a(le,m)};oe(O,()=>Ja,(le,L)=>{L(le,{child:ne,$$slots:{child:!0}})})}a(b,v)},$$slots:{default:!0}}))})}a(l,c)},$$slots:{default:!0}})),_e()}var Si=new Set(["$$slots","$$events","$$legacy","delayDuration"]);function Mi(o,e){let r=k(e,"delayDuration",3,0),n=me(e,Si);var s=Z(),i=y(s);oe(i,()=>Za,(l,d)=>{d(l,ge({get delayDuration(){return r()}},()=>n))}),a(o,s)}var $i=new Set(["$$slots","$$events","$$legacy","ref"]);function Rt(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=me(e,$i);var s=Z(),i=y(s);oe(i,()=>Va,(l,d)=>{d(l,ge({"data-slot":"tooltip-trigger"},()=>n,{get ref(){return r()},set ref(c){r(c)}}))}),a(o,s),_e()}var Ii=new Set(["$$slots","$$events","$$legacy","open"]);function Yt(o,e){xe(e,!0);let r=k(e,"open",15,!1),n=me(e,Ii);var s=Z(),i=y(s);oe(i,()=>qa,(l,d)=>{d(l,ge(()=>n,{get open(){return r()},set open(c){r(c)}}))}),a(o,s),_e()}var Ai=new Set(["$$slots","$$events","$$legacy","ref","checked","indeterminate","class","children","closeOnSelect"]),Oi=x('<span class="pointer-events-none absolute right-2 flex items-center justify-center" data-slot="dropdown-menu-checkbox-item-indicator"><!></span> <!>',1);function fr(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=k(e,"checked",15,!1),s=k(e,"indeterminate",15,!1),i=k(e,"closeOnSelect",3,!1),l=me(e,Ai);var d=Z(),c=y(d);{const g=(f,p)=>{let b=()=>(p?.()).checked,w=()=>(p?.()).indeterminate;var v=Oi(),M=y(v),O=S(M);{var ne=q=>{oo(q,{})},le=q=>{It(q,{})};D(O,q=>{w()?q(ne):b()&&q(le,1)})}C(M);var L=h(M,2);Me(L,()=>e.children??Re),a(f,v)};let _=u(()=>yt("relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e.class));oe(c,()=>Fa,(f,p)=>{p(f,ge({get closeOnSelect(){return i()},"data-slot":"dropdown-menu-checkbox-item",get class(){return t(_)}},()=>l,{get ref(){return r()},set ref(b){r(b)},get checked(){return n()},set checked(b){n(b)},get indeterminate(){return s()},set indeterminate(b){s(b)},children:g,$$slots:{default:!0}}))})}a(o,d),_e()}var Ei=new Set(["$$slots","$$events","$$legacy"]);function Di(o,e){let r=me(e,Ei);var n=Z(),s=y(n);oe(s,()=>ar,(i,l)=>{l(i,ge(()=>r))}),a(o,n)}var Ni=new Set(["$$slots","$$events","$$legacy","ref","sideOffset","align","portalProps","class"]);function Fi(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=k(e,"sideOffset",3,4),s=k(e,"align",3,"start"),i=me(e,Ni);Di(o,ge(()=>e.portalProps,{children:(l,d)=>{var c=Z(),g=y(c);{let _=u(()=>yt("z-50 max-h-(--bits-dropdown-menu-content-available-height) w-(--bits-dropdown-menu-anchor-width) min-w-32 origin-(--bits-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95",e.class));oe(g,()=>ja,(f,p)=>{p(f,ge({"data-slot":"dropdown-menu-content",get sideOffset(){return n()},get align(){return s()},get class(){return t(_)}},()=>i,{get ref(){return r()},set ref(b){r(b)}}))})}a(l,c)},$$slots:{default:!0}})),_e()}var zi=new Set(["$$slots","$$events","$$legacy","ref"]);function vr(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=me(e,zi);var s=Z(),i=y(s);oe(i,()=>Ia,(l,d)=>{d(l,ge({"data-slot":"dropdown-menu-group"},()=>n,{get ref(){return r()},set ref(c){r(c)}}))}),a(o,s),_e()}var Wi=new Set(["$$slots","$$events","$$legacy","ref","class","inset","variant"]);function an(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=k(e,"variant",3,"default"),s=me(e,Wi);var i=Z(),l=y(i);{let d=u(()=>yt("group/dropdown-menu-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",e.class));oe(l,()=>Sa,(c,g)=>{g(c,ge({"data-slot":"dropdown-menu-item",get"data-inset"(){return e.inset},get"data-variant"(){return n()},get class(){return t(d)}},()=>s,{get ref(){return r()},set ref(_){r(_)}}))})}a(o,i),_e()}var ji=new Set(["$$slots","$$events","$$legacy","ref","class","inset","children"]),Li=x("<div><!></div>");function gr(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=me(e,ji);var s=Li();Ge(s,l=>({"data-slot":"dropdown-menu-label","data-inset":e.inset,class:l,...n}),[()=>yt("px-2 py-1.5 text-xs font-medium text-muted-foreground data-inset:pl-8",e.class)]);var i=S(s);Me(i,()=>e.children??Re),C(s),Jt(s,l=>r(l),()=>r()),a(o,s),_e()}var Bi=new Set(["$$slots","$$events","$$legacy","ref","class"]);function ln(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=me(e,Bi);var s=Z(),i=y(s);{let l=u(()=>yt("-mx-1 my-1 h-px bg-border",e.class));oe(i,()=>Ea,(d,c)=>{c(d,ge({"data-slot":"dropdown-menu-separator",get class(){return t(l)}},()=>n,{get ref(){return r()},set ref(g){r(g)}}))})}a(o,s),_e()}var Ki=new Set(["$$slots","$$events","$$legacy","ref"]);function Hi(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=me(e,Ki);var s=Z(),i=y(s);oe(i,()=>Ka,(l,d)=>{d(l,ge({"data-slot":"dropdown-menu-trigger"},()=>n,{get ref(){return r()},set ref(c){r(c)}}))}),a(o,s),_e()}var qi=new Set(["$$slots","$$events","$$legacy","open"]);function Ui(o,e){xe(e,!0);let r=k(e,"open",15,!1),n=me(e,qi);var s=Z(),i=y(s);oe(i,()=>za,(l,d)=>{d(l,ge(()=>n,{get open(){return r()},set open(c){r(c)}}))}),a(o,s),_e()}const Gi=587,Ri=[[.5,.35,2.8],[1,.6,2.2],[1.2,.3,1.6],[1.5,.22,1.3],[2,.4,1.1],[2.74,.12,.7],[3.76,.08,.45]],Yi=.42,Vi=.16;let St=null;function Vt(){try{const o=globalThis.AudioContext??globalThis.webkitAudioContext;if(!o)return;St??=new o,St.state==="suspended"&&St.resume();const e=St.currentTime+.02;dn(St,e),dn(St,e+Yi)}catch{}}function dn(o,e){const r=o.createGain();r.gain.value=Vi,r.connect(o.destination);for(const[n,s,i]of Ri){const l=o.createOscillator(),d=o.createGain();l.type="sine",l.frequency.value=Gi*n,d.gain.setValueAtTime(1e-4,e),d.gain.exponentialRampToValueAtTime(s,e+.004),d.gain.exponentialRampToValueAtTime(1e-4,e+i),l.connect(d).connect(r),l.start(e),l.stop(e+i+.05)}}const Ht="wheelhouse-bell",cn="wheelhouse-bell-seen",Ft="wheelhouse-bell-dismissed",Xi="wheelhouse-bell",Ji=400,Zi=12,Qi=12,el=400,Vn={sound:!1,notify:!1,kinds:{"pr-green":!0,question:!0,stuck:!0,landed:!0,issue:!0}};function qr(o){return Wn.find(e=>e.kind===o)?.label??o}function Mt(o,e){try{const r=localStorage.getItem(o);return r?JSON.parse(r):e}catch{return e}}function mr(o,e){try{localStorage.setItem(o,JSON.stringify(e))}catch{}}function un(o){const e=o&&typeof o=="object"?o:{},r={...Vn.kinds};for(const n of Object.keys(r))typeof e.kinds?.[n]=="boolean"&&(r[n]=e.kinds[n]);return{sound:e.sound===!0,notify:e.notify===!0,kinds:r}}function hn(o,e,r=Ji){return o.includes(e)?!1:(o.push(e),o.length>r&&o.splice(0,o.length-r),!0)}class tl{#e=ue(gt(Vn));get settings(){return t(this.#e)}set settings(e){P(this.#e,e,!0)}#t=ue(gt([]));get toasts(){return t(this.#t)}set toasts(e){P(this.#t,e,!0)}#r=ue(gt([]));get log(){return t(this.#r)}set log(e){P(this.#r,e,!0)}#n=ue(0);get unread(){return t(this.#n)}set unread(e){P(this.#n,e,!0)}#s=ue("default");get permission(){return t(this.#s)}set permission(e){P(this.#s,e,!0)}#a=ue(gt({}));get notes(){return t(this.#a)}set notes(e){P(this.#a,e,!0)}dismissed=[];raisedAt=new Map;rang=new Set;channel=null;started=!1;start(){if(this.started)return()=>{};this.started=!0,this.settings=un(Mt(Ht,null)),this.dismissed=Mt(Ft,[]),this.permission=typeof Notification>"u"?"unsupported":Notification.permission,He.claim=n=>{const s=Mt(cn,[]),i=hn(s,ut(n));return i&&mr(cn,s),i};const e=He.onAlert(n=>this.receive(n)),r=n=>{n.key===Ht&&(this.settings=un(Mt(Ht,null))),n.key===Ft&&(this.dismissed=Mt(Ft,[]),this.toasts=this.toasts.filter(s=>!this.dismissed.includes(ut(s.alert))))};return addEventListener("storage",r),typeof BroadcastChannel<"u"&&(this.channel=new BroadcastChannel(Xi),this.channel.onmessage=n=>{n.data?.t==="rang"&&this.rang.add(n.data.id)}),()=>{e(),removeEventListener("storage",r),this.channel?.close(),this.channel=null,He.claim=()=>!0,this.started=!1}}receive(e){if(e.type==="settled"){this.toasts=this.toasts.filter(n=>n.alert.id!==e.data);return}const r=e.type==="alert"?[{alert:e.data,fresh:e.fresh}]:e.data;for(const{alert:n,fresh:s}of r){const i=Date.parse(n.at);if(i<(this.raisedAt.get(n.id)??-1/0))continue;this.raisedAt.set(n.id,i),this.log=[n,...this.log.filter(d=>d.id!==n.id)].sort((d,c)=>Date.parse(c.at)-Date.parse(d.at)).slice(0,Zi);const l=ut(n);!this.settings.kinds[n.kind]||this.dismissed.includes(l)||this.toasts.some(d=>ut(d.alert)===l)||(s?(this.unread++,this.show({alert:n,fresh:s}),this.ring(n)):n.captain&&Vr(n,He.fleet)&&this.show({alert:n,fresh:s}))}}show(e){const r=[...this.toasts.filter(n=>n.alert.id!==e.alert.id),e];for(;r.length>Qi;){const n=r.findIndex(s=>!s.alert.captain);r.splice(n===-1?0:n,1)}this.toasts=r}dismiss(e){const r=ut(e);this.toasts=this.toasts.filter(s=>ut(s.alert)!==r);const n=Mt(Ft,[]);hn(n,r)&&mr(Ft,n),this.dismissed=n}expire(e){this.toasts=this.toasts.filter(r=>r.alert.id!==e||r.alert.captain)}prune(){const e=He.fleet;if(!e)return;const r=this.toasts.filter(n=>Vr(n.alert,e));r.length!==this.toasts.length&&(this.toasts=r)}update(e){this.settings={...this.settings,...e},mr(Ht,this.settings)}setKind(e,r){this.update({kinds:{...this.settings.kinds,[e]:r}}),r||(this.toasts=this.toasts.filter(n=>n.alert.kind!==e))}async setNotify(e){if(!e||typeof Notification>"u"){this.update({notify:!1});return}let r=Notification.permission;r==="default"&&(r=await Notification.requestPermission()),this.permission=r,this.update({notify:r==="granted"})}setSound(e){this.update({sound:e}),e&&Vt()}opened(){this.unread=0}async act(e,r=""){if(e.kind==="open"){e.external?window.open(e.href,"_blank","noopener,noreferrer"):await jt(e.href);return}const n=this.notes[e.requestId];if(n?.state==="sending"||n?.state==="sent")return;this.notes[e.requestId]={state:"sending"};const s=await ps(e.text,r,null,e.requestId);this.notes[e.requestId]=s.ok?{state:"sent"}:{state:"failed",error:s.error}}ring(e){if(document.visibilityState==="visible"&&document.hasFocus()){this.settings.sound&&Vt(),this.channel?.postMessage({t:"rang",id:ut(e)});return}He.leader&&setTimeout(()=>{this.rang.has(ut(e))||(this.settings.sound&&Vt(),this.notify(e))},el)}notify(e){if(!(!this.settings.notify||typeof Notification>"u")&&Notification.permission==="granted")try{const r=new Notification(`${qr(e.kind)}: ${e.title}`,{body:e.text,tag:e.id}),n=e.actions.find(s=>s.kind==="open"&&!s.external);r.onclick=()=>{window.focus(),jt(n?.kind==="open"?n.href:e.taskId?ao(e.taskId):"/"),r.close()}}catch{}}}const Se=new tl;var rl=x('<span class="tabular absolute -top-0.5 -right-0.5 min-w-4 rounded-full bg-brass px-1 text-[0.6875rem] leading-4 font-semibold text-on-accent" aria-hidden="true"> </span>'),qt=x("<!> <!>",1),nl=x('<span class="flex w-full items-baseline justify-between gap-3 text-xs"><span> </span> <span class="text-muted-foreground"> </span></span> <span class="line-clamp-1 font-medium"> </span> <span class="line-clamp-2 text-xs text-muted-foreground"> </span>',1),sl=x('<p class="px-2 pb-2 text-sm text-muted-foreground">Nothing has rung yet.</p>'),ol=x('<span class="flex flex-col"><span> </span> <span class="text-xs text-muted-foreground"> </span></span>'),al=x('<span class="flex flex-col"><span>Bell sound</span> <span class="text-xs text-muted-foreground">Two strokes of a ship’s bell. Off unless you turn it on.</span></span>'),il=x('<span class="flex flex-col"><span>Browser notifications</span> <span class="text-xs text-muted-foreground"> </span></span>'),ll=x("<!>Ring the bell to hear it",1),dl=x("<!> <!> <!> <!>",1),cl=x('<div class="border-b border-b-brass/60 px-3 py-2.5"><p class="font-display text-base font-semibold">Ship’s bell</p> <p class="text-xs text-muted-foreground">Rings for the moments that need you.</p></div> <!> <!> <!> <!> <!>',1);function ul(o,e){xe(e,!0);const r=u(()=>Object.values(Se.settings.kinds).every(l=>!l)),n=u(()=>Se.permission==="unsupported"?"This browser cannot show notifications.":Se.permission==="denied"?"Blocked in this browser’s site settings.":"When no Wheelhouse tab is in front.");var s=Z(),i=y(s);oe(i,()=>Ui,(l,d)=>{d(l,{onOpenChange:c=>c&&Se.opened(),children:(c,g)=>{var _=qt(),f=y(_);{const b=(w,v)=>{let M=()=>(v?.()).props;{let O=u(()=>Se.unread?`Ship’s bell: ${Se.unread} new ${Se.unread===1?"alert":"alerts"}`:"Ship’s bell");ot(w,ge(M,{variant:"ghost",size:"icon-sm",class:"relative",get"aria-label"(){return t(O)},children:(ne,le)=>{var L=qt(),q=y(L);{var m=B=>{_o(B,{})},A=B=>{Qr(B,{})},$=B=>{Ts(B,{})};D(q,B=>{t(r)?B(m):Se.unread?B(A,1):B($,-1)})}var X=h(q,2);{var G=B=>{var ae=rl(),T=re(ae,!0);j(()=>z(T,Se.unread)),a(B,ae)};D(X,B=>{Se.unread&&B(G)})}a(ne,L)},$$slots:{default:!0}}))}};oe(f,()=>Hi,(w,v)=>{v(w,{child:b,$$slots:{child:!0}})})}var p=h(f,2);oe(p,()=>Fi,(b,w)=>{w(b,{align:"end",class:"w-80 max-w-[calc(100vw-2rem)] p-0",children:(v,M)=>{var O=cl(),ne=h(y(O),2);oe(ne,()=>vr,(A,$)=>{$(A,{class:"p-1",children:(X,G)=>{var B=qt(),ae=y(B);oe(ae,()=>gr,(R,I)=>{I(R,{children:(F,Q)=>{Ke();var se=ct("Recent");a(F,se)},$$slots:{default:!0}})});var T=h(ae,2);Je(T,17,()=>Se.log,R=>R.id,(R,I)=>{const F=u(()=>t(I).actions.find(de=>de.kind==="open"));var Q=Z(),se=y(Q);oe(se,()=>an,(de,ye)=>{ye(de,{class:"flex-col items-start gap-0.5",onSelect:()=>t(F)&&Se.act(t(F)),children:(J,Y)=>{var ee=nl(),be=y(ee),$e=S(be),De=re($e,!0),Oe=h($e,2),ie=re(Oe,!0);C(be);var Ie=h(be,2),Ze=re(Ie,!0),E=h(Ie,2),H=re(E,!0);j((we,Pe)=>{je($e,1,`font-medium ${jn[Ln[t(I).kind]]??""}`),z(De,we),z(ie,Pe),z(Ze,t(I).title),z(H,t(I).text)},[()=>qr(t(I).kind),()=>er(t(I).at,He.now)]),a(J,ee)},$$slots:{default:!0}})}),a(R,Q)},R=>{var I=sl();a(R,I)}),a(X,B)},$$slots:{default:!0}})});var le=h(ne,2);oe(le,()=>ln,(A,$)=>{$(A,{class:"my-0"})});var L=h(le,2);oe(L,()=>vr,(A,$)=>{$(A,{class:"p-1",children:(X,G)=>{var B=qt(),ae=y(B);oe(ae,()=>gr,(R,I)=>{I(R,{children:(F,Q)=>{Ke();var se=ct("Ring for");a(F,se)},$$slots:{default:!0}})});var T=h(ae,2);Je(T,17,()=>Wn,R=>R.kind,(R,I)=>{var F=Z(),Q=y(F);oe(Q,()=>fr,(se,de)=>{de(se,{get checked(){return Se.settings.kinds[t(I).kind]},onCheckedChange:ye=>Se.setKind(t(I).kind,ye),children:(ye,J)=>{var Y=ol(),ee=S(Y),be=re(ee,!0),$e=h(ee,2),De=re($e,!0);C(Y),j(()=>{z(be,t(I).label),z(De,t(I).hint)}),a(ye,Y)},$$slots:{default:!0}})}),a(R,F)}),a(X,B)},$$slots:{default:!0}})});var q=h(L,2);oe(q,()=>ln,(A,$)=>{$(A,{class:"my-0"})});var m=h(q,2);oe(m,()=>vr,(A,$)=>{$(A,{class:"p-1",children:(X,G)=>{var B=dl(),ae=y(B);oe(ae,()=>gr,(F,Q)=>{Q(F,{children:(se,de)=>{Ke();var ye=ct("How");a(se,ye)},$$slots:{default:!0}})});var T=h(ae,2);oe(T,()=>fr,(F,Q)=>{Q(F,{get checked(){return Se.settings.sound},onCheckedChange:se=>Se.setSound(se),children:(se,de)=>{var ye=al();a(se,ye)},$$slots:{default:!0}})});var R=h(T,2);{let F=u(()=>Se.permission==="unsupported"||Se.permission==="denied");oe(R,()=>fr,(Q,se)=>{se(Q,{get checked(){return Se.settings.notify},get disabled(){return t(F)},onCheckedChange:de=>{Se.setNotify(de)},children:(de,ye)=>{var J=il(),Y=h(S(J),2),ee=re(Y,!0);C(J),j(()=>z(ee,t(n))),a(de,J)},$$slots:{default:!0}})})}var I=h(R,2);oe(I,()=>an,(F,Q)=>{Q(F,{closeOnSelect:!1,onSelect:()=>Vt(),children:(se,de)=>{var ye=ll(),J=y(ye);Qr(J,{class:"text-brass"}),Ke(),a(se,ye)},$$slots:{default:!0}})}),a(X,B)},$$slots:{default:!0}})}),a(v,O)},$$slots:{default:!0}})}),a(c,_)},$$slots:{default:!0}})}),a(o,s),_e()}const At=[{step:"fetch",label:"Fetch from GitHub"},{step:"fast-forward",label:"Fast-forward the clone"},{step:"install",label:"Install packages (npm ci)"},{step:"build",label:"Build"},{step:"restart",label:"Restart Wheelhouse"}],hl=[{step:"npm-install",label:"Install from npm"},{step:"restart",label:"Restart Wheelhouse"}],Xn={step:"link",label:"Link the clone (npm link)"};[...At.slice(0,-1),At[4]];At[2],At[3],At[4];var pl=x('<!> <span class="hidden md:inline"> </span>',1),fl=x('<span class="absolute top-1 right-1 size-1.5 rounded-full bg-warning" aria-hidden="true"></span>'),br=x("<!> <!>",1),vl=x('· from <a class="hover:underline" target="_blank" rel="noreferrer"> </a> ',1),gl=x('<span class="size-4 text-center" aria-hidden="true">·</span>'),ml=x("<li><!> </li>"),bl=x('<p class="mt-3 text-xs text-muted-foreground">Waiting for Wheelhouse to come back…</p>'),xl=x('<ol class="space-y-1.5" aria-label="Upgrade progress"></ol> <!>',1),_l=x('<p class="mt-1 text-xs text-muted-foreground"> </p>'),yl=x('<p class="flex items-center gap-2"><!>Upgraded and restarted.</p> <!>',1),wl=x('<pre class="mt-2 max-h-32 overflow-auto rounded-md bg-muted/60 px-2.5 py-1.5 font-mono text-[0.7rem] whitespace-pre-wrap"> </pre>'),pn=x('<pre class="mt-2 max-h-32 overflow-auto rounded-md bg-muted/60 px-2.5 py-1.5 font-mono text-xs"> </pre>'),fn=x('<p class="flex items-start gap-2"><!> <span> </span></p> <!> <!>',1),kl=x('<p class="flex items-center gap-2 text-muted-foreground"><!> </p>'),Cl=x('<p class="flex items-center gap-2"><!>Up to date.</p> <p class="mt-1 text-xs text-muted-foreground"> </p>',1),Pl=x('<span class="font-normal text-muted-foreground"> </span>'),Tl=x('<li class="text-xs"><span class="line-clamp-2"> </span> <span class="tabular text-muted-foreground"> </span></li>'),Sl=x('<li class="text-xs text-muted-foreground"> </li>'),Ml=x('<a target="_blank" rel="noreferrer" class="mt-2 inline-flex items-center gap-1 text-xs text-sea hover:underline">Compare on GitHub<!></a>'),$l=x(`Upgrading runs <code>npm install -g @chrisjowen/wheelhouse</code> and restarts
2
2
  Wheelhouse.`,1),Il=x("<li> </li>"),Al=x('<div class="mt-3 rounded-md border border-warning/40 bg-warning/10 px-3 py-2 text-xs"><p class="font-medium text-warning">Restarting stops:</p> <ul class="mt-0.5"></ul></div>'),Ol=x("<code>npm install -g @chrisjowen/wheelhouse</code>"),El=x("<code>wheelhouse upgrade</code>"),Dl=x(`<p class="mt-3 text-xs text-muted-foreground">This Wheelhouse was not started by <code>wheelhouse open</code>, so it cannot restart
3
3
  itself; run <!> in a terminal instead.</p>`),Nl=x('<p class="font-medium"> <!></p> <ul class="mt-2 max-h-56 space-y-1.5 overflow-auto border-l border-hair pl-3"><!> <!></ul> <!> <p class="mt-3 text-xs leading-relaxed text-muted-foreground"><!> This page reconnects by itself. Firstmate and its crew keep running.</p> <!> <!>',1),Fl=x('<p class="mt-2 text-xs text-muted-foreground">Nothing was changed.</p>'),zl=x('<p class="mt-3 text-xs text-danger" role="alert"> </p>'),Wl=x('<span class="text-xs text-muted-foreground">You can close this; it carries on.</span>'),jl=x("<!>Check now",1),Ll=x('<span class="text-xs text-muted-foreground"> </span> <!>',1),Bl=x('<div class="border-b border-b-brass/60 px-4 py-3"><p class="font-display text-base font-semibold">Wheelhouse</p> <p class="tabular text-xs break-words text-muted-foreground"> <!></p></div> <div class="px-4 py-3" aria-live="polite"><!> <!></div> <div class="flex items-center justify-between gap-2 border-t px-4 py-2.5"><!></div>',1);function Kl(o,e){xe(e,!0);let r=ue(!1);const n=u(()=>nt.view),s=u(()=>t(n)?.check??null),i=u(()=>t(n)?.job??null),l=u(()=>nt.upgrading||t(i)?.state==="running"||t(i)?.state==="restarting"),d=u(()=>t(s)?.state==="available"&&!t(i)),c=u(()=>t(i)?.state==="failed"||t(s)?.state==="refused"||t(s)?.state==="error"),g=u(()=>t(n)?.source==="published"),_=u(()=>t(i)?.steps??(t(g)?hl:At)),f=u(()=>nt.upgrading&&!t(i)?t(_).length-1:t(_).findIndex(L=>L.step===t(i)?.step)),p=L=>L?L.slice(0,7):"",b=L=>L?[L.version,p(L.commit)].filter(Boolean).join(" · "):"",w=()=>We.data.sessionToken,v=u(()=>t(g)?"npm":"GitHub"),M=u(()=>t(s)?t(g)?"A new version is published on npm":`${t(s).behind} ${Zs(t(s).behind,"new commit","new commits")} on ${t(s).branch}`:""),O=u(()=>t(s)?.latest?.version&&t(s).latest.version!==t(s).current.version?t(s).latest.version:null);wt(()=>nt.start());var ne=Z(),le=y(ne);oe(le,()=>wn,(L,q)=>{q(L,{get open(){return t(r)},set open(m){P(r,m,!0)},children:(m,A)=>{var $=br(),X=y($);{const B=(ae,T)=>{let R=()=>(T?.()).props;var I=Z(),F=y(I);{var Q=de=>{{let ye=u(()=>t(l)?"Upgrading Wheelhouse":"Wheelhouse update available");ot(de,ge(R,{variant:"outline",size:"sm",class:"gap-1.5 border-sea/50 text-sea hover:text-sea",get"aria-label"(){return t(ye)},children:(J,Y)=>{var ee=pl(),be=y(ee);{var $e=Ie=>{hr(Ie,{class:"animate-spin"})},De=Ie=>{Jr(Ie,{})};D(be,Ie=>{t(l)?Ie($e):Ie(De,-1)})}var Oe=h(be,2),ie=re(Oe,!0);j(()=>z(ie,t(l)?"Upgrading…":"Update")),a(J,ee)},$$slots:{default:!0}}))}},se=de=>{{let ye=u(()=>t(c)?"Wheelhouse updates: needs a look":"Wheelhouse version and updates");ot(de,ge(R,{variant:"ghost",size:"icon-sm",class:"relative text-muted-foreground",get"aria-label"(){return t(ye)},children:(J,Y)=>{var ee=br(),be=y(ee);Jr(be,{});var $e=h(be,2);{var De=Oe=>{var ie=fl();a(Oe,ie)};D($e,Oe=>{t(c)&&Oe(De)})}a(J,ee)},$$slots:{default:!0}}))}};D(F,de=>{t(d)||t(l)?de(Q):de(se,-1)})}a(ae,I)};oe(X,()=>kn,(ae,T)=>{T(ae,{child:B,$$slots:{child:!0}})})}var G=h(X,2);oe(G,()=>ar,(B,ae)=>{ae(B,{children:(T,R)=>{var I=Z(),F=y(I);oe(F,()=>Cn,(Q,se)=>{se(Q,{align:"end",sideOffset:4,class:"z-50 w-96 max-w-[calc(100vw-2rem)] overflow-hidden rounded-md bg-popover text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10",children:(de,ye)=>{var J=Bl(),Y=y(J),ee=h(S(Y),2),be=S(ee,!0),$e=h(be);{var De=U=>{var N=vl(),W=h(y(N)),ve=re(W,!0),Ae=h(W);j(()=>{ce(W,"href",`https://github.com/${t(s).repository??""}`),z(ve,t(s).repository),z(Ae,` ${t(s).branch??""}`)}),a(U,N)};D($e,U=>{t(s)?.repository&&U(De)})}C(ee),C(Y);var Oe=h(Y,2),ie=S(Oe);{var Ie=U=>{var N=xl(),W=y(N);Je(W,23,()=>t(_),K=>K.step,(K,te,pe)=>{var ze=ml(),ke=S(ze);{var fe=Ve=>{It(Ve,{class:"size-4 text-success"})},Ne=Ve=>{hr(Ve,{class:"size-4 animate-spin text-sea"})},Be=Ve=>{var Et=gl();a(Ve,Et)};D(ke,Ve=>{t(pe)<t(f)?Ve(fe):t(pe)===t(f)?Ve(Ne,1):Ve(Be,-1)})}var Ue=h(ke);C(ze),j(()=>{je(ze,1,`flex items-center gap-2 ${t(pe)<=t(f)?"":"text-muted-foreground"}`),z(Ue,` ${t(te).label??""}`)}),a(K,ze)}),C(W);var ve=h(W,2);{var Ae=K=>{var te=bl();a(K,te)};D(ve,K=>{(t(i)?.state==="restarting"||nt.upgrading&&!t(i))&&K(Ae)})}a(U,N)},Ze=U=>{var N=yl(),W=y(N),ve=S(W);It(ve,{class:"size-4 text-success"}),Ke(),C(W);var Ae=h(W,2);{var K=te=>{var pe=_l(),ze=re(pe);j(ke=>z(ze,`Now running ${ke??""}.`),[()=>b(t(s).current)]),a(te,pe)};D(Ae,te=>{t(s)?.current.version&&te(K)})}a(U,N)},E=U=>{var N=fn(),W=y(N),ve=S(W);Xr(ve,{class:"mt-0.5 size-4 shrink-0 text-danger"});var Ae=h(ve,2),K=re(Ae);C(W);var te=h(W,2);{var pe=fe=>{var Ne=wl(),Be=re(Ne,!0);j(Ue=>z(Be,Ue),[()=>t(i).output.trim().split(`
4
4
  `).slice(-12).join(`
@@ -1 +1 @@
1
- import"../chunks/DsnmJJEf.js";import{p as n,f as h,t as c,a as l,b as u,c as v,o as a,s as _,d as s}from"../chunks/BuRWgnCz.js";import{p as e}from"../chunks/01zSWHgS.js";var d=v("<h1> </h1> <p> </p>",1);function y(o,p){n(p,!0);var t=d(),r=h(t),m=a(r,!0),f=_(r,2),i=a(f,!0);c(()=>{s(m,e.status),s(i,e.error?.message)}),l(o,t),u()}export{y as component};
1
+ import"../chunks/DsnmJJEf.js";import{p as n,f as h,t as c,a as l,b as u,c as v,o as a,s as _,d as s}from"../chunks/BuRWgnCz.js";import{p as e}from"../chunks/CFyednqY.js";var d=v("<h1> </h1> <p> </p>",1);function y(o,p){n(p,!0);var t=d(),r=h(t),m=a(r,!0),f=_(r,2),i=a(f,!0);c(()=>{s(m,e.status),s(i,e.error?.message)}),l(o,t),u()}export{y as component};
@@ -1,4 +1,4 @@
1
- import"../chunks/DsnmJJEf.js";import{o as Dr}from"../chunks/RYq3318d.js";import{p as er,m as E,q as Ge,u as Ir,j as Ae,f as P,a as t,b as rr,v as d,g as e,i as k,n as T,w as H,t as N,d as h,s,c as u,o as Y,h as m,r as v,x as mr,l as Wr,k as jr,$ as Fr,aF as Er,y as Br}from"../chunks/BuRWgnCz.js";import{i as x}from"../chunks/BDpRITyb.js";import{s as he,r as gr,e as Ie,h as Kr}from"../chunks/Cwb6d3g_.js";import{a as fr}from"../chunks/BMFk7aZ6.js";import{b as Lr}from"../chunks/BWRIDih-.js";import{p as tr}from"../chunks/01zSWHgS.js";import{B as me}from"../chunks/C5BN6RHR.js";import{c as Re}from"../chunks/DLuhTA05.js";import{p as Mr}from"../chunks/BAOiF0in.js";import{i as Or,D as qr,a as Gr,b as Hr,c as Ur,e as Xr,P as Jr,d as dr,f as Qr,m as Vr}from"../chunks/BTAHFHcI.js";import{C as Yr,b as Zr,i as et,g as rt,r as tt,m as ur,d as at,p as st}from"../chunks/DN_cUEc5.js";import{l as He}from"../chunks/BOuuGRjG.js";import{a as Ze}from"../chunks/BCUUi0V0.js";import{L as je}from"../chunks/CP7u-DWX.js";import{P as nt}from"../chunks/DNc9cRsu.js";import{T as We}from"../chunks/kynOtL7x.js";import{X as ot}from"../chunks/rS7QE60d.js";import{S as it}from"../chunks/BwPKBiav.js";import{S as lt}from"../chunks/BksDoLoM.js";import{R as dt}from"../chunks/DXoZBzFG.js";import{C as ut}from"../chunks/C6T16bV1.js";import{P as vt}from"../chunks/Cu50g1zS.js";var Ve=u("<!> <!>",1),ct=u('<p class="text-xs text-danger" role="alert"> </p>'),vr=u("<!> <!> <!>",1),mt=u('<p class="text-sm"> <a class="text-sea hover:underline">Settings → Plugins</a>.</p>');function gt(ge,g){er(g,!0);let n=Mr(g,"busy",19,()=>[]),f=E("review"),p=E(null),z=E(Ge({})),Z=null;Ir(()=>{g.preview&&g.preview!==Z&&(Z=g.preview,d(f,"review"),d(p,null),d(z,Or(g.preview),!0))});const ee=k(()=>g.preview?Vr(g.preview,e(z)):null),j=k(()=>e(f)==="saving"||e(f)==="restarting");async function B(){if(!g.preview||e(ee))return;const be=g.preview;d(f,"saving"),d(p,null);const K=Zr(),re=await et(be,Qr(e(z)),tr.data.sessionToken);if(!re.ok){d(p,re.error,!0),d(f,"review");return}d(f,"restarting");const te=await K;d(f,te?"done":"slow",!0),g.oninstalled?.(be,te)}var ie=Ae(),Ce=P(ie);{let be=k(()=>!!g.preview);Re(Ce,()=>Xr,(K,re)=>{re(K,{get open(){return e(be)},onOpenChange:te=>{!te&&!e(j)&&g.onclose()},children:(te,Fe)=>{var ke=Ae(),y=P(ke);{let w=k(()=>e(j)?"ignore":"close"),ae=k(()=>e(j)?"ignore":"close");Re(y,()=>qr,(l,U)=>{U(l,{class:"max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-lg",get interactOutsideBehavior(){return e(w)},get escapeKeydownBehavior(){return e(ae)},children:(le,xe)=>{var q=Ae(),X=P(q);{var se=Pe=>{var ye=Ve(),ze=P(ye);Re(ze,()=>Gr,(J,Q)=>{Q(J,{children:(ne,de)=>{var fe=Ve(),pe=P(fe);Re(pe,()=>Hr,(c,b)=>{b(c,{class:"font-display text-lg",children:(L,I)=>{T();var R=H();N(()=>h(R,`Install ${g.preview.name??""}`)),t(L,R)},$$slots:{default:!0}})});var o=s(pe,2);Re(o,()=>Ur,(c,b)=>{b(c,{children:(L,I)=>{var R=Ae(),ue=P(R);{var oe=G=>{var ve=H("Check what it is and where it comes from. Nothing runs until you install it.");t(G,ve)},we=G=>{var ve=H("Installing restarts Wheelhouse to load it; Firstmate and its crew keep running.");t(G,ve)};x(ue,G=>{e(f)==="review"?G(oe):G(we,-1)})}t(L,R)},$$slots:{default:!0}})}),t(ne,fe)},$$slots:{default:!0}})});var Se=s(ze,2);{var Te=J=>{var Q=vr(),ne=P(Q);Jr(ne,{get preview(){return g.preview},get busy(){return n()},get answers(){return e(z)},set answers(o){d(z,o,!0)}});var de=s(ne,2);{var fe=o=>{var c=ct(),b=Y(c,!0);N(()=>h(b,e(p))),t(o,c)};x(de,o=>{e(p)&&o(fe)})}var pe=s(de,2);Re(pe,()=>dr,(o,c)=>{c(o,{children:(b,L)=>{var I=Ve(),R=P(I);me(R,{variant:"ghost",get onclick(){return g.onclose},children:(oe,we)=>{T();var G=H("Cancel");t(oe,G)},$$slots:{default:!0}});var ue=s(R,2);{let oe=k(()=>!!e(ee)),we=k(()=>e(ee)?`${e(ee).title} is needed`:void 0);me(ue,{onclick:B,get disabled(){return e(oe)},get title(){return e(we)},children:(G,ve)=>{T();var Ue=H("Install and restart");t(G,Ue)},$$slots:{default:!0}})}t(b,I)},$$slots:{default:!0}})}),t(J,Q)},Ne=J=>{var Q=vr(),ne=P(Q);{let o=k(()=>g.preview.id),c=k(()=>g.preview.commit.slice(0,7));Yr(ne,{get label(){return`Install ${e(o)??""} at ${e(c)??""}`},get phase(){return e(f)}})}var de=s(ne,2);{var fe=o=>{var c=mt(),b=m(c),L=s(b);T(),v(c),N(()=>{h(b,`${g.preview.name??""}
1
+ import"../chunks/DsnmJJEf.js";import{o as Dr}from"../chunks/RYq3318d.js";import{p as er,m as E,q as Ge,u as Ir,j as Ae,f as P,a as t,b as rr,v as d,g as e,i as k,n as T,w as H,t as N,d as h,s,c as u,o as Y,h as m,r as v,x as mr,l as Wr,k as jr,$ as Fr,aF as Er,y as Br}from"../chunks/BuRWgnCz.js";import{i as x}from"../chunks/BDpRITyb.js";import{s as he,r as gr,e as Ie,h as Kr}from"../chunks/Cwb6d3g_.js";import{a as fr}from"../chunks/BMFk7aZ6.js";import{b as Lr}from"../chunks/BWRIDih-.js";import{p as tr}from"../chunks/CFyednqY.js";import{B as me}from"../chunks/C5BN6RHR.js";import{c as Re}from"../chunks/DLuhTA05.js";import{p as Mr}from"../chunks/BAOiF0in.js";import{i as Or,D as qr,a as Gr,b as Hr,c as Ur,e as Xr,P as Jr,d as dr,f as Qr,m as Vr}from"../chunks/CIDO3V-e.js";import{C as Yr,b as Zr,i as et,g as rt,r as tt,m as ur,d as at,p as st}from"../chunks/CI38zzdF.js";import{l as He}from"../chunks/eaKSEJEz.js";import{a as Ze}from"../chunks/BCUUi0V0.js";import{L as je}from"../chunks/CP7u-DWX.js";import{P as nt}from"../chunks/DNc9cRsu.js";import{T as We}from"../chunks/kynOtL7x.js";import{X as ot}from"../chunks/rS7QE60d.js";import{S as it}from"../chunks/BwPKBiav.js";import{S as lt}from"../chunks/BksDoLoM.js";import{R as dt}from"../chunks/DXoZBzFG.js";import{C as ut}from"../chunks/C6T16bV1.js";import{P as vt}from"../chunks/Cu50g1zS.js";var Ve=u("<!> <!>",1),ct=u('<p class="text-xs text-danger" role="alert"> </p>'),vr=u("<!> <!> <!>",1),mt=u('<p class="text-sm"> <a class="text-sea hover:underline">Settings → Plugins</a>.</p>');function gt(ge,g){er(g,!0);let n=Mr(g,"busy",19,()=>[]),f=E("review"),p=E(null),z=E(Ge({})),Z=null;Ir(()=>{g.preview&&g.preview!==Z&&(Z=g.preview,d(f,"review"),d(p,null),d(z,Or(g.preview),!0))});const ee=k(()=>g.preview?Vr(g.preview,e(z)):null),j=k(()=>e(f)==="saving"||e(f)==="restarting");async function B(){if(!g.preview||e(ee))return;const be=g.preview;d(f,"saving"),d(p,null);const K=Zr(),re=await et(be,Qr(e(z)),tr.data.sessionToken);if(!re.ok){d(p,re.error,!0),d(f,"review");return}d(f,"restarting");const te=await K;d(f,te?"done":"slow",!0),g.oninstalled?.(be,te)}var ie=Ae(),Ce=P(ie);{let be=k(()=>!!g.preview);Re(Ce,()=>Xr,(K,re)=>{re(K,{get open(){return e(be)},onOpenChange:te=>{!te&&!e(j)&&g.onclose()},children:(te,Fe)=>{var ke=Ae(),y=P(ke);{let w=k(()=>e(j)?"ignore":"close"),ae=k(()=>e(j)?"ignore":"close");Re(y,()=>qr,(l,U)=>{U(l,{class:"max-h-[calc(100dvh-2rem)] overflow-y-auto sm:max-w-lg",get interactOutsideBehavior(){return e(w)},get escapeKeydownBehavior(){return e(ae)},children:(le,xe)=>{var q=Ae(),X=P(q);{var se=Pe=>{var ye=Ve(),ze=P(ye);Re(ze,()=>Gr,(J,Q)=>{Q(J,{children:(ne,de)=>{var fe=Ve(),pe=P(fe);Re(pe,()=>Hr,(c,b)=>{b(c,{class:"font-display text-lg",children:(L,I)=>{T();var R=H();N(()=>h(R,`Install ${g.preview.name??""}`)),t(L,R)},$$slots:{default:!0}})});var o=s(pe,2);Re(o,()=>Ur,(c,b)=>{b(c,{children:(L,I)=>{var R=Ae(),ue=P(R);{var oe=G=>{var ve=H("Check what it is and where it comes from. Nothing runs until you install it.");t(G,ve)},we=G=>{var ve=H("Installing restarts Wheelhouse to load it; Firstmate and its crew keep running.");t(G,ve)};x(ue,G=>{e(f)==="review"?G(oe):G(we,-1)})}t(L,R)},$$slots:{default:!0}})}),t(ne,fe)},$$slots:{default:!0}})});var Se=s(ze,2);{var Te=J=>{var Q=vr(),ne=P(Q);Jr(ne,{get preview(){return g.preview},get busy(){return n()},get answers(){return e(z)},set answers(o){d(z,o,!0)}});var de=s(ne,2);{var fe=o=>{var c=ct(),b=Y(c,!0);N(()=>h(b,e(p))),t(o,c)};x(de,o=>{e(p)&&o(fe)})}var pe=s(de,2);Re(pe,()=>dr,(o,c)=>{c(o,{children:(b,L)=>{var I=Ve(),R=P(I);me(R,{variant:"ghost",get onclick(){return g.onclose},children:(oe,we)=>{T();var G=H("Cancel");t(oe,G)},$$slots:{default:!0}});var ue=s(R,2);{let oe=k(()=>!!e(ee)),we=k(()=>e(ee)?`${e(ee).title} is needed`:void 0);me(ue,{onclick:B,get disabled(){return e(oe)},get title(){return e(we)},children:(G,ve)=>{T();var Ue=H("Install and restart");t(G,Ue)},$$slots:{default:!0}})}t(b,I)},$$slots:{default:!0}})}),t(J,Q)},Ne=J=>{var Q=vr(),ne=P(Q);{let o=k(()=>g.preview.id),c=k(()=>g.preview.commit.slice(0,7));Yr(ne,{get label(){return`Install ${e(o)??""} at ${e(c)??""}`},get phase(){return e(f)}})}var de=s(ne,2);{var fe=o=>{var c=mt(),b=m(c),L=s(b);T(),v(c),N(()=>{h(b,`${g.preview.name??""}
2
2
  ${g.preview.version??""} is installed and Wheelhouse restarted. Find it in `),he(L,"href",`/settings/plugins/${g.preview.id??""}`)}),t(o,c)};x(de,o=>{e(f)==="done"&&o(fe)})}var pe=s(de,2);Re(pe,()=>dr,(o,c)=>{c(o,{children:(b,L)=>{me(b,{get onclick(){return g.onclose},get disabled(){return e(j)},children:(I,R)=>{T();var ue=H("Done");t(I,ue)},$$slots:{default:!0}})},$$slots:{default:!0}})}),t(J,Q)};x(Se,J=>{e(f)==="review"?J(Te):J(Ne,-1)})}t(Pe,ye)};x(X,Pe=>{g.preview&&Pe(se)})}t(le,q)},$$slots:{default:!0}})})}t(te,ke)},$$slots:{default:!0}})})}t(ge,ie),rr()}var ft=u('<span class="rounded-sm border px-1 text-[0.6875rem] text-muted-foreground">Official</span>'),pt=u('<span class="ml-1 inline-flex items-center gap-1" data-registry-syncing="">· <!>Syncing…</span>'),_t=u('<p class="mt-0.5 flex items-start gap-1.5 text-xs break-words text-danger" data-registry-sync-error=""><!> </p>'),cr=u("<!>Remove",1),ht=u('<span class="flex shrink-0 items-center gap-1"><!> <!></span>'),xt=u('<li class="flex flex-wrap items-start gap-x-3 gap-y-1 py-2"><div class="min-w-0 flex-1 basis-56"><p class="flex flex-wrap items-baseline gap-x-2"><span class="font-medium"> </span> <!> <a class="font-mono text-xs break-all text-muted-foreground hover:text-foreground hover:underline" target="_blank" rel="noreferrer"> </a></p> <p class="mt-0.5 text-xs text-muted-foreground" data-registry-synced=""> <!></p> <!></div> <!></li>'),yt=u('<ul class="divide-y"></ul>'),wt=u('<p class="py-2 text-muted-foreground">No registries are configured.</p>'),bt=u("<!>Cloning…",1),kt=u(`<!>Add
3
3
  registry`,1),$t=u('<p class="mt-2 flex items-start gap-1.5 text-xs break-words text-danger" role="alert"><!> </p>'),Pt=u('<section class="mt-3 rounded-lg border px-4 py-3 text-sm" aria-label="Plugin sources"><!> <form class="mt-2 flex flex-wrap items-center gap-2 border-t pt-3"><input type="text" aria-label="GitHub repository of a registry" placeholder="org/repo or https://github.com/org/repo" autocomplete="off" spellcheck="false" class="h-9 min-w-0 flex-1 basis-56 rounded-md border border-input bg-background px-2.5 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring max-md:text-base"/> <!></form> <!> <p class="mt-2 text-xs text-muted-foreground">A registry is a GitHub repository with a <code class="font-mono">wheelhouse-registry.json</code> (see <a class="text-sea hover:underline" href="https://github.com/chrisjowen/wheelhouse/blob/main/docs/plugin-registry.md" target="_blank" rel="noreferrer">Plugin registries</a>). Wheelhouse keeps a copy of each and resyncs it hourly when you open this page.</p></section>');function zt(ge,g){er(g,!0);let n=E(""),f=E(null),p=E(null),z=E(null);const Z=()=>tr.data.sessionToken;async function ee(y){if(y.preventDefault(),!e(n).trim()||e(f))return;d(f,"add"),d(p,null);const w=await rt(e(n).trim(),Z());if(d(f,null),!w.ok){d(p,w.error,!0);return}d(n,""),g.onchange(w.value)}async function j(y){if(e(f))return;d(f,y,!0),d(p,null);const w=await tt(y,Z());if(d(f,null),d(z,null),!w.ok){d(p,w.error,!0);return}g.onchange(w.value)}var B=Pt(),ie=m(B);{var Ce=y=>{var w=yt();Ie(w,21,()=>g.view.registries,ae=>ae.id,(ae,l)=>{var U=xt(),le=m(U),xe=m(le),q=m(xe),X=Y(q,!0),se=s(q,2);{var Pe=o=>{var c=ft();t(o,c)};x(se,o=>{e(l).official&&o(Pe)})}var ye=s(se,2),ze=Y(ye,!0);v(xe);var Se=s(xe,2),Te=m(Se),Ne=s(Te);{var J=o=>{var c=pt(),b=s(m(c));je(b,{class:"size-3 animate-spin"}),T(),v(c),t(o,c)};x(Ne,o=>{e(l).syncing&&o(J)})}v(Se);var Q=s(Se,2);{var ne=o=>{var c=_t(),b=m(c);We(b,{class:"mt-0.5 size-3.5 shrink-0"});var L=s(b);v(c),N(I=>h(L,`Could not resync: ${e(l).syncError??""} Showing
4
4
  the copy from ${I??""}.`),[()=>e(l).syncedAt?Ze(e(l).syncedAt,He.now):"before"]),t(o,c)};x(Q,o=>{e(l).syncError&&!e(l).error&&!e(l).unpublished&&o(ne)})}v(le);var de=s(le,2);{var fe=o=>{var c=ht(),b=m(c);{let I=k(()=>e(f)!==null);me(b,{size:"sm",variant:"destructive",onclick:()=>j(e(l).id),get disabled(){return e(I)},children:(R,ue)=>{var oe=cr(),we=P(oe);{var G=ve=>{je(ve,{class:"animate-spin"})};x(we,ve=>{e(f)===e(l).id&&ve(G)})}T(),t(R,oe)},$$slots:{default:!0}})}var L=s(b,2);me(L,{size:"sm",variant:"ghost",onclick:()=>d(z,null),children:(I,R)=>{T();var ue=H("Keep");t(I,ue)},$$slots:{default:!0}}),v(c),t(o,c)},pe=o=>{{let c=k(()=>e(f)!==null);me(o,{size:"sm",variant:"ghost",class:"shrink-0",onclick:()=>d(z,e(l).id,!0),get disabled(){return e(c)},get"aria-label"(){return`Remove ${e(l).source??""}`},children:(b,L)=>{var I=cr(),R=P(I);ot(R,{}),T(),t(b,I)},$$slots:{default:!0}})}};x(de,o=>{e(z)===e(l).id?o(fe):e(l).official||o(pe,1)})}v(U),N(o=>{he(U,"data-registry",e(l).source),h(X,e(l).name??e(l).source),he(ye,"href",e(l).url),h(ze,e(l).source),h(Te,`${o??""}${!e(l).error&&!e(l).unpublished?` · ${e(l).count} ${e(l).count===1?"plugin":"plugins"}`:""}`)},[()=>e(l).syncedAt?`Synced ${Ze(e(l).syncedAt,He.now)}`:"Not synced yet"]),t(ae,U)}),v(w),t(y,w)},be=y=>{var w=wt();t(y,w)};x(ie,y=>{g.view.registries.length?y(Ce):y(be,-1)})}var K=s(ie,2),re=m(K);gr(re);var te=s(re,2);{let y=k(()=>!e(n).trim()||e(f)!==null);me(te,{type:"submit",size:"sm",variant:"outline",get disabled(){return e(y)},children:(w,ae)=>{var l=Ae(),U=P(l);{var le=q=>{var X=bt(),se=P(X);je(se,{class:"animate-spin"}),T(),t(q,X)},xe=q=>{var X=kt(),se=P(X);nt(se,{}),T(),t(q,X)};x(U,q=>{e(f)==="add"?q(le):q(xe,-1)})}t(w,l)},$$slots:{default:!0}})}v(K);var Fe=s(K,2);{var ke=y=>{var w=$t(),ae=m(w);We(ae,{class:"mt-0.5 size-3.5 shrink-0"});var l=s(ae,1,!0);v(w),N(()=>h(l,e(p))),t(y,w)};x(Fe,y=>{e(p)&&y(ke)})}T(2),v(B),mr("submit",K,ee),fr(re,()=>e(n),y=>d(n,y)),t(ge,B),rr()}const Ye=ge=>ge.normalize("NFKD").replace(/[̀-ͯ]/g,"").toLowerCase();function St(ge,g){const n=Ye(g).split(/\s+/).filter(Boolean);if(!n.length)return ge;const f=[];return ge.forEach((p,z)=>{const Z=Ye(`${p.displayName} ${p.name}`),ee=Ye([p.description,p.keywords.join(" "),p.author??"",p.repository].join(" "));let j=0;for(const B of n)if(Z.split(/[\s-]+/).some(ie=>ie===B))j+=4;else if(Z.split(/[\s-]+/).some(ie=>ie.startsWith(B)))j+=3;else if(Z.includes(B))j+=2;else if(ee.includes(B))j+=1;else return;f.push({p,score:j,i:z})}),f.sort((p,z)=>z.score-p.score||p.i-z.i).map(p=>p.p)}var Tt=u('<span class="inline-flex items-center gap-1 text-xs text-muted-foreground"><!>Syncing…</span>'),Nt=u('<span class="hidden text-xs text-muted-foreground sm:inline"> </span>'),Rt=u("<!>Resync",1),At=u(" <!>",1),Ct=u('<p class="mt-4 flex items-start gap-2 rounded-md border border-danger/40 px-3 py-2 text-sm text-danger" role="alert"><!> </p>'),Dt=u('<p class="mt-4 flex items-start gap-2 rounded-md border border-danger/40 px-3 py-2 text-sm text-danger" role="alert"><!><span class="min-w-0 break-words"><code class="font-mono text-xs break-all"> </code> </span></p>'),It=u('<p class="mt-4 flex items-start gap-2 rounded-md border border-danger/40 px-3 py-2 text-sm text-danger" role="alert"><!><span class="min-w-0 break-words"> <a class="font-mono text-xs break-all underline" target="_blank" rel="noreferrer"> </a> </span></p>'),Wt=u('<p class="mt-4 rounded-md border px-3 py-2 text-sm text-muted-foreground">The official plugin registry <a class="font-mono text-xs break-all underline" target="_blank" rel="noreferrer"> </a> has not been published yet.</p>'),jt=u('<li><span class="font-mono break-all"> </span> </li>'),Ft=u('<details class="mt-3 text-xs text-muted-foreground"><summary class="cursor-pointer"> </summary> <ul class="mt-1 grid gap-0.5"></ul></details>'),Et=u('<p class="mt-8 flex items-center gap-2 text-sm text-muted-foreground" aria-live="polite"><!>Reading the registries…</p>'),Bt=u('<img alt="" class="size-8 object-contain" loading="lazy"/>'),Kt=u('<span class="font-mono text-xs font-normal text-muted-foreground"> </span>'),Lt=u('<p class="mt-2 flex items-start gap-1.5 text-xs break-words text-danger" role="alert"><!> </p>'),Mt=u("<!>Fetching…",1),Ot=u('<li class="flex flex-wrap items-start gap-x-4 gap-y-2 px-4 py-3"><span class="flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-md border bg-muted/50" aria-hidden="true"><!></span> <div class="min-w-0 flex-1 basis-48"><p class="text-sm font-medium"> <!></p> <p class="mt-0.5 line-clamp-2 text-sm text-muted-foreground"> </p> <p class="mt-1 text-xs text-muted-foreground"><a class="font-mono hover:text-foreground hover:underline" target="_blank" rel="noreferrer"> </a> <span data-plugin-source=""> </span></p> <!></div> <!></li>'),qt=u('<ul class="mt-6 divide-y rounded-lg border bg-card" aria-label="Plugins to install"></ul>'),Gt=u('No registries are configured. Add one under <button type="button" class="text-sea hover:underline">Sources</button>.',1),Ht=u('<p class="mt-6 rounded-lg border border-dashed p-6 text-sm text-muted-foreground"><!></p>'),Ut=u('<p class="mt-3 text-xs text-muted-foreground"> <a class="text-sea hover:underline" href="/settings/plugins">Settings → Plugins</a>.</p>'),Xt=u("<!> <!>",1),Jt=u(`<main class="px-4 py-6 sm:px-6 lg:px-10"><div class="surface px-5 py-6 sm:px-8 sm:py-8"><div class="flex flex-wrap items-end justify-between gap-3"><h1 class="text-2xl">Plugins</h1> <div class="flex flex-wrap items-center gap-2"><!> <!> <!> <!></div></div> <p class="mt-1 max-w-prose text-sm text-muted-foreground">Find plugins in Wheelhouse’s registries and install one from its row. Installing shows you
@@ -1 +1 @@
1
- import"../chunks/DsnmJJEf.js";import{p as K,u as P,a as n,b as j,e as q,c as f,$ as z,g as a,h as m,r as p,i as g,f as B,o as v,s as D,t as c,d as h}from"../chunks/BuRWgnCz.js";import{i as E}from"../chunks/BDpRITyb.js";import{h as F,s as G}from"../chunks/Cwb6d3g_.js";import{p as _}from"../chunks/01zSWHgS.js";import{l as x}from"../chunks/BOuuGRjG.js";import{s as y,a as b}from"../chunks/BT_DAfvO.js";import{I as H}from"../chunks/D-2tF-22.js";import{S as J}from"../chunks/D62zkI9j.js";var L=f('<h1 class="text-2xl"> </h1> <section class="mt-6" data-slot="nav.page"><!></section>',1),M=f('<p class="text-muted-foreground"> </p>'),N=f('<main class="px-4 py-6 sm:px-6 lg:px-10"><div class="surface px-5 py-6 sm:px-8 sm:py-8"><!></div></main>');function $(I,e){K(e,!0);const d=g(()=>`${_.params.plugin}/${_.params.page}`),s=g(()=>y.entries(b.fleet,e.data.slots,e.data.slotsAt).find(t=>t.slot==="nav.page"&&`${t.pluginId}/${t.contributionId}`===a(d))??null);P(()=>{x.revision,y.refresh(b.fleet,e.data.slotsAt)});var i=N();F("nk8b77",t=>{q(()=>{z.title=`${a(s)?`${a(s).title} · `:""}Wheelhouse`})});var u=m(i),k=m(u);{var w=t=>{var r=L(),o=B(r),W=v(o,!0),l=D(o,2),C=m(l);J(C,{get entry(){return a(s)},get now(){return x.now}}),p(l),c(()=>{h(W,a(s).title),G(l,"aria-label",a(s).title)}),n(t,r)},A=t=>{H(t,{get plugin(){return e.data.suggested}})},S=t=>{var r=M(),o=v(r);c(()=>h(o,`Wheelhouse has no “${a(d)??""}” page. It may belong to a plugin that is off.`)),n(t,r)};E(k,t=>{a(s)?t(w):e.data.suggested?t(A,1):t(S,-1)})}p(u),p(i),n(I,i),j()}export{$ as component};
1
+ import"../chunks/DsnmJJEf.js";import{p as K,u as P,a as n,b as j,e as q,c as f,$ as z,g as a,h as m,r as p,i as g,f as B,o as v,s as D,t as c,d as h}from"../chunks/BuRWgnCz.js";import{i as E}from"../chunks/BDpRITyb.js";import{h as F,s as G}from"../chunks/Cwb6d3g_.js";import{p as _}from"../chunks/CFyednqY.js";import{l as x}from"../chunks/eaKSEJEz.js";import{s as y,a as b}from"../chunks/BT_DAfvO.js";import{I as H}from"../chunks/D-2tF-22.js";import{S as J}from"../chunks/DKuj2J54.js";var L=f('<h1 class="text-2xl"> </h1> <section class="mt-6" data-slot="nav.page"><!></section>',1),M=f('<p class="text-muted-foreground"> </p>'),N=f('<main class="px-4 py-6 sm:px-6 lg:px-10"><div class="surface px-5 py-6 sm:px-8 sm:py-8"><!></div></main>');function $(I,e){K(e,!0);const d=g(()=>`${_.params.plugin}/${_.params.page}`),s=g(()=>y.entries(b.fleet,e.data.slots,e.data.slotsAt).find(t=>t.slot==="nav.page"&&`${t.pluginId}/${t.contributionId}`===a(d))??null);P(()=>{x.revision,y.refresh(b.fleet,e.data.slotsAt)});var i=N();F("nk8b77",t=>{q(()=>{z.title=`${a(s)?`${a(s).title} · `:""}Wheelhouse`})});var u=m(i),k=m(u);{var w=t=>{var r=L(),o=B(r),W=v(o,!0),l=D(o,2),C=m(l);J(C,{get entry(){return a(s)},get now(){return x.now}}),p(l),c(()=>{h(W,a(s).title),G(l,"aria-label",a(s).title)}),n(t,r)},A=t=>{H(t,{get plugin(){return e.data.suggested}})},S=t=>{var r=M(),o=v(r);c(()=>h(o,`Wheelhouse has no “${a(d)??""}” page. It may belong to a plugin that is off.`)),n(t,r)};E(k,t=>{a(s)?t(w):e.data.suggested?t(A,1):t(S,-1)})}p(u),p(i),n(I,i),j()}export{$ as component};