@screenreader-speech-capture/bridge 0.2.0 → 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 (223) hide show
  1. package/dist/cli.mjs +1109 -792
  2. package/dist/ui/adapter-node.js +1 -1
  3. package/dist/ui/client/ui/_app/immutable/chunks/BEImj5AP.js +1 -0
  4. package/dist/ui/client/ui/_app/immutable/chunks/BEImj5AP.js.br +0 -0
  5. package/dist/ui/client/ui/_app/immutable/chunks/BEImj5AP.js.gz +0 -0
  6. package/dist/ui/client/ui/_app/immutable/chunks/B__KpOuX.js +3 -0
  7. package/dist/ui/client/ui/_app/immutable/chunks/B__KpOuX.js.br +0 -0
  8. package/dist/ui/client/ui/_app/immutable/chunks/B__KpOuX.js.gz +0 -0
  9. package/dist/ui/client/ui/_app/immutable/chunks/BkoDSEOx.js +1 -0
  10. package/dist/ui/client/ui/_app/immutable/chunks/BkoDSEOx.js.br +0 -0
  11. package/dist/ui/client/ui/_app/immutable/chunks/BkoDSEOx.js.gz +0 -0
  12. package/dist/ui/client/ui/_app/immutable/chunks/BlC5mir6.js +1 -0
  13. package/dist/ui/client/ui/_app/immutable/chunks/BlC5mir6.js.br +2 -0
  14. package/dist/ui/client/ui/_app/immutable/chunks/BlC5mir6.js.gz +0 -0
  15. package/dist/ui/client/ui/_app/immutable/chunks/BquQTeuV.js +1 -0
  16. package/dist/ui/client/ui/_app/immutable/chunks/BquQTeuV.js.br +0 -0
  17. package/dist/ui/client/ui/_app/immutable/chunks/BquQTeuV.js.gz +0 -0
  18. package/dist/ui/client/ui/_app/immutable/chunks/BtnuBvK5.js +1 -0
  19. package/dist/ui/client/ui/_app/immutable/chunks/BtnuBvK5.js.br +1 -0
  20. package/dist/ui/client/ui/_app/immutable/chunks/BtnuBvK5.js.gz +0 -0
  21. package/dist/ui/client/ui/_app/immutable/chunks/{Dk73DTz3.js → BuwZGWCm.js} +21 -21
  22. package/dist/ui/client/ui/_app/immutable/chunks/BuwZGWCm.js.br +0 -0
  23. package/dist/ui/client/ui/_app/immutable/chunks/BuwZGWCm.js.gz +0 -0
  24. package/dist/ui/client/ui/_app/immutable/chunks/Bxh3K0TK.js +1 -0
  25. package/dist/ui/client/ui/_app/immutable/chunks/Bxh3K0TK.js.br +0 -0
  26. package/dist/ui/client/ui/_app/immutable/chunks/Bxh3K0TK.js.gz +0 -0
  27. package/dist/ui/client/ui/_app/immutable/chunks/C06IiL6m.js +1 -0
  28. package/dist/ui/client/ui/_app/immutable/chunks/C06IiL6m.js.br +2 -0
  29. package/dist/ui/client/ui/_app/immutable/chunks/C06IiL6m.js.gz +0 -0
  30. package/dist/ui/client/ui/_app/immutable/chunks/C75l7c5l.js +1 -0
  31. package/dist/ui/client/ui/_app/immutable/chunks/C75l7c5l.js.br +0 -0
  32. package/dist/ui/client/ui/_app/immutable/chunks/C75l7c5l.js.gz +0 -0
  33. package/dist/ui/client/ui/_app/immutable/chunks/{hhZsYtkz.js → CAZ56n62.js} +3 -3
  34. package/dist/ui/client/ui/_app/immutable/chunks/CAZ56n62.js.br +0 -0
  35. package/dist/ui/client/ui/_app/immutable/chunks/CAZ56n62.js.gz +0 -0
  36. package/dist/ui/client/ui/_app/immutable/chunks/Cb63XE4v.js +33 -0
  37. package/dist/ui/client/ui/_app/immutable/chunks/Cb63XE4v.js.br +0 -0
  38. package/dist/ui/client/ui/_app/immutable/chunks/Cb63XE4v.js.gz +0 -0
  39. package/dist/ui/client/ui/_app/immutable/chunks/DRNNJMYk.js +5 -0
  40. package/dist/ui/client/ui/_app/immutable/chunks/DRNNJMYk.js.br +0 -0
  41. package/dist/ui/client/ui/_app/immutable/chunks/DRNNJMYk.js.gz +0 -0
  42. package/dist/ui/client/ui/_app/immutable/chunks/DWjfB3ah.js +1 -0
  43. package/dist/ui/client/ui/_app/immutable/chunks/DWjfB3ah.js.br +0 -0
  44. package/dist/ui/client/ui/_app/immutable/chunks/DWjfB3ah.js.gz +0 -0
  45. package/dist/ui/client/ui/_app/immutable/chunks/JsC3ASJq.js +3 -0
  46. package/dist/ui/client/ui/_app/immutable/chunks/JsC3ASJq.js.br +0 -0
  47. package/dist/ui/client/ui/_app/immutable/chunks/JsC3ASJq.js.gz +0 -0
  48. package/dist/ui/client/ui/_app/immutable/chunks/{DU8ibkb0.js → OAsMjdHF.js} +13 -13
  49. package/dist/ui/client/ui/_app/immutable/chunks/OAsMjdHF.js.br +0 -0
  50. package/dist/ui/client/ui/_app/immutable/chunks/OAsMjdHF.js.gz +0 -0
  51. package/dist/ui/client/ui/_app/immutable/chunks/UKukklIc.js +1 -0
  52. package/dist/ui/client/ui/_app/immutable/chunks/UKukklIc.js.br +2 -0
  53. package/dist/ui/client/ui/_app/immutable/chunks/UKukklIc.js.gz +0 -0
  54. package/dist/ui/client/ui/_app/immutable/chunks/{DoG5cwE3.js → VxDST09k.js} +1 -1
  55. package/dist/ui/client/ui/_app/immutable/chunks/VxDST09k.js.br +0 -0
  56. package/dist/ui/client/ui/_app/immutable/chunks/VxDST09k.js.gz +0 -0
  57. package/dist/ui/client/ui/_app/immutable/chunks/{CEGGem4o.js → vPs9G1oN.js} +36 -36
  58. package/dist/ui/client/ui/_app/immutable/chunks/vPs9G1oN.js.br +0 -0
  59. package/dist/ui/client/ui/_app/immutable/chunks/vPs9G1oN.js.gz +0 -0
  60. package/dist/ui/client/ui/_app/immutable/chunks/{Bq3k_s8n.js → w5i9ZoX_.js} +2 -2
  61. package/dist/ui/client/ui/_app/immutable/chunks/w5i9ZoX_.js.br +0 -0
  62. package/dist/ui/client/ui/_app/immutable/chunks/w5i9ZoX_.js.gz +0 -0
  63. package/dist/ui/client/ui/_app/immutable/entry/app.B2MXuPeH.js +2 -0
  64. package/dist/ui/client/ui/_app/immutable/entry/app.B2MXuPeH.js.br +0 -0
  65. package/dist/ui/client/ui/_app/immutable/entry/app.B2MXuPeH.js.gz +0 -0
  66. package/dist/ui/client/ui/_app/immutable/entry/start.4hiWLKwq.js +2 -0
  67. package/dist/ui/client/ui/_app/immutable/entry/start.4hiWLKwq.js.br +0 -0
  68. package/dist/ui/client/ui/_app/immutable/entry/start.4hiWLKwq.js.gz +0 -0
  69. package/dist/ui/client/ui/_app/immutable/nodes/0.CEfoZ0Mb.js +1 -0
  70. package/dist/ui/client/ui/_app/immutable/nodes/0.CEfoZ0Mb.js.br +0 -0
  71. package/dist/ui/client/ui/_app/immutable/nodes/0.CEfoZ0Mb.js.gz +0 -0
  72. package/dist/ui/client/ui/_app/immutable/nodes/1.BBl7b45u.js +1 -0
  73. package/dist/ui/client/ui/_app/immutable/nodes/1.BBl7b45u.js.br +0 -0
  74. package/dist/ui/client/ui/_app/immutable/nodes/1.BBl7b45u.js.gz +0 -0
  75. package/dist/ui/client/ui/_app/immutable/nodes/2.4VpydhMh.js +1 -0
  76. package/dist/ui/client/ui/_app/immutable/nodes/2.4VpydhMh.js.br +0 -0
  77. package/dist/ui/client/ui/_app/immutable/nodes/2.4VpydhMh.js.gz +0 -0
  78. package/dist/ui/client/ui/_app/immutable/nodes/3.BzIz3rja.js +5 -0
  79. package/dist/ui/client/ui/_app/immutable/nodes/3.BzIz3rja.js.br +0 -0
  80. package/dist/ui/client/ui/_app/immutable/nodes/3.BzIz3rja.js.gz +0 -0
  81. package/dist/ui/client/ui/_app/immutable/nodes/4.B9Ke6ZBV.js +180 -0
  82. package/dist/ui/client/ui/_app/immutable/nodes/4.B9Ke6ZBV.js.br +0 -0
  83. package/dist/ui/client/ui/_app/immutable/nodes/4.B9Ke6ZBV.js.gz +0 -0
  84. package/dist/ui/client/ui/_app/immutable/nodes/5.Cm6I95kb.js +6 -0
  85. package/dist/ui/client/ui/_app/immutable/nodes/5.Cm6I95kb.js.br +0 -0
  86. package/dist/ui/client/ui/_app/immutable/nodes/5.Cm6I95kb.js.gz +0 -0
  87. package/dist/ui/client/ui/_app/immutable/nodes/6.B_1Pts2e.js +6 -0
  88. package/dist/ui/client/ui/_app/immutable/nodes/6.B_1Pts2e.js.br +0 -0
  89. package/dist/ui/client/ui/_app/immutable/nodes/6.B_1Pts2e.js.gz +0 -0
  90. package/dist/ui/client/ui/_app/version.json +1 -1
  91. package/dist/ui/client/ui/_app/version.json.br +0 -0
  92. package/dist/ui/client/ui/_app/version.json.gz +0 -0
  93. package/dist/ui/server/.vite/manifest.json +83 -38
  94. package/dist/ui/server/chunks/{composition.js → app-context.js} +5 -965
  95. package/dist/ui/server/chunks/app-context.js.map +1 -0
  96. package/dist/ui/server/chunks/config2.js +106 -0
  97. package/dist/ui/server/chunks/config2.js.map +1 -0
  98. package/dist/ui/server/chunks/dialog.js +1 -1
  99. package/dist/ui/server/chunks/instance.js +3 -3
  100. package/dist/ui/server/chunks/internal.js +1 -1
  101. package/dist/ui/server/chunks/outlined-button.js +1 -1
  102. package/dist/ui/server/chunks/outlined-text-field.js +1 -1
  103. package/dist/ui/server/chunks/redispatch-event.js +1 -1
  104. package/dist/ui/server/chunks/rolldown-runtime.js +12 -0
  105. package/dist/ui/server/chunks/rules.js +173 -0
  106. package/dist/ui/server/chunks/rules.js.map +1 -0
  107. package/dist/ui/server/chunks/sessions.remote.js +1 -11
  108. package/dist/ui/server/chunks/sessions.remote.js.map +1 -1
  109. package/dist/ui/server/chunks/setup.js +86 -0
  110. package/dist/ui/server/chunks/setup.js.map +1 -0
  111. package/dist/ui/server/chunks/{icon-button.js → speech.js} +42 -3
  112. package/dist/ui/server/chunks/speech.js.map +1 -0
  113. package/dist/ui/server/chunks/src.js +37 -183
  114. package/dist/ui/server/chunks/src.js.map +1 -1
  115. package/dist/ui/server/chunks/static-html.js +1 -1
  116. package/dist/ui/server/chunks/text-button.js +1 -1
  117. package/dist/ui/server/chunks/validate.js +23 -0
  118. package/dist/ui/server/chunks/validate.js.map +1 -0
  119. package/dist/ui/server/chunks/vocabulary.js +19 -0
  120. package/dist/ui/server/chunks/vocabulary.js.map +1 -0
  121. package/dist/ui/server/entries/endpoints/api/config/_server.ts.js +4 -2
  122. package/dist/ui/server/entries/endpoints/api/config/_server.ts.js.map +1 -1
  123. package/dist/ui/server/entries/endpoints/api/input/keys/_server.ts.js +15 -5
  124. package/dist/ui/server/entries/endpoints/api/input/keys/_server.ts.js.map +1 -1
  125. package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js +4 -2
  126. package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js.map +1 -1
  127. package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js +4 -2
  128. package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js.map +1 -1
  129. package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js +10 -13
  130. package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js.map +1 -1
  131. package/dist/ui/server/entries/endpoints/api/status/_server.ts.js +2 -1
  132. package/dist/ui/server/entries/endpoints/api/status/_server.ts.js.map +1 -1
  133. package/dist/ui/server/entries/hooks.server.js +30 -25
  134. package/dist/ui/server/entries/hooks.server.js.map +1 -1
  135. package/dist/ui/server/entries/pages/_layout.svelte.js +750 -3
  136. package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
  137. package/dist/ui/server/entries/pages/_page.svelte.js +34 -25
  138. package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
  139. package/dist/ui/server/entries/pages/settings/_page.svelte.js +5 -3
  140. package/dist/ui/server/entries/pages/settings/_page.svelte.js.map +1 -1
  141. package/dist/ui/server/entries/pages/setup/_page.svelte.js +2 -1
  142. package/dist/ui/server/entries/pages/setup/_page.svelte.js.map +1 -1
  143. package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js +3 -2
  144. package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js.map +1 -1
  145. package/dist/ui/server/manifest-full.js +1 -1
  146. package/dist/ui/server/manifest.js +1 -1
  147. package/dist/ui/server/nodes/0.js +1 -1
  148. package/dist/ui/server/nodes/1.js +1 -1
  149. package/dist/ui/server/nodes/2.js +1 -1
  150. package/dist/ui/server/nodes/3.js +1 -1
  151. package/dist/ui/server/nodes/4.js +1 -1
  152. package/dist/ui/server/nodes/5.js +1 -1
  153. package/dist/ui/server/nodes/6.js +1 -1
  154. package/dist/ui/server/server.js +1 -1
  155. package/package.json +1 -1
  156. package/dist/ui/client/ui/_app/immutable/chunks/0FroJ-XN.js +0 -3
  157. package/dist/ui/client/ui/_app/immutable/chunks/0FroJ-XN.js.br +0 -0
  158. package/dist/ui/client/ui/_app/immutable/chunks/0FroJ-XN.js.gz +0 -0
  159. package/dist/ui/client/ui/_app/immutable/chunks/B_ZElYu_.js +0 -1
  160. package/dist/ui/client/ui/_app/immutable/chunks/B_ZElYu_.js.br +0 -2
  161. package/dist/ui/client/ui/_app/immutable/chunks/B_ZElYu_.js.gz +0 -0
  162. package/dist/ui/client/ui/_app/immutable/chunks/Bq3k_s8n.js.br +0 -0
  163. package/dist/ui/client/ui/_app/immutable/chunks/Bq3k_s8n.js.gz +0 -0
  164. package/dist/ui/client/ui/_app/immutable/chunks/CEGGem4o.js.br +0 -0
  165. package/dist/ui/client/ui/_app/immutable/chunks/CEGGem4o.js.gz +0 -0
  166. package/dist/ui/client/ui/_app/immutable/chunks/CVpgcnu3.js +0 -1
  167. package/dist/ui/client/ui/_app/immutable/chunks/CVpgcnu3.js.br +0 -0
  168. package/dist/ui/client/ui/_app/immutable/chunks/CVpgcnu3.js.gz +0 -0
  169. package/dist/ui/client/ui/_app/immutable/chunks/Cwz551Q0.js +0 -5
  170. package/dist/ui/client/ui/_app/immutable/chunks/Cwz551Q0.js.br +0 -0
  171. package/dist/ui/client/ui/_app/immutable/chunks/Cwz551Q0.js.gz +0 -0
  172. package/dist/ui/client/ui/_app/immutable/chunks/D-2Nx62w.js +0 -1
  173. package/dist/ui/client/ui/_app/immutable/chunks/D-2Nx62w.js.br +0 -4
  174. package/dist/ui/client/ui/_app/immutable/chunks/D-2Nx62w.js.gz +0 -0
  175. package/dist/ui/client/ui/_app/immutable/chunks/DHsTyp2W.js +0 -1
  176. package/dist/ui/client/ui/_app/immutable/chunks/DHsTyp2W.js.br +0 -2
  177. package/dist/ui/client/ui/_app/immutable/chunks/DHsTyp2W.js.gz +0 -0
  178. package/dist/ui/client/ui/_app/immutable/chunks/DJvJc_zO.js +0 -33
  179. package/dist/ui/client/ui/_app/immutable/chunks/DJvJc_zO.js.br +0 -0
  180. package/dist/ui/client/ui/_app/immutable/chunks/DJvJc_zO.js.gz +0 -0
  181. package/dist/ui/client/ui/_app/immutable/chunks/DU8ibkb0.js.br +0 -0
  182. package/dist/ui/client/ui/_app/immutable/chunks/DU8ibkb0.js.gz +0 -0
  183. package/dist/ui/client/ui/_app/immutable/chunks/Dk73DTz3.js.br +0 -0
  184. package/dist/ui/client/ui/_app/immutable/chunks/Dk73DTz3.js.gz +0 -0
  185. package/dist/ui/client/ui/_app/immutable/chunks/DoG5cwE3.js.br +0 -3
  186. package/dist/ui/client/ui/_app/immutable/chunks/DoG5cwE3.js.gz +0 -0
  187. package/dist/ui/client/ui/_app/immutable/chunks/Dvxhfd7j.js +0 -3
  188. package/dist/ui/client/ui/_app/immutable/chunks/Dvxhfd7j.js.br +0 -0
  189. package/dist/ui/client/ui/_app/immutable/chunks/Dvxhfd7j.js.gz +0 -0
  190. package/dist/ui/client/ui/_app/immutable/chunks/DzInmTUe.js +0 -1
  191. package/dist/ui/client/ui/_app/immutable/chunks/DzInmTUe.js.br +0 -1
  192. package/dist/ui/client/ui/_app/immutable/chunks/DzInmTUe.js.gz +0 -0
  193. package/dist/ui/client/ui/_app/immutable/chunks/hhZsYtkz.js.br +0 -0
  194. package/dist/ui/client/ui/_app/immutable/chunks/hhZsYtkz.js.gz +0 -0
  195. package/dist/ui/client/ui/_app/immutable/entry/app.Bic9wlww.js +0 -2
  196. package/dist/ui/client/ui/_app/immutable/entry/app.Bic9wlww.js.br +0 -0
  197. package/dist/ui/client/ui/_app/immutable/entry/app.Bic9wlww.js.gz +0 -0
  198. package/dist/ui/client/ui/_app/immutable/entry/start.DqIv9xYX.js +0 -2
  199. package/dist/ui/client/ui/_app/immutable/entry/start.DqIv9xYX.js.br +0 -0
  200. package/dist/ui/client/ui/_app/immutable/entry/start.DqIv9xYX.js.gz +0 -0
  201. package/dist/ui/client/ui/_app/immutable/nodes/0.IqK6bsxB.js +0 -1
  202. package/dist/ui/client/ui/_app/immutable/nodes/0.IqK6bsxB.js.br +0 -0
  203. package/dist/ui/client/ui/_app/immutable/nodes/0.IqK6bsxB.js.gz +0 -0
  204. package/dist/ui/client/ui/_app/immutable/nodes/1.C81neQJL.js +0 -1
  205. package/dist/ui/client/ui/_app/immutable/nodes/1.C81neQJL.js.br +0 -0
  206. package/dist/ui/client/ui/_app/immutable/nodes/1.C81neQJL.js.gz +0 -0
  207. package/dist/ui/client/ui/_app/immutable/nodes/2.CmlyeAx_.js +0 -1
  208. package/dist/ui/client/ui/_app/immutable/nodes/2.CmlyeAx_.js.br +0 -0
  209. package/dist/ui/client/ui/_app/immutable/nodes/2.CmlyeAx_.js.gz +0 -0
  210. package/dist/ui/client/ui/_app/immutable/nodes/3.DYZ3H5TS.js +0 -5
  211. package/dist/ui/client/ui/_app/immutable/nodes/3.DYZ3H5TS.js.br +0 -0
  212. package/dist/ui/client/ui/_app/immutable/nodes/3.DYZ3H5TS.js.gz +0 -0
  213. package/dist/ui/client/ui/_app/immutable/nodes/4.Lwlmq1AY.js +0 -180
  214. package/dist/ui/client/ui/_app/immutable/nodes/4.Lwlmq1AY.js.br +0 -0
  215. package/dist/ui/client/ui/_app/immutable/nodes/4.Lwlmq1AY.js.gz +0 -0
  216. package/dist/ui/client/ui/_app/immutable/nodes/5.rBMVkFpN.js +0 -6
  217. package/dist/ui/client/ui/_app/immutable/nodes/5.rBMVkFpN.js.br +0 -0
  218. package/dist/ui/client/ui/_app/immutable/nodes/5.rBMVkFpN.js.gz +0 -0
  219. package/dist/ui/client/ui/_app/immutable/nodes/6.nui9awM2.js +0 -6
  220. package/dist/ui/client/ui/_app/immutable/nodes/6.nui9awM2.js.br +0 -0
  221. package/dist/ui/client/ui/_app/immutable/nodes/6.nui9awM2.js.gz +0 -0
  222. package/dist/ui/server/chunks/composition.js.map +0 -1
  223. package/dist/ui/server/chunks/icon-button.js.map +0 -1
