@screenreader-speech-capture/bridge 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +70 -26
- package/dist/ui/adapter-node.js +1 -1
- package/dist/ui/client/ui/_app/immutable/chunks/{CTnnxqUD.js → C75l7c5l.js} +1 -1
- package/dist/ui/client/ui/_app/immutable/chunks/C75l7c5l.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/C75l7c5l.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Cb63XE4v.js +33 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Cb63XE4v.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Cb63XE4v.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{BLbj0ykL.js → DWjfB3ah.js} +1 -1
- package/dist/ui/client/ui/_app/immutable/chunks/DWjfB3ah.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DWjfB3ah.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/{app.CHExvln1.js → app.B2MXuPeH.js} +2 -2
- package/dist/ui/client/ui/_app/immutable/entry/app.B2MXuPeH.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.B2MXuPeH.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.CEfoZ0Mb.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.CEfoZ0Mb.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.CEfoZ0Mb.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/{3.D9AmPYb5.js → 3.BzIz3rja.js} +2 -2
- package/dist/ui/client/ui/_app/immutable/nodes/3.BzIz3rja.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.BzIz3rja.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/{4.DxNIrNp_.js → 4.B9Ke6ZBV.js} +1 -1
- package/dist/ui/client/ui/_app/immutable/nodes/4.B9Ke6ZBV.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.B9Ke6ZBV.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/{6.D9jpgBJB.js → 6.B_1Pts2e.js} +1 -1
- package/dist/ui/client/ui/_app/immutable/nodes/6.B_1Pts2e.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.B_1Pts2e.js.gz +0 -0
- package/dist/ui/client/ui/_app/version.json +1 -1
- package/dist/ui/client/ui/_app/version.json.br +0 -0
- package/dist/ui/client/ui/_app/version.json.gz +0 -0
- package/dist/ui/server/.vite/manifest.json +17 -4
- package/dist/ui/server/chunks/instance.js +3 -3
- package/dist/ui/server/chunks/internal.js +1 -1
- package/dist/ui/server/chunks/rules.js +1 -6
- package/dist/ui/server/chunks/rules.js.map +1 -1
- package/dist/ui/server/chunks/src.js +20 -31
- package/dist/ui/server/chunks/src.js.map +1 -1
- package/dist/ui/server/chunks/validate.js +23 -0
- package/dist/ui/server/chunks/validate.js.map +1 -0
- package/dist/ui/server/entries/endpoints/api/config/_server.ts.js +2 -1
- package/dist/ui/server/entries/endpoints/api/config/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/input/keys/_server.ts.js +2 -1
- package/dist/ui/server/entries/endpoints/api/input/keys/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js +2 -1
- package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js +2 -1
- package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/hooks.server.js +2 -1
- package/dist/ui/server/entries/hooks.server.js.map +1 -1
- package/dist/ui/server/entries/pages/_layout.svelte.js +2 -1
- package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
- package/dist/ui/server/manifest-full.js +1 -1
- package/dist/ui/server/manifest.js +1 -1
- package/dist/ui/server/nodes/0.js +1 -1
- package/dist/ui/server/nodes/3.js +1 -1
- package/dist/ui/server/nodes/4.js +1 -1
- package/dist/ui/server/nodes/6.js +1 -1
- package/dist/ui/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/ui/client/ui/_app/immutable/chunks/BLbj0ykL.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BLbj0ykL.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CTnnxqUD.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CTnnxqUD.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/R_4U_-zb.js +0 -33
- package/dist/ui/client/ui/_app/immutable/chunks/R_4U_-zb.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/R_4U_-zb.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.CHExvln1.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.CHExvln1.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.DENUQERM.js +0 -1
- package/dist/ui/client/ui/_app/immutable/nodes/0.DENUQERM.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.DENUQERM.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.D9AmPYb5.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.D9AmPYb5.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.DxNIrNp_.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.DxNIrNp_.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.D9jpgBJB.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.D9jpgBJB.js.gz +0 -0
|
@@ -9,7 +9,7 @@ return {
|
|
|
9
9
|
app_path: "ui/_app",
|
|
10
10
|
assets: new Set(["robots.txt"]),
|
|
11
11
|
mime_types: {".txt":"text/plain"},
|
|
12
|
-
client: {start:"_app/immutable/entry/start.4hiWLKwq.js",app:"_app/immutable/entry/app.
|
|
12
|
+
client: {start:"_app/immutable/entry/start.4hiWLKwq.js",app:"_app/immutable/entry/app.B2MXuPeH.js",imports:["_app/immutable/entry/start.4hiWLKwq.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/DUTjbZNf.js","_app/immutable/chunks/BtnuBvK5.js","_app/immutable/chunks/JsC3ASJq.js","_app/immutable/chunks/D0famktY.js","_app/immutable/chunks/B__KpOuX.js","_app/immutable/chunks/BkoDSEOx.js","_app/immutable/chunks/BEImj5AP.js","_app/immutable/entry/app.B2MXuPeH.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
|
13
13
|
|
|
14
14
|
nodes: [
|
|
15
15
|
__memo(() => import('./nodes/0.js')),
|
|
@@ -9,7 +9,7 @@ return {
|
|
|
9
9
|
app_path: "ui/_app",
|
|
10
10
|
assets: new Set(["robots.txt"]),
|
|
11
11
|
mime_types: {".txt":"text/plain"},
|
|
12
|
-
client: {start:"_app/immutable/entry/start.4hiWLKwq.js",app:"_app/immutable/entry/app.
|
|
12
|
+
client: {start:"_app/immutable/entry/start.4hiWLKwq.js",app:"_app/immutable/entry/app.B2MXuPeH.js",imports:["_app/immutable/entry/start.4hiWLKwq.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/DUTjbZNf.js","_app/immutable/chunks/BtnuBvK5.js","_app/immutable/chunks/JsC3ASJq.js","_app/immutable/chunks/D0famktY.js","_app/immutable/chunks/B__KpOuX.js","_app/immutable/chunks/BkoDSEOx.js","_app/immutable/chunks/BEImj5AP.js","_app/immutable/entry/app.B2MXuPeH.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
|
13
13
|
|
|
14
14
|
nodes: [
|
|
15
15
|
__memo(() => import('./nodes/0.js')),
|
|
@@ -5,6 +5,6 @@ let component_cache;
|
|
|
5
5
|
export const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;
|
|
6
6
|
export { server };
|
|
7
7
|
export const server_id = "src/routes/+layout.server.ts";
|
|
8
|
-
export const imports = ["_app/immutable/nodes/0.
|
|
8
|
+
export const imports = ["_app/immutable/nodes/0.CEfoZ0Mb.js","_app/immutable/chunks/B__KpOuX.js","_app/immutable/chunks/UKukklIc.js","_app/immutable/chunks/BkoDSEOx.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/D0famktY.js","_app/immutable/chunks/C06IiL6m.js","_app/immutable/chunks/BEImj5AP.js","_app/immutable/chunks/DRNNJMYk.js","_app/immutable/chunks/Cb63XE4v.js","_app/immutable/chunks/VxDST09k.js","_app/immutable/chunks/DWjfB3ah.js","_app/immutable/chunks/Bvlvl8SZ.js","_app/immutable/chunks/C75l7c5l.js","_app/immutable/chunks/JsC3ASJq.js","_app/immutable/chunks/Bxh3K0TK.js"];
|
|
9
9
|
export const stylesheets = ["_app/immutable/assets/0.ONZWQgDA.css"];
|
|
10
10
|
export const fonts = [{"file":"_app/immutable/assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2","filename":"node_modules/@fontsource/material-symbols-outlined/files/material-symbols-outlined-latin-400-normal.woff2"},{"file":"_app/immutable/assets/roboto-flex-cyrillic-ext-opsz-normal.nDQikIyu.woff2","filename":"node_modules/@fontsource-variable/roboto-flex/files/roboto-flex-cyrillic-ext-opsz-normal.woff2"},{"file":"_app/immutable/assets/roboto-flex-cyrillic-opsz-normal.SjuC5rw5.woff2","filename":"node_modules/@fontsource-variable/roboto-flex/files/roboto-flex-cyrillic-opsz-normal.woff2"},{"file":"_app/immutable/assets/roboto-flex-greek-opsz-normal.C14fFRny.woff2","filename":"node_modules/@fontsource-variable/roboto-flex/files/roboto-flex-greek-opsz-normal.woff2"},{"file":"_app/immutable/assets/roboto-flex-vietnamese-opsz-normal.C-H_yGOU.woff2","filename":"node_modules/@fontsource-variable/roboto-flex/files/roboto-flex-vietnamese-opsz-normal.woff2"},{"file":"_app/immutable/assets/roboto-flex-latin-ext-opsz-normal.xNclTVCo.woff2","filename":"node_modules/@fontsource-variable/roboto-flex/files/roboto-flex-latin-ext-opsz-normal.woff2"},{"file":"_app/immutable/assets/roboto-flex-latin-opsz-normal.hy8fyBBC.woff2","filename":"node_modules/@fontsource-variable/roboto-flex/files/roboto-flex-latin-opsz-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.BHxv52bw.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-cyrillic-ext-400-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.W26xs1TL.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-cyrillic-ext-400-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-cyrillic-400-normal.C-_K-ZCn.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-cyrillic-400-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-cyrillic-400-normal.B3hIXASd.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-cyrillic-400-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-greek-400-normal.CH_u3Aru.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-greek-400-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-greek-400-normal.P8xe1gs1.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-greek-400-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-vietnamese-400-normal.yYTFiTTs.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-vietnamese-400-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-vietnamese-400-normal.CzWHQABp.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-vietnamese-400-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-latin-ext-400-normal.DLAV9S_w.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-latin-ext-400-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-latin-ext-400-normal.BwLXVYNz.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-latin-ext-400-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-latin-400-normal.GekRknry.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-latin-400-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-latin-400-normal.DBZPkcnn.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-latin-400-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.DC57U9n8.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-cyrillic-ext-500-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.6xdwlG7p.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-cyrillic-ext-500-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-cyrillic-500-normal.DGZ7-lUP.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-cyrillic-500-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-cyrillic-500-normal.NpUJFYX7.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-cyrillic-500-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-greek-500-normal.DpRFkptA.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-greek-500-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-greek-500-normal.C2M8jX6G.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-greek-500-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-vietnamese-500-normal.Cq-quQMu.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-vietnamese-500-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-vietnamese-500-normal.IxzxMIj7.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-vietnamese-500-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-latin-ext-500-normal.Db3ge6Oe.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-latin-ext-500-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-latin-ext-500-normal.B1IjfbhL.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-latin-ext-500-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-latin-500-normal.pxIOXZmA.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-latin-500-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-latin-500-normal.D6j6AMzd.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-latin-500-normal.woff"}];
|
|
@@ -5,6 +5,6 @@ let component_cache;
|
|
|
5
5
|
export const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;
|
|
6
6
|
export { server };
|
|
7
7
|
export const server_id = "src/routes/+page.server.ts";
|
|
8
|
-
export const imports = ["_app/immutable/nodes/3.
|
|
8
|
+
export const imports = ["_app/immutable/nodes/3.BzIz3rja.js","_app/immutable/chunks/B__KpOuX.js","_app/immutable/chunks/JsC3ASJq.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/D0famktY.js","_app/immutable/chunks/BkoDSEOx.js","_app/immutable/chunks/BEImj5AP.js","_app/immutable/chunks/UKukklIc.js","_app/immutable/chunks/C06IiL6m.js","_app/immutable/chunks/DRNNJMYk.js","_app/immutable/chunks/w5i9ZoX_.js","_app/immutable/chunks/BuwZGWCm.js","_app/immutable/chunks/DWjfB3ah.js","_app/immutable/chunks/Cb63XE4v.js","_app/immutable/chunks/VxDST09k.js","_app/immutable/chunks/OAsMjdHF.js","_app/immutable/chunks/vPs9G1oN.js"];
|
|
9
9
|
export const stylesheets = ["_app/immutable/assets/3.WduKm4aT.css"];
|
|
10
10
|
export const fonts = [];
|
|
@@ -5,6 +5,6 @@ let component_cache;
|
|
|
5
5
|
export const component = async () => component_cache ??= (await import('../entries/pages/settings/_page.svelte.js')).default;
|
|
6
6
|
export { server };
|
|
7
7
|
export const server_id = "src/routes/settings/+page.server.ts";
|
|
8
|
-
export const imports = ["_app/immutable/nodes/4.
|
|
8
|
+
export const imports = ["_app/immutable/nodes/4.B9Ke6ZBV.js","_app/immutable/chunks/B__KpOuX.js","_app/immutable/chunks/CAZ56n62.js","_app/immutable/chunks/DRNNJMYk.js","_app/immutable/chunks/BuwZGWCm.js","_app/immutable/chunks/w5i9ZoX_.js","_app/immutable/chunks/vPs9G1oN.js","_app/immutable/chunks/VxDST09k.js","_app/immutable/chunks/DWjfB3ah.js","_app/immutable/chunks/C75l7c5l.js","_app/immutable/chunks/BlC5mir6.js"];
|
|
9
9
|
export const stylesheets = ["_app/immutable/assets/Pane.Dgdg5KMw.css","_app/immutable/assets/4.DEk4yqpA.css"];
|
|
10
10
|
export const fonts = [];
|
|
@@ -5,6 +5,6 @@ let component_cache;
|
|
|
5
5
|
export const component = async () => component_cache ??= (await import('../entries/pages/setup/instructions/_page.svelte.js')).default;
|
|
6
6
|
export { server };
|
|
7
7
|
export const server_id = "src/routes/setup/instructions/+page.server.ts";
|
|
8
|
-
export const imports = ["_app/immutable/nodes/6.
|
|
8
|
+
export const imports = ["_app/immutable/nodes/6.B_1Pts2e.js","_app/immutable/chunks/B__KpOuX.js","_app/immutable/chunks/BkoDSEOx.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/D0famktY.js","_app/immutable/chunks/C06IiL6m.js","_app/immutable/chunks/BEImj5AP.js","_app/immutable/chunks/UKukklIc.js","_app/immutable/chunks/BuwZGWCm.js","_app/immutable/chunks/DRNNJMYk.js","_app/immutable/chunks/BquQTeuV.js","_app/immutable/chunks/DWjfB3ah.js","_app/immutable/chunks/Bxh3K0TK.js"];
|
|
9
9
|
export const stylesheets = ["_app/immutable/assets/ExternalLink.CYXazpKA.css","_app/immutable/assets/6.C0Nhvs_m.css"];
|
|
10
10
|
export const fonts = [];
|
package/dist/ui/server/server.js
CHANGED
|
@@ -10,7 +10,7 @@ return {
|
|
|
10
10
|
app_path: "ui/_app",
|
|
11
11
|
assets: new Set(["robots.txt"]),
|
|
12
12
|
mime_types: {".txt":"text/plain"},
|
|
13
|
-
client: {start:"_app/immutable/entry/start.4hiWLKwq.js",app:"_app/immutable/entry/app.
|
|
13
|
+
client: {start:"_app/immutable/entry/start.4hiWLKwq.js",app:"_app/immutable/entry/app.B2MXuPeH.js",imports:["_app/immutable/entry/start.4hiWLKwq.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/DUTjbZNf.js","_app/immutable/chunks/BtnuBvK5.js","_app/immutable/chunks/JsC3ASJq.js","_app/immutable/chunks/D0famktY.js","_app/immutable/chunks/B__KpOuX.js","_app/immutable/chunks/BkoDSEOx.js","_app/immutable/chunks/BEImj5AP.js","_app/immutable/entry/app.B2MXuPeH.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
|
14
14
|
|
|
15
15
|
nodes: [
|
|
16
16
|
__memo(() => import('./nodes/0.js')),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@screenreader-speech-capture/bridge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Capture what a screen reader says (JAWS / NVDA via a SAPI 5 socket voice) and expose it over HTTP for automated tests.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import{A as e,D as t,O as n,S as r,_ as i,a,c as o,j as s,k as c,l,p as u,r as ee,s as te,u as ne,v as d}from"./DRNNJMYk.js";import{a as re,i as f,n as ie}from"./VxDST09k.js";import{a as ae,i as oe,n as p,r as se,t as m}from"./BLbj0ykL.js";function h(e,t=!0){return t&&getComputedStyle(e).getPropertyValue(`direction`).trim()===`rtl`}var ce=ne(ee(a(te(i)))),g=class extends ce{constructor(){super(),this.softDisabled=!1,this.flipIconInRtl=!1,this.href=``,this.download=``,this.target=``,this.ariaLabelSelected=``,this.toggle=!1,this.selected=!1,this.flipIcon=h(this,this.flipIconInRtl),l(this,`click`),this.addEventListener(`click`,e=>{if(this.softDisabled||this.disabled&&this.href){e.stopImmediatePropagation(),e.preventDefault();return}let t=this.selected;o(e,()=>{!this.toggle||this.disabled||e.defaultPrevented||(this.selected=!t,this.dispatchEvent(new InputEvent(`input`,{bubbles:!0,composed:!0})),this.dispatchEvent(new Event(`change`,{bubbles:!0})))})})}willUpdate(){this.href&&(this.disabled=!1,this.softDisabled=!1)}render(){let e=this.href?f`div`:f`button`,{ariaLabel:t,ariaHasPopup:n,ariaExpanded:r}=this,i=t&&this.ariaLabelSelected,a=this.toggle?this.selected:d,o=d;return this.href||(o=i&&this.selected?this.ariaLabelSelected:t),re`<${e}
|
|
2
|
-
class="icon-button ${u(this.getRenderClasses())}"
|
|
3
|
-
id="button"
|
|
4
|
-
aria-label="${o||d}"
|
|
5
|
-
aria-haspopup="${!this.href&&n||d}"
|
|
6
|
-
aria-expanded="${!this.href&&r||d}"
|
|
7
|
-
aria-pressed="${a}"
|
|
8
|
-
aria-disabled=${!this.href&&this.softDisabled||d}
|
|
9
|
-
?disabled="${!this.href&&this.disabled}">
|
|
10
|
-
${this.renderFocusRing()}
|
|
11
|
-
${this.renderRipple()}
|
|
12
|
-
${this.selected?d:this.renderIcon()}
|
|
13
|
-
${this.selected?this.renderSelectedIcon():d}
|
|
14
|
-
${this.href?this.renderLink():this.renderTouchTarget()}
|
|
15
|
-
</${e}>`}renderLink(){let{ariaLabel:e}=this;return r`
|
|
16
|
-
<a
|
|
17
|
-
class="link"
|
|
18
|
-
id="link"
|
|
19
|
-
href="${this.href}"
|
|
20
|
-
download="${this.download||d}"
|
|
21
|
-
target="${this.target||d}"
|
|
22
|
-
aria-label="${e||d}">
|
|
23
|
-
${this.renderTouchTarget()}
|
|
24
|
-
</a>
|
|
25
|
-
`}getRenderClasses(){return{"flip-icon":this.flipIcon,selected:this.toggle&&this.selected}}renderIcon(){return r`<span class="icon"><slot></slot></span>`}renderSelectedIcon(){return r`<span class="icon icon--selected"
|
|
26
|
-
><slot name="selected"><slot></slot></slot
|
|
27
|
-
></span>`}renderTouchTarget(){return r`<span class="touch"></span>`}renderFocusRing(){return r`<md-focus-ring
|
|
28
|
-
part="focus-ring"
|
|
29
|
-
for=${this.href?`link`:`button`}></md-focus-ring>`}renderRipple(){let e=!this.href&&(this.disabled||this.softDisabled);return r`<md-ripple
|
|
30
|
-
for=${this.href?`link`:d}
|
|
31
|
-
?disabled="${e}"></md-ripple>`}connectedCallback(){this.flipIcon=h(this,this.flipIconInRtl),super.connectedCallback()}};g.shadowRootOptions={mode:`open`,delegatesFocus:!0},s([n({type:Boolean,attribute:`soft-disabled`,reflect:!0})],g.prototype,`softDisabled`,void 0),s([n({type:Boolean,attribute:`flip-icon-in-rtl`})],g.prototype,`flipIconInRtl`,void 0),s([n()],g.prototype,`href`,void 0),s([n()],g.prototype,`download`,void 0),s([n()],g.prototype,`target`,void 0),s([n({attribute:`aria-label-selected`})],g.prototype,`ariaLabelSelected`,void 0),s([n({type:Boolean})],g.prototype,`toggle`,void 0),s([n({type:Boolean,reflect:!0})],g.prototype,`selected`,void 0),s([t()],g.prototype,`flipIcon`,void 0);var _=c`:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);height:var(--_container-height);width:var(--_container-width);justify-content:center}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) max(0px,(48px - var(--_container-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host(:is([disabled],[soft-disabled])){pointer-events:none}.icon-button{place-items:center;background:none;border:none;box-sizing:border-box;cursor:pointer;display:flex;place-content:center;outline:none;padding:0;position:relative;text-decoration:none;user-select:none;z-index:0;flex:1;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)}.icon ::slotted(*){font-size:var(--_icon-size);height:var(--_icon-size);width:var(--_icon-size);font-weight:inherit}md-ripple{z-index:-1;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)}.flip-icon .icon{transform:scaleX(-1)}.icon{display:inline-flex}.link{display:grid;height:100%;outline:none;place-items:center;position:absolute;width:100%}.touch{position:absolute;height:max(48px,100%);width:max(48px,100%)}:host([touch-target=none]) .touch{display:none}@media(forced-colors: active){:host(:is([disabled],[soft-disabled])){--_disabled-icon-color: GrayText;--_disabled-icon-opacity: 1}}
|
|
32
|
-
`;_.styleSheet;var v=c`:host{--_disabled-icon-color: var(--md-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-icon-button-disabled-icon-opacity, 0.38);--_icon-size: var(--md-icon-button-icon-size, 24px);--_selected-focus-icon-color: var(--md-icon-button-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-icon-color: var(--md-icon-button-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-color: var(--md-icon-button-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-opacity: var(--md-icon-button-selected-hover-state-layer-opacity, 0.08);--_selected-icon-color: var(--md-icon-button-selected-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-icon-color: var(--md-icon-button-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-color: var(--md-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-opacity: var(--md-icon-button-selected-pressed-state-layer-opacity, 0.12);--_state-layer-height: var(--md-icon-button-state-layer-height, 40px);--_state-layer-shape: var(--md-icon-button-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));--_state-layer-width: var(--md-icon-button-state-layer-width, 40px);--_focus-icon-color: var(--md-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--md-icon-button-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-icon-button-pressed-state-layer-opacity, 0.12);--_container-shape-start-start: 0;--_container-shape-start-end: 0;--_container-shape-end-end: 0;--_container-shape-end-start: 0;--_container-height: 0;--_container-width: 0;height:var(--_state-layer-height);width:var(--_state-layer-width)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_state-layer-height))/2) max(0px,(48px - var(--_state-layer-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_state-layer-shape);--md-focus-ring-shape-start-end: var(--_state-layer-shape);--md-focus-ring-shape-end-end: var(--_state-layer-shape);--md-focus-ring-shape-end-start: var(--_state-layer-shape)}.standard{background-color:rgba(0,0,0,0);color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.standard:hover{color:var(--_hover-icon-color)}.standard:focus{color:var(--_focus-icon-color)}.standard:active{color:var(--_pressed-icon-color)}.standard:is(:disabled,[aria-disabled=true]){color:var(--_disabled-icon-color)}md-ripple{border-radius:var(--_state-layer-shape)}.standard:is(:disabled,[aria-disabled=true]){opacity:var(--_disabled-icon-opacity)}.selected:not(:disabled,[aria-disabled=true]){color:var(--_selected-icon-color)}.selected:not(:disabled,[aria-disabled=true]):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled,[aria-disabled=true]):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled,[aria-disabled=true]):active{color:var(--_selected-pressed-icon-color)}.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_selected-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_selected-pressed-state-layer-opacity)}
|
|
33
|
-
`;v.styleSheet;var y=class extends g{getRenderClasses(){return{...super.getRenderClasses(),standard:!0}}};y.styles=[_,v],y=s([e(`md-icon-button`)],y);function le(e,{singleTabStop:t=!1,wrap:n=!1,leftRight:r=!1}={}){let i=new Map([[`ArrowDown`,1],[`ArrowUp`,-1]]);return r&&i.set(`ArrowRight`,1).set(`ArrowLeft`,-1),r=>{let a=()=>[...r.querySelectorAll(e)],o=()=>{let e=a(),t=e.find(e=>e===document.activeElement)??e.find(e=>e.getAttribute(`aria-selected`)===`true`)??e[0];for(let n of e)n.tabIndex=n===t?0:-1},s=e=>{a().includes(e.relatedTarget)||o()},c=e=>{if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;let t=i.get(e.key);if(t===void 0)return;let r=a(),o=r.indexOf(e.target);o!==-1&&(e.preventDefault(),r[n?(o+t+r.length)%r.length:o+t]?.focus())},l;return t&&(o(),l=new MutationObserver(o),l.observe(r,{childList:!0,subtree:!0,attributeFilter:[`aria-selected`]}),r.addEventListener(`focusin`,o),r.addEventListener(`focusout`,s)),r.addEventListener(`keydown`,c),()=>{l?.disconnect(),r.removeEventListener(`focusin`,o),r.removeEventListener(`focusout`,s),r.removeEventListener(`keydown`,c)}}}var ue={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function b(e){return e?{lang:e?.lang??void 0,message:e?.message,abortEarly:e?.abortEarly??void 0,abortPipeEarly:e?.abortPipeEarly??void 0}:ue}function x(e){let t=typeof e;return t===`string`?`"${e}"`:t===`number`||t===`bigint`||t===`boolean`?`${e}`:t===`object`||t===`function`?(e&&Object.getPrototypeOf(e)?.constructor?.name)??`null`:t}function S(e,t,n,r,i){let a=i&&`input`in i?i.input:n.value,o=i?.expected??e.expects??null,s=i?.received??x(a),c={kind:e.kind,type:e.type,input:a,expected:o,received:s,message:`Invalid ${t}: ${o?`Expected ${o} but r`:`R`}eceived ${s}`,requirement:e.requirement,path:i?.path,issues:i?.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},l=e.kind===`schema`,u=i?.message??e.message??(e.reference,c.lang,void 0)??(l?(c.lang,void 0):null)??r.message??(c.lang,void 0);u!==void 0&&(c.message=typeof u==`function`?u(c):u),l&&(n.typed=!1),n.issues?n.issues.push(c):n.issues=[c]}function de(e,t){let n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??`never`}function C(e){return e[`~standard`]={version:1,vendor:`valibot`,validate:t=>e[`~run`]({value:t},b())},e}function fe(e){if(e.path){let t=``;for(let n of e.path)if(typeof n.key==`string`||typeof n.key==`number`)t+=t?`.${n.key}`:n.key;else return null;return t}return null}var pe=/^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])[T ](?:0\d|1\d|2[0-3])(?::[0-5]\d){2}(?:\.\d{1,9})?(?:Z| ?[+-](?:0\d|1\d|2[0-3])(?::?[0-5]\d)?)$/u;function w(e,t){return{kind:`validation`,type:`check`,reference:w,async:!1,expects:null,requirement:e,message:t,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&S(this,`input`,e,t),e}}}function T(e){return{kind:`metadata`,type:`description`,reference:T,description:e}}function E(e){return{kind:`metadata`,type:`examples`,reference:E,examples:e}}function D(e){return{kind:`validation`,type:`integer`,reference:D,async:!1,expects:null,requirement:Number.isInteger,message:e,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&S(this,`integer`,e,t),e}}}function O(e){return{kind:`validation`,type:`iso_timestamp`,reference:O,async:!1,expects:null,requirement:pe,message:e,"~run"(e,t){return e.typed&&!this.requirement.test(e.value)&&S(this,`timestamp`,e,t),e}}}function k(e,t){return{kind:`validation`,type:`max_value`,reference:k,async:!1,expects:`<=${e instanceof Date?e.toJSON():x(e)}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!(e.value<=this.requirement)&&S(this,`value`,e,t,{received:e.value instanceof Date?e.value.toJSON():x(e.value)}),e}}}function A(e,t){return{kind:`validation`,type:`min_value`,reference:A,async:!1,expects:`>=${e instanceof Date?e.toJSON():x(e)}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!(e.value>=this.requirement)&&S(this,`value`,e,t,{received:e.value instanceof Date?e.value.toJSON():x(e.value)}),e}}}function j(e,t){return{kind:`validation`,type:`regex`,reference:j,async:!1,expects:`${e}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!this.requirement.test(e.value)&&S(this,`format`,e,t),e}}}function M(e,t,n){return typeof e.fallback==`function`?e.fallback(t,n):e.fallback}function N(e,t,n){return typeof e.default==`function`?e.default(t,n):e.default}function P(e,t){return C({kind:`schema`,type:`array`,reference:P,expects:`Array`,async:!1,item:e,message:t,"~run"(e,t){let n=e.value;if(Array.isArray(n)){e.typed=!0,e.value=[];for(let r=0;r<n.length;r++){let i=n[r],a=this.item[`~run`]({value:i},t);if(a.issues){let o={type:`array`,origin:`value`,input:n,key:r,value:i};for(let t of a.issues)t.path?t.path.unshift(o):t.path=[o],e.issues?.push(t);if(e.issues||=a.issues,t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),e.value.push(a.value)}}else S(this,`type`,e,t);return e}})}function F(e){return C({kind:`schema`,type:`boolean`,reference:F,expects:`boolean`,async:!1,message:e,"~run"(e,t){return typeof e.value==`boolean`?e.typed=!0:S(this,`type`,e,t),e}})}function I(e,t){return C({kind:`schema`,type:`nullable`,reference:I,expects:`(${e.expects} | null)`,async:!1,wrapped:e,default:t,"~run"(e,t){return e.value===null&&(this.default!==void 0&&(e.value=N(this,e,t)),e.value===null)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}})}function L(e){return C({kind:`schema`,type:`number`,reference:L,expects:`number`,async:!1,message:e,"~run"(e,t){return typeof e.value==`number`&&!isNaN(e.value)?e.typed=!0:S(this,`type`,e,t),e}})}function R(e,t){return C({kind:`schema`,type:`object`,reference:R,expects:`Object`,async:!1,entries:e,message:t,"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){e.typed=!0,e.value={};for(let r in this.entries){let i=this.entries[r];if(r in n||(i.type===`exact_optional`||i.type===`optional`||i.type===`nullish`)&&i.default!==void 0){let a=r in n?n[r]:N(i),o=i[`~run`]({value:a},t);if(o.issues){let i={type:`object`,origin:`value`,input:n,key:r,value:a};for(let t of o.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),e.value[r]=o.value}else if(i.fallback!==void 0)e.value[r]=M(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(S(this,`key`,e,t,{input:void 0,expected:`"${r}"`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]}),t.abortEarly))break}}else S(this,`type`,e,t);return e}})}function z(e,t){return C({kind:`schema`,type:`optional`,reference:z,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,"~run"(e,t){return e.value===void 0&&(this.default!==void 0&&(e.value=N(this,e,t)),e.value===void 0)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}})}function B(e,t){return C({kind:`schema`,type:`picklist`,reference:B,expects:de(e.map(x),`|`),async:!1,options:e,message:t,"~run"(e,t){return this.options.includes(e.value)?e.typed=!0:S(this,`type`,e,t),e}})}function V(e,t){return C({kind:`schema`,type:`strict_object`,reference:V,expects:`Object`,async:!1,entries:e,message:t,"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){e.typed=!0,e.value={};for(let r in this.entries){let i=this.entries[r];if(r in n||(i.type===`exact_optional`||i.type===`optional`||i.type===`nullish`)&&i.default!==void 0){let a=r in n?n[r]:N(i),o=i[`~run`]({value:a},t);if(o.issues){let i={type:`object`,origin:`value`,input:n,key:r,value:a};for(let t of o.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),e.value[r]=o.value}else if(i.fallback!==void 0)e.value[r]=M(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(S(this,`key`,e,t,{input:void 0,expected:`"${r}"`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]}),t.abortEarly))break}if(!e.issues||!t.abortEarly){for(let r in n)if(!Object.prototype.hasOwnProperty.call(this.entries,r)){S(this,`key`,e,t,{input:r,expected:`never`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]});break}}}else S(this,`type`,e,t);return e}})}function H(e){return C({kind:`schema`,type:`string`,reference:H,expects:`string`,async:!1,message:e,"~run"(e,t){return typeof e.value==`string`?e.typed=!0:S(this,`type`,e,t),e}})}function U(...e){return C({...e[0],pipe:e,"~run"(t,n){for(let r of e)if(r.kind!==`metadata`){if(t.issues&&(r.kind===`schema`||r.kind===`transformation`)){t.typed=!1;break}t.issues&&(n.abortEarly||n.abortPipeEarly)||(t=r[`~run`](t,n))}return t}})}function me(e,t,n){let r=e[`~run`]({value:t},b(n));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}function he(e){try{return!new TextDecoder(e).encoding.startsWith(`utf-16`)}catch{return!1}}var W=({min:e,max:t})=>U(L(),D(),A(e),k(t)),G=W(p.port),ge=W({min:1,max:p.port.max}),K=U(H(),j(/\S/),T(`Not empty or blank.`)),_e=U(P(U(H(),j(oe))),T('Host names the API answers to besides IP addresses, `localhost` and the machine\'s name. Without port or scheme. `["*"]` accepts any name. Added in API 1.5.')),ve=R({enabled:F(),port:ge,version:U(I(U(H(),j(se))),T("`null` = bundled version. Otherwise an exact version like `1.65.1`."))}),q={tcp:{host:K,port:G,encoding:U(H(),w(he),T("TextDecoder label of the socket voice's code page. Not `utf-16*`: lines are split on bytes.")),maxLineBytes:W(p.maxLineBytes)},http:{host:K,port:G,allowedHosts:_e},buffer:{maxEntries:W(p.maxEntries)},log:{level:B(ie),file:U(I(K),T("Bridge log file, `null` = default path.")),consoleSpeech:U(F(),T(`Also write the speech text to the console.`))}};q.tcp,q.http,q.buffer,q.log;var J=e=>V(Object.fromEntries(Object.entries(e).map(([e,t])=>[e,z(t)])));J(ve.entries),J({enabled:F(),port:ge}),J(q.tcp),J(q.http),J(q.buffer),J(q.log);var Y=e=>U(L(),D(),A(e)),ye=U(H(),O()),be=U(R({seq:U(Y(1),T(`Increasing sequence number. Survives clear and keeps rising across restarts: the first entry of a bridge run gets the run's start time in milliseconds.`)),kind:B([`speech`,`marker`]),text:H(),receivedAt:U(ye,T(`When the bridge received the line (UTC).`)),source:U(B([`tcp`,`api`]),T("`tcp` for speech, `api` for markers.")),voice:U(I(H()),T("Header (`voice=<id>`) of the sending voice, `null` if not set or for markers.")),connectionId:U(I(Y(1)),T("TCP connection that delivered it, `null` for markers.")),sessionId:U(z(I(Y(1))),T("The session that was current, `null` outside any session. Added in API 1.3."))}),T(`One recorded speech line or a marker.`),E([{seq:42,kind:`speech`,text:`Submit, button`,receivedAt:`2026-11-07T14:03:12.345Z`,source:`tcp`,voice:`ssc5000`,connectionId:3,sessionId:7}]));m.wait.seen,`${m.wait.seen}`,`${m.markerLength}`;var{coordinate:X,delayMs:Z,maxKeys:xe}=m.input,Q=m.capture;Q.quietForMs.min,Q.quietForMs.max,`${Q.quietForMs.default}`,Q.firstWithinMs.max,`${Q.firstWithinMs.default}`,Q.timeoutMs.max,`${Q.timeoutMs.default}`,Q.settleMs.max,Q.entries,`${Q.entries}`,-X,-X,`${xe}`,Z.max,`${Z.default}`,m.input.focusTitleLength;var $=e=>U(L(),D(),A(e)),Se=U(H(),O()),Ce=e=>U(H(),w(e=>ae(e,m.sessionLabelLength)),T(`${e} Trimmed, must not be empty, at most ${m.sessionLabelLength} characters.`)),we={id:U($(1),T(`Increasing, also across restarts (since API 1.29): the first session of a bridge run gets the run's start time in milliseconds, so an id is never given out twice.`)),name:H(),run:U(I(H()),T(`Optional label that groups sessions.`)),client:U(I(H()),T("Who started it: the `X-SR-Speech-Client` header, `null` if it wasn't sent. Added in API 1.10.")),startedAt:Se,endedAt:U(I(Se),T("`null` while the session is current.")),startSeq:U($(0),T("The last `seq` given out before the session started: `since=startSeq` reads the session from its start. Added in API 1.9.")),firstSeq:U(I($(1)),T("First entry still in the buffer, `null` if none.")),lastSeq:U(I($(1)),T("Last entry still in the buffer, `null` if none.")),entries:U($(0),T(`Entries of this session still in the buffer.`))};Ce(`For example the test title.`),Ce(`Optional label that groups sessions, for example one per test run.`),{...we};function Te(e,t){let n=me(e,t);if(n.success)return{ok:!0,value:n.output};let[r]=n.issues;return{ok:!1,field:fe(r)??`(body)`,message:r.message}}var Ee=5e3;function De(e,t){return t===null?e===`none`:e===t}function Oe(e,t){return Ae(e,t)}function ke(e,t){return e!==`none`&&e!==t}function Ae(e,t){return e===`none`||e===t}function je(e){let t=new Date(e);if(Number.isNaN(t.getTime()))return e;let n=e=>String(e).padStart(2,`0`),r=String(t.getMilliseconds()).padStart(3,`0`);return`${n(t.getHours())}:${n(t.getMinutes())}:${n(t.getSeconds())}.${r}`}function Me(e,t){if(e===`none`)return`Records outside sessions`;let n=t.find(t=>t.id===e);return n===void 0?`#${e}`:`${n.name} #${n.id}`}export{je as a,Te as c,ke as i,be as l,De as n,Ae as o,Oe as r,Me as s,Ee as t,le as u};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,D as r,E as i,F as a,G as o,I as s,J as c,K as l,L as u,N as d,P as f,Q as p,R as m,S as h,V as g,W as _,X as v,Y as y,_ as b,a as x,d as S,et as ee,f as C,g as w,k as T,m as E,nt as D,q as O,rt as k,s as A,u as j,v as M,w as N,y as te}from"../chunks/B__KpOuX.js";import"../chunks/UKukklIc.js";import"../chunks/C06IiL6m.js";import{n as ne,t as re}from"../chunks/DRNNJMYk.js";import{c as ie,l as ae,t as oe,u as se}from"../chunks/R_4U_-zb.js";import{t as ce}from"../chunks/Bvlvl8SZ.js";import{c as le,o as ue,t as de}from"../chunks/CTnnxqUD.js";import{l as fe,s as pe,t as P}from"../chunks/BkoDSEOx.js";import{_ as me,a as he,f as F,g as ge,h as I,i as _e,l as L,m as ve,n as ye,o as R,p as be,s as z,t as xe,u as Se}from"../chunks/JsC3ASJq.js";import{n as B,o as Ce,t as we}from"../chunks/BEImj5AP.js";import{i as Te,n as Ee,r as De,t as Oe}from"../chunks/Bxh3K0TK.js";var ke=`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`,Ae=new URL(`../assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2`,import.meta.url).href,je=i(`<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>`),Me=i(`<ul aria-label="Bridge status" class="svelte-19wvxlf"></ul>`),Ne=i(`<!> <span class="visually-hidden" role="status"> </span>`,1);function Pe(t,n){e(n,!0);var r=Ne(),i=f(r),c=e=>{var t=Me();E(t,21,()=>n.chips,e=>e.id,(e,t)=>{var n=je();let r;var i=d(n),c=d(i),l=s(c,2),u=a(l,!0);k(i);var f=s(i,2),p=a(f,!0);k(n),o(()=>{r=j(n,1,w(m(t).tone),`svelte-19wvxlf`,r,{down:m(t).down}),x(i,`title`,m(t).text),j(c,1,`dot ${m(t).dot??``}`,`svelte-19wvxlf`),h(u,m(t).text),h(p,m(t).description)}),N(e,n)}),k(t),N(e,t)};b(i,e=>{n.chips.length>0&&e(c)});var l=s(i,2),u=a(l,!0);o(()=>h(u,n.announcement)),N(t,r),p()}var Fe=i(`<md-icon-button><md-icon>refresh</md-icon></md-icon-button>`,2);function Ie(e,n){var r=Fe();A(r,`title`,`Refresh status`),A(r,`aria-label`,`Refresh status`),j(r,1,`svelte-5q7qd7`);var i=d(r);A(i,`aria-hidden`,`true`);let a;k(r),o(()=>a=j(i,1,`svelte-5q7qd7`,null,a,{spin:n.loading})),t(`click`,r,function(...e){n.onRetry?.apply(this,e)}),N(e,r)}T([`click`]);function Le(e,t){return t?e===null?[]:[V(`playwright`,`Playwright`,e.playwright),V(`mcp`,`MCP`,e.mcp)].filter(e=>e!==null):[{id:`bridge`,text:`Bridge unreachable`,tone:`error`,dot:`filled`,description:`Bridge unreachable`}]}function V(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 Re(e,t){return t?e.filter(e=>e.tone===`error`||e.tone===`warning`).map(e=>`${e.description}.`).join(` `):`Bridge unreachable.`}var ze=i(`<!> <!>`,1);function Be(t,n){e(n,!0);let r=ne().status,i=v(()=>B.data.status),a=v(()=>r.status??m(i)),o=v(()=>Le(m(a),r.reachable));M(()=>{r.seed(m(i)),r.init()});var c=ze(),l=f(c);{let e=v(()=>Re(m(o),r.reachable));Pe(l,{get chips(){return m(o)},get announcement(){return m(e)}})}var u=s(l,2),d=e=>{Ie(e,{get loading(){return r.loading},onRetry:()=>void r.retry()})};b(u,e=>{r.reachable||e(d)}),N(t,c),p()}var Ve=i(`<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 He(e,t){var n=Ve(),r=s(d(n),2),i=s(d(r),2),c=a(i,!0);k(r),Be(s(r,2),{}),k(n),o(()=>h(c,t.host)),N(e,n)}var Ue=i(`<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),We=i(`<nav aria-label="Pages" class="svelte-sxtjmn"><ul class="svelte-sxtjmn"></ul></nav> <span class="visually-hidden" role="status"> </span>`,1);function Ge(n,i){let u=r();e(i,!0);let g=y(``),_;l(()=>(i.currentPath,()=>{clearTimeout(_),c(g,``)}));function b(e,t){if(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)return;let n=e.currentTarget;n.href===n.ownerDocument.URL&&(e.preventDefault(),clearTimeout(_),c(g,``),_=setTimeout(()=>c(g,`${t}, current page`),100))}function ee(e){e.key===` `&&(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||(e.preventDefault(),e.repeat||e.currentTarget.click()))}var C=We(),w=f(C),T=d(w);E(T,23,()=>i.items,e=>e.href,(e,n,r)=>{let c=v(()=>ce(m(n),i.currentPath)),l=v(()=>`${u}-link-${m(r)}`),f=v(()=>`${m(l)}-label`);var p=Ue(),g=d(p),_=d(g);let y;var S=d(_);o(()=>A(S,`for`,m(l))),A(S,`aria-hidden`,`true`);var C=s(S,2);A(C,`aria-hidden`,`true`);var w=a(C,!0);k(_);var T=s(_,2),E=a(T,!0);k(g),k(p),o(()=>{x(g,`id`,m(l)),x(g,`href`,m(n).href),x(g,`aria-labelledby`,m(f)),x(g,`aria-current`,m(c)?`page`:void 0),y=j(_,1,`indicator svelte-sxtjmn`,null,y,{current:m(c)}),h(w,m(n).icon),x(T,`id`,m(f)),h(E,m(n).label)}),t(`click`,g,e=>b(e,m(n).label)),t(`keydown`,g,ee),N(e,p)}),k(T),S(T,()=>se(`a`)),k(w);var D=s(w,2),O=a(D,!0);o(()=>h(O,m(g))),N(n,C),p()}T([`click`,`keydown`]);var Ke=class{async copy(e){let t=navigator.clipboard;if(t!==void 0)try{return await t.writeText(e),!0}catch{}return qe(e)}};function qe(e){let t=document.activeElement,n=document.createElement(`textarea`);n.value=e,n.readOnly=!0,n.setAttribute(`aria-hidden`,`true`),Object.assign(n.style,{position:`fixed`,top:`0`,left:`0`,opacity:`0`}),document.body.append(n);try{return n.select(),document.execCommand(`copy`)}catch{return!1}finally{n.remove(),t instanceof HTMLElement&&t.focus({preventScroll:!0})}}var H=`sr-theme`,Je=class{read(){try{return le(localStorage.getItem(H))}catch{return null}}write(e){document.documentElement.dataset.theme=e;try{localStorage.setItem(H,e)}catch{}}},Ye=`24px "Material Symbols Outlined"`;async function Xe(){try{await document.fonts.load(Ye)}catch{}document.documentElement.setAttribute(`data-icons-ready`,``)}var Ze=(e,t)=>Error(e?.message??`The request answered ${t}`);async function U(e,{method:t=`GET`,body:n,signal:r,rejection:i=Ze}={}){let a=await fetch(e,{method:t,headers:{accept:`application/json`,...n===void 0?{}:{"content-type":`application/json`}},body:n===void 0?void 0:JSON.stringify(n),signal:r});if(!a.ok)throw i(await Qe(a),a.status);return a}async function W(e,t){return await(await U(e,t)).json()}async function Qe(e){let t=await e.json().catch(()=>void 0);if(typeof t!=`object`||!t||!(`message`in t))return null;let{message:n}=t;return typeof n==`string`?{message:n,field:`field`in t&&typeof t.field==`string`?t.field:void 0}:null}var G=(e,t)=>e===null?Error(`The request answered ${t}`):new de(e.message,e.field),$e=class{url;constructor(e){this.url=e}fetch(){return W(this.url,{rejection:G})}update(e){return W(this.url,{method:`PUT`,body:e,rejection:G})}},et=class{url;constructor(e){this.url=e}pressAndCapture(e,t,n){return W(this.url,{method:`POST`,body:{keys:e,capture:t},signal:n})}},tt=class{markersUrl;speechUrl;constructor(e,t){this.markersUrl=e,this.speechUrl=t}async addMarker(e){await U(this.markersUrl,{method:`POST`,body:{label:e}})}async clear(e){await U(`${this.speechUrl}?session=${e}`,{method:`DELETE`})}},nt=Symbol(`sveltekit.query_function_id`),K=Symbol(`sveltekit.query_override_key`),rt=Symbol(`sveltekit.query_resource_key`);function q(e,t,n,r){try{O(()=>{let i=e.get(n)?.get(r);if(i)return t.manual_ref(i,n,r)})}catch{}}function J(e,t,n,r,i){return((...a)=>{let o=e.get(n)?.get(r),s=o?t.manual_ref(o,n,r):void 0,c=i(...a);return s&&c.then(s,s),c})}async function it(e,t,n){let r=await fetch(e,t),i=r.status;if(we(r.headers.get(`x-sveltekit-version`)),!r.ok){let e=await r.json().catch(()=>void 0);throw e?.type===`error`?new F({status:i,...e.error}):new be({status:i,message:r.statusText})}let a=await r.json();if(a.type===`error`)throw new F(a.error);let o=a.data?me(a.data,ye.decoders):{};function s(e,t,n){t?.resource?n.e?t.resource.fail(new F(n.e)):t.resource.set(n.v):n.e||(z[e]=n)}if(o.q)for(let e in o.q){n?.delete(e);let t=I(e);s(e,R.get(t.id)?.get(t.payload),o.q[e])}if(o.l)for(let e in o.l){n?.delete(e);let t=I(e),r=he.get(t.id)?.get(t.payload);s(e,r,o.l[e]),o.l[e].e||r?.resource.reconnect()}for(let e of o.i??[])n?.delete(e);return o}var Y=`sveltekit:${Ce}`;(async()=>{if(typeof caches<`u`)try{await caches.open(Y);let e=await caches.keys();for(let t of e)t.startsWith(`sveltekit:`)&&t!==Y&&await caches.delete(t)}catch(e){console.warn(`Failed to initialize SvelteKit cache:`,e)}})();var X=new Map;new FinalizationRegistry(e=>{let t=X.get(e);t&&t.deref()===void 0&&X.delete(e)});function at(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var Z=class{#e;#t;#n=y(!0);#r=[];#i=y(!1);#a=y();#o=y(null);#s=y(u([]));#c=v(()=>{if(m(this.#i))return m(this.#s).reduce((e,t)=>t(e),m(this.#a))});#l=y(void 0);#u=v(()=>{let e=this.#d();return m(this.#s).length,(t,r)=>{let i=e.then(n).then(()=>{if(!m(this.#i))throw new F(m(this.#l)??{status:500,message:`Query resolved without a value`});return m(this.#c)});return t||r?i.then(t,r):i}});constructor(e,t){if(this.#e=e,this.#t=t,Object.hasOwn(z,e)){let t=z[e];delete z[e],t.e?this.fail(new F(t.e)):this.set(t.v)}}#d(){return g(()=>m(this.#o)??c(this.#o,this.#p())),m(this.#o)}start(){n().then(()=>this.#d()).catch(L)}#f(){this.#r.forEach(e=>e(void 0)),this.#r.length=0}#p(){c(this.#n,!0);let{promise:e,resolve:t,reject:n}=at();return e.catch(L),this.#r.push(t),Promise.resolve(this.#t()).then(e=>{let n=this.#r.indexOf(t);n!==-1&&g(()=>{this.#r.splice(0,n+1).forEach(e=>e(void 0)),c(this.#i,!0),c(this.#n,!1),c(this.#a,e),c(this.#l,void 0)})}).catch(async e=>{if(!this.#r.includes(t))return;let r=await _e(e,{params:{},route:{id:null},url:new URL(location.href)}),i=this.#r.indexOf(t);i!==-1&&(g(()=>{this.#r.splice(0,i).forEach(e=>e(void 0)),this.#r.shift(),c(this.#l,r),c(this.#n,!1)}),n(new F(r)))}),e}get then(){return this.start(),m(this.#u)}get catch(){return this.start(),m(this.#u),e=>m(this.#u)(void 0,e)}get finally(){return this.start(),m(this.#u),e=>m(this.#u)(t=>(e(),t),t=>{throw e(),t})}get current(){return this.start(),m(this.#c)}get error(){return this.start(),m(this.#l)}get loading(){return this.start(),m(this.#n)}get ready(){return this.start(),m(this.#i)}refresh(){return delete z[this.#e],c(this.#o,this.#p())}set(e){delete z[this.#e];let t=this.#r.length>0;this.#f(),c(this.#i,!0),c(this.#n,!1),c(this.#l,void 0),c(this.#a,e),t||c(this.#o,Promise.resolve())}fail(e){delete z[this.#e],this.#f(),c(this.#n,!1),c(this.#l,e.body);let t=Promise.reject(e);t.catch(L),c(this.#o,t)}withOverride(e){m(this.#s).push(e);let t=(()=>{let t=m(this.#s).indexOf(e);t!==-1&&m(this.#s).splice(t,1)});return Object.defineProperty(t,K,{value:this.#e}),t}reset(){c(this.#o,null),delete z[this.#e]}get[Symbol.toStringTag](){return`Query`}},Q=class{#e;#t;#n=new FinalizationRegistry(({entry:e,id:t,payload:n})=>{this.deref(e,t,n)});constructor(e,t){this.#e=e,this.#t=t}ensure_entry=(e,t,n)=>{let r=this.#e.get(e);r||(r=new Map,this.#e.set(e,r));let i=r.get(t);if(!i){let e={proxy_count:0,resource:null,cleanup:null};e.cleanup=_(()=>{e.resource=n()}),i=e,r.set(t,i)}return i};ref=(e,t,n,r)=>{t.proxy_count++,this.#n.register(e,{entry:t,id:n,payload:r})};manual_ref=(e,t,n)=>(e.proxy_count++,Se(()=>this.deref(e,t,n)));deref=(e,t,r)=>{e.proxy_count--,n().then(()=>{let e=this.#e.get(t)?.get(r);!e||e.proxy_count>0||this.#r(t,r)})};#r=(e,t)=>{let n=this.#e.get(e),r=n?.get(t);r&&(this.#t?.(r.resource),r.cleanup(),n?.delete(t),n&&n.size===0&&this.#e.delete(e))}},$=new Q(R),ot=class{#e;#t;#n;#r;constructor(e,t,n){this.#e=e,this.#n=ge(t),this.#t=ve(e,this.#n),Object.defineProperty(this,rt,{value:this.#t}),this.#r=n;let r=this.#t,i=this.#n,a=$.ensure_entry(this.#e,this.#n,()=>new Z(r,()=>n(i)));$.ref(this,a,this.#e,this.#n)}#i(){let e=R.get(this.#e)?.get(this.#n);if(!e)throw Error(`No cached query found. This should be impossible. Please file a bug report.`);return e.resource}get current(){return this.#i().current}get error(){return this.#i().error}get loading(){return this.#i().loading}get ready(){return this.#i().ready}refresh(){return this.#i().refresh()}set(e){this.#i().set(e)}withOverride(e){let t=this.#r,n=this.#t,r=this.#n,i=$.ensure_entry(this.#e,this.#n,()=>new Z(n,()=>t(r))),a=$.manual_ref(i,this.#e,this.#n),o=i.resource.withOverride(e),s=(()=>{o(),a()});return Object.defineProperty(s,K,{value:o[K]}),s}get then(){q(R,$,this.#e,this.#n);let e=this.#i();return J(R,$,this.#e,this.#n,e.then.bind(e))}get catch(){q(R,$,this.#e,this.#n);let e=this.#i();return J(R,$,this.#e,this.#n,e.catch.bind(e))}get finally(){q(R,$,this.#e,this.#n);let e=this.#i();return J(R,$,this.#e,this.#n,e.finally.bind(e))}get[Symbol.toStringTag](){return`QueryProxy`}};function st(e){let t=t=>new ot(e,t,async t=>{let n=await it(`${fe}/${pe}/remote/${e}${t?`?payload=${t}`:``}`);n.redirect&&await xe(n.redirect)});return Object.defineProperty(t,nt,{value:e}),t}new Q(he,e=>e.destroy());var ct=st(`1j2tn2d/getSessions`),lt=class{url;constructor(e){this.url=e}async list(){let e=ct();return await e.refresh(),e.current}start(e,t){return W(this.url,{method:`POST`,body:{name:e,run:t}})}async end(){await U(`${this.url}/end`,{method:`POST`})}async delete(e){await U(`${this.url}/${e}`,{method:`DELETE`})}},ut=1e3,dt=class{streamUrl;speechUrl;constructor(e,t){this.streamUrl=e,this.speechUrl=t}open(e,t,n){return n.onState(`connecting`),t?this.follow(e,n):this.read(e,n)}listen(e,t){let n=this.stream(`since=${e}`,e=>t.onEntry(e));return this.report(n,e=>t.onState(e)),()=>n.close()}follow(e,t){let n=this.stream(`session=${encodeURIComponent(String(e))}&since=0`,e=>t.onEntry(e));return this.report(n,e=>t.onState(e)),n.addEventListener(`clear`,()=>t.onClear()),()=>n.close()}report(e,t){e.onopen=()=>t(`live`),e.onerror=()=>t(e.readyState===EventSource.CLOSED?`failed`:`reconnecting`)}stream(e,t){let n=new EventSource(`${this.streamUrl}?${e}`);return n.addEventListener(`entry`,e=>{let n;try{n=JSON.parse(e.data)}catch{return}let r=ie(ae,n);r.ok&&t(r.value)}),n}read(e,t){let n=new AbortController;return(async()=>{let r=0;for(;;){let i=new URLSearchParams({session:String(e),since:String(r),limit:String(ut)}),{entries:a,hasMore:o}=await W(`${this.speechUrl}?${i}`,{signal:n.signal});t.onEntries(a);let s=a.at(-1);if(!o||s===void 0)return;r=s.seq}})().then(()=>t.onState(`ended`),()=>{n.signal.aborted||t.onState(`failed`)}),()=>n.abort()}},ft=class{url;constructor(e){this.url=e}fetch(){return W(this.url)}};function pt(e){return e===`1`||e!==`0`&&null}function mt(e){return e?`1`:`0`}var ht=`sr-sessions-collapsed`,gt=class{read(){try{return pt(localStorage.getItem(ht))}catch{return null}}write(e){try{localStorage.setItem(ht,mt(e))}catch{}}};function _t(e){let t=y(null),n=y(!0),r=y(!1),i=null;function a(){return i||(c(r,!0),i=e.fetch().then(e=>{c(t,e,!0),c(n,!0)}).catch(()=>{c(n,!1)}).finally(()=>{i=null,c(r,!1)}),i)}return{get loaded(){return m(t)!==null},get reachable(){return m(n)},get reading(){return m(r)},get active(){return m(t)?.active??null},get saved(){return m(t)?.saved??null},get overrides(){return m(t)?.overrides??{}},seed(e){e!==null&&(c(t,e,!0),c(n,!0))},refresh(){return a()},async save(t){await e.update(t),await i,await a()}}}function vt(e){let t=y(!0);return{get collapsed(){return m(t)},init(){c(t,e.read()??!1,!0)},toggle(){c(t,!m(t)),e.write(m(t))}}}var yt=3e3;function bt(e){let t=y(u([])),n=y(null),r=y(0),i=y(!0),a=y(!1),o=y(u(Date.now())),s=null;function l(e,i=Date.now()){c(t,e.sessions,!0),c(n,e.currentId,!0),c(r,e.outsideEntries,!0),c(o,i,!0),c(a,!0)}function d(){return s||(s=e.list().then(e=>{l(e),c(i,!0)}).catch(()=>{c(i,!1)}).finally(()=>{s=null}),s)}async function f(){await s,await d()}return{get sessions(){return m(t)},get currentId(){return m(n)},get outsideEntries(){return m(r)},get loaded(){return m(a)},get reachable(){return m(i)},get now(){return m(o)},seed(e,t){e!==null&&!m(a)&&l(e,t)},init(){d();let e=setInterval(()=>{m(n)!==null&&c(o,Date.now(),!0)},1e3),t=setInterval(()=>void d(),yt);return()=>{clearInterval(e),clearInterval(t)}},refresh(){return f()},async start(t,n){let r=await e.start(t,n);return await f(),r},async end(){await e.end(),await f()},async delete(t){await e.delete(t),await f()}}}function xt(e,t){let n=y([]),r=y(`connecting`),i=null;function a(){i?.(),i=null}function o(e){let t=m(n).at(-1)?.seq??0,r=[];for(let n of e)n.seq<=t||(r.push(n),t=n.seq);if(r.length===0)return;let i=[...m(n),...r];c(n,i.length>5e3?i.slice(i.length-oe):i)}return{get entries(){return m(n)},get connection(){return m(r)},open(t,s){return a(),c(n,[]),c(r,`connecting`),i=e.open(t,s,{onEntry:e=>o([e]),onEntries:o,onClear(){c(n,[])},onState(e){c(r,e,!0)}}),a},clear(e){return t.clear(e)},addMarker(e){return t.addMarker(e)}}}function St(e){let t=y(null),n=y(!0),r=y(!1),i=null;function a(){return i||(c(r,!0),i=e.fetch().then(e=>{c(t,e,!0),c(n,!0)}).catch(()=>{c(n,!1)}).finally(()=>{c(r,!1),i=null}),i)}return{get status(){return m(t)},get reachable(){return m(n)},get loading(){return m(r)},seed(e){e!==null&&m(t)===null&&c(t,e,!0)},init(){a()},retry(){return a()}}}function Ct(e){let t=y(u(ue));return{get current(){return m(t)},init(){c(t,e.read()??`light`,!0)},set(n){c(t,n,!0),e.write(n)}}}function wt(e,t,n){let r=y(`idle`),i=y(`manual`),a=y([]),o=y(!1),s=y(``),l=0,u=null,d;function f(){l++,clearTimeout(d),u?.(),u=null,c(o,!1)}function p(e){f(),c(r,`failed`),c(s,e,!0)}function h(){d=setTimeout(()=>{m(o)?p(`The connection to the bridge was lost.`):(f(),c(r,`silent`))},De)}async function g(n){c(r,`starting`);let i;try{i=(await e.fetch()).buffer.lastSeq??0}catch{n===l&&p(`The bridge is not reachable.`);return}n===l&&(c(r,`listening`),u=t.listen(i,{onEntry(e){n===l&&e.kind!==`marker`&&(c(a,[...m(a),e]),c(r,`heard`),clearTimeout(d),m(a).length>=5?f():d=setTimeout(f,Te))},onState(e){n===l&&(e===`failed`?m(r)===`heard`?f():p(`The speech stream is not available.`):c(o,e===`reconnecting`))}}),h())}async function _(e){c(r,`listening`);let t=new AbortController;u=()=>t.abort();try{let i=await n.pressAndCapture(Ee,Oe,t.signal);if(e!==l)return;f(),c(a,i.entries.slice(0,5)),c(r,m(a).length>0?`heard`:`silent`,!0)}catch(t){e===l&&p(t instanceof Error?t.message:`The keys could not be sent.`)}}return{get phase(){return m(r)},get via(){return m(i)},get entries(){return m(a)},get reconnecting(){return m(o)},get failure(){return m(s)},async start(e){f(),c(i,e,!0),c(a,[]),c(s,``),await(e===`manual`?g(l):_(l))},stop(){f(),c(r,`idle`),c(a,[]),c(s,``)}}}function Tt(){let e=new ft(P(`/api/status`)),t=new dt(P(`/api/speech/stream`),P(`/api/speech`)),n=new tt(P(`/api/markers`),P(`/api/speech`)),r=new Ke;return{theme:Ct(new Je),status:St(e),config:_t(new $e(P(`/api/config`))),sessions:bt(new lt(P(`/api/sessions`))),speech:xt(t,n),voiceCheck:wt(e,t,new et(P(`/api/input/keys`))),sessionsPane:vt(new gt),clipboard:r}}function Et(){return ee(re,Tt())}var Dt=i(`<link rel="icon"/> <link rel="preload" as="font" type="font/woff2" crossorigin="anonymous"/> <meta name="color-scheme" content="light dark"/>`,1),Ot=i(`<div class="app svelte-12qhfyh"><!> <div class="body svelte-12qhfyh"><!> <main class="svelte-12qhfyh"><!></main></div></div>`);function kt(t,n){e(n,!0);let{theme:r}=Et(),i=[{href:P(`/`),label:`Monitor`,icon:`monitor`,exact:!0},{href:P(`/settings`),label:`Settings`,icon:`settings`},{href:P(`/setup`),label:`Setup`,icon:`build`}];M(()=>{r.init(),Xe()});var a=Ot();C(`12qhfyh`,e=>{var t=Dt(),n=f(t),r=s(n,2);D(2),o(()=>{x(n,`href`,ke),x(r,`href`,Ae)}),N(e,t)});var c=d(a);He(c,{get host(){return B.url.host}});var l=s(c,2),u=d(l);Ge(u,{get items(){return i},get currentPath(){return B.url.pathname}});var m=s(u,2),h=d(m);te(h,()=>n.children),k(m),k(l),k(a),N(t,a),p()}export{kt as component};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|