@screenreader-speech-capture/bridge 0.1.0-feat-expected-target-window.34 → 0.2.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 (123) hide show
  1. package/dist/cli.mjs +1244 -948
  2. package/dist/ui/adapter-node.js +1 -1
  3. package/dist/ui/client/ui/_app/immutable/assets/{4.DyY1vjRV.css → 4.DEk4yqpA.css} +1 -1
  4. package/dist/ui/client/ui/_app/immutable/assets/4.DEk4yqpA.css.br +0 -0
  5. package/dist/ui/client/ui/_app/immutable/assets/4.DEk4yqpA.css.gz +0 -0
  6. package/dist/ui/client/ui/_app/immutable/chunks/{B1Ryegye.js → Bq3k_s8n.js} +1 -1
  7. package/dist/ui/client/ui/_app/immutable/chunks/Bq3k_s8n.js.br +0 -0
  8. package/dist/ui/client/ui/_app/immutable/chunks/Bq3k_s8n.js.gz +0 -0
  9. package/dist/ui/client/ui/_app/immutable/chunks/{CMWEX9XL.js → CEGGem4o.js} +1 -1
  10. package/dist/ui/client/ui/_app/immutable/chunks/CEGGem4o.js.br +0 -0
  11. package/dist/ui/client/ui/_app/immutable/chunks/CEGGem4o.js.gz +0 -0
  12. package/dist/ui/client/ui/_app/immutable/chunks/{tKonUL5Y.js → Cwz551Q0.js} +4 -3
  13. package/dist/ui/client/ui/_app/immutable/chunks/Cwz551Q0.js.br +0 -0
  14. package/dist/ui/client/ui/_app/immutable/chunks/Cwz551Q0.js.gz +0 -0
  15. package/dist/ui/client/ui/_app/immutable/chunks/{4wvZDMeR.js → DJvJc_zO.js} +1 -1
  16. package/dist/ui/client/ui/_app/immutable/chunks/DJvJc_zO.js.br +0 -0
  17. package/dist/ui/client/ui/_app/immutable/chunks/DJvJc_zO.js.gz +0 -0
  18. package/dist/ui/client/ui/_app/immutable/chunks/{CK3uUd4t.js → DU8ibkb0.js} +1 -1
  19. package/dist/ui/client/ui/_app/immutable/chunks/DU8ibkb0.js.br +0 -0
  20. package/dist/ui/client/ui/_app/immutable/chunks/DU8ibkb0.js.gz +0 -0
  21. package/dist/ui/client/ui/_app/immutable/chunks/{BS7n1gMj.js → Dk73DTz3.js} +1 -1
  22. package/dist/ui/client/ui/_app/immutable/chunks/Dk73DTz3.js.br +0 -0
  23. package/dist/ui/client/ui/_app/immutable/chunks/Dk73DTz3.js.gz +0 -0
  24. package/dist/ui/client/ui/_app/immutable/chunks/{DOY87jO2.js → DoG5cwE3.js} +1 -1
  25. package/dist/ui/client/ui/_app/immutable/chunks/DoG5cwE3.js.br +3 -0
  26. package/dist/ui/client/ui/_app/immutable/chunks/DoG5cwE3.js.gz +0 -0
  27. package/dist/ui/client/ui/_app/immutable/chunks/hhZsYtkz.js +3 -0
  28. package/dist/ui/client/ui/_app/immutable/chunks/hhZsYtkz.js.br +0 -0
  29. package/dist/ui/client/ui/_app/immutable/chunks/hhZsYtkz.js.gz +0 -0
  30. package/dist/ui/client/ui/_app/immutable/entry/app.Bic9wlww.js +2 -0
  31. package/dist/ui/client/ui/_app/immutable/entry/app.Bic9wlww.js.br +0 -0
  32. package/dist/ui/client/ui/_app/immutable/entry/app.Bic9wlww.js.gz +0 -0
  33. package/dist/ui/client/ui/_app/immutable/nodes/0.IqK6bsxB.js +1 -0
  34. package/dist/ui/client/ui/_app/immutable/nodes/0.IqK6bsxB.js.br +0 -0
  35. package/dist/ui/client/ui/_app/immutable/nodes/0.IqK6bsxB.js.gz +0 -0
  36. package/dist/ui/client/ui/_app/immutable/nodes/{3.WT26F_BF.js → 3.DYZ3H5TS.js} +1 -1
  37. package/dist/ui/client/ui/_app/immutable/nodes/3.DYZ3H5TS.js.br +0 -0
  38. package/dist/ui/client/ui/_app/immutable/nodes/3.DYZ3H5TS.js.gz +0 -0
  39. package/dist/ui/client/ui/_app/immutable/nodes/4.Lwlmq1AY.js +180 -0
  40. package/dist/ui/client/ui/_app/immutable/nodes/4.Lwlmq1AY.js.br +0 -0
  41. package/dist/ui/client/ui/_app/immutable/nodes/4.Lwlmq1AY.js.gz +0 -0
  42. package/dist/ui/client/ui/_app/immutable/nodes/{5.MzfJoePg.js → 5.rBMVkFpN.js} +5 -5
  43. package/dist/ui/client/ui/_app/immutable/nodes/5.rBMVkFpN.js.br +0 -0
  44. package/dist/ui/client/ui/_app/immutable/nodes/5.rBMVkFpN.js.gz +0 -0
  45. package/dist/ui/client/ui/_app/immutable/nodes/6.nui9awM2.js +6 -0
  46. package/dist/ui/client/ui/_app/immutable/nodes/6.nui9awM2.js.br +0 -0
  47. package/dist/ui/client/ui/_app/immutable/nodes/6.nui9awM2.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/.vite/manifest.json +18 -29
  52. package/dist/ui/server/_app/immutable/assets/{_page.DyY1vjRV.css → _page.DEk4yqpA.css} +1 -1
  53. package/dist/ui/server/chunks/composition.js +60 -5
  54. package/dist/ui/server/chunks/composition.js.map +1 -1
  55. package/dist/ui/server/chunks/instance.js +3 -3
  56. package/dist/ui/server/chunks/internal.js +1 -1
  57. package/dist/ui/server/chunks/outlined-button.js +116 -0
  58. package/dist/ui/server/chunks/outlined-button.js.map +1 -0
  59. package/dist/ui/server/chunks/src.js +19 -13
  60. package/dist/ui/server/chunks/src.js.map +1 -1
  61. package/dist/ui/server/entries/hooks.server.js +3 -2
  62. package/dist/ui/server/entries/hooks.server.js.map +1 -1
  63. package/dist/ui/server/entries/pages/_layout.svelte.js +2 -3
  64. package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
  65. package/dist/ui/server/entries/pages/_page.svelte.js +0 -1
  66. package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
  67. package/dist/ui/server/entries/pages/settings/_page.svelte.js +139 -13
  68. package/dist/ui/server/entries/pages/settings/_page.svelte.js.map +1 -1
  69. package/dist/ui/server/entries/pages/setup/_page.svelte.js +2 -3
  70. package/dist/ui/server/entries/pages/setup/_page.svelte.js.map +1 -1
  71. package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js +15 -10
  72. package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js.map +1 -1
  73. package/dist/ui/server/manifest-full.js +1 -1
  74. package/dist/ui/server/manifest.js +1 -1
  75. package/dist/ui/server/nodes/0.js +1 -1
  76. package/dist/ui/server/nodes/3.js +1 -1
  77. package/dist/ui/server/nodes/4.js +2 -2
  78. package/dist/ui/server/nodes/5.js +1 -1
  79. package/dist/ui/server/nodes/6.js +1 -1
  80. package/dist/ui/server/server.js +1 -1
  81. package/package.json +1 -1
  82. package/dist/ui/client/ui/_app/immutable/assets/4.DyY1vjRV.css.br +0 -0
  83. package/dist/ui/client/ui/_app/immutable/assets/4.DyY1vjRV.css.gz +0 -0
  84. package/dist/ui/client/ui/_app/immutable/chunks/4wvZDMeR.js.br +0 -0
  85. package/dist/ui/client/ui/_app/immutable/chunks/4wvZDMeR.js.gz +0 -0
  86. package/dist/ui/client/ui/_app/immutable/chunks/B1Ryegye.js.br +0 -0
  87. package/dist/ui/client/ui/_app/immutable/chunks/B1Ryegye.js.gz +0 -0
  88. package/dist/ui/client/ui/_app/immutable/chunks/B1vArRqi.js +0 -3
  89. package/dist/ui/client/ui/_app/immutable/chunks/B1vArRqi.js.br +0 -0
  90. package/dist/ui/client/ui/_app/immutable/chunks/B1vArRqi.js.gz +0 -0
  91. package/dist/ui/client/ui/_app/immutable/chunks/BS7n1gMj.js.br +0 -0
  92. package/dist/ui/client/ui/_app/immutable/chunks/BS7n1gMj.js.gz +0 -0
  93. package/dist/ui/client/ui/_app/immutable/chunks/BnU72Mow.js +0 -2
  94. package/dist/ui/client/ui/_app/immutable/chunks/BnU72Mow.js.br +0 -0
  95. package/dist/ui/client/ui/_app/immutable/chunks/BnU72Mow.js.gz +0 -0
  96. package/dist/ui/client/ui/_app/immutable/chunks/CK3uUd4t.js.br +0 -0
  97. package/dist/ui/client/ui/_app/immutable/chunks/CK3uUd4t.js.gz +0 -0
  98. package/dist/ui/client/ui/_app/immutable/chunks/CMWEX9XL.js.br +0 -0
  99. package/dist/ui/client/ui/_app/immutable/chunks/CMWEX9XL.js.gz +0 -0
  100. package/dist/ui/client/ui/_app/immutable/chunks/DOY87jO2.js.br +0 -0
  101. package/dist/ui/client/ui/_app/immutable/chunks/DOY87jO2.js.gz +0 -0
  102. package/dist/ui/client/ui/_app/immutable/chunks/tKonUL5Y.js.br +0 -0
  103. package/dist/ui/client/ui/_app/immutable/chunks/tKonUL5Y.js.gz +0 -0
  104. package/dist/ui/client/ui/_app/immutable/entry/app.C8tsut3X.js +0 -2
  105. package/dist/ui/client/ui/_app/immutable/entry/app.C8tsut3X.js.br +0 -0
  106. package/dist/ui/client/ui/_app/immutable/entry/app.C8tsut3X.js.gz +0 -0
  107. package/dist/ui/client/ui/_app/immutable/nodes/0.3bVKqGbx.js +0 -1
  108. package/dist/ui/client/ui/_app/immutable/nodes/0.3bVKqGbx.js.br +0 -0
  109. package/dist/ui/client/ui/_app/immutable/nodes/0.3bVKqGbx.js.gz +0 -0
  110. package/dist/ui/client/ui/_app/immutable/nodes/3.WT26F_BF.js.br +0 -0
  111. package/dist/ui/client/ui/_app/immutable/nodes/3.WT26F_BF.js.gz +0 -0
  112. package/dist/ui/client/ui/_app/immutable/nodes/4.tiDJxi6M.js +0 -160
  113. package/dist/ui/client/ui/_app/immutable/nodes/4.tiDJxi6M.js.br +0 -0
  114. package/dist/ui/client/ui/_app/immutable/nodes/4.tiDJxi6M.js.gz +0 -0
  115. package/dist/ui/client/ui/_app/immutable/nodes/5.MzfJoePg.js.br +0 -0
  116. package/dist/ui/client/ui/_app/immutable/nodes/5.MzfJoePg.js.gz +0 -0
  117. package/dist/ui/client/ui/_app/immutable/nodes/6.bNZhqiRK.js +0 -6
  118. package/dist/ui/client/ui/_app/immutable/nodes/6.bNZhqiRK.js.br +0 -0
  119. package/dist/ui/client/ui/_app/immutable/nodes/6.bNZhqiRK.js.gz +0 -0
  120. package/dist/ui/server/chunks/filled-button.js +0 -116
  121. package/dist/ui/server/chunks/filled-button.js.map +0 -1
  122. package/dist/ui/server/chunks/icon.js +0 -49
  123. package/dist/ui/server/chunks/icon.js.map +0 -1
