@screenreader-speech-capture/bridge 0.1.0-feat-expected-target-window.34 → 0.1.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 (102) hide show
  1. package/dist/cli.mjs +1002 -934
  2. package/dist/ui/adapter-node.js +1 -1
  3. package/dist/ui/client/ui/_app/immutable/chunks/{BnU72Mow.js → BfHif6xP.js} +1 -1
  4. package/dist/ui/client/ui/_app/immutable/chunks/BfHif6xP.js.br +0 -0
  5. package/dist/ui/client/ui/_app/immutable/chunks/BfHif6xP.js.gz +0 -0
  6. package/dist/ui/client/ui/_app/immutable/chunks/{BS7n1gMj.js → BrPqgVT6.js} +1 -1
  7. package/dist/ui/client/ui/_app/immutable/chunks/BrPqgVT6.js.br +0 -0
  8. package/dist/ui/client/ui/_app/immutable/chunks/BrPqgVT6.js.gz +0 -0
  9. package/dist/ui/client/ui/_app/immutable/chunks/{CK3uUd4t.js → C7D7xLuA.js} +1 -1
  10. package/dist/ui/client/ui/_app/immutable/chunks/C7D7xLuA.js.br +0 -0
  11. package/dist/ui/client/ui/_app/immutable/chunks/C7D7xLuA.js.gz +0 -0
  12. package/dist/ui/client/ui/_app/immutable/chunks/{B1Ryegye.js → Cc902J0D.js} +1 -1
  13. package/dist/ui/client/ui/_app/immutable/chunks/Cc902J0D.js.br +0 -0
  14. package/dist/ui/client/ui/_app/immutable/chunks/Cc902J0D.js.gz +0 -0
  15. package/dist/ui/client/ui/_app/immutable/chunks/{CMWEX9XL.js → D9JU-e3z.js} +1 -1
  16. package/dist/ui/client/ui/_app/immutable/chunks/D9JU-e3z.js.br +0 -0
  17. package/dist/ui/client/ui/_app/immutable/chunks/D9JU-e3z.js.gz +0 -0
  18. package/dist/ui/client/ui/_app/immutable/chunks/{DOY87jO2.js → KD5R77Wj.js} +1 -1
  19. package/dist/ui/client/ui/_app/immutable/chunks/KD5R77Wj.js.br +0 -0
  20. package/dist/ui/client/ui/_app/immutable/chunks/KD5R77Wj.js.gz +0 -0
  21. package/dist/ui/client/ui/_app/immutable/chunks/{B1vArRqi.js → PzCUpBms.js} +1 -1
  22. package/dist/ui/client/ui/_app/immutable/chunks/PzCUpBms.js.br +0 -0
  23. package/dist/ui/client/ui/_app/immutable/chunks/PzCUpBms.js.gz +0 -0
  24. package/dist/ui/client/ui/_app/immutable/chunks/{4wvZDMeR.js → Roub4aju.js} +1 -1
  25. package/dist/ui/client/ui/_app/immutable/chunks/Roub4aju.js.br +0 -0
  26. package/dist/ui/client/ui/_app/immutable/chunks/Roub4aju.js.gz +0 -0
  27. package/dist/ui/client/ui/_app/immutable/chunks/{tKonUL5Y.js → ux9AxWa3.js} +1 -1
  28. package/dist/ui/client/ui/_app/immutable/chunks/ux9AxWa3.js.br +0 -0
  29. package/dist/ui/client/ui/_app/immutable/chunks/ux9AxWa3.js.gz +0 -0
  30. package/dist/ui/client/ui/_app/immutable/entry/{app.C8tsut3X.js → app.DM2PRoLw.js} +2 -2
  31. package/dist/ui/client/ui/_app/immutable/entry/app.DM2PRoLw.js.br +0 -0
  32. package/dist/ui/client/ui/_app/immutable/entry/app.DM2PRoLw.js.gz +0 -0
  33. package/dist/ui/client/ui/_app/immutable/nodes/0.fKLM0nQo.js +1 -0
  34. package/dist/ui/client/ui/_app/immutable/nodes/0.fKLM0nQo.js.br +0 -0
  35. package/dist/ui/client/ui/_app/immutable/nodes/0.fKLM0nQo.js.gz +0 -0
  36. package/dist/ui/client/ui/_app/immutable/nodes/{3.WT26F_BF.js → 3.CywuMQ0y.js} +1 -1
  37. package/dist/ui/client/ui/_app/immutable/nodes/3.CywuMQ0y.js.br +0 -0
  38. package/dist/ui/client/ui/_app/immutable/nodes/3.CywuMQ0y.js.gz +0 -0
  39. package/dist/ui/client/ui/_app/immutable/nodes/{4.tiDJxi6M.js → 4.BYvsTY13.js} +1 -1
  40. package/dist/ui/client/ui/_app/immutable/nodes/4.BYvsTY13.js.br +0 -0
  41. package/dist/ui/client/ui/_app/immutable/nodes/4.BYvsTY13.js.gz +0 -0
  42. package/dist/ui/client/ui/_app/immutable/nodes/{5.MzfJoePg.js → 5.xWNFTFjr.js} +1 -1
  43. package/dist/ui/client/ui/_app/immutable/nodes/5.xWNFTFjr.js.br +0 -0
  44. package/dist/ui/client/ui/_app/immutable/nodes/5.xWNFTFjr.js.gz +0 -0
  45. package/dist/ui/client/ui/_app/immutable/nodes/{6.bNZhqiRK.js → 6.Dnf8S10l.js} +1 -1
  46. package/dist/ui/client/ui/_app/immutable/nodes/6.Dnf8S10l.js.br +0 -0
  47. package/dist/ui/client/ui/_app/immutable/nodes/6.Dnf8S10l.js.gz +0 -0
  48. package/dist/ui/client/ui/_app/version.json +1 -1
  49. package/dist/ui/client/ui/_app/version.json.br +0 -0
  50. package/dist/ui/client/ui/_app/version.json.gz +0 -0
  51. package/dist/ui/server/chunks/composition.js +8 -5
  52. package/dist/ui/server/chunks/composition.js.map +1 -1
  53. package/dist/ui/server/chunks/instance.js +3 -3
  54. package/dist/ui/server/chunks/internal.js +1 -1
  55. package/dist/ui/server/chunks/src.js +19 -13
  56. package/dist/ui/server/chunks/src.js.map +1 -1
  57. package/dist/ui/server/entries/hooks.server.js +3 -2
  58. package/dist/ui/server/entries/hooks.server.js.map +1 -1
  59. package/dist/ui/server/entries/pages/_layout.svelte.js +1 -1
  60. package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
  61. package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js +1 -1
  62. package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js.map +1 -1
  63. package/dist/ui/server/manifest-full.js +1 -1
  64. package/dist/ui/server/manifest.js +1 -1
  65. package/dist/ui/server/nodes/0.js +1 -1
  66. package/dist/ui/server/nodes/3.js +1 -1
  67. package/dist/ui/server/nodes/4.js +1 -1
  68. package/dist/ui/server/nodes/5.js +1 -1
  69. package/dist/ui/server/nodes/6.js +1 -1
  70. package/dist/ui/server/server.js +1 -1
  71. package/package.json +1 -1
  72. package/dist/ui/client/ui/_app/immutable/chunks/4wvZDMeR.js.br +0 -0
  73. package/dist/ui/client/ui/_app/immutable/chunks/4wvZDMeR.js.gz +0 -0
  74. package/dist/ui/client/ui/_app/immutable/chunks/B1Ryegye.js.br +0 -0
  75. package/dist/ui/client/ui/_app/immutable/chunks/B1Ryegye.js.gz +0 -0
  76. package/dist/ui/client/ui/_app/immutable/chunks/B1vArRqi.js.br +0 -0
  77. package/dist/ui/client/ui/_app/immutable/chunks/B1vArRqi.js.gz +0 -0
  78. package/dist/ui/client/ui/_app/immutable/chunks/BS7n1gMj.js.br +0 -0
  79. package/dist/ui/client/ui/_app/immutable/chunks/BS7n1gMj.js.gz +0 -0
  80. package/dist/ui/client/ui/_app/immutable/chunks/BnU72Mow.js.br +0 -0
  81. package/dist/ui/client/ui/_app/immutable/chunks/BnU72Mow.js.gz +0 -0
  82. package/dist/ui/client/ui/_app/immutable/chunks/CK3uUd4t.js.br +0 -0
  83. package/dist/ui/client/ui/_app/immutable/chunks/CK3uUd4t.js.gz +0 -0
  84. package/dist/ui/client/ui/_app/immutable/chunks/CMWEX9XL.js.br +0 -0
  85. package/dist/ui/client/ui/_app/immutable/chunks/CMWEX9XL.js.gz +0 -0
  86. package/dist/ui/client/ui/_app/immutable/chunks/DOY87jO2.js.br +0 -0
  87. package/dist/ui/client/ui/_app/immutable/chunks/DOY87jO2.js.gz +0 -0
  88. package/dist/ui/client/ui/_app/immutable/chunks/tKonUL5Y.js.br +0 -0
  89. package/dist/ui/client/ui/_app/immutable/chunks/tKonUL5Y.js.gz +0 -0
  90. package/dist/ui/client/ui/_app/immutable/entry/app.C8tsut3X.js.br +0 -0
  91. package/dist/ui/client/ui/_app/immutable/entry/app.C8tsut3X.js.gz +0 -0
  92. package/dist/ui/client/ui/_app/immutable/nodes/0.3bVKqGbx.js +0 -1
  93. package/dist/ui/client/ui/_app/immutable/nodes/0.3bVKqGbx.js.br +0 -0
  94. package/dist/ui/client/ui/_app/immutable/nodes/0.3bVKqGbx.js.gz +0 -0
  95. package/dist/ui/client/ui/_app/immutable/nodes/3.WT26F_BF.js.br +0 -0
  96. package/dist/ui/client/ui/_app/immutable/nodes/3.WT26F_BF.js.gz +0 -0
  97. package/dist/ui/client/ui/_app/immutable/nodes/4.tiDJxi6M.js.br +0 -0
  98. package/dist/ui/client/ui/_app/immutable/nodes/4.tiDJxi6M.js.gz +0 -0
  99. package/dist/ui/client/ui/_app/immutable/nodes/5.MzfJoePg.js.br +0 -0
  100. package/dist/ui/client/ui/_app/immutable/nodes/5.MzfJoePg.js.gz +0 -0
  101. package/dist/ui/client/ui/_app/immutable/nodes/6.bNZhqiRK.js.br +0 -0
  102. package/dist/ui/client/ui/_app/immutable/nodes/6.bNZhqiRK.js.gz +0 -0
