@recombine-ai/platform 0.2.6-test.8 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1153) hide show
  1. package/README.md +27 -2
  2. package/bin/bosun.js +300 -0
  3. package/bin/rc-build.js +12 -0
  4. package/build/agent/index.d.ts +5 -0
  5. package/build/agent/index.d.ts.map +1 -0
  6. package/build/agent/index.js +2 -0
  7. package/build/agent/text-agent.d.ts +14 -0
  8. package/build/agent/text-agent.d.ts.map +1 -0
  9. package/build/agent/text-agent.js +28 -0
  10. package/build/agent/timed.d.ts +2 -0
  11. package/build/agent/timed.d.ts.map +1 -0
  12. package/build/agent/timed.js +9 -0
  13. package/build/agent/voice-agent.d.ts +24 -0
  14. package/build/agent/voice-agent.d.ts.map +1 -0
  15. package/build/agent/voice-agent.js +24 -0
  16. package/build/bosun/context.d.ts +23 -0
  17. package/build/bosun/context.d.ts.map +1 -0
  18. package/build/bosun/context.js +41 -0
  19. package/build/bosun/index.d.ts +11 -0
  20. package/build/bosun/index.d.ts.map +1 -0
  21. package/build/bosun/index.js +7 -0
  22. package/build/bosun/interfaces/agent.d.ts +40 -0
  23. package/build/bosun/interfaces/agent.d.ts.map +1 -0
  24. package/build/bosun/interfaces/agent.js +3 -0
  25. package/build/bosun/mock.d.ts +6 -0
  26. package/build/bosun/mock.d.ts.map +1 -0
  27. package/build/bosun/mock.js +28 -0
  28. package/build/bosun/std-mocks/call-control.d.ts +11 -0
  29. package/build/bosun/std-mocks/call-control.d.ts.map +1 -0
  30. package/build/bosun/std-mocks/call-control.js +128 -0
  31. package/build/bosun/std-mocks/platform.d.ts +8 -0
  32. package/build/bosun/std-mocks/platform.d.ts.map +1 -0
  33. package/build/bosun/std-mocks/platform.js +45 -0
  34. package/build/bosun/test-agent.d.ts +4 -0
  35. package/build/bosun/test-agent.d.ts.map +1 -0
  36. package/build/bosun/test-agent.js +70 -0
  37. package/build/bosun/test-step-registry.d.ts +14 -0
  38. package/build/bosun/test-step-registry.d.ts.map +1 -0
  39. package/build/bosun/test-step-registry.js +48 -0
  40. package/build/bosun/utils.d.ts +4 -0
  41. package/build/bosun/utils.d.ts.map +1 -0
  42. package/build/bosun/utils.js +7 -0
  43. package/build/bosun-app/backend/server.js +48570 -0
  44. package/build/bosun-app/backend/server.js.map +7 -0
  45. package/build/bosun-app/frontend/client/_app/immutable/assets/0.B5fEz2jr.css +1 -0
  46. package/build/bosun-app/frontend/client/_app/immutable/assets/0.B5fEz2jr.css.br +0 -0
  47. package/build/bosun-app/frontend/client/_app/immutable/assets/0.B5fEz2jr.css.gz +0 -0
  48. package/build/bosun-app/frontend/client/_app/immutable/assets/10.DIVePEYf.css +1 -0
  49. package/build/bosun-app/frontend/client/_app/immutable/assets/10.DIVePEYf.css.br +0 -0
  50. package/build/bosun-app/frontend/client/_app/immutable/assets/10.DIVePEYf.css.gz +0 -0
  51. package/build/bosun-app/frontend/client/_app/immutable/assets/18.C5apk4jm.css +1 -0
  52. package/build/bosun-app/frontend/client/_app/immutable/assets/18.C5apk4jm.css.br +0 -0
  53. package/build/bosun-app/frontend/client/_app/immutable/assets/18.C5apk4jm.css.gz +0 -0
  54. package/build/bosun-app/frontend/client/_app/immutable/assets/2.DtxQDOXx.css +1 -0
  55. package/build/bosun-app/frontend/client/_app/immutable/assets/2.DtxQDOXx.css.br +0 -0
  56. package/build/bosun-app/frontend/client/_app/immutable/assets/2.DtxQDOXx.css.gz +0 -0
  57. package/build/bosun-app/frontend/client/_app/immutable/assets/3.Dzh7_Q8n.css +1 -0
  58. package/build/bosun-app/frontend/client/_app/immutable/assets/3.Dzh7_Q8n.css.br +0 -0
  59. package/build/bosun-app/frontend/client/_app/immutable/assets/3.Dzh7_Q8n.css.gz +0 -0
  60. package/build/bosun-app/frontend/client/_app/immutable/assets/5.CZVw96CJ.css +1 -0
  61. package/build/bosun-app/frontend/client/_app/immutable/assets/5.CZVw96CJ.css.br +0 -0
  62. package/build/bosun-app/frontend/client/_app/immutable/assets/5.CZVw96CJ.css.gz +0 -0
  63. package/build/bosun-app/frontend/client/_app/immutable/assets/9.DlSPCZj0.css +1 -0
  64. package/build/bosun-app/frontend/client/_app/immutable/assets/9.DlSPCZj0.css.br +0 -0
  65. package/build/bosun-app/frontend/client/_app/immutable/assets/9.DlSPCZj0.css.gz +0 -0
  66. package/build/bosun-app/frontend/client/_app/immutable/assets/AgentSidebar.BL1i3rB_.css +1 -0
  67. package/build/bosun-app/frontend/client/_app/immutable/assets/AgentSidebar.BL1i3rB_.css.br +0 -0
  68. package/build/bosun-app/frontend/client/_app/immutable/assets/AgentSidebar.BL1i3rB_.css.gz +0 -0
  69. package/build/bosun-app/frontend/client/_app/immutable/assets/Input.CJ8KyccG.css +1 -0
  70. package/build/bosun-app/frontend/client/_app/immutable/assets/Input.CJ8KyccG.css.br +0 -0
  71. package/build/bosun-app/frontend/client/_app/immutable/assets/Input.CJ8KyccG.css.gz +0 -0
  72. package/build/bosun-app/frontend/client/_app/immutable/assets/Popper.CLTyHc88.css +1 -0
  73. package/build/bosun-app/frontend/client/_app/immutable/assets/Popper.CLTyHc88.css.br +0 -0
  74. package/build/bosun-app/frontend/client/_app/immutable/assets/Popper.CLTyHc88.css.gz +0 -0
  75. package/build/bosun-app/frontend/client/_app/immutable/assets/ReadOnlyMonacoDiff.iiWNRlR-.css +1 -0
  76. package/build/bosun-app/frontend/client/_app/immutable/assets/ReadOnlyMonacoDiff.iiWNRlR-.css.br +0 -0
  77. package/build/bosun-app/frontend/client/_app/immutable/assets/ReadOnlyMonacoDiff.iiWNRlR-.css.gz +0 -0
  78. package/build/bosun-app/frontend/client/_app/immutable/assets/Tab.DlCfjMY1.css +1 -0
  79. package/build/bosun-app/frontend/client/_app/immutable/assets/Tab.DlCfjMY1.css.br +0 -0
  80. package/build/bosun-app/frontend/client/_app/immutable/assets/Tab.DlCfjMY1.css.gz +0 -0
  81. package/build/bosun-app/frontend/client/_app/immutable/assets/chat-content.Cabnnfyv.css +1 -0
  82. package/build/bosun-app/frontend/client/_app/immutable/assets/chat-content.Cabnnfyv.css.br +0 -0
  83. package/build/bosun-app/frontend/client/_app/immutable/assets/chat-content.Cabnnfyv.css.gz +0 -0
  84. package/build/bosun-app/frontend/client/_app/immutable/assets/codicon.DCmgc-ay.ttf +0 -0
  85. package/build/bosun-app/frontend/client/_app/immutable/assets/editor.BMIWPGx3.css +1 -0
  86. package/build/bosun-app/frontend/client/_app/immutable/assets/editor.BMIWPGx3.css.br +0 -0
  87. package/build/bosun-app/frontend/client/_app/immutable/assets/editor.BMIWPGx3.css.gz +0 -0
  88. package/build/bosun-app/frontend/client/_app/immutable/chunks/-UyI9lYi.js +1 -0
  89. package/build/bosun-app/frontend/client/_app/immutable/chunks/-UyI9lYi.js.br +0 -0
  90. package/build/bosun-app/frontend/client/_app/immutable/chunks/-UyI9lYi.js.gz +0 -0
  91. package/build/bosun-app/frontend/client/_app/immutable/chunks/0cvrggvQ.js +6 -0
  92. package/build/bosun-app/frontend/client/_app/immutable/chunks/0cvrggvQ.js.br +0 -0
  93. package/build/bosun-app/frontend/client/_app/immutable/chunks/0cvrggvQ.js.gz +0 -0
  94. package/build/bosun-app/frontend/client/_app/immutable/chunks/25W9uPmb.js +6 -0
  95. package/build/bosun-app/frontend/client/_app/immutable/chunks/25W9uPmb.js.br +0 -0
  96. package/build/bosun-app/frontend/client/_app/immutable/chunks/25W9uPmb.js.gz +0 -0
  97. package/build/bosun-app/frontend/client/_app/immutable/chunks/4Ik7cdeQ.js +8 -0
  98. package/build/bosun-app/frontend/client/_app/immutable/chunks/4Ik7cdeQ.js.br +0 -0
  99. package/build/bosun-app/frontend/client/_app/immutable/chunks/4Ik7cdeQ.js.gz +0 -0
  100. package/build/bosun-app/frontend/client/_app/immutable/chunks/5Rap-vPy.js +6 -0
  101. package/build/bosun-app/frontend/client/_app/immutable/chunks/5Rap-vPy.js.br +3 -0
  102. package/build/bosun-app/frontend/client/_app/immutable/chunks/5Rap-vPy.js.gz +0 -0
  103. package/build/bosun-app/frontend/client/_app/immutable/chunks/9mOMnnWN.js +1 -0
  104. package/build/bosun-app/frontend/client/_app/immutable/chunks/9mOMnnWN.js.br +0 -0
  105. package/build/bosun-app/frontend/client/_app/immutable/chunks/9mOMnnWN.js.gz +0 -0
  106. package/build/bosun-app/frontend/client/_app/immutable/chunks/B03wrqEc.js +6 -0
  107. package/build/bosun-app/frontend/client/_app/immutable/chunks/B03wrqEc.js.br +0 -0
  108. package/build/bosun-app/frontend/client/_app/immutable/chunks/B03wrqEc.js.gz +0 -0
  109. package/build/bosun-app/frontend/client/_app/immutable/chunks/B0XwC4Ot.js +1 -0
  110. package/build/bosun-app/frontend/client/_app/immutable/chunks/B0XwC4Ot.js.br +0 -0
  111. package/build/bosun-app/frontend/client/_app/immutable/chunks/B0XwC4Ot.js.gz +0 -0
  112. package/build/bosun-app/frontend/client/_app/immutable/chunks/B0nqNj93.js +2 -0
  113. package/build/bosun-app/frontend/client/_app/immutable/chunks/B0nqNj93.js.br +0 -0
  114. package/build/bosun-app/frontend/client/_app/immutable/chunks/B0nqNj93.js.gz +0 -0
  115. package/build/bosun-app/frontend/client/_app/immutable/chunks/B1dhmiqQ.js +1 -0
  116. package/build/bosun-app/frontend/client/_app/immutable/chunks/B1dhmiqQ.js.br +0 -0
  117. package/build/bosun-app/frontend/client/_app/immutable/chunks/B1dhmiqQ.js.gz +0 -0
  118. package/build/bosun-app/frontend/client/_app/immutable/chunks/B5zXfXm9.js +6 -0
  119. package/build/bosun-app/frontend/client/_app/immutable/chunks/B5zXfXm9.js.br +0 -0
  120. package/build/bosun-app/frontend/client/_app/immutable/chunks/B5zXfXm9.js.gz +0 -0
  121. package/build/bosun-app/frontend/client/_app/immutable/chunks/B8q_gCwD.js +1 -0
  122. package/build/bosun-app/frontend/client/_app/immutable/chunks/B8q_gCwD.js.br +2 -0
  123. package/build/bosun-app/frontend/client/_app/immutable/chunks/B8q_gCwD.js.gz +0 -0
  124. package/build/bosun-app/frontend/client/_app/immutable/chunks/B9Xyijhd.js +6 -0
  125. package/build/bosun-app/frontend/client/_app/immutable/chunks/B9Xyijhd.js.br +0 -0
  126. package/build/bosun-app/frontend/client/_app/immutable/chunks/B9Xyijhd.js.gz +0 -0
  127. package/build/bosun-app/frontend/client/_app/immutable/chunks/B9pMb6OP.js +1 -0
  128. package/build/bosun-app/frontend/client/_app/immutable/chunks/B9pMb6OP.js.br +0 -0
  129. package/build/bosun-app/frontend/client/_app/immutable/chunks/B9pMb6OP.js.gz +0 -0
  130. package/build/bosun-app/frontend/client/_app/immutable/chunks/BBk8_Xpk.js +2 -0
  131. package/build/bosun-app/frontend/client/_app/immutable/chunks/BBk8_Xpk.js.br +0 -0
  132. package/build/bosun-app/frontend/client/_app/immutable/chunks/BBk8_Xpk.js.gz +0 -0
  133. package/build/bosun-app/frontend/client/_app/immutable/chunks/BEdAvgYp.js +1 -0
  134. package/build/bosun-app/frontend/client/_app/immutable/chunks/BEdAvgYp.js.br +0 -0
  135. package/build/bosun-app/frontend/client/_app/immutable/chunks/BEdAvgYp.js.gz +0 -0
  136. package/build/bosun-app/frontend/client/_app/immutable/chunks/BFG1Mk7z.js +6 -0
  137. package/build/bosun-app/frontend/client/_app/immutable/chunks/BFG1Mk7z.js.br +0 -0
  138. package/build/bosun-app/frontend/client/_app/immutable/chunks/BFG1Mk7z.js.gz +0 -0
  139. package/build/bosun-app/frontend/client/_app/immutable/chunks/BIv9DU6q.js +303 -0
  140. package/build/bosun-app/frontend/client/_app/immutable/chunks/BIv9DU6q.js.br +0 -0
  141. package/build/bosun-app/frontend/client/_app/immutable/chunks/BIv9DU6q.js.gz +0 -0
  142. package/build/bosun-app/frontend/client/_app/immutable/chunks/BJ9KKLWf.js +1 -0
  143. package/build/bosun-app/frontend/client/_app/immutable/chunks/BJ9KKLWf.js.br +0 -0
  144. package/build/bosun-app/frontend/client/_app/immutable/chunks/BJ9KKLWf.js.gz +0 -0
  145. package/build/bosun-app/frontend/client/_app/immutable/chunks/BKW04JRY.js +1 -0
  146. package/build/bosun-app/frontend/client/_app/immutable/chunks/BKW04JRY.js.br +0 -0
  147. package/build/bosun-app/frontend/client/_app/immutable/chunks/BKW04JRY.js.gz +0 -0
  148. package/build/bosun-app/frontend/client/_app/immutable/chunks/BKlk5iyT.js +6 -0
  149. package/build/bosun-app/frontend/client/_app/immutable/chunks/BKlk5iyT.js.br +0 -0
  150. package/build/bosun-app/frontend/client/_app/immutable/chunks/BKlk5iyT.js.gz +0 -0
  151. package/build/bosun-app/frontend/client/_app/immutable/chunks/BMYSavKM.js +6 -0
  152. package/build/bosun-app/frontend/client/_app/immutable/chunks/BMYSavKM.js.br +0 -0
  153. package/build/bosun-app/frontend/client/_app/immutable/chunks/BMYSavKM.js.gz +0 -0
  154. package/build/bosun-app/frontend/client/_app/immutable/chunks/BOiOqwrA.js +3 -0
  155. package/build/bosun-app/frontend/client/_app/immutable/chunks/BOiOqwrA.js.br +0 -0
  156. package/build/bosun-app/frontend/client/_app/immutable/chunks/BOiOqwrA.js.gz +0 -0
  157. package/build/bosun-app/frontend/client/_app/immutable/chunks/BQIf5msi.js +1 -0
  158. package/build/bosun-app/frontend/client/_app/immutable/chunks/BQIf5msi.js.br +1 -0
  159. package/build/bosun-app/frontend/client/_app/immutable/chunks/BQIf5msi.js.gz +0 -0
  160. package/build/bosun-app/frontend/client/_app/immutable/chunks/BSkB5QuD.js +6 -0
  161. package/build/bosun-app/frontend/client/_app/immutable/chunks/BSkB5QuD.js.br +0 -0
  162. package/build/bosun-app/frontend/client/_app/immutable/chunks/BSkB5QuD.js.gz +0 -0
  163. package/build/bosun-app/frontend/client/_app/immutable/chunks/BU7aeYn4.js +1 -0
  164. package/build/bosun-app/frontend/client/_app/immutable/chunks/BU7aeYn4.js.br +0 -0
  165. package/build/bosun-app/frontend/client/_app/immutable/chunks/BU7aeYn4.js.gz +0 -0
  166. package/build/bosun-app/frontend/client/_app/immutable/chunks/BUkXSKT3.js +1 -0
  167. package/build/bosun-app/frontend/client/_app/immutable/chunks/BUkXSKT3.js.br +0 -0
  168. package/build/bosun-app/frontend/client/_app/immutable/chunks/BUkXSKT3.js.gz +0 -0
  169. package/build/bosun-app/frontend/client/_app/immutable/chunks/BW6P0Ecp.js +33 -0
  170. package/build/bosun-app/frontend/client/_app/immutable/chunks/BW6P0Ecp.js.br +0 -0
  171. package/build/bosun-app/frontend/client/_app/immutable/chunks/BW6P0Ecp.js.gz +0 -0
  172. package/build/bosun-app/frontend/client/_app/immutable/chunks/BY8d35y9.js +16 -0
  173. package/build/bosun-app/frontend/client/_app/immutable/chunks/BY8d35y9.js.br +0 -0
  174. package/build/bosun-app/frontend/client/_app/immutable/chunks/BY8d35y9.js.gz +0 -0
  175. package/build/bosun-app/frontend/client/_app/immutable/chunks/B_c3zf-v.js +6 -0
  176. package/build/bosun-app/frontend/client/_app/immutable/chunks/B_c3zf-v.js.br +0 -0
  177. package/build/bosun-app/frontend/client/_app/immutable/chunks/B_c3zf-v.js.gz +0 -0
  178. package/build/bosun-app/frontend/client/_app/immutable/chunks/B_fMsGYe.js +6 -0
  179. package/build/bosun-app/frontend/client/_app/immutable/chunks/B_fMsGYe.js.br +0 -0
  180. package/build/bosun-app/frontend/client/_app/immutable/chunks/B_fMsGYe.js.gz +0 -0
  181. package/build/bosun-app/frontend/client/_app/immutable/chunks/BaJupSGV.js +6 -0
  182. package/build/bosun-app/frontend/client/_app/immutable/chunks/BaJupSGV.js.br +0 -0
  183. package/build/bosun-app/frontend/client/_app/immutable/chunks/BaJupSGV.js.gz +0 -0
  184. package/build/bosun-app/frontend/client/_app/immutable/chunks/BaLxmfj-.js +6 -0
  185. package/build/bosun-app/frontend/client/_app/immutable/chunks/BaLxmfj-.js.br +0 -0
  186. package/build/bosun-app/frontend/client/_app/immutable/chunks/BaLxmfj-.js.gz +0 -0
  187. package/build/bosun-app/frontend/client/_app/immutable/chunks/Bc-ZgV77.js +6 -0
  188. package/build/bosun-app/frontend/client/_app/immutable/chunks/Bc-ZgV77.js.br +0 -0
  189. package/build/bosun-app/frontend/client/_app/immutable/chunks/Bc-ZgV77.js.gz +0 -0
  190. package/build/bosun-app/frontend/client/_app/immutable/chunks/BcbX6huO.js +1 -0
  191. package/build/bosun-app/frontend/client/_app/immutable/chunks/BcbX6huO.js.br +0 -0
  192. package/build/bosun-app/frontend/client/_app/immutable/chunks/BcbX6huO.js.gz +0 -0
  193. package/build/bosun-app/frontend/client/_app/immutable/chunks/BfEKNvv3.js +7 -0
  194. package/build/bosun-app/frontend/client/_app/immutable/chunks/BfEKNvv3.js.br +0 -0
  195. package/build/bosun-app/frontend/client/_app/immutable/chunks/BfEKNvv3.js.gz +0 -0
  196. package/build/bosun-app/frontend/client/_app/immutable/chunks/Bhzvs7bI.js +6 -0
  197. package/build/bosun-app/frontend/client/_app/immutable/chunks/Bhzvs7bI.js.br +0 -0
  198. package/build/bosun-app/frontend/client/_app/immutable/chunks/Bhzvs7bI.js.gz +0 -0
  199. package/build/bosun-app/frontend/client/_app/immutable/chunks/Bio4gycK.js +6 -0
  200. package/build/bosun-app/frontend/client/_app/immutable/chunks/Bio4gycK.js.br +0 -0
  201. package/build/bosun-app/frontend/client/_app/immutable/chunks/Bio4gycK.js.gz +0 -0
  202. package/build/bosun-app/frontend/client/_app/immutable/chunks/BoFRg7Ot.js +6 -0
  203. package/build/bosun-app/frontend/client/_app/immutable/chunks/BoFRg7Ot.js.br +0 -0
  204. package/build/bosun-app/frontend/client/_app/immutable/chunks/BoFRg7Ot.js.gz +0 -0
  205. package/build/bosun-app/frontend/client/_app/immutable/chunks/BoX_BZZY.js +1 -0
  206. package/build/bosun-app/frontend/client/_app/immutable/chunks/BoX_BZZY.js.br +0 -0
  207. package/build/bosun-app/frontend/client/_app/immutable/chunks/BoX_BZZY.js.gz +0 -0
  208. package/build/bosun-app/frontend/client/_app/immutable/chunks/Bp8N7Z1t.js +1 -0
  209. package/build/bosun-app/frontend/client/_app/immutable/chunks/Bp8N7Z1t.js.br +0 -0
  210. package/build/bosun-app/frontend/client/_app/immutable/chunks/Bp8N7Z1t.js.gz +0 -0
  211. package/build/bosun-app/frontend/client/_app/immutable/chunks/Bqgm2twL.js +6 -0
  212. package/build/bosun-app/frontend/client/_app/immutable/chunks/Bqgm2twL.js.br +0 -0
  213. package/build/bosun-app/frontend/client/_app/immutable/chunks/Bqgm2twL.js.gz +0 -0
  214. package/build/bosun-app/frontend/client/_app/immutable/chunks/BrgZPUOV.js +6 -0
  215. package/build/bosun-app/frontend/client/_app/immutable/chunks/BrgZPUOV.js.br +0 -0
  216. package/build/bosun-app/frontend/client/_app/immutable/chunks/BrgZPUOV.js.gz +0 -0
  217. package/build/bosun-app/frontend/client/_app/immutable/chunks/BsTHnhdd.js +7 -0
  218. package/build/bosun-app/frontend/client/_app/immutable/chunks/BsTHnhdd.js.br +0 -0
  219. package/build/bosun-app/frontend/client/_app/immutable/chunks/BsTHnhdd.js.gz +0 -0
  220. package/build/bosun-app/frontend/client/_app/immutable/chunks/C0rPkxmP.js +1 -0
  221. package/build/bosun-app/frontend/client/_app/immutable/chunks/C0rPkxmP.js.br +0 -0
  222. package/build/bosun-app/frontend/client/_app/immutable/chunks/C0rPkxmP.js.gz +0 -0
  223. package/build/bosun-app/frontend/client/_app/immutable/chunks/C1FmrZbK.js +1 -0
  224. package/build/bosun-app/frontend/client/_app/immutable/chunks/C1FmrZbK.js.br +0 -0
  225. package/build/bosun-app/frontend/client/_app/immutable/chunks/C1FmrZbK.js.gz +0 -0
  226. package/build/bosun-app/frontend/client/_app/immutable/chunks/C3cROXCy.js +9 -0
  227. package/build/bosun-app/frontend/client/_app/immutable/chunks/C3cROXCy.js.br +0 -0
  228. package/build/bosun-app/frontend/client/_app/immutable/chunks/C3cROXCy.js.gz +0 -0
  229. package/build/bosun-app/frontend/client/_app/immutable/chunks/C4mbwMvt.js +6 -0
  230. package/build/bosun-app/frontend/client/_app/immutable/chunks/C4mbwMvt.js.br +0 -0
  231. package/build/bosun-app/frontend/client/_app/immutable/chunks/C4mbwMvt.js.gz +0 -0
  232. package/build/bosun-app/frontend/client/_app/immutable/chunks/C5WLch3f.js +6 -0
  233. package/build/bosun-app/frontend/client/_app/immutable/chunks/C5WLch3f.js.br +0 -0
  234. package/build/bosun-app/frontend/client/_app/immutable/chunks/C5WLch3f.js.gz +0 -0
  235. package/build/bosun-app/frontend/client/_app/immutable/chunks/C9yBjdYI.js +2 -0
  236. package/build/bosun-app/frontend/client/_app/immutable/chunks/C9yBjdYI.js.br +0 -0
  237. package/build/bosun-app/frontend/client/_app/immutable/chunks/C9yBjdYI.js.gz +0 -0
  238. package/build/bosun-app/frontend/client/_app/immutable/chunks/CAFoob5N.js +6 -0
  239. package/build/bosun-app/frontend/client/_app/immutable/chunks/CAFoob5N.js.br +0 -0
  240. package/build/bosun-app/frontend/client/_app/immutable/chunks/CAFoob5N.js.gz +0 -0
  241. package/build/bosun-app/frontend/client/_app/immutable/chunks/CCSDG5nI.js +6 -0
  242. package/build/bosun-app/frontend/client/_app/immutable/chunks/CCSDG5nI.js.br +0 -0
  243. package/build/bosun-app/frontend/client/_app/immutable/chunks/CCSDG5nI.js.gz +0 -0
  244. package/build/bosun-app/frontend/client/_app/immutable/chunks/CCYriF4C.js +1 -0
  245. package/build/bosun-app/frontend/client/_app/immutable/chunks/CCYriF4C.js.br +0 -0
  246. package/build/bosun-app/frontend/client/_app/immutable/chunks/CCYriF4C.js.gz +0 -0
  247. package/build/bosun-app/frontend/client/_app/immutable/chunks/CDGzqUPQ.js +6 -0
  248. package/build/bosun-app/frontend/client/_app/immutable/chunks/CDGzqUPQ.js.br +0 -0
  249. package/build/bosun-app/frontend/client/_app/immutable/chunks/CDGzqUPQ.js.gz +0 -0
  250. package/build/bosun-app/frontend/client/_app/immutable/chunks/CDntyWJ8.js +6 -0
  251. package/build/bosun-app/frontend/client/_app/immutable/chunks/CDntyWJ8.js.br +0 -0
  252. package/build/bosun-app/frontend/client/_app/immutable/chunks/CDntyWJ8.js.gz +0 -0
  253. package/build/bosun-app/frontend/client/_app/immutable/chunks/CFKIUWau.js +6 -0
  254. package/build/bosun-app/frontend/client/_app/immutable/chunks/CFKIUWau.js.br +0 -0
  255. package/build/bosun-app/frontend/client/_app/immutable/chunks/CFKIUWau.js.gz +0 -0
  256. package/build/bosun-app/frontend/client/_app/immutable/chunks/CFOPXBzS.js +6 -0
  257. package/build/bosun-app/frontend/client/_app/immutable/chunks/CFOPXBzS.js.br +0 -0
  258. package/build/bosun-app/frontend/client/_app/immutable/chunks/CFOPXBzS.js.gz +0 -0
  259. package/build/bosun-app/frontend/client/_app/immutable/chunks/CGinwM47.js +8 -0
  260. package/build/bosun-app/frontend/client/_app/immutable/chunks/CGinwM47.js.br +0 -0
  261. package/build/bosun-app/frontend/client/_app/immutable/chunks/CGinwM47.js.gz +0 -0
  262. package/build/bosun-app/frontend/client/_app/immutable/chunks/CHCMKZAC.js +1 -0
  263. package/build/bosun-app/frontend/client/_app/immutable/chunks/CHCMKZAC.js.br +0 -0
  264. package/build/bosun-app/frontend/client/_app/immutable/chunks/CHCMKZAC.js.gz +0 -0
  265. package/build/bosun-app/frontend/client/_app/immutable/chunks/CLLBncYj.js +6 -0
  266. package/build/bosun-app/frontend/client/_app/immutable/chunks/CLLBncYj.js.br +0 -0
  267. package/build/bosun-app/frontend/client/_app/immutable/chunks/CLLBncYj.js.gz +0 -0
  268. package/build/bosun-app/frontend/client/_app/immutable/chunks/COyEY5Pt.js +7 -0
  269. package/build/bosun-app/frontend/client/_app/immutable/chunks/COyEY5Pt.js.br +0 -0
  270. package/build/bosun-app/frontend/client/_app/immutable/chunks/COyEY5Pt.js.gz +0 -0
  271. package/build/bosun-app/frontend/client/_app/immutable/chunks/CPajHgWi.js +6 -0
  272. package/build/bosun-app/frontend/client/_app/immutable/chunks/CPajHgWi.js.br +0 -0
  273. package/build/bosun-app/frontend/client/_app/immutable/chunks/CPajHgWi.js.gz +0 -0
  274. package/build/bosun-app/frontend/client/_app/immutable/chunks/CR-uVjxM.js +1 -0
  275. package/build/bosun-app/frontend/client/_app/immutable/chunks/CR-uVjxM.js.br +0 -0
  276. package/build/bosun-app/frontend/client/_app/immutable/chunks/CR-uVjxM.js.gz +0 -0
  277. package/build/bosun-app/frontend/client/_app/immutable/chunks/CR5IRTqC.js +1 -0
  278. package/build/bosun-app/frontend/client/_app/immutable/chunks/CR5IRTqC.js.br +0 -0
  279. package/build/bosun-app/frontend/client/_app/immutable/chunks/CR5IRTqC.js.gz +0 -0
  280. package/build/bosun-app/frontend/client/_app/immutable/chunks/CVwtpugi.js +6 -0
  281. package/build/bosun-app/frontend/client/_app/immutable/chunks/CVwtpugi.js.br +0 -0
  282. package/build/bosun-app/frontend/client/_app/immutable/chunks/CVwtpugi.js.gz +0 -0
  283. package/build/bosun-app/frontend/client/_app/immutable/chunks/CX-rkNHf.js +6 -0
  284. package/build/bosun-app/frontend/client/_app/immutable/chunks/CX-rkNHf.js.br +0 -0
  285. package/build/bosun-app/frontend/client/_app/immutable/chunks/CX-rkNHf.js.gz +0 -0
  286. package/build/bosun-app/frontend/client/_app/immutable/chunks/CXOwvkN_.js +6 -0
  287. package/build/bosun-app/frontend/client/_app/immutable/chunks/CXOwvkN_.js.br +0 -0
  288. package/build/bosun-app/frontend/client/_app/immutable/chunks/CXOwvkN_.js.gz +0 -0
  289. package/build/bosun-app/frontend/client/_app/immutable/chunks/CdQndTaG.js +6 -0
  290. package/build/bosun-app/frontend/client/_app/immutable/chunks/CdQndTaG.js.br +0 -0
  291. package/build/bosun-app/frontend/client/_app/immutable/chunks/CdQndTaG.js.gz +0 -0
  292. package/build/bosun-app/frontend/client/_app/immutable/chunks/Ce3n6wWz.js +6 -0
  293. package/build/bosun-app/frontend/client/_app/immutable/chunks/Ce3n6wWz.js.br +0 -0
  294. package/build/bosun-app/frontend/client/_app/immutable/chunks/Ce3n6wWz.js.gz +0 -0
  295. package/build/bosun-app/frontend/client/_app/immutable/chunks/Cg7bfA9N.js +6 -0
  296. package/build/bosun-app/frontend/client/_app/immutable/chunks/Cg7bfA9N.js.br +0 -0
  297. package/build/bosun-app/frontend/client/_app/immutable/chunks/Cg7bfA9N.js.gz +0 -0
  298. package/build/bosun-app/frontend/client/_app/immutable/chunks/ClLUwVGq.js +1 -0
  299. package/build/bosun-app/frontend/client/_app/immutable/chunks/ClLUwVGq.js.br +0 -0
  300. package/build/bosun-app/frontend/client/_app/immutable/chunks/ClLUwVGq.js.gz +0 -0
  301. package/build/bosun-app/frontend/client/_app/immutable/chunks/Cp1zYvxS.js +6 -0
  302. package/build/bosun-app/frontend/client/_app/immutable/chunks/Cp1zYvxS.js.br +0 -0
  303. package/build/bosun-app/frontend/client/_app/immutable/chunks/Cp1zYvxS.js.gz +0 -0
  304. package/build/bosun-app/frontend/client/_app/immutable/chunks/CpIb_Oan.js +6 -0
  305. package/build/bosun-app/frontend/client/_app/immutable/chunks/CpIb_Oan.js.br +0 -0
  306. package/build/bosun-app/frontend/client/_app/immutable/chunks/CpIb_Oan.js.gz +0 -0
  307. package/build/bosun-app/frontend/client/_app/immutable/chunks/Cpb6xl2v.js +6 -0
  308. package/build/bosun-app/frontend/client/_app/immutable/chunks/Cpb6xl2v.js.br +0 -0
  309. package/build/bosun-app/frontend/client/_app/immutable/chunks/Cpb6xl2v.js.gz +0 -0
  310. package/build/bosun-app/frontend/client/_app/immutable/chunks/Cphgjts3.js +6 -0
  311. package/build/bosun-app/frontend/client/_app/immutable/chunks/Cphgjts3.js.br +0 -0
  312. package/build/bosun-app/frontend/client/_app/immutable/chunks/Cphgjts3.js.gz +0 -0
  313. package/build/bosun-app/frontend/client/_app/immutable/chunks/CrxwEwqu.js +6 -0
  314. package/build/bosun-app/frontend/client/_app/immutable/chunks/CrxwEwqu.js.br +0 -0
  315. package/build/bosun-app/frontend/client/_app/immutable/chunks/CrxwEwqu.js.gz +0 -0
  316. package/build/bosun-app/frontend/client/_app/immutable/chunks/CwNk8-XU.js +6 -0
  317. package/build/bosun-app/frontend/client/_app/immutable/chunks/CwNk8-XU.js.br +0 -0
  318. package/build/bosun-app/frontend/client/_app/immutable/chunks/CwNk8-XU.js.gz +0 -0
  319. package/build/bosun-app/frontend/client/_app/immutable/chunks/CwmAWymP.js +6 -0
  320. package/build/bosun-app/frontend/client/_app/immutable/chunks/CwmAWymP.js.br +0 -0
  321. package/build/bosun-app/frontend/client/_app/immutable/chunks/CwmAWymP.js.gz +0 -0
  322. package/build/bosun-app/frontend/client/_app/immutable/chunks/CzKuDChf.js +6 -0
  323. package/build/bosun-app/frontend/client/_app/immutable/chunks/CzKuDChf.js.br +0 -0
  324. package/build/bosun-app/frontend/client/_app/immutable/chunks/CzKuDChf.js.gz +0 -0
  325. package/build/bosun-app/frontend/client/_app/immutable/chunks/D-MeaMDU.js +6 -0
  326. package/build/bosun-app/frontend/client/_app/immutable/chunks/D-MeaMDU.js.br +0 -0
  327. package/build/bosun-app/frontend/client/_app/immutable/chunks/D-MeaMDU.js.gz +0 -0
  328. package/build/bosun-app/frontend/client/_app/immutable/chunks/D3h14YRZ.js +8 -0
  329. package/build/bosun-app/frontend/client/_app/immutable/chunks/D3h14YRZ.js.br +0 -0
  330. package/build/bosun-app/frontend/client/_app/immutable/chunks/D3h14YRZ.js.gz +0 -0
  331. package/build/bosun-app/frontend/client/_app/immutable/chunks/D5C2fndG.js +6 -0
  332. package/build/bosun-app/frontend/client/_app/immutable/chunks/D5C2fndG.js.br +0 -0
  333. package/build/bosun-app/frontend/client/_app/immutable/chunks/D5C2fndG.js.gz +0 -0
  334. package/build/bosun-app/frontend/client/_app/immutable/chunks/DDMPVpvs.js +6 -0
  335. package/build/bosun-app/frontend/client/_app/immutable/chunks/DDMPVpvs.js.br +0 -0
  336. package/build/bosun-app/frontend/client/_app/immutable/chunks/DDMPVpvs.js.gz +0 -0
  337. package/build/bosun-app/frontend/client/_app/immutable/chunks/DDwshQtU.js +6 -0
  338. package/build/bosun-app/frontend/client/_app/immutable/chunks/DDwshQtU.js.br +0 -0
  339. package/build/bosun-app/frontend/client/_app/immutable/chunks/DDwshQtU.js.gz +0 -0
  340. package/build/bosun-app/frontend/client/_app/immutable/chunks/DEz15oJb.js +1 -0
  341. package/build/bosun-app/frontend/client/_app/immutable/chunks/DEz15oJb.js.br +0 -0
  342. package/build/bosun-app/frontend/client/_app/immutable/chunks/DEz15oJb.js.gz +0 -0
  343. package/build/bosun-app/frontend/client/_app/immutable/chunks/DGc0An5V.js +1 -0
  344. package/build/bosun-app/frontend/client/_app/immutable/chunks/DGc0An5V.js.br +0 -0
  345. package/build/bosun-app/frontend/client/_app/immutable/chunks/DGc0An5V.js.gz +0 -0
  346. package/build/bosun-app/frontend/client/_app/immutable/chunks/DHaeiCBh.js +6 -0
  347. package/build/bosun-app/frontend/client/_app/immutable/chunks/DHaeiCBh.js.br +0 -0
  348. package/build/bosun-app/frontend/client/_app/immutable/chunks/DHaeiCBh.js.gz +0 -0
  349. package/build/bosun-app/frontend/client/_app/immutable/chunks/DJnDF3d9.js +1 -0
  350. package/build/bosun-app/frontend/client/_app/immutable/chunks/DJnDF3d9.js.br +0 -0
  351. package/build/bosun-app/frontend/client/_app/immutable/chunks/DJnDF3d9.js.gz +0 -0
  352. package/build/bosun-app/frontend/client/_app/immutable/chunks/DLQqXQ6R.js +751 -0
  353. package/build/bosun-app/frontend/client/_app/immutable/chunks/DLQqXQ6R.js.br +0 -0
  354. package/build/bosun-app/frontend/client/_app/immutable/chunks/DLQqXQ6R.js.gz +0 -0
  355. package/build/bosun-app/frontend/client/_app/immutable/chunks/DNvczHUR.js +1 -0
  356. package/build/bosun-app/frontend/client/_app/immutable/chunks/DNvczHUR.js.br +0 -0
  357. package/build/bosun-app/frontend/client/_app/immutable/chunks/DNvczHUR.js.gz +0 -0
  358. package/build/bosun-app/frontend/client/_app/immutable/chunks/DRIMs3uA.js +6 -0
  359. package/build/bosun-app/frontend/client/_app/immutable/chunks/DRIMs3uA.js.br +0 -0
  360. package/build/bosun-app/frontend/client/_app/immutable/chunks/DRIMs3uA.js.gz +0 -0
  361. package/build/bosun-app/frontend/client/_app/immutable/chunks/DSZPf7rp.js +6 -0
  362. package/build/bosun-app/frontend/client/_app/immutable/chunks/DSZPf7rp.js.br +0 -0
  363. package/build/bosun-app/frontend/client/_app/immutable/chunks/DSZPf7rp.js.gz +0 -0
  364. package/build/bosun-app/frontend/client/_app/immutable/chunks/DTECt2xU.js +6 -0
  365. package/build/bosun-app/frontend/client/_app/immutable/chunks/DTECt2xU.js.br +0 -0
  366. package/build/bosun-app/frontend/client/_app/immutable/chunks/DTECt2xU.js.gz +0 -0
  367. package/build/bosun-app/frontend/client/_app/immutable/chunks/DUeN9t8P.js +6 -0
  368. package/build/bosun-app/frontend/client/_app/immutable/chunks/DUeN9t8P.js.br +0 -0
  369. package/build/bosun-app/frontend/client/_app/immutable/chunks/DUeN9t8P.js.gz +0 -0
  370. package/build/bosun-app/frontend/client/_app/immutable/chunks/DWH0347h.js +6 -0
  371. package/build/bosun-app/frontend/client/_app/immutable/chunks/DWH0347h.js.br +0 -0
  372. package/build/bosun-app/frontend/client/_app/immutable/chunks/DWH0347h.js.gz +0 -0
  373. package/build/bosun-app/frontend/client/_app/immutable/chunks/DXsF11_5.js +1 -0
  374. package/build/bosun-app/frontend/client/_app/immutable/chunks/DXsF11_5.js.br +2 -0
  375. package/build/bosun-app/frontend/client/_app/immutable/chunks/DXsF11_5.js.gz +0 -0
  376. package/build/bosun-app/frontend/client/_app/immutable/chunks/DXyYeYxl.js +6 -0
  377. package/build/bosun-app/frontend/client/_app/immutable/chunks/DXyYeYxl.js.br +0 -0
  378. package/build/bosun-app/frontend/client/_app/immutable/chunks/DXyYeYxl.js.gz +0 -0
  379. package/build/bosun-app/frontend/client/_app/immutable/chunks/DZxMt77D.js +6 -0
  380. package/build/bosun-app/frontend/client/_app/immutable/chunks/DZxMt77D.js.br +0 -0
  381. package/build/bosun-app/frontend/client/_app/immutable/chunks/DZxMt77D.js.gz +0 -0
  382. package/build/bosun-app/frontend/client/_app/immutable/chunks/Dba0_Upf.js +1 -0
  383. package/build/bosun-app/frontend/client/_app/immutable/chunks/Dba0_Upf.js.br +2 -0
  384. package/build/bosun-app/frontend/client/_app/immutable/chunks/Dba0_Upf.js.gz +0 -0
  385. package/build/bosun-app/frontend/client/_app/immutable/chunks/Dd3NCNK9.js +6 -0
  386. package/build/bosun-app/frontend/client/_app/immutable/chunks/Dd3NCNK9.js.br +0 -0
  387. package/build/bosun-app/frontend/client/_app/immutable/chunks/Dd3NCNK9.js.gz +0 -0
  388. package/build/bosun-app/frontend/client/_app/immutable/chunks/DfzH4Xui.js +6 -0
  389. package/build/bosun-app/frontend/client/_app/immutable/chunks/DfzH4Xui.js.br +0 -0
  390. package/build/bosun-app/frontend/client/_app/immutable/chunks/DfzH4Xui.js.gz +0 -0
  391. package/build/bosun-app/frontend/client/_app/immutable/chunks/DgGeUDDh.js +1 -0
  392. package/build/bosun-app/frontend/client/_app/immutable/chunks/DgGeUDDh.js.br +0 -0
  393. package/build/bosun-app/frontend/client/_app/immutable/chunks/DgGeUDDh.js.gz +0 -0
  394. package/build/bosun-app/frontend/client/_app/immutable/chunks/DgyLZaXg.js +6 -0
  395. package/build/bosun-app/frontend/client/_app/immutable/chunks/DgyLZaXg.js.br +0 -0
  396. package/build/bosun-app/frontend/client/_app/immutable/chunks/DgyLZaXg.js.gz +0 -0
  397. package/build/bosun-app/frontend/client/_app/immutable/chunks/DjDhNM9l.js +9 -0
  398. package/build/bosun-app/frontend/client/_app/immutable/chunks/DjDhNM9l.js.br +0 -0
  399. package/build/bosun-app/frontend/client/_app/immutable/chunks/DjDhNM9l.js.gz +0 -0
  400. package/build/bosun-app/frontend/client/_app/immutable/chunks/DjujL8K1.js +1 -0
  401. package/build/bosun-app/frontend/client/_app/immutable/chunks/DjujL8K1.js.br +0 -0
  402. package/build/bosun-app/frontend/client/_app/immutable/chunks/DjujL8K1.js.gz +0 -0
  403. package/build/bosun-app/frontend/client/_app/immutable/chunks/DnHyzjbg.js +6 -0
  404. package/build/bosun-app/frontend/client/_app/immutable/chunks/DnHyzjbg.js.br +0 -0
  405. package/build/bosun-app/frontend/client/_app/immutable/chunks/DnHyzjbg.js.gz +0 -0
  406. package/build/bosun-app/frontend/client/_app/immutable/chunks/DnMQeiTY.js +1 -0
  407. package/build/bosun-app/frontend/client/_app/immutable/chunks/DnMQeiTY.js.br +0 -0
  408. package/build/bosun-app/frontend/client/_app/immutable/chunks/DnMQeiTY.js.gz +0 -0
  409. package/build/bosun-app/frontend/client/_app/immutable/chunks/DrQuvNYM.js +6 -0
  410. package/build/bosun-app/frontend/client/_app/immutable/chunks/DrQuvNYM.js.br +0 -0
  411. package/build/bosun-app/frontend/client/_app/immutable/chunks/DrQuvNYM.js.gz +0 -0
  412. package/build/bosun-app/frontend/client/_app/immutable/chunks/Drc7WvVn.js +6 -0
  413. package/build/bosun-app/frontend/client/_app/immutable/chunks/Drc7WvVn.js.br +0 -0
  414. package/build/bosun-app/frontend/client/_app/immutable/chunks/Drc7WvVn.js.gz +0 -0
  415. package/build/bosun-app/frontend/client/_app/immutable/chunks/DuQdgMax.js +1 -0
  416. package/build/bosun-app/frontend/client/_app/immutable/chunks/DuQdgMax.js.br +0 -0
  417. package/build/bosun-app/frontend/client/_app/immutable/chunks/DuQdgMax.js.gz +0 -0
  418. package/build/bosun-app/frontend/client/_app/immutable/chunks/DwJ7jVG9.js +8 -0
  419. package/build/bosun-app/frontend/client/_app/immutable/chunks/DwJ7jVG9.js.br +0 -0
  420. package/build/bosun-app/frontend/client/_app/immutable/chunks/DwJ7jVG9.js.gz +0 -0
  421. package/build/bosun-app/frontend/client/_app/immutable/chunks/DyP6w7ZV.js +6 -0
  422. package/build/bosun-app/frontend/client/_app/immutable/chunks/DyP6w7ZV.js.br +0 -0
  423. package/build/bosun-app/frontend/client/_app/immutable/chunks/DyP6w7ZV.js.gz +0 -0
  424. package/build/bosun-app/frontend/client/_app/immutable/chunks/IKQcdn9t.js +1 -0
  425. package/build/bosun-app/frontend/client/_app/immutable/chunks/IKQcdn9t.js.br +2 -0
  426. package/build/bosun-app/frontend/client/_app/immutable/chunks/IKQcdn9t.js.gz +0 -0
  427. package/build/bosun-app/frontend/client/_app/immutable/chunks/OERrxy3_.js +64 -0
  428. package/build/bosun-app/frontend/client/_app/immutable/chunks/OERrxy3_.js.br +0 -0
  429. package/build/bosun-app/frontend/client/_app/immutable/chunks/OERrxy3_.js.gz +0 -0
  430. package/build/bosun-app/frontend/client/_app/immutable/chunks/T0seCQS_.js +1 -0
  431. package/build/bosun-app/frontend/client/_app/immutable/chunks/T0seCQS_.js.br +0 -0
  432. package/build/bosun-app/frontend/client/_app/immutable/chunks/T0seCQS_.js.gz +0 -0
  433. package/build/bosun-app/frontend/client/_app/immutable/chunks/Tw7wswEv.js +6 -0
  434. package/build/bosun-app/frontend/client/_app/immutable/chunks/Tw7wswEv.js.br +0 -0
  435. package/build/bosun-app/frontend/client/_app/immutable/chunks/Tw7wswEv.js.gz +0 -0
  436. package/build/bosun-app/frontend/client/_app/immutable/chunks/YWi4-JPR.js +6 -0
  437. package/build/bosun-app/frontend/client/_app/immutable/chunks/YWi4-JPR.js.br +0 -0
  438. package/build/bosun-app/frontend/client/_app/immutable/chunks/YWi4-JPR.js.gz +0 -0
  439. package/build/bosun-app/frontend/client/_app/immutable/chunks/ZGfwyPNq.js +15 -0
  440. package/build/bosun-app/frontend/client/_app/immutable/chunks/ZGfwyPNq.js.br +0 -0
  441. package/build/bosun-app/frontend/client/_app/immutable/chunks/ZGfwyPNq.js.gz +0 -0
  442. package/build/bosun-app/frontend/client/_app/immutable/chunks/Zznr-cwX.js +6 -0
  443. package/build/bosun-app/frontend/client/_app/immutable/chunks/Zznr-cwX.js.br +0 -0
  444. package/build/bosun-app/frontend/client/_app/immutable/chunks/Zznr-cwX.js.gz +0 -0
  445. package/build/bosun-app/frontend/client/_app/immutable/chunks/bynEV6cE.js +9 -0
  446. package/build/bosun-app/frontend/client/_app/immutable/chunks/bynEV6cE.js.br +0 -0
  447. package/build/bosun-app/frontend/client/_app/immutable/chunks/bynEV6cE.js.gz +0 -0
  448. package/build/bosun-app/frontend/client/_app/immutable/chunks/dUCx_-0o.js +6 -0
  449. package/build/bosun-app/frontend/client/_app/immutable/chunks/dUCx_-0o.js.br +0 -0
  450. package/build/bosun-app/frontend/client/_app/immutable/chunks/dUCx_-0o.js.gz +0 -0
  451. package/build/bosun-app/frontend/client/_app/immutable/chunks/ddC1NP9R.js +2 -0
  452. package/build/bosun-app/frontend/client/_app/immutable/chunks/ddC1NP9R.js.br +0 -0
  453. package/build/bosun-app/frontend/client/_app/immutable/chunks/ddC1NP9R.js.gz +0 -0
  454. package/build/bosun-app/frontend/client/_app/immutable/chunks/deUWdS0T.js +6 -0
  455. package/build/bosun-app/frontend/client/_app/immutable/chunks/deUWdS0T.js.br +0 -0
  456. package/build/bosun-app/frontend/client/_app/immutable/chunks/deUWdS0T.js.gz +0 -0
  457. package/build/bosun-app/frontend/client/_app/immutable/chunks/i9-g7ZhI.js +6 -0
  458. package/build/bosun-app/frontend/client/_app/immutable/chunks/i9-g7ZhI.js.br +0 -0
  459. package/build/bosun-app/frontend/client/_app/immutable/chunks/i9-g7ZhI.js.gz +0 -0
  460. package/build/bosun-app/frontend/client/_app/immutable/chunks/joiJcRPz.js +11 -0
  461. package/build/bosun-app/frontend/client/_app/immutable/chunks/joiJcRPz.js.br +0 -0
  462. package/build/bosun-app/frontend/client/_app/immutable/chunks/joiJcRPz.js.gz +0 -0
  463. package/build/bosun-app/frontend/client/_app/immutable/chunks/nf6ki56Z.js +6 -0
  464. package/build/bosun-app/frontend/client/_app/immutable/chunks/nf6ki56Z.js.br +0 -0
  465. package/build/bosun-app/frontend/client/_app/immutable/chunks/nf6ki56Z.js.gz +0 -0
  466. package/build/bosun-app/frontend/client/_app/immutable/chunks/ouMvMh56.js +1 -0
  467. package/build/bosun-app/frontend/client/_app/immutable/chunks/ouMvMh56.js.br +0 -0
  468. package/build/bosun-app/frontend/client/_app/immutable/chunks/ouMvMh56.js.gz +0 -0
  469. package/build/bosun-app/frontend/client/_app/immutable/chunks/pnP8ivHi.js +6 -0
  470. package/build/bosun-app/frontend/client/_app/immutable/chunks/pnP8ivHi.js.br +0 -0
  471. package/build/bosun-app/frontend/client/_app/immutable/chunks/pnP8ivHi.js.gz +0 -0
  472. package/build/bosun-app/frontend/client/_app/immutable/chunks/qiSVE_6c.js +1 -0
  473. package/build/bosun-app/frontend/client/_app/immutable/chunks/qiSVE_6c.js.br +0 -0
  474. package/build/bosun-app/frontend/client/_app/immutable/chunks/qiSVE_6c.js.gz +0 -0
  475. package/build/bosun-app/frontend/client/_app/immutable/chunks/rUNN04Wq.js +6 -0
  476. package/build/bosun-app/frontend/client/_app/immutable/chunks/rUNN04Wq.js.br +0 -0
  477. package/build/bosun-app/frontend/client/_app/immutable/chunks/rUNN04Wq.js.gz +0 -0
  478. package/build/bosun-app/frontend/client/_app/immutable/chunks/sKHuRf4Z.js +2 -0
  479. package/build/bosun-app/frontend/client/_app/immutable/chunks/sKHuRf4Z.js.br +0 -0
  480. package/build/bosun-app/frontend/client/_app/immutable/chunks/sKHuRf4Z.js.gz +0 -0
  481. package/build/bosun-app/frontend/client/_app/immutable/chunks/tGk8EFnU.js +6 -0
  482. package/build/bosun-app/frontend/client/_app/immutable/chunks/tGk8EFnU.js.br +0 -0
  483. package/build/bosun-app/frontend/client/_app/immutable/chunks/tGk8EFnU.js.gz +0 -0
  484. package/build/bosun-app/frontend/client/_app/immutable/chunks/wbPk3Yxo.js +81 -0
  485. package/build/bosun-app/frontend/client/_app/immutable/chunks/wbPk3Yxo.js.br +0 -0
  486. package/build/bosun-app/frontend/client/_app/immutable/chunks/wbPk3Yxo.js.gz +0 -0
  487. package/build/bosun-app/frontend/client/_app/immutable/chunks/xC2C8d09.js +1 -0
  488. package/build/bosun-app/frontend/client/_app/immutable/chunks/xC2C8d09.js.br +0 -0
  489. package/build/bosun-app/frontend/client/_app/immutable/chunks/xC2C8d09.js.gz +0 -0
  490. package/build/bosun-app/frontend/client/_app/immutable/entry/app.Bni-2yHM.js +2 -0
  491. package/build/bosun-app/frontend/client/_app/immutable/entry/app.Bni-2yHM.js.br +0 -0
  492. package/build/bosun-app/frontend/client/_app/immutable/entry/app.Bni-2yHM.js.gz +0 -0
  493. package/build/bosun-app/frontend/client/_app/immutable/entry/start.Bwh8stkk.js +1 -0
  494. package/build/bosun-app/frontend/client/_app/immutable/entry/start.Bwh8stkk.js.br +0 -0
  495. package/build/bosun-app/frontend/client/_app/immutable/entry/start.Bwh8stkk.js.gz +0 -0
  496. package/build/bosun-app/frontend/client/_app/immutable/nodes/0.CyFCeOko.js +3 -0
  497. package/build/bosun-app/frontend/client/_app/immutable/nodes/0.CyFCeOko.js.br +0 -0
  498. package/build/bosun-app/frontend/client/_app/immutable/nodes/0.CyFCeOko.js.gz +0 -0
  499. package/build/bosun-app/frontend/client/_app/immutable/nodes/1.D9Za90TC.js +1 -0
  500. package/build/bosun-app/frontend/client/_app/immutable/nodes/1.D9Za90TC.js.br +0 -0
  501. package/build/bosun-app/frontend/client/_app/immutable/nodes/1.D9Za90TC.js.gz +0 -0
  502. package/build/bosun-app/frontend/client/_app/immutable/nodes/10.CQP8ZYdc.js +35 -0
  503. package/build/bosun-app/frontend/client/_app/immutable/nodes/10.CQP8ZYdc.js.br +0 -0
  504. package/build/bosun-app/frontend/client/_app/immutable/nodes/10.CQP8ZYdc.js.gz +0 -0
  505. package/build/bosun-app/frontend/client/_app/immutable/nodes/11.1H8cz_S1.js +1 -0
  506. package/build/bosun-app/frontend/client/_app/immutable/nodes/11.1H8cz_S1.js.br +2 -0
  507. package/build/bosun-app/frontend/client/_app/immutable/nodes/11.1H8cz_S1.js.gz +0 -0
  508. package/build/bosun-app/frontend/client/_app/immutable/nodes/12.Douyi5CF.js +1 -0
  509. package/build/bosun-app/frontend/client/_app/immutable/nodes/12.Douyi5CF.js.br +0 -0
  510. package/build/bosun-app/frontend/client/_app/immutable/nodes/12.Douyi5CF.js.gz +0 -0
  511. package/build/bosun-app/frontend/client/_app/immutable/nodes/13.DmDIoZI2.js +1 -0
  512. package/build/bosun-app/frontend/client/_app/immutable/nodes/13.DmDIoZI2.js.br +0 -0
  513. package/build/bosun-app/frontend/client/_app/immutable/nodes/13.DmDIoZI2.js.gz +0 -0
  514. package/build/bosun-app/frontend/client/_app/immutable/nodes/14.DfC4E0Jp.js +1 -0
  515. package/build/bosun-app/frontend/client/_app/immutable/nodes/14.DfC4E0Jp.js.br +0 -0
  516. package/build/bosun-app/frontend/client/_app/immutable/nodes/14.DfC4E0Jp.js.gz +0 -0
  517. package/build/bosun-app/frontend/client/_app/immutable/nodes/15.drIyAxl2.js +1 -0
  518. package/build/bosun-app/frontend/client/_app/immutable/nodes/15.drIyAxl2.js.br +1 -0
  519. package/build/bosun-app/frontend/client/_app/immutable/nodes/15.drIyAxl2.js.gz +0 -0
  520. package/build/bosun-app/frontend/client/_app/immutable/nodes/16.u0CZMrcc.js +1 -0
  521. package/build/bosun-app/frontend/client/_app/immutable/nodes/16.u0CZMrcc.js.br +4 -0
  522. package/build/bosun-app/frontend/client/_app/immutable/nodes/16.u0CZMrcc.js.gz +0 -0
  523. package/build/bosun-app/frontend/client/_app/immutable/nodes/17.C-6g-4TG.js +3 -0
  524. package/build/bosun-app/frontend/client/_app/immutable/nodes/17.C-6g-4TG.js.br +0 -0
  525. package/build/bosun-app/frontend/client/_app/immutable/nodes/17.C-6g-4TG.js.gz +0 -0
  526. package/build/bosun-app/frontend/client/_app/immutable/nodes/18.CKu_cfLu.js +11 -0
  527. package/build/bosun-app/frontend/client/_app/immutable/nodes/18.CKu_cfLu.js.br +0 -0
  528. package/build/bosun-app/frontend/client/_app/immutable/nodes/18.CKu_cfLu.js.gz +0 -0
  529. package/build/bosun-app/frontend/client/_app/immutable/nodes/2.lZxPEqtw.js +35 -0
  530. package/build/bosun-app/frontend/client/_app/immutable/nodes/2.lZxPEqtw.js.br +0 -0
  531. package/build/bosun-app/frontend/client/_app/immutable/nodes/2.lZxPEqtw.js.gz +0 -0
  532. package/build/bosun-app/frontend/client/_app/immutable/nodes/3.BjH4Ma-k.js +1 -0
  533. package/build/bosun-app/frontend/client/_app/immutable/nodes/3.BjH4Ma-k.js.br +0 -0
  534. package/build/bosun-app/frontend/client/_app/immutable/nodes/3.BjH4Ma-k.js.gz +0 -0
  535. package/build/bosun-app/frontend/client/_app/immutable/nodes/4.B_swg0wq.js +1 -0
  536. package/build/bosun-app/frontend/client/_app/immutable/nodes/4.B_swg0wq.js.br +0 -0
  537. package/build/bosun-app/frontend/client/_app/immutable/nodes/4.B_swg0wq.js.gz +0 -0
  538. package/build/bosun-app/frontend/client/_app/immutable/nodes/5.CJfS926N.js +1 -0
  539. package/build/bosun-app/frontend/client/_app/immutable/nodes/5.CJfS926N.js.br +0 -0
  540. package/build/bosun-app/frontend/client/_app/immutable/nodes/5.CJfS926N.js.gz +0 -0
  541. package/build/bosun-app/frontend/client/_app/immutable/nodes/6.4aRjHu4u.js +1 -0
  542. package/build/bosun-app/frontend/client/_app/immutable/nodes/6.4aRjHu4u.js.br +0 -0
  543. package/build/bosun-app/frontend/client/_app/immutable/nodes/6.4aRjHu4u.js.gz +0 -0
  544. package/build/bosun-app/frontend/client/_app/immutable/nodes/7.BzXqUj2v.js +1 -0
  545. package/build/bosun-app/frontend/client/_app/immutable/nodes/7.BzXqUj2v.js.br +0 -0
  546. package/build/bosun-app/frontend/client/_app/immutable/nodes/7.BzXqUj2v.js.gz +0 -0
  547. package/build/bosun-app/frontend/client/_app/immutable/nodes/8.BZFIHe4g.js +2 -0
  548. package/build/bosun-app/frontend/client/_app/immutable/nodes/8.BZFIHe4g.js.br +0 -0
  549. package/build/bosun-app/frontend/client/_app/immutable/nodes/8.BZFIHe4g.js.gz +0 -0
  550. package/build/bosun-app/frontend/client/_app/immutable/nodes/9.BYJRzNt4.js +2 -0
  551. package/build/bosun-app/frontend/client/_app/immutable/nodes/9.BYJRzNt4.js.br +0 -0
  552. package/build/bosun-app/frontend/client/_app/immutable/nodes/9.BYJRzNt4.js.gz +0 -0
  553. package/build/bosun-app/frontend/client/_app/immutable/workers/css.worker-BRIrhzkG.js +84 -0
  554. package/build/bosun-app/frontend/client/_app/immutable/workers/css.worker-BRIrhzkG.js.br +0 -0
  555. package/build/bosun-app/frontend/client/_app/immutable/workers/css.worker-BRIrhzkG.js.gz +0 -0
  556. package/build/bosun-app/frontend/client/_app/immutable/workers/editor.worker-DX6ApQqM.js +12 -0
  557. package/build/bosun-app/frontend/client/_app/immutable/workers/editor.worker-DX6ApQqM.js.br +0 -0
  558. package/build/bosun-app/frontend/client/_app/immutable/workers/editor.worker-DX6ApQqM.js.gz +0 -0
  559. package/build/bosun-app/frontend/client/_app/immutable/workers/html.worker-CBI4EQBP.js +461 -0
  560. package/build/bosun-app/frontend/client/_app/immutable/workers/html.worker-CBI4EQBP.js.br +0 -0
  561. package/build/bosun-app/frontend/client/_app/immutable/workers/html.worker-CBI4EQBP.js.gz +0 -0
  562. package/build/bosun-app/frontend/client/_app/immutable/workers/json.worker-CIZWV9vN.js +49 -0
  563. package/build/bosun-app/frontend/client/_app/immutable/workers/json.worker-CIZWV9vN.js.br +0 -0
  564. package/build/bosun-app/frontend/client/_app/immutable/workers/json.worker-CIZWV9vN.js.gz +0 -0
  565. package/build/bosun-app/frontend/client/_app/immutable/workers/ts.worker-Ds4I2Msu.js +51334 -0
  566. package/build/bosun-app/frontend/client/_app/immutable/workers/ts.worker-Ds4I2Msu.js.br +0 -0
  567. package/build/bosun-app/frontend/client/_app/immutable/workers/ts.worker-Ds4I2Msu.js.gz +0 -0
  568. package/build/bosun-app/frontend/client/_app/version.json +1 -0
  569. package/build/bosun-app/frontend/client/_app/version.json.br +0 -0
  570. package/build/bosun-app/frontend/client/_app/version.json.gz +0 -0
  571. package/build/bosun-app/frontend/client/favicon.png +0 -0
  572. package/build/bosun-app/frontend/client/fonts/DarkerGrotesque-Black.ttf +0 -0
  573. package/build/bosun-app/frontend/client/fonts/DarkerGrotesque-Bold.ttf +0 -0
  574. package/build/bosun-app/frontend/client/fonts/DarkerGrotesque-Light.ttf +0 -0
  575. package/build/bosun-app/frontend/client/fonts/DarkerGrotesque-Medium.ttf +0 -0
  576. package/build/bosun-app/frontend/client/fonts/DarkerGrotesque-Regular.ttf +0 -0
  577. package/build/bosun-app/frontend/client/fonts/DarkerGrotesque-SemiBold.ttf +0 -0
  578. package/build/bosun-app/frontend/client/fonts.css +42 -0
  579. package/build/bosun-app/frontend/client/fonts.css.br +0 -0
  580. package/build/bosun-app/frontend/client/fonts.css.gz +0 -0
  581. package/build/bosun-app/frontend/client/recombine.svg +11 -0
  582. package/build/bosun-app/frontend/client/recombine.svg.br +0 -0
  583. package/build/bosun-app/frontend/client/recombine.svg.gz +0 -0
  584. package/build/bosun-app/frontend/client/telescope-icon.svg +4 -0
  585. package/build/bosun-app/frontend/client/telescope-icon.svg.br +0 -0
  586. package/build/bosun-app/frontend/client/telescope-icon.svg.gz +0 -0
  587. package/build/bosun-app/frontend/client/ui/arrow_tests.svg +3 -0
  588. package/build/bosun-app/frontend/client/ui/arrow_tests.svg.br +0 -0
  589. package/build/bosun-app/frontend/client/ui/arrow_tests.svg.gz +0 -0
  590. package/build/bosun-app/frontend/client/ui/paperclip.svg +3 -0
  591. package/build/bosun-app/frontend/client/ui/paperclip.svg.br +0 -0
  592. package/build/bosun-app/frontend/client/ui/paperclip.svg.gz +0 -0
  593. package/build/bosun-app/frontend/client/ui/send.svg +4 -0
  594. package/build/bosun-app/frontend/client/ui/send.svg.br +0 -0
  595. package/build/bosun-app/frontend/client/ui/send.svg.gz +0 -0
  596. package/build/bosun-app/frontend/env.js +70 -0
  597. package/build/bosun-app/frontend/env.js.map +1 -0
  598. package/build/bosun-app/frontend/handler.js +28 -0
  599. package/build/bosun-app/frontend/handler.js.map +1 -0
  600. package/build/bosun-app/frontend/index.js +151 -0
  601. package/build/bosun-app/frontend/index.js.map +1 -0
  602. package/build/bosun-app/frontend/server/chunks/chunks/AgentSidebar.js-CFHwsTeS.js +170 -0
  603. package/build/bosun-app/frontend/server/chunks/chunks/AgentSidebar.js-CFHwsTeS.js.map +1 -0
  604. package/build/bosun-app/frontend/server/chunks/chunks/Button.js-IbO6ojjD.js +47 -0
  605. package/build/bosun-app/frontend/server/chunks/chunks/Button.js-IbO6ojjD.js.map +1 -0
  606. package/build/bosun-app/frontend/server/chunks/chunks/ChatStepTrace.js-VTtwaKGp.js +558 -0
  607. package/build/bosun-app/frontend/server/chunks/chunks/ChatStepTrace.js-VTtwaKGp.js.map +1 -0
  608. package/build/bosun-app/frontend/server/chunks/chunks/Dropdown.js-VxjZvXGD.js +62 -0
  609. package/build/bosun-app/frontend/server/chunks/chunks/Dropdown.js-VxjZvXGD.js.map +1 -0
  610. package/build/bosun-app/frontend/server/chunks/chunks/Icon.js-DzsiLkia.js +77 -0
  611. package/build/bosun-app/frontend/server/chunks/chunks/Icon.js-DzsiLkia.js.map +1 -0
  612. package/build/bosun-app/frontend/server/chunks/chunks/Input.js-V9tWKRFS.js +22 -0
  613. package/build/bosun-app/frontend/server/chunks/chunks/Input.js-V9tWKRFS.js.map +1 -0
  614. package/build/bosun-app/frontend/server/chunks/chunks/Modal.js-BUDSUOER.js +2290 -0
  615. package/build/bosun-app/frontend/server/chunks/chunks/Modal.js-BUDSUOER.js.map +1 -0
  616. package/build/bosun-app/frontend/server/chunks/chunks/Panel.js-Dyc_ecR2.js +11 -0
  617. package/build/bosun-app/frontend/server/chunks/chunks/Panel.js-Dyc_ecR2.js.map +1 -0
  618. package/build/bosun-app/frontend/server/chunks/chunks/Tab.js-DpBcUmVx.js +83 -0
  619. package/build/bosun-app/frontend/server/chunks/chunks/Tab.js-DpBcUmVx.js.map +1 -0
  620. package/build/bosun-app/frontend/server/chunks/chunks/agents-context.js-DdI5kzRS.js +6 -0
  621. package/build/bosun-app/frontend/server/chunks/chunks/agents-context.js-DdI5kzRS.js.map +1 -0
  622. package/build/bosun-app/frontend/server/chunks/chunks/client.js-C_B2rv3r.js +19 -0
  623. package/build/bosun-app/frontend/server/chunks/chunks/client.js-C_B2rv3r.js.map +1 -0
  624. package/build/bosun-app/frontend/server/chunks/chunks/conversation-view-memory.js-DjOFeigb.js +20 -0
  625. package/build/bosun-app/frontend/server/chunks/chunks/conversation-view-memory.js-DjOFeigb.js.map +1 -0
  626. package/build/bosun-app/frontend/server/chunks/chunks/edit-workspace-context.js-DGPpbvI5.js +6 -0
  627. package/build/bosun-app/frontend/server/chunks/chunks/edit-workspace-context.js-DGPpbvI5.js.map +1 -0
  628. package/build/bosun-app/frontend/server/chunks/chunks/event.js-BfLhxAp5.js +19 -0
  629. package/build/bosun-app/frontend/server/chunks/chunks/event.js-BfLhxAp5.js.map +1 -0
  630. package/build/bosun-app/frontend/server/chunks/chunks/exports.js-8HOoaa4e.js +161 -0
  631. package/build/bosun-app/frontend/server/chunks/chunks/exports.js-8HOoaa4e.js.map +1 -0
  632. package/build/bosun-app/frontend/server/chunks/chunks/index-server.js-CALBgpac.js +17 -0
  633. package/build/bosun-app/frontend/server/chunks/chunks/index-server.js-CALBgpac.js.map +1 -0
  634. package/build/bosun-app/frontend/server/chunks/chunks/index.js-DczFGj-7.js +3383 -0
  635. package/build/bosun-app/frontend/server/chunks/chunks/index.js-DczFGj-7.js.map +1 -0
  636. package/build/bosun-app/frontend/server/chunks/chunks/index2.js-DYVLcO2-.js +28 -0
  637. package/build/bosun-app/frontend/server/chunks/chunks/index2.js-DYVLcO2-.js.map +1 -0
  638. package/build/bosun-app/frontend/server/chunks/chunks/index3.js-WpnIn8V1.js +111 -0
  639. package/build/bosun-app/frontend/server/chunks/chunks/index3.js-WpnIn8V1.js.map +1 -0
  640. package/build/bosun-app/frontend/server/chunks/chunks/index4.js-C9gg2iSH.js +63 -0
  641. package/build/bosun-app/frontend/server/chunks/chunks/index4.js-C9gg2iSH.js.map +1 -0
  642. package/build/bosun-app/frontend/server/chunks/chunks/internal.js-V8Wfo1-F.js +121 -0
  643. package/build/bosun-app/frontend/server/chunks/chunks/internal.js-V8Wfo1-F.js.map +1 -0
  644. package/build/bosun-app/frontend/server/chunks/chunks/js-yaml.js-Dx-xfeGn.js +733 -0
  645. package/build/bosun-app/frontend/server/chunks/chunks/js-yaml.js-Dx-xfeGn.js.map +1 -0
  646. package/build/bosun-app/frontend/server/chunks/chunks/latency-recordings.js-CqioXMQl.js +117 -0
  647. package/build/bosun-app/frontend/server/chunks/chunks/latency-recordings.js-CqioXMQl.js.map +1 -0
  648. package/build/bosun-app/frontend/server/chunks/chunks/latency.js--f3JYIRg.js +157 -0
  649. package/build/bosun-app/frontend/server/chunks/chunks/latency.js--f3JYIRg.js.map +1 -0
  650. package/build/bosun-app/frontend/server/chunks/chunks/log-content.svelte.js-C6EzbHLC.js +20 -0
  651. package/build/bosun-app/frontend/server/chunks/chunks/log-content.svelte.js-C6EzbHLC.js.map +1 -0
  652. package/build/bosun-app/frontend/server/chunks/chunks/root.js-CJvqqGUj.js +1052 -0
  653. package/build/bosun-app/frontend/server/chunks/chunks/root.js-CJvqqGUj.js.map +1 -0
  654. package/build/bosun-app/frontend/server/chunks/chunks/schemas.js-W-DP3mDr.js +4506 -0
  655. package/build/bosun-app/frontend/server/chunks/chunks/schemas.js-W-DP3mDr.js.map +1 -0
  656. package/build/bosun-app/frontend/server/chunks/chunks/server.js-Bf8x1V_n.js +16 -0
  657. package/build/bosun-app/frontend/server/chunks/chunks/server.js-Bf8x1V_n.js.map +1 -0
  658. package/build/bosun-app/frontend/server/chunks/chunks/shared-server.js-DaWdgxVh.js +11 -0
  659. package/build/bosun-app/frontend/server/chunks/chunks/shared-server.js-DaWdgxVh.js.map +1 -0
  660. package/build/bosun-app/frontend/server/chunks/chunks/source-selection.js-Cc6RX6-m.js +243 -0
  661. package/build/bosun-app/frontend/server/chunks/chunks/source-selection.js-Cc6RX6-m.js.map +1 -0
  662. package/build/bosun-app/frontend/server/chunks/chunks/sources.server.js-B6fpC51P.js +74 -0
  663. package/build/bosun-app/frontend/server/chunks/chunks/sources.server.js-B6fpC51P.js.map +1 -0
  664. package/build/bosun-app/frontend/server/chunks/chunks/state.svelte.js-DDOPLPl-.js +13 -0
  665. package/build/bosun-app/frontend/server/chunks/chunks/state.svelte.js-DDOPLPl-.js.map +1 -0
  666. package/build/bosun-app/frontend/server/chunks/chunks/steps.js-DzZCg39h.js +8 -0
  667. package/build/bosun-app/frontend/server/chunks/chunks/steps.js-DzZCg39h.js.map +1 -0
  668. package/build/bosun-app/frontend/server/chunks/chunks/trpc-client.js-zIPF9ytu.js +1154 -0
  669. package/build/bosun-app/frontend/server/chunks/chunks/trpc-client.js-zIPF9ytu.js.map +1 -0
  670. package/build/bosun-app/frontend/server/chunks/chunks/uneval.js-5Y6J9rDU.js +530 -0
  671. package/build/bosun-app/frontend/server/chunks/chunks/uneval.js-5Y6J9rDU.js.map +1 -0
  672. package/build/bosun-app/frontend/server/chunks/chunks/utils.js-BQzn9ikS.js +38 -0
  673. package/build/bosun-app/frontend/server/chunks/chunks/utils.js-BQzn9ikS.js.map +1 -0
  674. package/build/bosun-app/frontend/server/chunks/chunks/utils2.js-DyJSCbBx.js +1365 -0
  675. package/build/bosun-app/frontend/server/chunks/chunks/utils2.js-DyJSCbBx.js.map +1 -0
  676. package/build/bosun-app/frontend/server/chunks/entries/endpoints/traces/api/latency/_conversationId_/_server.ts.js-hHR2eFvt.js +140 -0
  677. package/build/bosun-app/frontend/server/chunks/entries/endpoints/traces/api/latency/_conversationId_/_server.ts.js-hHR2eFvt.js.map +1 -0
  678. package/build/bosun-app/frontend/server/chunks/entries/endpoints/traces/api/latency/_conversationId_/audio/_server.ts.js-BluTfSQd.js +38 -0
  679. package/build/bosun-app/frontend/server/chunks/entries/endpoints/traces/api/latency/_conversationId_/audio/_server.ts.js-BluTfSQd.js.map +1 -0
  680. package/build/bosun-app/frontend/server/chunks/entries/endpoints/traces/api/proxy/_...path_/_server.ts.js-CHrOiduq.js +51 -0
  681. package/build/bosun-app/frontend/server/chunks/entries/endpoints/traces/api/proxy/_...path_/_server.ts.js-CHrOiduq.js.map +1 -0
  682. package/build/bosun-app/frontend/server/chunks/entries/endpoints/traces/api/sources/_server.ts.js-C2FIU8Kr.js +24 -0
  683. package/build/bosun-app/frontend/server/chunks/entries/endpoints/traces/api/sources/_server.ts.js-C2FIU8Kr.js.map +1 -0
  684. package/build/bosun-app/frontend/server/chunks/entries/fallbacks/error.svelte.js-CUaQ38ir.js +17 -0
  685. package/build/bosun-app/frontend/server/chunks/entries/fallbacks/error.svelte.js-CUaQ38ir.js.map +1 -0
  686. package/build/bosun-app/frontend/server/chunks/entries/hooks.universal.js-BJphIAi-.js +8 -0
  687. package/build/bosun-app/frontend/server/chunks/entries/hooks.universal.js-BJphIAi-.js.map +1 -0
  688. package/build/bosun-app/frontend/server/chunks/entries/pages/_layout.svelte.js-BzoISDtG.js +48 -0
  689. package/build/bosun-app/frontend/server/chunks/entries/pages/_layout.svelte.js-BzoISDtG.js.map +1 -0
  690. package/build/bosun-app/frontend/server/chunks/entries/pages/_page.svelte.js-Dx0vF3Lq.js +47 -0
  691. package/build/bosun-app/frontend/server/chunks/entries/pages/_page.svelte.js-Dx0vF3Lq.js.map +1 -0
  692. package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_agent_/_layout.svelte.js-B2wHKJV7.js +9089 -0
  693. package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_agent_/_layout.svelte.js-B2wHKJV7.js.map +1 -0
  694. package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_agent_/_page.ts.js-CFNiL-gK.js +19 -0
  695. package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_agent_/_page.ts.js-CFNiL-gK.js.map +1 -0
  696. package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_agent_/configure/_page.svelte.js-CEL_4VPG.js +61 -0
  697. package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_agent_/configure/_page.svelte.js-CEL_4VPG.js.map +1 -0
  698. package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_agent_/roleplay/_page.svelte.js-DDcIjgZD.js +1435 -0
  699. package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_agent_/roleplay/_page.svelte.js-DDcIjgZD.js.map +1 -0
  700. package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_agent_/tests/_page.svelte.js-UVUg89-t.js +2169 -0
  701. package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_agent_/tests/_page.svelte.js-UVUg89-t.js.map +1 -0
  702. package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_page.svelte.js-kE5Ar91A.js +73 -0
  703. package/build/bosun-app/frontend/server/chunks/entries/pages/edit/_page.svelte.js-kE5Ar91A.js.map +1 -0
  704. package/build/bosun-app/frontend/server/chunks/entries/pages/roleplay/_page.ts.js-7xRh8oLz.js +19 -0
  705. package/build/bosun-app/frontend/server/chunks/entries/pages/roleplay/_page.ts.js-7xRh8oLz.js.map +1 -0
  706. package/build/bosun-app/frontend/server/chunks/entries/pages/tests/_agent_/_page.ts.js-CoMBAK66.js +15 -0
  707. package/build/bosun-app/frontend/server/chunks/entries/pages/tests/_agent_/_page.ts.js-CoMBAK66.js.map +1 -0
  708. package/build/bosun-app/frontend/server/chunks/entries/pages/tests/_page.ts.js-BeaHASlP.js +13 -0
  709. package/build/bosun-app/frontend/server/chunks/entries/pages/tests/_page.ts.js-BeaHASlP.js.map +1 -0
  710. package/build/bosun-app/frontend/server/chunks/entries/pages/traces/_page.ts.js-BDwYwqJJ.js +14 -0
  711. package/build/bosun-app/frontend/server/chunks/entries/pages/traces/_page.ts.js-BDwYwqJJ.js.map +1 -0
  712. package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_conversationId_/_layout.svelte.js-BunyOuzX.js +64 -0
  713. package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_conversationId_/_layout.svelte.js-BunyOuzX.js.map +1 -0
  714. package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_conversationId_/_page.ts.js-DCdyFx8I.js +14 -0
  715. package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_conversationId_/_page.ts.js-DCdyFx8I.js.map +1 -0
  716. package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_conversationId_/latency/_page.svelte.js-tdUdTo4m.js +1821 -0
  717. package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_conversationId_/latency/_page.svelte.js-tdUdTo4m.js.map +1 -0
  718. package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_conversationId_/traces/_page.svelte.js-Ca79DBzJ.js +947 -0
  719. package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_conversationId_/traces/_page.svelte.js-Ca79DBzJ.js.map +1 -0
  720. package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_layout.svelte.js-Dvn3tfM7.js +478 -0
  721. package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_layout.svelte.js-Dvn3tfM7.js.map +1 -0
  722. package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_page.svelte.js-DvRZkYfo.js +14 -0
  723. package/build/bosun-app/frontend/server/chunks/entries/pages/traces/conversations/_page.svelte.js-DvRZkYfo.js.map +1 -0
  724. package/build/bosun-app/frontend/server/chunks/handler-I7zF-fv9.js +1756 -0
  725. package/build/bosun-app/frontend/server/chunks/handler-I7zF-fv9.js.map +1 -0
  726. package/build/bosun-app/frontend/server/chunks/index.js-Ca0Ef2Tt.js +4120 -0
  727. package/build/bosun-app/frontend/server/chunks/index.js-Ca0Ef2Tt.js.map +1 -0
  728. package/build/bosun-app/frontend/server/chunks/manifest.js-D22OChaf.js +177 -0
  729. package/build/bosun-app/frontend/server/chunks/manifest.js-D22OChaf.js.map +1 -0
  730. package/build/bosun-app/frontend/server/chunks/nodes/0.js-CoDyOiLt.js +9 -0
  731. package/build/bosun-app/frontend/server/chunks/nodes/0.js-CoDyOiLt.js.map +1 -0
  732. package/build/bosun-app/frontend/server/chunks/nodes/1.js-BesNpd2w.js +9 -0
  733. package/build/bosun-app/frontend/server/chunks/nodes/1.js-BesNpd2w.js.map +1 -0
  734. package/build/bosun-app/frontend/server/chunks/nodes/10.js-DN5elTKV.js +9 -0
  735. package/build/bosun-app/frontend/server/chunks/nodes/10.js-DN5elTKV.js.map +1 -0
  736. package/build/bosun-app/frontend/server/chunks/nodes/11.js-DY_yGGfd.js +12 -0
  737. package/build/bosun-app/frontend/server/chunks/nodes/11.js-DY_yGGfd.js.map +1 -0
  738. package/build/bosun-app/frontend/server/chunks/nodes/12.js-Y03iWeel.js +12 -0
  739. package/build/bosun-app/frontend/server/chunks/nodes/12.js-Y03iWeel.js.map +1 -0
  740. package/build/bosun-app/frontend/server/chunks/nodes/13.js-1lz41CRL.js +12 -0
  741. package/build/bosun-app/frontend/server/chunks/nodes/13.js-1lz41CRL.js.map +1 -0
  742. package/build/bosun-app/frontend/server/chunks/nodes/14.js-DkuFA-fc.js +12 -0
  743. package/build/bosun-app/frontend/server/chunks/nodes/14.js-DkuFA-fc.js.map +1 -0
  744. package/build/bosun-app/frontend/server/chunks/nodes/15.js-cNd06B9T.js +9 -0
  745. package/build/bosun-app/frontend/server/chunks/nodes/15.js-cNd06B9T.js.map +1 -0
  746. package/build/bosun-app/frontend/server/chunks/nodes/16.js-BnrzEE51.js +12 -0
  747. package/build/bosun-app/frontend/server/chunks/nodes/16.js-BnrzEE51.js.map +1 -0
  748. package/build/bosun-app/frontend/server/chunks/nodes/17.js-DExEAB_e.js +9 -0
  749. package/build/bosun-app/frontend/server/chunks/nodes/17.js-DExEAB_e.js.map +1 -0
  750. package/build/bosun-app/frontend/server/chunks/nodes/18.js-OLWFvVu0.js +9 -0
  751. package/build/bosun-app/frontend/server/chunks/nodes/18.js-OLWFvVu0.js.map +1 -0
  752. package/build/bosun-app/frontend/server/chunks/nodes/2.js-DdMhYSQT.js +9 -0
  753. package/build/bosun-app/frontend/server/chunks/nodes/2.js-DdMhYSQT.js.map +1 -0
  754. package/build/bosun-app/frontend/server/chunks/nodes/3.js-DRo_79wF.js +9 -0
  755. package/build/bosun-app/frontend/server/chunks/nodes/3.js-DRo_79wF.js.map +1 -0
  756. package/build/bosun-app/frontend/server/chunks/nodes/4.js-Bb8ZnG8K.js +9 -0
  757. package/build/bosun-app/frontend/server/chunks/nodes/4.js-Bb8ZnG8K.js.map +1 -0
  758. package/build/bosun-app/frontend/server/chunks/nodes/5.js-DNbqpjRZ.js +9 -0
  759. package/build/bosun-app/frontend/server/chunks/nodes/5.js-DNbqpjRZ.js.map +1 -0
  760. package/build/bosun-app/frontend/server/chunks/nodes/6.js-MMZWg86o.js +9 -0
  761. package/build/bosun-app/frontend/server/chunks/nodes/6.js-MMZWg86o.js.map +1 -0
  762. package/build/bosun-app/frontend/server/chunks/nodes/7.js-CmnAMDtD.js +12 -0
  763. package/build/bosun-app/frontend/server/chunks/nodes/7.js-CmnAMDtD.js.map +1 -0
  764. package/build/bosun-app/frontend/server/chunks/nodes/8.js-Cs981zJ4.js +9 -0
  765. package/build/bosun-app/frontend/server/chunks/nodes/8.js-Cs981zJ4.js.map +1 -0
  766. package/build/bosun-app/frontend/server/chunks/nodes/9.js-h4jeZZT-.js +9 -0
  767. package/build/bosun-app/frontend/server/chunks/nodes/9.js-h4jeZZT-.js.map +1 -0
  768. package/build/bosun-app/frontend/shims.js +33 -0
  769. package/build/bosun-app/frontend/shims.js.map +1 -0
  770. package/build/build/agent-service.d.ts +8 -0
  771. package/build/build/agent-service.d.ts.map +1 -0
  772. package/build/build/agent-service.js +32 -0
  773. package/build/build/cli.d.ts +13 -0
  774. package/build/build/cli.d.ts.map +1 -0
  775. package/build/build/cli.js +103 -0
  776. package/build/build/common.d.ts +12 -0
  777. package/build/build/common.d.ts.map +1 -0
  778. package/build/build/common.js +75 -0
  779. package/build/build/index.d.ts +7 -0
  780. package/build/build/index.d.ts.map +1 -0
  781. package/build/build/index.js +3 -0
  782. package/build/build/text-function.d.ts +6 -0
  783. package/build/build/text-function.d.ts.map +1 -0
  784. package/build/build/text-function.js +55 -0
  785. package/build/call-control/call-control.d.ts +36 -0
  786. package/build/call-control/call-control.d.ts.map +1 -0
  787. package/build/call-control/call-control.js +207 -0
  788. package/build/call-control/call-details/index.d.ts +2 -0
  789. package/build/call-control/call-details/index.d.ts.map +1 -0
  790. package/build/call-control/call-details/index.js +1 -0
  791. package/build/call-control/call-details/noop-storage.d.ts +10 -0
  792. package/build/call-control/call-details/noop-storage.d.ts.map +1 -0
  793. package/build/call-control/call-details/noop-storage.js +11 -0
  794. package/build/call-control/index.d.ts +7 -0
  795. package/build/call-control/index.d.ts.map +1 -0
  796. package/build/call-control/index.js +4 -0
  797. package/build/call-control/port.d.ts +15 -0
  798. package/build/call-control/port.d.ts.map +1 -0
  799. package/build/call-control/port.js +1 -0
  800. package/build/call-control/schemas.generated.d.ts +156 -0
  801. package/build/call-control/schemas.generated.d.ts.map +1 -0
  802. package/build/call-control/schemas.generated.js +281 -0
  803. package/build/call-control/sip-setup-lock.d.ts +6 -0
  804. package/build/call-control/sip-setup-lock.d.ts.map +1 -0
  805. package/build/call-control/sip-setup-lock.js +60 -0
  806. package/build/call-control/sip.d.ts +41 -0
  807. package/build/call-control/sip.d.ts.map +1 -0
  808. package/build/call-control/sip.js +423 -0
  809. package/build/call-control/types.d.ts +352 -0
  810. package/build/call-control/types.d.ts.map +1 -0
  811. package/build/call-control/types.js +30 -0
  812. package/build/call-control/utils.d.ts +13 -0
  813. package/build/call-control/utils.d.ts.map +1 -0
  814. package/build/call-control/utils.js +43 -0
  815. package/build/{context-cache.d.ts → context-cache/index.d.ts} +4 -3
  816. package/build/context-cache/index.d.ts.map +1 -0
  817. package/build/{context-cache.js → context-cache/index.js} +20 -8
  818. package/build/core/index.d.ts +6 -0
  819. package/build/core/index.d.ts.map +1 -0
  820. package/build/core/index.js +2 -0
  821. package/build/core/make-text-platform.d.ts +15 -0
  822. package/build/core/make-text-platform.d.ts.map +1 -0
  823. package/build/core/make-text-platform.js +27 -0
  824. package/build/core/make-voice-platform.d.ts +16 -0
  825. package/build/core/make-voice-platform.d.ts.map +1 -0
  826. package/build/core/make-voice-platform.js +51 -0
  827. package/build/core/platform.d.ts +30 -0
  828. package/build/core/platform.d.ts.map +1 -0
  829. package/build/core/platform.js +1 -0
  830. package/build/dockyard/index.d.ts +4 -0
  831. package/build/dockyard/index.d.ts.map +1 -0
  832. package/build/dockyard/index.js +2 -0
  833. package/build/dockyard/logger/base.d.ts +20 -0
  834. package/build/dockyard/logger/base.d.ts.map +1 -0
  835. package/build/dockyard/logger/base.js +26 -0
  836. package/build/dockyard/logger/configuration.d.ts +13 -0
  837. package/build/dockyard/logger/configuration.d.ts.map +1 -0
  838. package/build/dockyard/logger/configuration.js +22 -0
  839. package/build/dockyard/logger/helpers.d.ts +6 -0
  840. package/build/dockyard/logger/helpers.d.ts.map +1 -0
  841. package/build/dockyard/logger/helpers.js +46 -0
  842. package/build/dockyard/logger/index.d.ts +12 -0
  843. package/build/dockyard/logger/index.d.ts.map +1 -0
  844. package/build/dockyard/logger/index.js +92 -0
  845. package/build/dockyard/logger/local-context.d.ts +11 -0
  846. package/build/dockyard/logger/local-context.d.ts.map +1 -0
  847. package/build/dockyard/logger/local-context.js +23 -0
  848. package/build/engine/bosun/action.d.ts +10 -0
  849. package/build/engine/bosun/action.d.ts.map +1 -0
  850. package/build/engine/bosun/action.js +32 -0
  851. package/build/engine/bosun/agent.d.ts +37 -0
  852. package/build/engine/bosun/agent.d.ts.map +1 -0
  853. package/build/engine/bosun/agent.js +3 -0
  854. package/build/engine/bosun/api-call-tracer.d.ts +8 -0
  855. package/build/engine/bosun/api-call-tracer.d.ts.map +1 -0
  856. package/build/engine/bosun/api-call-tracer.js +8 -0
  857. package/build/engine/bosun/context.d.ts +23 -0
  858. package/build/engine/bosun/context.d.ts.map +1 -0
  859. package/build/engine/bosun/context.js +41 -0
  860. package/build/engine/bosun/conversational-tracer.d.ts +8 -0
  861. package/build/engine/bosun/conversational-tracer.d.ts.map +1 -0
  862. package/build/engine/bosun/conversational-tracer.js +8 -0
  863. package/build/engine/bosun/index.d.ts +9 -0
  864. package/build/engine/bosun/index.d.ts.map +1 -0
  865. package/build/engine/bosun/index.js +7 -0
  866. package/build/engine/bosun/mock.d.ts +6 -0
  867. package/build/engine/bosun/mock.d.ts.map +1 -0
  868. package/build/engine/bosun/mock.js +28 -0
  869. package/build/engine/bosun/step-tracer.d.ts +8 -0
  870. package/build/engine/bosun/step-tracer.d.ts.map +1 -0
  871. package/build/engine/bosun/step-tracer.js +29 -0
  872. package/build/engine/default-logger.d.ts +3 -0
  873. package/build/engine/default-logger.d.ts.map +1 -0
  874. package/build/engine/default-logger.js +5 -0
  875. package/build/engine/engine.d.ts +6 -0
  876. package/build/engine/engine.d.ts.map +1 -0
  877. package/build/engine/engine.js +306 -0
  878. package/build/engine/index.d.ts +15 -0
  879. package/build/engine/index.d.ts.map +1 -0
  880. package/build/engine/index.js +7 -0
  881. package/build/engine/interfaces/adapter.d.ts +12 -0
  882. package/build/engine/interfaces/adapter.d.ts.map +1 -0
  883. package/build/engine/interfaces/adapter.js +1 -0
  884. package/build/engine/interfaces/conversation.d.ts +19 -0
  885. package/build/engine/interfaces/conversation.d.ts.map +1 -0
  886. package/build/engine/interfaces/conversation.js +1 -0
  887. package/build/engine/interfaces/engine.d.ts +21 -0
  888. package/build/engine/interfaces/engine.d.ts.map +1 -0
  889. package/build/engine/interfaces/engine.js +1 -0
  890. package/build/engine/interfaces/index.d.ts +8 -0
  891. package/build/engine/interfaces/index.d.ts.map +1 -0
  892. package/build/engine/interfaces/index.js +7 -0
  893. package/build/engine/interfaces/other.d.ts +7 -0
  894. package/build/engine/interfaces/other.d.ts.map +1 -0
  895. package/build/engine/interfaces/other.js +1 -0
  896. package/build/engine/interfaces/steps.d.ts +33 -0
  897. package/build/engine/interfaces/steps.d.ts.map +1 -0
  898. package/build/engine/interfaces/steps.js +1 -0
  899. package/build/engine/interfaces/stream.d.ts +43 -0
  900. package/build/engine/interfaces/stream.d.ts.map +1 -0
  901. package/build/engine/interfaces/stream.js +1 -0
  902. package/build/engine/interfaces/workflow.d.ts +18 -0
  903. package/build/engine/interfaces/workflow.d.ts.map +1 -0
  904. package/build/engine/interfaces/workflow.js +1 -0
  905. package/build/engine/llm-adapters/index.d.ts +5 -0
  906. package/build/engine/llm-adapters/index.d.ts.map +1 -0
  907. package/build/engine/llm-adapters/index.js +4 -0
  908. package/build/engine/llm-adapters/mock.d.ts +3 -0
  909. package/build/engine/llm-adapters/mock.d.ts.map +1 -0
  910. package/build/engine/llm-adapters/mock.js +11 -0
  911. package/build/engine/llm-adapters/openai-stream.d.ts +6 -0
  912. package/build/engine/llm-adapters/openai-stream.d.ts.map +1 -0
  913. package/build/engine/llm-adapters/openai-stream.js +29 -0
  914. package/build/engine/llm-adapters/openai.d.ts +8 -0
  915. package/build/engine/llm-adapters/openai.d.ts.map +1 -0
  916. package/build/engine/llm-adapters/openai.js +34 -0
  917. package/build/engine/llm-adapters/provider.d.ts +4 -0
  918. package/build/engine/llm-adapters/provider.d.ts.map +1 -0
  919. package/build/engine/llm-adapters/provider.js +10 -0
  920. package/build/engine/monitoring/index.d.ts +2 -0
  921. package/build/engine/monitoring/index.d.ts.map +1 -0
  922. package/build/engine/monitoring/index.js +1 -0
  923. package/build/engine/monitoring/provider-errors.d.ts +19 -0
  924. package/build/engine/monitoring/provider-errors.d.ts.map +1 -0
  925. package/build/engine/monitoring/provider-errors.js +133 -0
  926. package/build/engine/prompt-fs.d.ts +17 -0
  927. package/build/engine/prompt-fs.d.ts.map +1 -0
  928. package/build/engine/prompt-fs.js +18 -0
  929. package/build/engine/schedule.d.ts +30 -0
  930. package/build/engine/schedule.d.ts.map +1 -0
  931. package/build/engine/schedule.js +109 -0
  932. package/build/engine/step-registry.d.ts +19 -0
  933. package/build/engine/step-registry.d.ts.map +1 -0
  934. package/build/engine/step-registry.js +16 -0
  935. package/build/engine/stream/engine.d.ts +3 -0
  936. package/build/engine/stream/engine.d.ts.map +1 -0
  937. package/build/engine/stream/engine.js +167 -0
  938. package/build/engine/stream/get-client.d.ts +15 -0
  939. package/build/engine/stream/get-client.d.ts.map +1 -0
  940. package/build/engine/stream/get-client.js +118 -0
  941. package/build/engine/stream/index.d.ts +4 -0
  942. package/build/engine/stream/index.d.ts.map +1 -0
  943. package/build/engine/stream/index.js +2 -0
  944. package/build/engine/stream/token-transformers.d.ts +6 -0
  945. package/build/engine/stream/token-transformers.d.ts.map +1 -0
  946. package/build/engine/stream/token-transformers.js +50 -0
  947. package/build/index.d.ts +2 -7
  948. package/build/index.d.ts.map +1 -1
  949. package/build/index.js +2 -23
  950. package/build/notifications/index.d.ts +5 -0
  951. package/build/notifications/index.d.ts.map +1 -0
  952. package/build/notifications/index.js +4 -0
  953. package/build/notifications/logger.d.ts +2 -0
  954. package/build/notifications/logger.d.ts.map +1 -0
  955. package/build/notifications/logger.js +2 -0
  956. package/build/notifications/publisher.d.ts +10 -0
  957. package/build/notifications/publisher.d.ts.map +1 -0
  958. package/build/notifications/publisher.js +31 -0
  959. package/build/notifications/router.d.ts +18 -0
  960. package/build/notifications/router.d.ts.map +1 -0
  961. package/build/notifications/router.js +132 -0
  962. package/build/notifications/transport.d.ts +11 -0
  963. package/build/notifications/transport.d.ts.map +1 -0
  964. package/build/notifications/transport.js +31 -0
  965. package/build/notifications/types.d.ts +20 -0
  966. package/build/notifications/types.d.ts.map +1 -0
  967. package/build/notifications/types.js +1 -0
  968. package/build/steps/helpers.d.ts +11 -0
  969. package/build/steps/helpers.d.ts.map +1 -0
  970. package/build/steps/helpers.js +36 -0
  971. package/build/steps/index.d.ts +10 -0
  972. package/build/steps/index.d.ts.map +1 -0
  973. package/build/steps/index.js +5 -0
  974. package/build/steps/instructions-or-query.d.ts +9 -0
  975. package/build/steps/instructions-or-query.d.ts.map +1 -0
  976. package/build/steps/instructions-or-query.js +15 -0
  977. package/build/steps/make-all-required.d.ts +3 -0
  978. package/build/steps/make-all-required.d.ts.map +1 -0
  979. package/build/steps/make-all-required.js +41 -0
  980. package/build/steps/slot-booker/book-slot/prompt.d.ts +2 -0
  981. package/build/steps/slot-booker/book-slot/prompt.d.ts.map +1 -0
  982. package/build/steps/slot-booker/book-slot/prompt.js +24 -0
  983. package/build/steps/slot-booker/book-slot/step.d.ts +12 -0
  984. package/build/steps/slot-booker/book-slot/step.d.ts.map +1 -0
  985. package/build/steps/slot-booker/book-slot/step.js +51 -0
  986. package/build/steps/slot-booker/check-slots-for-match/prompt.d.ts +2 -0
  987. package/build/steps/slot-booker/check-slots-for-match/prompt.d.ts.map +1 -0
  988. package/build/steps/slot-booker/check-slots-for-match/prompt.js +30 -0
  989. package/build/steps/slot-booker/check-slots-for-match/step.d.ts +9 -0
  990. package/build/steps/slot-booker/check-slots-for-match/step.d.ts.map +1 -0
  991. package/build/steps/slot-booker/check-slots-for-match/step.js +23 -0
  992. package/build/steps/slot-booker/cleanup/step.d.ts +5 -0
  993. package/build/steps/slot-booker/cleanup/step.d.ts.map +1 -0
  994. package/build/steps/slot-booker/cleanup/step.js +22 -0
  995. package/build/steps/slot-booker/context.d.ts +14 -0
  996. package/build/steps/slot-booker/context.d.ts.map +1 -0
  997. package/build/steps/slot-booker/context.js +1 -0
  998. package/build/steps/slot-booker/find-slots/prompt.d.ts +2 -0
  999. package/build/steps/slot-booker/find-slots/prompt.d.ts.map +1 -0
  1000. package/build/steps/slot-booker/find-slots/prompt.js +27 -0
  1001. package/build/steps/slot-booker/find-slots/step.d.ts +12 -0
  1002. package/build/steps/slot-booker/find-slots/step.d.ts.map +1 -0
  1003. package/build/steps/slot-booker/find-slots/step.js +79 -0
  1004. package/build/steps/slot-booker/init/step.d.ts +5 -0
  1005. package/build/steps/slot-booker/init/step.d.ts.map +1 -0
  1006. package/build/steps/slot-booker/init/step.js +37 -0
  1007. package/build/steps/slot-booker/interfaces.d.ts +29 -0
  1008. package/build/steps/slot-booker/interfaces.d.ts.map +1 -0
  1009. package/build/steps/slot-booker/interfaces.js +1 -0
  1010. package/build/steps/slot-booker/slot-booker.d.ts +27 -0
  1011. package/build/steps/slot-booker/slot-booker.d.ts.map +1 -0
  1012. package/build/steps/slot-booker/slot-booker.js +28 -0
  1013. package/build/steps/slot-booker/util.d.ts +8 -0
  1014. package/build/steps/slot-booker/util.d.ts.map +1 -0
  1015. package/build/steps/slot-booker/util.js +26 -0
  1016. package/build/telescope/api.d.ts +13 -0
  1017. package/build/telescope/api.d.ts.map +1 -0
  1018. package/build/telescope/api.js +43 -0
  1019. package/build/telescope/create-telescope.d.ts +10 -0
  1020. package/build/telescope/create-telescope.d.ts.map +1 -0
  1021. package/build/telescope/create-telescope.js +7 -0
  1022. package/build/telescope/index.d.ts +22 -0
  1023. package/build/telescope/index.d.ts.map +1 -0
  1024. package/build/telescope/index.js +8 -0
  1025. package/build/telescope/interfaces/api-call-tracer.d.ts +21 -0
  1026. package/build/telescope/interfaces/api-call-tracer.d.ts.map +1 -0
  1027. package/build/telescope/interfaces/api-call-tracer.js +1 -0
  1028. package/build/telescope/interfaces/conversation.d.ts +22 -0
  1029. package/build/telescope/interfaces/conversation.d.ts.map +1 -0
  1030. package/build/telescope/interfaces/conversation.js +1 -0
  1031. package/build/telescope/interfaces/conversational-tracer.d.ts +16 -0
  1032. package/build/telescope/interfaces/conversational-tracer.d.ts.map +1 -0
  1033. package/build/telescope/interfaces/conversational-tracer.js +1 -0
  1034. package/build/telescope/interfaces/event-tracer.d.ts +125 -0
  1035. package/build/telescope/interfaces/event-tracer.d.ts.map +1 -0
  1036. package/build/telescope/interfaces/event-tracer.js +1 -0
  1037. package/build/telescope/interfaces/latency-tracer.d.ts +14 -0
  1038. package/build/telescope/interfaces/latency-tracer.d.ts.map +1 -0
  1039. package/build/telescope/interfaces/latency-tracer.js +1 -0
  1040. package/build/telescope/interfaces/step-tracer.d.ts +30 -0
  1041. package/build/telescope/interfaces/step-tracer.d.ts.map +1 -0
  1042. package/build/telescope/interfaces/step-tracer.js +1 -0
  1043. package/build/telescope/interfaces/storage.d.ts +17 -0
  1044. package/build/telescope/interfaces/storage.d.ts.map +1 -0
  1045. package/build/telescope/interfaces/storage.js +1 -0
  1046. package/build/telescope/interfaces/telescope.d.ts +22 -0
  1047. package/build/telescope/interfaces/telescope.d.ts.map +1 -0
  1048. package/build/telescope/interfaces/telescope.js +1 -0
  1049. package/build/telescope/interfaces/traces.d.ts +88 -0
  1050. package/build/telescope/interfaces/traces.d.ts.map +1 -0
  1051. package/build/telescope/interfaces/traces.js +1 -0
  1052. package/build/telescope/latency-events.d.ts +15 -0
  1053. package/build/telescope/latency-events.d.ts.map +1 -0
  1054. package/build/telescope/latency-events.js +41 -0
  1055. package/build/telescope/stub-storage.d.ts +21 -0
  1056. package/build/telescope/stub-storage.d.ts.map +1 -0
  1057. package/build/telescope/stub-storage.js +55 -0
  1058. package/build/telescope/stub-telescope.d.ts +5 -0
  1059. package/build/telescope/stub-telescope.d.ts.map +1 -0
  1060. package/build/telescope/stub-telescope.js +47 -0
  1061. package/build/telescope/stubs.d.ts +22 -0
  1062. package/build/telescope/stubs.d.ts.map +1 -0
  1063. package/build/telescope/stubs.js +51 -0
  1064. package/build/telescope/telescope.d.ts +21 -0
  1065. package/build/telescope/telescope.d.ts.map +1 -0
  1066. package/build/telescope/telescope.js +41 -0
  1067. package/build/telescope/trace-helpers.d.ts +12 -0
  1068. package/build/telescope/trace-helpers.d.ts.map +1 -0
  1069. package/build/telescope/trace-helpers.js +54 -0
  1070. package/build/telescope/tracers/api-call-tracer.d.ts +15 -0
  1071. package/build/telescope/tracers/api-call-tracer.d.ts.map +1 -0
  1072. package/build/telescope/tracers/api-call-tracer.js +53 -0
  1073. package/build/telescope/tracers/conversational-tracer.d.ts +15 -0
  1074. package/build/telescope/tracers/conversational-tracer.d.ts.map +1 -0
  1075. package/build/telescope/tracers/conversational-tracer.js +45 -0
  1076. package/build/telescope/tracers/event-tracer.d.ts +14 -0
  1077. package/build/telescope/tracers/event-tracer.d.ts.map +1 -0
  1078. package/build/telescope/tracers/event-tracer.js +72 -0
  1079. package/build/telescope/tracers/index.d.ts +7 -0
  1080. package/build/telescope/tracers/index.d.ts.map +1 -0
  1081. package/build/telescope/tracers/index.js +5 -0
  1082. package/build/telescope/tracers/latency-tracer.d.ts +15 -0
  1083. package/build/telescope/tracers/latency-tracer.d.ts.map +1 -0
  1084. package/build/telescope/tracers/latency-tracer.js +40 -0
  1085. package/build/telescope/tracers/step-tracer.d.ts +15 -0
  1086. package/build/telescope/tracers/step-tracer.d.ts.map +1 -0
  1087. package/build/telescope/tracers/step-tracer.js +50 -0
  1088. package/build/text-agent-handlers/event.d.ts +11 -0
  1089. package/build/text-agent-handlers/event.d.ts.map +1 -0
  1090. package/build/text-agent-handlers/event.js +1 -0
  1091. package/build/text-agent-handlers/incoming-message.d.ts +17 -0
  1092. package/build/text-agent-handlers/incoming-message.d.ts.map +1 -0
  1093. package/build/text-agent-handlers/incoming-message.js +131 -0
  1094. package/build/text-agent-handlers/index.d.ts +15 -0
  1095. package/build/text-agent-handlers/index.d.ts.map +1 -0
  1096. package/build/text-agent-handlers/index.js +6 -0
  1097. package/build/text-agent-handlers/instrument.d.ts +12 -0
  1098. package/build/text-agent-handlers/instrument.d.ts.map +1 -0
  1099. package/build/text-agent-handlers/instrument.js +27 -0
  1100. package/build/text-agent-handlers/jobs-handler.d.ts +10 -0
  1101. package/build/text-agent-handlers/jobs-handler.d.ts.map +1 -0
  1102. package/build/text-agent-handlers/jobs-handler.js +27 -0
  1103. package/build/text-agent-handlers/jobs.d.ts +19 -0
  1104. package/build/text-agent-handlers/jobs.d.ts.map +1 -0
  1105. package/build/text-agent-handlers/jobs.js +1 -0
  1106. package/build/text-agent-handlers/message-acceptor.d.ts +13 -0
  1107. package/build/text-agent-handlers/message-acceptor.d.ts.map +1 -0
  1108. package/build/text-agent-handlers/message-acceptor.js +32 -0
  1109. package/build/text-agent-handlers/notification-hook.d.ts +14 -0
  1110. package/build/text-agent-handlers/notification-hook.d.ts.map +1 -0
  1111. package/build/text-agent-handlers/notification-hook.js +51 -0
  1112. package/build/text-agent-handlers/ports.d.ts +36 -0
  1113. package/build/text-agent-handlers/ports.d.ts.map +1 -0
  1114. package/build/text-agent-handlers/ports.js +3 -0
  1115. package/build/{timeouts-manager.d.ts → timeout-manager/index.d.ts} +3 -3
  1116. package/build/timeout-manager/index.d.ts.map +1 -0
  1117. package/build/{timeouts-manager.js → timeout-manager/index.js} +1 -5
  1118. package/build/token-storage/index.d.ts +4 -0
  1119. package/build/token-storage/index.d.ts.map +1 -0
  1120. package/build/token-storage/index.js +1 -0
  1121. package/build/voice-agent-api/http-helpers.d.ts +13 -0
  1122. package/build/voice-agent-api/http-helpers.d.ts.map +1 -0
  1123. package/build/voice-agent-api/http-helpers.js +39 -0
  1124. package/build/voice-agent-api/index.d.ts +6 -0
  1125. package/build/voice-agent-api/index.d.ts.map +1 -0
  1126. package/build/voice-agent-api/index.js +3 -0
  1127. package/build/voice-agent-api/llm-completion-handler.d.ts +5 -0
  1128. package/build/voice-agent-api/llm-completion-handler.d.ts.map +1 -0
  1129. package/build/voice-agent-api/llm-completion-handler.js +75 -0
  1130. package/build/voice-agent-api/logger.d.ts +3 -0
  1131. package/build/voice-agent-api/logger.d.ts.map +1 -0
  1132. package/build/voice-agent-api/logger.js +3 -0
  1133. package/build/voice-agent-api/voice-http.d.ts +33 -0
  1134. package/build/voice-agent-api/voice-http.d.ts.map +1 -0
  1135. package/build/voice-agent-api/voice-http.js +370 -0
  1136. package/package.json +49 -11
  1137. package/build/analytics.d.ts +0 -42
  1138. package/build/analytics.d.ts.map +0 -1
  1139. package/build/analytics.js +0 -100
  1140. package/build/context-cache.d.ts.map +0 -1
  1141. package/build/interfaces/platform.d.ts +0 -41
  1142. package/build/interfaces/platform.d.ts.map +0 -1
  1143. package/build/interfaces/platform.js +0 -6
  1144. package/build/interfaces/rc-voice.d.ts +0 -53
  1145. package/build/interfaces/rc-voice.d.ts.map +0 -1
  1146. package/build/interfaces/rc-voice.js +0 -2
  1147. package/build/postgres-analytics-query.d.ts +0 -87
  1148. package/build/postgres-analytics-query.d.ts.map +0 -1
  1149. package/build/postgres-analytics-query.js +0 -384
  1150. package/build/postgres-analytics.d.ts +0 -46
  1151. package/build/postgres-analytics.d.ts.map +0 -1
  1152. package/build/postgres-analytics.js +0 -282
  1153. package/build/timeouts-manager.d.ts.map +0 -1