@@ -0,0 +1,5 @@
1
+ import{$ as e,A as t,D as n,E as r,F as i,G as a,I as o,J as s,K as c,M as l,N as u,O as d,P as f,Q as p,R as m,S as h,U as g,V as _,X as v,Y as y,_ as b,a as x,d as S,f as C,g as w,j as T,k as E,l as D,m as O,n as k,nt as A,r as j,rt as M,s as N,t as P,u as F,v as I,w as L,y as R}from"../chunks/B__KpOuX.js";import{r as z}from"../chunks/JsC3ASJq.js";import{t as B}from"../chunks/BkoDSEOx.js";import"../chunks/UKukklIc.js";import{n as V}from"../chunks/BEImj5AP.js";import"../chunks/C06IiL6m.js";import{A as H,S as U,j as W,k as G,n as K}from"../chunks/DRNNJMYk.js";import{n as q}from"../chunks/w5i9ZoX_.js";import{n as J,t as Y}from"../chunks/BuwZGWCm.js";import{t as X}from"../chunks/DWjfB3ah.js";import{a as Z,d as ee,i as te,n as ne,o as re,r as ie,s as ae}from"../chunks/Cb63XE4v.js";import"../chunks/OAsMjdHF.js";import"../chunks/vPs9G1oN.js";var oe=r(`<div class="banner svelte-qexebn" role="note"><md-icon>warning</md-icon> <p class="svelte-qexebn"><strong>The speech log is hidden from the screen reader.</strong> This page is opened on the bridge's own machine (loopback or its own network address): the screen
2
+ reader would read new rows aloud and they would be recorded again. Open the UI from another machine
3
+ to read the log with a screen reader.</p></div>`,2);function se(e){var t=oe(),n=u(t);N(n,`aria-hidden`,`true`),F(n,1,`svelte-qexebn`),A(2),M(t),L(e,t)}var ce=class extends J{renderElevationOrOutline(){return U`<md-elevation part="elevation"></md-elevation>`}},le=G`:host{--_container-color: var(--md-filled-tonal-button-container-color, var(--md-sys-color-secondary-container, #e8def8));--_container-elevation: var(--md-filled-tonal-button-container-elevation, 0);--_container-height: var(--md-filled-tonal-button-container-height, 40px);--_container-shadow-color: var(--md-filled-tonal-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-filled-tonal-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-tonal-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-tonal-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-tonal-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-tonal-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-tonal-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-tonal-button-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-container-elevation: var(--md-filled-tonal-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-tonal-button-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-color: var(--md-filled-tonal-button-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-opacity: var(--md-filled-tonal-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-tonal-button-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_label-text-font: var(--md-filled-tonal-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-tonal-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-tonal-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-tonal-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-tonal-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-tonal-button-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-color: var(--md-filled-tonal-button-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filled-tonal-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-tonal-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-tonal-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-tonal-button-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-icon-color: var(--md-filled-tonal-button-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-color: var(--md-filled-tonal-button-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-size: var(--md-filled-tonal-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-tonal-button-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_container-shape-start-start: var(--md-filled-tonal-button-container-shape-start-start, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-tonal-button-container-shape-start-end, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-tonal-button-container-shape-end-end, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-tonal-button-container-shape-end-start, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-filled-tonal-button-leading-space, 24px);--_trailing-space: var(--md-filled-tonal-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-tonal-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-tonal-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-tonal-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-tonal-button-with-trailing-icon-trailing-space, 16px)}
4
+ `;le.styleSheet;var Q=class extends ce{};Q.styles=[Y,q,le],Q=W([H(`md-filled-tonal-button`)],Q);var ue=r(`<p role="alert" class="failure svelte-qieqgw"> </p>`),de=r(`<md-dialog><div slot="headline">Clear speech?</div> <div slot="content"><p class="svelte-qieqgw">The speech of <strong> </strong> is removed from the bridge. The session keeps running.
5
+ This cannot be undone.</p> <!></div> <div slot="actions"><md-text-button>Cancel</md-text-button> <md-text-button>Clear</md-text-button></div></md-dialog>`,2);function fe(n,r){e(r,!0);let l=y(``),d=y(!1);c(()=>{r.open&&s(l,``)});async function f(){if(!m(d)){s(l,``),s(d,!0);try{await r.onClear(),r.onClose()}catch(e){s(l,e instanceof Error?e.message:`The speech could not be cleared.`,!0)}finally{s(d,!1)}}}var g=de();a(()=>N(g,`open`,r.open)),F(g,1,`svelte-qieqgw`);var _=o(u(g),2),v=u(_),x=o(u(v)),S=i(x,!0);A(),M(v);var C=o(v,2),w=e=>{var t=ue(),n=i(t,!0);a(()=>h(n,m(l))),L(e,t)};b(C,e=>{m(l)!==``&&e(w)}),M(_);var E=o(_,2),D=u(E);N(D,`type`,`button`);var O=o(D,2);N(O,`type`,`button`),a(()=>N(O,`disabled`,m(d))),M(E),M(g),a(()=>h(S,r.heading)),T(`closed`,g,function(...e){r.onClose?.apply(this,e)}),t(`click`,D,function(...e){r.onClose?.apply(this,e)}),t(`click`,O,f),L(n,g),p()}E([`click`]);var pe=r(`<p role="alert" class="failure svelte-1sof82u"> </p>`),me=r(`<md-dialog><div slot="headline">Delete session?</div> <div slot="content"><p class="svelte-1sof82u"><strong> </strong> and its speech are removed from the bridge. This cannot be undone.</p> <!></div> <div slot="actions"><md-text-button>Cancel</md-text-button> <md-text-button>Delete</md-text-button></div></md-dialog>`,2);function he(n,r){e(r,!0);let l=y(``),d=y(!1);c(()=>{r.open&&s(l,``)});async function f(){if(!m(d)){s(l,``),s(d,!0);try{await r.onDelete(),r.onClose()}catch(e){s(l,e instanceof Error?e.message:`The session could not be deleted.`,!0)}finally{s(d,!1)}}}var g=me();a(()=>N(g,`open`,r.open)),F(g,1,`svelte-1sof82u`);var _=o(u(g),2),v=u(_),x=u(v),S=i(x,!0);A(),M(v);var C=o(v,2),w=e=>{var t=pe(),n=i(t,!0);a(()=>h(n,m(l))),L(e,t)};b(C,e=>{m(l)!==``&&e(w)}),M(_);var E=o(_,2),D=u(E);N(D,`type`,`button`);var O=o(D,2);N(O,`type`,`button`),a(()=>N(O,`disabled`,m(d))),M(E),M(g),a(()=>h(S,r.heading)),T(`closed`,g,function(...e){r.onClose?.apply(this,e)}),t(`click`,D,function(...e){r.onClose?.apply(this,e)}),t(`click`,O,f),L(n,g),p()}E([`click`]);var ge=r(`<p role="alert" class="failure svelte-ttl1x5"> </p>`),_e=r(`<md-dialog><div slot="headline">Add a marker</div> <form slot="content" id="add-marker-form" novalidate="" class="svelte-ttl1x5"><md-outlined-text-field></md-outlined-text-field> <!></form> <div slot="actions"><md-text-button>Cancel</md-text-button> <md-text-button>Add</md-text-button></div></md-dialog>`,2);function ve(n,r){e(r,!0);let l=y(``),d=y(``),f=y(``),g=y(!1);c(()=>{r.open&&(s(l,``),s(d,``),s(f,``))});async function _(e){if(e.preventDefault(),m(g))return;let t=m(l).trim();if(t===``)s(d,`Enter a label.`);else{s(d,``),s(f,``),s(g,!0);try{await r.onAdd(t),r.onClose()}catch(e){s(f,e instanceof Error?e.message:`The marker could not be added.`,!0)}finally{s(g,!1)}}}var v=_e();a(()=>N(v,`open`,r.open)),F(v,1,`svelte-ttl1x5`);var x=o(u(v),2),S=u(x);N(S,`label`,`Label`),N(S,`required`,!0),a(()=>N(S,`maxlength`,X.markerLength)),N(S,`supporting-text`,`Shows in the log as a row of its own, for example “step 3”.`),a(()=>N(S,`value`,m(l))),a(()=>N(S,`error`,m(d)!==``)),a(()=>N(S,`error-text`,m(d)));var C=o(S,2),w=e=>{var t=ge(),n=i(t,!0);a(()=>h(n,m(f))),L(e,t)};b(C,e=>{m(f)!==``&&e(w)}),M(x);var E=o(x,2),D=u(E);N(D,`type`,`button`);var O=o(D,2);N(O,`type`,`submit`),N(O,`form`,`add-marker-form`),a(()=>N(O,`disabled`,m(g))),M(E),M(v),T(`closed`,v,function(...e){r.onClose?.apply(this,e)}),T(`submit`,x,_),t(`input`,S,e=>s(l,e.target.value,!0)),t(`click`,D,function(...e){r.onClose?.apply(this,e)}),L(n,v),p()}E([`input`,`click`]);var ye=r(`<span class="pill svelte-5c13xh"><md-icon>bookmark</md-icon> <span class="visually-hidden">Marker:</span> <span class="label mono svelte-5c13xh"> </span></span>`,2),be=r(`<tr><td class="time mono svelte-5c13xh"> </td><td class="text svelte-5c13xh"><!></td><td class="seq mono svelte-5c13xh"> </td></tr>`),xe=r(`<p hidden=""></p> <table aria-label="Speech" class="svelte-5c13xh"><thead class="svelte-5c13xh"><tr><th scope="col" class="svelte-5c13xh">Received</th><th scope="col" class="svelte-5c13xh">Spoken text</th><th scope="col" class="seq svelte-5c13xh" aria-label="Seq"><span class="seq-head svelte-5c13xh">Seq <span class="help svelte-5c13xh" aria-hidden="true"><md-icon>help</md-icon></span></span></th></tr></thead><tbody class="svelte-5c13xh"></tbody></table>`,3);function Se(t,r){let s=n();e(r,!0);let c=e=>Date.now()-Date.parse(e.receivedAt)<2e3;var l=xe(),g=f(l);g.textContent=`Seq is the entry's number in the API (since, --since). It is large because it starts at the bridge's start time; only its order matters. Numbers can be skipped.`;var _=o(g,2),v=u(_),y=u(v),S=o(u(y),2),C=u(S),w=o(u(C));x(w,`title`,`Seq is the entry's number in the API (since, --since). It is large because it starts at the bridge's start time; only its order matters. Numbers can be skipped.`);var T=u(w);N(T,`aria-hidden`,`true`),F(T,1,`svelte-5c13xh`),M(w),M(C),M(S),M(y),M(v);var E=o(v);O(E,21,()=>r.entries,e=>e.seq,(e,t)=>{var n=be();let r;var s=u(n),l=i(s,!0),f=o(s),p=u(f),g=e=>{var n=ye(),r=u(n);N(r,`aria-hidden`,`true`),F(r,1,`svelte-5c13xh`);var s=o(r,4),c=i(s,!0);M(n),a(()=>{x(n,`title`,m(t).text),h(c,m(t).text)}),L(e,n)},_=e=>{var n=d();a(()=>h(n,m(t).text)),L(e,n)};b(p,e=>{m(t).kind===`marker`?e(g):e(_,-1)}),M(f);var v=o(f),y=i(v);M(n),a((e,i)=>{r=F(n,1,`svelte-5c13xh`,null,r,{fresh:e,marker:m(t).kind===`marker`}),h(l,i),h(y,`#${m(t).seq??``}`)},[()=>c(m(t)),()=>Z(m(t).receivedAt)]),L(e,n)}),M(E),M(_),a(()=>{x(g,`id`,s),x(_,`aria-describedby`,s)}),L(t,l),p()}var Ce=r(`<md-icon-button><md-icon>bookmark_add</md-icon></md-icon-button>`,2),we=r(`<md-icon-button><md-icon>delete_sweep</md-icon></md-icon-button>`,2),Te=r(`<md-icon-button><md-icon>delete</md-icon></md-icon-button>`,2),Ee=r(`<div role="toolbar" aria-label="Log actions"><!> <!> <!></div>`),De=r(`<p class="title svelte-1jnrixz">No entries left</p> <p class="svelte-1jnrixz">This session's entries are no longer in the buffer.</p>`,1),Oe=r(`<p class="title svelte-1jnrixz">No speech yet</p> <p class="svelte-1jnrixz">Make the screen reader speak.</p>`,1),ke=r(`<div class="empty svelte-1jnrixz"><md-icon>mic</md-icon> <!></div>`,2),Ae=r(`<p role="status" class="mono svelte-1jnrixz">Connection lost, reconnecting…</p>`),je=r(`<p role="alert" class="mono failed svelte-1jnrixz">The speech could not be loaded.</p>`),Me=r(`<span></span>`),Ne=r(`<md-filled-tonal-button><md-icon>arrow_downward</md-icon> Jump to latest</md-filled-tonal-button>`,2),Pe=r(`<footer class="svelte-1jnrixz"><!> <!></footer>`),Fe=r(`<section class="log svelte-1jnrixz"><header class="svelte-1jnrixz"><h2 class="trunc svelte-1jnrixz"> </h2> <!></header> <div class="scroll svelte-1jnrixz"><!> <!></div> <!></section> <!> <!> <!>`,1);function Ie(n,r){e(r,!0);let l=P(r,`local`,3,!1),d=y(!1),g=y(!1),_=y(!1),v=y(void 0),S=y(!0);function C(){m(v)&&s(S,m(v).scrollHeight-m(v).scrollTop-m(v).clientHeight<=48)}function w(){s(S,!0),m(v)?.scrollTo({top:m(v).scrollHeight})}function E(e){l()&&e.currentTarget.blur()}c(()=>{r.entries.length===0&&s(S,!0),m(S)&&m(v)&&(m(v).scrollTop=m(v).scrollHeight)});var D=Fe(),O=f(D),j=u(O),I=u(j),R=i(I,!0),z=o(I,2),B=e=>{var n=Ee(),i=u(n),c=e=>{var n=Ce();N(n,`title`,`Add marker`),N(n,`aria-label`,`Add marker`);var r=u(n);N(r,`aria-hidden`,`true`),M(n),t(`click`,n,()=>s(d,!0)),L(e,n)};b(i,e=>{r.canMark&&e(c)});var l=o(i,2),f=e=>{var n=we();N(n,`title`,`Clear speech`),N(n,`aria-label`,`Clear speech`),a(()=>N(n,`disabled`,r.entries.length===0));var i=u(n);N(i,`aria-hidden`,`true`),M(n),t(`click`,n,()=>s(_,!0)),L(e,n)};b(l,e=>{r.canClear&&e(f)});var p=o(l,2),m=e=>{var n=Te();N(n,`title`,`Delete session`),N(n,`aria-label`,`Delete session`);var r=u(n);N(r,`aria-hidden`,`true`),M(n),t(`click`,n,()=>s(g,!0)),L(e,n)};b(p,e=>{r.canDelete&&e(m)}),M(n),L(e,n)};b(z,e=>{(r.canMark||r.canClear||r.canDelete)&&e(B)}),M(j);var V=o(j,2),H=u(V);Se(H,{get entries(){return r.entries}});var U=o(H,2),W=e=>{var t=ke(),n=u(t);N(n,`aria-hidden`,`true`),F(n,1,`svelte-1jnrixz`);var i=o(n,2),a=e=>{var t=De();A(2),L(e,t)},s=e=>{var t=Oe();A(2),L(e,t)};b(i,e=>{r.connection===`ended`?e(a):e(s,-1)}),M(t),L(e,t)};b(U,e=>{r.entries.length===0&&e(W)}),M(V),k(V,e=>s(v,e),()=>m(v));var G=o(V,2),K=e=>{var n=Pe(),i=u(n),a=e=>{var t=Ae();L(e,t)},s=e=>{var t=je();L(e,t)},c=e=>{var t=Me();L(e,t)};b(i,e=>{r.connection===`reconnecting`?e(a):r.connection===`failed`?e(s,1):e(c,-1)});var l=o(i,2),d=e=>{var n=Ne(),r=u(n);N(r,`slot`,`icon`),N(r,`aria-hidden`,`true`),A(),M(n),t(`click`,n,w),L(e,n)};b(l,e=>{m(S)||e(d)}),M(n),L(e,n)};b(G,e=>{r.connection!==`reconnecting`&&r.connection!==`failed`&&m(S)||e(K)}),M(O);var q=o(O,2),J=e=>{ve(e,{get open(){return m(d)},get onAdd(){return r.onAddMarker},onClose:()=>s(d,!1)})};b(q,e=>{r.canMark&&e(J)});var Y=o(q,2),X=e=>{fe(e,{get open(){return m(_)},get heading(){return r.heading},get onClear(){return r.onClear},onClose:()=>s(_,!1)})};b(Y,e=>{r.canClear&&e(X)});var Z=o(Y,2),ee=e=>{he(e,{get open(){return m(g)},get heading(){return r.heading},get onDelete(){return r.onDelete},onClose:()=>s(g,!1)})};b(Z,e=>{r.canDelete&&e(ee)}),a(()=>{h(R,r.heading),x(V,`role`,l()?void 0:`region`),x(V,`aria-label`,l()?void 0:`Speech log`),x(V,`aria-live`,l()?void 0:`off`),x(V,`aria-hidden`,l()?`true`:void 0),x(V,`tabindex`,l()?-1:0)}),T(`scroll`,V,C),T(`focus`,V,E),L(n,D),p()}E([`click`]);var Le=r(`<md-icon>visibility</md-icon>`,2),Re=r(`<span class="subtitle svelte-3qlloz"><!></span>`),ze=r(`<button type="button" role="option"><md-ripple></md-ripple> <span class="marker svelte-3qlloz"><!></span> <span class="text svelte-3qlloz" aria-hidden="true"><span class="title svelte-3qlloz"> </span> <!></span> <span class="visually-hidden"> </span></button>`,2);function Be(e,r){let s=n(),c=P(r,`selected`,3,!1),l=`${s}-name`;var d=ze();let f,p;var m=u(d);N(m,`aria-hidden`,`true`);var g=o(m,2),_=u(g),v=e=>{var t=Le();N(t,`aria-hidden`,`true`),L(e,t)};b(_,e=>{c()&&e(v)}),M(g);var y=o(g,2),S=u(y),C=i(S,!0),w=o(S,2),T=e=>{var t=Re(),n=u(t);R(n,()=>r.subtitle),M(t),L(e,t)};b(w,e=>{r.subtitle&&e(T)}),M(y);var E=o(y,2),O=i(E);M(d),a(()=>{f=F(d,1,`option svelte-3qlloz`,null,f,{selected:c()}),x(d,`aria-selected`,c()),x(d,`aria-labelledby`,l),p=D(d,``,p,{"--list-item-shape":r.shape}),h(C,r.title),x(E,`id`,l),h(O,`${r.title??``}, ${r.description??``}`)}),t(`click`,d,function(...e){r.onSelect?.apply(this,e)}),L(e,d)}E([`click`]);function Ve(e){let t=Math.max(0,Math.floor(e/1e3)),n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60;return n>0?`${n} h ${String(r).padStart(2,`0`)} min`:r>0?`${r} min ${i} s`:`${i} s`}function He(e,t){let n=Ve((e.endedAt===null?t:Date.parse(e.endedAt))-Date.parse(e.startedAt)),r=e.endedAt===null,i=`${e.entries} ${e.entries===1?`entry`:`entries`}`,a=[r?`live`:null,e.run===null?null:`run ${e.run}`,r?null:n,r?null:i,`Session ${e.id}`];return{id:`#${e.id}`,run:e.run,duration:n,entries:i,spoken:a.filter(e=>e!==null).join(`, `)}}var $=`none`,Ue=/^[1-9]\d*$/;function We(e){if(e===`none`)return $;if(!Ue.test(e))return null;let t=Number(e);return Number.isSafeInteger(t)?t:null}function Ge(e,t,n){let r=e===null?null:We(e);return r===`none`?$:r!==null&&t.some(e=>e.id===r)?r:n??`none`}function Ke(e,t){let n=t.findIndex(t=>t.id===e);return n===-1?null:(t[n+1]??t[n-1])?.id??null}var qe=r(`<p class="svelte-17z3k9b">This session has no entries, so ending it deletes it. Its number is not reused.</p>`),Je=r(`<p class="svelte-17z3k9b">Speech captured after this belongs to no session.</p>`),Ye=r(`<p role="alert" class="failure svelte-17z3k9b"> </p>`),Xe=r(`<md-dialog><div slot="headline"> </div> <div slot="content"><!> <!></div> <div slot="actions"><md-text-button>Cancel</md-text-button> <md-text-button>End session</md-text-button></div></md-dialog>`,2);function Ze(n,r){e(r,!0);let l=v(()=>r.entries===0),d=y(``),f=y(!1);c(()=>{r.open&&s(d,``)});async function g(){if(!m(f)){s(d,``),s(f,!0);try{await r.onEnd(),r.onClose()}catch(e){s(d,e instanceof Error?e.message:`The session could not be ended.`,!0)}finally{s(f,!1)}}}var _=Xe();a(()=>N(_,`open`,r.open)),F(_,1,`svelte-17z3k9b`);var x=u(_),S=i(x),C=o(x,2),w=u(C),E=e=>{var t=qe();L(e,t)},D=e=>{var t=Je();L(e,t)};b(w,e=>{m(l)?e(E):e(D,-1)});var O=o(w,2),k=e=>{var t=Ye(),n=i(t,!0);a(()=>h(n,m(d))),L(e,t)};b(O,e=>{m(d)!==``&&e(k)}),M(C);var A=o(C,2),j=u(A);N(j,`type`,`button`);var P=o(j,2);N(P,`type`,`button`),a(()=>N(P,`disabled`,m(f))),M(A),M(_),a(()=>h(S,`${m(l)?`Drop`:`End`} session ${r.sessionId===null?``:`#${r.sessionId}`}?`)),T(`closed`,_,function(...e){r.onClose?.apply(this,e)}),t(`click`,j,function(...e){r.onClose?.apply(this,e)}),t(`click`,P,g),L(n,_),p()}E([`click`]);var Qe=r(`<span class="dot svelte-wvg2ho"></span>`),$e=r(`<span class="run svelte-wvg2ho"> </span>`),et=r(`<span class="meta svelte-wvg2ho"><!> <!> <span class="svelte-wvg2ho"> </span> <span class="svelte-wvg2ho"> </span> <span class="id svelte-wvg2ho"> </span></span>`);function tt(t,n){e(n,!0);let r=e=>{var t=et(),r=u(t),c=e=>{var t=Qe();L(e,t)};b(r,e=>{n.live&&e(c)});var l=o(r,2),d=e=>{var t=$e(),n=i(t,!0);a(()=>h(n,m(s).run)),L(e,t)};b(l,e=>{m(s).run!==null&&e(d)});var f=o(l,2),p=i(f,!0),g=o(f,2),_=i(g,!0),v=o(g,2),y=i(v,!0);M(t),a(()=>{h(p,m(s).duration),h(_,m(s).entries),h(y,m(s).id)}),L(e,t)},s=v(()=>He(n.session,n.now));Be(t,{get title(){return n.session.name},shape:`var(--md-sys-shape-corner-extra-large, 28px)`,get subtitle(){return r},get selected(){return n.selected},get description(){return m(s).spoken},get onSelect(){return n.onSelect}}),p()}var nt=r(`<p role="alert" class="failure svelte-2k1elc"> </p>`),rt=r(`<md-dialog><div slot="headline">Start a session</div> <form slot="content" id="start-session-form" novalidate="" class="svelte-2k1elc"><md-outlined-text-field></md-outlined-text-field> <md-outlined-text-field></md-outlined-text-field> <!></form> <div slot="actions"><md-text-button>Cancel</md-text-button> <md-text-button>Start</md-text-button></div></md-dialog>`,2);function it(n,r){e(r,!0);let l=y(``),d=y(``),f=y(``),g=y(``),_=y(!1);c(()=>{r.open&&(s(l,``),s(d,``),s(f,``),s(g,``))});async function v(e){if(e.preventDefault(),m(_))return;let t=m(l).trim();if(t===``)s(f,`Enter a name.`);else{s(f,``),s(g,``),s(_,!0);try{await r.onStart(t,m(d).trim()===``?null:m(d).trim()),r.onClose()}catch(e){s(g,e instanceof Error?e.message:`The session could not be started.`,!0)}finally{s(_,!1)}}}var x=rt();a(()=>N(x,`open`,r.open)),F(x,1,`svelte-2k1elc`);var S=o(u(x),2),C=u(S);N(C,`label`,`Name`),N(C,`required`,!0),a(()=>N(C,`maxlength`,X.sessionLabelLength)),a(()=>N(C,`value`,m(l))),a(()=>N(C,`error`,m(f)!==``)),a(()=>N(C,`error-text`,m(f)));var w=o(C,2);N(w,`label`,`Run (optional)`),N(w,`supporting-text`,`Groups sessions, for example one run id per test run.`),a(()=>N(w,`maxlength`,X.sessionLabelLength)),a(()=>N(w,`value`,m(d)));var E=o(w,2),D=e=>{var t=nt(),n=i(t,!0);a(()=>h(n,m(g))),L(e,t)};b(E,e=>{m(g)!==``&&e(D)}),M(S);var O=o(S,2),k=u(O);N(k,`type`,`button`);var A=o(k,2);N(A,`type`,`submit`),N(A,`form`,`start-session-form`),a(()=>N(A,`disabled`,m(_))),M(O),M(x),T(`closed`,x,function(...e){r.onClose?.apply(this,e)}),T(`submit`,S,v),t(`input`,C,e=>s(l,e.target.value,!0)),t(`input`,w,e=>s(d,e.target.value,!0)),t(`click`,k,function(...e){r.onClose?.apply(this,e)}),L(n,x),p()}E([`input`,`click`]);var at=r(`<span> </span>`),ot=r(`<md-icon-button><md-icon> </md-icon></md-icon-button>`,2),st=r(`<p class="empty svelte-1fz71rn">No sessions in the buffer. Start one with the play button.</p>`),ct=r(`<!> <div class="listbox svelte-1fz71rn" role="listbox" aria-label="Session to show"><!> <div class="outside svelte-1fz71rn"><!></div></div>`,1),lt=r(`<section aria-labelledby="sessions-heading"><header class="svelte-1fz71rn"><!> <h2 id="sessions-heading">Sessions</h2> <md-icon-button><md-icon> </md-icon></md-icon-button></header> <!></section> <!> <!>`,3);function ut(n,r){e(r,!0);let c=e=>{var t=at(),n=i(t,!0);a(()=>h(n,m(T))),L(e,t)},l=P(r,`collapsed`,3,!1),d=y(!1),g=y(!1),_=y(0),x=v(()=>r.currentId===null?`Start a session`:`End session ${r.currentId}`),C=v(()=>l()?`Expand sessions`:`Collapse sessions`),T=v(()=>r.outsideEntries===1?`1 entry`:`${r.outsideEntries} entries`),E=v(()=>[`Speech captured while no session was running`,...r.currentId===null?[]:[m(T)]].join(`, `));var k=lt(),A=f(k);let I;var R=u(A),z=u(R),B=e=>{var n=ot();F(n,1,`collapse`),a(()=>N(n,`title`,m(C))),a(()=>N(n,`aria-label`,m(C))),a(()=>N(n,`aria-expanded`,!l()));var o=u(n);N(o,`aria-hidden`,`true`);var s=i(o,!0);M(n),a(()=>h(s,l()?`left_panel_open`:`left_panel_close`)),t(`click`,n,function(...e){r.onToggleCollapse?.apply(this,e)}),L(e,n)};b(z,e=>{r.onToggleCollapse&&e(B)});var V=o(z,2);let H;var U=o(V,2);a(()=>N(U,`title`,m(x))),a(()=>N(U,`aria-label`,m(x)));var W=u(U);N(W,`aria-hidden`,`true`);var G=i(W,!0);M(U),M(R);var K=o(R,2),q=e=>{},J=e=>{var t=ct(),n=f(t),i=e=>{var t=st();L(e,t)};b(n,e=>{r.sessions.length===0&&e(i)});var l=o(n,2);let d;var p=u(l);O(p,17,()=>r.sessions,e=>e.id,(e,t)=>{{let n=v(()=>m(t).id===r.currentId),i=v(()=>m(t).id===r.selectedId);tt(e,{get session(){return m(t)},get now(){return r.now},get live(){return m(n)},get selected(){return m(i)},onSelect:()=>r.onSelect(m(t).id)})}});var h=o(p,2),g=u(h);{let e=v(()=>r.selectedId===$);Be(g,{title:`Records outside sessions`,shape:`var(--md-sys-shape-corner-extra-large, 28px)`,get subtitle(){return c},get selected(){return m(e)},get description(){return m(E)},onSelect:()=>r.onSelect($)})}M(h),M(l),S(l,()=>ee(`[role="option"]`,{singleTabStop:!0,wrap:!0,leftRight:!0})),a(()=>d=D(l,``,d,{"scroll-padding-bottom":`${m(_)??``}px`})),j(h,`offsetHeight`,e=>s(_,e)),L(e,t)};b(K,e=>{l()?e(q):e(J,-1)}),M(A);var Y=o(A,2);it(Y,{get open(){return m(d)},get onStart(){return r.onStart},onClose:()=>s(d,!1)});var X=o(Y,2);{let e=v(()=>r.sessions.find(e=>e.id===r.currentId)?.entries??null);Ze(X,{get open(){return m(g)},get sessionId(){return r.currentId},get entries(){return m(e)},get onEnd(){return r.onEnd},onClose:()=>s(g,!1)})}a(()=>{I=F(A,1,`svelte-1fz71rn`,null,I,{collapsed:l()}),H=F(V,1,`svelte-1fz71rn`,null,H,{"visually-hidden":l()}),F(U,1,w(r.currentId===null?`start`:`stop`),`svelte-1fz71rn`),h(G,r.currentId===null?`play_arrow`:`stop`)}),t(`click`,U,()=>r.currentId===null?s(d,!0):s(g,!0)),L(n,k),p()}E([`click`]);function dt(e,t,n){return{async start(t,r){await n((await e.start(t,r)).id)},async end(){let t=e.currentId;await e.end(),t!==null&&!e.sessions.some(e=>e.id===t)&&await n(null)},async clear(n){await t.clear(n),await e.refresh()},async remove(t){if(typeof t!=`number`)return;let r=Ke(t,e.sessions);await e.delete(t),await n(r)}}}var ft=r(`<div class="monitor svelte-1uha8ag"><h1 class="visually-hidden">Monitor</h1> <div><!></div> <div class="log svelte-1uha8ag"><!> <div class="log-body svelte-1uha8ag"><!></div></div></div>`);function pt(t,n){e(n,!0);let{sessions:r,speech:i,sessionsPane:s}=K();_(()=>r.seed(n.data.sessions,n.data.now));let d=v(()=>({sessions:r.sessions,currentId:r.currentId,outsideEntries:r.outsideEntries})),f=v(()=>r.now),h=v(()=>Ge(V.url.searchParams.get(`session`),m(d).sessions,m(d).currentId)),y=v(()=>ae(m(h),m(d).sessions)),x=v(()=>ne(m(h),m(d).currentId)),S=v(()=>ie(m(h),m(d).currentId)),w=v(()=>te(m(h),m(d).currentId));I(()=>(s.init(),r.init())),c(()=>i.open(m(h),_(()=>re(m(h),m(d).currentId))));function T(e){return z(e===null?B(`/`):`${B(`/`)}?session=${e}`,{reset:!1})}let E=dt(r,i,T);var D=ft();C(`1uha8ag`,e=>{g(()=>{l.title=`Monitor · Speech Capture`})});var O=o(u(D),2);let k;ut(u(O),{get collapsed(){return s.collapsed},onToggleCollapse:()=>s.toggle(),get sessions(){return m(d).sessions},get currentId(){return m(d).currentId},get outsideEntries(){return m(d).outsideEntries},get selectedId(){return m(h)},get now(){return m(f)},onSelect:e=>void T(e),onStart:(e,t)=>E.start(e,t),onEnd:()=>E.end()}),M(O);var A=o(O,2),j=u(A),N=e=>{se(e,{})};b(j,e=>{n.data.local&&e(N)});var P=o(j,2);Ie(u(P),{get heading(){return m(y)},get local(){return n.data.local},get entries(){return i.entries},get connection(){return i.connection},get canMark(){return m(x)},onAddMarker:e=>i.addMarker(e),get canClear(){return m(S)},onClear:()=>E.clear(m(h)),get canDelete(){return m(w)},onDelete:()=>E.remove(m(h))}),M(P),M(A),M(D),a(()=>k=F(O,1,`sessions svelte-1uha8ag`,null,k,{collapsed:s.collapsed})),L(t,D),p()}export{pt as component};
@@ -0,0 +1,180 @@
1
+ import{$ as e,A as t,B as n,D as r,E as i,F as a,G as o,I as s,J as c,L as l,M as u,N as d,O as f,P as p,Q as m,R as h,S as g,T as _,U as v,V as y,X as b,Y as x,_ as S,a as C,c as w,f as T,h as E,i as D,j as ee,k as O,m as k,n as te,nt as ne,o as re,rt as A,s as j,u as M,v as N,w as P}from"../chunks/B__KpOuX.js";import"../chunks/CAZ56n62.js";import{A as F,D as I,E as ie,O as L,S as R,T as z,_ as B,a as ae,d as oe,f as se,i as ce,j as V,k as H,n as le,p as ue,s as de,u as fe,v as U,y as pe}from"../chunks/DRNNJMYk.js";import{a as me,i as he,n as ge,o as _e,r as ve,s as ye,t as be}from"../chunks/vPs9G1oN.js";import"../chunks/DWjfB3ah.js";import{a as xe,i as Se,n as Ce,r as we,s as Te,t as Ee}from"../chunks/C75l7c5l.js";import{t as De}from"../chunks/BlC5mir6.js";import{r as Oe}from"../chunks/BuwZGWCm.js";import{a as ke,i as Ae,n as je}from"../chunks/VxDST09k.js";import{t as Me}from"../chunks/w5i9ZoX_.js";var Ne;function Pe(e){return(t,n)=>ie(t,n,{get(){return(this.renderRoot??(Ne??=document.createDocumentFragment())).querySelectorAll(e)}})}function Fe(e){return(t,n)=>{let{slot:r}=e??{},i=`slot`+(r?`[name=${r}]`:`:not([name])`);return ie(t,n,{get(){return(this.renderRoot?.querySelector(i))?.assignedNodes(e)??[]}})}}var Ie=fe(B),W=class extends Ie{constructor(){super(...arguments),this.value=0,this.max=1,this.indeterminate=!1,this.fourColor=!1}render(){let{ariaLabel:e}=this;return R`
2
+ <div
3
+ class="progress ${ue(this.getRenderClasses())}"
4
+ role="progressbar"
5
+ aria-label="${e||U}"
6
+ aria-valuemin="0"
7
+ aria-valuemax=${this.max}
8
+ aria-valuenow=${this.indeterminate?U:this.value}
9
+ >${this.renderIndicator()}</div
10
+ >
11
+ `}getRenderClasses(){return{indeterminate:this.indeterminate,"four-color":this.fourColor}}};V([L({type:Number})],W.prototype,`value`,void 0),V([L({type:Number})],W.prototype,`max`,void 0),V([L({type:Boolean})],W.prototype,`indeterminate`,void 0),V([L({type:Boolean,attribute:`four-color`})],W.prototype,`fourColor`,void 0);var Le=class extends W{constructor(){super(...arguments),this.buffer=0}renderIndicator(){let e={transform:`scaleX(${(this.indeterminate?1:this.value/this.max)*100}%)`},t=this.buffer??0,n=t>0,r={transform:`scaleX(${(this.indeterminate||!n?1:t/this.max)*100}%)`},i=this.indeterminate||!n||t>=this.max||this.value>=this.max;return R`
12
+ <div class="dots" ?hidden=${i}></div>
13
+ <div class="inactive-track" style=${ye(r)}></div>
14
+ <div class="bar primary-bar" style=${ye(e)}>
15
+ <div class="bar-inner"></div>
16
+ </div>
17
+ <div class="bar secondary-bar">
18
+ <div class="bar-inner"></div>
19
+ </div>
20
+ `}};V([L({type:Number})],Le.prototype,`buffer`,void 0);var Re=H`:host{--_active-indicator-color: var(--md-linear-progress-active-indicator-color, var(--md-sys-color-primary, #6750a4));--_active-indicator-height: var(--md-linear-progress-active-indicator-height, 4px);--_four-color-active-indicator-four-color: var(--md-linear-progress-four-color-active-indicator-four-color, var(--md-sys-color-tertiary-container, #ffd8e4));--_four-color-active-indicator-one-color: var(--md-linear-progress-four-color-active-indicator-one-color, var(--md-sys-color-primary, #6750a4));--_four-color-active-indicator-three-color: var(--md-linear-progress-four-color-active-indicator-three-color, var(--md-sys-color-tertiary, #7d5260));--_four-color-active-indicator-two-color: var(--md-linear-progress-four-color-active-indicator-two-color, var(--md-sys-color-primary-container, #eaddff));--_track-color: var(--md-linear-progress-track-color, var(--md-sys-color-surface-container-highest, #e6e0e9));--_track-height: var(--md-linear-progress-track-height, 4px);--_track-shape: var(--md-linear-progress-track-shape, var(--md-sys-shape-corner-none, 0px));border-radius:var(--_track-shape);display:flex;position:relative;min-width:80px;height:var(--_track-height);content-visibility:auto;contain:strict}.progress,.dots,.inactive-track,.bar,.bar-inner{position:absolute}.progress{direction:ltr;inset:0;border-radius:inherit;overflow:hidden;display:flex;align-items:center}.bar{animation:none;width:100%;height:var(--_active-indicator-height);transform-origin:left center;transition:transform 250ms cubic-bezier(0.4, 0, 0.6, 1)}.secondary-bar{display:none}.bar-inner{inset:0;animation:none;background:var(--_active-indicator-color)}.inactive-track{background:var(--_track-color);inset:0;transition:transform 250ms cubic-bezier(0.4, 0, 0.6, 1);transform-origin:left center}.dots{inset:0;animation:linear infinite 250ms;animation-name:buffering;background-color:var(--_track-color);background-repeat:repeat-x;-webkit-mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E");z-index:-1}.dots[hidden]{display:none}.indeterminate .bar{transition:none}.indeterminate .primary-bar{inset-inline-start:-145.167%}.indeterminate .secondary-bar{inset-inline-start:-54.8889%;display:block}.indeterminate .primary-bar{animation:linear infinite 2s;animation-name:primary-indeterminate-translate}.indeterminate .primary-bar>.bar-inner{animation:linear infinite 2s primary-indeterminate-scale}.indeterminate.four-color .primary-bar>.bar-inner{animation-name:primary-indeterminate-scale,four-color;animation-duration:2s,4s}.indeterminate .secondary-bar{animation:linear infinite 2s;animation-name:secondary-indeterminate-translate}.indeterminate .secondary-bar>.bar-inner{animation:linear infinite 2s secondary-indeterminate-scale}.indeterminate.four-color .secondary-bar>.bar-inner{animation-name:secondary-indeterminate-scale,four-color;animation-duration:2s,4s}:host(:dir(rtl)){transform:scale(-1)}@keyframes primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.00432);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes buffering{0%{transform:translateX(calc(var(--_track-height) / 2 * 5))}}@keyframes primary-indeterminate-translate{0%{transform:translateX(0px)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0px)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.6714%)}100%{transform:translateX(200.611%)}}@keyframes secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0px)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.6519%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.3862%)}100%{transform:translateX(160.278%)}}@keyframes four-color{0%{background:var(--_four-color-active-indicator-one-color)}15%{background:var(--_four-color-active-indicator-one-color)}25%{background:var(--_four-color-active-indicator-two-color)}40%{background:var(--_four-color-active-indicator-two-color)}50%{background:var(--_four-color-active-indicator-three-color)}65%{background:var(--_four-color-active-indicator-three-color)}75%{background:var(--_four-color-active-indicator-four-color)}90%{background:var(--_four-color-active-indicator-four-color)}100%{background:var(--_four-color-active-indicator-one-color)}}@media(forced-colors: active){:host{outline:1px solid CanvasText}.bar-inner,.dots{background-color:CanvasText}}
21
+ `;Re.styleSheet;var ze=class extends Le{};ze.styles=[Re],ze=V([F(`md-linear-progress`)],ze);var Be={path:`tcp.port`,label:`TCP port`,control:{kind:`text`,inputmode:`numeric`},help:()=>`The port the screen reader's speech voice sends to. Default 4449.`,format:String,parse(e){let t=Se(e);return t.ok?{ok:!0,value:t.port}:t},describe:String,consequence:e=>[`The speech voice on the VM sends to a fixed port, so also add a voice for ${e} (`,{code:`text-to-socket-engine-add-voice`},`) and select it in the screen reader.`]},Ve=[[`windows-874`,`Thai`],[`windows-1250`,`Central European`],[`windows-1251`,`Cyrillic`],[`windows-1252`,`Western European`],[`windows-1253`,`Greek`],[`windows-1254`,`Turkish`],[`windows-1255`,`Hebrew`],[`windows-1256`,`Arabic`],[`windows-1257`,`Baltic`],[`windows-1258`,`Vietnamese`],[`shift_jis`,`Japanese`],[`gbk`,`Simplified Chinese`],[`euc-kr`,`Korean`],[`big5`,`Traditional Chinese`],[`utf-8`,`Unicode`]].map(([e,t])=>({value:e,label:`${e} (${t})`}));function He(e,t){return e.some(e=>e.value===t)?e:[...e,{value:t,label:t}]}var Ue={path:`tcp.encoding`,label:`Text encoding`,control:{kind:`select`,options:Ve},help:()=>`The code page the speech voice sends: the VM's ANSI code page. Default windows-1252.`,format:e=>e,parse:e=>({ok:!0,value:e}),describe:e=>e,consequence:()=>[]},We={path:`buffer.maxEntries`,label:`Speech buffer size`,control:{kind:`text`,inputmode:`numeric`,suffix:`entries`},help:()=>`How many speech entries the bridge keeps; then the oldest are dropped. Default 10000.`,format:String,parse(e){let t=Ce(e);return t.ok?{ok:!0,value:t.entries}:t},describe:String,consequence:()=>[]},Ge={control:{kind:`checkbox`},format:String,parse:e=>({ok:!0,value:e===`true`}),describe:e=>e?`On`:`Off`},Ke=`The first start installs what is missing, which can take a minute or two.`,qe={...Ge,path:`playwright.enabled`,label:`Playwright server`,help:()=>`Tests connect to it to drive a browser on the VM.`,consequence:e=>[e?Ke:`Tests can't connect to a browser on the VM while it is off.`]},Je=({runningPlaywright:e})=>e===null?`bundled version`:`bundled version (${e})`,Ye={path:`playwright.version`,label:`Playwright version`,control:{kind:`text`,inputmode:`text`},help:(e,{runningPlaywright:t,playwrightOff:n})=>`The exact version of the Playwright server, like 1.65.0. Use the version your tests use. Leave empty for the bundled version`+(e===null&&t!==null?` (${t}).`:`.`)+(n===!0?` Applies when the server is turned on.`:``),format:e=>e??``,parse(e){let t=we(e);return t.ok?{ok:!0,value:t.version}:t},describe:(e,t)=>e??Je(t),consequence:()=>[`The first start of a new version installs it, which can take a minute or two. Your test projects need the same version.`]};function G(e,t){let[n,r]=t.split(`.`);return e[n][r]}function Xe(e,t,n){return e.filter(e=>{let r=t[e.path];return r!==void 0&&r.trim()!==e.format(G(n,e.path))})}function Ze(e,t,n){let r={},i={};for(let a of Xe(e,t,n)){let e=a.parse(t[a.path]);if(!e.ok){i[a.path]=e.message;continue}let[n,o]=a.path.split(`.`);(r[n]??={})[o]=e.value}return Object.keys(i).length>0?{ok:!1,errors:i}:{ok:!0,patch:r}}var Qe={...Ge,path:`mcp.enabled`,label:`Playwright MCP`,help:()=>`AI agents connect to it to drive a browser on the VM.`,consequence:e=>[e?Ke:`AI agents can't connect to a browser through it while it is off.`]},$e={error:`errors only`,warn:`errors and warnings`,info:`normal operation`,debug:`everything, with the speech`},et={path:`log.level`,label:`Log level`,control:{kind:`select`,options:je.map(e=>({value:e,label:`${e} (${$e[e]})`}))},help:()=>`How much the bridge writes to its log. At debug that includes everything the screen reader says, in the log file. Default info.`,format:e=>e,parse:e=>({ok:!0,value:e}),describe:e=>e,consequence:e=>e===`debug`?[`What the screen reader says is then written to the log file.`]:[]},tt=[Be,Ue,We,qe,Ye,Qe,et];function nt(e,t,n,r){return r[e]===void 0&&G(t,e)!==G(n,e)}var rt=(e,t)=>{let[n,r]=t.split(`.`);return e[n][r]};function it(e,t,n,r){return xe(e,t,n).map(n=>{let i=tt.find(e=>e.path===n);if(i===void 0){let r=e=>JSON.stringify(rt(e,n));return{path:n,label:n,from:r(e),to:r(t),consequence:[]}}let a=G(e,i.path),o=G(t,i.path);return{path:n,label:i.label,from:i.describe(a,r),to:i.describe(o,{...r,runningPlaywright:null}),consequence:i.consequence(o,a)}})}function at(e,t){if(!(e instanceof Error))return{field:null,message:`The settings could not be saved.`};if(!(e instanceof Ee)||e.field===void 0)return{field:null,message:e.message};let n=t.find(t=>t.path===e.field)??t.find(t=>e.message.includes(t.path)),r=tt.reduce((e,t)=>e.replaceAll(t.path,t.label),e.message);return{field:n?.path??null,message:`${r}. Nothing was saved.`}}var ot=i(`<code class="svelte-1ko3bij"> </code>`),st=i(`<li class="svelte-1ko3bij"><strong> </strong> <!></li>`),ct=i(`<section aria-labelledby="restart-heading" class="svelte-1ko3bij"><h2 id="restart-heading" class="svelte-1ko3bij"> </h2> <ul class="svelte-1ko3bij"></ul> <p class="svelte-1ko3bij">Restarting the bridge empties the recorded speech and sessions.</p> <md-outlined-button>Check again</md-outlined-button></section>`,2),lt=i(`<!> <p role="status" tabindex="-1" class="result svelte-1ko3bij"> </p>`,1);function ut(r,i){e(i,!0);let l=x(``),u,v=e=>e===1?`1 change waits for a restart`:`${e} changes wait for a restart`;async function y(){c(l,``),await i.onCheck(),c(l,i.reachable?i.changes.length===0?`No changes wait for a restart.`:`Checked: ${v(i.changes.length)}.`:`The bridge is not reachable.`,!0),await n(),i.changes.length===0&&u.focus()}var b=lt(),C=p(b),w=e=>{var n=ct(),r=d(n),c=a(r,!0),l=s(r,2);k(l,21,()=>i.changes,e=>e.path,(e,t)=>{var n=st(),r=d(n),i=a(r),c=s(r),l=s(c);k(l,17,()=>h(t).consequence,E,(e,t)=>{var n=_(),r=p(n),i=e=>{var n=f();o(()=>g(n,h(t))),P(e,n)},s=e=>{var n=ot(),r=a(n,!0);o(()=>g(r,h(t).code)),P(e,n)};S(r,e=>{typeof h(t)==`string`?e(i):e(s,-1)}),P(e,n)}),A(n),o(()=>{g(i,`${h(t).label??``}:`),g(c,` ${h(t).from??``} → ${h(t).to??``}. `)}),P(e,n)}),A(l);var u=s(l,4);j(u,`type`,`button`),M(u,1,`svelte-1ko3bij`),A(n),o(e=>g(c,e),[()=>v(i.changes.length)]),t(`click`,u,()=>void y()),P(e,n)};S(C,e=>{i.changes.length>0&&e(w)});var T=s(C,2),D=a(T,!0);te(T,e=>u=e,()=>u),o(()=>g(D,h(l))),P(r,b),m()}O([`click`]);function dt(e,t=q){let n=pt(e,t);return n&&(n.tabIndex=0,n.focus()),n}function ft(e,t=q){let n=mt(e,t);return n&&(n.tabIndex=0,n.focus()),n}function K(e,t=q){for(let n=0;n<e.length;n++){let r=e[n];if(r.tabIndex===0&&t(r))return{item:r,index:n}}return null}function pt(e,t=q){for(let n of e)if(t(n))return n;return null}function mt(e,t=q){for(let n=e.length-1;n>=0;n--){let r=e[n];if(t(r))return r}return null}function ht(e,t,n=q,r=!0){for(let i=1;i<e.length;i++){let a=(i+t)%e.length;if(a<t&&!r)return null;let o=e[a];if(n(o))return o}return e[t]?e[t]:null}function gt(e,t,n=q,r=!0){for(let i=1;i<e.length;i++){let a=(t-i+e.length)%e.length;if(a>t&&!r)return null;let o=e[a];if(n(o))return o}return e[t]?e[t]:null}function _t(e,t,n=q,r=!0){if(t){let i=ht(e,t.index,n,r);return i&&(i.tabIndex=0,i.focus()),i}return dt(e,n)}function vt(e,t,n=q,r=!0){if(t){let i=gt(e,t.index,n,r);return i&&(i.tabIndex=0,i.focus()),i}return ft(e,n)}function q(e){return!e.disabled}var J={ArrowDown:`ArrowDown`,ArrowLeft:`ArrowLeft`,ArrowUp:`ArrowUp`,ArrowRight:`ArrowRight`,Home:`Home`,End:`End`},yt=class{constructor(e){this.handleKeydown=e=>{let t=e.key;if(e.defaultPrevented||!this.isNavigableKey(t))return;let n=this.items;if(!n.length)return;let r=K(n,this.isActivatable);e.preventDefault();let i=this.isRtl(),a=i?J.ArrowRight:J.ArrowLeft,o=i?J.ArrowLeft:J.ArrowRight,s=null;switch(t){case J.ArrowDown:case o:s=_t(n,r,this.isActivatable,this.wrapNavigation());break;case J.ArrowUp:case a:s=vt(n,r,this.isActivatable,this.wrapNavigation());break;case J.Home:s=dt(n,this.isActivatable);break;case J.End:s=ft(n,this.isActivatable)}s&&r&&r.item!==s&&(r.item.tabIndex=-1)},this.onDeactivateItems=()=>{let e=this.items;for(let t of e)this.deactivateItem(t)},this.onRequestActivation=e=>{this.onDeactivateItems();let t=e.target;this.activateItem(t),t.focus()},this.onSlotchange=()=>{let e=this.items,t=!1;for(let n of e)!n.disabled&&n.tabIndex>-1&&!t?(t=!0,n.tabIndex=0):n.tabIndex=-1;if(t)return;let n=pt(e,this.isActivatable);n&&(n.tabIndex=0)};let{isItem:t,getPossibleItems:n,isRtl:r,deactivateItem:i,activateItem:a,isNavigableKey:o,isActivatable:s,wrapNavigation:c}=e;this.isItem=t,this.getPossibleItems=n,this.isRtl=r,this.deactivateItem=i,this.activateItem=a,this.isNavigableKey=o,this.isActivatable=s,this.wrapNavigation=c??(()=>!0)}get items(){let e=this.getPossibleItems(),t=[];for(let n of e){if(this.isItem(n)){t.push(n);continue}let e=n.item;e&&this.isItem(e)&&t.push(e)}return t}activateNextItem(){let e=this.items,t=K(e,this.isActivatable);return t&&(t.item.tabIndex=-1),_t(e,t,this.isActivatable,this.wrapNavigation())}activatePreviousItem(){let e=this.items,t=K(e,this.isActivatable);return t&&(t.item.tabIndex=-1),vt(e,t,this.isActivatable,this.wrapNavigation())}};function bt(e,t){return new CustomEvent(`close-menu`,{bubbles:!0,composed:!0,detail:{initiator:e,reason:t,itemPath:[e]}})}var xt=bt,St={SPACE:`Space`,ENTER:`Enter`},Ct={CLICK_SELECTION:`click-selection`,KEYDOWN:`keydown`},wt={ESCAPE:`Escape`,SPACE:St.SPACE,ENTER:St.ENTER};function Tt(e){return Object.values(wt).some(t=>t===e)}function Et(e){return Object.values(St).some(t=>t===e)}function Dt(e,t){let n=new Event(`md-contains`,{bubbles:!0,composed:!0}),r=[],i=e=>{r=e.composedPath()};return t.addEventListener(`md-contains`,i),e.dispatchEvent(n),t.removeEventListener(`md-contains`,i),r.length>0}var Y={NONE:`none`,LIST_ROOT:`list-root`,FIRST_ITEM:`first-item`,LAST_ITEM:`last-item`},Ot={END_START:`end-start`,END_END:`end-end`,START_START:`start-start`,START_END:`start-end`},kt=class{constructor(e,t){this.host=e,this.getProperties=t,this.surfaceStylesInternal={display:`none`},this.lastValues={isOpen:!1},this.host.addController(this)}get surfaceStyles(){return this.surfaceStylesInternal}async position(){let{surfaceEl:e,anchorEl:t,anchorCorner:n,surfaceCorner:r,positioning:i,xOffset:a,yOffset:o,disableBlockFlip:s,disableInlineFlip:c,repositionStrategy:l}=this.getProperties(),u=n.toLowerCase().trim(),d=r.toLowerCase().trim();if(!e||!t)return;let f=window.innerWidth,p=window.innerHeight,m=document.createElement(`div`);m.style.opacity=`0`,m.style.position=`fixed`,m.style.display=`block`,m.style.inset=`0`,document.body.appendChild(m);let h=m.getBoundingClientRect();m.remove();let g=window.innerHeight-h.bottom,_=window.innerWidth-h.right;this.surfaceStylesInternal={display:`block`,opacity:`0`},this.host.requestUpdate(),await this.host.updateComplete,e.popover&&e.isConnected&&e.showPopover();let v=e.getSurfacePositionClientRect?e.getSurfacePositionClientRect():e.getBoundingClientRect(),y=t.getSurfacePositionClientRect?t.getSurfacePositionClientRect():t.getBoundingClientRect(),[b,x]=d.split(`-`),[S,C]=u.split(`-`),w=getComputedStyle(e).direction===`ltr`,{blockInset:T,blockOutOfBoundsCorrection:E,surfaceBlockProperty:D}=this.calculateBlock({surfaceRect:v,anchorRect:y,anchorBlock:S,surfaceBlock:b,yOffset:o,positioning:i,windowInnerHeight:p,blockScrollbarHeight:g});if(E&&!s){let e=b===`start`?`end`:`start`,t=S===`start`?`end`:`start`,n=this.calculateBlock({surfaceRect:v,anchorRect:y,anchorBlock:t,surfaceBlock:e,yOffset:o,positioning:i,windowInnerHeight:p,blockScrollbarHeight:g});E>n.blockOutOfBoundsCorrection&&(T=n.blockInset,E=n.blockOutOfBoundsCorrection,D=n.surfaceBlockProperty)}let{inlineInset:ee,inlineOutOfBoundsCorrection:O,surfaceInlineProperty:k}=this.calculateInline({surfaceRect:v,anchorRect:y,anchorInline:C,surfaceInline:x,xOffset:a,positioning:i,isLTR:w,windowInnerWidth:f,inlineScrollbarWidth:_});if(O&&!c){let e=x===`start`?`end`:`start`,t=C===`start`?`end`:`start`,n=this.calculateInline({surfaceRect:v,anchorRect:y,anchorInline:t,surfaceInline:e,xOffset:a,positioning:i,isLTR:w,windowInnerWidth:f,inlineScrollbarWidth:_});Math.abs(O)>Math.abs(n.inlineOutOfBoundsCorrection)&&(ee=n.inlineInset,O=n.inlineOutOfBoundsCorrection,k=n.surfaceInlineProperty)}l===`move`&&(T-=E,ee-=O),this.surfaceStylesInternal={display:`block`,opacity:`1`,[D]:`${T}px`,[k]:`${ee}px`},l===`resize`&&(E&&(this.surfaceStylesInternal.height=`${v.height-E}px`),O&&(this.surfaceStylesInternal.width=`${v.width-O}px`)),this.host.requestUpdate()}calculateBlock(e){let{surfaceRect:t,anchorRect:n,anchorBlock:r,surfaceBlock:i,yOffset:a,positioning:o,windowInnerHeight:s,blockScrollbarHeight:c}=e,l=+(o===`fixed`||o===`document`),u=+(o===`document`),d=+(i===`start`),f=+(i===`end`),p=(r===i?0:1)*n.height+a,m=d*n.top+f*(s-n.bottom-c),h=d*window.scrollY-f*window.scrollY,g=Math.abs(Math.min(0,s-m-p-t.height));return{blockInset:l*m+u*h+p,blockOutOfBoundsCorrection:g,surfaceBlockProperty:i===`start`?`inset-block-start`:`inset-block-end`}}calculateInline(e){let{isLTR:t,surfaceInline:n,anchorInline:r,anchorRect:i,surfaceRect:a,xOffset:o,positioning:s,windowInnerWidth:c,inlineScrollbarWidth:l}=e,u=+(s===`fixed`||s===`document`),d=+(s===`document`),f=+!!t,p=+!t,m=+(n===`start`),h=+(n===`end`),g=(r===n?0:1)*i.width+o,_=m*i.left+h*(c-i.right-l),v=m*(c-i.right-l)+h*i.left,y=f*_+p*v,b=m*window.scrollX-h*window.scrollX,x=h*window.scrollX-m*window.scrollX,S=f*b+p*x,C=Math.abs(Math.min(0,c-y-g-a.width)),w=u*y+g+d*S,T=n===`start`?`inset-inline-start`:`inset-inline-end`;return(s===`document`||s===`fixed`)&&(T=n===`start`&&t||n===`end`&&!t?`left`:`right`),{inlineInset:w,inlineOutOfBoundsCorrection:C,surfaceInlineProperty:T}}hostUpdate(){this.onUpdate()}hostUpdated(){this.onUpdate()}async onUpdate(){let e=this.getProperties(),t=!1;for(let[n,r]of Object.entries(e))if(t||=r!==this.lastValues[n],t)break;let n=this.lastValues.isOpen!==e.isOpen,r=!!e.anchorEl,i=!!e.surfaceEl;t&&r&&i&&(this.lastValues.isOpen=e.isOpen,e.isOpen?(this.lastValues=e,await this.position(),e.onOpen()):n&&(await e.beforeClose(),this.close(),e.onClose()))}close(){this.surfaceStylesInternal={display:`none`},this.host.requestUpdate();let e=this.getProperties().surfaceEl;e?.popover&&e?.isConnected&&e.hidePopover()}},X={INDEX:0,ITEM:1,TEXT:2},At=class{constructor(e){this.getProperties=e,this.typeaheadRecords=[],this.typaheadBuffer=``,this.cancelTypeaheadTimeout=0,this.isTypingAhead=!1,this.lastActiveRecord=null,this.onKeydown=e=>{this.isTypingAhead?this.typeahead(e):this.beginTypeahead(e)},this.endTypeahead=()=>{this.isTypingAhead=!1,this.typaheadBuffer=``,this.typeaheadRecords=[]}}get items(){return this.getProperties().getItems()}get active(){return this.getProperties().active}beginTypeahead(e){this.active&&(e.code===`Space`||e.code===`Enter`||e.code.startsWith(`Arrow`)||e.code===`Escape`||(this.isTypingAhead=!0,this.typeaheadRecords=this.items.map((e,t)=>[t,e,e.typeaheadText.trim().toLowerCase()]),this.lastActiveRecord=this.typeaheadRecords.find(e=>e[X.ITEM].tabIndex===0)??null,this.lastActiveRecord&&(this.lastActiveRecord[X.ITEM].tabIndex=-1),this.typeahead(e)))}typeahead(e){if(e.defaultPrevented)return;if(clearTimeout(this.cancelTypeaheadTimeout),e.code===`Enter`||e.code.startsWith(`Arrow`)||e.code===`Escape`){this.endTypeahead(),this.lastActiveRecord&&(this.lastActiveRecord[X.ITEM].tabIndex=-1);return}e.code===`Space`&&e.preventDefault(),this.cancelTypeaheadTimeout=setTimeout(this.endTypeahead,this.getProperties().typeaheadBufferTime),this.typaheadBuffer+=e.key.toLowerCase();let t=this.lastActiveRecord?this.lastActiveRecord[X.INDEX]:-1,n=this.typeaheadRecords.length,r=e=>(e[X.INDEX]+n-t)%n,i=this.typeaheadRecords.filter(e=>!e[X.ITEM].disabled&&e[X.TEXT].startsWith(this.typaheadBuffer)).sort((e,t)=>r(e)-r(t));if(i.length===0){clearTimeout(this.cancelTypeaheadTimeout),this.lastActiveRecord&&(this.lastActiveRecord[X.ITEM].tabIndex=-1),this.endTypeahead();return}let a=this.typaheadBuffer.length===1,o;o=this.lastActiveRecord===i[0]&&a?i[1]??i[0]:i[0],this.lastActiveRecord&&(this.lastActiveRecord[X.ITEM].tabIndex=-1),this.lastActiveRecord=o,o[X.ITEM].tabIndex=0,o[X.ITEM].focus()}},jt=new Set([J.ArrowDown,J.ArrowUp,J.Home,J.End]),Mt=new Set([J.ArrowLeft,J.ArrowRight,...jt]);function Nt(e=document){let t=e.activeElement;for(;t&&t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}var Z=class extends B{get openDirection(){return this.menuCorner.split(`-`)[0]===`start`?`DOWN`:`UP`}get anchorElement(){return this.anchor?this.getRootNode().querySelector(`#${this.anchor}`):this.currentAnchorElement}set anchorElement(e){this.currentAnchorElement=e,this.requestUpdate(`anchorElement`)}constructor(){super(),this.anchor=``,this.positioning=`absolute`,this.quick=!1,this.hasOverflow=!1,this.open=!1,this.xOffset=0,this.yOffset=0,this.noHorizontalFlip=!1,this.noVerticalFlip=!1,this.typeaheadDelay=200,this.anchorCorner=Ot.END_START,this.menuCorner=Ot.START_START,this.stayOpenOnOutsideClick=!1,this.stayOpenOnFocusout=!1,this.skipRestoreFocus=!1,this.defaultFocus=Y.FIRST_ITEM,this.noNavigationWrap=!1,this.typeaheadActive=!0,this.isSubmenu=!1,this.pointerPath=[],this.isRepositioning=!1,this.openCloseAnimationSignal=se(),this.listController=new yt({isItem:e=>e.hasAttribute(`md-menu-item`),getPossibleItems:()=>this.slotItems,isRtl:()=>getComputedStyle(this).direction===`rtl`,deactivateItem:e=>{e.selected=!1,e.tabIndex=-1},activateItem:e=>{e.selected=!0,e.tabIndex=0},isNavigableKey:e=>this.isSubmenu?e===(getComputedStyle(this).direction===`rtl`?J.ArrowLeft:J.ArrowRight)||jt.has(e):Mt.has(e),wrapNavigation:()=>!this.noNavigationWrap}),this.lastFocusedElement=null,this.typeaheadController=new At(()=>({getItems:()=>this.items,typeaheadBufferTime:this.typeaheadDelay,active:this.typeaheadActive})),this.currentAnchorElement=null,this.internals=this.attachInternals(),this.menuPositionController=new kt(this,()=>({anchorCorner:this.anchorCorner,surfaceCorner:this.menuCorner,surfaceEl:this.surfaceEl,anchorEl:this.anchorElement,positioning:this.positioning===`popover`?`document`:this.positioning,isOpen:this.open,xOffset:this.xOffset,yOffset:this.yOffset,disableBlockFlip:this.noVerticalFlip,disableInlineFlip:this.noHorizontalFlip,onOpen:this.onOpened,beforeClose:this.beforeClose,onClose:this.onClosed,repositionStrategy:this.hasOverflow&&this.positioning!==`popover`?`move`:`resize`})),this.onWindowResize=()=>{this.isRepositioning||this.positioning!==`document`&&this.positioning!==`fixed`&&this.positioning!==`popover`||(this.isRepositioning=!0,this.reposition(),this.isRepositioning=!1)},this.handleFocusout=async e=>{let t=this.anchorElement;if(this.stayOpenOnFocusout||!this.open||this.pointerPath.includes(t))return;if(e.relatedTarget){if(Dt(e.relatedTarget,this)||this.pointerPath.length!==0&&Dt(e.relatedTarget,t))return}else if(this.pointerPath.includes(this))return;let n=this.skipRestoreFocus;this.skipRestoreFocus=!0,this.close(),await this.updateComplete,this.skipRestoreFocus=n},this.onOpened=async()=>{this.lastFocusedElement=Nt();let e=this.items,t=K(e);t&&this.defaultFocus!==Y.NONE&&(t.item.tabIndex=-1);let n=!this.quick;switch(this.quick?this.dispatchEvent(new Event(`opening`)):n=!!await this.animateOpen(),this.defaultFocus){case Y.FIRST_ITEM:let t=pt(e);t&&(t.tabIndex=0,t.focus(),await t.updateComplete);break;case Y.LAST_ITEM:let n=mt(e);n&&(n.tabIndex=0,n.focus(),await n.updateComplete);break;case Y.LIST_ROOT:this.focus();break;default:case Y.NONE:}n||this.dispatchEvent(new Event(`opened`))},this.beforeClose=async()=>{this.open=!1,this.skipRestoreFocus||this.lastFocusedElement?.focus?.(),this.quick||await this.animateClose()},this.onClosed=()=>{this.quick&&(this.dispatchEvent(new Event(`closing`)),this.dispatchEvent(new Event(`closed`)))},this.onWindowPointerdown=e=>{this.pointerPath=e.composedPath()},this.onDocumentClick=e=>{if(!this.open)return;let t=e.composedPath();this.stayOpenOnOutsideClick||t.includes(this)||t.includes(this.anchorElement)||(this.open=!1)},this.internals.role=`menu`,this.addEventListener(`keydown`,this.handleKeydown),this.addEventListener(`keydown`,this.captureKeydown,{capture:!0}),this.addEventListener(`focusout`,this.handleFocusout)}get items(){return this.listController.items}willUpdate(e){e.has(`open`)&&(this.open?this.removeAttribute(`aria-hidden`):this.setAttribute(`aria-hidden`,`true`))}update(e){e.has(`open`)&&(this.open?this.setUpGlobalEventListeners():this.cleanUpGlobalEventListeners()),e.has(`positioning`)&&this.positioning===`popover`&&!this.showPopover&&(this.positioning=`fixed`),super.update(e)}connectedCallback(){super.connectedCallback(),this.open&&this.setUpGlobalEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.cleanUpGlobalEventListeners()}getBoundingClientRect(){return this.surfaceEl?this.surfaceEl.getBoundingClientRect():super.getBoundingClientRect()}getClientRects(){return this.surfaceEl?this.surfaceEl.getClientRects():super.getClientRects()}render(){return this.renderSurface()}renderSurface(){return R`
22
+ <div
23
+ class="menu ${ue(this.getSurfaceClasses())}"
24
+ style=${ye(this.menuPositionController.surfaceStyles)}
25
+ popover=${this.positioning===`popover`?`manual`:U}>
26
+ ${this.renderElevation()}
27
+ <div class="items">
28
+ <div class="item-padding"> ${this.renderMenuItems()} </div>
29
+ </div>
30
+ </div>
31
+ `}renderMenuItems(){return R`<slot
32
+ @close-menu=${this.onCloseMenu}
33
+ @deactivate-items=${this.onDeactivateItems}
34
+ @request-activation=${this.onRequestActivation}
35
+ @deactivate-typeahead=${this.handleDeactivateTypeahead}
36
+ @activate-typeahead=${this.handleActivateTypeahead}
37
+ @stay-open-on-focusout=${this.handleStayOpenOnFocusout}
38
+ @close-on-focusout=${this.handleCloseOnFocusout}
39
+ @slotchange=${this.listController.onSlotchange}></slot>`}renderElevation(){return R`<md-elevation part="elevation"></md-elevation>`}getSurfaceClasses(){return{open:this.open,fixed:this.positioning===`fixed`,"has-overflow":this.hasOverflow}}captureKeydown(e){e.target===this&&!e.defaultPrevented&&Tt(e.code)&&(e.preventDefault(),this.close()),this.typeaheadController.onKeydown(e)}async animateOpen(){let e=this.surfaceEl,t=this.slotEl;if(!e||!t)return!0;let n=this.openDirection;this.dispatchEvent(new Event(`opening`)),e.classList.toggle(`animating`,!0);let r=this.openCloseAnimationSignal.start(),i=e.offsetHeight,a=n===`UP`,o=this.items,s=250/o.length,c=e.animate([{height:`0px`},{height:`${i}px`}],{duration:500,easing:oe.EMPHASIZED}),l=t.animate([{transform:a?`translateY(-${i}px)`:``},{transform:``}],{duration:500,easing:oe.EMPHASIZED}),u=e.animate([{opacity:0},{opacity:1}],50),d=[];for(let e=0;e<o.length;e++){let t=o[a?o.length-1-e:e],n=t.animate([{opacity:0},{opacity:1}],{duration:250,delay:s*e});t.classList.toggle(`md-menu-hidden`,!0),n.addEventListener(`finish`,()=>{t.classList.toggle(`md-menu-hidden`,!1)}),d.push([t,n])}let f=e=>{},p=new Promise(e=>{f=e});return r.addEventListener(`abort`,()=>{c.cancel(),l.cancel(),u.cancel(),d.forEach(([e,t])=>{e.classList.toggle(`md-menu-hidden`,!1),t.cancel()}),f(!0)}),c.addEventListener(`finish`,()=>{e.classList.toggle(`animating`,!1),this.openCloseAnimationSignal.finish(),f(!1)}),await p}animateClose(){let e,t=new Promise(t=>{e=t}),n=this.surfaceEl,r=this.slotEl;if(!n||!r)return e(!1),t;let i=this.openDirection===`UP`;this.dispatchEvent(new Event(`closing`)),n.classList.toggle(`animating`,!0);let a=this.openCloseAnimationSignal.start(),o=n.offsetHeight,s=this.items,c=50/s.length,l=n.animate([{height:`${o}px`},{height:`${o*.35}px`}],{duration:150,easing:oe.EMPHASIZED_ACCELERATE}),u=r.animate([{transform:``},{transform:i?`translateY(-${o*.65}px)`:``}],{duration:150,easing:oe.EMPHASIZED_ACCELERATE}),d=n.animate([{opacity:1},{opacity:0}],{duration:50,delay:100}),f=[];for(let e=0;e<s.length;e++){let t=s[i?e:s.length-1-e],n=t.animate([{opacity:1},{opacity:0}],{duration:50,delay:50+c*e});n.addEventListener(`finish`,()=>{t.classList.toggle(`md-menu-hidden`,!0)}),f.push([t,n])}return a.addEventListener(`abort`,()=>{l.cancel(),u.cancel(),d.cancel(),f.forEach(([e,t])=>{t.cancel(),e.classList.toggle(`md-menu-hidden`,!1)}),e(!1)}),l.addEventListener(`finish`,()=>{n.classList.toggle(`animating`,!1),f.forEach(([e])=>{e.classList.toggle(`md-menu-hidden`,!1)}),this.openCloseAnimationSignal.finish(),this.dispatchEvent(new Event(`closed`)),e(!0)}),t}handleKeydown(e){this.pointerPath=[],this.listController.handleKeydown(e)}setUpGlobalEventListeners(){document.addEventListener(`click`,this.onDocumentClick,{capture:!0}),window.addEventListener(`pointerdown`,this.onWindowPointerdown),document.addEventListener(`resize`,this.onWindowResize,{passive:!0}),window.addEventListener(`resize`,this.onWindowResize,{passive:!0})}cleanUpGlobalEventListeners(){document.removeEventListener(`click`,this.onDocumentClick,{capture:!0}),window.removeEventListener(`pointerdown`,this.onWindowPointerdown),document.removeEventListener(`resize`,this.onWindowResize),window.removeEventListener(`resize`,this.onWindowResize)}onCloseMenu(){this.close()}onDeactivateItems(e){e.stopPropagation(),this.listController.onDeactivateItems()}onRequestActivation(e){e.stopPropagation(),this.listController.onRequestActivation(e)}handleDeactivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!1}handleActivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!0}handleStayOpenOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!0}handleCloseOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!1}close(){this.open=!1,this.slotItems.forEach(e=>{e.close?.()})}show(){this.open=!0}activateNextItem(){return this.listController.activateNextItem()??null}activatePreviousItem(){return this.listController.activatePreviousItem()??null}reposition(){this.open&&this.menuPositionController.position()}};V([z(`.menu`)],Z.prototype,`surfaceEl`,void 0),V([z(`slot`)],Z.prototype,`slotEl`,void 0),V([L()],Z.prototype,`anchor`,void 0),V([L()],Z.prototype,`positioning`,void 0),V([L({type:Boolean})],Z.prototype,`quick`,void 0),V([L({type:Boolean,attribute:`has-overflow`})],Z.prototype,`hasOverflow`,void 0),V([L({type:Boolean,reflect:!0})],Z.prototype,`open`,void 0),V([L({type:Number,attribute:`x-offset`})],Z.prototype,`xOffset`,void 0),V([L({type:Number,attribute:`y-offset`})],Z.prototype,`yOffset`,void 0),V([L({type:Boolean,attribute:`no-horizontal-flip`})],Z.prototype,`noHorizontalFlip`,void 0),V([L({type:Boolean,attribute:`no-vertical-flip`})],Z.prototype,`noVerticalFlip`,void 0),V([L({type:Number,attribute:`typeahead-delay`})],Z.prototype,`typeaheadDelay`,void 0),V([L({attribute:`anchor-corner`})],Z.prototype,`anchorCorner`,void 0),V([L({attribute:`menu-corner`})],Z.prototype,`menuCorner`,void 0),V([L({type:Boolean,attribute:`stay-open-on-outside-click`})],Z.prototype,`stayOpenOnOutsideClick`,void 0),V([L({type:Boolean,attribute:`stay-open-on-focusout`})],Z.prototype,`stayOpenOnFocusout`,void 0),V([L({type:Boolean,attribute:`skip-restore-focus`})],Z.prototype,`skipRestoreFocus`,void 0),V([L({attribute:`default-focus`})],Z.prototype,`defaultFocus`,void 0),V([L({type:Boolean,attribute:`no-navigation-wrap`})],Z.prototype,`noNavigationWrap`,void 0),V([Oe({flatten:!0})],Z.prototype,`slotItems`,void 0),V([I()],Z.prototype,`typeaheadActive`,void 0);var Pt=H`:host{--md-elevation-level: var(--md-menu-container-elevation, 2);--md-elevation-shadow-color: var(--md-menu-container-shadow-color, var(--md-sys-color-shadow, #000));min-width:112px;color:unset;display:contents}md-focus-ring{--md-focus-ring-shape: var(--md-menu-container-shape, var(--md-sys-shape-corner-extra-small, 4px))}.menu{border-radius:var(--md-menu-container-shape, var(--md-sys-shape-corner-extra-small, 4px));display:none;inset:auto;border:none;padding:0px;overflow:visible;background-color:rgba(0,0,0,0);color:inherit;opacity:0;z-index:20;position:absolute;user-select:none;max-height:inherit;height:inherit;min-width:inherit;max-width:inherit;scrollbar-width:inherit}.menu::backdrop{display:none}.fixed{position:fixed}.items{display:block;list-style-type:none;margin:0;outline:none;box-sizing:border-box;background-color:var(--md-menu-container-color, var(--md-sys-color-surface-container, #f3edf7));height:inherit;max-height:inherit;overflow:auto;min-width:inherit;max-width:inherit;border-radius:inherit;scrollbar-width:inherit}.item-padding{padding-block:var(--md-menu-top-space, 8px) var(--md-menu-bottom-space, 8px)}.has-overflow:not([popover]) .items{overflow:visible}.has-overflow.animating .items,.animating .items{overflow:hidden}.has-overflow.animating .items{pointer-events:none}.animating ::slotted(.md-menu-hidden){opacity:0}slot{display:block;height:inherit;max-height:inherit}::slotted(:is(md-divider,[role=separator])){margin:8px 0}@media(forced-colors: active){.menu{border-style:solid;border-color:CanvasText;border-width:1px}}
40
+ `;Pt.styleSheet;var Ft=class extends Z{};Ft.styles=[Pt],Ft=V([F(`md-menu`)],Ft);var It=class extends be{computeValidity(e){return this.selectControl||=document.createElement(`select`),pe(R`<option value=${e.value}></option>`,this.selectControl),this.selectControl.value=e.value,this.selectControl.required=e.required,{validity:this.selectControl.validity,validationMessage:this.selectControl.validationMessage}}equals(e,t){return e.value===t.value&&e.required===t.required}copy({value:e,required:t}){return{value:e,required:t}}};function Lt(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];r.selected&&t.push([r,n])}return t}var Rt,zt=Symbol(`value`),Bt=fe(ge(_e(ae(de(B))))),Q=class extends Bt{get value(){return this[zt]}set value(e){this.lastUserSetValue=e,this.select(e)}get options(){return this.menu?.items??[]}get selectedIndex(){let[e,t]=(this.getSelectedOptions()??[])[0]??[];return t??-1}set selectedIndex(e){this.lastUserSetSelectedIndex=e,this.selectIndex(e)}get selectedOptions(){return(this.getSelectedOptions()??[]).map(([e])=>e)}get hasError(){return this.error||this.nativeError}constructor(){super(),this.quick=!1,this.required=!1,this.errorText=``,this.label=``,this.noAsterisk=!1,this.supportingText=``,this.error=!1,this.menuPositioning=`popover`,this.clampMenuWidth=!1,this.typeaheadDelay=200,this.hasLeadingIcon=!1,this.displayText=``,this.menuAlign=`start`,this[Rt]=``,this.lastUserSetValue=null,this.lastUserSetSelectedIndex=null,this.lastSelectedOption=null,this.lastSelectedOptionRecords=[],this.nativeError=!1,this.nativeErrorText=``,this.focused=!1,this.open=!1,this.defaultFocus=Y.NONE,this.prevOpen=this.open,this.selectWidth=0,this.addEventListener(`focus`,this.handleFocus.bind(this)),this.addEventListener(`blur`,this.handleBlur.bind(this))}select(e){let t=this.options.find(t=>t.value===e);t&&this.selectItem(t)}selectIndex(e){let t=this.options[e];t&&this.selectItem(t)}reset(){for(let e of this.options)e.selected=e.hasAttribute(`selected`);this.updateValueAndDisplayText(),this.nativeError=!1,this.nativeErrorText=``}showPicker(){this.open=!0}[(Rt=zt,ve)](e){e?.preventDefault();let t=this.getErrorText();this.nativeError=!!e,this.nativeErrorText=this.validationMessage,t===this.getErrorText()&&this.field?.reannounceError()}update(e){if(this.hasUpdated||this.initUserSelection(),this.prevOpen!==this.open&&this.open){let e=this.getBoundingClientRect();this.selectWidth=e.width}this.prevOpen=this.open,super.update(e)}render(){return R`
41
+ <span
42
+ class="select ${ue(this.getRenderClasses())}"
43
+ @focusout=${this.handleFocusout}>
44
+ ${this.renderField()} ${this.renderMenu()}
45
+ </span>
46
+ `}async firstUpdated(e){await this.menu?.updateComplete,this.lastSelectedOptionRecords.length||this.initUserSelection(),!this.lastSelectedOptionRecords.length&&!this.options.length&&setTimeout(()=>{this.updateValueAndDisplayText()}),super.firstUpdated(e)}getRenderClasses(){return{disabled:this.disabled,error:this.error,open:this.open}}renderField(){let e=this.ariaLabel||this.label;return ke`
47
+ <${this.fieldTag}
48
+ aria-haspopup="listbox"
49
+ role="combobox"
50
+ part="field"
51
+ id="field"
52
+ tabindex=${this.disabled?`-1`:`0`}
53
+ aria-label=${e||U}
54
+ aria-describedby="description"
55
+ aria-expanded=${this.open?`true`:`false`}
56
+ aria-controls="listbox"
57
+ class="field"
58
+ label=${this.label}
59
+ ?no-asterisk=${this.noAsterisk}
60
+ .focused=${this.focused||this.open}
61
+ .populated=${!!this.displayText}
62
+ .disabled=${this.disabled}
63
+ .required=${this.required}
64
+ .error=${this.hasError}
65
+ ?has-start=${this.hasLeadingIcon}
66
+ has-end
67
+ supporting-text=${this.supportingText}
68
+ error-text=${this.getErrorText()}
69
+ @keydown=${this.handleKeydown}
70
+ @click=${this.handleClick}>
71
+ ${this.renderFieldContent()}
72
+ <div id="description" slot="aria-describedby"></div>
73
+ </${this.fieldTag}>`}renderFieldContent(){return[this.renderLeadingIcon(),this.renderLabel(),this.renderTrailingIcon()]}renderLeadingIcon(){return R`
74
+ <span class="icon leading" slot="start">
75
+ <slot name="leading-icon" @slotchange=${this.handleIconChange}></slot>
76
+ </span>
77
+ `}renderTrailingIcon(){return R`
78
+ <span class="icon trailing" slot="end">
79
+ <slot name="trailing-icon" @slotchange=${this.handleIconChange}>
80
+ <svg height="5" viewBox="7 10 10 5" focusable="false">
81
+ <polygon
82
+ class="down"
83
+ stroke="none"
84
+ fill-rule="evenodd"
85
+ points="7 10 12 15 17 10"></polygon>
86
+ <polygon
87
+ class="up"
88
+ stroke="none"
89
+ fill-rule="evenodd"
90
+ points="7 15 12 10 17 15"></polygon>
91
+ </svg>
92
+ </slot>
93
+ </span>
94
+ `}renderLabel(){return R`<div id="label">${this.displayText||R`&nbsp;`}</div>`}renderMenu(){let e=this.label||this.ariaLabel;return R`<div class="menu-wrapper">
95
+ <md-menu
96
+ id="listbox"
97
+ .defaultFocus=${this.defaultFocus}
98
+ role="listbox"
99
+ tabindex="-1"
100
+ aria-label=${e||U}
101
+ stay-open-on-focusout
102
+ part="menu"
103
+ exportparts="focus-ring: menu-focus-ring"
104
+ anchor="field"
105
+ style=${ye({"--__menu-min-width":`${this.selectWidth}px`,"--__menu-max-width":this.clampMenuWidth?`${this.selectWidth}px`:void 0})}
106
+ no-navigation-wrap
107
+ .open=${this.open}
108
+ .quick=${this.quick}
109
+ .positioning=${this.menuPositioning}
110
+ .typeaheadDelay=${this.typeaheadDelay}
111
+ .anchorCorner=${this.menuAlign===`start`?`end-start`:`end-end`}
112
+ .menuCorner=${this.menuAlign===`start`?`start-start`:`start-end`}
113
+ @opening=${this.handleOpening}
114
+ @opened=${this.redispatchEvent}
115
+ @closing=${this.redispatchEvent}
116
+ @closed=${this.handleClosed}
117
+ @close-menu=${this.handleCloseMenu}
118
+ @request-selection=${this.handleRequestSelection}
119
+ @request-deselection=${this.handleRequestDeselection}>
120
+ ${this.renderMenuContent()}
121
+ </md-menu>
122
+ </div>`}renderMenuContent(){return R`<slot></slot>`}handleKeydown(e){if(this.open||this.disabled||!this.menu)return;let t=this.menu.typeaheadController,n=e.code===`Space`||e.code===`ArrowDown`||e.code===`ArrowUp`||e.code===`End`||e.code===`Home`||e.code===`Enter`;if(!t.isTypingAhead&&n)switch(e.preventDefault(),this.open=!0,e.code){case`Space`:case`ArrowDown`:case`Enter`:this.defaultFocus=Y.NONE;break;case`End`:this.defaultFocus=Y.LAST_ITEM;break;case`ArrowUp`:case`Home`:this.defaultFocus=Y.FIRST_ITEM}else if(e.key.length===1){t.onKeydown(e),e.preventDefault();let{lastActiveRecord:n}=t;if(!n)return;this.labelEl?.setAttribute?.(`aria-live`,`polite`),this.selectItem(n[X.ITEM])&&this.dispatchInteractionEvents()}}handleClick(){this.open=!this.open}handleFocus(){this.focused=!0}handleBlur(){this.focused=!1}handleFocusout(e){e.relatedTarget&&Dt(e.relatedTarget,this)||(this.open=!1)}getSelectedOptions(){if(!this.menu)return this.lastSelectedOptionRecords=[],null;let e=this.menu.items;return this.lastSelectedOptionRecords=Lt(e),this.lastSelectedOptionRecords}async getUpdateComplete(){return await this.menu?.updateComplete,super.getUpdateComplete()}updateValueAndDisplayText(){let e=this.getSelectedOptions()??[],t=!1;if(e.length){let[n]=e[0];t=this.lastSelectedOption!==n,this.lastSelectedOption=n,this[zt]=n.value,this.displayText=n.displayText}else t=this.lastSelectedOption!==null,this.lastSelectedOption=null,this[zt]=``,this.displayText=``;return t}async handleOpening(e){if(this.labelEl?.removeAttribute?.(`aria-live`),this.redispatchEvent(e),this.defaultFocus!==Y.NONE)return;let t=this.menu.items,n=K(t)?.item,[r]=this.lastSelectedOptionRecords[0]??[null];n&&n!==r&&(n.tabIndex=-1),r??=t[0],r&&(r.tabIndex=0,r.focus())}redispatchEvent(e){Me(this,e)}handleClosed(e){this.open=!1,this.redispatchEvent(e)}handleCloseMenu(e){let t=e.detail.reason,n=e.detail.itemPath[0];this.open=!1;let r=!1;t.kind===`click-selection`||t.kind===`keydown`&&Et(t.key)?r=this.selectItem(n):(n.tabIndex=-1,n.blur()),r&&this.dispatchInteractionEvents()}selectItem(e){return(this.getSelectedOptions()??[]).forEach(([t])=>{e!==t&&(t.selected=!1,t.tabIndex=-1)}),e.selected=!0,e.tabIndex=0,this.updateValueAndDisplayText()}handleRequestSelection(e){let t=e.target;this.lastSelectedOptionRecords.some(([e])=>e===t)||this.selectItem(t)}handleRequestDeselection(e){let t=e.target;this.lastSelectedOptionRecords.some(([e])=>e===t)&&this.updateValueAndDisplayText()}initUserSelection(){this.lastUserSetValue&&!this.lastSelectedOptionRecords.length?this.select(this.lastUserSetValue):this.lastUserSetSelectedIndex!==null&&!this.lastSelectedOptionRecords.length?this.selectIndex(this.lastUserSetSelectedIndex):this.updateValueAndDisplayText()}handleIconChange(){this.hasLeadingIcon=this.leadingIcons.length>0}dispatchInteractionEvents(){this.dispatchEvent(new Event(`input`,{bubbles:!0,composed:!0})),this.dispatchEvent(new Event(`change`,{bubbles:!0}))}getErrorText(){return this.error?this.errorText:this.nativeErrorText}[ce](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}click(){this.field?.click()}[he](){return new It(()=>this)}[me](){return this.field}};Q.shadowRootOptions={...B.shadowRootOptions,delegatesFocus:!0},V([L({type:Boolean})],Q.prototype,`quick`,void 0),V([L({type:Boolean})],Q.prototype,`required`,void 0),V([L({type:String,attribute:`error-text`})],Q.prototype,`errorText`,void 0),V([L()],Q.prototype,`label`,void 0),V([L({type:Boolean,attribute:`no-asterisk`})],Q.prototype,`noAsterisk`,void 0),V([L({type:String,attribute:`supporting-text`})],Q.prototype,`supportingText`,void 0),V([L({type:Boolean,reflect:!0})],Q.prototype,`error`,void 0),V([L({attribute:`menu-positioning`})],Q.prototype,`menuPositioning`,void 0),V([L({type:Boolean,attribute:`clamp-menu-width`})],Q.prototype,`clampMenuWidth`,void 0),V([L({type:Number,attribute:`typeahead-delay`})],Q.prototype,`typeaheadDelay`,void 0),V([L({type:Boolean,attribute:`has-leading-icon`})],Q.prototype,`hasLeadingIcon`,void 0),V([L({attribute:`display-text`})],Q.prototype,`displayText`,void 0),V([L({attribute:`menu-align`})],Q.prototype,`menuAlign`,void 0),V([L()],Q.prototype,`value`,null),V([L({type:Number,attribute:`selected-index`})],Q.prototype,`selectedIndex`,null),V([I()],Q.prototype,`nativeError`,void 0),V([I()],Q.prototype,`nativeErrorText`,void 0),V([I()],Q.prototype,`focused`,void 0),V([I()],Q.prototype,`open`,void 0),V([I()],Q.prototype,`defaultFocus`,void 0),V([z(`.field`)],Q.prototype,`field`,void 0),V([z(`md-menu`)],Q.prototype,`menu`,void 0),V([z(`#label`)],Q.prototype,`labelEl`,void 0),V([Oe({slot:`leading-icon`,flatten:!0})],Q.prototype,`leadingIcons`,void 0);var Vt=class extends Q{constructor(){super(...arguments),this.fieldTag=Ae`md-outlined-field`}},Ht=H`:host{--_text-field-disabled-input-text-color: var(--md-outlined-select-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-input-text-opacity: var(--md-outlined-select-text-field-disabled-input-text-opacity, 0.38);--_text-field-disabled-label-text-color: var(--md-outlined-select-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-label-text-opacity: var(--md-outlined-select-text-field-disabled-label-text-opacity, 0.38);--_text-field-disabled-leading-icon-color: var(--md-outlined-select-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-leading-icon-opacity: var(--md-outlined-select-text-field-disabled-leading-icon-opacity, 0.38);--_text-field-disabled-outline-color: var(--md-outlined-select-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-outline-opacity: var(--md-outlined-select-text-field-disabled-outline-opacity, 0.12);--_text-field-disabled-outline-width: var(--md-outlined-select-text-field-disabled-outline-width, 1px);--_text-field-disabled-supporting-text-color: var(--md-outlined-select-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-supporting-text-opacity: var(--md-outlined-select-text-field-disabled-supporting-text-opacity, 0.38);--_text-field-disabled-trailing-icon-color: var(--md-outlined-select-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-disabled-trailing-icon-opacity: var(--md-outlined-select-text-field-disabled-trailing-icon-opacity, 0.38);--_text-field-error-focus-input-text-color: var(--md-outlined-select-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-focus-label-text-color: var(--md-outlined-select-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-leading-icon-color: var(--md-outlined-select-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-focus-outline-color: var(--md-outlined-select-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-supporting-text-color: var(--md-outlined-select-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-focus-trailing-icon-color: var(--md-outlined-select-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-input-text-color: var(--md-outlined-select-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-hover-label-text-color: var(--md-outlined-select-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-leading-icon-color: var(--md-outlined-select-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-hover-outline-color: var(--md-outlined-select-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-hover-supporting-text-color: var(--md-outlined-select-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-hover-trailing-icon-color: var(--md-outlined-select-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_text-field-error-input-text-color: var(--md-outlined-select-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-error-label-text-color: var(--md-outlined-select-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-leading-icon-color: var(--md-outlined-select-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-error-outline-color: var(--md-outlined-select-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_text-field-error-supporting-text-color: var(--md-outlined-select-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_text-field-error-trailing-icon-color: var(--md-outlined-select-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_text-field-focus-input-text-color: var(--md-outlined-select-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-focus-label-text-color: var(--md-outlined-select-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-leading-icon-color: var(--md-outlined-select-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-outline-color: var(--md-outlined-select-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_text-field-focus-outline-width: var(--md-outlined-select-text-field-focus-outline-width, 3px);--_text-field-focus-supporting-text-color: var(--md-outlined-select-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-focus-trailing-icon-color: var(--md-outlined-select-text-field-focus-trailing-icon-color, var(--md-sys-color-primary, #6750a4));--_text-field-hover-input-text-color: var(--md-outlined-select-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-label-text-color: var(--md-outlined-select-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-leading-icon-color: var(--md-outlined-select-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-outline-color: var(--md-outlined-select-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-hover-outline-width: var(--md-outlined-select-text-field-hover-outline-width, 1px);--_text-field-hover-supporting-text-color: var(--md-outlined-select-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-hover-trailing-icon-color: var(--md-outlined-select-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-input-text-color: var(--md-outlined-select-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_text-field-input-text-font: var(--md-outlined-select-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-input-text-line-height: var(--md-outlined-select-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-input-text-size: var(--md-outlined-select-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-input-text-weight: var(--md-outlined-select-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-label-text-color: var(--md-outlined-select-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-label-text-font: var(--md-outlined-select-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-label-text-line-height: var(--md-outlined-select-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_text-field-label-text-populated-line-height: var(--md-outlined-select-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-label-text-populated-size: var(--md-outlined-select-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-label-text-size: var(--md-outlined-select-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_text-field-label-text-weight: var(--md-outlined-select-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-leading-icon-color: var(--md-outlined-select-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-leading-icon-size: var(--md-outlined-select-text-field-leading-icon-size, 24px);--_text-field-outline-color: var(--md-outlined-select-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_text-field-outline-width: var(--md-outlined-select-text-field-outline-width, 1px);--_text-field-supporting-text-color: var(--md-outlined-select-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-supporting-text-font: var(--md-outlined-select-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_text-field-supporting-text-line-height: var(--md-outlined-select-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_text-field-supporting-text-size: var(--md-outlined-select-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_text-field-supporting-text-weight: var(--md-outlined-select-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_text-field-trailing-icon-color: var(--md-outlined-select-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_text-field-trailing-icon-size: var(--md-outlined-select-text-field-trailing-icon-size, 24px);--_text-field-container-shape-start-start: var(--md-outlined-select-text-field-container-shape-start-start, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-start-end: var(--md-outlined-select-text-field-container-shape-start-end, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-end-end: var(--md-outlined-select-text-field-container-shape-end-end, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_text-field-container-shape-end-start: var(--md-outlined-select-text-field-container-shape-end-start, var(--md-outlined-select-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--md-outlined-field-container-shape-end-end: var(--_text-field-container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_text-field-container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_text-field-container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_text-field-container-shape-start-start);--md-outlined-field-content-color: var(--_text-field-input-text-color);--md-outlined-field-content-font: var(--_text-field-input-text-font);--md-outlined-field-content-line-height: var(--_text-field-input-text-line-height);--md-outlined-field-content-size: var(--_text-field-input-text-size);--md-outlined-field-content-weight: var(--_text-field-input-text-weight);--md-outlined-field-disabled-content-color: var(--_text-field-disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_text-field-disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_text-field-disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_text-field-disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_text-field-disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_text-field-disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_text-field-disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_text-field-disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_text-field-disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_text-field-disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_text-field-disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_text-field-disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_text-field-disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_text-field-error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_text-field-error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_text-field-error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_text-field-error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_text-field-error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_text-field-error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_text-field-error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_text-field-error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_text-field-error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_text-field-error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_text-field-error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_text-field-error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_text-field-error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_text-field-error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_text-field-error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_text-field-error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_text-field-error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_text-field-error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_text-field-focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_text-field-focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_text-field-focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_text-field-focus-outline-color);--md-outlined-field-focus-outline-width: var(--_text-field-focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_text-field-focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_text-field-focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_text-field-hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_text-field-hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_text-field-hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_text-field-hover-outline-color);--md-outlined-field-hover-outline-width: var(--_text-field-hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_text-field-hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_text-field-hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_text-field-label-text-color);--md-outlined-field-label-text-font: var(--_text-field-label-text-font);--md-outlined-field-label-text-line-height: var(--_text-field-label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_text-field-label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_text-field-label-text-populated-size);--md-outlined-field-label-text-size: var(--_text-field-label-text-size);--md-outlined-field-label-text-weight: var(--_text-field-label-text-weight);--md-outlined-field-leading-content-color: var(--_text-field-leading-icon-color);--md-outlined-field-outline-color: var(--_text-field-outline-color);--md-outlined-field-outline-width: var(--_text-field-outline-width);--md-outlined-field-supporting-text-color: var(--_text-field-supporting-text-color);--md-outlined-field-supporting-text-font: var(--_text-field-supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_text-field-supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_text-field-supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_text-field-supporting-text-weight);--md-outlined-field-trailing-content-color: var(--_text-field-trailing-icon-color)}[has-start] .icon.leading{font-size:var(--_text-field-leading-icon-size);height:var(--_text-field-leading-icon-size);width:var(--_text-field-leading-icon-size)}.icon.trailing{font-size:var(--_text-field-trailing-icon-size);height:var(--_text-field-trailing-icon-size);width:var(--_text-field-trailing-icon-size)}
123
+ `;Ht.styleSheet;var Ut=H`:host{color:unset;min-width:210px;display:flex}.field{cursor:default;outline:none}.select{position:relative;flex-direction:column}.icon.trailing svg,.icon ::slotted(*){fill:currentColor}.icon ::slotted(*){width:inherit;height:inherit;font-size:inherit}.icon slot{display:flex;height:100%;width:100%;align-items:center;justify-content:center}.icon.trailing :is(.up,.down){opacity:0;transition:opacity 75ms linear 75ms}.select:not(.open) .down,.select.open .up{opacity:1}.field,.select,md-menu{min-width:inherit;width:inherit;max-width:inherit;display:flex}md-menu{min-width:var(--__menu-min-width);max-width:var(--__menu-max-width, inherit)}.menu-wrapper{width:0px;height:0px;max-width:inherit}md-menu ::slotted(:not[disabled]){cursor:pointer}.field,.select{width:100%}:host{display:inline-flex}:host([disabled]){pointer-events:none}
124
+ `;Ut.styleSheet;var Wt=class extends Vt{};Wt.styles=[Ut,Ht],Wt=V([F(`md-outlined-select`)],Wt);var Gt=H`:host{display:flex;gap:16px;--md-ripple-hover-color: var(--md-menu-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-menu-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-menu-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-menu-item-pressed-state-layer-opacity, 0.12)}:host([disabled]){opacity:var(--md-menu-item-disabled-opacity, 0.3);pointer-events:none}md-focus-ring{z-index:1;--md-focus-ring-shape: 8px}a,button,li{background:none;border:none;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;gap:inherit;max-width:inherit;min-width:inherit;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.list-item:not(.disabled){cursor:pointer}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;color:var(--md-menu-item-label-text-color, var(--md-sys-color-on-surface, #1d1b20));font-family:var(--md-menu-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-menu-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-menu-item-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));min-height:var(--md-menu-item-one-line-container-height, 56px);padding-top:var(--md-menu-item-top-space, 12px);padding-bottom:var(--md-menu-item-bottom-space, 12px);padding-inline-start:var(--md-menu-item-leading-space, 16px);padding-inline-end:var(--md-menu-item-trailing-space, 16px);gap:inherit}md-item[multiline]{min-height:var(--md-menu-item-two-line-container-height, 72px)}[slot=supporting-text]{color:var(--md-menu-item-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-menu-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-menu-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-menu-item-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)))}[slot=trailing-supporting-text]{color:var(--md-menu-item-trailing-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-menu-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-menu-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, 0.6875rem));line-height:var(--md-menu-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-menu-item-trailing-supporting-text-weight, var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-menu-item-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}[slot=end]{color:var(--md-menu-item-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}.list-item{background-color:var(--md-menu-item-container-color, transparent)}.list-item.selected{background-color:var(--md-menu-item-selected-container-color, var(--md-sys-color-secondary-container, #e8def8))}.selected:not(.disabled) ::slotted(*){color:var(--md-menu-item-selected-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b))}@media(forced-colors: active){:host([disabled]),:host([disabled]) slot{color:GrayText;opacity:1}.list-item{position:relative}.list-item.selected::before{content:"";position:absolute;inset:0;box-sizing:border-box;border-radius:inherit;pointer-events:none;border:3px double CanvasText}}
125
+ `;Gt.styleSheet;var Kt=class extends B{constructor(){super(...arguments),this.multiline=!1}render(){return R`
126
+ <slot name="container"></slot>
127
+ <slot class="non-text" name="start"></slot>
128
+ <div class="text">
129
+ <slot name="overline" @slotchange=${this.handleTextSlotChange}></slot>
130
+ <slot
131
+ class="default-slot"
132
+ @slotchange=${this.handleTextSlotChange}></slot>
133
+ <slot name="headline" @slotchange=${this.handleTextSlotChange}></slot>
134
+ <slot
135
+ name="supporting-text"
136
+ @slotchange=${this.handleTextSlotChange}></slot>
137
+ </div>
138
+ <slot class="non-text" name="trailing-supporting-text"></slot>
139
+ <slot class="non-text" name="end"></slot>
140
+ `}handleTextSlotChange(){let e=!1,t=0;for(let n of this.textSlots)if(qt(n)&&(t+=1),t>1){e=!0;break}this.multiline=e}};V([L({type:Boolean,reflect:!0})],Kt.prototype,`multiline`,void 0),V([Pe(`.text slot`)],Kt.prototype,`textSlots`,void 0);function qt(e){for(let t of e.assignedNodes({flatten:!0})){let e=t.nodeType===Node.ELEMENT_NODE,n=t.nodeType===Node.TEXT_NODE&&t.textContent?.match(/\S/);if(e||n)return!0}return!1}var Jt=H`:host{color:var(--md-sys-color-on-surface, #1d1b20);font-family:var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-large-size, 1rem);font-weight:var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400));line-height:var(--md-sys-typescale-body-large-line-height, 1.5rem);align-items:center;box-sizing:border-box;display:flex;gap:16px;min-height:56px;overflow:hidden;padding:12px 16px;position:relative;text-overflow:ellipsis}:host([multiline]){min-height:72px}[name=overline]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, 0.6875rem);font-weight:var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=supporting-text]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-body-medium-size, 0.875rem);font-weight:var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400));line-height:var(--md-sys-typescale-body-medium-line-height, 1.25rem)}[name=trailing-supporting-text]{color:var(--md-sys-color-on-surface-variant, #49454f);font-family:var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto));font-size:var(--md-sys-typescale-label-small-size, 0.6875rem);font-weight:var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500));line-height:var(--md-sys-typescale-label-small-line-height, 1rem)}[name=container]::slotted(*){inset:0;position:absolute}.default-slot{display:inline}.default-slot,.text ::slotted(*){overflow:hidden;text-overflow:ellipsis}.text{display:flex;flex:1;flex-direction:column;overflow:hidden}
141
+ `;Jt.styleSheet;var Yt=class extends Kt{};Yt.styles=[Jt],Yt=V([F(`md-item`)],Yt);var Xt=class{constructor(e,t){this.host=e,this.internalTypeaheadText=null,this.onClick=()=>{this.host.keepOpen||this.host.dispatchEvent(xt(this.host,{kind:Ct.CLICK_SELECTION}))},this.onKeydown=e=>{if(this.host.href&&e.code===`Enter`){let e=this.getInteractiveElement();e instanceof HTMLAnchorElement&&e.click()}if(e.defaultPrevented)return;let t=e.code;this.host.keepOpen&&t!==`Escape`||Tt(t)&&(e.preventDefault(),this.host.dispatchEvent(xt(this.host,{kind:Ct.KEYDOWN,key:t})))},this.getHeadlineElements=t.getHeadlineElements,this.getSupportingTextElements=t.getSupportingTextElements,this.getDefaultElements=t.getDefaultElements,this.getInteractiveElement=t.getInteractiveElement,this.host.addController(this)}get typeaheadText(){if(this.internalTypeaheadText!==null)return this.internalTypeaheadText;let e=this.getHeadlineElements(),t=[];return e.forEach(e=>{e.textContent&&e.textContent.trim()&&t.push(e.textContent.trim())}),t.length===0&&this.getDefaultElements().forEach(e=>{e.textContent&&e.textContent.trim()&&t.push(e.textContent.trim())}),t.length===0&&this.getSupportingTextElements().forEach(e=>{e.textContent&&e.textContent.trim()&&t.push(e.textContent.trim())}),t.join(` `)}get tagName(){switch(this.host.type){case`link`:return`a`;case`button`:return`button`;default:case`menuitem`:case`option`:return`li`}}get role(){return this.host.type===`option`?`option`:`menuitem`}hostConnected(){this.host.toggleAttribute(`md-menu-item`,!0)}hostUpdate(){this.host.href&&(this.host.type=`link`)}setTypeaheadText(e){this.internalTypeaheadText=e}};function Zt(){return new Event(`request-selection`,{bubbles:!0,composed:!0})}function Qt(){return new Event(`request-deselection`,{bubbles:!0,composed:!0})}var $t=class{get role(){return this.menuItemController.role}get typeaheadText(){return this.menuItemController.typeaheadText}setTypeaheadText(e){this.menuItemController.setTypeaheadText(e)}get displayText(){return this.internalDisplayText===null?this.menuItemController.typeaheadText:this.internalDisplayText}setDisplayText(e){this.internalDisplayText=e}constructor(e,t){this.host=e,this.internalDisplayText=null,this.firstUpdate=!0,this.onClick=()=>{this.menuItemController.onClick()},this.onKeydown=e=>{this.menuItemController.onKeydown(e)},this.lastSelected=this.host.selected,this.menuItemController=new Xt(e,t),e.addController(this)}hostUpdate(){this.lastSelected!==this.host.selected&&(this.host.ariaSelected=this.host.selected?`true`:`false`)}hostUpdated(){this.lastSelected!==this.host.selected&&!this.firstUpdate&&(this.host.selected?this.host.dispatchEvent(Zt()):this.host.dispatchEvent(Qt())),this.lastSelected=this.host.selected,this.firstUpdate=!1}},en=fe(B),$=class extends en{constructor(){super(...arguments),this.disabled=!1,this.isMenuItem=!0,this.selected=!1,this.value=``,this.type=`option`,this.selectOptionController=new $t(this,{getHeadlineElements:()=>this.headlineElements,getSupportingTextElements:()=>this.supportingTextElements,getDefaultElements:()=>this.defaultElements,getInteractiveElement:()=>this.listItemRoot})}get typeaheadText(){return this.selectOptionController.typeaheadText}set typeaheadText(e){this.selectOptionController.setTypeaheadText(e)}get displayText(){return this.selectOptionController.displayText}set displayText(e){this.selectOptionController.setDisplayText(e)}render(){return this.renderListItem(R`
142
+ <md-item>
143
+ <div slot="container">
144
+ ${this.renderRipple()} ${this.renderFocusRing()}
145
+ </div>
146
+ <slot name="start" slot="start"></slot>
147
+ <slot name="end" slot="end"></slot>
148
+ ${this.renderBody()}
149
+ </md-item>
150
+ `)}renderListItem(e){return R`
151
+ <li
152
+ id="item"
153
+ tabindex=${this.disabled?-1:0}
154
+ role=${this.selectOptionController.role}
155
+ aria-label=${this.ariaLabel||U}
156
+ aria-selected=${this.ariaSelected||U}
157
+ aria-checked=${this.ariaChecked||U}
158
+ aria-expanded=${this.ariaExpanded||U}
159
+ aria-haspopup=${this.ariaHasPopup||U}
160
+ class="list-item ${ue(this.getRenderClasses())}"
161
+ @click=${this.selectOptionController.onClick}
162
+ @keydown=${this.selectOptionController.onKeydown}
163
+ >${e}</li
164
+ >
165
+ `}renderRipple(){return R` <md-ripple
166
+ part="ripple"
167
+ for="item"
168
+ ?disabled=${this.disabled}></md-ripple>`}renderFocusRing(){return R` <md-focus-ring
169
+ part="focus-ring"
170
+ for="item"
171
+ inward></md-focus-ring>`}getRenderClasses(){return{disabled:this.disabled,selected:this.selected}}renderBody(){return R`
172
+ <slot></slot>
173
+ <slot name="overline" slot="overline"></slot>
174
+ <slot name="headline" slot="headline"></slot>
175
+ <slot name="supporting-text" slot="supporting-text"></slot>
176
+ <slot
177
+ name="trailing-supporting-text"
178
+ slot="trailing-supporting-text"></slot>
179
+ `}focus(){this.listItemRoot?.focus()}};$.shadowRootOptions={...B.shadowRootOptions,delegatesFocus:!0},V([L({type:Boolean,reflect:!0})],$.prototype,`disabled`,void 0),V([L({type:Boolean,attribute:`md-menu-item`,reflect:!0})],$.prototype,`isMenuItem`,void 0),V([L({type:Boolean})],$.prototype,`selected`,void 0),V([L()],$.prototype,`value`,void 0),V([z(`.list-item`)],$.prototype,`listItemRoot`,void 0),V([Oe({slot:`headline`})],$.prototype,`headlineElements`,void 0),V([Oe({slot:`supporting-text`})],$.prototype,`supportingTextElements`,void 0),V([Fe({slot:``})],$.prototype,`defaultElements`,void 0),V([L({attribute:`typeahead-text`})],$.prototype,`typeaheadText`,null),V([L({attribute:`display-text`})],$.prototype,`displayText`,null);var tn=class extends ${};tn.styles=[Gt],tn=V([F(`md-select-option`)],tn);var nn=i(`<p class="error svelte-6obkkj" role="alert"> </p>`),rn=i(`<div><label class="svelte-6obkkj"><span class="box svelte-6obkkj"><input type="checkbox" class="svelte-6obkkj"/> <svg viewBox="0 0 18 18" aria-hidden="true" class="svelte-6obkkj"><path d="M7 14 3 10l1.41-1.41L7 11.17l6.59-6.58L15 6z"></path></svg> <md-ripple></md-ripple></span> <span> </span></label> <p class="help svelte-6obkkj"> </p> <!></div>`,2);function an(n,i){let c=r();e(i,!0);var l=rn(),u=d(l),f=d(u),p=d(f);D(p);var h=s(p,4);o(()=>j(h,`for`,`${c}-row`)),j(h,`aria-hidden`,`true`),M(h,1,`svelte-6obkkj`),A(f);var _=s(f,2),v=a(_,!0);A(u);var y=s(u,2),b=a(y,!0),x=s(y,2),w=e=>{var t=nn(),n=a(t,!0);o(()=>{C(t,`id`,`${c}-error`),g(n,i.error)}),P(e,t)};S(x,e=>{i.error!==``&&e(w)}),A(l),o(()=>{C(u,`id`,`${c}-row`),C(p,`data-setting`,i.path),re(p,i.checked),C(p,`aria-describedby`,i.error===``?`${c}-help`:`${c}-error ${c}-help`),C(p,`aria-invalid`,i.error!==``||void 0),g(v,i.label),C(y,`id`,`${c}-help`),g(b,i.help)}),t(`change`,p,e=>i.onChange(e.currentTarget.checked)),P(n,l),m()}O([`change`]);var on=i(`<dl class="svelte-rc157l"><dt class="svelte-rc157l"> </dt> <dd class="value svelte-rc157l"> </dd> <dd class="note svelte-rc157l">Set by <code class="svelte-rc157l"> </code>. Change it where the bridge is started.</dd></dl>`),sn=i(`<md-select-option><div slot="headline"> </div></md-select-option>`,2),cn=i(`<md-outlined-select></md-outlined-select>`,2),ln=i(`<md-outlined-text-field></md-outlined-text-field>`,2),un=i(`<div><!></div>`);function dn(n,r){e(r,!0);let i=b(()=>r.pendingValue===void 0?r.help:`Restart pending, in use: ${r.pendingValue}. ${r.help}`);var c=_(),l=p(c),u=e=>{var t=on(),n=d(t),i=a(n,!0),c=s(n,2),l=a(c,!0),u=s(c,2),f=s(d(u)),p=a(f,!0);ne(),A(u),A(t),o(()=>{g(i,r.setting.label),g(l,r.fixed.value),g(p,r.fixed.by)}),P(e,t)},f=e=>{var n=un();let s;var c=d(n),l=e=>{{let t=b(()=>r.value===`true`);an(e,{get path(){return r.setting.path},get label(){return r.setting.label},get checked(){return h(t)},get help(){return h(i)},get error(){return r.error},onChange:e=>r.onInput(String(e))})}},u=e=>{var n=cn();o(()=>j(n,`data-setting`,r.setting.path)),o(()=>j(n,`label`,r.setting.label)),o(()=>j(n,`supporting-text`,h(i))),o(()=>j(n,`value`,r.value)),o(()=>j(n,`error`,r.error!==``||void 0)),o(()=>j(n,`error-text`,r.error)),M(n,1,`svelte-rc157l`),k(n,21,()=>He(r.setting.control.options,r.savedValue),e=>e.value,(e,t)=>{var n=sn();o(()=>j(n,`value`,h(t).value)),o(()=>j(n,`selected`,h(t).value===r.value||void 0));var i=d(n),s=a(i,!0);A(n),o(()=>g(s,h(t).label)),P(e,n)}),A(n),t(`change`,n,e=>r.onInput(e.target.value)),P(e,n)},f=e=>{var n=ln();o(()=>j(n,`data-setting`,r.setting.path)),o(()=>j(n,`label`,r.setting.label)),o(()=>j(n,`inputmode`,r.setting.control.inputmode)),o(()=>j(n,`suffix-text`,r.setting.control.suffix)),j(n,`autocomplete`,`off`),o(()=>j(n,`supporting-text`,h(i))),o(()=>j(n,`value`,r.value)),o(()=>j(n,`error`,r.error!==``||void 0)),o(()=>j(n,`error-text`,r.error)),M(n,1,`svelte-rc157l`),t(`keydown`,n,e=>{e.key===`Enter`&&(e.preventDefault(),r.onSubmit())}),t(`input`,n,e=>r.onInput(e.target.value)),P(e,n)};S(c,e=>{r.setting.control.kind===`checkbox`?e(l):r.setting.control.kind===`select`?e(u,1):e(f,-1)}),A(n),o(()=>s=M(n,1,`svelte-rc157l`,null,s,{pending:r.pendingValue!==void 0})),P(e,n)};S(l,e=>{r.fixed===void 0?e(f,-1):e(u)}),P(n,c),m()}O([`change`,`keydown`,`input`]);var fn=i(`<div class="cell svelte-1yckkzn"></div>`),pn=i(`<div class="actions svelte-1yckkzn"><md-filled-button>Save</md-filled-button> <md-text-button>Revert</md-text-button></div>`,2),mn=i(`<p role="alert" class="failure svelte-1yckkzn"> </p>`),hn=i(`<form role="none" novalidate="" class="svelte-1yckkzn"><div class="fields svelte-1yckkzn"></div> <!> <p role="status" class="note svelte-1yckkzn"> </p> <!></form>`);function gn(r,i){e(i,!0);let u=x(l({})),f=x(l({})),p=x(``),_=x(!1),v=x(null),y,C=b(()=>i.settings.map(e=>[e].flat())),w=b(()=>h(C).flat().filter(e=>i.overrides[e.path]===void 0)),T=b(()=>Xe(h(w),h(u),i.saved)),E=b(()=>h(T).length===0||h(_)),D=b(()=>h(w).some(e=>nt(e.path,i.active,i.saved,i.overrides))),O=b(()=>h(v)===null?``:h(v).waited?h(D)?`Saved. Restart the bridge to apply.`:``:`Saved.`);function ne(){c(u,{},!0),c(f,{},!0),c(p,``),c(v,null)}async function re(e){await n(),y.querySelector(`[data-setting="${e}"]`)?.focus()}async function M(){if(h(_)||h(T).length===0)return;let e=Ze(h(w),h(u),i.saved);if(c(p,``),c(v,null),!e.ok)c(f,e.errors,!0),await re(h(w).find(t=>e.errors[t.path]!==void 0).path);else{c(f,{},!0),c(_,!0);try{await i.onSave(e.patch),c(u,{},!0),c(v,{waited:h(D)},!0)}catch(e){let t=at(e,h(w));t.field===null?c(p,t.message,!0):(c(f,{[t.field]:t.message},!0),await re(t.field))}finally{c(_,!1)}}}var N=hn(),F=d(N);k(F,21,()=>h(C),e=>e[0].path,(e,t)=>{var n=fn();k(n,21,()=>h(t),e=>e.path,(e,t)=>{let n=b(()=>i.overrides[h(t).path]),r=b(()=>G(i.active,h(t).path));{let a=b(()=>h(u)[h(t).path]??h(t).format(G(i.saved,h(t).path))),o=b(()=>h(t).format(G(i.saved,h(t).path))),s=b(()=>h(t).help(h(r),i.settingContext)),l=b(()=>nt(h(t).path,i.active,i.saved,i.overrides)?h(t).describe(h(r),i.settingContext):void 0),d=b(()=>h(f)[h(t).path]??``),p=b(()=>h(n)===void 0?void 0:{by:h(n),value:h(t).describe(h(r),i.settingContext)});dn(e,{get setting(){return h(t)},get value(){return h(a)},get savedValue(){return h(o)},get help(){return h(s)},get pendingValue(){return h(l)},get error(){return h(d)},get fixed(){return h(p)},onInput:e=>{h(u)[h(t).path]=e,delete h(f)[h(t).path],c(v,null)},onSubmit:()=>void M()})}}),A(n),P(e,n)}),A(F);var I=s(F,2),ie=e=>{var n=pn(),r=d(n);j(r,`type`,`submit`),o(()=>j(r,`aria-label`,`Save ${i.name??``} settings`)),o(()=>j(r,`soft-disabled`,h(E)?!0:void 0));var a=s(r,2);j(a,`type`,`button`),o(()=>j(a,`aria-label`,`Revert ${i.name??``} settings`)),o(()=>j(a,`soft-disabled`,h(E)?!0:void 0)),A(n),t(`click`,a,ne),P(e,n)};S(I,e=>{h(w).length>0&&e(ie)});var L=s(I,2),R=a(L,!0),z=s(L,2),B=e=>{var t=mn(),n=a(t,!0);o(()=>g(n,h(p))),P(e,t)};S(z,e=>{h(p)!==``&&e(B)}),A(N),te(N,e=>y=e,()=>y),o(()=>g(R,h(O))),ee(`submit`,N,e=>{e.preventDefault(),M()}),P(r,N),m()}O([`click`]);var _n=i(`<label class="option svelte-15x0123"><input type="radio" name="color-theme" class="svelte-15x0123"/> <span class="mark svelte-15x0123" aria-hidden="true"></span> <span class="swatch svelte-15x0123" aria-hidden="true"><span class="bar svelte-15x0123"></span> <span class="aa svelte-15x0123">Aa</span> <span class="chip svelte-15x0123"></span></span> <span class="text svelte-15x0123"><span class="label svelte-15x0123"> </span> <span class="description svelte-15x0123"> </span></span> <span class="selected svelte-15x0123" aria-hidden="true"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 7.5"></path></svg> Selected</span></label>`),vn=i(`<fieldset class="svelte-15x0123"><legend class="svelte-15x0123">Color theme</legend> <p class="hint svelte-15x0123">Stored in this browser only. Applied immediately.</p> <div class="options svelte-15x0123"></div></fieldset>`);function yn(n,r){e(r,!0);var i=vn(),c=s(d(i),4);k(c,21,()=>Te,e=>e.value,(e,n)=>{var i=_n(),c=d(i);D(c);var l=s(c,4),u=s(l,2),f=d(u),p=a(f,!0),m=s(f,2),_=a(m,!0);A(u),ne(2),A(i),o(()=>{w(c,h(n).value),re(c,r.value===h(n).value),C(c,`aria-describedby`,`theme-${h(n).value??``}-description`),C(l,`data-theme`,h(n).value),g(p,h(n).label),C(m,`id`,`theme-${h(n).value??``}-description`),g(_,h(n).description)}),t(`change`,c,()=>r.onChange(h(n).value)),P(e,i)}),A(c),A(i),P(n,i),m()}O([`change`]);var bn=i(`<!> <section class="part" aria-labelledby="capture-heading"><h2 id="capture-heading">Speech capture</h2> <!></section> <section class="part" aria-labelledby="playwright-heading"><h2 id="playwright-heading">Playwright and MCP</h2> <!></section> <section class="part" aria-labelledby="log-heading"><h2 id="log-heading">Bridge log</h2> <!></section>`,1),xn=i(`<div class="reading svelte-1i19ct2"><p class="scope" aria-hidden="true">Reading the bridge settings…</p> <md-linear-progress></md-linear-progress></div>`,2),Sn=i(`<div class="unreachable svelte-1i19ct2"><md-icon>cloud_off</md-icon> <p class="scope" role="alert">The bridge is not reachable, so its settings can't be read.</p> <md-filled-button>Try again</md-filled-button></div>`,2),Cn=i(`<p class="scope intro">Bridge settings apply when the bridge is restarted. Appearance applies at once and is kept in
180
+ this browser.</p> <!> <section class="part" aria-labelledby="appearance-heading"><h2 id="appearance-heading">Appearance</h2> <!></section>`,1);function wn(r,i){e(i,!0);let{config:a,status:o,theme:l}=le();y(()=>a.seed(i.data.config));let f=b(()=>({runningPlaywright:(o.status??i.data.status)?.playwright.version??null,playwrightOff:a.saved?.playwright.enabled===!1})),g=b(()=>a.active===null||a.saved===null?[]:it(a.active,a.saved,a.overrides,h(f)));async function _(){await Promise.all([a.refresh(),o.retry()])}let C=x(void 0);async function w(){await a.refresh(),await n(),h(C)?.focus()}N(()=>{i.data.config===null&&a.refresh()}),T(`1i19ct2`,e=>{v(()=>{u.title=`Settings · Speech Capture`})}),De(r,{heading:`Settings`,children:(e,n)=>{var r=Cn(),i=s(p(r),2),o=e=>{var t=bn(),n=p(t);ut(n,{get changes(){return h(g)},get reachable(){return a.reachable},onCheck:_});var r=s(n,2),i=s(d(r),2);{let e=b(()=>[Be,Ue,We]);gn(i,{name:`speech capture`,get settings(){return h(e)},get active(){return a.active},get saved(){return a.saved},get overrides(){return a.overrides},get settingContext(){return h(f)},onSave:e=>a.save(e)})}A(r);var o=s(r,2),c=s(d(o),2);{let e=b(()=>[[qe,Ye],Qe]);gn(c,{name:`Playwright and MCP`,get settings(){return h(e)},get active(){return a.active},get saved(){return a.saved},get overrides(){return a.overrides},get settingContext(){return h(f)},onSave:e=>a.save(e)})}A(o);var l=s(o,2),u=s(d(l),2);{let e=b(()=>[et]);gn(u,{name:`bridge log`,get settings(){return h(e)},get active(){return a.active},get saved(){return a.saved},get overrides(){return a.overrides},get settingContext(){return h(f)},onSave:e=>a.save(e)})}A(l),P(e,t)},u=e=>{var t=xn(),n=s(d(t),2);j(n,`indeterminate`,!0),j(n,`aria-label`,`Reading the bridge settings`),M(n,1,`svelte-1i19ct2`),A(t),P(e,t)},m=e=>{var n=Sn(),r=d(n);j(r,`aria-hidden`,`true`),M(r,1,`svelte-1i19ct2`);var i=s(r,4);j(i,`type`,`button`),te(i,e=>c(C,e),()=>h(C)),A(n),t(`click`,i,()=>void w()),P(e,n)};S(i,e=>{a.active!==null&&a.saved!==null?e(o):a.reading||a.reachable?e(u,1):e(m,-1)});var v=s(i,2);yn(s(d(v),2),{get value(){return l.current},onChange:e=>l.set(e)}),A(v),P(e,r)},$$slots:{default:!0}}),m()}O([`click`]);export{wn as component};
@@ -0,0 +1,6 @@
1
+ import{$ as e,A as t,B as n,E as r,F as i,G as a,I as o,J as s,K as c,M as l,N as u,O as d,P as f,Q as p,R as m,S as h,U as g,V as _,X as v,Y as y,_ as b,a as x,f as S,g as C,j as w,k as T,m as E,nt as D,rt as O,s as k,u as A,v as j,w as M,y as N}from"../chunks/B__KpOuX.js";import{t as P}from"../chunks/BkoDSEOx.js";import"../chunks/CAZ56n62.js";import{n as F}from"../chunks/DRNNJMYk.js";import{t as I}from"../chunks/BquQTeuV.js";import"../chunks/UKukklIc.js";import{n as L,o as R,s as z}from"../chunks/Bxh3K0TK.js";import"../chunks/BuwZGWCm.js";import"../chunks/OAsMjdHF.js";var B=r(`<a class="svelte-13xhv7j"><!></a>`);function V(t,n){e(n,!0);var r=B(),i=u(r);N(i,()=>n.children),O(r),a(e=>x(r,`href`,`${e??``}#screen-reader-heading`),[()=>P(`/setup/instructions`)]),M(t,r),p()}var H=r(`<p role="alert" class="unreachable svelte-10lx79f"> </p>`),U=r(`<p class="note svelte-10lx79f">Reading the status…</p>`),W=r(`<span class="visually-hidden">Warning:</span>`),G=r(` <span class="visually-hidden">on GitHub</span>`,1),K=r(`<span>(<!>)</span>`),q=r(` <span class="visually-hidden"> </span>`,1),J=r(`<span class="help svelte-10lx79f"><!></span>`),Y=r(`<li><md-icon> </md-icon> <span class="label svelte-10lx79f"> </span> <span class="state svelte-10lx79f"><!> <!> <!></span></li>`,2),X=r(`<ul aria-label="Setup status" class="svelte-10lx79f"></ul>`),Z=r(`<!> <!> <md-outlined-button> </md-outlined-button> <p role="status" class="note svelte-10lx79f"> </p>`,3);function Q(r,c){e(c,!0);let l={ok:`check_circle`,warning:`warning`,neutral:`radio_button_unchecked`},g=y(``);async function _(){if(s(g,``),await c.onCheck(),await n(),!c.reachable)return;let e=c.rows?.filter(e=>e.tone===`warning`).length??0;s(g,e===0?`Checked: no warnings.`:`Checked: ${e} ${e===1?`warning`:`warnings`}.`,!0)}var x=Z(),S=f(x),w=e=>{var t=H(),n=i(t);a(()=>h(n,`The bridge is not reachable.${c.rows===null?``:` This is the last state that was read.`}`)),M(e,t)},T=e=>{var t=U();M(e,t)};b(S,e=>{c.reachable?c.rows===null&&e(T,1):e(w)});var j=o(S,2),N=e=>{var t=X();E(t,21,()=>c.rows,e=>e.id,(e,t)=>{var n=Y(),r=u(n);k(r,`aria-hidden`,`true`),A(r,1,`svelte-10lx79f`);var s=i(r,!0),c=o(r,2),p=i(c,!0),g=o(c,2),_=u(g),y=e=>{var t=W();M(e,t)};b(_,e=>{m(t).tone===`warning`&&e(y)});var x=o(_),S=o(x),w=e=>{let n=v(()=>m(t).library);var r=K(),i=o(u(r)),s=e=>{var t=d();a(()=>h(t,m(n).name)),M(e,t)},c=e=>{I(e,{get href(){return m(n).href},children:(e,t)=>{D();var r=G(),i=f(r,!0);D(),a(()=>h(i,m(n).name)),M(e,r)},$$slots:{default:!0}})};b(i,e=>{m(n).href===null?e(s):e(c,-1)}),D(),O(r),M(e,r)};b(S,e=>{m(t).library!==null&&e(w)});var T=o(S,2),E=e=>{var n=J(),r=u(n),s=e=>{I(e,{get href(){return m(t).help.href},children:(e,n)=>{D();var r=q(),s=f(r,!0),c=o(s),l=i(c);a(()=>{h(s,m(t).help.label),h(l,`(help for ${m(t).label??``})`)}),M(e,r)},$$slots:{default:!0}})},c=e=>{V(e,{children:(e,n)=>{D();var r=q(),s=f(r,!0),c=o(s),l=i(c);a(()=>{h(s,m(t).help.label),h(l,`(help for ${m(t).label??``})`)}),M(e,r)},$$slots:{default:!0}})};b(r,e=>{`href`in m(t).help?e(s):e(c,-1)}),O(n),M(e,n)};b(T,e=>{m(t).help!==null&&e(E)}),O(g),O(n),a(()=>{A(n,1,C(m(t).tone),`svelte-10lx79f`),h(s,l[m(t).tone]),h(p,m(t).label),h(x,` ${m(t).state??``} `)}),M(e,n)}),O(t),M(e,t)};b(j,e=>{c.rows!==null&&e(N)});var P=o(j,2);k(P,`type`,`button`);var F=i(P,!0),L=o(P,2),R=i(L,!0);a(()=>{h(F,c.reachable?`Check again`:`Try again`),h(R,m(g))}),t(`click`,P,()=>void _()),M(r,x),p()}T([`click`]);var $=r(`<md-dialog><div slot="headline"> </div> <div slot="content"><p class="svelte-6mj6i9">A session is running. The keys go to the window in front on the bridge's machine, and the
2
+ speech they cause is recorded in that session.</p></div> <div slot="actions"><md-text-button>Cancel</md-text-button> <md-text-button>Send</md-text-button></div></md-dialog>`,2);function ee(n,r){e(r,!0);var s=$();a(()=>k(s,`open`,r.open)),A(s,1,`svelte-6mj6i9`);var c=u(s),l=i(c),d=o(c,4),f=u(d);k(f,`type`,`button`);var m=o(f,2);k(m,`type`,`button`),O(d),O(s),a(()=>h(l,`Send Insert+T during a session?`)),w(`closed`,s,function(...e){r.onClose?.apply(this,e)}),t(`click`,f,function(...e){r.onClose?.apply(this,e)}),t(`click`,m,()=>{r.onClose(),r.onSend()}),M(n,s),p()}T([`click`]);var te=r(`<p class="scope">This page is opened on the bridge's own machine: the screen reader reads this page too, and that
3
+ speech can pass the check.</p>`),ne=r(`<p class="scope"> </p>`),re=r(`<p class="result svelte-xev9kd"> </p>`),ie=r(`<li> </li>`),ae=r(`<ol aria-label="Speech that arrived" class="svelte-xev9kd"></ol> <p class="scope svelte-xev9kd">Wrong characters? Set the <a class="svelte-xev9kd">text encoding</a>.</p>`,1),oe=r(`<ul class="hints svelte-xev9kd"><li class="svelte-xev9kd"><!> in the screen reader.</li> <li class="svelte-xev9kd"> <!>).</li> <li class="svelte-xev9kd">JAWS: turn off <!>.</li></ul>`),se=r(`<p class="scope"> <!>).</p>`),ce=r(`<p class="scope"> </p> <!> <div class="actions svelte-xev9kd"><md-filled-button>Listen</md-filled-button> <md-outlined-button> </md-outlined-button> <md-text-button>Stop</md-text-button></div> <!> <!> <p role="status"> </p> <!> <!>`,3);function le(n,r){e(r,!0);let c=y(!1),l=y(!1),g=v(()=>r.phase===`starting`||r.phase===`listening`),_=v(()=>m(g)||r.input?.available!==!0),S=v(()=>m(g)?r.reconnecting?`Connection lost, reconnecting…`:r.via===`keys`?`Sending ${L} and waiting for speech…`:`Listening. Make the screen reader speak, for example with a key press.`:``),C=v(()=>r.phase===`heard`?`Speech arrived.`:r.phase===`silent`?`Nothing arrived.`:r.phase===`failed`?`The check failed: ${r.failure}`:``),w=v(()=>m(C)===``?r.local?``:m(S):m(C));async function T(){if(!(m(_)||m(l))){s(l,!0);try{await r.isSessionRunning()?s(c,!0):r.onSendKeys()}finally{s(l,!1)}}}var j=ce(),N=f(j),F=i(N),R=o(N,2),B=e=>{var t=te();M(e,t)};b(R,e=>{r.local&&e(B)});var H=o(R,2),U=u(H);k(U,`type`,`button`),a(()=>k(U,`soft-disabled`,m(g)?!0:void 0));var W=o(U,2);k(W,`type`,`button`),a(()=>k(W,`soft-disabled`,m(_)?!0:void 0));var G=i(W),K=o(W,2);k(K,`type`,`button`),a(()=>k(K,`soft-disabled`,!m(g)||void 0)),O(H);var q=o(H,2),J=e=>{var t=ne(),n=i(t);a(()=>h(n,`Insert+T can't be sent: ${r.input.reason??`native input is not available`??``}`)),M(e,t)};b(q,e=>{r.input!==null&&!r.input.available&&e(J)});var Y=o(q,2),X=e=>{var t=re(),n=i(t,!0);a(()=>h(n,m(S))),M(e,t)};b(Y,e=>{r.local&&m(S)!==``&&e(X)});var Z=o(Y,2),Q=i(Z,!0),$=o(Z,2),le=e=>{var t=ae(),n=f(t);E(n,21,()=>r.entries,e=>e.seq,(e,t)=>{var n=ie(),r=i(n,!0);a(()=>h(r,m(t).text)),M(e,n)}),O(n);var s=o(n,2),c=o(u(s));D(),O(s),a(e=>{x(n,`aria-hidden`,r.local?`true`:void 0),x(c,`href`,e)},[()=>P(`/settings`)]),M(e,t)},ue=e=>{var t=oe(),n=u(t);V(u(n),{children:(e,t)=>{D();var n=d(`Select the socket voice`);M(e,n)},$$slots:{default:!0}}),D(),O(n);var i=o(n,2),s=u(i),c=o(s);{let e=v(()=>z(r.version,`usage/troubleshooting.md#speech`));I(c,{get href(){return m(e)},children:(e,t)=>{D();var n=d(`troubleshooting`);M(e,n)},$$slots:{default:!0}})}D(),O(i);var l=o(i,2),f=o(u(l));{let e=v(()=>z(r.version,`usage/vm-setup.md#jaws-language-detection`));I(f,{get href(){return m(e)},children:(e,t)=>{D();var n=d(`Detect Language Changes`);M(e,n)},$$slots:{default:!0}})}D(),O(l),O(t),a(()=>h(s,`The voice must send to ${r.port===null?`the bridge's port`:`port ${r.port}`}
4
+ (`)),M(e,t)},de=e=>{var t=se(),n=u(t),i=o(n);{let e=v(()=>z(r.version,`usage/troubleshooting.md#browser-and-input`));I(i,{get href(){return m(e)},children:(e,t)=>{D();var n=d(`troubleshooting`);M(e,n)},$$slots:{default:!0}})}D(),O(t),a(()=>h(n,`Insert+T was sent. Use Listen and make the screen reader speak by hand: if that works, the keys
5
+ don't reach the screen reader (`)),M(e,t)};b($,e=>{r.phase===`heard`?e(le):r.phase===`silent`&&r.via===`manual`?e(ue,1):r.phase===`silent`&&e(de,2)}),ee(o($,2),{get open(){return m(c)},get onSend(){return r.onSendKeys},onClose:()=>s(c,!1)}),a(()=>{h(F,`Checks that what the screen reader says reaches the bridge. Listen and make it speak, or let the
6
+ bridge send Insert+T (read the window title in NVDA and JAWS) to the window in front.`),h(G,`Send Insert+T`),A(Z,1,`result ${r.phase??``}`,`svelte-xev9kd`),h(Q,m(w))}),t(`click`,U,()=>{m(g)||r.onListen()}),t(`click`,W,()=>void T()),t(`click`,K,()=>{m(g)&&r.onStop()}),M(n,j),p()}T([`click`]);var ue=r(`<section class="part" aria-labelledby="status-heading"><h2 id="status-heading">Status</h2> <!></section> <section class="part" aria-labelledby="test-heading"><h2 id="test-heading">Speech test</h2> <!></section>`,1);function de(t,n){e(n,!0);let{status:r,voiceCheck:i}=F(),a=v(()=>r.status??n.data.status),s=v(()=>m(a)===null?null:R(m(a)));j(()=>(r.retry(),()=>i.stop())),c(()=>{i.phase===`heard`&&_(()=>void r.retry())});async function d(){return await r.retry(),(r.status??n.data.status)?.session.current!=null}var h=ue();S(`g40i6i`,e=>{g(()=>{l.title=`Setup · Speech Capture`})});var y=f(h);Q(o(u(y),2),{get rows(){return m(s)},get reachable(){return r.reachable},onCheck:()=>r.retry()}),O(y);var b=o(y,2),x=o(u(b),2);{let e=v(()=>m(a)?.input.native??null),t=v(()=>m(a)?.tcp.port??null),r=v(()=>m(a)?.bridge.version??null);le(x,{get phase(){return i.phase},get via(){return i.via},get entries(){return i.entries},get reconnecting(){return i.reconnecting},get failure(){return i.failure},get local(){return n.data.local},get input(){return m(e)},get port(){return m(t)},get version(){return m(r)},onListen:()=>void i.start(`manual`),onSendKeys:()=>void i.start(`keys`),onStop:()=>i.stop(),isSessionRunning:d})}O(b),M(t,h),p()}export{de as component};
@@ -0,0 +1,6 @@
1
+ import{$ as e,A as t,E as n,F as r,G as i,I as a,J as o,M as s,N as c,O as l,P as u,Q as d,R as f,S as p,U as m,X as h,Y as g,_,a as v,f as y,k as b,nt as x,rt as S,s as C,v as w,w as T}from"../chunks/B__KpOuX.js";import{t as E}from"../chunks/BkoDSEOx.js";import"../chunks/C06IiL6m.js";import{n as D}from"../chunks/BEImj5AP.js";import"../chunks/UKukklIc.js";import"../chunks/BuwZGWCm.js";import{n as O}from"../chunks/DRNNJMYk.js";import{t as k}from"../chunks/BquQTeuV.js";import{i as A}from"../chunks/DWjfB3ah.js";import{a as j,s as M}from"../chunks/Bxh3K0TK.js";var N=`/playwright-mcp`,P=n(`<div class="command svelte-1c2bq9d"><pre class="svelte-1c2bq9d"><code class="svelte-1c2bq9d"> </code></pre> <md-text-button><md-icon>content_copy</md-icon> Copy</md-text-button></div> <p role="status" class="svelte-1c2bq9d"> </p>`,3);function F(n,s){e(s,!0);let l=g(null),m=h(()=>f(l)===null||f(l).text!==s.text?``:f(l).ok?`Copied.`:`Copying failed: select the text and copy it.`);async function _(){let e=s.text;o(l,null),o(l,{text:e,ok:await s.onCopy(e)},!0)}var v=P(),y=u(v),b=c(y),w=c(b),E=r(w,!0);S(b);var D=a(b,2);C(D,`type`,`button`),i(()=>C(D,`aria-label`,`Copy ${s.label??``}`));var O=c(D);C(O,`slot`,`icon`),C(O,`aria-hidden`,`true`),x(),S(D),S(y);var k=a(y,2),A=r(k,!0);i(()=>{p(E,s.text),p(A,f(m))}),t(`click`,D,()=>void _()),T(n,v),d()}b([`click`]);var I=`127.0.0.1`,L=`npm install -g text-to-socket-engine
2
+ text-to-socket-engine-register`;function R({host:e,port:t}){let n=[`0.0.0.0`,`::`,`localhost`].includes(e)?I:e,r=`Text To Socket ${n}:${t}`;if(n===I&&t===4449)return{name:r,addVoice:null};let i=`ssc${t}`;return{name:r,addVoice:`text-to-socket-engine-add-voice ${i} "${r}" ${n} ${t} voice=${i}`}}var z=e=>[`localhost`,`::1`,`[::1]`].includes(e)||/^127(\.\d+){3}$/.test(e);function B(e,t){let{hostname:n,origin:r}=e;return(/^\[[0-9a-fA-F:.]+\]$/.test(n)||n!==`*`&&A.test(n))&&!z(n)&&n!==`0.0.0.0`?{url:r,placeholder:!1}:{url:`http://<vm-ip>:${t}`,placeholder:!0}}function V(e){return z(e)}function H(e){return`New-NetFirewallRule -DisplayName "screenreader-speech-capture" \`
3
+ -Direction Inbound -Protocol TCP -LocalPort ${e} -Action Allow -Profile Any \`\n -RemoteAddress <test-machine-ip>`}function U(e){return[`npx @screenreader-speech-capture/client config set url ${e}`,`npx @screenreader-speech-capture/client status`].join(`
4
+ `)}function W(e){return`npm i -D --save-exact @screenreader-speech-capture/client @playwright/test@${e} @types/node`}function G(e){let t={type:`http`,url:`${e}${N}`};return JSON.stringify({mcpServers:{"screenreader-vm":t}},null,2)}var K=n(`<p class="warning svelte-2oo2iv">The bridge only listens on its own machine, so other machines can't connect. Start it without <code class="svelte-2oo2iv">--http-host</code>, or with an address they reach.</p>`),q=n(`<p class="svelte-2oo2iv">Windows can block the port without asking. On the bridge's machine, in an <strong>administrator</strong> PowerShell (<!>):</p> <!> <p class="svelte-2oo2iv">Replace <code class="svelte-2oo2iv">&lt;test-machine-ip&gt;</code> with the test machine's address, or its subnet.</p>`,1),J=n(`<p class="svelte-2oo2iv">This machine already reaches the bridge, so the firewall lets it through.</p>`),Y=n(`<p class="svelte-2oo2iv">Replace <code class="svelte-2oo2iv">&lt;vm-ip&gt;</code> with the VM's address: one from the <code class="svelte-2oo2iv">HTTP API</code> row of the bridge's start output, or from <code class="svelte-2oo2iv">ipconfig</code> on the VM.</p>`),X=n(`<p class="svelte-2oo2iv">The Playwright server is off. <a class="svelte-2oo2iv">Turn it on in Settings.</a></p>`),Z=n(`<p class="svelte-2oo2iv">In the test project, with the bridge's Playwright version:</p> <!>`,1),Q=n(`<p class="svelte-2oo2iv">Playwright MCP is off. <a class="svelte-2oo2iv">Turn it on in Settings.</a></p>`),$=n(`<p class="svelte-2oo2iv">Point the agent's MCP client at the bridge:</p> <!>`,1),ee=n(`<section class="part" aria-labelledby="machine-heading"><h2 id="machine-heading">Test machine</h2> <!> <!> <p class="svelte-2oo2iv">On the test machine (Node 20 or newer), store the bridge's address and check it:</p> <!> <!> <h3 class="svelte-2oo2iv">Playwright tests</h3> <!> <p class="svelte-2oo2iv"><!></p> <h3 class="svelte-2oo2iv">AI agents</h3> <!> <p class="svelte-2oo2iv"><!></p></section>`);function te(t,n){e(n,!0);let r=e=>M(n.version,e);var o=ee(),s=a(c(o),2),p=e=>{var t=K();T(e,t)};_(s,e=>{n.loopbackOnly&&e(p)});var m=a(s,2),g=e=>{var t=q(),i=u(t),o=a(c(i),3);{let e=h(()=>r(`usage/vm-setup.md#firewall`));k(o,{get href(){return f(e)},children:(e,t)=>{x();var n=l(`firewall`);T(e,n)},$$slots:{default:!0}})}x(),S(i);var s=a(i,2);{let e=h(()=>H(n.httpPort));F(s,{label:`the firewall command`,get text(){return f(e)},get onCopy(){return n.onCopy}})}x(2),T(e,t)},y=e=>{var t=J();T(e,t)};_(m,e=>{n.local?e(g):e(y,-1)});var b=a(m,4);{let e=h(()=>U(n.address.url));F(b,{label:`the client commands`,get text(){return f(e)},get onCopy(){return n.onCopy}})}var C=a(b,2),w=e=>{var t=Y();T(e,t)};_(C,e=>{n.address.placeholder&&e(w)});var D=a(C,4),O=e=>{var t=X(),n=a(c(t));S(t),i(e=>v(n,`href`,e),[()=>E(`/settings`)]),T(e,t)},A=e=>{var t=Z(),r=a(u(t),2);{let e=h(()=>W(n.playwright.version));F(r,{label:`the test packages command`,get text(){return f(e)},get onCopy(){return n.onCopy}})}T(e,t)};_(D,e=>{n.playwright?.state===`stopped`?e(O):n.playwright!==null&&e(A,1)});var j=a(D,2),N=c(j);{let e=h(()=>r(`usage/client.md`));k(N,{get href(){return f(e)},children:(e,t)=>{x();var n=l(`Set up the tests with the test client`);T(e,n)},$$slots:{default:!0}})}S(j);var P=a(j,4),I=e=>{var t=Q(),n=a(c(t));S(t),i(e=>v(n,`href`,e),[()=>E(`/settings`)]),T(e,t)},L=e=>{var t=$(),r=a(u(t),2);{let e=h(()=>G(n.address.url));F(r,{label:`the MCP configuration`,get text(){return f(e)},get onCopy(){return n.onCopy}})}T(e,t)};_(P,e=>{n.mcp?.state===`stopped`?e(I):e(L,-1)});var R=a(P,2),z=c(R);{let e=h(()=>r(`usage/agents.md`));k(z,{get href(){return f(e)},children:(e,t)=>{x();var n=l(`How agents use the bridge`);T(e,n)},$$slots:{default:!0}})}S(R),S(o),T(t,o),d()}var ne=n(`<p class="svelte-1tbxerf">The default voice doesn't send to where this bridge listens. Add a voice that does, in the
5
+ same prompt:</p> <!>`,1),re=n(`<section class="part" aria-labelledby="voice-heading"><h2 id="voice-heading">Socket voice</h2> <p class="svelte-1tbxerf">On the bridge's machine, in an <strong>administrator</strong> prompt:</p> <!> <!> <ul class="more svelte-1tbxerf"><li class="svelte-1tbxerf"><!></li> <li class="svelte-1tbxerf"><!></li></ul></section> <section class="part"><h2 tabindex="-1">Screen reader</h2> <p class="svelte-1tbxerf">Select the voice <strong> </strong>.</p> <h3 class="svelte-1tbxerf">NVDA</h3> <ol class="svelte-1tbxerf"><li class="svelte-1tbxerf">Open the NVDA menu (NVDA+N) → Preferences → Settings… → Speech.</li> <li class="svelte-1tbxerf">Under Synthesizer, choose Change… → Microsoft Speech API version 5 → OK.</li> <li class="svelte-1tbxerf"> </li></ol> <h3 class="svelte-1tbxerf">JAWS</h3> <ol class="svelte-1tbxerf"><li class="svelte-1tbxerf">Open JAWS → Options → Voices → Voice Adjustment….</li> <li class="svelte-1tbxerf">Create or select a voice profile and set its Synthesizer to SAPI 5 (the label can differ
6
+ between JAWS versions).</li> <li class="svelte-1tbxerf"> </li> <li class="svelte-1tbxerf">In Settings Center (Insert+F2), turn off <em>Detect Language Changes</em> (German: <em lang="de">Sprachwechsel erkennen</em>), or web pages are read by another voice.</li></ol> <ul class="more svelte-1tbxerf"><li class="svelte-1tbxerf"><!></li> <li class="svelte-1tbxerf"><!></li> <li class="svelte-1tbxerf"><!></li></ul></section>`,1);function ie(t,n){e(n,!0);let o=h(()=>R(n.tcp??{host:`127.0.0.1`,port:4449})),s=e=>M(n.version,e);var m=re(),g=u(m),y=a(c(g),4);F(y,{label:`the install commands`,get text(){return L},get onCopy(){return n.onCopy}});var b=a(y,2),C=e=>{var t=ne();F(a(u(t),2),{label:`the add-voice command`,get text(){return f(o).addVoice},get onCopy(){return n.onCopy}}),T(e,t)};_(b,e=>{f(o).addVoice!==null&&e(C)});var w=a(b,2),E=c(w),D=c(E);{let e=h(()=>s(`usage/troubleshooting.md#speech`));k(D,{get href(){return f(e)},children:(e,t)=>{x();var n=l(`The voice is not listed`);T(e,n)},$$slots:{default:!0}})}S(E);var O=a(E,2),A=c(O);{let e=h(()=>s(`usage/vm-setup.md#more-voices--other-ports`));k(A,{get href(){return f(e)},children:(e,t)=>{x();var n=l(`More voices, and removing them`);T(e,n)},$$slots:{default:!0}})}S(O),S(w),S(g);var N=a(g,2),P=c(N),I=a(P,2),z=a(c(I)),B=r(z,!0);x(),S(I);var V=a(I,4),H=a(c(V),4),U=r(H);S(V);var W=a(V,4),G=a(c(W),4),K=r(G);x(2),S(W);var q=a(W,2),J=c(q),Y=c(J);{let e=h(()=>s(`usage/vm-setup.md#a-german-voice`));k(Y,{get href(){return f(e)},children:(e,t)=>{x();var n=l(`JAWS in German or another language doesn't list the voice`);T(e,n)},$$slots:{default:!0}})}S(J);var X=a(J,2),Z=c(X);{let e=h(()=>s(`usage/vm-setup.md#prepare-the-vm`));k(Z,{get href(){return f(e)},children:(e,t)=>{x();var n=l(`Prepare the VM for CI`);T(e,n)},$$slots:{default:!0}})}S(X);var Q=a(X,2),$=c(Q);{let e=h(()=>s(`usage/vm-setup.md#screen-reader-licensing`));k($,{get href(){return f(e)},children:(e,t)=>{x();var n=l(`Screen reader licensing`);T(e,n)},$$slots:{default:!0}})}S(Q),S(q),S(N),i(()=>{v(N,`aria-labelledby`,j),v(P,`id`,j),p(B,f(o).name),p(U,`Under Voice, select ${f(o).name??``}.`),p(K,`Select ${f(o).name??``} as the Voice, apply it to all contexts and save the profile.`)}),T(t,m),d()}var ae=n(`<!> <!>`,1);function oe(t,n){e(n,!0);let{status:r,clipboard:i}=O(),o=h(()=>r.status??n.data.status),c=h(()=>n.data.http?.port??5151),l=e=>i.copy(e);w(()=>void r.retry());var p=ae();y(`149ah0g`,e=>{m(()=>{s.title=`Setup instructions · Speech Capture`})});var g=u(p);{let e=h(()=>f(o)?.tcp??null),t=h(()=>f(o)?.bridge.version??null);ie(g,{get tcp(){return f(e)},get version(){return f(t)},onCopy:l})}var _=a(g,2);{let e=h(()=>B(D.url,f(c))),t=h(()=>n.data.http!==null&&V(n.data.http.host)),r=h(()=>f(o)?.playwright??null),i=h(()=>f(o)?.mcp??null),a=h(()=>f(o)?.bridge.version??null);te(_,{get address(){return f(e)},get local(){return n.data.local},get loopbackOnly(){return f(t)},get httpPort(){return f(c)},get playwright(){return f(r)},get mcp(){return f(i)},get version(){return f(a)},onCopy:l})}T(t,p),d()}export{oe as component};
@@ -1 +1 @@
1
- {"version":"1796326031249"}
1
+ {"version":"1796401962885"}