screenreader-speech-capture 0.9.0 → 0.10.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 (240) hide show
  1. package/README.md +17 -0
  2. package/dist/cli.mjs +1 -1
  3. package/dist/ui/adapter-node.js +1 -1
  4. package/dist/ui/client/ui/_app/immutable/assets/{0.CnPCLsGJ.css → 0.DH3e8XLu.css} +1 -1
  5. package/dist/ui/client/ui/_app/immutable/assets/0.DH3e8XLu.css.br +0 -0
  6. package/dist/ui/client/ui/_app/immutable/assets/0.DH3e8XLu.css.gz +0 -0
  7. package/dist/ui/client/ui/_app/immutable/assets/2.DSVNnDlO.css +1 -0
  8. package/dist/ui/client/ui/_app/immutable/assets/2.DSVNnDlO.css.br +3 -0
  9. package/dist/ui/client/ui/_app/immutable/assets/2.DSVNnDlO.css.gz +0 -0
  10. package/dist/ui/client/ui/_app/immutable/assets/4.DIE1qdmp.css +1 -0
  11. package/dist/ui/client/ui/_app/immutable/assets/4.DIE1qdmp.css.br +0 -0
  12. package/dist/ui/client/ui/_app/immutable/assets/4.DIE1qdmp.css.gz +0 -0
  13. package/dist/ui/client/ui/_app/immutable/assets/5.DCMlxwLh.css +1 -0
  14. package/dist/ui/client/ui/_app/immutable/assets/5.DCMlxwLh.css.br +0 -0
  15. package/dist/ui/client/ui/_app/immutable/assets/5.DCMlxwLh.css.gz +0 -0
  16. package/dist/ui/client/ui/_app/immutable/assets/6.C0Nhvs_m.css +1 -0
  17. package/dist/ui/client/ui/_app/immutable/assets/6.C0Nhvs_m.css.br +0 -0
  18. package/dist/ui/client/ui/_app/immutable/assets/6.C0Nhvs_m.css.gz +0 -0
  19. package/dist/ui/client/ui/_app/immutable/assets/ExternalLink.CYXazpKA.css +1 -0
  20. package/dist/ui/client/ui/_app/immutable/assets/ExternalLink.CYXazpKA.css.br +0 -0
  21. package/dist/ui/client/ui/_app/immutable/assets/ExternalLink.CYXazpKA.css.gz +0 -0
  22. package/dist/ui/client/ui/_app/immutable/assets/Pane.Co7gxzxw.css +1 -0
  23. package/dist/ui/client/ui/_app/immutable/assets/Pane.Co7gxzxw.css.br +0 -0
  24. package/dist/ui/client/ui/_app/immutable/assets/Pane.Co7gxzxw.css.gz +0 -0
  25. package/dist/ui/client/ui/_app/immutable/chunks/{Cba3ZwaX.js → 4R6qUa-I.js} +12 -13
  26. package/dist/ui/client/ui/_app/immutable/chunks/4R6qUa-I.js.br +0 -0
  27. package/dist/ui/client/ui/_app/immutable/chunks/4R6qUa-I.js.gz +0 -0
  28. package/dist/ui/client/ui/_app/immutable/chunks/BC9D66S_.js +2 -0
  29. package/dist/ui/client/ui/_app/immutable/chunks/BC9D66S_.js.br +0 -0
  30. package/dist/ui/client/ui/_app/immutable/chunks/BC9D66S_.js.gz +0 -0
  31. package/dist/ui/client/ui/_app/immutable/chunks/BCiTXg3M.js +138 -0
  32. package/dist/ui/client/ui/_app/immutable/chunks/BCiTXg3M.js.br +0 -0
  33. package/dist/ui/client/ui/_app/immutable/chunks/BCiTXg3M.js.gz +0 -0
  34. package/dist/ui/client/ui/_app/immutable/chunks/BGgW64O2.js +1 -0
  35. package/dist/ui/client/ui/_app/immutable/chunks/BGgW64O2.js.br +2 -0
  36. package/dist/ui/client/ui/_app/immutable/chunks/BGgW64O2.js.gz +0 -0
  37. package/dist/ui/client/ui/_app/immutable/chunks/Bvlvl8SZ.js +1 -0
  38. package/dist/ui/client/ui/_app/immutable/chunks/Bvlvl8SZ.js.br +0 -0
  39. package/dist/ui/client/ui/_app/immutable/chunks/Bvlvl8SZ.js.gz +0 -0
  40. package/dist/ui/client/ui/_app/immutable/chunks/ByQTEKOy.js +3 -0
  41. package/dist/ui/client/ui/_app/immutable/chunks/ByQTEKOy.js.br +0 -0
  42. package/dist/ui/client/ui/_app/immutable/chunks/ByQTEKOy.js.gz +0 -0
  43. package/dist/ui/client/ui/_app/immutable/chunks/C-UVUBR9.js +3 -0
  44. package/dist/ui/client/ui/_app/immutable/chunks/C-UVUBR9.js.br +0 -0
  45. package/dist/ui/client/ui/_app/immutable/chunks/C-UVUBR9.js.gz +0 -0
  46. package/dist/ui/client/ui/_app/immutable/chunks/C1Z3Vlq6.js +3 -0
  47. package/dist/ui/client/ui/_app/immutable/chunks/C1Z3Vlq6.js.br +11 -0
  48. package/dist/ui/client/ui/_app/immutable/chunks/C1Z3Vlq6.js.gz +0 -0
  49. package/dist/ui/client/ui/_app/immutable/chunks/CSj31z2g.js +1 -0
  50. package/dist/ui/client/ui/_app/immutable/chunks/CSj31z2g.js.br +2 -0
  51. package/dist/ui/client/ui/_app/immutable/chunks/CSj31z2g.js.gz +0 -0
  52. package/dist/ui/client/ui/_app/immutable/chunks/D7Lf2nU5.js +48 -0
  53. package/dist/ui/client/ui/_app/immutable/chunks/D7Lf2nU5.js.br +0 -0
  54. package/dist/ui/client/ui/_app/immutable/chunks/D7Lf2nU5.js.gz +0 -0
  55. package/dist/ui/client/ui/_app/immutable/chunks/D8AQra8V.js +3 -0
  56. package/dist/ui/client/ui/_app/immutable/chunks/D8AQra8V.js.br +0 -0
  57. package/dist/ui/client/ui/_app/immutable/chunks/D8AQra8V.js.gz +0 -0
  58. package/dist/ui/client/ui/_app/immutable/chunks/DLBNPxq0.js +1 -0
  59. package/dist/ui/client/ui/_app/immutable/chunks/DLBNPxq0.js.br +3 -0
  60. package/dist/ui/client/ui/_app/immutable/chunks/DLBNPxq0.js.gz +0 -0
  61. package/dist/ui/client/ui/_app/immutable/chunks/DMXmTTni.js +1 -0
  62. package/dist/ui/client/ui/_app/immutable/chunks/DMXmTTni.js.br +0 -0
  63. package/dist/ui/client/ui/_app/immutable/chunks/DMXmTTni.js.gz +0 -0
  64. package/dist/ui/client/ui/_app/immutable/chunks/DVjfBgOA.js +1 -0
  65. package/dist/ui/client/ui/_app/immutable/chunks/DVjfBgOA.js.br +0 -0
  66. package/dist/ui/client/ui/_app/immutable/chunks/DVjfBgOA.js.gz +0 -0
  67. package/dist/ui/client/ui/_app/immutable/chunks/EBfbaSFC.js +40 -0
  68. package/dist/ui/client/ui/_app/immutable/chunks/EBfbaSFC.js.br +0 -0
  69. package/dist/ui/client/ui/_app/immutable/chunks/EBfbaSFC.js.gz +0 -0
  70. package/dist/ui/client/ui/_app/immutable/chunks/HjKxdHgL.js +4 -0
  71. package/dist/ui/client/ui/_app/immutable/chunks/HjKxdHgL.js.br +0 -0
  72. package/dist/ui/client/ui/_app/immutable/chunks/HjKxdHgL.js.gz +0 -0
  73. package/dist/ui/client/ui/_app/immutable/chunks/y62iQtQV.js +1 -0
  74. package/dist/ui/client/ui/_app/immutable/chunks/y62iQtQV.js.br +1 -0
  75. package/dist/ui/client/ui/_app/immutable/chunks/y62iQtQV.js.gz +0 -0
  76. package/dist/ui/client/ui/_app/immutable/entry/app.BRCyy_aP.js +2 -0
  77. package/dist/ui/client/ui/_app/immutable/entry/app.BRCyy_aP.js.br +0 -0
  78. package/dist/ui/client/ui/_app/immutable/entry/app.BRCyy_aP.js.gz +0 -0
  79. package/dist/ui/client/ui/_app/immutable/entry/start.ujo8oI9U.js +2 -0
  80. package/dist/ui/client/ui/_app/immutable/entry/start.ujo8oI9U.js.br +5 -0
  81. package/dist/ui/client/ui/_app/immutable/entry/start.ujo8oI9U.js.gz +0 -0
  82. package/dist/ui/client/ui/_app/immutable/nodes/0.CYE8I_uA.js +1 -0
  83. package/dist/ui/client/ui/_app/immutable/nodes/0.CYE8I_uA.js.br +0 -0
  84. package/dist/ui/client/ui/_app/immutable/nodes/0.CYE8I_uA.js.gz +0 -0
  85. package/dist/ui/client/ui/_app/immutable/nodes/1.DTsysZRk.js +1 -0
  86. package/dist/ui/client/ui/_app/immutable/nodes/1.DTsysZRk.js.br +0 -0
  87. package/dist/ui/client/ui/_app/immutable/nodes/1.DTsysZRk.js.gz +0 -0
  88. package/dist/ui/client/ui/_app/immutable/nodes/2.hev1nfuM.js +1 -0
  89. package/dist/ui/client/ui/_app/immutable/nodes/2.hev1nfuM.js.br +0 -0
  90. package/dist/ui/client/ui/_app/immutable/nodes/2.hev1nfuM.js.gz +0 -0
  91. package/dist/ui/client/ui/_app/immutable/nodes/3.CApflji6.js +5 -0
  92. package/dist/ui/client/ui/_app/immutable/nodes/3.CApflji6.js.br +0 -0
  93. package/dist/ui/client/ui/_app/immutable/nodes/3.CApflji6.js.gz +0 -0
  94. package/dist/ui/client/ui/_app/immutable/nodes/4.BkefkGQL.js +160 -0
  95. package/dist/ui/client/ui/_app/immutable/nodes/4.BkefkGQL.js.br +0 -0
  96. package/dist/ui/client/ui/_app/immutable/nodes/4.BkefkGQL.js.gz +0 -0
  97. package/dist/ui/client/ui/_app/immutable/nodes/5.CDYh05RH.js +6 -0
  98. package/dist/ui/client/ui/_app/immutable/nodes/5.CDYh05RH.js.br +0 -0
  99. package/dist/ui/client/ui/_app/immutable/nodes/5.CDYh05RH.js.gz +0 -0
  100. package/dist/ui/client/ui/_app/immutable/nodes/6.DwISzDQO.js +6 -0
  101. package/dist/ui/client/ui/_app/immutable/nodes/6.DwISzDQO.js.br +0 -0
  102. package/dist/ui/client/ui/_app/immutable/nodes/6.DwISzDQO.js.gz +0 -0
  103. package/dist/ui/client/ui/_app/version.json +1 -1
  104. package/dist/ui/client/ui/_app/version.json.br +0 -0
  105. package/dist/ui/client/ui/_app/version.json.gz +0 -0
  106. package/dist/ui/server/.vite/manifest.json +193 -10
  107. package/dist/ui/server/_app/immutable/assets/ExternalLink.CYXazpKA.css +1 -0
  108. package/dist/ui/server/_app/immutable/assets/Pane.Co7gxzxw.css +1 -0
  109. package/dist/ui/server/_app/immutable/assets/{_layout.CnPCLsGJ.css → _layout.DH3e8XLu.css} +1 -1
  110. package/dist/ui/server/_app/immutable/assets/_layout.DSVNnDlO.css +1 -0
  111. package/dist/ui/server/_app/immutable/assets/_page.C0Nhvs_m.css +1 -0
  112. package/dist/ui/server/_app/immutable/assets/_page.DCMlxwLh.css +1 -0
  113. package/dist/ui/server/_app/immutable/assets/_page.DIE1qdmp.css +1 -0
  114. package/dist/ui/server/chunks/ExternalLink.js +12 -0
  115. package/dist/ui/server/chunks/ExternalLink.js.map +1 -0
  116. package/dist/ui/server/chunks/Pane.js +13 -0
  117. package/dist/ui/server/chunks/Pane.js.map +1 -0
  118. package/dist/ui/server/chunks/composition.js +462 -120
  119. package/dist/ui/server/chunks/composition.js.map +1 -1
  120. package/dist/ui/server/chunks/config-state.js +21 -0
  121. package/dist/ui/server/chunks/config-state.js.map +1 -0
  122. package/dist/ui/server/chunks/dialog.js +592 -0
  123. package/dist/ui/server/chunks/dialog.js.map +1 -0
  124. package/dist/ui/server/chunks/filled-button.js +116 -0
  125. package/dist/ui/server/chunks/filled-button.js.map +1 -0
  126. package/dist/ui/server/chunks/icon-button.js +2 -46
  127. package/dist/ui/server/chunks/icon-button.js.map +1 -1
  128. package/dist/ui/server/chunks/icon.js +49 -0
  129. package/dist/ui/server/chunks/icon.js.map +1 -0
  130. package/dist/ui/server/chunks/index-server.js +5 -1
  131. package/dist/ui/server/chunks/index-server.js.map +1 -0
  132. package/dist/ui/server/chunks/instance.js +5 -5
  133. package/dist/ui/server/chunks/internal.js +1 -1
  134. package/dist/ui/server/chunks/navigation.js +9 -13
  135. package/dist/ui/server/chunks/navigation.js.map +1 -1
  136. package/dist/ui/server/chunks/navigation2.js +15 -0
  137. package/dist/ui/server/chunks/navigation2.js.map +1 -0
  138. package/dist/ui/server/chunks/outlined-text-field.js +11 -398
  139. package/dist/ui/server/chunks/outlined-text-field.js.map +1 -1
  140. package/dist/ui/server/chunks/paths.js +2 -0
  141. package/dist/ui/server/chunks/redispatch-event.js +91 -0
  142. package/dist/ui/server/chunks/redispatch-event.js.map +1 -0
  143. package/dist/ui/server/chunks/server2.js +11 -1
  144. package/dist/ui/server/chunks/server2.js.map +1 -1
  145. package/dist/ui/server/chunks/src.js +112 -3
  146. package/dist/ui/server/chunks/src.js.map +1 -1
  147. package/dist/ui/server/chunks/state.js +1 -1
  148. package/dist/ui/server/chunks/static-html.js +38 -0
  149. package/dist/ui/server/chunks/static-html.js.map +1 -0
  150. package/dist/ui/server/chunks/text-button.js +307 -0
  151. package/dist/ui/server/chunks/text-button.js.map +1 -0
  152. package/dist/ui/server/entries/endpoints/api/config/_server.ts.js +4 -17
  153. package/dist/ui/server/entries/endpoints/api/config/_server.ts.js.map +1 -1
  154. package/dist/ui/server/entries/endpoints/api/input/keys/_server.ts.js +14 -0
  155. package/dist/ui/server/entries/endpoints/api/input/keys/_server.ts.js.map +1 -0
  156. package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js +1 -1
  157. package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js +1 -1
  158. package/dist/ui/server/entries/fallbacks/error.svelte.js +1 -1
  159. package/dist/ui/server/entries/hooks.server.js +4 -1
  160. package/dist/ui/server/entries/hooks.server.js.map +1 -1
  161. package/dist/ui/server/entries/pages/_layout.svelte.js +5 -10
  162. package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
  163. package/dist/ui/server/entries/pages/_page.svelte.js +15 -597
  164. package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
  165. package/dist/ui/server/entries/pages/settings/_page.server.ts.js +12 -0
  166. package/dist/ui/server/entries/pages/settings/_page.server.ts.js.map +1 -0
  167. package/dist/ui/server/entries/pages/settings/_page.svelte.js +3470 -70
  168. package/dist/ui/server/entries/pages/settings/_page.svelte.js.map +1 -1
  169. package/dist/ui/server/entries/pages/setup/_layout.svelte.js +51 -0
  170. package/dist/ui/server/entries/pages/setup/_layout.svelte.js.map +1 -0
  171. package/dist/ui/server/entries/pages/setup/_page.svelte.js +225 -3
  172. package/dist/ui/server/entries/pages/setup/_page.svelte.js.map +1 -1
  173. package/dist/ui/server/entries/pages/setup/instructions/_page.server.ts.js +12 -0
  174. package/dist/ui/server/entries/pages/setup/instructions/_page.server.ts.js.map +1 -0
  175. package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js +271 -0
  176. package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js.map +1 -0
  177. package/dist/ui/server/manifest-full.js +21 -5
  178. package/dist/ui/server/manifest.js +21 -5
  179. package/dist/ui/server/nodes/0.js +2 -2
  180. package/dist/ui/server/nodes/1.js +1 -1
  181. package/dist/ui/server/nodes/2.js +4 -6
  182. package/dist/ui/server/nodes/3.js +6 -4
  183. package/dist/ui/server/nodes/4.js +6 -4
  184. package/dist/ui/server/nodes/5.js +8 -0
  185. package/dist/ui/server/nodes/6.js +10 -0
  186. package/dist/ui/server/server.js +21 -5
  187. package/package.json +1 -1
  188. package/dist/ui/client/ui/_app/immutable/assets/0.CnPCLsGJ.css.br +0 -0
  189. package/dist/ui/client/ui/_app/immutable/assets/0.CnPCLsGJ.css.gz +0 -0
  190. package/dist/ui/client/ui/_app/immutable/assets/3.CK2Biket.css +0 -1
  191. package/dist/ui/client/ui/_app/immutable/assets/3.CK2Biket.css.br +0 -0
  192. package/dist/ui/client/ui/_app/immutable/assets/3.CK2Biket.css.gz +0 -0
  193. package/dist/ui/client/ui/_app/immutable/chunks/0YgL1EU2.js +0 -179
  194. package/dist/ui/client/ui/_app/immutable/chunks/0YgL1EU2.js.br +0 -0
  195. package/dist/ui/client/ui/_app/immutable/chunks/0YgL1EU2.js.gz +0 -0
  196. package/dist/ui/client/ui/_app/immutable/chunks/BYvlzyV8.js +0 -1
  197. package/dist/ui/client/ui/_app/immutable/chunks/BYvlzyV8.js.br +0 -2
  198. package/dist/ui/client/ui/_app/immutable/chunks/BYvlzyV8.js.gz +0 -0
  199. package/dist/ui/client/ui/_app/immutable/chunks/BfvDkxmG.js +0 -3
  200. package/dist/ui/client/ui/_app/immutable/chunks/BfvDkxmG.js.br +0 -0
  201. package/dist/ui/client/ui/_app/immutable/chunks/BfvDkxmG.js.gz +0 -0
  202. package/dist/ui/client/ui/_app/immutable/chunks/Cba3ZwaX.js.br +0 -0
  203. package/dist/ui/client/ui/_app/immutable/chunks/Cba3ZwaX.js.gz +0 -0
  204. package/dist/ui/client/ui/_app/immutable/chunks/DErxe_FC.js +0 -3
  205. package/dist/ui/client/ui/_app/immutable/chunks/DErxe_FC.js.br +0 -0
  206. package/dist/ui/client/ui/_app/immutable/chunks/DErxe_FC.js.gz +0 -0
  207. package/dist/ui/client/ui/_app/immutable/chunks/Dqufijaz.js +0 -1
  208. package/dist/ui/client/ui/_app/immutable/chunks/Dqufijaz.js.br +0 -0
  209. package/dist/ui/client/ui/_app/immutable/chunks/Dqufijaz.js.gz +0 -0
  210. package/dist/ui/client/ui/_app/immutable/chunks/WpCriteK.js +0 -1
  211. package/dist/ui/client/ui/_app/immutable/chunks/WpCriteK.js.br +0 -1
  212. package/dist/ui/client/ui/_app/immutable/chunks/WpCriteK.js.gz +0 -0
  213. package/dist/ui/client/ui/_app/immutable/chunks/wbLSPbHY.js +0 -4
  214. package/dist/ui/client/ui/_app/immutable/chunks/wbLSPbHY.js.br +0 -0
  215. package/dist/ui/client/ui/_app/immutable/chunks/wbLSPbHY.js.gz +0 -0
  216. package/dist/ui/client/ui/_app/immutable/entry/app.B6hhDf4F.js +0 -2
  217. package/dist/ui/client/ui/_app/immutable/entry/app.B6hhDf4F.js.br +0 -0
  218. package/dist/ui/client/ui/_app/immutable/entry/app.B6hhDf4F.js.gz +0 -0
  219. package/dist/ui/client/ui/_app/immutable/entry/start.Dluk7nQO.js +0 -2
  220. package/dist/ui/client/ui/_app/immutable/entry/start.Dluk7nQO.js.br +0 -0
  221. package/dist/ui/client/ui/_app/immutable/entry/start.Dluk7nQO.js.gz +0 -0
  222. package/dist/ui/client/ui/_app/immutable/nodes/0.D-lhv0Us.js +0 -1
  223. package/dist/ui/client/ui/_app/immutable/nodes/0.D-lhv0Us.js.br +0 -0
  224. package/dist/ui/client/ui/_app/immutable/nodes/0.D-lhv0Us.js.gz +0 -0
  225. package/dist/ui/client/ui/_app/immutable/nodes/1.Cs4GAsCO.js +0 -1
  226. package/dist/ui/client/ui/_app/immutable/nodes/1.Cs4GAsCO.js.br +0 -2
  227. package/dist/ui/client/ui/_app/immutable/nodes/1.Cs4GAsCO.js.gz +0 -0
  228. package/dist/ui/client/ui/_app/immutable/nodes/2.CmuzlN_T.js +0 -52
  229. package/dist/ui/client/ui/_app/immutable/nodes/2.CmuzlN_T.js.br +0 -0
  230. package/dist/ui/client/ui/_app/immutable/nodes/2.CmuzlN_T.js.gz +0 -0
  231. package/dist/ui/client/ui/_app/immutable/nodes/3.DMXXeBbC.js +0 -5
  232. package/dist/ui/client/ui/_app/immutable/nodes/3.DMXXeBbC.js.br +0 -0
  233. package/dist/ui/client/ui/_app/immutable/nodes/3.DMXXeBbC.js.gz +0 -0
  234. package/dist/ui/client/ui/_app/immutable/nodes/4.CMHCNMDn.js +0 -1
  235. package/dist/ui/client/ui/_app/immutable/nodes/4.CMHCNMDn.js.br +0 -0
  236. package/dist/ui/client/ui/_app/immutable/nodes/4.CMHCNMDn.js.gz +0 -0
  237. package/dist/ui/server/_app/immutable/assets/_page.CK2Biket.css +0 -1
  238. /package/dist/ui/client/ui/_app/immutable/assets/{2.ChCvyBVk.css → 3.ChCvyBVk.css} +0 -0
  239. /package/dist/ui/client/ui/_app/immutable/assets/{2.ChCvyBVk.css.br → 3.ChCvyBVk.css.br} +0 -0
  240. /package/dist/ui/client/ui/_app/immutable/assets/{2.ChCvyBVk.css.gz → 3.ChCvyBVk.css.gz} +0 -0