@@ -0,0 +1,3 @@
1
+ import{J as e,V as t,X as n,Y as r}from"./Cwz551Q0.js";import{n as i,t as a}from"./Dk73DTz3.js";import{n as o}from"./Bq3k_s8n.js";var s=class extends i{renderElevationOrOutline(){return t`<md-elevation part="elevation"></md-elevation>`}},c=e`:host{--_container-color: var(--md-filled-button-container-color, var(--md-sys-color-primary, #6750a4));--_container-elevation: var(--md-filled-button-container-elevation, 0);--_container-height: var(--md-filled-button-container-height, 40px);--_container-shadow-color: var(--md-filled-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-filled-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-button-focus-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-container-elevation: var(--md-filled-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-button-hover-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-color: var(--md-filled-button-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-opacity: var(--md-filled-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-button-label-text-color, var(--md-sys-color-on-primary, #fff));--_label-text-font: var(--md-filled-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-button-pressed-label-text-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-color: var(--md-filled-button-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-opacity: var(--md-filled-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-button-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-icon-color: var(--md-filled-button-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-color: var(--md-filled-button-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-size: var(--md-filled-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-button-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_container-shape-start-start: var(--md-filled-button-container-shape-start-start, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-button-container-shape-start-end, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-button-container-shape-end-end, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-button-container-shape-end-start, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-filled-button-leading-space, 24px);--_trailing-space: var(--md-filled-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-button-with-trailing-icon-trailing-space, 16px)}
2
+ `;c.styleSheet;var l=class extends s{};l.styles=[a,o,c],l=n([r(`md-filled-button`)],l);var u=class extends i{renderElevationOrOutline(){return t`<div class="outline"></div>`}},d=e`:host{--_container-height: var(--md-outlined-button-container-height, 40px);--_disabled-label-text-color: var(--md-outlined-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-button-disabled-label-text-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-button-disabled-outline-opacity, 0.12);--_focus-label-text-color: var(--md-outlined-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-outlined-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-outlined-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-outlined-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-outlined-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-outlined-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-outlined-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-outlined-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_outline-color: var(--md-outlined-button-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-button-outline-width, 1px);--_pressed-label-text-color: var(--md-outlined-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-outline-color: var(--md-outlined-button-pressed-outline-color, var(--md-sys-color-outline, #79747e));--_pressed-state-layer-color: var(--md-outlined-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-outlined-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-outlined-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-outlined-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-outlined-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-outlined-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-outlined-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-outlined-button-icon-size, 18px);--_pressed-icon-color: var(--md-outlined-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-outlined-button-container-shape-start-start, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-outlined-button-container-shape-start-end, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-outlined-button-container-shape-end-end, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-outlined-button-container-shape-end-start, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-outlined-button-leading-space, 24px);--_trailing-space: var(--md-outlined-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-outlined-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-outlined-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-outlined-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-outlined-button-with-trailing-icon-trailing-space, 16px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0}.outline{inset:0;border-style:solid;position:absolute;box-sizing:border-box;border-color:var(--_outline-color);border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}:host(:active) .outline{border-color:var(--_pressed-outline-color)}:host(:is([disabled],[soft-disabled])) .outline{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}@media(forced-colors: active){:host(:is([disabled],[soft-disabled])) .background{border-color:GrayText}:host(:is([disabled],[soft-disabled])) .outline{opacity:1}}.outline,md-ripple{border-width:var(--_outline-width)}md-ripple{inline-size:calc(100% - 2*var(--_outline-width));block-size:calc(100% - 2*var(--_outline-width));border-style:solid;border-color:rgba(0,0,0,0)}
3
+ `;d.styleSheet;var f=class extends u{};f.styles=[a,d],f=n([r(`md-outlined-button`)],f);
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.IqK6bsxB.js","../chunks/0FroJ-XN.js","./payload.DSmR2FwN.js","../chunks/D0famktY.js","../chunks/DHsTyp2W.js","../chunks/B_ZElYu_.js","../chunks/Cwz551Q0.js","../chunks/Dvxhfd7j.js","../chunks/DJvJc_zO.js","../chunks/DoG5cwE3.js","../chunks/Bvlvl8SZ.js","../assets/0.ONZWQgDA.css","../nodes/1.C81neQJL.js","../nodes/2.CmlyeAx_.js","../chunks/D-2Nx62w.js","../assets/Pane.Dgdg5KMw.css","../assets/2.DSVNnDlO.css","../nodes/3.DYZ3H5TS.js","../chunks/Bq3k_s8n.js","../chunks/Dk73DTz3.js","../chunks/DU8ibkb0.js","../chunks/CEGGem4o.js","../assets/3.WduKm4aT.css","../nodes/4.Lwlmq1AY.js","../chunks/hhZsYtkz.js","../assets/4.DEk4yqpA.css","../nodes/5.rBMVkFpN.js","../chunks/CVpgcnu3.js","../assets/ExternalLink.CYXazpKA.css","../assets/5.YyxFzHED.css","../nodes/6.nui9awM2.js","../assets/6.C0Nhvs_m.css"])))=>i.map(i=>d[i]);
2
+ import{i as e}from"../chunks/D0famktY.js";import{t}from"../chunks/DUTjbZNf.js";function n(e){let t={};for(let[n,i]of Object.entries(e))t[n]=r(i);return t}function r(t){if(t&&(typeof t==`object`||typeof t==`function`)&&`~standard`in t)return t;if(typeof t==`function`)return{"~standard":{validate(e){let n=t(e);return n===void 0?{issues:[{message:`Invalid param`}]}:n instanceof Promise?n:{value:n}}}};e()}var i=n({id:e=>{if(!/^[1-9]\d*$/.test(e))return;let t=Number(e);return Number.isSafeInteger(t)?t:void 0}}),a=[()=>t(()=>import(`../nodes/0.IqK6bsxB.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),()=>t(()=>import(`../nodes/1.C81neQJL.js`),__vite__mapDeps([12,1,2,3,5]),import.meta.url),()=>t(()=>import(`../nodes/2.CmlyeAx_.js`),__vite__mapDeps([13,1,2,3,4,5,14,15,10,16]),import.meta.url),()=>t(()=>import(`../nodes/3.DYZ3H5TS.js`),__vite__mapDeps([17,1,2,3,7,4,5,6,18,19,8,9,20,21,22]),import.meta.url),()=>t(()=>import(`../nodes/4.Lwlmq1AY.js`),__vite__mapDeps([23,1,2,3,24,6,7,4,19,18,21,9,14,15,25]),import.meta.url),()=>t(()=>import(`../nodes/5.rBMVkFpN.js`),__vite__mapDeps([26,1,2,3,24,6,7,4,19,18,27,28,20,29]),import.meta.url),()=>t(()=>import(`../nodes/6.nui9awM2.js`),__vite__mapDeps([30,1,2,3,5,4,19,6,7,27,28,31]),import.meta.url)],o=[0],s={"/":[-4],"/settings":[-5],"/setup":[5,[2]],"/setup/instructions":[-7,[2]]},c={handleError:(({kind:e,error:t})=>{e===`unknown`&&console.error(t)}),reroute:(()=>{}),transport:{}},l=Object.fromEntries(Object.entries(c.transport).map(([e,t])=>[e,t.decode])),u=Object.fromEntries(Object.entries(c.transport).map(([e,t])=>[e,t.encode])),d=!1,f=(e,t)=>l[e](t),p=()=>t(()=>import(`../chunks/Beqi9dRN.js`).then(e=>e.default),[],import.meta.url);export{f as decode,l as decoders,s as dictionary,u as encoders,p as get_error_template,d as hash,c as hooks,i as matchers,a as nodes,o as server_loads};
@@ -0,0 +1 @@
1
+ import{$ as e,D as t,E as n,G as r,H as i,J as a,L as o,M as s,N as c,P as l,S as u,T 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,j as b,k as x,lt as S,mt as C,n as w,ot as T,pt as E,s as D,st as O,ut as k,vt as A,z as j}from"../chunks/0FroJ-XN.js";import"../chunks/DHsTyp2W.js";import"../chunks/B_ZElYu_.js";import{n as M,t as N}from"../chunks/Cwz551Q0.js";import{t as P}from"../chunks/DJvJc_zO.js";import{t as F}from"../chunks/Bvlvl8SZ.js";var I=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='44'%20height='44'%20viewBox='0%200%2044%2044'%3e%3ctitle%3eSpeech%20Capture%3c/title%3e%3crect%20width='44'%20height='44'%20rx='14'%20fill='%23415f91'/%3e%3cpath%20d='M4%2010v4M8%206v12M12%203v18M16%208v8M20%2011v2'%20transform='translate(10%2010)'%20fill='none'%20stroke='%23fff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,L=new URL(`../assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2`,import.meta.url).href,R=f(`<li><span class="face svelte-19wvxlf" aria-hidden="true"><span></span> <span class="chip-label svelte-19wvxlf"> </span></span> <span class="visually-hidden"> </span></li>`),z=f(`<ul aria-label="Bridge status" class="svelte-19wvxlf"></ul>`),B=f(`<!> <span class="visually-hidden" role="status"> </span>`,1);function V(t,n){C(n,!0);var r=B(),i=h(r),c=t=>{var r=z();x(r,21,()=>n.chips,e=>e.id,(t,n)=>{var r=R();let i;var s=a(r),c=a(s),l=g(c,2),u=m(l,!0);A(s);var f=g(s,2),p=m(f,!0);A(r),T(()=>{i=d(r,1,b(e(n).tone),`svelte-19wvxlf`,i,{down:e(n).down}),v(s,`title`,e(n).text),d(c,1,`dot ${e(n).dot??``}`,`svelte-19wvxlf`),o(u,e(n).text),o(p,e(n).description)}),j(t,r)}),A(r),j(t,r)};s(i,e=>{n.chips.length>0&&e(c)});var l=g(i,2),u=m(l,!0);T(()=>o(u,n.announcement)),j(t,r),E()}var H=f(`<md-icon-button><md-icon>refresh</md-icon></md-icon-button>`,2);function U(e,t){var n=H();u(n,`title`,`Refresh status`),u(n,`aria-label`,`Refresh status`),d(n,1,`svelte-5q7qd7`);var i=a(n);u(i,`aria-hidden`,`true`);let o;A(n),T(()=>o=d(i,1,`svelte-5q7qd7`,null,o,{spin:t.loading})),r(`click`,n,function(...e){t.onRetry?.apply(this,e)}),j(e,n)}p([`click`]);var W=`24px "Material Symbols Outlined"`;async function G(){try{await document.fonts.load(W)}catch{}document.documentElement.setAttribute(`data-icons-ready`,``)}function K(e,t){return t?e===null?[]:[q(`playwright`,`Playwright`,e.playwright),q(`mcp`,`MCP`,e.mcp)].filter(e=>e!==null):[{id:`bridge`,text:`Bridge unreachable`,tone:`error`,dot:`filled`,description:`Bridge unreachable`}]}function q(e,t,n){let r=`${t} ${n.version}`;switch(n.state){case`running`:return{id:e,text:r,tone:`ok`,dot:`filled`,description:`${r}, running`};case`crashed`:case`failed`:return{id:e,text:`${r} · ${n.state}`,tone:`warning`,dot:`filled`,description:`${r}, ${n.state}`};case`starting`:return{id:e,text:r,tone:`neutral`,dot:`hollow`,description:`${r}, starting`,down:!0};case`stopped`:return null}}function J(e,t){return t?e.filter(e=>e.tone===`error`||e.tone===`warning`).map(e=>`${e.description}.`).join(` `):`Bridge unreachable.`}var Y=f(`<!> <!>`,1);function X(t,n){C(n,!0);let r=N().status,i=y(()=>w.data.status),a=y(()=>r.status??e(i)),o=y(()=>K(e(a),r.reachable));c(()=>r.init(e(i)));var l=Y(),u=h(l);{let t=y(()=>J(e(o),r.reachable));V(u,{get chips(){return e(o)},get announcement(){return e(t)}})}var d=g(u,2),f=e=>{U(e,{get loading(){return r.loading},onRetry:()=>void r.retry()})};s(d,e=>{r.reachable||e(f)}),j(t,l),E()}var Z=f(`<header class="svelte-4j9s4f"><div class="logo-slot svelte-4j9s4f"><div class="logo svelte-4j9s4f"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 10v4M8 6v12M12 3v18M16 8v8M20 11v2"></path></svg></div></div> <div class="title svelte-4j9s4f"><span class="name svelte-4j9s4f">Speech Capture</span> <span class="meta svelte-4j9s4f"> </span></div> <!></header>`);function Q(e,t){var n=Z(),r=g(a(n),2),i=g(a(r),2),s=m(i,!0);A(r),X(g(r,2),{}),A(n),T(()=>o(s,t.host)),j(e,n)}var $=f(`<li><a data-sveltekit-reset="false" class="svelte-sxtjmn"><span><md-ripple></md-ripple> <md-icon> </md-icon></span> <span class="label svelte-sxtjmn"> </span></a></li>`,2),ee=f(`<nav aria-label="Pages" class="svelte-sxtjmn"><ul class="svelte-sxtjmn"></ul></nav> <span class="visually-hidden" role="status"> </span>`,1);function te(t,s){let c=i();C(s,!0);let l=k(``),f;O(()=>(s.currentPath,()=>{clearTimeout(f),S(l,``)}));function p(e,t){if(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)return;let n=e.currentTarget;n.href===n.ownerDocument.URL&&(e.preventDefault(),clearTimeout(f),S(l,``),f=setTimeout(()=>S(l,`${t}, current page`),100))}function _(e){e.key===` `&&(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||(e.preventDefault(),e.repeat||e.currentTarget.click()))}var b=ee(),w=h(b),D=a(w);x(D,23,()=>s.items,e=>e.href,(t,n,i)=>{let l=y(()=>F(e(n),s.currentPath)),f=y(()=>`${c}-link-${e(i)}`),h=y(()=>`${e(f)}-label`);var b=$(),x=a(b),S=a(x);let C;var w=a(S);T(()=>u(w,`for`,e(f))),u(w,`aria-hidden`,`true`);var E=g(w,2);u(E,`aria-hidden`,`true`);var D=m(E,!0);A(S);var O=g(S,2),k=m(O,!0);A(x),A(b),T(()=>{v(x,`id`,e(f)),v(x,`href`,e(n).href),v(x,`aria-labelledby`,e(h)),v(x,`aria-current`,e(l)?`page`:void 0),C=d(S,1,`indicator svelte-sxtjmn`,null,C,{current:e(l)}),o(D,e(n).icon),v(O,`id`,e(h)),o(k,e(n).label)}),r(`click`,x,t=>p(t,e(n).label)),r(`keydown`,x,_),j(t,b)}),A(D),n(D,()=>P(`a`)),A(w);var M=g(w,2),N=m(M,!0);T(()=>o(N,e(l))),j(t,b),E()}p([`click`,`keydown`]);var ne=f(`<link rel="icon"/> <link rel="preload" as="font" type="font/woff2" crossorigin="anonymous"/> <meta name="color-scheme" content="light dark"/>`,1),re=f(`<div class="app svelte-12qhfyh"><!> <div class="body svelte-12qhfyh"><!> <main class="svelte-12qhfyh"><!></main></div></div>`);function ie(e,n){C(n,!0);let{theme:r}=M(),i=[{href:D(`/`),label:`Monitor`,icon:`monitor`,exact:!0},{href:D(`/settings`),label:`Settings`,icon:`settings`},{href:D(`/setup`),label:`Setup`,icon:`build`}];c(()=>{r.init(),G()});var o=re();t(`12qhfyh`,e=>{var t=ne(),n=h(t),r=g(n,2);_(2),T(()=>{v(n,`href`,I),v(r,`href`,L)}),j(e,t)});var s=a(o);Q(s,{get host(){return w.url.host}});var u=g(s,2),d=a(u);te(d,{get items(){return i},get currentPath(){return w.url.pathname}});var f=g(d,2),p=a(f);l(p,()=>n.children),A(f),A(u),A(o),j(e,o),E()}export{ie as component};
@@ -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{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/Cwz551Q0.js";import{n as ne}from"../chunks/Bq3k_s8n.js";import{n as re,t as ie}from"../chunks/Dk73DTz3.js";import{t as ae}from"../chunks/DJvJc_zO.js";import"../chunks/DU8ibkb0.js";import"../chunks/CEGGem4o.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.
@@ -0,0 +1,180 @@
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"../chunks/hhZsYtkz.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 W,_ as ce,g as le,h as ue,j as de,k as fe,m as pe,p as me,q as G,t as he,v as ge,w as _e,x as ve}from"../chunks/Cwz551Q0.js";import{a as ye,i as be,n as xe,o as Se,r as Ce,s as we,t as Te}from"../chunks/CEGGem4o.js";import{t as Ee}from"../chunks/D-2Nx62w.js";import{r as De}from"../chunks/Dk73DTz3.js";import{n as Oe,t as ke}from"../chunks/DoG5cwE3.js";import{t as Ae}from"../chunks/Bq3k_s8n.js";var je;function Me(e){return(t,n)=>ae(t,n,{get(){return(this.renderRoot??(je??=document.createDocumentFragment())).querySelectorAll(e)}})}function Ne(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 Pe=fe(L),Fe=class extends Pe{constructor(){super(...arguments),this.value=0,this.max=1,this.indeterminate=!1,this.fourColor=!1}render(){let{ariaLabel:e}=this;return V`
2
+ <div
3
+ class="progress ${oe(this.getRenderClasses())}"
4
+ role="progressbar"
5
+ aria-label="${e||B}"
6
+ aria-valuemin="0"
7
+ aria-valuemax=${this.max}
8
+ aria-valuenow=${this.indeterminate?B:this.value}
9
+ >${this.renderIndicator()}</div
10
+ >
11
+ `}getRenderClasses(){return{indeterminate:this.indeterminate,"four-color":this.fourColor}}};U([G({type:Number})],Fe.prototype,`value`,void 0),U([G({type:Number})],Fe.prototype,`max`,void 0),U([G({type:Boolean})],Fe.prototype,`indeterminate`,void 0),U([G({type:Boolean,attribute:`four-color`})],Fe.prototype,`fourColor`,void 0);var Ie=class extends Fe{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 V`
12
+ <div class="dots" ?hidden=${i}></div>
13
+ <div class="inactive-track" style=${we(r)}></div>
14
+ <div class="bar primary-bar" style=${we(e)}>
15
+ <div class="bar-inner"></div>
16
+ </div>
17
+ <div class="bar secondary-bar">
18
+ <div class="bar-inner"></div>
19
+ </div>
20
+ `}};U([G({type:Number})],Ie.prototype,`buffer`,void 0);var Le=R`: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
+ `;Le.styleSheet;var Re=class extends Ie{};Re.styles=[Le],Re=U([W(`md-linear-progress`)],Re);var ze={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=le(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.`]},Be=[[`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 Ve(e,t){return e.some(e=>e.value===t)?e:[...e,{value:t,label:t}]}var He={path:`tcp.encoding`,label:`Text encoding`,control:{kind:`select`,options:Be},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:()=>[]},Ue={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=pe(e);return t.ok?{ok:!0,value:t.entries}:t},describe:String,consequence:()=>[]},We={control:{kind:`checkbox`},format:String,parse:e=>({ok:!0,value:e===`true`}),describe:e=>e?`On`:`Off`},Ge=`The first start installs what is missing, which can take a minute or two.`,Ke={...We,path:`playwright.enabled`,label:`Playwright server`,help:()=>`Tests connect to it to drive a browser on the VM.`,consequence:e=>[e?Ge:`Tests can't connect to a browser on the VM while it is off.`]},qe=({runningPlaywright:e})=>e===null?`bundled version`:`bundled version (${e})`,Je={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=ue(e);return t.ok?{ok:!0,value:t.version}:t},describe:(e,t)=>e??qe(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 K(e,t){let[n,r]=t.split(`.`);return e[n][r]}function Ye(e,t,n){return e.filter(e=>{let r=t[e.path];return r!==void 0&&r.trim()!==e.format(K(n,e.path))})}function Xe(e,t,n){let r={},i={};for(let a of Ye(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 Ze={...We,path:`mcp.enabled`,label:`Playwright MCP`,help:()=>`AI agents connect to it to drive a browser on the VM.`,consequence:e=>[e?Ge:`AI agents can't connect to a browser through it while it is off.`]},Qe={error:`errors only`,warn:`errors and warnings`,info:`normal operation`,debug:`everything, with the speech`},$e={path:`log.level`,label:`Log level`,control:{kind:`select`,options:ge.map(e=>({value:e,label:`${e} (${Qe[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.`]:[]},et=[ze,He,Ue,Ke,Je,Ze,$e];function tt(e,t,n,r){return r[e]===void 0&&K(t,e)!==K(n,e)}var nt=(e,t)=>{let[n,r]=t.split(`.`);return e[n][r]};function rt(e,t,n,r){return ce(e,t).filter(e=>n[e]===void 0).map(n=>{let i=et.find(e=>e.path===n);if(i===void 0){let r=e=>JSON.stringify(nt(e,n));return{path:n,label:n,from:r(e),to:r(t),consequence:[]}}let a=K(e,i.path),o=K(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 it(e,t){if(!(e instanceof Error))return{field:null,message:`The settings could not be saved.`};if(!(e instanceof me)||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=et.reduce((e,t)=>e.replaceAll(t.path,t.label),e.message);return{field:n?.path??null,message:`${r}. Nothing was saved.`}}var at=g(`<code class="svelte-1ko3bij"> </code>`),ot=g(`<li class="svelte-1ko3bij"><strong> </strong> <!></li>`),st=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),ct=g(`<!> <p role="status" tabindex="-1" class="result svelte-1ko3bij"> </p>`,1);function lt(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=ct(),_=y(g),S=r=>{var o=st(),c=s(o),g=v(c,!0),_=b(c,2);E(_,21,()=>i.changes,e=>e.path,(r,i)=>{var a=ot(),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=at(),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 ut(e,t=q){let n=pt(e,t);return n&&(n.tabIndex=0,n.focus()),n}function dt(e,t=q){let n=mt(e,t);return n&&(n.tabIndex=0,n.focus()),n}function ft(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 ut(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 dt(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=ft(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=ut(n,this.isActivatable);break;case J.End:s=dt(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=ft(e,this.isActivatable);return t&&(t.item.tabIndex=-1),_t(e,t,this.isActivatable,this.wrapNavigation())}activatePreviousItem(){let e=this.items,t=ft(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: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},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 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=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=de(),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=ft(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 V`
22
+ <div
23
+ class="menu ${oe(this.getSurfaceClasses())}"
24
+ style=${we(this.menuPositionController.surfaceStyles)}
25
+ popover=${this.positioning===`popover`?`manual`:B}>
26
+ ${this.renderElevation()}
27
+ <div class="items">
28
+ <div class="item-padding"> ${this.renderMenuItems()} </div>
29
+ </div>
30
+ </div>
31
+ `}renderMenuItems(){return V`<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 V`<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:I.EMPHASIZED}),l=t.animate([{transform:a?`translateY(-${i}px)`:``},{transform:``}],{duration:500,easing:I.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:I.EMPHASIZED_ACCELERATE}),u=r.animate([{transform:``},{transform:i?`translateY(-${o*.65}px)`:``}],{duration:150,easing:I.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()}};U([H(`.menu`)],Z.prototype,`surfaceEl`,void 0),U([H(`slot`)],Z.prototype,`slotEl`,void 0),U([G()],Z.prototype,`anchor`,void 0),U([G()],Z.prototype,`positioning`,void 0),U([G({type:Boolean})],Z.prototype,`quick`,void 0),U([G({type:Boolean,attribute:`has-overflow`})],Z.prototype,`hasOverflow`,void 0),U([G({type:Boolean,reflect:!0})],Z.prototype,`open`,void 0),U([G({type:Number,attribute:`x-offset`})],Z.prototype,`xOffset`,void 0),U([G({type:Number,attribute:`y-offset`})],Z.prototype,`yOffset`,void 0),U([G({type:Boolean,attribute:`no-horizontal-flip`})],Z.prototype,`noHorizontalFlip`,void 0),U([G({type:Boolean,attribute:`no-vertical-flip`})],Z.prototype,`noVerticalFlip`,void 0),U([G({type:Number,attribute:`typeahead-delay`})],Z.prototype,`typeaheadDelay`,void 0),U([G({attribute:`anchor-corner`})],Z.prototype,`anchorCorner`,void 0),U([G({attribute:`menu-corner`})],Z.prototype,`menuCorner`,void 0),U([G({type:Boolean,attribute:`stay-open-on-outside-click`})],Z.prototype,`stayOpenOnOutsideClick`,void 0),U([G({type:Boolean,attribute:`stay-open-on-focusout`})],Z.prototype,`stayOpenOnFocusout`,void 0),U([G({type:Boolean,attribute:`skip-restore-focus`})],Z.prototype,`skipRestoreFocus`,void 0),U([G({attribute:`default-focus`})],Z.prototype,`defaultFocus`,void 0),U([G({type:Boolean,attribute:`no-navigation-wrap`})],Z.prototype,`noNavigationWrap`,void 0),U([De({flatten:!0})],Z.prototype,`slotItems`,void 0),U([z()],Z.prototype,`typeaheadActive`,void 0);var Pt=R`: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=U([W(`md-menu`)],Ft);var It=class extends Te{computeValidity(e){return this.selectControl||=document.createElement(`select`),se(V`<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(xe(Se(_e(ie(L))))),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,Ce)](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 V`
41
+ <span
42
+ class="select ${oe(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 Oe`
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||B}
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 V`
74
+ <span class="icon leading" slot="start">
75
+ <slot name="leading-icon" @slotchange=${this.handleIconChange}></slot>
76
+ </span>
77
+ `}renderTrailingIcon(){return V`
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 V`<div id="label">${this.displayText||V`&nbsp;`}</div>`}renderMenu(){let e=this.label||this.ariaLabel;return V`<div class="menu-wrapper">
95
+ <md-menu
96
+ id="listbox"
97
+ .defaultFocus=${this.defaultFocus}
98
+ role="listbox"
99
+ tabindex="-1"
100
+ aria-label=${e||B}
101
+ stay-open-on-focusout
102
+ part="menu"
103
+ exportparts="focus-ring: menu-focus-ring"
104
+ anchor="field"
105
+ style=${we({"--__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 V`<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=ft(t)?.item,[r]=this.lastSelectedOptionRecords[0]??[null];n&&n!==r&&(n.tabIndex=-1),r??=t[0],r&&(r.tabIndex=0,r.focus())}redispatchEvent(e){Ae(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}[re](){return this.value}formResetCallback(){this.reset()}formStateRestoreCallback(e){this.value=e}click(){this.field?.click()}[be](){return new It(()=>this)}[ye](){return this.field}};Q.shadowRootOptions={...L.shadowRootOptions,delegatesFocus:!0},U([G({type:Boolean})],Q.prototype,`quick`,void 0),U([G({type:Boolean})],Q.prototype,`required`,void 0),U([G({type:String,attribute:`error-text`})],Q.prototype,`errorText`,void 0),U([G()],Q.prototype,`label`,void 0),U([G({type:Boolean,attribute:`no-asterisk`})],Q.prototype,`noAsterisk`,void 0),U([G({type:String,attribute:`supporting-text`})],Q.prototype,`supportingText`,void 0),U([G({type:Boolean,reflect:!0})],Q.prototype,`error`,void 0),U([G({attribute:`menu-positioning`})],Q.prototype,`menuPositioning`,void 0),U([G({type:Boolean,attribute:`clamp-menu-width`})],Q.prototype,`clampMenuWidth`,void 0),U([G({type:Number,attribute:`typeahead-delay`})],Q.prototype,`typeaheadDelay`,void 0),U([G({type:Boolean,attribute:`has-leading-icon`})],Q.prototype,`hasLeadingIcon`,void 0),U([G({attribute:`display-text`})],Q.prototype,`displayText`,void 0),U([G({attribute:`menu-align`})],Q.prototype,`menuAlign`,void 0),U([G()],Q.prototype,`value`,null),U([G({type:Number,attribute:`selected-index`})],Q.prototype,`selectedIndex`,null),U([z()],Q.prototype,`nativeError`,void 0),U([z()],Q.prototype,`nativeErrorText`,void 0),U([z()],Q.prototype,`focused`,void 0),U([z()],Q.prototype,`open`,void 0),U([z()],Q.prototype,`defaultFocus`,void 0),U([H(`.field`)],Q.prototype,`field`,void 0),U([H(`md-menu`)],Q.prototype,`menu`,void 0),U([H(`#label`)],Q.prototype,`labelEl`,void 0),U([De({slot:`leading-icon`,flatten:!0})],Q.prototype,`leadingIcons`,void 0);var Vt=class extends Q{constructor(){super(...arguments),this.fieldTag=ke`md-outlined-field`}},Ht=R`: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=R`: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=U([W(`md-outlined-select`)],Wt);var Gt=R`: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 L{constructor(){super(...arguments),this.multiline=!1}render(){return V`
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}};U([G({type:Boolean,reflect:!0})],Kt.prototype,`multiline`,void 0),U([Me(`.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=R`: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=U([W(`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(L),$=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(V`
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 V`
151
+ <li
152
+ id="item"
153
+ tabindex=${this.disabled?-1:0}
154
+ role=${this.selectOptionController.role}
155
+ aria-label=${this.ariaLabel||B}
156
+ aria-selected=${this.ariaSelected||B}
157
+ aria-checked=${this.ariaChecked||B}
158
+ aria-expanded=${this.ariaExpanded||B}
159
+ aria-haspopup=${this.ariaHasPopup||B}
160
+ class="list-item ${oe(this.getRenderClasses())}"
161
+ @click=${this.selectOptionController.onClick}
162
+ @keydown=${this.selectOptionController.onKeydown}
163
+ >${e}</li
164
+ >
165
+ `}renderRipple(){return V` <md-ripple
166
+ part="ripple"
167
+ for="item"
168
+ ?disabled=${this.disabled}></md-ripple>`}renderFocusRing(){return V` <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 V`
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={...L.shadowRootOptions,delegatesFocus:!0},U([G({type:Boolean,reflect:!0})],$.prototype,`disabled`,void 0),U([G({type:Boolean,attribute:`md-menu-item`,reflect:!0})],$.prototype,`isMenuItem`,void 0),U([G({type:Boolean})],$.prototype,`selected`,void 0),U([G()],$.prototype,`value`,void 0),U([H(`.list-item`)],$.prototype,`listItemRoot`,void 0),U([De({slot:`headline`})],$.prototype,`headlineElements`,void 0),U([De({slot:`supporting-text`})],$.prototype,`supportingTextElements`,void 0),U([Ne({slot:``})],$.prototype,`defaultElements`,void 0),U([G({attribute:`typeahead-text`})],$.prototype,`typeaheadText`,null),U([G({attribute:`display-text`})],$.prototype,`displayText`,null);var tn=class extends ${};tn.styles=[Gt],tn=U([W(`md-select-option`)],tn);var nn=g(`<p class="error svelte-6obkkj" role="alert"> </p>`),rn=g(`<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(e,t){let n=o();O(t,!0);var r=rn(),i=s(r),c=s(i),d=s(c);P(d);var f=b(d,4);A(()=>p(f,`for`,`${n}-row`)),p(f,`aria-hidden`,`true`),m(f,1,`svelte-6obkkj`),N(c);var h=b(c,2),g=v(h,!0);N(i);var _=b(i,2),y=v(_,!0),x=b(_,2),S=e=>{var r=nn(),i=v(r,!0);A(()=>{C(r,`id`,`${n}-error`),l(i,t.error)}),F(e,r)};u(x,e=>{t.error!==``&&e(S)}),N(r),A(()=>{C(i,`id`,`${n}-row`),C(d,`data-setting`,t.path),ne(d,t.checked),C(d,`aria-describedby`,t.error===``?`${n}-help`:`${n}-error ${n}-help`),C(d,`aria-invalid`,t.error!==``||void 0),l(g,t.label),C(_,`id`,`${n}-help`),l(y,t.help)}),a(`change`,d,e=>t.onChange(e.currentTarget.checked)),F(e,r),j()}_([`change`]);var on=g(`<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=g(`<md-select-option><div slot="headline"> </div></md-select-option>`,2),cn=g(`<md-outlined-select></md-outlined-select>`,2),ln=g(`<md-outlined-text-field></md-outlined-text-field>`,2),un=g(`<div><!></div>`);function dn(t,r){O(r,!0);let i=w(()=>r.pendingValue===void 0?r.help:`Restart pending, in use: ${r.pendingValue}. ${r.help}`);var o=n(),c=y(o),d=e=>{var t=on(),n=s(t),i=v(n,!0),a=b(n,2),o=v(a,!0),c=b(a,2),u=b(s(c)),d=v(u,!0);S(),N(c),N(t),A(()=>{l(i,r.setting.label),l(o,r.fixed.value),l(d,r.fixed.by)}),F(e,t)},f=t=>{var n=un();let o;var c=s(n),d=t=>{{let n=w(()=>r.value===`true`);an(t,{get path(){return r.setting.path},get label(){return r.setting.label},get checked(){return e(n)},get help(){return e(i)},get error(){return r.error},onChange:e=>r.onInput(String(e))})}},f=t=>{var n=cn();A(()=>p(n,`data-setting`,r.setting.path)),A(()=>p(n,`label`,r.setting.label)),A(()=>p(n,`supporting-text`,e(i))),A(()=>p(n,`value`,r.value)),A(()=>p(n,`error`,r.error!==``||void 0)),A(()=>p(n,`error-text`,r.error)),m(n,1,`svelte-rc157l`),E(n,21,()=>Ve(r.setting.control.options,r.savedValue),e=>e.value,(t,n)=>{var i=sn();A(()=>p(i,`value`,e(n).value)),A(()=>p(i,`selected`,e(n).value===r.value||void 0));var a=s(i),o=v(a,!0);N(i),A(()=>l(o,e(n).label)),F(t,i)}),N(n),a(`change`,n,e=>r.onInput(e.target.value)),F(t,n)},h=t=>{var n=ln();A(()=>p(n,`data-setting`,r.setting.path)),A(()=>p(n,`label`,r.setting.label)),A(()=>p(n,`inputmode`,r.setting.control.inputmode)),A(()=>p(n,`suffix-text`,r.setting.control.suffix)),p(n,`autocomplete`,`off`),A(()=>p(n,`supporting-text`,e(i))),A(()=>p(n,`value`,r.value)),A(()=>p(n,`error`,r.error!==``||void 0)),A(()=>p(n,`error-text`,r.error)),m(n,1,`svelte-rc157l`),a(`keydown`,n,e=>{e.key===`Enter`&&(e.preventDefault(),r.onSubmit())}),a(`input`,n,e=>r.onInput(e.target.value)),F(t,n)};u(c,e=>{r.setting.control.kind===`checkbox`?e(d):r.setting.control.kind===`select`?e(f,1):e(h,-1)}),N(n),A(()=>o=m(n,1,`svelte-rc157l`,null,o,{pending:r.pendingValue!==void 0})),F(t,n)};u(c,e=>{r.fixed===void 0?e(f,-1):e(d)}),F(t,o),j()}_([`change`,`keydown`,`input`]);var fn=g(`<div class="cell svelte-1yckkzn"></div>`),pn=g(`<div class="actions svelte-1yckkzn"><md-filled-button>Save</md-filled-button> <md-text-button>Revert</md-text-button></div>`,2),mn=g(`<p role="alert" class="failure svelte-1yckkzn"> </p>`),hn=g(`<form role="none" novalidate="" class="svelte-1yckkzn"><div class="fields svelte-1yckkzn"></div> <!> <p role="status" class="note svelte-1yckkzn"> </p> <!></form>`);function gn(t,n){O(n,!0);let r=M(f({})),i=M(f({})),o=M(``),d=M(!1),m=M(null),h,g=w(()=>n.settings.map(e=>[e].flat())),_=w(()=>e(g).flat().filter(e=>n.overrides[e.path]===void 0)),y=w(()=>Ye(e(_),e(r),n.saved)),S=w(()=>e(y).length===0||e(d)),C=w(()=>e(_).some(e=>tt(e.path,n.active,n.saved,n.overrides))),T=w(()=>e(m)===null?``:e(m).waited?e(C)?`Saved. Restart the bridge to apply.`:``:`Saved.`);function k(){D(r,{},!0),D(i,{},!0),D(o,``),D(m,null)}async function ee(e){await te(),h.querySelector(`[data-setting="${e}"]`)?.focus()}async function ne(){if(e(d)||e(y).length===0)return;let t=Xe(e(_),e(r),n.saved);if(D(o,``),D(m,null),!t.ok)D(i,t.errors,!0),await ee(e(_).find(e=>t.errors[e.path]!==void 0).path);else{D(i,{},!0),D(d,!0);try{await n.onSave(t.patch),D(r,{},!0),D(m,{waited:e(C)},!0)}catch(t){let n=it(t,e(_));n.field===null?D(o,n.message,!0):(D(i,{[n.field]:n.message},!0),await ee(n.field))}finally{D(d,!1)}}}var P=hn(),I=s(P);E(I,21,()=>e(g),e=>e[0].path,(t,a)=>{var o=fn();E(o,21,()=>e(a),e=>e.path,(t,a)=>{let o=w(()=>n.overrides[e(a).path]),s=w(()=>K(n.active,e(a).path));{let c=w(()=>e(r)[e(a).path]??e(a).format(K(n.saved,e(a).path))),l=w(()=>e(a).format(K(n.saved,e(a).path))),u=w(()=>e(a).help(e(s),n.settingContext)),d=w(()=>tt(e(a).path,n.active,n.saved,n.overrides)?e(a).describe(e(s),n.settingContext):void 0),f=w(()=>e(i)[e(a).path]??``),p=w(()=>e(o)===void 0?void 0:{by:e(o),value:e(a).describe(e(s),n.settingContext)});dn(t,{get setting(){return e(a)},get value(){return e(c)},get savedValue(){return e(l)},get help(){return e(u)},get pendingValue(){return e(d)},get error(){return e(f)},get fixed(){return e(p)},onInput:t=>{e(r)[e(a).path]=t,delete e(i)[e(a).path],D(m,null)},onSubmit:()=>void ne()})}}),N(o),F(t,o)}),N(I);var re=b(I,2),ie=t=>{var r=pn(),i=s(r);p(i,`type`,`submit`),A(()=>p(i,`aria-label`,`Save ${n.name??``} settings`)),A(()=>p(i,`soft-disabled`,e(S)?!0:void 0));var o=b(i,2);p(o,`type`,`button`),A(()=>p(o,`aria-label`,`Revert ${n.name??``} settings`)),A(()=>p(o,`soft-disabled`,e(S)?!0:void 0)),N(r),a(`click`,o,k),F(t,r)};u(re,t=>{e(_).length>0&&t(ie)});var ae=b(re,2),L=v(ae,!0),R=b(ae,2),z=t=>{var n=mn(),r=v(n,!0);A(()=>l(r,e(o))),F(t,n)};u(R,t=>{e(o)!==``&&t(z)}),N(P),x(P,e=>h=e,()=>h),A(()=>l(L,e(T))),c(`submit`,P,e=>{e.preventDefault(),ne()}),F(t,P),j()}_([`click`]);var _n=g(`<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=g(`<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(t,n){O(n,!0);var i=vn(),o=b(s(i),4);E(o,21,()=>ve,e=>e.value,(t,i)=>{var o=_n(),c=s(o);P(c);var u=b(c,4),d=b(u,2),f=s(d),p=v(f,!0),m=b(f,2),h=v(m,!0);N(d),S(2),N(o),A(()=>{r(c,e(i).value),ne(c,n.value===e(i).value),C(c,`aria-describedby`,`theme-${e(i).value??``}-description`),C(u,`data-theme`,e(i).value),l(p,e(i).label),C(m,`id`,`theme-${e(i).value??``}-description`),l(h,e(i).description)}),a(`change`,c,()=>n.onChange(e(i).value)),F(t,o)}),N(o),N(i),F(t,i),j()}_([`change`]);var bn=g(`<!> <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=g(`<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=g(`<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=g(`<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(t,n){O(n,!0);let{config:r,status:o,theme:c}=he();k(()=>r.seed(n.data.config));let l=w(()=>({runningPlaywright:(o.status??n.data.status)?.playwright.version??null,playwrightOff:r.saved?.playwright.enabled===!1})),f=w(()=>r.active===null||r.saved===null?[]:rt(r.active,r.saved,r.overrides,e(l)));async function h(){await Promise.all([r.refresh(),o.retry()])}let g=M(void 0);async function _(){await r.refresh(),await te(),e(g)?.focus()}d(()=>{n.data.config===null&&r.refresh()}),i(`1i19ct2`,e=>{T(()=>{ee.title=`Settings · Speech Capture`})}),Ee(t,{heading:`Settings`,children:(t,n)=>{var i=Cn(),o=b(y(i),2),d=t=>{var n=bn(),i=y(n);lt(i,{get changes(){return e(f)},get reachable(){return r.reachable},onCheck:h});var a=b(i,2),o=b(s(a),2);{let t=w(()=>[ze,He,Ue]);gn(o,{name:`speech capture`,get settings(){return e(t)},get active(){return r.active},get saved(){return r.saved},get overrides(){return r.overrides},get settingContext(){return e(l)},onSave:e=>r.save(e)})}N(a);var c=b(a,2),u=b(s(c),2);{let t=w(()=>[[Ke,Je],Ze]);gn(u,{name:`Playwright and MCP`,get settings(){return e(t)},get active(){return r.active},get saved(){return r.saved},get overrides(){return r.overrides},get settingContext(){return e(l)},onSave:e=>r.save(e)})}N(c);var d=b(c,2),p=b(s(d),2);{let t=w(()=>[$e]);gn(p,{name:`bridge log`,get settings(){return e(t)},get active(){return r.active},get saved(){return r.saved},get overrides(){return r.overrides},get settingContext(){return e(l)},onSave:e=>r.save(e)})}N(d),F(t,n)},v=e=>{var t=xn(),n=b(s(t),2);p(n,`indeterminate`,!0),p(n,`aria-label`,`Reading the bridge settings`),m(n,1,`svelte-1i19ct2`),N(t),F(e,t)},S=t=>{var n=Sn(),r=s(n);p(r,`aria-hidden`,`true`),m(r,1,`svelte-1i19ct2`);var i=b(r,4);p(i,`type`,`button`),x(i,e=>D(g,e),()=>e(g)),N(n),a(`click`,i,()=>void _()),F(t,n)};u(o,e=>{r.active!==null&&r.saved!==null?e(d):r.reading||r.reachable?e(v,1):e(S,-1)});var C=b(o,2);yn(b(s(C),2),{get value(){return c.current},onChange:e=>c.set(e)}),N(C),F(t,i)},$$slots:{default:!0}}),j()}_([`click`]);export{wn as component};
@@ -1,6 +1,6 @@
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/hhZsYtkz.js";import{a as F,o as I,r as L,t as R}from"../chunks/Cwz551Q0.js";import{t as z}from"../chunks/CVpgcnu3.js";import"../chunks/DHsTyp2W.js";import"../chunks/Dk73DTz3.js";import"../chunks/DU8ibkb0.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=>{z(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=>{z(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 F=m(A,!0),I=g(A,2),L=m(I,!0);E(()=>{a(F,i.reachable?`Check again`:`Try again`),a(L,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
- 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
- (`)),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
5
- don't reach the screen reader (`)),P(t,n)};o($,e=>{i.phase===`heard`?e(le):i.phase===`silent`&&i.via===`manual`?e(ue,1):i.phase===`silent`&&e(de,2)}),ee(g($,2),{get open(){return e(s)},get onSend(){return i.onSendKeys},onClose:()=>C(s,!1)}),E(()=>{a(I,`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.`),a(G,`Send Insert+T`),u(Z,1,`result ${i.phase??``}`,`svelte-xev9kd`),a(Q,e(T))}),n(`click`,U,()=>{e(f)||i.onListen()}),n(`click`,W,()=>void O()),n(`click`,K,()=>{e(f)&&i.onStop()}),P(t,A),D()}p([`click`]);var ue=f(`<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(n,i){w(i,!0);let{status:a,voiceCheck:o}=z(),c=y(()=>a.status??i.data.status),l=y(()=>e(c)===null?null:I(e(c)));s(()=>(a.retry(),()=>o.stop())),A(()=>{o.phase===`heard`&&T(()=>void a.retry())});async function u(){return await a.retry(),(a.status??i.data.status)?.session.current!=null}var d=ue();t(`g40i6i`,e=>{b(()=>{O.title=`Setup · Speech Capture`})});var f=h(d);Q(g(r(f),2),{get rows(){return e(l)},get reachable(){return a.reachable},onCheck:()=>a.retry()}),N(f);var p=g(f,2),m=g(r(p),2);{let t=y(()=>e(c)?.input.native??null),n=y(()=>e(c)?.tcp.port??null),r=y(()=>e(c)?.bridge.version??null);le(m,{get phase(){return o.phase},get via(){return o.via},get entries(){return o.entries},get reconnecting(){return o.reconnecting},get failure(){return o.failure},get local(){return i.data.local},get input(){return e(t)},get port(){return e(n)},get version(){return e(r)},onListen:()=>void o.start(`manual`),onSendKeys:()=>void o.start(`keys`),onStop:()=>o.stop(),isSessionRunning:u})}N(p),P(n,d),D()}export{de as component};
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 ${L} 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),F=m(j),R=g(j,2),B=e=>{var t=te();P(e,t)};o(R,e=>{i.local&&e(B)});var H=g(R,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(()=>I(i.version,`usage/troubleshooting.md#speech`));z(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(()=>I(i.version,`usage/vm-setup.md#jaws-language-detection`));z(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
+ (`)),P(t,n)},de=t=>{var n=se(),o=r(n),s=g(o);{let t=y(()=>I(i.version,`usage/troubleshooting.md#browser-and-input`));z(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
5
+ don't reach the screen reader (`)),P(t,n)};o($,e=>{i.phase===`heard`?e(le):i.phase===`silent`&&i.via===`manual`?e(ue,1):i.phase===`silent`&&e(de,2)}),ee(g($,2),{get open(){return e(s)},get onSend(){return i.onSendKeys},onClose:()=>C(s,!1)}),E(()=>{a(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.`),a(G,`Send Insert+T`),u(Z,1,`result ${i.phase??``}`,`svelte-xev9kd`),a(Q,e(T))}),n(`click`,U,()=>{e(f)||i.onListen()}),n(`click`,W,()=>void O()),n(`click`,K,()=>{e(f)&&i.onStop()}),P(t,A),D()}p([`click`]);var ue=f(`<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(n,i){w(i,!0);let{status:a,voiceCheck:o}=R(),c=y(()=>a.status??i.data.status),l=y(()=>e(c)===null?null:F(e(c)));s(()=>(a.retry(),()=>o.stop())),A(()=>{o.phase===`heard`&&T(()=>void a.retry())});async function u(){return await a.retry(),(a.status??i.data.status)?.session.current!=null}var d=ue();t(`g40i6i`,e=>{b(()=>{O.title=`Setup · Speech Capture`})});var f=h(d);Q(g(r(f),2),{get rows(){return e(l)},get reachable(){return a.reachable},onCheck:()=>a.retry()}),N(f);var p=g(f,2),m=g(r(p),2);{let t=y(()=>e(c)?.input.native??null),n=y(()=>e(c)?.tcp.port??null),r=y(()=>e(c)?.bridge.version??null);le(m,{get phase(){return o.phase},get via(){return o.via},get entries(){return o.entries},get reconnecting(){return o.reconnecting},get failure(){return o.failure},get local(){return i.data.local},get input(){return e(t)},get port(){return e(n)},get version(){return e(r)},onListen:()=>void o.start(`manual`),onSendKeys:()=>void o.start(`keys`),onStop:()=>o.stop(),isSessionRunning:u})}N(p),P(n,d),D()}export{de as component};
@@ -0,0 +1,6 @@
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/Dk73DTz3.js";import{b as O,i as k,o as A,t as j}from"../chunks/Cwz551Q0.js";import{t as M}from"../chunks/CVpgcnu3.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
+ 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!==`*`&&O.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=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> <!> <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=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">In the test project, with 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=>A(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`));M(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}})}m(2),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),O=e=>{var t=X(),n=p(r(t));E(t),x(e=>h(n,`href`,e),[()=>w(`/settings`)]),D(e,t)},k=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(O):n.playwright!==null&&e(k,1)});var j=p(T,2),N=r(j);{let t=g(()=>i(`usage/client.md`));M(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(j);var P=p(j,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`));M(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
5
+ same prompt:</p> <!>`,1),re=l(`<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){y(n,!0);let o=g(()=>R(n.tcp??{host:`127.0.0.1`,port:4449})),s=e=>A(n.version,e);var l=re(),u=f(l),_=p(r(u),4);F(_,{label:`the install commands`,get text(){return L},get onCopy(){return n.onCopy}});var v=p(_,2),b=t=>{var r=ne();F(p(f(r),2),{label:`the add-voice command`,get text(){return e(o).addVoice},get onCopy(){return n.onCopy}}),D(t,r)};a(v,t=>{e(o).addVoice!==null&&t(b)});var C=p(v,2),w=r(C),T=r(w);{let t=g(()=>s(`usage/troubleshooting.md#speech`));M(T,{get href(){return e(t)},children:(e,t)=>{m();var n=c(`The voice is not listed`);D(e,n)},$$slots:{default:!0}})}E(w);var O=p(w,2),j=r(O);{let t=g(()=>s(`usage/vm-setup.md#more-voices--other-ports`));M(j,{get href(){return e(t)},children:(e,t)=>{m();var n=c(`More voices, and removing them`);D(e,n)},$$slots:{default:!0}})}E(O),E(C),E(u);var N=p(u,2),P=r(N),I=p(P,2),z=p(r(I)),B=d(z,!0);m(),E(I);var V=p(I,4),H=p(r(V),4),U=d(H);E(V);var W=p(V,4),G=p(r(W),4),K=d(G);m(2),E(W);var q=p(W,2),J=r(q),Y=r(J);{let t=g(()=>s(`usage/vm-setup.md#a-german-voice`));M(Y,{get href(){return e(t)},children:(e,t)=>{m();var n=c(`JAWS in German or another language doesn't list the voice`);D(e,n)},$$slots:{default:!0}})}E(J);var X=p(J,2),Z=r(X);{let t=g(()=>s(`usage/vm-setup.md#prepare-the-vm`));M(Z,{get href(){return e(t)},children:(e,t)=>{m();var n=c(`Prepare the VM for CI`);D(e,n)},$$slots:{default:!0}})}E(X);var Q=p(X,2),$=r(Q);{let t=g(()=>s(`usage/vm-setup.md#screen-reader-licensing`));M($,{get href(){return e(t)},children:(e,t)=>{m();var n=c(`Screen reader licensing`);D(e,n)},$$slots:{default:!0}})}E(Q),E(q),E(N),x(()=>{h(N,`aria-labelledby`,k),h(P,`id`,k),i(B,e(o).name),i(U,`Under Voice, select ${e(o).name??``}.`),i(K,`Select ${e(o).name??``} as the Voice, apply it to all contexts and save the profile.`)}),D(t,l),S()}var ae=l(`<!> <!>`,1);function oe(n,r){y(r,!0);let{status:i,clipboard:a}=j(),s=g(()=>i.status??r.data.status),c=g(()=>r.data.http?.port??5151),l=e=>a.copy(e);o(()=>void i.retry());var u=ae();t(`149ah0g`,e=>{_(()=>{C.title=`Setup instructions · Speech Capture`})});var d=f(u);{let t=g(()=>e(s)?.tcp??null),n=g(()=>e(s)?.bridge.version??null);ie(d,{get tcp(){return e(t)},get version(){return e(n)},onCopy:l})}var m=p(d,2);{let t=g(()=>B(b.url,e(c))),n=g(()=>r.data.http!==null&&V(r.data.http.host)),i=g(()=>e(s)?.playwright??null),a=g(()=>e(s)?.mcp??null),o=g(()=>e(s)?.bridge.version??null);te(m,{get address(){return e(t)},get local(){return r.data.local},get loopbackOnly(){return e(n)},get httpPort(){return e(c)},get playwright(){return e(i)},get mcp(){return e(a)},get version(){return e(o)},onCopy:l})}D(n,u),S()}export{oe as component};
@@ -1 +1 @@
1
- {"version":"1795962020982"}
1
+ {"version":"1796326031249"}