@@ -1,4 +1,4 @@
1
- import{$ as e,D as t,E as n,G as r,H as i,J as a,K as o,L as s,M as c,N as l,P as u,S as d,T as f,U as p,V as m,W as h,X as g,Y as _,Z as v,_ as y,_t as b,b as x,dt as S,g as C,it as w,j as T,k as E,lt as D,mt as O,n as k,nt as A,ot as j,pt as M,q as N,s as P,st as F,ut as I,v as L,vt as R,w as z,z as B}from"../chunks/0FroJ-XN.js";import{r as V}from"../chunks/Dvxhfd7j.js";import"../chunks/DHsTyp2W.js";import"../chunks/B_ZElYu_.js";import"../chunks/BnU72Mow.js";import{J as H,V as U,X as W,Y as G,c as K,d as q,f as J,l as Y,s as X,t as ee,u as te,y as Z}from"../chunks/tKonUL5Y.js";import{n as ne}from"../chunks/B1Ryegye.js";import{n as re,t as ie}from"../chunks/BS7n1gMj.js";import{t as ae}from"../chunks/4wvZDMeR.js";import"../chunks/CK3uUd4t.js";import"../chunks/CMWEX9XL.js";var oe=m(`<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
1
+ import{$ as e,D as t,E as n,G as r,H as i,J as a,K as o,L as s,M as c,N as l,P as u,S as d,T as f,U as p,V as m,W as h,X as g,Y as _,Z as v,_ as y,_t as b,b as x,dt as S,g as C,it as w,j as T,k as E,lt as D,mt as O,n as k,nt as A,ot as j,pt as M,q as N,s as P,st as F,ut as I,v as L,vt as R,w as z,z as B}from"../chunks/0FroJ-XN.js";import{r as V}from"../chunks/Dvxhfd7j.js";import"../chunks/DHsTyp2W.js";import"../chunks/B_ZElYu_.js";import"../chunks/BfHif6xP.js";import{J as H,V as U,X as W,Y as G,c as K,d as q,f as J,l as Y,s as X,t as ee,u as te,y as Z}from"../chunks/ux9AxWa3.js";import{n as ne}from"../chunks/Cc902J0D.js";import{n as re,t as ie}from"../chunks/BrPqgVT6.js";import{t as ae}from"../chunks/Roub4aju.js";import"../chunks/C7D7xLuA.js";import"../chunks/D9JU-e3z.js";var oe=m(`<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
2
  reader would read new rows aloud and they would be recorded again. Open the UI from another machine
3
3
  to read the log with a screen reader.</p></div>`,2);function se(e){var t=oe(),n=a(t);d(n,`aria-hidden`,`true`),f(n,1,`svelte-qexebn`),b(2),R(t),B(e,t)}var ce=class extends re{renderElevationOrOutline(){return U`<md-elevation part="elevation"></md-elevation>`}},le=H`: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
4
  `;le.styleSheet;var Q=class extends ce{};Q.styles=[ie,ne,le],Q=W([G(`md-filled-tonal-button`)],Q);var ue=m(`<p role="alert" class="failure svelte-qieqgw"> </p>`),de=m(`<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.
@@ -1,4 +1,4 @@
1
- import{$ as e,A as t,B as n,C as r,D as i,G as a,H as o,J as s,K as c,L as l,M as u,N as d,Q as f,S as p,T as m,U as h,V as g,W as _,X as v,Y as y,Z as b,_ as x,_t as S,b as C,dt as w,it as T,k as E,lt as D,mt as O,nt as k,ot as A,pt as j,q as ee,tt as te,ut as M,vt as N,x as ne,y as P,z as F}from"../chunks/0FroJ-XN.js";import{A as I,C as re,E as ie,G as ae,I as L,J as R,K as z,L as B,M as oe,R as se,V,W as H,X as U,Y as ce,_ as le,g as ue,h as de,j as fe,k as pe,m as me,p as he,q as W,t as ge,v as _e,w as ve,x as ye}from"../chunks/tKonUL5Y.js";import{t as be}from"../chunks/D-2Nx62w.js";import"../chunks/B1vArRqi.js";import{r as xe}from"../chunks/BS7n1gMj.js";import{a as Se,i as Ce,n as we,o as Te,r as Ee,s as De,t as Oe}from"../chunks/CMWEX9XL.js";import{n as ke,t as Ae}from"../chunks/DOY87jO2.js";import{t as je}from"../chunks/B1Ryegye.js";var Me;function Ne(e){return(t,n)=>ae(t,n,{get(){return(this.renderRoot??(Me??=document.createDocumentFragment())).querySelectorAll(e)}})}function Pe(e){return(t,n)=>{let{slot:r}=e??{},i=`slot`+(r?`[name=${r}]`:`:not([name])`);return ae(t,n,{get(){return(this.renderRoot?.querySelector(i))?.assignedNodes(e)??[]}})}}var Fe={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=ue(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.`]},Ie=[[`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 Le(e,t){return e.some(e=>e.value===t)?e:[...e,{value:t,label:t}]}var Re={path:`tcp.encoding`,label:`Text encoding`,control:{kind:`select`,options:Ie},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:()=>[]},ze={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=me(e);return t.ok?{ok:!0,value:t.entries}:t},describe:String,consequence:()=>[]},Be={control:{kind:`checkbox`},format:String,parse:e=>({ok:!0,value:e===`true`}),describe:e=>e?`On`:`Off`},Ve=`The first start installs what is missing, which can take a minute or two.`,He={...Be,path:`playwright.enabled`,label:`Playwright server`,help:()=>`Tests connect to it to drive a browser on the VM.`,consequence:e=>[e?Ve:`Tests can't connect to a browser on the VM while it is off.`]},Ue=({runningPlaywright:e})=>e===null?`bundled version`:`bundled version (${e})`,We={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=de(e);return t.ok?{ok:!0,value:t.version}:t},describe:(e,t)=>e??Ue(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 Ge(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 Ke(e,t,n){let r={},i={};for(let a of Ge(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={...Be,path:`mcp.enabled`,label:`Playwright MCP`,help:()=>`AI agents connect to it to drive a browser on the VM.`,consequence:e=>[e?Ve:`AI agents can't connect to a browser through it while it is off.`]},Je={error:`errors only`,warn:`errors and warnings`,info:`normal operation`,debug:`everything, with the speech`},Ye={path:`log.level`,label:`Log level`,control:{kind:`select`,options:_e.map(e=>({value:e,label:`${e} (${Je[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.`]:[]},Xe=[Fe,Re,ze,He,We,qe,Ye];function Ze(e,t,n,r){return r[e]===void 0&&G(t,e)!==G(n,e)}var Qe=(e,t)=>{let[n,r]=t.split(`.`);return e[n][r]};function $e(e,t,n,r){return le(e,t).filter(e=>n[e]===void 0).map(n=>{let i=Xe.find(e=>e.path===n);if(i===void 0){let r=e=>JSON.stringify(Qe(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 et(e,t){if(!(e instanceof Error))return{field:null,message:`The settings could not be saved.`};if(!(e instanceof he)||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=Xe.reduce((e,t)=>e.replaceAll(t.path,t.label),e.message);return{field:n?.path??null,message:`${r}. Nothing was saved.`}}var tt=g(`<code class="svelte-1ko3bij"> </code>`),nt=g(`<li class="svelte-1ko3bij"><strong> </strong> <!></li>`),rt=g(`<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),it=g(`<!> <p role="status" tabindex="-1" class="result svelte-1ko3bij"> </p>`,1);function at(r,i){O(i,!0);let o=M(``),c,d=e=>e===1?`1 change waits for a restart`:`${e} changes wait for a restart`;async function f(){D(o,``),await i.onCheck(),D(o,i.reachable?i.changes.length===0?`No changes wait for a restart.`:`Checked: ${d(i.changes.length)}.`:`The bridge is not reachable.`,!0),await te(),i.changes.length===0&&c.focus()}var g=it(),_=y(g),S=r=>{var o=rt(),c=s(o),g=v(c,!0),_=b(c,2);E(_,21,()=>i.changes,e=>e.path,(r,i)=>{var a=nt(),o=s(a),c=v(o),d=b(o),f=b(d);E(f,17,()=>e(i).consequence,t,(t,r)=>{var i=n(),a=y(i),o=t=>{var n=h();A(()=>l(n,e(r))),F(t,n)},s=t=>{var n=tt(),i=v(n,!0);A(()=>l(i,e(r).code)),F(t,n)};u(a,t=>{typeof e(r)==`string`?t(o):t(s,-1)}),F(t,i)}),N(a),A(()=>{l(c,`${e(i).label??``}:`),l(d,` ${e(i).from??``} → ${e(i).to??``}. `)}),F(r,a)}),N(_);var x=b(_,4);p(x,`type`,`button`),m(x,1,`svelte-1ko3bij`),N(o),A(e=>l(g,e),[()=>d(i.changes.length)]),a(`click`,x,()=>void f()),F(r,o)};u(_,e=>{i.changes.length>0&&e(S)});var C=b(_,2),w=v(C,!0);x(C,e=>c=e,()=>c),A(()=>l(w,e(o))),F(r,g),j()}_([`click`]);function ot(e,t=q){let n=ct(e,t);return n&&(n.tabIndex=0,n.focus()),n}function st(e,t=q){let n=lt(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 ct(e,t=q){for(let n of e)if(t(n))return n;return null}function lt(e,t=q){for(let n=e.length-1;n>=0;n--){let r=e[n];if(t(r))return r}return null}function ut(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 dt(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 ft(e,t,n=q,r=!0){if(t){let i=ut(e,t.index,n,r);return i&&(i.tabIndex=0,i.focus()),i}return ot(e,n)}function pt(e,t,n=q,r=!0){if(t){let i=dt(e,t.index,n,r);return i&&(i.tabIndex=0,i.focus()),i}return st(e,n)}function q(e){return!e.disabled}var J={ArrowDown:`ArrowDown`,ArrowLeft:`ArrowLeft`,ArrowUp:`ArrowUp`,ArrowRight:`ArrowRight`,Home:`Home`,End:`End`},mt=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=ft(n,r,this.isActivatable,this.wrapNavigation());break;case J.ArrowUp:case a:s=pt(n,r,this.isActivatable,this.wrapNavigation());break;case J.Home:s=ot(n,this.isActivatable);break;case J.End:s=st(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=ct(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),ft(e,t,this.isActivatable,this.wrapNavigation())}activatePreviousItem(){let e=this.items,t=K(e,this.isActivatable);return t&&(t.item.tabIndex=-1),pt(e,t,this.isActivatable,this.wrapNavigation())}};function ht(e,t){return new CustomEvent(`close-menu`,{bubbles:!0,composed:!0,detail:{initiator:e,reason:t,itemPath:[e]}})}var gt=ht,_t={SPACE:`Space`,ENTER:`Enter`},vt={CLICK_SELECTION:`click-selection`,KEYDOWN:`keydown`},yt={ESCAPE:`Escape`,SPACE:_t.SPACE,ENTER:_t.ENTER};function bt(e){return Object.values(yt).some(t=>t===e)}function xt(e){return Object.values(_t).some(t=>t===e)}function St(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`},Ct={END_START:`end-start`,END_END:`end-end`,START_START:`start-start`,START_END:`start-end`},wt=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:O,inlineOutOfBoundsCorrection:k,surfaceInlineProperty:A}=this.calculateInline({surfaceRect:v,anchorRect:y,anchorInline:C,surfaceInline:x,xOffset:a,positioning:i,isLTR:w,windowInnerWidth:f,inlineScrollbarWidth:_});if(k&&!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(k)>Math.abs(n.inlineOutOfBoundsCorrection)&&(O=n.inlineInset,k=n.inlineOutOfBoundsCorrection,A=n.surfaceInlineProperty)}l===`move`&&(T-=E,O-=k),this.surfaceStylesInternal={display:`block`,opacity:`1`,[D]:`${T}px`,[A]:`${O}px`},l===`resize`&&(E&&(this.surfaceStylesInternal.height=`${v.height-E}px`),k&&(this.surfaceStylesInternal.width=`${v.width-k}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},Tt=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()}},Et=new Set([J.ArrowDown,J.ArrowUp,J.Home,J.End]),Dt=new Set([J.ArrowLeft,J.ArrowRight,...Et]);function Ot(e=document){let t=e.activeElement;for(;t&&t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}var Z=class extends L{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=Ct.END_START,this.menuCorner=Ct.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=fe(),this.listController=new mt({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)||Et.has(e):Dt.has(e),wrapNavigation:()=>!this.noNavigationWrap}),this.lastFocusedElement=null,this.typeaheadController=new Tt(()=>({getItems:()=>this.items,typeaheadBufferTime:this.typeaheadDelay,active:this.typeaheadActive})),this.currentAnchorElement=null,this.internals=this.attachInternals(),this.menuPositionController=new wt(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(St(e.relatedTarget,this)||this.pointerPath.length!==0&&St(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=Ot();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=ct(e);t&&(t.tabIndex=0,t.focus(),await t.updateComplete);break;case Y.LAST_ITEM:let n=lt(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 V`
1
+ import{$ as e,A as t,B as n,C as r,D as i,G as a,H as o,J as s,K as c,L as l,M as u,N as d,Q as f,S as p,T as m,U as h,V as g,W as _,X as v,Y as y,Z as b,_ as x,_t as S,b as C,dt as w,it as T,k as E,lt as D,mt as O,nt as k,ot as A,pt as j,q as ee,tt as te,ut as M,vt as N,x as ne,y as P,z as F}from"../chunks/0FroJ-XN.js";import{A as I,C as re,E as ie,G as ae,I as L,J as R,K as z,L as B,M as oe,R as se,V,W as H,X as U,Y as ce,_ as le,g as ue,h as de,j as fe,k as pe,m as me,p as he,q as W,t as ge,v as _e,w as ve,x as ye}from"../chunks/ux9AxWa3.js";import{t as be}from"../chunks/D-2Nx62w.js";import"../chunks/PzCUpBms.js";import{r as xe}from"../chunks/BrPqgVT6.js";import{a as Se,i as Ce,n as we,o as Te,r as Ee,s as De,t as Oe}from"../chunks/D9JU-e3z.js";import{n as ke,t as Ae}from"../chunks/KD5R77Wj.js";import{t as je}from"../chunks/Cc902J0D.js";var Me;function Ne(e){return(t,n)=>ae(t,n,{get(){return(this.renderRoot??(Me??=document.createDocumentFragment())).querySelectorAll(e)}})}function Pe(e){return(t,n)=>{let{slot:r}=e??{},i=`slot`+(r?`[name=${r}]`:`:not([name])`);return ae(t,n,{get(){return(this.renderRoot?.querySelector(i))?.assignedNodes(e)??[]}})}}var Fe={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=ue(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.`]},Ie=[[`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 Le(e,t){return e.some(e=>e.value===t)?e:[...e,{value:t,label:t}]}var Re={path:`tcp.encoding`,label:`Text encoding`,control:{kind:`select`,options:Ie},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:()=>[]},ze={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=me(e);return t.ok?{ok:!0,value:t.entries}:t},describe:String,consequence:()=>[]},Be={control:{kind:`checkbox`},format:String,parse:e=>({ok:!0,value:e===`true`}),describe:e=>e?`On`:`Off`},Ve=`The first start installs what is missing, which can take a minute or two.`,He={...Be,path:`playwright.enabled`,label:`Playwright server`,help:()=>`Tests connect to it to drive a browser on the VM.`,consequence:e=>[e?Ve:`Tests can't connect to a browser on the VM while it is off.`]},Ue=({runningPlaywright:e})=>e===null?`bundled version`:`bundled version (${e})`,We={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=de(e);return t.ok?{ok:!0,value:t.version}:t},describe:(e,t)=>e??Ue(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 Ge(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 Ke(e,t,n){let r={},i={};for(let a of Ge(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={...Be,path:`mcp.enabled`,label:`Playwright MCP`,help:()=>`AI agents connect to it to drive a browser on the VM.`,consequence:e=>[e?Ve:`AI agents can't connect to a browser through it while it is off.`]},Je={error:`errors only`,warn:`errors and warnings`,info:`normal operation`,debug:`everything, with the speech`},Ye={path:`log.level`,label:`Log level`,control:{kind:`select`,options:_e.map(e=>({value:e,label:`${e} (${Je[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.`]:[]},Xe=[Fe,Re,ze,He,We,qe,Ye];function Ze(e,t,n,r){return r[e]===void 0&&G(t,e)!==G(n,e)}var Qe=(e,t)=>{let[n,r]=t.split(`.`);return e[n][r]};function $e(e,t,n,r){return le(e,t).filter(e=>n[e]===void 0).map(n=>{let i=Xe.find(e=>e.path===n);if(i===void 0){let r=e=>JSON.stringify(Qe(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 et(e,t){if(!(e instanceof Error))return{field:null,message:`The settings could not be saved.`};if(!(e instanceof he)||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=Xe.reduce((e,t)=>e.replaceAll(t.path,t.label),e.message);return{field:n?.path??null,message:`${r}. Nothing was saved.`}}var tt=g(`<code class="svelte-1ko3bij"> </code>`),nt=g(`<li class="svelte-1ko3bij"><strong> </strong> <!></li>`),rt=g(`<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),it=g(`<!> <p role="status" tabindex="-1" class="result svelte-1ko3bij"> </p>`,1);function at(r,i){O(i,!0);let o=M(``),c,d=e=>e===1?`1 change waits for a restart`:`${e} changes wait for a restart`;async function f(){D(o,``),await i.onCheck(),D(o,i.reachable?i.changes.length===0?`No changes wait for a restart.`:`Checked: ${d(i.changes.length)}.`:`The bridge is not reachable.`,!0),await te(),i.changes.length===0&&c.focus()}var g=it(),_=y(g),S=r=>{var o=rt(),c=s(o),g=v(c,!0),_=b(c,2);E(_,21,()=>i.changes,e=>e.path,(r,i)=>{var a=nt(),o=s(a),c=v(o),d=b(o),f=b(d);E(f,17,()=>e(i).consequence,t,(t,r)=>{var i=n(),a=y(i),o=t=>{var n=h();A(()=>l(n,e(r))),F(t,n)},s=t=>{var n=tt(),i=v(n,!0);A(()=>l(i,e(r).code)),F(t,n)};u(a,t=>{typeof e(r)==`string`?t(o):t(s,-1)}),F(t,i)}),N(a),A(()=>{l(c,`${e(i).label??``}:`),l(d,` ${e(i).from??``} → ${e(i).to??``}. `)}),F(r,a)}),N(_);var x=b(_,4);p(x,`type`,`button`),m(x,1,`svelte-1ko3bij`),N(o),A(e=>l(g,e),[()=>d(i.changes.length)]),a(`click`,x,()=>void f()),F(r,o)};u(_,e=>{i.changes.length>0&&e(S)});var C=b(_,2),w=v(C,!0);x(C,e=>c=e,()=>c),A(()=>l(w,e(o))),F(r,g),j()}_([`click`]);function ot(e,t=q){let n=ct(e,t);return n&&(n.tabIndex=0,n.focus()),n}function st(e,t=q){let n=lt(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 ct(e,t=q){for(let n of e)if(t(n))return n;return null}function lt(e,t=q){for(let n=e.length-1;n>=0;n--){let r=e[n];if(t(r))return r}return null}function ut(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 dt(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 ft(e,t,n=q,r=!0){if(t){let i=ut(e,t.index,n,r);return i&&(i.tabIndex=0,i.focus()),i}return ot(e,n)}function pt(e,t,n=q,r=!0){if(t){let i=dt(e,t.index,n,r);return i&&(i.tabIndex=0,i.focus()),i}return st(e,n)}function q(e){return!e.disabled}var J={ArrowDown:`ArrowDown`,ArrowLeft:`ArrowLeft`,ArrowUp:`ArrowUp`,ArrowRight:`ArrowRight`,Home:`Home`,End:`End`},mt=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=ft(n,r,this.isActivatable,this.wrapNavigation());break;case J.ArrowUp:case a:s=pt(n,r,this.isActivatable,this.wrapNavigation());break;case J.Home:s=ot(n,this.isActivatable);break;case J.End:s=st(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=ct(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),ft(e,t,this.isActivatable,this.wrapNavigation())}activatePreviousItem(){let e=this.items,t=K(e,this.isActivatable);return t&&(t.item.tabIndex=-1),pt(e,t,this.isActivatable,this.wrapNavigation())}};function ht(e,t){return new CustomEvent(`close-menu`,{bubbles:!0,composed:!0,detail:{initiator:e,reason:t,itemPath:[e]}})}var gt=ht,_t={SPACE:`Space`,ENTER:`Enter`},vt={CLICK_SELECTION:`click-selection`,KEYDOWN:`keydown`},yt={ESCAPE:`Escape`,SPACE:_t.SPACE,ENTER:_t.ENTER};function bt(e){return Object.values(yt).some(t=>t===e)}function xt(e){return Object.values(_t).some(t=>t===e)}function St(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`},Ct={END_START:`end-start`,END_END:`end-end`,START_START:`start-start`,START_END:`start-end`},wt=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:O,inlineOutOfBoundsCorrection:k,surfaceInlineProperty:A}=this.calculateInline({surfaceRect:v,anchorRect:y,anchorInline:C,surfaceInline:x,xOffset:a,positioning:i,isLTR:w,windowInnerWidth:f,inlineScrollbarWidth:_});if(k&&!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(k)>Math.abs(n.inlineOutOfBoundsCorrection)&&(O=n.inlineInset,k=n.inlineOutOfBoundsCorrection,A=n.surfaceInlineProperty)}l===`move`&&(T-=E,O-=k),this.surfaceStylesInternal={display:`block`,opacity:`1`,[D]:`${T}px`,[A]:`${O}px`},l===`resize`&&(E&&(this.surfaceStylesInternal.height=`${v.height-E}px`),k&&(this.surfaceStylesInternal.width=`${v.width-k}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},Tt=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()}},Et=new Set([J.ArrowDown,J.ArrowUp,J.Home,J.End]),Dt=new Set([J.ArrowLeft,J.ArrowRight,...Et]);function Ot(e=document){let t=e.activeElement;for(;t&&t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}var Z=class extends L{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=Ct.END_START,this.menuCorner=Ct.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=fe(),this.listController=new mt({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)||Et.has(e):Dt.has(e),wrapNavigation:()=>!this.noNavigationWrap}),this.lastFocusedElement=null,this.typeaheadController=new Tt(()=>({getItems:()=>this.items,typeaheadBufferTime:this.typeaheadDelay,active:this.typeaheadActive})),this.currentAnchorElement=null,this.internals=this.attachInternals(),this.menuPositionController=new wt(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(St(e.relatedTarget,this)||this.pointerPath.length!==0&&St(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=Ot();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=ct(e);t&&(t.tabIndex=0,t.focus(),await t.updateComplete);break;case Y.LAST_ITEM:let n=lt(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 V`
2
2
  <div
3
3
  class="menu ${oe(this.getSurfaceClasses())}"
4
4
  style=${De(this.menuPositionController.surfaceStyles)}
@@ -1,4 +1,4 @@
1
- import{$ as e,D as t,G as n,J as r,K as i,L as a,M as o,N as s,P as c,S as l,T as u,U as d,V as f,W as p,X as m,Y as h,Z as g,_t as _,b as v,dt as y,it as b,j as x,k as S,lt as C,mt as w,nt as T,ot as E,pt as D,q as O,s as k,st as A,tt as j,ut as M,vt as N,z as P}from"../chunks/0FroJ-XN.js";import"../chunks/B1vArRqi.js";import"../chunks/BnU72Mow.js";import{t as F}from"../chunks/CVpgcnu3.js";import"../chunks/DHsTyp2W.js";import{a as I,o as L,r as R,t as z}from"../chunks/tKonUL5Y.js";import"../chunks/BS7n1gMj.js";import"../chunks/CK3uUd4t.js";var B=f(`<a class="svelte-13xhv7j"><!></a>`);function V(e,t){w(t,!0);var n=B(),i=r(n);c(i,()=>t.children),N(n),E(e=>v(n,`href`,`${e??``}#screen-reader-heading`),[()=>k(`/setup/instructions`)]),P(e,n),D()}var H=f(`<p role="alert" class="unreachable svelte-10lx79f"> </p>`),U=f(`<p class="note svelte-10lx79f">Reading the status…</p>`),W=f(`<span class="visually-hidden">Warning:</span>`),G=f(` <span class="visually-hidden">on GitHub</span>`,1),K=f(`<span>(<!>)</span>`),q=f(` <span class="visually-hidden"> </span>`,1),J=f(`<span class="help svelte-10lx79f"><!></span>`),Y=f(`<li><md-icon> </md-icon> <span class="label svelte-10lx79f"> </span> <span class="state svelte-10lx79f"><!> <!> <!></span></li>`,2),X=f(`<ul aria-label="Setup status" class="svelte-10lx79f"></ul>`),Z=f(`<!> <!> <md-outlined-button> </md-outlined-button> <p role="status" class="note svelte-10lx79f"> </p>`,3);function Q(t,i){w(i,!0);let s={ok:`check_circle`,warning:`warning`,neutral:`radio_button_unchecked`},c=M(``);async function f(){if(C(c,``),await i.onCheck(),await j(),!i.reachable)return;let e=i.rows?.filter(e=>e.tone===`warning`).length??0;C(c,e===0?`Checked: no warnings.`:`Checked: ${e} ${e===1?`warning`:`warnings`}.`,!0)}var p=Z(),v=h(p),b=e=>{var t=H(),n=m(t);E(()=>a(n,`The bridge is not reachable.${i.rows===null?``:` This is the last state that was read.`}`)),P(e,t)},T=e=>{var t=U();P(e,t)};o(v,e=>{i.reachable?i.rows===null&&e(T,1):e(b)});var O=g(v,2),k=t=>{var n=X();S(n,21,()=>i.rows,e=>e.id,(t,n)=>{var i=Y(),c=r(i);l(c,`aria-hidden`,`true`),u(c,1,`svelte-10lx79f`);var f=m(c,!0),p=g(c,2),v=m(p,!0),b=g(p,2),S=r(b),C=e=>{var t=W();P(e,t)};o(S,t=>{e(n).tone===`warning`&&t(C)});var w=g(S),T=g(w),D=t=>{let i=y(()=>e(n).library);var s=K(),c=g(r(s)),l=t=>{var n=d();E(()=>a(n,e(i).name)),P(t,n)},u=t=>{F(t,{get href(){return e(i).href},children:(t,n)=>{_();var r=G(),o=h(r,!0);_(),E(()=>a(o,e(i).name)),P(t,r)},$$slots:{default:!0}})};o(c,t=>{e(i).href===null?t(l):t(u,-1)}),_(),N(s),P(t,s)};o(T,t=>{e(n).library!==null&&t(D)});var O=g(T,2),k=t=>{var i=J(),s=r(i),c=t=>{F(t,{get href(){return e(n).help.href},children:(t,r)=>{_();var i=q(),o=h(i,!0),s=g(o),c=m(s);E(()=>{a(o,e(n).help.label),a(c,`(help for ${e(n).label??``})`)}),P(t,i)},$$slots:{default:!0}})},l=t=>{V(t,{children:(t,r)=>{_();var i=q(),o=h(i,!0),s=g(o),c=m(s);E(()=>{a(o,e(n).help.label),a(c,`(help for ${e(n).label??``})`)}),P(t,i)},$$slots:{default:!0}})};o(s,t=>{`href`in e(n).help?t(c):t(l,-1)}),N(i),P(t,i)};o(O,t=>{e(n).help!==null&&t(k)}),N(b),N(i),E(()=>{u(i,1,x(e(n).tone),`svelte-10lx79f`),a(f,s[e(n).tone]),a(v,e(n).label),a(w,` ${e(n).state??``} `)}),P(t,i)}),N(n),P(t,n)};o(O,e=>{i.rows!==null&&e(k)});var A=g(O,2);l(A,`type`,`button`);var I=m(A,!0),L=g(A,2),R=m(L,!0);E(()=>{a(I,i.reachable?`Check again`:`Try again`),a(R,e(c))}),n(`click`,A,()=>void f()),P(t,p),D()}p([`click`]);var $=f(`<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
1
+ import{$ as e,D as t,G as n,J as r,K as i,L as a,M as o,N as s,P as c,S as l,T as u,U as d,V as f,W as p,X as m,Y as h,Z as g,_t as _,b as v,dt as y,it as b,j as x,k as S,lt as C,mt as w,nt as T,ot as E,pt as D,q as O,s as k,st as A,tt as j,ut as M,vt as N,z as P}from"../chunks/0FroJ-XN.js";import"../chunks/PzCUpBms.js";import"../chunks/BfHif6xP.js";import{t as F}from"../chunks/CVpgcnu3.js";import"../chunks/DHsTyp2W.js";import{a as I,o as L,r as R,t as z}from"../chunks/ux9AxWa3.js";import"../chunks/BrPqgVT6.js";import"../chunks/C7D7xLuA.js";var B=f(`<a class="svelte-13xhv7j"><!></a>`);function V(e,t){w(t,!0);var n=B(),i=r(n);c(i,()=>t.children),N(n),E(e=>v(n,`href`,`${e??``}#screen-reader-heading`),[()=>k(`/setup/instructions`)]),P(e,n),D()}var H=f(`<p role="alert" class="unreachable svelte-10lx79f"> </p>`),U=f(`<p class="note svelte-10lx79f">Reading the status…</p>`),W=f(`<span class="visually-hidden">Warning:</span>`),G=f(` <span class="visually-hidden">on GitHub</span>`,1),K=f(`<span>(<!>)</span>`),q=f(` <span class="visually-hidden"> </span>`,1),J=f(`<span class="help svelte-10lx79f"><!></span>`),Y=f(`<li><md-icon> </md-icon> <span class="label svelte-10lx79f"> </span> <span class="state svelte-10lx79f"><!> <!> <!></span></li>`,2),X=f(`<ul aria-label="Setup status" class="svelte-10lx79f"></ul>`),Z=f(`<!> <!> <md-outlined-button> </md-outlined-button> <p role="status" class="note svelte-10lx79f"> </p>`,3);function Q(t,i){w(i,!0);let s={ok:`check_circle`,warning:`warning`,neutral:`radio_button_unchecked`},c=M(``);async function f(){if(C(c,``),await i.onCheck(),await j(),!i.reachable)return;let e=i.rows?.filter(e=>e.tone===`warning`).length??0;C(c,e===0?`Checked: no warnings.`:`Checked: ${e} ${e===1?`warning`:`warnings`}.`,!0)}var p=Z(),v=h(p),b=e=>{var t=H(),n=m(t);E(()=>a(n,`The bridge is not reachable.${i.rows===null?``:` This is the last state that was read.`}`)),P(e,t)},T=e=>{var t=U();P(e,t)};o(v,e=>{i.reachable?i.rows===null&&e(T,1):e(b)});var O=g(v,2),k=t=>{var n=X();S(n,21,()=>i.rows,e=>e.id,(t,n)=>{var i=Y(),c=r(i);l(c,`aria-hidden`,`true`),u(c,1,`svelte-10lx79f`);var f=m(c,!0),p=g(c,2),v=m(p,!0),b=g(p,2),S=r(b),C=e=>{var t=W();P(e,t)};o(S,t=>{e(n).tone===`warning`&&t(C)});var w=g(S),T=g(w),D=t=>{let i=y(()=>e(n).library);var s=K(),c=g(r(s)),l=t=>{var n=d();E(()=>a(n,e(i).name)),P(t,n)},u=t=>{F(t,{get href(){return e(i).href},children:(t,n)=>{_();var r=G(),o=h(r,!0);_(),E(()=>a(o,e(i).name)),P(t,r)},$$slots:{default:!0}})};o(c,t=>{e(i).href===null?t(l):t(u,-1)}),_(),N(s),P(t,s)};o(T,t=>{e(n).library!==null&&t(D)});var O=g(T,2),k=t=>{var i=J(),s=r(i),c=t=>{F(t,{get href(){return e(n).help.href},children:(t,r)=>{_();var i=q(),o=h(i,!0),s=g(o),c=m(s);E(()=>{a(o,e(n).help.label),a(c,`(help for ${e(n).label??``})`)}),P(t,i)},$$slots:{default:!0}})},l=t=>{V(t,{children:(t,r)=>{_();var i=q(),o=h(i,!0),s=g(o),c=m(s);E(()=>{a(o,e(n).help.label),a(c,`(help for ${e(n).label??``})`)}),P(t,i)},$$slots:{default:!0}})};o(s,t=>{`href`in e(n).help?t(c):t(l,-1)}),N(i),P(t,i)};o(O,t=>{e(n).help!==null&&t(k)}),N(b),N(i),E(()=>{u(i,1,x(e(n).tone),`svelte-10lx79f`),a(f,s[e(n).tone]),a(v,e(n).label),a(w,` ${e(n).state??``} `)}),P(t,i)}),N(n),P(t,n)};o(O,e=>{i.rows!==null&&e(k)});var A=g(O,2);l(A,`type`,`button`);var I=m(A,!0),L=g(A,2),R=m(L,!0);E(()=>{a(I,i.reachable?`Check again`:`Try again`),a(R,e(c))}),n(`click`,A,()=>void f()),P(t,p),D()}p([`click`]);var $=f(`<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
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(e,t){w(t,!0);var o=$();E(()=>l(o,`open`,t.open)),u(o,1,`svelte-6mj6i9`);var s=r(o),c=m(s),d=g(s,4),f=r(d);l(f,`type`,`button`);var p=g(f,2);l(p,`type`,`button`),N(d),N(o),E(()=>a(c,`Send Insert+T during a session?`)),i(`closed`,o,function(...e){t.onClose?.apply(this,e)}),n(`click`,f,function(...e){t.onClose?.apply(this,e)}),n(`click`,p,()=>{t.onClose(),t.onSend()}),P(e,o),D()}p([`click`]);var te=f(`<p class="scope">This page is opened on the bridge's own machine: the screen reader reads this page too, and that
3
3
  speech can pass the check.</p>`),ne=f(`<p class="scope"> </p>`),re=f(`<p class="result svelte-xev9kd"> </p>`),ie=f(`<li> </li>`),ae=f(`<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=f(`<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=f(`<p class="scope"> <!>).</p>`),ce=f(`<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(t,i){w(i,!0);let s=M(!1),c=M(!1),f=y(()=>i.phase===`starting`||i.phase===`listening`),p=y(()=>e(f)||i.input?.available!==!0),b=y(()=>e(f)?i.reconnecting?`Connection lost, reconnecting…`:i.via===`keys`?`Sending ${R} and waiting for speech…`:`Listening. Make the screen reader speak, for example with a key press.`:``),x=y(()=>i.phase===`heard`?`Speech arrived.`:i.phase===`silent`?`Nothing arrived.`:i.phase===`failed`?`The check failed: ${i.failure}`:``),T=y(()=>e(x)===``?i.local?``:e(b):e(x));async function O(){if(!(e(p)||e(c))){C(c,!0);try{await i.isSessionRunning()?C(s,!0):i.onSendKeys()}finally{C(c,!1)}}}var A=ce(),j=h(A),I=m(j),z=g(j,2),B=e=>{var t=te();P(e,t)};o(z,e=>{i.local&&e(B)});var H=g(z,2),U=r(H);l(U,`type`,`button`),E(()=>l(U,`soft-disabled`,e(f)?!0:void 0));var W=g(U,2);l(W,`type`,`button`),E(()=>l(W,`soft-disabled`,e(p)?!0:void 0));var G=m(W),K=g(W,2);l(K,`type`,`button`),E(()=>l(K,`soft-disabled`,!e(f)||void 0)),N(H);var q=g(H,2),J=e=>{var t=ne(),n=m(t);E(()=>a(n,`Insert+T can't be sent: ${i.input.reason??`native input is not available`??``}`)),P(e,t)};o(q,e=>{i.input!==null&&!i.input.available&&e(J)});var Y=g(q,2),X=t=>{var n=re(),r=m(n,!0);E(()=>a(r,e(b))),P(t,n)};o(Y,t=>{i.local&&e(b)!==``&&t(X)});var Z=g(Y,2),Q=m(Z,!0),$=g(Z,2),le=t=>{var n=ae(),o=h(n);S(o,21,()=>i.entries,e=>e.seq,(t,n)=>{var r=ie(),i=m(r,!0);E(()=>a(i,e(n).text)),P(t,r)}),N(o);var s=g(o,2),c=g(r(s));_(),N(s),E(e=>{v(o,`aria-hidden`,i.local?`true`:void 0),v(c,`href`,e)},[()=>k(`/settings`)]),P(t,n)},ue=t=>{var n=oe(),o=r(n);V(r(o),{children:(e,t)=>{_();var n=d(`Select the socket voice`);P(e,n)},$$slots:{default:!0}}),_(),N(o);var s=g(o,2),c=r(s),l=g(c);{let t=y(()=>L(i.version,`usage/troubleshooting.md#speech`));F(l,{get href(){return e(t)},children:(e,t)=>{_();var n=d(`troubleshooting`);P(e,n)},$$slots:{default:!0}})}_(),N(s);var u=g(s,2),f=g(r(u));{let t=y(()=>L(i.version,`usage/vm-setup.md#jaws-language-detection`));F(f,{get href(){return e(t)},children:(e,t)=>{_();var n=d(`Detect Language Changes`);P(e,n)},$$slots:{default:!0}})}_(),N(u),N(n),E(()=>a(c,`The voice must send to ${i.port===null?`the bridge's port`:`port ${i.port}`}
4
4
  (`)),P(t,n)},de=t=>{var n=se(),o=r(n),s=g(o);{let t=y(()=>L(i.version,`usage/troubleshooting.md#browser-and-input`));F(s,{get href(){return e(t)},children:(e,t)=>{_();var n=d(`troubleshooting`);P(e,n)},$$slots:{default:!0}})}_(),N(n),E(()=>a(o,`Insert+T was sent. Use Listen and make the screen reader speak by hand: if that works, the keys
@@ -1,4 +1,4 @@
1
- import{$ as e,D as t,G as n,J as r,L as i,M as a,N as o,S as s,U as c,V as l,W as u,X as d,Y as f,Z as p,_t as m,b as h,dt as g,it as _,lt as v,mt as y,n as b,ot as x,pt as S,q as C,s as w,ut as T,vt as E,z as D}from"../chunks/0FroJ-XN.js";import"../chunks/B_ZElYu_.js";import"../chunks/DHsTyp2W.js";import"../chunks/BS7n1gMj.js";import"../chunks/BnU72Mow.js";import{t as O}from"../chunks/CVpgcnu3.js";import{b as k,i as A,o as j,t as M}from"../chunks/tKonUL5Y.js";var N=`/playwright-mcp`,P=l(`<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(t,a){y(a,!0);let o=T(null),c=g(()=>e(o)===null||e(o).text!==a.text?``:e(o).ok?`Copied.`:`Copying failed: select the text and copy it.`);async function l(){let e=a.text;v(o,null),v(o,{text:e,ok:await a.onCopy(e)},!0)}var u=P(),h=f(u),_=r(h),b=r(_),C=d(b,!0);E(_);var w=p(_,2);s(w,`type`,`button`),x(()=>s(w,`aria-label`,`Copy ${a.label??``}`));var O=r(w);s(O,`slot`,`icon`),s(O,`aria-hidden`,`true`),m(),E(w),E(h);var k=p(h,2),A=d(k,!0);x(()=>{i(C,a.text),i(A,e(c))}),n(`click`,w,()=>void l()),D(t,u),S()}u([`click`]);var I=`127.0.0.1`,L=`npm install -g text-to-socket-engine
1
+ import{$ as e,D as t,G as n,J as r,L as i,M as a,N as o,S as s,U as c,V as l,W as u,X as d,Y as f,Z as p,_t as m,b as h,dt as g,it as _,lt as v,mt as y,n as b,ot as x,pt as S,q as C,s as w,ut as T,vt as E,z as D}from"../chunks/0FroJ-XN.js";import"../chunks/B_ZElYu_.js";import"../chunks/DHsTyp2W.js";import"../chunks/BrPqgVT6.js";import"../chunks/BfHif6xP.js";import{t as O}from"../chunks/CVpgcnu3.js";import{b as k,i as A,o as j,t as M}from"../chunks/ux9AxWa3.js";var N=`/playwright-mcp`,P=l(`<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(t,a){y(a,!0);let o=T(null),c=g(()=>e(o)===null||e(o).text!==a.text?``:e(o).ok?`Copied.`:`Copying failed: select the text and copy it.`);async function l(){let e=a.text;v(o,null),v(o,{text:e,ok:await a.onCopy(e)},!0)}var u=P(),h=f(u),_=r(h),b=r(_),C=d(b,!0);E(_);var w=p(_,2);s(w,`type`,`button`),x(()=>s(w,`aria-label`,`Copy ${a.label??``}`));var O=r(w);s(O,`slot`,`icon`),s(O,`aria-hidden`,`true`),m(),E(w),E(h);var k=p(h,2),A=d(k,!0);x(()=>{i(C,a.text),i(A,e(c))}),n(`click`,w,()=>void l()),D(t,u),S()}u([`click`]);var I=`127.0.0.1`,L=`npm install -g text-to-socket-engine
2
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!==`*`&&k.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
3
  -Direction Inbound -Protocol TCP -LocalPort ${e} -Action Allow -Profile Any`}function U(e){return[`npx @screenreader-speech-capture/client config set url ${e}`,`npx @screenreader-speech-capture/client status`].join(`
4
4
  `)}function W(e){return`npm i -D @screenreader-speech-capture/client @playwright/test@${e} @types/node`}function G(e){let t={url:`${e}${N}`};return JSON.stringify({mcpServers:{"screenreader-vm":t}},null,2)}var K=l(`<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=l(`<p class="svelte-2oo2iv">Windows can block the port without asking. On the bridge's machine, in an <strong>administrator</strong> PowerShell (<!>):</p> <!>`,1),J=l(`<p class="svelte-2oo2iv">This machine already reaches the bridge, so the firewall lets it through.</p>`),Y=l(`<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=l(`<p class="svelte-2oo2iv">The Playwright server is off. <a class="svelte-2oo2iv">Turn it on in Settings.</a></p>`),Z=l(`<p class="svelte-2oo2iv">The test project needs exactly the bridge's Playwright version:</p> <!>`,1),Q=l(`<p class="svelte-2oo2iv">Playwright MCP is off. <a class="svelte-2oo2iv">Turn it on in Settings.</a></p>`),$=l(`<p class="svelte-2oo2iv">Point the agent's MCP client at the bridge:</p> <!>`,1),ee=l(`<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){y(n,!0);let i=e=>j(n.version,e);var o=ee(),s=p(r(o),2),l=e=>{var t=K();D(e,t)};a(s,e=>{n.loopbackOnly&&e(l)});var u=p(s,2),d=t=>{var a=q(),o=f(a),s=p(r(o),3);{let t=g(()=>i(`usage/vm-setup.md#firewall`));O(s,{get href(){return e(t)},children:(e,t)=>{m();var n=c(`firewall`);D(e,n)},$$slots:{default:!0}})}m(),E(o);var l=p(o,2);{let t=g(()=>H(n.httpPort));F(l,{label:`the firewall command`,get text(){return e(t)},get onCopy(){return n.onCopy}})}D(t,a)},_=e=>{var t=J();D(e,t)};a(u,e=>{n.local?e(d):e(_,-1)});var v=p(u,4);{let t=g(()=>U(n.address.url));F(v,{label:`the client commands`,get text(){return e(t)},get onCopy(){return n.onCopy}})}var b=p(v,2),C=e=>{var t=Y();D(e,t)};a(b,e=>{n.address.placeholder&&e(C)});var T=p(b,4),k=e=>{var t=X(),n=p(r(t));E(t),x(e=>h(n,`href`,e),[()=>w(`/settings`)]),D(e,t)},A=t=>{var r=Z(),i=p(f(r),2);{let t=g(()=>W(n.playwright.version));F(i,{label:`the test packages command`,get text(){return e(t)},get onCopy(){return n.onCopy}})}D(t,r)};a(T,e=>{n.playwright?.state===`stopped`?e(k):n.playwright!==null&&e(A,1)});var M=p(T,2),N=r(M);{let t=g(()=>i(`usage/client.md`));O(N,{get href(){return e(t)},children:(e,t)=>{m();var n=c(`Set up the tests with the test client`);D(e,n)},$$slots:{default:!0}})}E(M);var P=p(M,4),I=e=>{var t=Q(),n=p(r(t));E(t),x(e=>h(n,`href`,e),[()=>w(`/settings`)]),D(e,t)},L=t=>{var r=$(),i=p(f(r),2);{let t=g(()=>G(n.address.url));F(i,{label:`the MCP configuration`,get text(){return e(t)},get onCopy(){return n.onCopy}})}D(t,r)};a(P,e=>{n.mcp?.state===`stopped`?e(I):e(L,-1)});var R=p(P,2),z=r(R);{let t=g(()=>i(`usage/agents.md`));O(z,{get href(){return e(t)},children:(e,t)=>{m();var n=c(`How agents use the bridge`);D(e,n)},$$slots:{default:!0}})}E(R),E(o),D(t,o),S()}var ne=l(`<p class="svelte-1tbxerf">The default voice doesn't send to where this bridge listens. Add a voice that does, in the
@@ -1 +1 @@
1
- {"version":"1795962020982"}
1
+ {"version":"1796147271832"}
@@ -2793,7 +2793,8 @@ var PAGE_SIZE = 1e3;
2793
2793
  * Reads the speech of a scope through the UI's own routes (`urls` include the base path):
2794
2794
  * - A live scope is followed on the stream relay with `?since=0`, so the bridge replays the
2795
2795
  * buffer first. `EventSource` reconnects by itself and sends `Last-Event-ID`, so a drop only
2796
- * shows as `reconnecting` and the missed entries are replayed.
2796
+ * shows as `reconnecting` and the missed entries are replayed. A refused stream shows as
2797
+ * `failed`.
2797
2798
  * - An ended session never gets new entries: it is read page by page, once, without a stream.
2798
2799
  */
2799
2800
  var SseSpeechFeed = class {
@@ -2809,17 +2810,19 @@ var SseSpeechFeed = class {
2809
2810
  }
2810
2811
  listen(since, handlers) {
2811
2812
  const source = this.stream(`since=${since}`, (entry) => handlers.onEntry(entry));
2812
- source.onopen = () => handlers.onState("live");
2813
- source.onerror = () => handlers.onState(source.readyState === EventSource.CLOSED ? "failed" : "reconnecting");
2813
+ this.report(source, (state) => handlers.onState(state));
2814
2814
  return () => source.close();
2815
2815
  }
2816
2816
  follow(scope, handlers) {
2817
2817
  const source = this.stream(`session=${encodeURIComponent(String(scope))}&since=0`, (entry) => handlers.onEntry(entry));
2818
- source.onopen = () => handlers.onState("live");
2819
- source.onerror = () => handlers.onState("reconnecting");
2818
+ this.report(source, (state) => handlers.onState(state));
2820
2819
  source.addEventListener("clear", () => handlers.onClear());
2821
2820
  return () => source.close();
2822
2821
  }
2822
+ report(source, onState) {
2823
+ source.onopen = () => onState("live");
2824
+ source.onerror = () => onState(source.readyState === EventSource.CLOSED ? "failed" : "reconnecting");
2825
+ }
2823
2826
  stream(query, onEntry) {
2824
2827
  const source = new EventSource(`${this.streamUrl}?${query}`);
2825
2828
  source.addEventListener("entry", (event) => {