@@ -0,0 +1,2290 @@
1
+ import { ad as bind_props, ak as hasContext, a7 as getContext, y as setContext, R as derived, al as getAllContexts, am as spread_props, an as clsx$1, ab as attributes, a8 as escape_html } from './index.js-DczFGj-7.js';
2
+ import { m as mount, u as unmount, t as tick } from './index-server.js-CALBgpac.js';
3
+ import { o as on } from './root.js-CJvqqGUj.js';
4
+
5
+ function isFunction(value) {
6
+ return typeof value === "function";
7
+ }
8
+ function isObject(value) {
9
+ return value !== null && typeof value === "object";
10
+ }
11
+ const CLASS_VALUE_PRIMITIVE_TYPES = ["string", "number", "bigint", "boolean"];
12
+ function isClassValue(value) {
13
+ if (value === null || value === void 0)
14
+ return true;
15
+ if (CLASS_VALUE_PRIMITIVE_TYPES.includes(typeof value))
16
+ return true;
17
+ if (Array.isArray(value))
18
+ return value.every((item) => isClassValue(item));
19
+ if (typeof value === "object") {
20
+ if (Object.getPrototypeOf(value) !== Object.prototype)
21
+ return false;
22
+ return true;
23
+ }
24
+ return false;
25
+ }
26
+ const BoxSymbol = Symbol("box");
27
+ const isWritableSymbol = Symbol("is-writable");
28
+ function isBox(value) {
29
+ return isObject(value) && BoxSymbol in value;
30
+ }
31
+ function isWritableBox(value) {
32
+ return box.isBox(value) && isWritableSymbol in value;
33
+ }
34
+ function box(initialValue) {
35
+ let current = initialValue;
36
+ return {
37
+ [BoxSymbol]: true,
38
+ [isWritableSymbol]: true,
39
+ get current() {
40
+ return current;
41
+ },
42
+ set current(v) {
43
+ current = v;
44
+ }
45
+ };
46
+ }
47
+ function boxWith(getter, setter) {
48
+ const derived$1 = derived(getter);
49
+ if (setter) {
50
+ return {
51
+ [BoxSymbol]: true,
52
+ [isWritableSymbol]: true,
53
+ get current() {
54
+ return derived$1();
55
+ },
56
+ set current(v) {
57
+ setter(v);
58
+ }
59
+ };
60
+ }
61
+ return {
62
+ [BoxSymbol]: true,
63
+ get current() {
64
+ return getter();
65
+ }
66
+ };
67
+ }
68
+ function boxFrom(value) {
69
+ if (box.isBox(value)) return value;
70
+ if (isFunction(value)) return box.with(value);
71
+ return box(value);
72
+ }
73
+ function boxFlatten(boxes) {
74
+ return Object.entries(boxes).reduce(
75
+ (acc, [key, b]) => {
76
+ if (!box.isBox(b)) {
77
+ return Object.assign(acc, { [key]: b });
78
+ }
79
+ if (box.isWritableBox(b)) {
80
+ Object.defineProperty(acc, key, {
81
+ get() {
82
+ return b.current;
83
+ },
84
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
85
+ set(v) {
86
+ b.current = v;
87
+ }
88
+ });
89
+ } else {
90
+ Object.defineProperty(acc, key, {
91
+ get() {
92
+ return b.current;
93
+ }
94
+ });
95
+ }
96
+ return acc;
97
+ },
98
+ {}
99
+ );
100
+ }
101
+ function toReadonlyBox(b) {
102
+ if (!box.isWritableBox(b)) return b;
103
+ return {
104
+ [BoxSymbol]: true,
105
+ get current() {
106
+ return b.current;
107
+ }
108
+ };
109
+ }
110
+ box.from = boxFrom;
111
+ box.with = boxWith;
112
+ box.flatten = boxFlatten;
113
+ box.readonly = toReadonlyBox;
114
+ box.isBox = isBox;
115
+ box.isWritableBox = isWritableBox;
116
+ function composeHandlers(...handlers) {
117
+ return function(e) {
118
+ for (const handler of handlers) {
119
+ if (!handler)
120
+ continue;
121
+ if (e.defaultPrevented)
122
+ return;
123
+ if (typeof handler === "function") {
124
+ handler.call(this, e);
125
+ } else {
126
+ handler.current?.call(this, e);
127
+ }
128
+ }
129
+ };
130
+ }
131
+ var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
132
+ var NEWLINE_REGEX = /\n/g;
133
+ var WHITESPACE_REGEX = /^\s*/;
134
+ var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
135
+ var COLON_REGEX = /^:\s*/;
136
+ var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
137
+ var SEMICOLON_REGEX = /^[;\s]*/;
138
+ var TRIM_REGEX = /^\s+|\s+$/g;
139
+ var NEWLINE = "\n";
140
+ var FORWARD_SLASH = "/";
141
+ var ASTERISK = "*";
142
+ var EMPTY_STRING = "";
143
+ var TYPE_COMMENT = "comment";
144
+ var TYPE_DECLARATION = "declaration";
145
+ function index(style, options) {
146
+ if (typeof style !== "string") {
147
+ throw new TypeError("First argument must be a string");
148
+ }
149
+ if (!style) return [];
150
+ options = options || {};
151
+ var lineno = 1;
152
+ var column = 1;
153
+ function updatePosition(str) {
154
+ var lines = str.match(NEWLINE_REGEX);
155
+ if (lines) lineno += lines.length;
156
+ var i = str.lastIndexOf(NEWLINE);
157
+ column = ~i ? str.length - i : column + str.length;
158
+ }
159
+ function position() {
160
+ var start = { line: lineno, column };
161
+ return function(node) {
162
+ node.position = new Position(start);
163
+ whitespace();
164
+ return node;
165
+ };
166
+ }
167
+ function Position(start) {
168
+ this.start = start;
169
+ this.end = { line: lineno, column };
170
+ this.source = options.source;
171
+ }
172
+ Position.prototype.content = style;
173
+ function error(msg) {
174
+ var err = new Error(
175
+ options.source + ":" + lineno + ":" + column + ": " + msg
176
+ );
177
+ err.reason = msg;
178
+ err.filename = options.source;
179
+ err.line = lineno;
180
+ err.column = column;
181
+ err.source = style;
182
+ if (options.silent) ;
183
+ else {
184
+ throw err;
185
+ }
186
+ }
187
+ function match(re) {
188
+ var m = re.exec(style);
189
+ if (!m) return;
190
+ var str = m[0];
191
+ updatePosition(str);
192
+ style = style.slice(str.length);
193
+ return m;
194
+ }
195
+ function whitespace() {
196
+ match(WHITESPACE_REGEX);
197
+ }
198
+ function comments(rules) {
199
+ var c;
200
+ rules = rules || [];
201
+ while (c = comment()) {
202
+ if (c !== false) {
203
+ rules.push(c);
204
+ }
205
+ }
206
+ return rules;
207
+ }
208
+ function comment() {
209
+ var pos = position();
210
+ if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;
211
+ var i = 2;
212
+ while (EMPTY_STRING != style.charAt(i) && (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))) {
213
+ ++i;
214
+ }
215
+ i += 2;
216
+ if (EMPTY_STRING === style.charAt(i - 1)) {
217
+ return error("End of comment missing");
218
+ }
219
+ var str = style.slice(2, i - 2);
220
+ column += 2;
221
+ updatePosition(str);
222
+ style = style.slice(i);
223
+ column += 2;
224
+ return pos({
225
+ type: TYPE_COMMENT,
226
+ comment: str
227
+ });
228
+ }
229
+ function declaration() {
230
+ var pos = position();
231
+ var prop = match(PROPERTY_REGEX);
232
+ if (!prop) return;
233
+ comment();
234
+ if (!match(COLON_REGEX)) return error("property missing ':'");
235
+ var val = match(VALUE_REGEX);
236
+ var ret = pos({
237
+ type: TYPE_DECLARATION,
238
+ property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
239
+ value: val ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING)) : EMPTY_STRING
240
+ });
241
+ match(SEMICOLON_REGEX);
242
+ return ret;
243
+ }
244
+ function declarations() {
245
+ var decls = [];
246
+ comments(decls);
247
+ var decl;
248
+ while (decl = declaration()) {
249
+ if (decl !== false) {
250
+ decls.push(decl);
251
+ comments(decls);
252
+ }
253
+ }
254
+ return decls;
255
+ }
256
+ whitespace();
257
+ return declarations();
258
+ }
259
+ function trim(str) {
260
+ return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
261
+ }
262
+ function StyleToObject(style, iterator) {
263
+ let styleObject = null;
264
+ if (!style || typeof style !== "string") {
265
+ return styleObject;
266
+ }
267
+ const declarations = index(style);
268
+ const hasIterator = typeof iterator === "function";
269
+ declarations.forEach((declaration) => {
270
+ if (declaration.type !== "declaration") {
271
+ return;
272
+ }
273
+ const { property, value } = declaration;
274
+ if (hasIterator) {
275
+ iterator(property, value, declaration);
276
+ } else if (value) {
277
+ styleObject = styleObject || {};
278
+ styleObject[property] = value;
279
+ }
280
+ });
281
+ return styleObject;
282
+ }
283
+ const NUMBER_CHAR_RE = /\d/;
284
+ const STR_SPLITTERS = ["-", "_", "/", "."];
285
+ function isUppercase(char = "") {
286
+ if (NUMBER_CHAR_RE.test(char))
287
+ return void 0;
288
+ return char !== char.toLowerCase();
289
+ }
290
+ function splitByCase(str) {
291
+ const parts = [];
292
+ let buff = "";
293
+ let previousUpper;
294
+ let previousSplitter;
295
+ for (const char of str) {
296
+ const isSplitter = STR_SPLITTERS.includes(char);
297
+ if (isSplitter === true) {
298
+ parts.push(buff);
299
+ buff = "";
300
+ previousUpper = void 0;
301
+ continue;
302
+ }
303
+ const isUpper = isUppercase(char);
304
+ if (previousSplitter === false) {
305
+ if (previousUpper === false && isUpper === true) {
306
+ parts.push(buff);
307
+ buff = char;
308
+ previousUpper = isUpper;
309
+ continue;
310
+ }
311
+ if (previousUpper === true && isUpper === false && buff.length > 1) {
312
+ const lastChar = buff.at(-1);
313
+ parts.push(buff.slice(0, Math.max(0, buff.length - 1)));
314
+ buff = lastChar + char;
315
+ previousUpper = isUpper;
316
+ continue;
317
+ }
318
+ }
319
+ buff += char;
320
+ previousUpper = isUpper;
321
+ previousSplitter = isSplitter;
322
+ }
323
+ parts.push(buff);
324
+ return parts;
325
+ }
326
+ function pascalCase(str) {
327
+ if (!str)
328
+ return "";
329
+ return splitByCase(str).map((p) => upperFirst(p)).join("");
330
+ }
331
+ function camelCase(str) {
332
+ return lowerFirst(pascalCase(str || ""));
333
+ }
334
+ function upperFirst(str) {
335
+ return str ? str[0].toUpperCase() + str.slice(1) : "";
336
+ }
337
+ function lowerFirst(str) {
338
+ return str ? str[0].toLowerCase() + str.slice(1) : "";
339
+ }
340
+ function cssToStyleObj(css) {
341
+ if (!css)
342
+ return {};
343
+ const styleObj = {};
344
+ function iterator(name, value) {
345
+ if (name.startsWith("-moz-") || name.startsWith("-webkit-") || name.startsWith("-ms-") || name.startsWith("-o-")) {
346
+ styleObj[pascalCase(name)] = value;
347
+ return;
348
+ }
349
+ if (name.startsWith("--")) {
350
+ styleObj[name] = value;
351
+ return;
352
+ }
353
+ styleObj[camelCase(name)] = value;
354
+ }
355
+ StyleToObject(css, iterator);
356
+ return styleObj;
357
+ }
358
+ function executeCallbacks(...callbacks) {
359
+ return (...args) => {
360
+ for (const callback of callbacks) {
361
+ if (typeof callback === "function") {
362
+ callback(...args);
363
+ }
364
+ }
365
+ };
366
+ }
367
+ function createParser(matcher, replacer) {
368
+ const regex = RegExp(matcher, "g");
369
+ return (str) => {
370
+ if (typeof str !== "string") {
371
+ throw new TypeError(`expected an argument of type string, but got ${typeof str}`);
372
+ }
373
+ if (!str.match(regex))
374
+ return str;
375
+ return str.replace(regex, replacer);
376
+ };
377
+ }
378
+ const camelToKebab = createParser(/[A-Z]/, (match) => `-${match.toLowerCase()}`);
379
+ function styleToCSS(styleObj) {
380
+ if (!styleObj || typeof styleObj !== "object" || Array.isArray(styleObj)) {
381
+ throw new TypeError(`expected an argument of type object, but got ${typeof styleObj}`);
382
+ }
383
+ return Object.keys(styleObj).map((property) => `${camelToKebab(property)}: ${styleObj[property]};`).join("\n");
384
+ }
385
+ function styleToString(style = {}) {
386
+ return styleToCSS(style).replace("\n", " ");
387
+ }
388
+ const srOnlyStyles = {
389
+ position: "absolute",
390
+ width: "1px",
391
+ height: "1px",
392
+ padding: "0",
393
+ margin: "-1px",
394
+ overflow: "hidden",
395
+ clip: "rect(0, 0, 0, 0)",
396
+ whiteSpace: "nowrap",
397
+ borderWidth: "0",
398
+ transform: "translateX(-100%)"
399
+ };
400
+ styleToString(srOnlyStyles);
401
+ function isEventHandler(key) {
402
+ return key.length > 2 && key.startsWith("on") && key[2] === key[2]?.toLowerCase();
403
+ }
404
+ function mergeProps(...args) {
405
+ const result = { ...args[0] };
406
+ for (let i = 1; i < args.length; i++) {
407
+ const props = args[i];
408
+ for (const key in props) {
409
+ const a = result[key];
410
+ const b = props[key];
411
+ const aIsFunction = typeof a === "function";
412
+ const bIsFunction = typeof b === "function";
413
+ if (aIsFunction && typeof bIsFunction && isEventHandler(key)) {
414
+ const aHandler = a;
415
+ const bHandler = b;
416
+ result[key] = composeHandlers(aHandler, bHandler);
417
+ } else if (aIsFunction && bIsFunction) {
418
+ result[key] = executeCallbacks(a, b);
419
+ } else if (key === "class") {
420
+ const aIsClassValue = isClassValue(a);
421
+ const bIsClassValue = isClassValue(b);
422
+ if (aIsClassValue && bIsClassValue) {
423
+ result[key] = clsx$1(a, b);
424
+ } else if (aIsClassValue) {
425
+ result[key] = clsx$1(a);
426
+ } else if (bIsClassValue) {
427
+ result[key] = clsx$1(b);
428
+ }
429
+ } else if (key === "style") {
430
+ const aIsObject = typeof a === "object";
431
+ const bIsObject = typeof b === "object";
432
+ const aIsString = typeof a === "string";
433
+ const bIsString = typeof b === "string";
434
+ if (aIsObject && bIsObject) {
435
+ result[key] = { ...a, ...b };
436
+ } else if (aIsObject && bIsString) {
437
+ const parsedStyle = cssToStyleObj(b);
438
+ result[key] = { ...a, ...parsedStyle };
439
+ } else if (aIsString && bIsObject) {
440
+ const parsedStyle = cssToStyleObj(a);
441
+ result[key] = { ...parsedStyle, ...b };
442
+ } else if (aIsString && bIsString) {
443
+ const parsedStyleA = cssToStyleObj(a);
444
+ const parsedStyleB = cssToStyleObj(b);
445
+ result[key] = { ...parsedStyleA, ...parsedStyleB };
446
+ } else if (aIsObject) {
447
+ result[key] = a;
448
+ } else if (bIsObject) {
449
+ result[key] = b;
450
+ } else if (aIsString) {
451
+ result[key] = a;
452
+ } else if (bIsString) {
453
+ result[key] = b;
454
+ }
455
+ } else {
456
+ result[key] = b !== void 0 ? b : a;
457
+ }
458
+ }
459
+ }
460
+ if (typeof result.style === "object") {
461
+ result.style = styleToString(result.style).replaceAll("\n", " ");
462
+ }
463
+ if (result.hidden !== true) {
464
+ result.hidden = void 0;
465
+ delete result.hidden;
466
+ }
467
+ if (result.disabled !== true) {
468
+ result.disabled = void 0;
469
+ delete result.disabled;
470
+ }
471
+ return result;
472
+ }
473
+ const defaultWindow = void 0;
474
+ function getActiveElement(document2) {
475
+ let activeElement = document2.activeElement;
476
+ while (activeElement?.shadowRoot) {
477
+ const node = activeElement.shadowRoot.activeElement;
478
+ if (node === activeElement)
479
+ break;
480
+ else
481
+ activeElement = node;
482
+ }
483
+ return activeElement;
484
+ }
485
+ function createSubscriber(_) {
486
+ return () => {
487
+ };
488
+ }
489
+ class ActiveElement {
490
+ #document;
491
+ #subscribe;
492
+ constructor(options = {}) {
493
+ const { window: window2 = defaultWindow, document: document2 = window2?.document } = options;
494
+ if (window2 === void 0) return;
495
+ this.#document = document2;
496
+ this.#subscribe = createSubscriber();
497
+ }
498
+ get current() {
499
+ this.#subscribe?.();
500
+ if (!this.#document) return null;
501
+ return getActiveElement(this.#document);
502
+ }
503
+ }
504
+ new ActiveElement();
505
+ function runWatcher(sources, flush, effect, options = {}) {
506
+ const { lazy = false } = options;
507
+ }
508
+ function watch(sources, effect, options) {
509
+ runWatcher(sources, "post", effect, options);
510
+ }
511
+ function watchPre(sources, effect, options) {
512
+ runWatcher(sources, "pre", effect, options);
513
+ }
514
+ watch.pre = watchPre;
515
+ class Previous {
516
+ #previous = void 0;
517
+ #curr;
518
+ constructor(getter) {
519
+ }
520
+ get current() {
521
+ return this.#previous;
522
+ }
523
+ }
524
+ class Context {
525
+ #name;
526
+ #key;
527
+ /**
528
+ * @param name The name of the context.
529
+ * This is used for generating the context key and error messages.
530
+ */
531
+ constructor(name) {
532
+ this.#name = name;
533
+ this.#key = Symbol(name);
534
+ }
535
+ /**
536
+ * The key used to get and set the context.
537
+ *
538
+ * It is not recommended to use this value directly.
539
+ * Instead, use the methods provided by this class.
540
+ */
541
+ get key() {
542
+ return this.#key;
543
+ }
544
+ /**
545
+ * Checks whether this has been set in the context of a parent component.
546
+ *
547
+ * Must be called during component initialisation.
548
+ */
549
+ exists() {
550
+ return hasContext(this.#key);
551
+ }
552
+ /**
553
+ * Retrieves the context that belongs to the closest parent component.
554
+ *
555
+ * Must be called during component initialisation.
556
+ *
557
+ * @throws An error if the context does not exist.
558
+ */
559
+ get() {
560
+ const context = getContext(this.#key);
561
+ if (context === void 0) {
562
+ throw new Error(`Context "${this.#name}" not found`);
563
+ }
564
+ return context;
565
+ }
566
+ /**
567
+ * Retrieves the context that belongs to the closest parent component,
568
+ * or the given fallback value if the context does not exist.
569
+ *
570
+ * Must be called during component initialisation.
571
+ */
572
+ getOr(fallback) {
573
+ const context = getContext(this.#key);
574
+ if (context === void 0) {
575
+ return fallback;
576
+ }
577
+ return context;
578
+ }
579
+ /**
580
+ * Associates the given value with the current component and returns it.
581
+ *
582
+ * Must be called during component initialisation.
583
+ */
584
+ set(context) {
585
+ return setContext(this.#key, context);
586
+ }
587
+ }
588
+ function useRefById({ id, ref, deps = () => true, onRefChange, getRootNode: getRootNode2 }) {
589
+ watch([() => id.current, deps], ([_id]) => {
590
+ const rootNode = getRootNode2?.() ?? document;
591
+ const node = rootNode?.getElementById(_id);
592
+ if (node) ref.current = node;
593
+ else ref.current = null;
594
+ onRefChange?.(ref.current);
595
+ });
596
+ }
597
+ function afterSleep(ms, cb) {
598
+ return setTimeout(cb, ms);
599
+ }
600
+ function afterTick(fn) {
601
+ tick().then(fn);
602
+ }
603
+ function getDataOpenClosed(condition) {
604
+ return condition ? "open" : "closed";
605
+ }
606
+ const ENTER = "Enter";
607
+ const ESCAPE = "Escape";
608
+ const SPACE = " ";
609
+ const TAB = "Tab";
610
+ const isBrowser = typeof document !== "undefined";
611
+ function isHTMLElement(element) {
612
+ return element instanceof HTMLElement;
613
+ }
614
+ function isElement(element) {
615
+ return element instanceof Element;
616
+ }
617
+ function isSelectableInput(element) {
618
+ return element instanceof HTMLInputElement && "select" in element;
619
+ }
620
+ function isElementHidden(node, stopAt) {
621
+ if (getComputedStyle(node).visibility === "hidden")
622
+ return true;
623
+ while (node) {
624
+ if (stopAt !== void 0 && node === stopAt)
625
+ return false;
626
+ if (getComputedStyle(node).display === "none")
627
+ return true;
628
+ node = node.parentElement;
629
+ }
630
+ return false;
631
+ }
632
+ globalThis.bitsIdCounter ??= { current: 0 };
633
+ function useId(prefix = "bits") {
634
+ globalThis.bitsIdCounter.current++;
635
+ return `${prefix}-${globalThis.bitsIdCounter.current}`;
636
+ }
637
+ function noop() {
638
+ }
639
+ function useStateMachine(initialState, machine) {
640
+ const state = box(initialState);
641
+ function reducer(event) {
642
+ const nextState = machine[state.current][event];
643
+ return nextState ?? state.current;
644
+ }
645
+ const dispatch = (event) => {
646
+ state.current = reducer(event);
647
+ };
648
+ return { state, dispatch };
649
+ }
650
+ function usePresence(present, id) {
651
+ let styles = {};
652
+ let prevAnimationNameState = "none";
653
+ const initialState = present.current ? "mounted" : "unmounted";
654
+ let node = null;
655
+ const prevPresent = new Previous(() => present.current);
656
+ watch([() => id.current, () => present.current], ([id2, present2]) => {
657
+ if (!id2 || !present2) return;
658
+ afterTick(() => {
659
+ node = document.getElementById(id2);
660
+ });
661
+ });
662
+ const { state, dispatch } = useStateMachine(initialState, {
663
+ mounted: { UNMOUNT: "unmounted", ANIMATION_OUT: "unmountSuspended" },
664
+ unmountSuspended: { MOUNT: "mounted", ANIMATION_END: "unmounted" },
665
+ unmounted: { MOUNT: "mounted" }
666
+ });
667
+ watch(() => present.current, (currPresent) => {
668
+ if (!node) {
669
+ node = document.getElementById(id.current);
670
+ }
671
+ if (!node) return;
672
+ const hasPresentChanged = currPresent !== prevPresent.current;
673
+ if (!hasPresentChanged) return;
674
+ const prevAnimationName = prevAnimationNameState;
675
+ const currAnimationName = getAnimationName(node);
676
+ if (currPresent) {
677
+ dispatch("MOUNT");
678
+ } else if (currAnimationName === "none" || styles.display === "none") {
679
+ dispatch("UNMOUNT");
680
+ } else {
681
+ const isAnimating = prevAnimationName !== currAnimationName;
682
+ if (prevPresent && isAnimating) {
683
+ dispatch("ANIMATION_OUT");
684
+ } else {
685
+ dispatch("UNMOUNT");
686
+ }
687
+ }
688
+ });
689
+ function handleAnimationEnd(event) {
690
+ if (!node) node = document.getElementById(id.current);
691
+ if (!node) return;
692
+ const currAnimationName = getAnimationName(node);
693
+ const isCurrentAnimation = currAnimationName.includes(event.animationName) || currAnimationName === "none";
694
+ if (event.target === node && isCurrentAnimation) {
695
+ dispatch("ANIMATION_END");
696
+ }
697
+ }
698
+ function handleAnimationStart(event) {
699
+ if (!node) node = document.getElementById(id.current);
700
+ if (!node) return;
701
+ if (event.target === node) {
702
+ prevAnimationNameState = getAnimationName(node);
703
+ }
704
+ }
705
+ watch(() => state.current, () => {
706
+ if (!node) node = document.getElementById(id.current);
707
+ if (!node) return;
708
+ const currAnimationName = getAnimationName(node);
709
+ prevAnimationNameState = state.current === "mounted" ? currAnimationName : "none";
710
+ });
711
+ watch(() => node, (node2) => {
712
+ if (!node2) return;
713
+ styles = getComputedStyle(node2);
714
+ return executeCallbacks(on(node2, "animationstart", handleAnimationStart), on(node2, "animationcancel", handleAnimationEnd), on(node2, "animationend", handleAnimationEnd));
715
+ });
716
+ const isPresentDerived = derived(() => ["mounted", "unmountSuspended"].includes(state.current));
717
+ return {
718
+ get current() {
719
+ return isPresentDerived();
720
+ }
721
+ };
722
+ }
723
+ function getAnimationName(node) {
724
+ return node ? getComputedStyle(node).animationName || "none" : "none";
725
+ }
726
+ function Presence_layer($$renderer, $$props) {
727
+ $$renderer.component(($$renderer2) => {
728
+ let { present, forceMount, presence, id } = $$props;
729
+ const isPresent = usePresence(box.with(() => present), box.with(() => id));
730
+ if (forceMount || present || isPresent.current) {
731
+ $$renderer2.push("<!--[0-->");
732
+ presence?.($$renderer2, { present: isPresent });
733
+ $$renderer2.push(`<!---->`);
734
+ } else {
735
+ $$renderer2.push("<!--[-1-->");
736
+ }
737
+ $$renderer2.push(`<!--]-->`);
738
+ });
739
+ }
740
+ function createAttrs(variant) {
741
+ return {
742
+ content: `data-${variant}-content`,
743
+ trigger: `data-${variant}-trigger`,
744
+ overlay: `data-${variant}-overlay`,
745
+ title: `data-${variant}-title`,
746
+ description: `data-${variant}-description`,
747
+ close: `data-${variant}-close`,
748
+ cancel: `data-${variant}-cancel`,
749
+ action: `data-${variant}-action`
750
+ };
751
+ }
752
+ class DialogRootState {
753
+ opts;
754
+ triggerNode = null;
755
+ contentNode = null;
756
+ descriptionNode = null;
757
+ contentId = void 0;
758
+ titleId = void 0;
759
+ triggerId = void 0;
760
+ descriptionId = void 0;
761
+ cancelNode = null;
762
+ #attrs = derived(() => createAttrs(this.opts.variant.current));
763
+ get attrs() {
764
+ return this.#attrs();
765
+ }
766
+ set attrs($$value) {
767
+ return this.#attrs($$value);
768
+ }
769
+ constructor(opts) {
770
+ this.opts = opts;
771
+ this.handleOpen = this.handleOpen.bind(this);
772
+ this.handleClose = this.handleClose.bind(this);
773
+ }
774
+ handleOpen() {
775
+ if (this.opts.open.current) return;
776
+ this.opts.open.current = true;
777
+ }
778
+ handleClose() {
779
+ if (!this.opts.open.current) return;
780
+ this.opts.open.current = false;
781
+ }
782
+ #sharedProps = derived(() => ({ "data-state": getDataOpenClosed(this.opts.open.current) }));
783
+ get sharedProps() {
784
+ return this.#sharedProps();
785
+ }
786
+ set sharedProps($$value) {
787
+ return this.#sharedProps($$value);
788
+ }
789
+ }
790
+ class DialogCloseState {
791
+ opts;
792
+ root;
793
+ #attr = derived(() => this.root.attrs[this.opts.variant.current]);
794
+ constructor(opts, root) {
795
+ this.opts = opts;
796
+ this.root = root;
797
+ this.onclick = this.onclick.bind(this);
798
+ this.onkeydown = this.onkeydown.bind(this);
799
+ useRefById({ ...opts, deps: () => this.root.opts.open.current });
800
+ }
801
+ onclick(e) {
802
+ if (this.opts.disabled.current) return;
803
+ if (e.button > 0) return;
804
+ this.root.handleClose();
805
+ }
806
+ onkeydown(e) {
807
+ if (this.opts.disabled.current) return;
808
+ if (e.key === SPACE || e.key === ENTER) {
809
+ e.preventDefault();
810
+ this.root.handleClose();
811
+ }
812
+ }
813
+ #props = derived(() => ({
814
+ id: this.opts.id.current,
815
+ [this.#attr()]: "",
816
+ onclick: this.onclick,
817
+ onkeydown: this.onkeydown,
818
+ disabled: this.opts.disabled.current ? true : void 0,
819
+ tabindex: 0,
820
+ ...this.root.sharedProps
821
+ }));
822
+ get props() {
823
+ return this.#props();
824
+ }
825
+ set props($$value) {
826
+ return this.#props($$value);
827
+ }
828
+ }
829
+ class DialogTitleState {
830
+ opts;
831
+ root;
832
+ constructor(opts, root) {
833
+ this.opts = opts;
834
+ this.root = root;
835
+ useRefById({
836
+ ...opts,
837
+ onRefChange: (node) => {
838
+ this.root.titleId = node?.id;
839
+ },
840
+ deps: () => this.root.opts.open.current
841
+ });
842
+ }
843
+ #props = derived(() => ({
844
+ id: this.opts.id.current,
845
+ role: "heading",
846
+ "aria-level": this.opts.level.current,
847
+ [this.root.attrs.title]: "",
848
+ ...this.root.sharedProps
849
+ }));
850
+ get props() {
851
+ return this.#props();
852
+ }
853
+ set props($$value) {
854
+ return this.#props($$value);
855
+ }
856
+ }
857
+ class DialogContentState {
858
+ opts;
859
+ root;
860
+ constructor(opts, root) {
861
+ this.opts = opts;
862
+ this.root = root;
863
+ useRefById({
864
+ ...opts,
865
+ deps: () => this.root.opts.open.current,
866
+ onRefChange: (node) => {
867
+ this.root.contentNode = node;
868
+ this.root.contentId = node?.id;
869
+ }
870
+ });
871
+ }
872
+ #snippetProps = derived(() => ({ open: this.root.opts.open.current }));
873
+ get snippetProps() {
874
+ return this.#snippetProps();
875
+ }
876
+ set snippetProps($$value) {
877
+ return this.#snippetProps($$value);
878
+ }
879
+ #props = derived(() => ({
880
+ id: this.opts.id.current,
881
+ role: this.root.opts.variant.current === "alert-dialog" ? "alertdialog" : "dialog",
882
+ "aria-modal": "true",
883
+ "aria-describedby": this.root.descriptionId,
884
+ "aria-labelledby": this.root.titleId,
885
+ [this.root.attrs.content]: "",
886
+ style: {
887
+ pointerEvents: "auto",
888
+ outline: this.root.opts.variant.current === "alert-dialog" ? "none" : void 0
889
+ },
890
+ tabindex: this.root.opts.variant.current === "alert-dialog" ? -1 : void 0,
891
+ ...this.root.sharedProps
892
+ }));
893
+ get props() {
894
+ return this.#props();
895
+ }
896
+ set props($$value) {
897
+ return this.#props($$value);
898
+ }
899
+ }
900
+ class DialogOverlayState {
901
+ opts;
902
+ root;
903
+ constructor(opts, root) {
904
+ this.opts = opts;
905
+ this.root = root;
906
+ useRefById({ ...opts, deps: () => this.root.opts.open.current });
907
+ }
908
+ #snippetProps = derived(() => ({ open: this.root.opts.open.current }));
909
+ get snippetProps() {
910
+ return this.#snippetProps();
911
+ }
912
+ set snippetProps($$value) {
913
+ return this.#snippetProps($$value);
914
+ }
915
+ #props = derived(() => ({
916
+ id: this.opts.id.current,
917
+ [this.root.attrs.overlay]: "",
918
+ style: { pointerEvents: "auto" },
919
+ ...this.root.sharedProps
920
+ }));
921
+ get props() {
922
+ return this.#props();
923
+ }
924
+ set props($$value) {
925
+ return this.#props($$value);
926
+ }
927
+ }
928
+ const DialogRootContext = new Context("Dialog.Root");
929
+ function useDialogRoot(props) {
930
+ return DialogRootContext.set(new DialogRootState(props));
931
+ }
932
+ function useDialogTitle(props) {
933
+ return new DialogTitleState(props, DialogRootContext.get());
934
+ }
935
+ function useDialogContent(props) {
936
+ return new DialogContentState(props, DialogRootContext.get());
937
+ }
938
+ function useDialogOverlay(props) {
939
+ return new DialogOverlayState(props, DialogRootContext.get());
940
+ }
941
+ function useDialogClose(props) {
942
+ return new DialogCloseState(props, DialogRootContext.get());
943
+ }
944
+ function Dialog_title($$renderer, $$props) {
945
+ $$renderer.component(($$renderer2) => {
946
+ let {
947
+ id = useId(),
948
+ ref = null,
949
+ child,
950
+ children,
951
+ level = 2,
952
+ $$slots,
953
+ $$events,
954
+ ...restProps
955
+ } = $$props;
956
+ const titleState = useDialogTitle({
957
+ id: box.with(() => id),
958
+ level: box.with(() => level),
959
+ ref: box.with(() => ref, (v) => ref = v)
960
+ });
961
+ const mergedProps = derived(() => mergeProps(restProps, titleState.props));
962
+ if (child) {
963
+ $$renderer2.push("<!--[0-->");
964
+ child($$renderer2, { props: mergedProps() });
965
+ $$renderer2.push(`<!---->`);
966
+ } else {
967
+ $$renderer2.push("<!--[-1-->");
968
+ $$renderer2.push(`<div${attributes({ ...mergedProps() })}>`);
969
+ children?.($$renderer2);
970
+ $$renderer2.push(`<!----></div>`);
971
+ }
972
+ $$renderer2.push(`<!--]-->`);
973
+ bind_props($$props, { ref });
974
+ });
975
+ }
976
+ function Portal($$renderer, $$props) {
977
+ $$renderer.component(($$renderer2) => {
978
+ let { to = "body", children, disabled } = $$props;
979
+ getAllContexts();
980
+ let target = derived(getTarget);
981
+ function getTarget() {
982
+ if (!isBrowser || disabled) return null;
983
+ let localTarget = null;
984
+ if (typeof to === "string") {
985
+ localTarget = document.querySelector(to);
986
+ } else if (to instanceof HTMLElement || to instanceof DocumentFragment) {
987
+ localTarget = to;
988
+ } else ;
989
+ return localTarget;
990
+ }
991
+ let instance;
992
+ function unmountInstance() {
993
+ if (instance) {
994
+ unmount();
995
+ instance = null;
996
+ }
997
+ }
998
+ watch([() => target(), () => disabled], ([target2, disabled2]) => {
999
+ if (!target2 || disabled2) {
1000
+ unmountInstance();
1001
+ return;
1002
+ }
1003
+ instance = mount();
1004
+ return () => {
1005
+ unmountInstance();
1006
+ };
1007
+ });
1008
+ if (disabled) {
1009
+ $$renderer2.push("<!--[0-->");
1010
+ children?.($$renderer2);
1011
+ $$renderer2.push(`<!---->`);
1012
+ } else {
1013
+ $$renderer2.push("<!--[-1-->");
1014
+ }
1015
+ $$renderer2.push(`<!--]-->`);
1016
+ });
1017
+ }
1018
+ function addEventListener(target, event, handler, options) {
1019
+ const events = Array.isArray(event) ? event : [event];
1020
+ events.forEach((_event) => target.addEventListener(_event, handler, options));
1021
+ return () => {
1022
+ events.forEach((_event) => target.removeEventListener(_event, handler, options));
1023
+ };
1024
+ }
1025
+ class CustomEventDispatcher {
1026
+ eventName;
1027
+ options;
1028
+ constructor(eventName, options = { bubbles: true, cancelable: true }) {
1029
+ this.eventName = eventName;
1030
+ this.options = options;
1031
+ }
1032
+ createEvent(detail) {
1033
+ return new CustomEvent(this.eventName, {
1034
+ ...this.options,
1035
+ detail
1036
+ });
1037
+ }
1038
+ dispatch(element, detail) {
1039
+ const event = this.createEvent(detail);
1040
+ element.dispatchEvent(event);
1041
+ return event;
1042
+ }
1043
+ listen(element, callback, options) {
1044
+ const handler = (event) => {
1045
+ callback(event);
1046
+ };
1047
+ return on(element, this.eventName, handler, options);
1048
+ }
1049
+ }
1050
+ function debounce(fn, wait = 500) {
1051
+ let timeout = null;
1052
+ const debounced = (...args) => {
1053
+ if (timeout !== null) {
1054
+ clearTimeout(timeout);
1055
+ }
1056
+ timeout = setTimeout(() => {
1057
+ fn(...args);
1058
+ }, wait);
1059
+ };
1060
+ debounced.destroy = () => {
1061
+ if (timeout !== null) {
1062
+ clearTimeout(timeout);
1063
+ timeout = null;
1064
+ }
1065
+ };
1066
+ return debounced;
1067
+ }
1068
+ function isOrContainsTarget(node, target) {
1069
+ return node === target || node.contains(target);
1070
+ }
1071
+ function getOwnerDocument(el) {
1072
+ return el?.ownerDocument ?? document;
1073
+ }
1074
+ function isClickTrulyOutside(event, contentNode) {
1075
+ const { clientX, clientY } = event;
1076
+ const rect = contentNode.getBoundingClientRect();
1077
+ return clientX < rect.left || clientX > rect.right || clientY < rect.top || clientY > rect.bottom;
1078
+ }
1079
+ globalThis.bitsDismissableLayers ??= /* @__PURE__ */ new Map();
1080
+ class DismissibleLayerState {
1081
+ opts;
1082
+ #interactOutsideProp;
1083
+ #behaviorType;
1084
+ #interceptedEvents = { pointerdown: false };
1085
+ #isResponsibleLayer = false;
1086
+ #isFocusInsideDOMTree = false;
1087
+ node = box(null);
1088
+ #documentObj = void 0;
1089
+ #onFocusOutside;
1090
+ currNode = null;
1091
+ #unsubClickListener = noop;
1092
+ constructor(opts) {
1093
+ this.opts = opts;
1094
+ useRefById({
1095
+ id: opts.id,
1096
+ ref: this.node,
1097
+ deps: () => opts.enabled.current,
1098
+ onRefChange: (node) => {
1099
+ this.currNode = node;
1100
+ }
1101
+ });
1102
+ this.#behaviorType = opts.interactOutsideBehavior;
1103
+ this.#interactOutsideProp = opts.onInteractOutside;
1104
+ this.#onFocusOutside = opts.onFocusOutside;
1105
+ let unsubEvents = noop;
1106
+ const cleanup = () => {
1107
+ this.#resetState();
1108
+ globalThis.bitsDismissableLayers.delete(this);
1109
+ this.#handleInteractOutside.destroy();
1110
+ unsubEvents();
1111
+ };
1112
+ watch([() => this.opts.enabled.current, () => this.currNode], ([enabled, currNode]) => {
1113
+ if (!enabled || !currNode) return;
1114
+ afterSleep(1, () => {
1115
+ if (!this.currNode) return;
1116
+ globalThis.bitsDismissableLayers.set(this, this.#behaviorType);
1117
+ unsubEvents();
1118
+ unsubEvents = this.#addEventListeners();
1119
+ });
1120
+ return cleanup;
1121
+ });
1122
+ }
1123
+ #handleFocus = (event) => {
1124
+ if (event.defaultPrevented) return;
1125
+ if (!this.currNode) return;
1126
+ afterTick(() => {
1127
+ if (!this.currNode || this.#isTargetWithinLayer(event.target)) return;
1128
+ if (event.target && !this.#isFocusInsideDOMTree) {
1129
+ this.#onFocusOutside.current?.(event);
1130
+ }
1131
+ });
1132
+ };
1133
+ #addEventListeners() {
1134
+ return executeCallbacks(
1135
+ /**
1136
+ * CAPTURE INTERACTION START
1137
+ * mark interaction-start event as intercepted.
1138
+ * mark responsible layer during interaction start
1139
+ * to avoid checking if is responsible layer during interaction end
1140
+ * when a new floating element may have been opened.
1141
+ */
1142
+ on(this.#documentObj, "pointerdown", executeCallbacks(this.#markInterceptedEvent, this.#markResponsibleLayer), { capture: true }),
1143
+ /**
1144
+ * BUBBLE INTERACTION START
1145
+ * Mark interaction-start event as non-intercepted. Debounce `onInteractOutsideStart`
1146
+ * to avoid prematurely checking if other events were intercepted.
1147
+ */
1148
+ on(this.#documentObj, "pointerdown", executeCallbacks(this.#markNonInterceptedEvent, this.#handleInteractOutside)),
1149
+ /**
1150
+ * HANDLE FOCUS OUTSIDE
1151
+ */
1152
+ on(this.#documentObj, "focusin", this.#handleFocus)
1153
+ );
1154
+ }
1155
+ #handleDismiss = (e) => {
1156
+ let event = e;
1157
+ if (event.defaultPrevented) {
1158
+ event = createWrappedEvent(e);
1159
+ }
1160
+ this.#interactOutsideProp.current(e);
1161
+ };
1162
+ #handleInteractOutside = debounce(
1163
+ (e) => {
1164
+ if (!this.currNode) {
1165
+ this.#unsubClickListener();
1166
+ return;
1167
+ }
1168
+ const isEventValid = this.opts.isValidEvent.current(e, this.currNode) || isValidEvent(e, this.currNode);
1169
+ if (!this.#isResponsibleLayer || this.#isAnyEventIntercepted() || !isEventValid) {
1170
+ this.#unsubClickListener();
1171
+ return;
1172
+ }
1173
+ let event = e;
1174
+ if (event.defaultPrevented) {
1175
+ event = createWrappedEvent(event);
1176
+ }
1177
+ if (this.#behaviorType.current !== "close" && this.#behaviorType.current !== "defer-otherwise-close") {
1178
+ this.#unsubClickListener();
1179
+ return;
1180
+ }
1181
+ if (e.pointerType === "touch") {
1182
+ this.#unsubClickListener();
1183
+ this.#unsubClickListener = addEventListener(this.#documentObj, "click", this.#handleDismiss, { once: true });
1184
+ } else {
1185
+ this.#interactOutsideProp.current(event);
1186
+ }
1187
+ },
1188
+ 10
1189
+ );
1190
+ #markInterceptedEvent = (e) => {
1191
+ this.#interceptedEvents[e.type] = true;
1192
+ };
1193
+ #markNonInterceptedEvent = (e) => {
1194
+ this.#interceptedEvents[e.type] = false;
1195
+ };
1196
+ #markResponsibleLayer = () => {
1197
+ if (!this.node.current) return;
1198
+ this.#isResponsibleLayer = isResponsibleLayer(this.node.current);
1199
+ };
1200
+ #isTargetWithinLayer = (target) => {
1201
+ if (!this.node.current) return false;
1202
+ return isOrContainsTarget(this.node.current, target);
1203
+ };
1204
+ #resetState = debounce(
1205
+ () => {
1206
+ for (const eventType in this.#interceptedEvents) {
1207
+ this.#interceptedEvents[eventType] = false;
1208
+ }
1209
+ this.#isResponsibleLayer = false;
1210
+ },
1211
+ 20
1212
+ );
1213
+ #isAnyEventIntercepted() {
1214
+ const i = Object.values(this.#interceptedEvents).some(Boolean);
1215
+ return i;
1216
+ }
1217
+ #onfocuscapture = () => {
1218
+ this.#isFocusInsideDOMTree = true;
1219
+ };
1220
+ #onblurcapture = () => {
1221
+ this.#isFocusInsideDOMTree = false;
1222
+ };
1223
+ props = {
1224
+ onfocuscapture: this.#onfocuscapture,
1225
+ onblurcapture: this.#onblurcapture
1226
+ };
1227
+ }
1228
+ function useDismissibleLayer(props) {
1229
+ return new DismissibleLayerState(props);
1230
+ }
1231
+ function getTopMostLayer(layersArr) {
1232
+ return layersArr.findLast(([_, { current: behaviorType }]) => behaviorType === "close" || behaviorType === "ignore");
1233
+ }
1234
+ function isResponsibleLayer(node) {
1235
+ const layersArr = [...globalThis.bitsDismissableLayers];
1236
+ const topMostLayer = getTopMostLayer(layersArr);
1237
+ if (topMostLayer) return topMostLayer[0].node.current === node;
1238
+ const [firstLayerNode] = layersArr[0];
1239
+ return firstLayerNode.node.current === node;
1240
+ }
1241
+ function isValidEvent(e, node) {
1242
+ if ("button" in e && e.button > 0) return false;
1243
+ const target = e.target;
1244
+ if (!isElement(target)) return false;
1245
+ const ownerDocument = getOwnerDocument(target);
1246
+ const isValid = ownerDocument.documentElement.contains(target) && !isOrContainsTarget(node, target) && isClickTrulyOutside(e, node);
1247
+ return isValid;
1248
+ }
1249
+ function createWrappedEvent(e) {
1250
+ const capturedCurrentTarget = e.currentTarget;
1251
+ const capturedTarget = e.target;
1252
+ let newEvent;
1253
+ if (e instanceof PointerEvent) {
1254
+ newEvent = new PointerEvent(e.type, e);
1255
+ } else {
1256
+ newEvent = new PointerEvent("pointerdown", e);
1257
+ }
1258
+ let isPrevented = false;
1259
+ const wrappedEvent = new Proxy(newEvent, {
1260
+ get: (target, prop) => {
1261
+ if (prop === "currentTarget") {
1262
+ return capturedCurrentTarget;
1263
+ }
1264
+ if (prop === "target") {
1265
+ return capturedTarget;
1266
+ }
1267
+ if (prop === "preventDefault") {
1268
+ return () => {
1269
+ isPrevented = true;
1270
+ if (typeof target.preventDefault === "function") {
1271
+ target.preventDefault();
1272
+ }
1273
+ };
1274
+ }
1275
+ if (prop === "defaultPrevented") {
1276
+ return isPrevented;
1277
+ }
1278
+ if (prop in target) {
1279
+ return target[prop];
1280
+ }
1281
+ return e[prop];
1282
+ }
1283
+ });
1284
+ return wrappedEvent;
1285
+ }
1286
+ function Dismissible_layer($$renderer, $$props) {
1287
+ $$renderer.component(($$renderer2) => {
1288
+ let {
1289
+ interactOutsideBehavior = "close",
1290
+ onInteractOutside = noop,
1291
+ onFocusOutside = noop,
1292
+ id,
1293
+ children,
1294
+ enabled,
1295
+ isValidEvent: isValidEvent2 = () => false
1296
+ } = $$props;
1297
+ const dismissibleLayerState = useDismissibleLayer({
1298
+ id: box.with(() => id),
1299
+ interactOutsideBehavior: box.with(() => interactOutsideBehavior),
1300
+ onInteractOutside: box.with(() => onInteractOutside),
1301
+ enabled: box.with(() => enabled),
1302
+ onFocusOutside: box.with(() => onFocusOutside),
1303
+ isValidEvent: box.with(() => isValidEvent2)
1304
+ });
1305
+ children?.($$renderer2, { props: dismissibleLayerState.props });
1306
+ $$renderer2.push(`<!---->`);
1307
+ });
1308
+ }
1309
+ globalThis.bitsEscapeLayers ??= /* @__PURE__ */ new Map();
1310
+ class EscapeLayerState {
1311
+ opts;
1312
+ constructor(opts) {
1313
+ this.opts = opts;
1314
+ let unsubEvents = noop;
1315
+ watch(() => opts.enabled.current, (enabled) => {
1316
+ if (enabled) {
1317
+ globalThis.bitsEscapeLayers.set(this, opts.escapeKeydownBehavior);
1318
+ unsubEvents = this.#addEventListener();
1319
+ }
1320
+ return () => {
1321
+ unsubEvents();
1322
+ globalThis.bitsEscapeLayers.delete(this);
1323
+ };
1324
+ });
1325
+ }
1326
+ #addEventListener = () => {
1327
+ return on(document, "keydown", this.#onkeydown, { passive: false });
1328
+ };
1329
+ #onkeydown = (e) => {
1330
+ if (e.key !== ESCAPE || !isResponsibleEscapeLayer(this)) return;
1331
+ const clonedEvent = new KeyboardEvent(e.type, e);
1332
+ e.preventDefault();
1333
+ const behaviorType = this.opts.escapeKeydownBehavior.current;
1334
+ if (behaviorType !== "close" && behaviorType !== "defer-otherwise-close") return;
1335
+ this.opts.onEscapeKeydown.current(clonedEvent);
1336
+ };
1337
+ }
1338
+ function useEscapeLayer(props) {
1339
+ return new EscapeLayerState(props);
1340
+ }
1341
+ function isResponsibleEscapeLayer(instance) {
1342
+ const layersArr = [...globalThis.bitsEscapeLayers];
1343
+ const topMostLayer = layersArr.findLast(([_, { current: behaviorType }]) => behaviorType === "close" || behaviorType === "ignore");
1344
+ if (topMostLayer) return topMostLayer[0] === instance;
1345
+ const [firstLayerNode] = layersArr[0];
1346
+ return firstLayerNode === instance;
1347
+ }
1348
+ function Escape_layer($$renderer, $$props) {
1349
+ $$renderer.component(($$renderer2) => {
1350
+ let {
1351
+ escapeKeydownBehavior = "close",
1352
+ onEscapeKeydown = noop,
1353
+ children,
1354
+ enabled
1355
+ } = $$props;
1356
+ useEscapeLayer({
1357
+ escapeKeydownBehavior: box.with(() => escapeKeydownBehavior),
1358
+ onEscapeKeydown: box.with(() => onEscapeKeydown),
1359
+ enabled: box.with(() => enabled)
1360
+ });
1361
+ children?.($$renderer2);
1362
+ $$renderer2.push(`<!---->`);
1363
+ });
1364
+ }
1365
+ const focusStack = box([]);
1366
+ function createFocusScopeStack() {
1367
+ return {
1368
+ add(focusScope) {
1369
+ const activeFocusScope = focusStack.current[0];
1370
+ if (activeFocusScope && focusScope.id !== activeFocusScope.id) {
1371
+ activeFocusScope.pause();
1372
+ }
1373
+ focusStack.current = removeFromFocusScopeArray(focusStack.current, focusScope);
1374
+ focusStack.current.unshift(focusScope);
1375
+ },
1376
+ remove(focusScope) {
1377
+ focusStack.current = removeFromFocusScopeArray(focusStack.current, focusScope);
1378
+ focusStack.current[0]?.resume();
1379
+ },
1380
+ get current() {
1381
+ return focusStack.current;
1382
+ }
1383
+ };
1384
+ }
1385
+ function createFocusScopeAPI() {
1386
+ let paused = false;
1387
+ let isHandlingFocus = false;
1388
+ return {
1389
+ id: useId(),
1390
+ get paused() {
1391
+ return paused;
1392
+ },
1393
+ get isHandlingFocus() {
1394
+ return isHandlingFocus;
1395
+ },
1396
+ set isHandlingFocus(value) {
1397
+ isHandlingFocus = value;
1398
+ },
1399
+ pause() {
1400
+ paused = true;
1401
+ },
1402
+ resume() {
1403
+ paused = false;
1404
+ }
1405
+ };
1406
+ }
1407
+ function removeFromFocusScopeArray(arr, item) {
1408
+ return [...arr].filter((i) => i.id !== item.id);
1409
+ }
1410
+ function removeLinks(items) {
1411
+ return items.filter((item) => item.tagName !== "A");
1412
+ }
1413
+ function focus(element, { select = false } = {}) {
1414
+ if (!(element && element.focus))
1415
+ return;
1416
+ if (document.activeElement === element)
1417
+ return;
1418
+ const previouslyFocusedElement = document.activeElement;
1419
+ element.focus({ preventScroll: true });
1420
+ if (element !== previouslyFocusedElement && isSelectableInput(element) && select) {
1421
+ element.select();
1422
+ }
1423
+ }
1424
+ function focusFirst(candidates, { select = false } = {}) {
1425
+ const previouslyFocusedElement = document.activeElement;
1426
+ for (const candidate of candidates) {
1427
+ focus(candidate, { select });
1428
+ if (document.activeElement !== previouslyFocusedElement)
1429
+ return true;
1430
+ }
1431
+ }
1432
+ function findVisible(elements, container) {
1433
+ for (const element of elements) {
1434
+ if (!isElementHidden(element, container))
1435
+ return element;
1436
+ }
1437
+ }
1438
+ function getTabbableCandidates(container) {
1439
+ const nodes = [];
1440
+ const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {
1441
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1442
+ acceptNode: (node) => {
1443
+ const isHiddenInput3 = node.tagName === "INPUT" && node.type === "hidden";
1444
+ if (node.disabled || node.hidden || isHiddenInput3)
1445
+ return NodeFilter.FILTER_SKIP;
1446
+ return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
1447
+ }
1448
+ });
1449
+ while (walker.nextNode())
1450
+ nodes.push(walker.currentNode);
1451
+ return nodes;
1452
+ }
1453
+ function getTabbableEdges(container) {
1454
+ const candidates = getTabbableCandidates(container);
1455
+ const first = findVisible(candidates, container);
1456
+ const last = findVisible(candidates.reverse(), container);
1457
+ return [first, last];
1458
+ }
1459
+ /*!
1460
+ * tabbable 6.5.0
1461
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
1462
+ */
1463
+ var candidateSelectors = ["input:not([inert]):not([inert] *)", "select:not([inert]):not([inert] *)", "textarea:not([inert]):not([inert] *)", "a[href]:not([inert]):not([inert] *)", "area[href]:not([inert]):not([inert] *)", "button:not([inert]):not([inert] *)", "[tabindex]:not(slot):not([inert]):not([inert] *)", "audio[controls]:not([inert]):not([inert] *)", "video[controls]:not([inert]):not([inert] *)", '[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)', "details>summary:first-of-type:not([inert]):not([inert] *)", "details:not([inert]):not([inert] *)"];
1464
+ var candidateSelector = /* @__PURE__ */ candidateSelectors.join(",");
1465
+ var NoElement = typeof Element === "undefined";
1466
+ var matches = NoElement ? function() {
1467
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
1468
+ var getRootNode = !NoElement && Element.prototype.getRootNode ? function(element) {
1469
+ var _element$getRootNode;
1470
+ return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
1471
+ } : function(element) {
1472
+ return element === null || element === void 0 ? void 0 : element.ownerDocument;
1473
+ };
1474
+ var isContentEditable = function isContentEditable2(node) {
1475
+ var _node$getAttribute2;
1476
+ var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, "contenteditable");
1477
+ return attValue === "" || attValue === "true";
1478
+ };
1479
+ var hasTabIndex = function hasTabIndex2(node) {
1480
+ return !isNaN(parseInt(node.getAttribute("tabindex"), 10));
1481
+ };
1482
+ var getTabIndex = function getTabIndex2(node) {
1483
+ if (!node) {
1484
+ throw new Error("No node provided");
1485
+ }
1486
+ if (node.tabIndex < 0) {
1487
+ if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) {
1488
+ return 0;
1489
+ }
1490
+ }
1491
+ return node.tabIndex;
1492
+ };
1493
+ var isInput = function isInput2(node) {
1494
+ return node.tagName === "INPUT";
1495
+ };
1496
+ var isHiddenInput = function isHiddenInput2(node) {
1497
+ return isInput(node) && node.type === "hidden";
1498
+ };
1499
+ var isDetailsWithSummary = function isDetailsWithSummary2(node) {
1500
+ var r = node.tagName === "DETAILS" && Array.prototype.slice.apply(node.children).some(function(child) {
1501
+ return child.tagName === "SUMMARY";
1502
+ });
1503
+ return r;
1504
+ };
1505
+ var getCheckedRadio = function getCheckedRadio2(nodes, form) {
1506
+ for (var i = 0; i < nodes.length; i++) {
1507
+ if (nodes[i].checked && nodes[i].form === form) {
1508
+ return nodes[i];
1509
+ }
1510
+ }
1511
+ };
1512
+ var isTabbableRadio = function isTabbableRadio2(node) {
1513
+ if (!node.name) {
1514
+ return true;
1515
+ }
1516
+ var radioScope = node.form || getRootNode(node);
1517
+ var queryRadios = function queryRadios2(name) {
1518
+ return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
1519
+ };
1520
+ var radioSet;
1521
+ if (typeof window !== "undefined" && typeof window.CSS !== "undefined" && typeof window.CSS.escape === "function") {
1522
+ radioSet = queryRadios(window.CSS.escape(node.name));
1523
+ } else {
1524
+ try {
1525
+ radioSet = queryRadios(node.name);
1526
+ } catch (err) {
1527
+ console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", err.message);
1528
+ return false;
1529
+ }
1530
+ }
1531
+ var checked = getCheckedRadio(radioSet, node.form);
1532
+ return !checked || checked === node;
1533
+ };
1534
+ var isRadio = function isRadio2(node) {
1535
+ return isInput(node) && node.type === "radio";
1536
+ };
1537
+ var isNonTabbableRadio = function isNonTabbableRadio2(node) {
1538
+ return isRadio(node) && !isTabbableRadio(node);
1539
+ };
1540
+ var isNodeAttached = function isNodeAttached2(node) {
1541
+ var _nodeRoot;
1542
+ var nodeRoot = node && getRootNode(node);
1543
+ var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
1544
+ var attached = false;
1545
+ if (nodeRoot && nodeRoot !== node) {
1546
+ var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
1547
+ attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));
1548
+ while (!attached && nodeRootHost) {
1549
+ var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
1550
+ nodeRoot = getRootNode(nodeRootHost);
1551
+ nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
1552
+ attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
1553
+ }
1554
+ }
1555
+ return attached;
1556
+ };
1557
+ var isZeroArea = function isZeroArea2(node) {
1558
+ var _node$getBoundingClie = node.getBoundingClientRect(), width = _node$getBoundingClie.width, height = _node$getBoundingClie.height;
1559
+ return width === 0 && height === 0;
1560
+ };
1561
+ var isHidden = function isHidden2(node, _ref) {
1562
+ var displayCheck = _ref.displayCheck, getShadowRoot = _ref.getShadowRoot;
1563
+ if (displayCheck === "full-native") {
1564
+ if ("checkVisibility" in node) {
1565
+ var visible = node.checkVisibility({
1566
+ // Checking opacity might be desirable for some use cases, but natively,
1567
+ // opacity zero elements _are_ focusable and tabbable.
1568
+ checkOpacity: false,
1569
+ opacityProperty: false,
1570
+ contentVisibilityAuto: true,
1571
+ visibilityProperty: true,
1572
+ // This is an alias for `visibilityProperty`. Contemporary browsers
1573
+ // support both. However, this alias has wider browser support (Chrome
1574
+ // >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
1575
+ // we include it anyway.
1576
+ checkVisibilityCSS: true
1577
+ });
1578
+ return !visible;
1579
+ }
1580
+ }
1581
+ var _getComputedStyle = getComputedStyle(node), visibility = _getComputedStyle.visibility;
1582
+ if (visibility === "hidden" || visibility === "collapse") {
1583
+ return true;
1584
+ }
1585
+ var isDirectSummary = matches.call(node, "details>summary:first-of-type");
1586
+ var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
1587
+ if (matches.call(nodeUnderDetails, "details:not([open]) *")) {
1588
+ return true;
1589
+ }
1590
+ if (!displayCheck || displayCheck === "full" || // full-native can run this branch when it falls through in case
1591
+ // Element#checkVisibility is unsupported
1592
+ displayCheck === "full-native" || displayCheck === "legacy-full") {
1593
+ if (typeof getShadowRoot === "function") {
1594
+ var originalNode = node;
1595
+ while (node) {
1596
+ var parentElement = node.parentElement;
1597
+ var rootNode = getRootNode(node);
1598
+ if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true) {
1599
+ return isZeroArea(node);
1600
+ } else if (node.assignedSlot) {
1601
+ node = node.assignedSlot;
1602
+ } else if (!parentElement && rootNode !== node.ownerDocument) {
1603
+ node = rootNode.host;
1604
+ } else {
1605
+ node = parentElement;
1606
+ }
1607
+ }
1608
+ node = originalNode;
1609
+ }
1610
+ if (isNodeAttached(node)) {
1611
+ return !node.getClientRects().length;
1612
+ }
1613
+ if (displayCheck !== "legacy-full") {
1614
+ return true;
1615
+ }
1616
+ } else if (displayCheck === "non-zero-area") {
1617
+ return isZeroArea(node);
1618
+ }
1619
+ return false;
1620
+ };
1621
+ var isDisabledFromFieldset = function isDisabledFromFieldset2(node) {
1622
+ if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
1623
+ var parentNode = node.parentElement;
1624
+ while (parentNode) {
1625
+ if (parentNode.tagName === "FIELDSET" && parentNode.disabled) {
1626
+ for (var i = 0; i < parentNode.children.length; i++) {
1627
+ var child = parentNode.children.item(i);
1628
+ if (child.tagName === "LEGEND") {
1629
+ return matches.call(parentNode, "fieldset[disabled] *") ? true : !child.contains(node);
1630
+ }
1631
+ }
1632
+ return true;
1633
+ }
1634
+ parentNode = parentNode.parentElement;
1635
+ }
1636
+ }
1637
+ return false;
1638
+ };
1639
+ var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable2(options, node) {
1640
+ if (node.disabled || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus
1641
+ isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
1642
+ return false;
1643
+ }
1644
+ return true;
1645
+ };
1646
+ var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable2(options, node) {
1647
+ if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
1648
+ return false;
1649
+ }
1650
+ return true;
1651
+ };
1652
+ var isTabbable = function isTabbable2(node, options) {
1653
+ options = options || {};
1654
+ if (!node) {
1655
+ throw new Error("No node provided");
1656
+ }
1657
+ if (matches.call(node, candidateSelector) === false) {
1658
+ return false;
1659
+ }
1660
+ return isNodeMatchingSelectorTabbable(options, node);
1661
+ };
1662
+ const AutoFocusOnMountEvent = new CustomEventDispatcher("focusScope.autoFocusOnMount", { bubbles: false, cancelable: true });
1663
+ const AutoFocusOnDestroyEvent = new CustomEventDispatcher("focusScope.autoFocusOnDestroy", { bubbles: false, cancelable: true });
1664
+ const FocusScopeContext = new Context("FocusScope");
1665
+ function useFocusScope({
1666
+ id,
1667
+ loop,
1668
+ enabled,
1669
+ onOpenAutoFocus,
1670
+ onCloseAutoFocus,
1671
+ forceMount
1672
+ }) {
1673
+ const focusScopeStack = createFocusScopeStack();
1674
+ const focusScope = createFocusScopeAPI();
1675
+ const ref = box(null);
1676
+ const ctx = FocusScopeContext.getOr({ ignoreCloseAutoFocus: false });
1677
+ let lastFocusedElement = null;
1678
+ useRefById({ id, ref, deps: () => enabled.current });
1679
+ function manageFocus(event) {
1680
+ if (focusScope.paused || !ref.current || focusScope.isHandlingFocus) return;
1681
+ focusScope.isHandlingFocus = true;
1682
+ try {
1683
+ const target = event.target;
1684
+ if (!isHTMLElement(target)) return;
1685
+ const isWithinActiveScope = ref.current.contains(target);
1686
+ if (event.type === "focusin") {
1687
+ if (isWithinActiveScope) {
1688
+ lastFocusedElement = target;
1689
+ } else {
1690
+ if (ctx.ignoreCloseAutoFocus) return;
1691
+ focus(lastFocusedElement, { select: true });
1692
+ }
1693
+ } else if (event.type === "focusout") {
1694
+ if (!isWithinActiveScope && !ctx.ignoreCloseAutoFocus) {
1695
+ focus(lastFocusedElement, { select: true });
1696
+ }
1697
+ }
1698
+ } finally {
1699
+ focusScope.isHandlingFocus = false;
1700
+ }
1701
+ }
1702
+ function handleMutations(mutations) {
1703
+ if (!lastFocusedElement || !ref.current) return;
1704
+ let elementWasRemoved = false;
1705
+ for (const mutation of mutations) {
1706
+ if (mutation.type === "childList" && mutation.removedNodes.length > 0) {
1707
+ for (const removedNode of mutation.removedNodes) {
1708
+ if (removedNode === lastFocusedElement) {
1709
+ elementWasRemoved = true;
1710
+ break;
1711
+ }
1712
+ if (removedNode.nodeType === Node.ELEMENT_NODE && removedNode.contains(lastFocusedElement)) {
1713
+ elementWasRemoved = true;
1714
+ break;
1715
+ }
1716
+ }
1717
+ }
1718
+ if (elementWasRemoved) break;
1719
+ }
1720
+ if (elementWasRemoved && ref.current && !ref.current.contains(document.activeElement)) {
1721
+ focus(ref.current);
1722
+ }
1723
+ }
1724
+ watch([() => ref.current, () => enabled.current], ([container, enabled2]) => {
1725
+ if (!container || !enabled2) return;
1726
+ const removeEvents = executeCallbacks(on(document, "focusin", manageFocus), on(document, "focusout", manageFocus));
1727
+ const mutationObserver = new MutationObserver(handleMutations);
1728
+ mutationObserver.observe(container, { childList: true, subtree: true, attributes: false });
1729
+ return () => {
1730
+ removeEvents();
1731
+ mutationObserver.disconnect();
1732
+ };
1733
+ });
1734
+ watch([() => forceMount.current, () => ref.current], ([forceMount2, container]) => {
1735
+ if (forceMount2) return;
1736
+ const prevFocusedElement = document.activeElement;
1737
+ handleOpen(container, prevFocusedElement);
1738
+ return () => {
1739
+ if (!container) return;
1740
+ handleClose(prevFocusedElement);
1741
+ };
1742
+ });
1743
+ watch(
1744
+ [
1745
+ () => forceMount.current,
1746
+ () => ref.current,
1747
+ () => enabled.current
1748
+ ],
1749
+ ([forceMount2, container]) => {
1750
+ if (!forceMount2) return;
1751
+ const prevFocusedElement = document.activeElement;
1752
+ handleOpen(container, prevFocusedElement);
1753
+ return () => {
1754
+ if (!container) return;
1755
+ handleClose(prevFocusedElement);
1756
+ };
1757
+ }
1758
+ );
1759
+ function handleOpen(container, prevFocusedElement) {
1760
+ if (!container) container = document.getElementById(id.current);
1761
+ if (!container || !enabled.current) return;
1762
+ focusScopeStack.add(focusScope);
1763
+ const hasFocusedCandidate = container.contains(prevFocusedElement);
1764
+ if (!hasFocusedCandidate) {
1765
+ const mountEvent = AutoFocusOnMountEvent.createEvent();
1766
+ onOpenAutoFocus.current(mountEvent);
1767
+ if (!mountEvent.defaultPrevented) {
1768
+ afterTick(() => {
1769
+ if (!container) return;
1770
+ const result = focusFirst(removeLinks(getTabbableCandidates(container)), { select: true });
1771
+ if (!result) focus(container);
1772
+ });
1773
+ }
1774
+ }
1775
+ }
1776
+ function handleClose(prevFocusedElement) {
1777
+ const destroyEvent = AutoFocusOnDestroyEvent.createEvent();
1778
+ onCloseAutoFocus.current?.(destroyEvent);
1779
+ const shouldIgnore = ctx.ignoreCloseAutoFocus;
1780
+ afterSleep(0, () => {
1781
+ if (!destroyEvent.defaultPrevented && prevFocusedElement && !shouldIgnore) {
1782
+ focus(isTabbable(prevFocusedElement) ? prevFocusedElement : document.body, { select: true });
1783
+ }
1784
+ focusScopeStack.remove(focusScope);
1785
+ });
1786
+ }
1787
+ function handleKeydown(e) {
1788
+ if (!enabled.current) return;
1789
+ if (!loop.current && !enabled.current) return;
1790
+ if (focusScope.paused) return;
1791
+ const isTabKey = e.key === TAB && !e.ctrlKey && !e.altKey && !e.metaKey;
1792
+ const focusedElement = document.activeElement;
1793
+ if (!(isTabKey && focusedElement)) return;
1794
+ const container = ref.current;
1795
+ if (!container) return;
1796
+ const [first, last] = getTabbableEdges(container);
1797
+ const hasTabbableElementsInside = first && last;
1798
+ if (!hasTabbableElementsInside) {
1799
+ if (focusedElement === container) {
1800
+ e.preventDefault();
1801
+ }
1802
+ } else {
1803
+ if (!e.shiftKey && focusedElement === last) {
1804
+ e.preventDefault();
1805
+ if (loop.current) focus(first, { select: true });
1806
+ } else if (e.shiftKey && focusedElement === first) {
1807
+ e.preventDefault();
1808
+ if (loop.current) focus(last, { select: true });
1809
+ }
1810
+ }
1811
+ }
1812
+ const props = derived(() => ({ id: id.current, tabindex: -1, onkeydown: handleKeydown }));
1813
+ return {
1814
+ get props() {
1815
+ return props();
1816
+ }
1817
+ };
1818
+ }
1819
+ function Focus_scope($$renderer, $$props) {
1820
+ $$renderer.component(($$renderer2) => {
1821
+ let {
1822
+ id,
1823
+ trapFocus = false,
1824
+ loop = false,
1825
+ onCloseAutoFocus = noop,
1826
+ onOpenAutoFocus = noop,
1827
+ focusScope,
1828
+ forceMount = false
1829
+ } = $$props;
1830
+ const focusScopeState = useFocusScope({
1831
+ enabled: box.with(() => trapFocus),
1832
+ loop: box.with(() => loop),
1833
+ onCloseAutoFocus: box.with(() => onCloseAutoFocus),
1834
+ onOpenAutoFocus: box.with(() => onOpenAutoFocus),
1835
+ id: box.with(() => id),
1836
+ forceMount: box.with(() => forceMount)
1837
+ });
1838
+ focusScope?.($$renderer2, { props: focusScopeState.props });
1839
+ $$renderer2.push(`<!---->`);
1840
+ });
1841
+ }
1842
+ globalThis.bitsTextSelectionLayers ??= /* @__PURE__ */ new Map();
1843
+ class TextSelectionLayerState {
1844
+ opts;
1845
+ #unsubSelectionLock = noop;
1846
+ #ref = box(null);
1847
+ constructor(opts) {
1848
+ this.opts = opts;
1849
+ useRefById({
1850
+ id: opts.id,
1851
+ ref: this.#ref,
1852
+ deps: () => this.opts.enabled.current
1853
+ });
1854
+ let unsubEvents = noop;
1855
+ watch(() => this.opts.enabled.current, (isEnabled) => {
1856
+ if (isEnabled) {
1857
+ globalThis.bitsTextSelectionLayers.set(this, this.opts.enabled);
1858
+ unsubEvents();
1859
+ unsubEvents = this.#addEventListeners();
1860
+ }
1861
+ return () => {
1862
+ unsubEvents();
1863
+ this.#resetSelectionLock();
1864
+ globalThis.bitsTextSelectionLayers.delete(this);
1865
+ };
1866
+ });
1867
+ }
1868
+ #addEventListeners() {
1869
+ return executeCallbacks(on(document, "pointerdown", this.#pointerdown), on(document, "pointerup", composeHandlers(this.#resetSelectionLock, this.opts.onPointerUp.current)));
1870
+ }
1871
+ #pointerdown = (e) => {
1872
+ const node = this.#ref.current;
1873
+ const target = e.target;
1874
+ if (!isHTMLElement(node) || !isHTMLElement(target) || !this.opts.enabled.current) return;
1875
+ if (!isHighestLayer(this) || !isOrContainsTarget(node, target)) return;
1876
+ this.opts.onPointerDown.current(e);
1877
+ if (e.defaultPrevented) return;
1878
+ this.#unsubSelectionLock = preventTextSelectionOverflow(node);
1879
+ };
1880
+ #resetSelectionLock = () => {
1881
+ this.#unsubSelectionLock();
1882
+ this.#unsubSelectionLock = noop;
1883
+ };
1884
+ }
1885
+ function useTextSelectionLayer(props) {
1886
+ return new TextSelectionLayerState(props);
1887
+ }
1888
+ const getUserSelect = (node) => node.style.userSelect || node.style.webkitUserSelect;
1889
+ function preventTextSelectionOverflow(node) {
1890
+ const body = document.body;
1891
+ const originalBodyUserSelect = getUserSelect(body);
1892
+ const originalNodeUserSelect = getUserSelect(node);
1893
+ setUserSelect(body, "none");
1894
+ setUserSelect(node, "text");
1895
+ return () => {
1896
+ setUserSelect(body, originalBodyUserSelect);
1897
+ setUserSelect(node, originalNodeUserSelect);
1898
+ };
1899
+ }
1900
+ function setUserSelect(node, value) {
1901
+ node.style.userSelect = value;
1902
+ node.style.webkitUserSelect = value;
1903
+ }
1904
+ function isHighestLayer(instance) {
1905
+ const layersArr = [...globalThis.bitsTextSelectionLayers];
1906
+ if (!layersArr.length) return false;
1907
+ const highestLayer = layersArr.at(-1);
1908
+ if (!highestLayer) return false;
1909
+ return highestLayer[0] === instance;
1910
+ }
1911
+ function Text_selection_layer($$renderer, $$props) {
1912
+ $$renderer.component(($$renderer2) => {
1913
+ let {
1914
+ preventOverflowTextSelection = true,
1915
+ onPointerDown = noop,
1916
+ onPointerUp = noop,
1917
+ id,
1918
+ children,
1919
+ enabled
1920
+ } = $$props;
1921
+ useTextSelectionLayer({
1922
+ id: box.with(() => id),
1923
+ onPointerDown: box.with(() => onPointerDown),
1924
+ onPointerUp: box.with(() => onPointerUp),
1925
+ enabled: box.with(() => enabled && preventOverflowTextSelection)
1926
+ });
1927
+ children?.($$renderer2);
1928
+ $$renderer2.push(`<!---->`);
1929
+ });
1930
+ }
1931
+ function createSharedHook(factory) {
1932
+ let state = void 0;
1933
+ return (...args) => {
1934
+ return state;
1935
+ };
1936
+ }
1937
+ const useBodyLockStackCount = createSharedHook();
1938
+ function useBodyScrollLock(initialState, restoreScrollDelay = () => null) {
1939
+ useId();
1940
+ useBodyLockStackCount();
1941
+ return;
1942
+ }
1943
+ function Scroll_lock($$renderer, $$props) {
1944
+ $$renderer.component(($$renderer2) => {
1945
+ let { preventScroll = true, restoreScrollDelay = null } = $$props;
1946
+ useBodyScrollLock(preventScroll, () => restoreScrollDelay);
1947
+ });
1948
+ }
1949
+ function shouldTrapFocus({ forceMount, present, trapFocus, open }) {
1950
+ if (forceMount) {
1951
+ return open && trapFocus;
1952
+ }
1953
+ return present && trapFocus && open;
1954
+ }
1955
+ function Dialog_overlay($$renderer, $$props) {
1956
+ $$renderer.component(($$renderer2) => {
1957
+ let {
1958
+ id = useId(),
1959
+ forceMount = false,
1960
+ child,
1961
+ children,
1962
+ ref = null,
1963
+ $$slots,
1964
+ $$events,
1965
+ ...restProps
1966
+ } = $$props;
1967
+ const overlayState = useDialogOverlay({
1968
+ id: box.with(() => id),
1969
+ ref: box.with(() => ref, (v) => ref = v)
1970
+ });
1971
+ const mergedProps = derived(() => mergeProps(restProps, overlayState.props));
1972
+ {
1973
+ let presence = function($$renderer3) {
1974
+ if (child) {
1975
+ $$renderer3.push("<!--[0-->");
1976
+ child($$renderer3, {
1977
+ props: mergeProps(mergedProps()),
1978
+ ...overlayState.snippetProps
1979
+ });
1980
+ $$renderer3.push(`<!---->`);
1981
+ } else {
1982
+ $$renderer3.push("<!--[-1-->");
1983
+ $$renderer3.push(`<div${attributes({ ...mergeProps(mergedProps()) })}>`);
1984
+ children?.($$renderer3, overlayState.snippetProps);
1985
+ $$renderer3.push(`<!----></div>`);
1986
+ }
1987
+ $$renderer3.push(`<!--]-->`);
1988
+ };
1989
+ Presence_layer($$renderer2, {
1990
+ id,
1991
+ present: overlayState.root.opts.open.current || forceMount,
1992
+ presence
1993
+ });
1994
+ }
1995
+ bind_props($$props, { ref });
1996
+ });
1997
+ }
1998
+ function Dialog($$renderer, $$props) {
1999
+ $$renderer.component(($$renderer2) => {
2000
+ let { open = false, onOpenChange = noop, children } = $$props;
2001
+ useDialogRoot({
2002
+ variant: box.with(() => "dialog"),
2003
+ open: box.with(() => open, (v) => {
2004
+ open = v;
2005
+ onOpenChange(v);
2006
+ })
2007
+ });
2008
+ children?.($$renderer2);
2009
+ $$renderer2.push(`<!---->`);
2010
+ bind_props($$props, { open });
2011
+ });
2012
+ }
2013
+ function Dialog_close($$renderer, $$props) {
2014
+ $$renderer.component(($$renderer2) => {
2015
+ let {
2016
+ children,
2017
+ child,
2018
+ id = useId(),
2019
+ ref = null,
2020
+ disabled = false,
2021
+ $$slots,
2022
+ $$events,
2023
+ ...restProps
2024
+ } = $$props;
2025
+ const closeState = useDialogClose({
2026
+ variant: box.with(() => "close"),
2027
+ id: box.with(() => id),
2028
+ ref: box.with(() => ref, (v) => ref = v),
2029
+ disabled: box.with(() => Boolean(disabled))
2030
+ });
2031
+ const mergedProps = derived(() => mergeProps(restProps, closeState.props));
2032
+ if (child) {
2033
+ $$renderer2.push("<!--[0-->");
2034
+ child($$renderer2, { props: mergedProps() });
2035
+ $$renderer2.push(`<!---->`);
2036
+ } else {
2037
+ $$renderer2.push("<!--[-1-->");
2038
+ $$renderer2.push(`<button${attributes({ ...mergedProps() })}>`);
2039
+ children?.($$renderer2);
2040
+ $$renderer2.push(`<!----></button>`);
2041
+ }
2042
+ $$renderer2.push(`<!--]-->`);
2043
+ bind_props($$props, { ref });
2044
+ });
2045
+ }
2046
+ function Dialog_content($$renderer, $$props) {
2047
+ $$renderer.component(($$renderer2) => {
2048
+ let {
2049
+ id = useId(),
2050
+ children,
2051
+ child,
2052
+ ref = null,
2053
+ forceMount = false,
2054
+ onCloseAutoFocus = noop,
2055
+ onOpenAutoFocus = noop,
2056
+ onEscapeKeydown = noop,
2057
+ onInteractOutside = noop,
2058
+ trapFocus = true,
2059
+ preventScroll = true,
2060
+ restoreScrollDelay = null,
2061
+ $$slots,
2062
+ $$events,
2063
+ ...restProps
2064
+ } = $$props;
2065
+ const contentState = useDialogContent({
2066
+ id: box.with(() => id),
2067
+ ref: box.with(() => ref, (v) => ref = v)
2068
+ });
2069
+ const mergedProps = derived(() => mergeProps(restProps, contentState.props));
2070
+ {
2071
+ let presence = function($$renderer3) {
2072
+ {
2073
+ let focusScope = function($$renderer4, { props: focusScopeProps }) {
2074
+ Escape_layer($$renderer4, spread_props([
2075
+ mergedProps(),
2076
+ {
2077
+ enabled: contentState.root.opts.open.current,
2078
+ onEscapeKeydown: (e) => {
2079
+ onEscapeKeydown(e);
2080
+ if (e.defaultPrevented) return;
2081
+ contentState.root.handleClose();
2082
+ },
2083
+ children: ($$renderer5) => {
2084
+ Dismissible_layer($$renderer5, spread_props([
2085
+ mergedProps(),
2086
+ {
2087
+ enabled: contentState.root.opts.open.current,
2088
+ onInteractOutside: (e) => {
2089
+ onInteractOutside(e);
2090
+ if (e.defaultPrevented) return;
2091
+ contentState.root.handleClose();
2092
+ },
2093
+ children: ($$renderer6) => {
2094
+ Text_selection_layer($$renderer6, spread_props([
2095
+ mergedProps(),
2096
+ {
2097
+ enabled: contentState.root.opts.open.current,
2098
+ children: ($$renderer7) => {
2099
+ if (child) {
2100
+ $$renderer7.push("<!--[0-->");
2101
+ if (contentState.root.opts.open.current) {
2102
+ $$renderer7.push("<!--[0-->");
2103
+ Scroll_lock($$renderer7, { preventScroll, restoreScrollDelay });
2104
+ } else {
2105
+ $$renderer7.push("<!--[-1-->");
2106
+ }
2107
+ $$renderer7.push(`<!--]--> `);
2108
+ child($$renderer7, {
2109
+ props: mergeProps(mergedProps(), focusScopeProps),
2110
+ ...contentState.snippetProps
2111
+ });
2112
+ $$renderer7.push(`<!---->`);
2113
+ } else {
2114
+ $$renderer7.push("<!--[-1-->");
2115
+ Scroll_lock($$renderer7, { preventScroll });
2116
+ $$renderer7.push(`<!----> <div${attributes({ ...mergeProps(mergedProps(), focusScopeProps) })}>`);
2117
+ children?.($$renderer7);
2118
+ $$renderer7.push(`<!----></div>`);
2119
+ }
2120
+ $$renderer7.push(`<!--]-->`);
2121
+ },
2122
+ $$slots: { default: true }
2123
+ }
2124
+ ]));
2125
+ },
2126
+ $$slots: { default: true }
2127
+ }
2128
+ ]));
2129
+ },
2130
+ $$slots: { default: true }
2131
+ }
2132
+ ]));
2133
+ };
2134
+ Focus_scope($$renderer3, {
2135
+ loop: true,
2136
+ trapFocus: shouldTrapFocus({
2137
+ forceMount,
2138
+ present: contentState.root.opts.open.current,
2139
+ trapFocus,
2140
+ open: contentState.root.opts.open.current
2141
+ }),
2142
+ onOpenAutoFocus,
2143
+ id,
2144
+ onCloseAutoFocus: (e) => {
2145
+ onCloseAutoFocus(e);
2146
+ if (e.defaultPrevented) return;
2147
+ contentState.root.triggerNode?.focus();
2148
+ },
2149
+ focusScope
2150
+ });
2151
+ }
2152
+ };
2153
+ Presence_layer($$renderer2, spread_props([
2154
+ mergedProps(),
2155
+ {
2156
+ forceMount,
2157
+ present: contentState.root.opts.open.current || forceMount,
2158
+ presence,
2159
+ $$slots: { presence: true }
2160
+ }
2161
+ ]));
2162
+ }
2163
+ bind_props($$props, { ref });
2164
+ });
2165
+ }
2166
+ function Modal($$renderer, $$props) {
2167
+ $$renderer.component(($$renderer2) => {
2168
+ let {
2169
+ open = false,
2170
+ title = "",
2171
+ class: className = "",
2172
+ overlayClass = "",
2173
+ children,
2174
+ footer,
2175
+ underlay,
2176
+ underlayOpen = false
2177
+ } = $$props;
2178
+ let $$settled = true;
2179
+ let $$inner_renderer;
2180
+ function $$render_inner($$renderer3) {
2181
+ if (Dialog) {
2182
+ $$renderer3.push("<!--[-->");
2183
+ Dialog($$renderer3, {
2184
+ get open() {
2185
+ return open;
2186
+ },
2187
+ set open($$value) {
2188
+ open = $$value;
2189
+ $$settled = false;
2190
+ },
2191
+ children: ($$renderer4) => {
2192
+ if (Portal) {
2193
+ $$renderer4.push("<!--[-->");
2194
+ Portal($$renderer4, {
2195
+ children: ($$renderer5) => {
2196
+ if (Dialog_overlay) {
2197
+ $$renderer5.push("<!--[-->");
2198
+ Dialog_overlay($$renderer5, { class: "fixed inset-0 z-50 bg-black/60 " + overlayClass });
2199
+ $$renderer5.push("<!--]-->");
2200
+ } else {
2201
+ $$renderer5.push("<!--[!-->");
2202
+ $$renderer5.push("<!--]-->");
2203
+ }
2204
+ $$renderer5.push(` `);
2205
+ if (Dialog_content) {
2206
+ $$renderer5.push("<!--[-->");
2207
+ Dialog_content($$renderer5, {
2208
+ class: "fixed left-1/2 top-1/2 z-50 max-h-[90vh] w-[95vw] max-w-6xl -translate-x-1/2 -translate-y-1/2 overflow-visible " + className,
2209
+ children: ($$renderer6) => {
2210
+ $$renderer6.push(`<div class="overflow-hidden rounded-lg border border-rc-gray-600 bg-rc-gray-800 shadow-xl"><div class="flex items-center justify-between border-b border-rc-gray-600 px-4 py-3">`);
2211
+ if (Dialog_title) {
2212
+ $$renderer6.push("<!--[-->");
2213
+ Dialog_title($$renderer6, {
2214
+ class: "text-lg font-semibold text-gray-100",
2215
+ children: ($$renderer7) => {
2216
+ $$renderer7.push(`<!---->${escape_html(title)}`);
2217
+ },
2218
+ $$slots: { default: true }
2219
+ });
2220
+ $$renderer6.push("<!--]-->");
2221
+ } else {
2222
+ $$renderer6.push("<!--[!-->");
2223
+ $$renderer6.push("<!--]-->");
2224
+ }
2225
+ $$renderer6.push(` `);
2226
+ if (Dialog_close) {
2227
+ $$renderer6.push("<!--[-->");
2228
+ Dialog_close($$renderer6, {
2229
+ class: "text-gray-400 hover:text-gray-200",
2230
+ "aria-label": "Close",
2231
+ children: ($$renderer7) => {
2232
+ $$renderer7.push(`<!---->✕`);
2233
+ },
2234
+ $$slots: { default: true }
2235
+ });
2236
+ $$renderer6.push("<!--]-->");
2237
+ } else {
2238
+ $$renderer6.push("<!--[!-->");
2239
+ $$renderer6.push("<!--]-->");
2240
+ }
2241
+ $$renderer6.push(`</div> <div class="rc-scroll max-h-[calc(90vh-7rem)] overflow-auto p-4">`);
2242
+ children?.($$renderer6);
2243
+ $$renderer6.push(`<!----></div> <div class="flex items-center justify-end gap-3 border-t border-rc-gray-600 px-4 py-3">`);
2244
+ footer?.($$renderer6);
2245
+ $$renderer6.push(`<!----></div></div> `);
2246
+ if (underlayOpen && underlay) {
2247
+ $$renderer6.push("<!--[0-->");
2248
+ $$renderer6.push(`<div class="modal-underlay absolute left-0 right-0 top-full -z-10 -mt-2 overflow-hidden rounded-b-lg border border-t-0 border-rc-gray-600 bg-rc-gray-800 px-4 pb-xs pt-2.5 shadow-xl svelte-ta60gp">`);
2249
+ underlay($$renderer6);
2250
+ $$renderer6.push(`<!----></div>`);
2251
+ } else {
2252
+ $$renderer6.push("<!--[-1-->");
2253
+ }
2254
+ $$renderer6.push(`<!--]-->`);
2255
+ },
2256
+ $$slots: { default: true }
2257
+ });
2258
+ $$renderer5.push("<!--]-->");
2259
+ } else {
2260
+ $$renderer5.push("<!--[!-->");
2261
+ $$renderer5.push("<!--]-->");
2262
+ }
2263
+ }
2264
+ });
2265
+ $$renderer4.push("<!--]-->");
2266
+ } else {
2267
+ $$renderer4.push("<!--[!-->");
2268
+ $$renderer4.push("<!--]-->");
2269
+ }
2270
+ },
2271
+ $$slots: { default: true }
2272
+ });
2273
+ $$renderer3.push("<!--]-->");
2274
+ } else {
2275
+ $$renderer3.push("<!--[!-->");
2276
+ $$renderer3.push("<!--]-->");
2277
+ }
2278
+ }
2279
+ do {
2280
+ $$settled = true;
2281
+ $$inner_renderer = $$renderer2.copy();
2282
+ $$render_inner($$inner_renderer);
2283
+ } while (!$$settled);
2284
+ $$renderer2.subsume($$inner_renderer);
2285
+ bind_props($$props, { open });
2286
+ });
2287
+ }
2288
+
2289
+ export { Modal as M };
2290
+ //# sourceMappingURL=Modal.js-BUDSUOER.js.map