@@ -1,8 +1,9 @@
1
1
  import { t as getSessions } from "./sessions.remote.js";
2
2
  import { mt as resolve } from "./internal.js";
3
- import { l as SpeechEntrySchema, n as checkDto } from "./src.js";
4
- import { c as getContext, l as setContext } from "./server2.js";
3
+ import { _ as CONFIG_LIMITS, n as checkDto, u as SpeechEntrySchema, v as EXACT_VERSION_PATTERN } from "./src.js";
4
+ import { l as getContext, u as setContext } from "./server2.js";
5
5
  import "./index-server.js";
6
+ import "./paths.js";
6
7
  // ../../node_modules/.pnpm/tslib@2.9.1/node_modules/tslib/tslib.es6.mjs
7
8
  function __decorate(decorators, target, key, desc) {
8
9
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -691,8 +692,8 @@ var windowShim = new WindowShim(constructionToken);
691
692
  var t$2 = globalThis;
692
693
  var e$5 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
693
694
  var s$2 = Symbol();
694
- var o$5 = /* @__PURE__ */ new WeakMap();
695
- var n$4 = class {
695
+ var o$4 = /* @__PURE__ */ new WeakMap();
696
+ var n$3 = class {
696
697
  constructor(t, e, o) {
697
698
  if (this._$cssResult$ = !0, o !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
698
699
  this.cssText = t, this.t = e;
@@ -702,7 +703,7 @@ var n$4 = class {
702
703
  const s = this.t;
703
704
  if (e$5 && void 0 === t) {
704
705
  const e = void 0 !== s && 1 === s.length;
705
- e && (t = o$5.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$5.set(s, t));
706
+ e && (t = o$4.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$4.set(s, t));
706
707
  }
707
708
  return t;
708
709
  }
@@ -710,9 +711,9 @@ var n$4 = class {
710
711
  return this.cssText;
711
712
  }
712
713
  };
713
- var r$4 = (t) => new n$4("string" == typeof t ? t : t + "", void 0, s$2);
714
- var i$4 = (t, ...e) => {
715
- return new n$4(1 === t.length ? t[0] : e.reduce((e, s, o) => e + ((t) => {
714
+ var r$4 = (t) => new n$3("string" == typeof t ? t : t + "", void 0, s$2);
715
+ var i$3 = (t, ...e) => {
716
+ return new n$3(1 === t.length ? t[0] : e.reduce((e, s, o) => e + ((t) => {
716
717
  if (!0 === t._$cssResult$) return t.cssText;
717
718
  if ("number" == typeof t) return t;
718
719
  throw Error("Value passed to 'css' function must be a 'css' function result: " + t + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
@@ -725,17 +726,17 @@ var S$1 = (s, o) => {
725
726
  void 0 !== n && o.setAttribute("nonce", n), o.textContent = e.cssText, s.appendChild(o);
726
727
  }
727
728
  };
728
- var c$3 = e$5 || void 0 === t$2.CSSStyleSheet ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((t) => {
729
+ var c$2 = e$5 || void 0 === t$2.CSSStyleSheet ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((t) => {
729
730
  let e = "";
730
731
  for (const s of t.cssRules) e += s.cssText;
731
732
  return r$4(e);
732
733
  })(t) : t;
733
734
  // ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/node/reactive-element.js
734
- var { is: h$1, defineProperty: r$3, getOwnPropertyDescriptor: o$4, getOwnPropertyNames: n$3, getOwnPropertySymbols: a$2, getPrototypeOf: c$2 } = Object, l$2 = globalThis;
735
- l$2.customElements ??= customElements$1;
736
- var p$1 = l$2.trustedTypes;
735
+ var { is: h$1, defineProperty: r$3, getOwnPropertyDescriptor: o$3, getOwnPropertyNames: n$2, getOwnPropertySymbols: a$1, getPrototypeOf: c$1 } = Object, l$1 = globalThis;
736
+ l$1.customElements ??= customElements$1;
737
+ var p$1 = l$1.trustedTypes;
737
738
  var d$1 = p$1 ? p$1.emptyScript : "";
738
- var u$2 = l$2.reactiveElementPolyfillSupport;
739
+ var u$1 = l$1.reactiveElementPolyfillSupport;
739
740
  var f$1 = (t, s) => t;
740
741
  var b$1 = {
741
742
  toAttribute(t, s) {
@@ -776,7 +777,7 @@ var y$1 = {
776
777
  useDefault: !1,
777
778
  hasChanged: m$1
778
779
  };
779
- Symbol.metadata ??= Symbol("metadata"), l$2.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
780
+ Symbol.metadata ??= Symbol("metadata"), l$1.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
780
781
  var g$1 = class extends (globalThis.HTMLElement ?? HTMLElementShimWithRealType) {
781
782
  static addInitializer(t) {
782
783
  this._$Ei(), (this.l ??= []).push(t);
@@ -791,7 +792,7 @@ var g$1 = class extends (globalThis.HTMLElement ?? HTMLElementShimWithRealType)
791
792
  }
792
793
  }
793
794
  static getPropertyDescriptor(t, s, i) {
794
- const { get: e, set: h } = o$4(this.prototype, t) ?? {
795
+ const { get: e, set: h } = o$3(this.prototype, t) ?? {
795
796
  get() {
796
797
  return this[s];
797
798
  },
@@ -814,13 +815,13 @@ var g$1 = class extends (globalThis.HTMLElement ?? HTMLElementShimWithRealType)
814
815
  }
815
816
  static _$Ei() {
816
817
  if (this.hasOwnProperty(f$1("elementProperties"))) return;
817
- const t = c$2(this);
818
+ const t = c$1(this);
818
819
  t.finalize(), void 0 !== t.l && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
819
820
  }
820
821
  static finalize() {
821
822
  if (this.hasOwnProperty(f$1("finalized"))) return;
822
823
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(f$1("properties"))) {
823
- const t = this.properties, s = [...n$3(t), ...a$2(t)];
824
+ const t = this.properties, s = [...n$2(t), ...a$1(t)];
824
825
  for (const i of s) this.createProperty(i, t[i]);
825
826
  }
826
827
  const t = this[Symbol.metadata];
@@ -839,8 +840,8 @@ var g$1 = class extends (globalThis.HTMLElement ?? HTMLElementShimWithRealType)
839
840
  const s = [];
840
841
  if (Array.isArray(t)) {
841
842
  const e = new Set(t.flat(1 / 0).reverse());
842
- for (const t of e) s.unshift(c$3(t));
843
- } else void 0 !== t && s.push(c$3(t));
843
+ for (const t of e) s.unshift(c$2(t));
844
+ } else void 0 !== t && s.push(c$2(t));
844
845
  return s;
845
846
  }
846
847
  static _$Eu(t, s) {
@@ -962,20 +963,20 @@ var g$1 = class extends (globalThis.HTMLElement ?? HTMLElementShimWithRealType)
962
963
  updated(t) {}
963
964
  firstUpdated(t) {}
964
965
  };
965
- g$1.elementStyles = [], g$1.shadowRootOptions = { mode: "open" }, g$1[f$1("elementProperties")] = /* @__PURE__ */ new Map(), g$1[f$1("finalized")] = /* @__PURE__ */ new Map(), u$2?.({ ReactiveElement: g$1 }), (l$2.reactiveElementVersions ??= []).push("2.1.2");
966
+ g$1.elementStyles = [], g$1.shadowRootOptions = { mode: "open" }, g$1[f$1("elementProperties")] = /* @__PURE__ */ new Map(), g$1[f$1("finalized")] = /* @__PURE__ */ new Map(), u$1?.({ ReactiveElement: g$1 }), (l$1.reactiveElementVersions ??= []).push("2.1.2");
966
967
  // ../../node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/node/decorators/property.js
967
968
  /**
968
969
  * @license
969
970
  * Copyright 2017 Google LLC
970
971
  * SPDX-License-Identifier: BSD-3-Clause
971
- */ var o$3 = {
972
+ */ var o$2 = {
972
973
  attribute: !0,
973
974
  type: String,
974
975
  converter: b$1,
975
976
  reflect: !1,
976
977
  hasChanged: m$1
977
978
  };
978
- var r$2 = (t = o$3, e, r) => {
979
+ var r$2 = (t = o$2, e, r) => {
979
980
  const { kind: n, metadata: i } = r;
980
981
  let s = globalThis.litPropertyMetadata.get(i);
981
982
  if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = /* @__PURE__ */ new Map()), "setter" === n && ((t = Object.create(t)).wrapped = !0), s.set(r.name, t), "accessor" === n) {
@@ -999,7 +1000,7 @@ var r$2 = (t = o$3, e, r) => {
999
1000
  }
1000
1001
  throw Error("Unsupported decorator location: " + n);
1001
1002
  };
1002
- function n$2(t) {
1003
+ function n$1(t) {
1003
1004
  return (e, o) => "object" == typeof o ? r$2(t, e, o) : ((t, e, o) => {
1004
1005
  const r = e.hasOwnProperty(o);
1005
1006
  return e.constructor.createProperty(o, t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
@@ -1011,7 +1012,7 @@ function n$2(t) {
1011
1012
  * Copyright 2017 Google LLC
1012
1013
  * SPDX-License-Identifier: BSD-3-Clause
1013
1014
  */ function r$1(r) {
1014
- return n$2({
1015
+ return n$1({
1015
1016
  ...r,
1016
1017
  state: !0,
1017
1018
  attribute: !1
@@ -1061,25 +1062,25 @@ var e$4 = (e, t, c) => (c.configurable = !0, c.enumerable = !0, Reflect.decorate
1061
1062
  * SPDX-License-Identifier: BSD-3-Clause
1062
1063
  */
1063
1064
  var t$1 = globalThis;
1064
- var i$3 = (t) => t;
1065
+ var i$2 = (t) => t;
1065
1066
  var s$1 = t$1.trustedTypes;
1066
1067
  var e$2 = s$1 ? s$1.createPolicy("lit-html", { createHTML: (t) => t }) : void 0;
1067
1068
  var h = "$lit$";
1068
- var o$2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
1069
- var n$1 = "?" + o$2;
1070
- var r = `<${n$1}>`;
1071
- var l$1 = void 0 === t$1.document ? { createTreeWalker: () => ({}) } : document;
1072
- var c$1 = () => l$1.createComment("");
1073
- var a$1 = (t) => null === t || "object" != typeof t && "function" != typeof t;
1074
- var u$1 = Array.isArray;
1075
- var d = (t) => u$1(t) || "function" == typeof t?.[Symbol.iterator];
1069
+ var o$1 = `lit$${Math.random().toFixed(9).slice(2)}$`;
1070
+ var n = "?" + o$1;
1071
+ var r = `<${n}>`;
1072
+ var l = void 0 === t$1.document ? { createTreeWalker: () => ({}) } : document;
1073
+ var c = () => l.createComment("");
1074
+ var a = (t) => null === t || "object" != typeof t && "function" != typeof t;
1075
+ var u = Array.isArray;
1076
+ var d = (t) => u(t) || "function" == typeof t?.[Symbol.iterator];
1076
1077
  var f = "[ \n\f\r]";
1077
1078
  var v = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
1078
1079
  var _ = /-->/g;
1079
1080
  var m = />/g;
1080
1081
  var p = RegExp(`>|${f}(?:([^\\s"'>=/]+)(${f}*=${f}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g");
1081
1082
  var g = /'/g;
1082
- var $$1 = /"/g;
1083
+ var $ = /"/g;
1083
1084
  var y = /^(?:script|style|textarea|title)$/i;
1084
1085
  var x = (t) => (i, ...s) => ({
1085
1086
  _$litType$: t,
@@ -1087,12 +1088,14 @@ var x = (t) => (i, ...s) => ({
1087
1088
  values: s
1088
1089
  });
1089
1090
  var T = x(1);
1091
+ var b = x(2);
1092
+ var w = x(3);
1090
1093
  var E = Symbol.for("lit-noChange");
1091
1094
  var A = Symbol.for("lit-nothing");
1092
1095
  var C = /* @__PURE__ */ new WeakMap();
1093
- var P = l$1.createTreeWalker(l$1, 129);
1096
+ var P = l.createTreeWalker(l, 129);
1094
1097
  function V(t, i) {
1095
- if (!u$1(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1098
+ if (!u(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
1096
1099
  return void 0 !== e$2 ? e$2.createHTML(i) : i;
1097
1100
  }
1098
1101
  var N = (t, i) => {
@@ -1101,9 +1104,9 @@ var N = (t, i) => {
1101
1104
  for (let i = 0; i < s; i++) {
1102
1105
  const s = t[i];
1103
1106
  let a, u, d = -1, f = 0;
1104
- for (; f < s.length && (c.lastIndex = f, u = c.exec(s), null !== u);) f = c.lastIndex, c === v ? "!--" === u[1] ? c = _ : void 0 !== u[1] ? c = m : void 0 !== u[2] ? (y.test(u[2]) && (n = RegExp("</" + u[2], "g")), c = p) : void 0 !== u[3] && (c = p) : c === p ? ">" === u[0] ? (c = n ?? v, d = -1) : void 0 === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = void 0 === u[3] ? p : "\"" === u[3] ? $$1 : g) : c === $$1 || c === g ? c = p : c === _ || c === m ? c = v : (c = p, n = void 0);
1107
+ for (; f < s.length && (c.lastIndex = f, u = c.exec(s), null !== u);) f = c.lastIndex, c === v ? "!--" === u[1] ? c = _ : void 0 !== u[1] ? c = m : void 0 !== u[2] ? (y.test(u[2]) && (n = RegExp("</" + u[2], "g")), c = p) : void 0 !== u[3] && (c = p) : c === p ? ">" === u[0] ? (c = n ?? v, d = -1) : void 0 === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = void 0 === u[3] ? p : "\"" === u[3] ? $ : g) : c === $ || c === g ? c = p : c === _ || c === m ? c = v : (c = p, n = void 0);
1105
1108
  const x = c === p && t[i + 1].startsWith("/>") ? " " : "";
1106
- l += c === v ? s + r : d >= 0 ? (e.push(a), s.slice(0, d) + h + s.slice(d) + o$2 + x) : s + o$2 + (-2 === d ? i : x);
1109
+ l += c === v ? s + r : d >= 0 ? (e.push(a), s.slice(0, d) + h + s.slice(d) + o$1 + x) : s + o$1 + (-2 === d ? i : x);
1107
1110
  }
1108
1111
  return [V(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")), e];
1109
1112
  };
@@ -1120,7 +1123,7 @@ var S = class S {
1120
1123
  for (; null !== (r = P.nextNode()) && d.length < u;) {
1121
1124
  if (1 === r.nodeType) {
1122
1125
  if (r.hasAttributes()) for (const t of r.getAttributeNames()) if (t.endsWith(h)) {
1123
- const i = v[a++], s = r.getAttribute(t).split(o$2), e = /([.?@])?(.*)/.exec(i);
1126
+ const i = v[a++], s = r.getAttribute(t).split(o$1), e = /([.?@])?(.*)/.exec(i);
1124
1127
  d.push({
1125
1128
  type: 1,
1126
1129
  index: l,
@@ -1128,44 +1131,44 @@ var S = class S {
1128
1131
  strings: s,
1129
1132
  ctor: "." === e[1] ? I : "?" === e[1] ? L : "@" === e[1] ? z : H
1130
1133
  }), r.removeAttribute(t);
1131
- } else t.startsWith(o$2) && (d.push({
1134
+ } else t.startsWith(o$1) && (d.push({
1132
1135
  type: 6,
1133
1136
  index: l
1134
1137
  }), r.removeAttribute(t));
1135
1138
  if (y.test(r.tagName)) {
1136
- const t = r.textContent.split(o$2), i = t.length - 1;
1139
+ const t = r.textContent.split(o$1), i = t.length - 1;
1137
1140
  if (i > 0) {
1138
1141
  r.textContent = s$1 ? s$1.emptyScript : "";
1139
- for (let s = 0; s < i; s++) r.append(t[s], c$1()), P.nextNode(), d.push({
1142
+ for (let s = 0; s < i; s++) r.append(t[s], c()), P.nextNode(), d.push({
1140
1143
  type: 2,
1141
1144
  index: ++l
1142
1145
  });
1143
- r.append(t[i], c$1());
1146
+ r.append(t[i], c());
1144
1147
  }
1145
1148
  }
1146
- } else if (8 === r.nodeType) if (r.data === n$1) d.push({
1149
+ } else if (8 === r.nodeType) if (r.data === n) d.push({
1147
1150
  type: 2,
1148
1151
  index: l
1149
1152
  });
1150
1153
  else {
1151
1154
  let t = -1;
1152
- for (; -1 !== (t = r.data.indexOf(o$2, t + 1));) d.push({
1155
+ for (; -1 !== (t = r.data.indexOf(o$1, t + 1));) d.push({
1153
1156
  type: 7,
1154
1157
  index: l
1155
- }), t += o$2.length - 1;
1158
+ }), t += o$1.length - 1;
1156
1159
  }
1157
1160
  l++;
1158
1161
  }
1159
1162
  }
1160
1163
  static createElement(t, i) {
1161
- const s = l$1.createElement("template");
1164
+ const s = l.createElement("template");
1162
1165
  return s.innerHTML = t, s;
1163
1166
  }
1164
1167
  };
1165
1168
  function M(t, i, s = t, e) {
1166
1169
  if (i === E) return i;
1167
1170
  let h = void 0 !== e ? s._$Co?.[e] : s._$Cl;
1168
- const o = a$1(i) ? void 0 : i._$litDirective$;
1171
+ const o = a(i) ? void 0 : i._$litDirective$;
1169
1172
  return h?.constructor !== o && (h?._$AO?.(!1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? (s._$Co ??= [])[e] = h : s._$Cl = h), void 0 !== h && (i = M(t, h._$AS(t, i.values), h, e)), i;
1170
1173
  }
1171
1174
  var k = class {
@@ -1179,7 +1182,7 @@ var k = class {
1179
1182
  return this._$AM._$AU;
1180
1183
  }
1181
1184
  u(t) {
1182
- const { el: { content: i }, parts: s } = this._$AD, e = (t?.creationScope ?? l$1).importNode(i, !0);
1185
+ const { el: { content: i }, parts: s } = this._$AD, e = (t?.creationScope ?? l).importNode(i, !0);
1183
1186
  P.currentNode = e;
1184
1187
  let h = P.nextNode(), o = 0, n = 0, r = s[0];
1185
1188
  for (; void 0 !== r;) {
@@ -1189,7 +1192,7 @@ var k = class {
1189
1192
  }
1190
1193
  o !== r?.index && (h = P.nextNode(), o++);
1191
1194
  }
1192
- return P.currentNode = l$1, e;
1195
+ return P.currentNode = l, e;
1193
1196
  }
1194
1197
  p(t) {
1195
1198
  let i = 0;
@@ -1215,7 +1218,7 @@ var R = class R {
1215
1218
  return this._$AB;
1216
1219
  }
1217
1220
  _$AI(t, i = this) {
1218
- t = M(this, t, i), a$1(t) ? t === A || null == t || "" === t ? (this._$AH !== A && this._$AR(), this._$AH = A) : t !== this._$AH && t !== E && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : d(t) ? this.k(t) : this._(t);
1221
+ t = M(this, t, i), a(t) ? t === A || null == t || "" === t ? (this._$AH !== A && this._$AR(), this._$AH = A) : t !== this._$AH && t !== E && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : d(t) ? this.k(t) : this._(t);
1219
1222
  }
1220
1223
  O(t) {
1221
1224
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -1224,7 +1227,7 @@ var R = class R {
1224
1227
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
1225
1228
  }
1226
1229
  _(t) {
1227
- this._$AH !== A && a$1(this._$AH) ? this._$AA.nextSibling.data = t : this.T(l$1.createTextNode(t)), this._$AH = t;
1230
+ this._$AH !== A && a(this._$AH) ? this._$AA.nextSibling.data = t : this.T(l.createTextNode(t)), this._$AH = t;
1228
1231
  }
1229
1232
  $(t) {
1230
1233
  const { values: i, _$litType$: s } = t, e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = S.createElement(V(s.h, s.h[0]), this.options)), s);
@@ -1239,16 +1242,16 @@ var R = class R {
1239
1242
  return void 0 === i && C.set(t.strings, i = new S(t)), i;
1240
1243
  }
1241
1244
  k(t) {
1242
- u$1(this._$AH) || (this._$AH = [], this._$AR());
1245
+ u(this._$AH) || (this._$AH = [], this._$AR());
1243
1246
  const i = this._$AH;
1244
1247
  let s, e = 0;
1245
- for (const h of t) e === i.length ? i.push(s = new R(this.O(c$1()), this.O(c$1()), this, this.options)) : s = i[e], s._$AI(h), e++;
1248
+ for (const h of t) e === i.length ? i.push(s = new R(this.O(c()), this.O(c()), this, this.options)) : s = i[e], s._$AI(h), e++;
1246
1249
  e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
1247
1250
  }
1248
1251
  _$AR(t = this._$AA.nextSibling, s) {
1249
1252
  for (this._$AP?.(!1, !0, s); t !== this._$AB;) {
1250
- const s = i$3(t).nextSibling;
1251
- i$3(t).remove(), t = s;
1253
+ const s = i$2(t).nextSibling;
1254
+ i$2(t).remove(), t = s;
1252
1255
  }
1253
1256
  }
1254
1257
  setConnected(t) {
@@ -1268,11 +1271,11 @@ var H = class {
1268
1271
  _$AI(t, i = this, s, e) {
1269
1272
  const h = this.strings;
1270
1273
  let o = !1;
1271
- if (void 0 === h) t = M(this, t, i, 0), o = !a$1(t) || t !== this._$AH && t !== E, o && (this._$AH = t);
1274
+ if (void 0 === h) t = M(this, t, i, 0), o = !a(t) || t !== this._$AH && t !== E, o && (this._$AH = t);
1272
1275
  else {
1273
1276
  const e = t;
1274
1277
  let n, r;
1275
- for (t = h[0], n = 0; n < h.length - 1; n++) r = M(this, e[s + n], i, n), r === E && (r = this._$AH[n]), o ||= !a$1(r) || r !== this._$AH[n], r === A ? t = A : t !== A && (t += (r ?? "") + h[n + 1]), this._$AH[n] = r;
1278
+ for (t = h[0], n = 0; n < h.length - 1; n++) r = M(this, e[s + n], i, n), r === E && (r = this._$AH[n]), o ||= !a(r) || r !== this._$AH[n], r === A ? t = A : t !== A && (t += (r ?? "") + h[n + 1]), this._$AH[n] = r;
1276
1279
  }
1277
1280
  o && !e && this.j(t);
1278
1281
  }
@@ -1322,8 +1325,8 @@ var W = class {
1322
1325
  };
1323
1326
  var Z = {
1324
1327
  M: h,
1325
- P: o$2,
1326
- A: n$1,
1328
+ P: o$1,
1329
+ A: n,
1327
1330
  C: 1,
1328
1331
  L: N,
1329
1332
  R: k,
@@ -1343,7 +1346,7 @@ var B = (t, i, s) => {
1343
1346
  let h = e._$litPart$;
1344
1347
  if (void 0 === h) {
1345
1348
  const t = s?.renderBefore ?? null;
1346
- e._$litPart$ = h = new R(i.insertBefore(c$1(), t), t, void 0, s ?? {});
1349
+ e._$litPart$ = h = new R(i.insertBefore(c(), t), t, void 0, s ?? {});
1347
1350
  }
1348
1351
  return h._$AI(t), h;
1349
1352
  };
@@ -1353,7 +1356,7 @@ var B = (t, i, s) => {
1353
1356
  * Copyright 2017 Google LLC
1354
1357
  * SPDX-License-Identifier: BSD-3-Clause
1355
1358
  */ var s = globalThis;
1356
- var i$2 = class extends g$1 {
1359
+ var i$1 = class extends g$1 {
1357
1360
  constructor() {
1358
1361
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
1359
1362
  }
@@ -1375,9 +1378,9 @@ var i$2 = class extends g$1 {
1375
1378
  return E;
1376
1379
  }
1377
1380
  };
1378
- i$2._$litElement$ = !0, i$2["finalized"] = !0, s.litElementHydrateSupport?.({ LitElement: i$2 });
1379
- var o$1 = s.litElementPolyfillSupport;
1380
- o$1?.({ LitElement: i$2 });
1381
+ i$1._$litElement$ = !0, i$1["finalized"] = !0, s.litElementHydrateSupport?.({ LitElement: i$1 });
1382
+ var o = s.litElementPolyfillSupport;
1383
+ o?.({ LitElement: i$1 });
1381
1384
  (s.litElementVersions ??= []).push("4.2.2");
1382
1385
  // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/internal/controller/attachable-controller.js
1383
1386
  /**
@@ -1477,7 +1480,7 @@ var AttachableController = class {
1477
1480
  *
1478
1481
  * @fires visibility-changed {Event} Fired whenever `visible` changes.
1479
1482
  */
1480
- var FocusRing = class extends i$2 {
1483
+ var FocusRing = class extends i$1 {
1481
1484
  constructor() {
1482
1485
  super(...arguments);
1483
1486
  /**
@@ -1531,11 +1534,11 @@ var FocusRing = class extends i$2 {
1531
1534
  super.update(changed);
1532
1535
  }
1533
1536
  };
1534
- __decorate([n$2({
1537
+ __decorate([n$1({
1535
1538
  type: Boolean,
1536
1539
  reflect: true
1537
1540
  })], FocusRing.prototype, "visible", void 0);
1538
- __decorate([n$2({
1541
+ __decorate([n$1({
1539
1542
  type: Boolean,
1540
1543
  reflect: true
1541
1544
  })], FocusRing.prototype, "inward", void 0);
@@ -1546,7 +1549,7 @@ var HANDLED_BY_FOCUS_RING = Symbol("handledByFocusRing");
1546
1549
  * Copyright 2026 Google LLC
1547
1550
  * SPDX-License-Identifier: Apache-2.0
1548
1551
  */
1549
- var styles$1 = i$4`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
1552
+ var styles$1 = i$3`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
1550
1553
  `;
1551
1554
  styles$1.styleSheet;
1552
1555
  // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/focus/md-focus-ring.js
@@ -1582,7 +1585,7 @@ var e$1 = (t) => (...e) => ({
1582
1585
  _$litDirective$: t,
1583
1586
  values: e
1584
1587
  });
1585
- var i$1 = class {
1588
+ var i = class {
1586
1589
  constructor(t) {}
1587
1590
  get _$AU() {
1588
1591
  return this._$AM._$AU;
@@ -1602,7 +1605,7 @@ var i$1 = class {
1602
1605
  * @license
1603
1606
  * Copyright 2018 Google LLC
1604
1607
  * SPDX-License-Identifier: BSD-3-Clause
1605
- */ var e = e$1(class extends i$1 {
1608
+ */ var e = e$1(class extends i {
1606
1609
  constructor(t$4) {
1607
1610
  if (super(t$4), t$4.type !== t.ATTRIBUTE || "class" !== t$4.name || t$4.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
1608
1611
  }
@@ -1645,6 +1648,52 @@ var EASING = {
1645
1648
  EMPHASIZED_ACCELERATE: "cubic-bezier(.3,0,.8,.15)",
1646
1649
  EMPHASIZED_DECELERATE: "cubic-bezier(.05,.7,.1,1)"
1647
1650
  };
1651
+ /**
1652
+ * Creates an `AnimationSignal` that can be used to cancel a previous task.
1653
+ *
1654
+ * @example
1655
+ * class MyClass {
1656
+ * private labelAnimationSignal = createAnimationSignal();
1657
+ *
1658
+ * private async animateLabel() {
1659
+ * // Start of the task. Previous tasks will be canceled.
1660
+ * const signal = this.labelAnimationSignal.start();
1661
+ *
1662
+ * // Do async work...
1663
+ * if (signal.aborted) {
1664
+ * // Use AbortSignal to check if a request was made to abort after some
1665
+ * // asynchronous work.
1666
+ * return;
1667
+ * }
1668
+ *
1669
+ * const animation = this.animate(...);
1670
+ * // Add event listeners to be notified when the task should be canceled.
1671
+ * signal.addEventListener('abort', () => {
1672
+ * animation.cancel();
1673
+ * });
1674
+ *
1675
+ * animation.addEventListener('finish', () => {
1676
+ * // Tell the signal that the current task is finished.
1677
+ * this.labelAnimationSignal.finish();
1678
+ * });
1679
+ * }
1680
+ * }
1681
+ *
1682
+ * @return An `AnimationSignal`.
1683
+ */
1684
+ function createAnimationSignal() {
1685
+ let animationAbortController = null;
1686
+ return {
1687
+ start() {
1688
+ animationAbortController?.abort();
1689
+ animationAbortController = new AbortController();
1690
+ return animationAbortController.signal;
1691
+ },
1692
+ finish() {
1693
+ animationAbortController = null;
1694
+ }
1695
+ };
1696
+ }
1648
1697
  // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/ripple/internal/ripple.js
1649
1698
  /**
1650
1699
  * @license
@@ -1717,7 +1766,7 @@ var FORCED_COLORS = null;
1717
1766
  /**
1718
1767
  * A ripple component.
1719
1768
  */
1720
- var Ripple = class extends i$2 {
1769
+ var Ripple = class extends i$1 {
1721
1770
  constructor() {
1722
1771
  super(...arguments);
1723
1772
  /**
@@ -1961,7 +2010,7 @@ var Ripple = class extends i$2 {
1961
2010
  }
1962
2011
  onControlChange(prev, next) {}
1963
2012
  };
1964
- __decorate([n$2({
2013
+ __decorate([n$1({
1965
2014
  type: Boolean,
1966
2015
  reflect: true
1967
2016
  })], Ripple.prototype, "disabled", void 0);
@@ -1974,7 +2023,7 @@ __decorate([e$3(".surface")], Ripple.prototype, "mdRoot", void 0);
1974
2023
  * Copyright 2026 Google LLC
1975
2024
  * SPDX-License-Identifier: Apache-2.0
1976
2025
  */
1977
- var styles = i$4`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}
2026
+ var styles = i$3`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}
1978
2027
  `;
1979
2028
  styles.styleSheet;
1980
2029
  // ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/ripple/ripple.js
@@ -1999,40 +2048,6 @@ styles.styleSheet;
1999
2048
  var MdRipple = class MdRipple extends Ripple {};
2000
2049
  MdRipple.styles = [styles];
2001
2050
  MdRipple = __decorate([t$3("md-ripple")], MdRipple);
2002
- // ../../node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/node/static.js
2003
- /**
2004
- * @license
2005
- * Copyright 2020 Google LLC
2006
- * SPDX-License-Identifier: BSD-3-Clause
2007
- */
2008
- var a = Symbol.for("");
2009
- var o = (t) => {
2010
- if (t?.r === a) return t?._$litStatic$;
2011
- };
2012
- var i = (t, ...r) => ({
2013
- _$litStatic$: r.reduce((r, e, a) => r + ((t) => {
2014
- if (void 0 !== t._$litStatic$) return t._$litStatic$;
2015
- throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`);
2016
- })(e) + t[a + 1], t[0]),
2017
- r: a
2018
- });
2019
- var l = /* @__PURE__ */ new Map();
2020
- var n = (t) => (r, ...e) => {
2021
- const a = e.length;
2022
- let s, i;
2023
- const n = [], u = [];
2024
- let c, $ = 0, f = !1;
2025
- for (; $ < a;) {
2026
- for (c = r[$]; $ < a && void 0 !== (i = e[$], s = o(i));) c += s + r[++$], f = !0;
2027
- $ !== a && u.push(i), n.push(c), $++;
2028
- }
2029
- if ($ === a && n.push(r[a]), f) {
2030
- const t = n.join("$$lit$$");
2031
- void 0 === (r = l.get(t)) && (n.raw = n, l.set(t, r = n)), e = u;
2032
- }
2033
- return t(r, ...e);
2034
- };
2035
- var u = n(T);
2036
2051
  /**
2037
2052
  * @license
2038
2053
  * Copyright 2023 Google LLC
@@ -2447,8 +2462,8 @@ function mixinFormAssociated(base) {
2447
2462
  }
2448
2463
  /** @nocollapse */
2449
2464
  FormAssociatedElement.formAssociated = true;
2450
- __decorate([n$2({ noAccessor: true })], FormAssociatedElement.prototype, "name", null);
2451
- __decorate([n$2({
2465
+ __decorate([n$1({ noAccessor: true })], FormAssociatedElement.prototype, "name", null);
2466
+ __decorate([n$1({
2452
2467
  type: Boolean,
2453
2468
  noAccessor: true
2454
2469
  })], FormAssociatedElement.prototype, "disabled", null);
@@ -2491,10 +2506,49 @@ function mixinFormSubmitter(base) {
2491
2506
  this.value = "";
2492
2507
  }
2493
2508
  }
2494
- __decorate([n$2()], FormSubmitterElement.prototype, "type", void 0);
2495
- __decorate([n$2({ reflect: true })], FormSubmitterElement.prototype, "value", void 0);
2509
+ __decorate([n$1()], FormSubmitterElement.prototype, "type", void 0);
2510
+ __decorate([n$1({ reflect: true })], FormSubmitterElement.prototype, "value", void 0);
2496
2511
  return FormSubmitterElement;
2497
2512
  }
2513
+ // src/lib/adapters/browser-clipboard.ts
2514
+ /**
2515
+ * The browser's clipboard. `navigator.clipboard` only exists in a secure context, and the bridge
2516
+ * speaks plain HTTP: opened from another machine, the old selection command has to do it.
2517
+ */
2518
+ var BrowserClipboard = class {
2519
+ async copy(text) {
2520
+ const modern = navigator.clipboard;
2521
+ if (modern !== void 0) try {
2522
+ await modern.writeText(text);
2523
+ return true;
2524
+ } catch {}
2525
+ return copySelected(text);
2526
+ }
2527
+ };
2528
+ /** Copies through a text area that exists only for this, then gives the focus back. */
2529
+ function copySelected(text) {
2530
+ const focused = document.activeElement;
2531
+ const area = document.createElement("textarea");
2532
+ area.value = text;
2533
+ area.readOnly = true;
2534
+ area.setAttribute("aria-hidden", "true");
2535
+ Object.assign(area.style, {
2536
+ position: "fixed",
2537
+ top: "0",
2538
+ left: "0",
2539
+ opacity: "0"
2540
+ });
2541
+ document.body.append(area);
2542
+ try {
2543
+ area.select();
2544
+ return document.execCommand("copy");
2545
+ } catch {
2546
+ return false;
2547
+ } finally {
2548
+ area.remove();
2549
+ if (focused instanceof HTMLElement) focused.focus({ preventScroll: true });
2550
+ }
2551
+ }
2498
2552
  // src/lib/core/theme.ts
2499
2553
  var DEFAULT_THEME = "light";
2500
2554
  /** The choices in the order the settings page lists them. */
@@ -2564,6 +2618,56 @@ function pendingFields(active, saved) {
2564
2618
  const running = flatten(active, "", /* @__PURE__ */ new Map());
2565
2619
  return [...flatten(saved, "", /* @__PURE__ */ new Map())].filter(([path, value]) => running.get(path) !== value).map(([path]) => path);
2566
2620
  }
2621
+ var PORT_MESSAGE = "Enter a port from 1 to 65535.";
2622
+ /**
2623
+ * Reads a port as typed. Only whole numbers from 1 to 65535: the API also takes 0 (a random
2624
+ * port), but a voice that has its port built in can't find that one.
2625
+ */
2626
+ function parsePort(text) {
2627
+ const trimmed = text.trim();
2628
+ if (!/^\d{1,5}$/.test(trimmed)) return {
2629
+ ok: false,
2630
+ message: PORT_MESSAGE
2631
+ };
2632
+ const port = Number(trimmed);
2633
+ return port >= 1 && port <= 65535 ? {
2634
+ ok: true,
2635
+ port
2636
+ } : {
2637
+ ok: false,
2638
+ message: PORT_MESSAGE
2639
+ };
2640
+ }
2641
+ var PLAYWRIGHT_VERSION_MESSAGE = "Enter an exact version like 1.65.0, or leave the field empty.";
2642
+ /** Reads a Playwright version as typed: an exact version, or empty for the bundled one (`null`). */
2643
+ function parsePlaywrightVersion(text) {
2644
+ const trimmed = text.trim();
2645
+ if (trimmed === "") return {
2646
+ ok: true,
2647
+ version: null
2648
+ };
2649
+ return EXACT_VERSION_PATTERN.test(trimmed) ? {
2650
+ ok: true,
2651
+ version: trimmed
2652
+ } : {
2653
+ ok: false,
2654
+ message: PLAYWRIGHT_VERSION_MESSAGE
2655
+ };
2656
+ }
2657
+ var { min: MIN_ENTRIES, max: MAX_ENTRIES } = CONFIG_LIMITS.maxEntries;
2658
+ var MAX_ENTRIES_MESSAGE = `Enter a whole number from ${MIN_ENTRIES} to ${MAX_ENTRIES}.`;
2659
+ /** Reads the size of the speech buffer as typed: a whole number within the API's limits. */
2660
+ function parseMaxEntries(text) {
2661
+ const trimmed = text.trim();
2662
+ const entries = /^\d+$/.test(trimmed) ? Number(trimmed) : NaN;
2663
+ return entries >= MIN_ENTRIES && entries <= MAX_ENTRIES ? {
2664
+ ok: true,
2665
+ entries
2666
+ } : {
2667
+ ok: false,
2668
+ message: MAX_ENTRIES_MESSAGE
2669
+ };
2670
+ }
2567
2671
  // src/lib/adapters/route-request.ts
2568
2672
  var defaultRejection = (error, status) => new Error(error?.message ?? `The request answered ${status}`);
2569
2673
  /** Calls one of the UI's own routes (`url` includes the base path) and rejects unless it is ok. */
@@ -2619,6 +2723,20 @@ var HttpConfigApi = class {
2619
2723
  });
2620
2724
  }
2621
2725
  };
2726
+ // src/lib/adapters/http-keys-api.ts
2727
+ /** Sends key presses through the UI's own route (`url` includes the base path). */
2728
+ var HttpKeysApi = class {
2729
+ url;
2730
+ constructor(url) {
2731
+ this.url = url;
2732
+ }
2733
+ async press(keys) {
2734
+ await routeRequest(this.url, {
2735
+ method: "POST",
2736
+ body: { keys }
2737
+ });
2738
+ }
2739
+ };
2622
2740
  // src/lib/adapters/http-speech-api.ts
2623
2741
  /** Changes the speech through the UI's own markers and speech routes (the urls include the base path). */
2624
2742
  var HttpSpeechApi = class {
@@ -2691,10 +2809,21 @@ var SseSpeechFeed = class {
2691
2809
  handlers.onState("connecting");
2692
2810
  return live ? this.follow(scope, handlers) : this.read(scope, handlers);
2693
2811
  }
2812
+ listen(since, handlers) {
2813
+ const source = this.stream(`since=${since}`, (entry) => handlers.onEntry(entry));
2814
+ source.onopen = () => handlers.onState("live");
2815
+ source.onerror = () => handlers.onState(source.readyState === EventSource.CLOSED ? "failed" : "reconnecting");
2816
+ return () => source.close();
2817
+ }
2694
2818
  follow(scope, handlers) {
2695
- const source = new EventSource(`${this.streamUrl}?session=${encodeURIComponent(String(scope))}&since=0`);
2819
+ const source = this.stream(`session=${encodeURIComponent(String(scope))}&since=0`, (entry) => handlers.onEntry(entry));
2696
2820
  source.onopen = () => handlers.onState("live");
2697
2821
  source.onerror = () => handlers.onState("reconnecting");
2822
+ source.addEventListener("clear", () => handlers.onClear());
2823
+ return () => source.close();
2824
+ }
2825
+ stream(query, onEntry) {
2826
+ const source = new EventSource(`${this.streamUrl}?${query}`);
2698
2827
  source.addEventListener("entry", (event) => {
2699
2828
  let data;
2700
2829
  try {
@@ -2703,10 +2832,9 @@ var SseSpeechFeed = class {
2703
2832
  return;
2704
2833
  }
2705
2834
  const checked = checkDto(SpeechEntrySchema, data);
2706
- if (checked.ok) handlers.onEntry(checked.value);
2835
+ if (checked.ok) onEntry(checked.value);
2707
2836
  });
2708
- source.addEventListener("clear", () => handlers.onClear());
2709
- return () => source.close();
2837
+ return source;
2710
2838
  }
2711
2839
  read(scope, handlers) {
2712
2840
  const abort = new AbortController();
@@ -2808,6 +2936,17 @@ function createConfigStore(api) {
2808
2936
  get pending() {
2809
2937
  return state === null ? [] : pendingFields(state.active, state.saved);
2810
2938
  },
2939
+ /**
2940
+ * Shows the configuration the page's load read, before any request of its own. Call it while
2941
+ * the page renders, on the server too: the stores are per request, so the server's HTML and the
2942
+ * first browser render agree. Unlike a list that is polled, every load's answer replaces what
2943
+ * is shown; `null` (the load failed) changes nothing.
2944
+ */
2945
+ seed(next) {
2946
+ if (next === null) return;
2947
+ state = next;
2948
+ reachable = true;
2949
+ },
2811
2950
  /** Reads the configuration now (also after a failed read, to try again). */
2812
2951
  refresh() {
2813
2952
  return read();
@@ -3095,16 +3234,219 @@ function createThemeStore(storage) {
3095
3234
  }
3096
3235
  };
3097
3236
  }
3237
+ // src/lib/core/setup.ts
3238
+ /** The keys of the check: "read the window title" in NVDA and JAWS. */
3239
+ var CHECK_CHORD = "Insert+T";
3240
+ /** The marker in front of the check's keys, so the speech they cause is told apart. */
3241
+ var CHECK_MARKER = `ui: ${CHECK_CHORD}`;
3242
+ /** How long the check waits for speech someone makes by hand. */
3243
+ var LISTEN_TIMEOUT_MS = 3e4;
3244
+ /** How long it waits for speech after it sent the keys. */
3245
+ var KEYS_TIMEOUT_MS = 5e3;
3246
+ /** After the first speech, the check collects what follows until nothing came for this long. */
3247
+ var QUIET_MS = 1e3;
3248
+ /** The id of the screen reader heading in the Setup instructions, where the check links to. */
3249
+ var SCREEN_READER_ID = "screen-reader-heading";
3250
+ var DOCS_URL = "https://github.com/TimoSto/screenreader-speech-capture/blob";
3251
+ /**
3252
+ * A page of `docs/` on GitHub, as of the bridge's release. Only stable releases are tagged, so a
3253
+ * preview, a development build and an unknown version read `main`.
3254
+ */
3255
+ function docsUrl(version, path) {
3256
+ return `${DOCS_URL}/${version !== null && /^\d+\.\d+\.\d+$/.test(version) ? `screenreader-speech-capture@${version}` : "main"}/docs/${path}`;
3257
+ }
3258
+ /** Where the libraries behind a feature live, by the `backend` name the bridge reports. */
3259
+ var LIBRARY_REPOS = /* @__PURE__ */ new Map([["robotjs", "https://github.com/jitsi/robotjs"], ["koffi", "https://github.com/Koromix/koffi"]]);
3260
+ /** What the bridge itself knows about the setup, one row each. */
3261
+ function deriveCheckRows(status) {
3262
+ const link = (label, path) => ({
3263
+ label,
3264
+ href: docsUrl(status.bridge.version, path)
3265
+ });
3266
+ const row = (id, label, tone, state, help, library = null) => ({
3267
+ id,
3268
+ label,
3269
+ tone,
3270
+ state,
3271
+ library,
3272
+ help: tone === "ok" ? null : "path" in help ? link(help.label, help.path) : help
3273
+ });
3274
+ const { listening, port, encoding, connections } = status.tcp;
3275
+ const voices = [...new Set(connections.flatMap(({ voice }) => voice === null ? [] : [voice]))];
3276
+ const count = connections.length === 1 ? "1 connection" : `${connections.length} connections`;
3277
+ const input = (id, label, { available, backend, reason }, help) => row(id, label, available ? "ok" : "warning", available ? "Available" : `Not available: ${reason ?? "no reason given"}`, help, backend === null ? null : {
3278
+ name: backend,
3279
+ href: LIBRARY_REPOS.get(backend) ?? null
3280
+ });
3281
+ const service = (id, label, { state, version }) => {
3282
+ const [tone, words] = {
3283
+ running: ["ok", `Running, version ${version}`],
3284
+ starting: ["neutral", `Starting, version ${version}`],
3285
+ stopped: ["neutral", "Off"],
3286
+ crashed: ["warning", `Crashed, version ${version}. It restarts by itself.`],
3287
+ failed: ["warning", `Failed, version ${version}`]
3288
+ }[state];
3289
+ return row(id, label, tone, words, {
3290
+ label: "Child services",
3291
+ path: "usage/operations.md#child-service-crashes"
3292
+ });
3293
+ };
3294
+ return [
3295
+ row("listener", "Speech listener", listening ? "ok" : "warning", listening ? `Listening on port ${port} (${encoding})` : `Not listening on port ${port}`, {
3296
+ label: "Troubleshooting",
3297
+ path: "usage/troubleshooting.md#speech"
3298
+ }),
3299
+ row("voice", "Voice connected", connections.length > 0 ? "ok" : "neutral", connections.length > 0 ? `${count}${voices.length > 0 ? ` (voice ${voices.join(", ")})` : ""}` : "None yet: the voice connects with its first words", {
3300
+ label: "Select the voice",
3301
+ screenReader: true
3302
+ }),
3303
+ input("input", "Native input", status.input.native, {
3304
+ label: "Troubleshooting",
3305
+ path: "usage/troubleshooting.md#browser-and-input"
3306
+ }),
3307
+ input("focus", "Window focus", status.input.focus, {
3308
+ label: "Bringing the browser to the front",
3309
+ path: "usage/native-input.md#bringing-the-browser-to-the-front"
3310
+ }),
3311
+ service("playwright", "Playwright server", status.playwright),
3312
+ service("mcp", "Playwright MCP", status.mcp)
3313
+ ];
3314
+ }
3315
+ // src/lib/stores/voice-check.svelte.ts
3316
+ function createVoiceCheckStore(statusApi, probe, keysApi, speechApi) {
3317
+ let phase = "idle";
3318
+ let via = "manual";
3319
+ let entries = [];
3320
+ let reconnecting = false;
3321
+ let failure = "";
3322
+ /** Counts the runs: whatever answers for an earlier one is ignored. */
3323
+ let run = 0;
3324
+ let close = null;
3325
+ let timer;
3326
+ /** Ends the current run: its stream, its timer and every answer still to come. */
3327
+ function finish() {
3328
+ run++;
3329
+ clearTimeout(timer);
3330
+ close?.();
3331
+ close = null;
3332
+ reconnecting = false;
3333
+ }
3334
+ function fail(message) {
3335
+ finish();
3336
+ phase = "failed";
3337
+ failure = message;
3338
+ }
3339
+ /** Gives up after `ms`. A lost connection is a failure, not silence. */
3340
+ function giveUpAfter(ms) {
3341
+ timer = setTimeout(() => {
3342
+ if (reconnecting) {
3343
+ fail("The connection to the bridge was lost.");
3344
+ return;
3345
+ }
3346
+ finish();
3347
+ phase = "silent";
3348
+ }, ms);
3349
+ }
3350
+ return {
3351
+ get phase() {
3352
+ return phase;
3353
+ },
3354
+ get via() {
3355
+ return via;
3356
+ },
3357
+ /** The speech that arrived, oldest first. */
3358
+ get entries() {
3359
+ return entries;
3360
+ },
3361
+ get reconnecting() {
3362
+ return reconnecting;
3363
+ },
3364
+ /** Why the check failed. */
3365
+ get failure() {
3366
+ return failure;
3367
+ },
3368
+ /**
3369
+ * Waits for new speech. With `keys` it also sends {@link CHECK_CHORD}, after a marker, and
3370
+ * only counts the speech after that marker. Replaces a run that is still going.
3371
+ */
3372
+ async start(how) {
3373
+ finish();
3374
+ const mine = run;
3375
+ via = how;
3376
+ phase = "starting";
3377
+ entries = [];
3378
+ failure = "";
3379
+ let since;
3380
+ try {
3381
+ since = (await statusApi.fetch()).buffer.lastSeq ?? 0;
3382
+ } catch {
3383
+ if (mine === run) fail("The bridge is not reachable.");
3384
+ return;
3385
+ }
3386
+ if (mine !== run) return;
3387
+ let counting = how === "manual";
3388
+ phase = "listening";
3389
+ close = probe.listen(since, {
3390
+ onEntry(entry) {
3391
+ if (mine !== run) return;
3392
+ if (entry.kind === "marker") {
3393
+ if (entry.text === "ui: Insert+T") counting = true;
3394
+ return;
3395
+ }
3396
+ if (!counting) return;
3397
+ entries = [...entries, entry];
3398
+ phase = "heard";
3399
+ clearTimeout(timer);
3400
+ if (entries.length >= 5) finish();
3401
+ else timer = setTimeout(finish, QUIET_MS);
3402
+ },
3403
+ onState(state) {
3404
+ if (mine !== run) return;
3405
+ if (state !== "failed") reconnecting = state === "reconnecting";
3406
+ else if (phase === "heard") finish();
3407
+ else fail("The speech stream is not available.");
3408
+ }
3409
+ });
3410
+ if (how === "manual") {
3411
+ giveUpAfter(LISTEN_TIMEOUT_MS);
3412
+ return;
3413
+ }
3414
+ try {
3415
+ await speechApi.addMarker(CHECK_MARKER);
3416
+ if (mine !== run) return;
3417
+ await keysApi.press(CHECK_CHORD);
3418
+ } catch (cause) {
3419
+ if (mine === run && entries.length === 0) fail(cause instanceof Error ? cause.message : "The keys could not be sent.");
3420
+ return;
3421
+ }
3422
+ if (mine === run && entries.length === 0) giveUpAfter(KEYS_TIMEOUT_MS);
3423
+ },
3424
+ /** Stops listening and forgets the result. */
3425
+ stop() {
3426
+ finish();
3427
+ phase = "idle";
3428
+ entries = [];
3429
+ failure = "";
3430
+ }
3431
+ };
3432
+ }
3098
3433
  // src/lib/composition.ts
3099
3434
  /** Wires the adapters into the stores; components get the stores, never the adapters. */
3100
3435
  function createAppStores() {
3436
+ const statusApi = new HttpStatusApi(resolve("/api/status"));
3437
+ const speechFeed = new SseSpeechFeed(resolve("/api/speech/stream"), resolve("/api/speech"));
3438
+ const speechApi = new HttpSpeechApi(resolve("/api/markers"), resolve("/api/speech"));
3439
+ const clipboard = new BrowserClipboard();
3101
3440
  return {
3102
3441
  theme: createThemeStore(new BrowserThemeStorage()),
3103
- status: createStatusStore(new HttpStatusApi(resolve("/api/status"))),
3442
+ status: createStatusStore(statusApi),
3104
3443
  config: createConfigStore(new HttpConfigApi(resolve("/api/config"))),
3105
3444
  sessions: createSessionsStore(new HttpSessionsApi(resolve("/api/sessions"))),
3106
- speech: createSpeechStore(new SseSpeechFeed(resolve("/api/speech/stream"), resolve("/api/speech")), new HttpSpeechApi(resolve("/api/markers"), resolve("/api/speech"))),
3107
- sessionsPane: createSessionsPaneStore(new BrowserSessionsPaneStorage())
3445
+ speech: createSpeechStore(speechFeed, speechApi),
3446
+ voiceCheck: createVoiceCheckStore(statusApi, speechFeed, new HttpKeysApi(resolve("/api/input/keys")), speechApi),
3447
+ sessionsPane: createSessionsPaneStore(new BrowserSessionsPaneStorage()),
3448
+ /** A port without state, so there is no store around it. */
3449
+ clipboard
3108
3450
  };
3109
3451
  }
3110
3452
  /** The context key of the stores (component tests pass their own stores under it). */
@@ -3123,6 +3465,6 @@ function appStores() {
3123
3465
  if (stores === void 0) throw new Error("appStores() needs provideAppStores() in a parent");
3124
3466
  return stores;
3125
3467
  }
3126
- export { e$3 as A, t as C, E as D, B as E, t$3 as F, __decorate as I, r$1 as M, n$2 as N, T as O, i$4 as P, i$1 as S, A as T, i as _, canDeleteSession as a, e as b, THEMES as c, mixinFormAssociated as d, internals as f, mixinDelegatesAria as g, setupDispatchHooks as h, canClearSpeech as i, e$4 as j, Z as k, mixinFormSubmitter as l, afterDispatch as m, provideAppStores as n, formatReceivedTime as o, mixinElementInternals as p, canAddMarker as r, logHeading as s, appStores as t, getFormValue as u, u as v, i$2 as w, e$1 as x, EASING as y };
3468
+ export { i as A, e$3 as B, afterDispatch as C, createAnimationSignal as D, EASING as E, E as F, t$3 as G, r$1 as H, T as I, __decorate as K, Z as L, i$1 as M, A as N, e as O, B as P, b as R, mixinElementInternals as S, mixinDelegatesAria as T, n$1 as U, e$4 as V, i$3 as W, THEMES as _, deriveCheckRows as a, mixinFormAssociated as b, canClearSpeech as c, logHeading as d, SettingRejected as f, pendingFields as g, parsePort as h, SCREEN_READER_ID as i, t as j, e$1 as k, canDeleteSession as l, parsePlaywrightVersion as m, provideAppStores as n, docsUrl as o, parseMaxEntries as p, CHECK_CHORD as r, canAddMarker as s, appStores as t, formatReceivedTime as u, mixinFormSubmitter as v, setupDispatchHooks as w, internals as x, getFormValue as y, w as z };
3127
3469
 
3128
3470
  //# sourceMappingURL=composition.js.map