screenreader-speech-capture 0.4.0-fix-bundle-material-web.12 → 0.5.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 (68) hide show
  1. package/dist/cli.mjs +64 -10
  2. package/dist/ui/adapter-node.js +1 -1
  3. package/dist/ui/client/ui/_app/immutable/assets/{0.Ck1JiV_4.css → 0.B2ZWH0rX.css} +1 -1
  4. package/dist/ui/client/ui/_app/immutable/assets/0.B2ZWH0rX.css.br +0 -0
  5. package/dist/ui/client/ui/_app/immutable/assets/0.B2ZWH0rX.css.gz +0 -0
  6. package/dist/ui/client/ui/_app/immutable/assets/2.BbalQTLT.css +1 -0
  7. package/dist/ui/client/ui/_app/immutable/assets/2.BbalQTLT.css.br +0 -0
  8. package/dist/ui/client/ui/_app/immutable/assets/2.BbalQTLT.css.gz +0 -0
  9. package/dist/ui/client/ui/_app/immutable/chunks/VoEQsW8I.js +37 -0
  10. package/dist/ui/client/ui/_app/immutable/chunks/VoEQsW8I.js.br +0 -0
  11. package/dist/ui/client/ui/_app/immutable/chunks/VoEQsW8I.js.gz +0 -0
  12. package/dist/ui/client/ui/_app/immutable/entry/{app.DWG4jy_K.js → app.vg2Ojqcj.js} +2 -2
  13. package/dist/ui/client/ui/_app/immutable/entry/app.vg2Ojqcj.js.br +0 -0
  14. package/dist/ui/client/ui/_app/immutable/entry/app.vg2Ojqcj.js.gz +0 -0
  15. package/dist/ui/client/ui/_app/immutable/nodes/{0.BHaQjZME.js → 0.BTOtEgN4.js} +1 -1
  16. package/dist/ui/client/ui/_app/immutable/nodes/0.BTOtEgN4.js.br +0 -0
  17. package/dist/ui/client/ui/_app/immutable/nodes/0.BTOtEgN4.js.gz +0 -0
  18. package/dist/ui/client/ui/_app/immutable/nodes/2.COkKMNHv.js +227 -0
  19. package/dist/ui/client/ui/_app/immutable/nodes/2.COkKMNHv.js.br +0 -0
  20. package/dist/ui/client/ui/_app/immutable/nodes/2.COkKMNHv.js.gz +0 -0
  21. package/dist/ui/client/ui/_app/version.json +1 -1
  22. package/dist/ui/client/ui/_app/version.json.br +0 -0
  23. package/dist/ui/client/ui/_app/version.json.gz +0 -0
  24. package/dist/ui/server/.vite/manifest.json +43 -2
  25. package/dist/ui/server/_app/immutable/assets/{_layout.Ck1JiV_4.css → _layout.B2ZWH0rX.css} +1 -1
  26. package/dist/ui/server/_app/immutable/assets/_page.BbalQTLT.css +1 -0
  27. package/dist/ui/server/chunks/bridge-api.js +32 -1
  28. package/dist/ui/server/chunks/bridge-api.js.map +1 -1
  29. package/dist/ui/server/chunks/composition.js +192 -3
  30. package/dist/ui/server/chunks/composition.js.map +1 -1
  31. package/dist/ui/server/chunks/instance.js +3 -3
  32. package/dist/ui/server/chunks/internal.js +1 -1
  33. package/dist/ui/server/chunks/src.js +29 -2
  34. package/dist/ui/server/chunks/src.js.map +1 -1
  35. package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js +14 -0
  36. package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js.map +1 -0
  37. package/dist/ui/server/entries/endpoints/api/sessions/_id_/_server.ts.js +13 -0
  38. package/dist/ui/server/entries/endpoints/api/sessions/_id_/_server.ts.js.map +1 -0
  39. package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js +1 -1
  40. package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js +21 -0
  41. package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js.map +1 -0
  42. package/dist/ui/server/entries/endpoints/api/speech/stream/_server.ts.js +19 -0
  43. package/dist/ui/server/entries/endpoints/api/speech/stream/_server.ts.js.map +1 -0
  44. package/dist/ui/server/entries/pages/_layout.svelte.js +1 -1
  45. package/dist/ui/server/entries/pages/_page.svelte.js +387 -137
  46. package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
  47. package/dist/ui/server/manifest-full.js +29 -1
  48. package/dist/ui/server/manifest.js +29 -1
  49. package/dist/ui/server/nodes/0.js +2 -2
  50. package/dist/ui/server/nodes/2.js +2 -2
  51. package/dist/ui/server/server.js +29 -1
  52. package/package.json +1 -1
  53. package/dist/ui/client/ui/_app/immutable/assets/0.Ck1JiV_4.css.br +0 -0
  54. package/dist/ui/client/ui/_app/immutable/assets/0.Ck1JiV_4.css.gz +0 -0
  55. package/dist/ui/client/ui/_app/immutable/assets/2.CnRjX9ZG.css +0 -1
  56. package/dist/ui/client/ui/_app/immutable/assets/2.CnRjX9ZG.css.br +0 -0
  57. package/dist/ui/client/ui/_app/immutable/assets/2.CnRjX9ZG.css.gz +0 -0
  58. package/dist/ui/client/ui/_app/immutable/chunks/WKeSQOEM.js +0 -37
  59. package/dist/ui/client/ui/_app/immutable/chunks/WKeSQOEM.js.br +0 -0
  60. package/dist/ui/client/ui/_app/immutable/chunks/WKeSQOEM.js.gz +0 -0
  61. package/dist/ui/client/ui/_app/immutable/entry/app.DWG4jy_K.js.br +0 -0
  62. package/dist/ui/client/ui/_app/immutable/entry/app.DWG4jy_K.js.gz +0 -0
  63. package/dist/ui/client/ui/_app/immutable/nodes/0.BHaQjZME.js.br +0 -0
  64. package/dist/ui/client/ui/_app/immutable/nodes/0.BHaQjZME.js.gz +0 -0
  65. package/dist/ui/client/ui/_app/immutable/nodes/2.DnTpD-Gs.js +0 -224
  66. package/dist/ui/client/ui/_app/immutable/nodes/2.DnTpD-Gs.js.br +0 -0
  67. package/dist/ui/client/ui/_app/immutable/nodes/2.DnTpD-Gs.js.gz +0 -0
  68. package/dist/ui/server/_app/immutable/assets/_page.CnRjX9ZG.css +0 -1
@@ -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.BHpKgjPx.js",app:"_app/immutable/entry/app.DWG4jy_K.js",imports:["_app/immutable/entry/start.BHpKgjPx.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/DclECHGd.js","_app/immutable/chunks/BaD2EyfF.js","_app/immutable/chunks/DvmLiMpQ.js","_app/immutable/chunks/CcBdu3S8.js","_app/immutable/chunks/Dg9MaatX.js","_app/immutable/entry/app.DWG4jy_K.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
12
+ client: {start:"_app/immutable/entry/start.BHpKgjPx.js",app:"_app/immutable/entry/app.vg2Ojqcj.js",imports:["_app/immutable/entry/start.BHpKgjPx.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/DclECHGd.js","_app/immutable/chunks/BaD2EyfF.js","_app/immutable/chunks/DvmLiMpQ.js","_app/immutable/chunks/CcBdu3S8.js","_app/immutable/chunks/Dg9MaatX.js","_app/immutable/entry/app.vg2Ojqcj.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
13
13
 
14
14
  nodes: [
15
15
  __memo(() => import('./nodes/0.js')),
@@ -29,6 +29,13 @@ return {
29
29
  page: { layouts: [0,], errors: [1,], leaf: 2 },
30
30
  endpoint: null
31
31
  },
32
+ {
33
+ id: "/api/markers",
34
+ pattern: /^\/api\/markers\/?$/,
35
+ params: [],
36
+ page: null,
37
+ endpoint: __memo(() => import('./entries/endpoints/api/markers/_server.ts.js'))
38
+ },
32
39
  {
33
40
  id: "/api/sessions",
34
41
  pattern: /^\/api\/sessions\/?$/,
@@ -43,6 +50,27 @@ return {
43
50
  page: null,
44
51
  endpoint: __memo(() => import('./entries/endpoints/api/sessions/end/_server.ts.js'))
45
52
  },
53
+ {
54
+ id: "/api/sessions/[id]",
55
+ pattern: /^\/api\/sessions\/([^/]+?)\/?$/,
56
+ params: [{"name":"id","optional":false,"rest":false,"chained":false}],
57
+ page: null,
58
+ endpoint: __memo(() => import('./entries/endpoints/api/sessions/_id_/_server.ts.js'))
59
+ },
60
+ {
61
+ id: "/api/speech",
62
+ pattern: /^\/api\/speech\/?$/,
63
+ params: [],
64
+ page: null,
65
+ endpoint: __memo(() => import('./entries/endpoints/api/speech/_server.ts.js'))
66
+ },
67
+ {
68
+ id: "/api/speech/stream",
69
+ pattern: /^\/api\/speech\/stream\/?$/,
70
+ params: [],
71
+ page: null,
72
+ endpoint: __memo(() => import('./entries/endpoints/api/speech/stream/_server.ts.js'))
73
+ },
46
74
  {
47
75
  id: "/api/status",
48
76
  pattern: /^\/api\/status\/?$/,
@@ -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.BHpKgjPx.js",app:"_app/immutable/entry/app.DWG4jy_K.js",imports:["_app/immutable/entry/start.BHpKgjPx.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/DclECHGd.js","_app/immutable/chunks/BaD2EyfF.js","_app/immutable/chunks/DvmLiMpQ.js","_app/immutable/chunks/CcBdu3S8.js","_app/immutable/chunks/Dg9MaatX.js","_app/immutable/entry/app.DWG4jy_K.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
12
+ client: {start:"_app/immutable/entry/start.BHpKgjPx.js",app:"_app/immutable/entry/app.vg2Ojqcj.js",imports:["_app/immutable/entry/start.BHpKgjPx.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/DclECHGd.js","_app/immutable/chunks/BaD2EyfF.js","_app/immutable/chunks/DvmLiMpQ.js","_app/immutable/chunks/CcBdu3S8.js","_app/immutable/chunks/Dg9MaatX.js","_app/immutable/entry/app.vg2Ojqcj.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
13
13
 
14
14
  nodes: [
15
15
  __memo(() => import('./nodes/0.js')),
@@ -29,6 +29,13 @@ return {
29
29
  page: { layouts: [0,], errors: [1,], leaf: 2 },
30
30
  endpoint: null
31
31
  },
32
+ {
33
+ id: "/api/markers",
34
+ pattern: /^\/api\/markers\/?$/,
35
+ params: [],
36
+ page: null,
37
+ endpoint: __memo(() => import('./entries/endpoints/api/markers/_server.ts.js'))
38
+ },
32
39
  {
33
40
  id: "/api/sessions",
34
41
  pattern: /^\/api\/sessions\/?$/,
@@ -43,6 +50,27 @@ return {
43
50
  page: null,
44
51
  endpoint: __memo(() => import('./entries/endpoints/api/sessions/end/_server.ts.js'))
45
52
  },
53
+ {
54
+ id: "/api/sessions/[id]",
55
+ pattern: /^\/api\/sessions\/([^/]+?)\/?$/,
56
+ params: [{"name":"id","optional":false,"rest":false,"chained":false}],
57
+ page: null,
58
+ endpoint: __memo(() => import('./entries/endpoints/api/sessions/_id_/_server.ts.js'))
59
+ },
60
+ {
61
+ id: "/api/speech",
62
+ pattern: /^\/api\/speech\/?$/,
63
+ params: [],
64
+ page: null,
65
+ endpoint: __memo(() => import('./entries/endpoints/api/speech/_server.ts.js'))
66
+ },
67
+ {
68
+ id: "/api/speech/stream",
69
+ pattern: /^\/api\/speech\/stream\/?$/,
70
+ params: [],
71
+ page: null,
72
+ endpoint: __memo(() => import('./entries/endpoints/api/speech/stream/_server.ts.js'))
73
+ },
46
74
  {
47
75
  id: "/api/status",
48
76
  pattern: /^\/api\/status\/?$/,
@@ -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.BHaQjZME.js","_app/immutable/chunks/CcBdu3S8.js","_app/immutable/chunks/Dg9MaatX.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/WKeSQOEM.js","_app/immutable/chunks/DbiAGPgw.js"];
9
- export const stylesheets = ["_app/immutable/assets/0.Ck1JiV_4.css"];
8
+ export const imports = ["_app/immutable/nodes/0.BTOtEgN4.js","_app/immutable/chunks/CcBdu3S8.js","_app/immutable/chunks/Dg9MaatX.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/VoEQsW8I.js","_app/immutable/chunks/DbiAGPgw.js"];
9
+ export const stylesheets = ["_app/immutable/assets/0.B2ZWH0rX.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/2.DnTpD-Gs.js","_app/immutable/chunks/CcBdu3S8.js","_app/immutable/chunks/Dg9MaatX.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/DvmLiMpQ.js","_app/immutable/chunks/WKeSQOEM.js","_app/immutable/chunks/DbiAGPgw.js"];
9
- export const stylesheets = ["_app/immutable/assets/2.CnRjX9ZG.css"];
8
+ export const imports = ["_app/immutable/nodes/2.COkKMNHv.js","_app/immutable/chunks/CcBdu3S8.js","_app/immutable/chunks/Dg9MaatX.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/DvmLiMpQ.js","_app/immutable/chunks/VoEQsW8I.js","_app/immutable/chunks/DbiAGPgw.js"];
9
+ export const stylesheets = ["_app/immutable/assets/2.BbalQTLT.css"];
10
10
  export const fonts = [];
@@ -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.BHpKgjPx.js",app:"_app/immutable/entry/app.DWG4jy_K.js",imports:["_app/immutable/entry/start.BHpKgjPx.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/DclECHGd.js","_app/immutable/chunks/BaD2EyfF.js","_app/immutable/chunks/DvmLiMpQ.js","_app/immutable/chunks/CcBdu3S8.js","_app/immutable/chunks/Dg9MaatX.js","_app/immutable/entry/app.DWG4jy_K.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
13
+ client: {start:"_app/immutable/entry/start.BHpKgjPx.js",app:"_app/immutable/entry/app.vg2Ojqcj.js",imports:["_app/immutable/entry/start.BHpKgjPx.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/DclECHGd.js","_app/immutable/chunks/BaD2EyfF.js","_app/immutable/chunks/DvmLiMpQ.js","_app/immutable/chunks/CcBdu3S8.js","_app/immutable/chunks/Dg9MaatX.js","_app/immutable/entry/app.vg2Ojqcj.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
14
14
 
15
15
  nodes: [
16
16
  __memo(() => import('./nodes/0.js')),
@@ -30,6 +30,13 @@ return {
30
30
  page: { layouts: [0,], errors: [1,], leaf: 2 },
31
31
  endpoint: null
32
32
  },
33
+ {
34
+ id: "/api/markers",
35
+ pattern: /^\/api\/markers\/?$/,
36
+ params: [],
37
+ page: null,
38
+ endpoint: __memo(() => import('./entries/endpoints/api/markers/_server.ts.js'))
39
+ },
33
40
  {
34
41
  id: "/api/sessions",
35
42
  pattern: /^\/api\/sessions\/?$/,
@@ -44,6 +51,27 @@ return {
44
51
  page: null,
45
52
  endpoint: __memo(() => import('./entries/endpoints/api/sessions/end/_server.ts.js'))
46
53
  },
54
+ {
55
+ id: "/api/sessions/[id]",
56
+ pattern: /^\/api\/sessions\/([^/]+?)\/?$/,
57
+ params: [{"name":"id","optional":false,"rest":false,"chained":false}],
58
+ page: null,
59
+ endpoint: __memo(() => import('./entries/endpoints/api/sessions/_id_/_server.ts.js'))
60
+ },
61
+ {
62
+ id: "/api/speech",
63
+ pattern: /^\/api\/speech\/?$/,
64
+ params: [],
65
+ page: null,
66
+ endpoint: __memo(() => import('./entries/endpoints/api/speech/_server.ts.js'))
67
+ },
68
+ {
69
+ id: "/api/speech/stream",
70
+ pattern: /^\/api\/speech\/stream\/?$/,
71
+ params: [],
72
+ page: null,
73
+ endpoint: __memo(() => import('./entries/endpoints/api/speech/stream/_server.ts.js'))
74
+ },
47
75
  {
48
76
  id: "/api/status",
49
77
  pattern: /^\/api\/status\/?$/,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "screenreader-speech-capture",
3
- "version": "0.4.0-fix-bundle-material-web.12",
3
+ "version": "0.5.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",
@@ -1 +0,0 @@
1
- li.svelte-3qlloz{border-radius:var(--list-item-shape,var(--md-sys-shape-corner-small,8px));min-height:60px;color:var(--md-sys-color-on-surface);--md-ripple-hover-color:currentColor;--md-ripple-pressed-color:currentColor;align-items:center;display:flex;position:relative}li.selected.svelte-3qlloz{background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container)}.select.svelte-3qlloz{border-radius:inherit;min-width:0;min-height:60px;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;flex-direction:column;flex:1;justify-content:center;align-items:flex-start;gap:4px;padding:8px 16px;display:flex}.title.svelte-3qlloz{max-width:100%;font-size:var(--md-sys-typescale-label-large-size,14px);text-overflow:ellipsis;white-space:nowrap;font-weight:500;overflow:hidden}.subtitle.svelte-3qlloz{max-width:100%;color:var(--md-sys-color-on-surface-variant);font-family:var(--app-font-mono);font-size:var(--app-mono-size);white-space:nowrap;overflow:hidden}li.selected.svelte-3qlloz .subtitle:where(.svelte-3qlloz){color:inherit}.trailing.svelte-3qlloz{flex:none;margin-right:8px;display:flex}.sr-only.svelte-3qlloz{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}md-dialog.svelte-17z3k9b{--md-dialog-container-color:var(--md-sys-color-surface-container-high);--md-dialog-headline-color:var(--md-sys-color-on-surface);--md-dialog-supporting-text-color:var(--md-sys-color-on-surface-variant);max-width:min(400px,100% - 48px)}p.svelte-17z3k9b{margin:0}.failure.svelte-17z3k9b{color:var(--md-sys-color-error);margin-top:12px}.meta.svelte-wvg2ho{align-items:center;min-width:0;display:flex}.meta.svelte-wvg2ho>span:where(.svelte-wvg2ho){white-space:nowrap;flex:none}.meta.svelte-wvg2ho>:where(.svelte-wvg2ho):not(:last-child):after{content:" · "}.meta.svelte-wvg2ho>.dot:where(.svelte-wvg2ho):after{content:none}.meta.svelte-wvg2ho>.run:where(.svelte-wvg2ho),.meta.svelte-wvg2ho>span:where(.svelte-wvg2ho):last-child{text-overflow:ellipsis;flex:0 auto;min-width:0;overflow:hidden}.dot.svelte-wvg2ho{background:var(--app-success);border-radius:50%;flex:none;width:8px;height:8px;margin-right:6px;animation:1.6s ease-in-out infinite svelte-wvg2ho-pulse}@keyframes svelte-wvg2ho-pulse{50%{opacity:.35}}@media (prefers-reduced-motion:reduce){.dot.svelte-wvg2ho{animation:none}}md-dialog.svelte-2k1elc{--md-dialog-container-color:var(--md-sys-color-surface-container-high);--md-dialog-headline-color:var(--md-sys-color-on-surface);--md-dialog-supporting-text-color:var(--md-sys-color-on-surface-variant)}form.svelte-2k1elc{flex-direction:column;gap:16px;min-width:min(360px,70vw);display:flex}.failure.svelte-2k1elc{color:var(--md-sys-color-error);margin:0}section.svelte-1fz71rn{box-sizing:border-box;background:var(--md-sys-color-surface-container-low);border-radius:28px;flex-direction:column;height:100%;min-height:0;padding:16px 12px;display:flex}header.svelte-1fz71rn{flex:none;align-items:center;padding:0 4px 8px 0;display:flex}section.collapsed.svelte-1fz71rn{align-items:flex-start}.collapsed.svelte-1fz71rn header:where(.svelte-1fz71rn){flex-direction:column;padding:0}.visually-hidden.svelte-1fz71rn{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}h2.svelte-1fz71rn{font-size:var(--md-sys-typescale-title-medium-size,16px);flex:1;margin:0 0 0 8px;font-weight:500}.start.svelte-1fz71rn{--md-icon-button-icon-color:var(--md-sys-color-primary);--md-icon-button-hover-icon-color:var(--md-sys-color-primary);--md-icon-button-focus-icon-color:var(--md-sys-color-primary)}.stop.svelte-1fz71rn{--md-icon-button-icon-color:var(--md-sys-color-error);--md-icon-button-hover-icon-color:var(--md-sys-color-error);--md-icon-button-focus-icon-color:var(--md-sys-color-error)}ul.svelte-1fz71rn{flex-direction:column;flex:1;gap:4px;min-height:0;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}ul.outside.svelte-1fz71rn{border-top:1px solid var(--md-sys-color-outline-variant);flex:none;margin-top:auto;padding-top:8px;overflow:visible}.empty.svelte-1fz71rn{color:var(--md-sys-color-on-surface-variant);margin:0;padding:8px 16px}.monitor.svelte-1uha8ag{height:100%;padding:var(--app-gutter) 0;align-items:stretch;gap:16px;display:flex}aside.svelte-1uha8ag{width:var(--app-sessions-width);flex:none;min-height:0;transition:width .2s}aside.collapsed.svelte-1uha8ag{width:var(--app-sessions-collapsed-width)}@media (prefers-reduced-motion:reduce){aside.svelte-1uha8ag{transition:none}}.log.svelte-1uha8ag{flex:1;min-width:0}
@@ -1,37 +0,0 @@
1
- import{F as e,I as t,L as n,T as r}from"./CcBdu3S8.js";import{o as i}from"./Dg9MaatX.js";function a(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var o=e=>(t,n)=>{n===void 0?customElements.define(e,t):n.addInitializer(()=>{customElements.define(e,t)})},s=globalThis,c=s.ShadowRoot&&(s.ShadyCSS===void 0||s.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,l=Symbol(),u=new WeakMap,d=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==l)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(c&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=u.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&u.set(t,e))}return e}toString(){return this.cssText}},ee=e=>new d(typeof e==`string`?e:e+``,void 0,l),f=(e,...t)=>new d(e.length===1?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(typeof e==`number`)return e;throw Error(`Value passed to 'css' function must be a 'css' function result: `+e+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(n)+e[r+1],e[0]),e,l),te=(e,t)=>{if(c)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of t){let t=document.createElement(`style`),r=s.litNonce;r!==void 0&&t.setAttribute(`nonce`,r),t.textContent=n.cssText,e.appendChild(t)}},ne=c?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return ee(t)})(e):e,{is:re,defineProperty:ie,getOwnPropertyDescriptor:ae,getOwnPropertyNames:oe,getOwnPropertySymbols:se,getPrototypeOf:ce}=Object,p=globalThis,le=p.trustedTypes,ue=le?le.emptyScript:``,de=p.reactiveElementPolyfillSupport,m=(e,t)=>e,fe={toAttribute(e,t){switch(t){case Boolean:e=e?ue:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},pe=(e,t)=>!re(e,t),me={attribute:!0,type:String,converter:fe,reflect:!1,useDefault:!1,hasChanged:pe};Symbol.metadata??=Symbol(`metadata`),p.litPropertyMetadata??=new WeakMap;var h=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=me){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&ie(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=ae(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let a=r?.call(this);i?.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??me}static _$Ei(){if(this.hasOwnProperty(m(`elementProperties`)))return;let e=ce(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(m(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(m(`properties`))){let e=this.properties,t=[...oe(e),...se(e)];for(let n of t)this.createProperty(n,e[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(ne(e))}else e!==void 0&&t.push(ne(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?void 0:typeof n==`string`?n:typeof e==`string`?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return te(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&!0===n.reflect){let i=(n.converter?.toAttribute===void 0?fe:n.converter).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let e=n.getPropertyOptions(r),i=typeof e.converter==`function`?{fromAttribute:e.converter}:e.converter?.fromAttribute===void 0?fe:e.converter;this._$Em=r;let a=i.fromAttribute(t,e.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(e,t,n,r=!1,i){if(e!==void 0){let a=this.constructor;if(!1===r&&(i=this[e]),n??=a.getPropertyOptions(e),!((n.hasChanged??pe)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==i||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||r===void 0||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};h.elementStyles=[],h.shadowRootOptions={mode:`open`},h[m(`elementProperties`)]=new Map,h[m(`finalized`)]=new Map,de?.({ReactiveElement:h}),(p.reactiveElementVersions??=[]).push(`2.1.2`);var he={attribute:!0,type:String,converter:fe,reflect:!1,hasChanged:pe},ge=(e=he,t,n)=>{let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e,!0,n)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e,!0,n)}}throw Error(`Unsupported decorator location: `+r)};function g(e){return(t,n)=>typeof n==`object`?ge(e,t,n):((e,t,n)=>{let r=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function _(e){return g({...e,state:!0,attribute:!1})}var _e=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&typeof t!=`object`&&Object.defineProperty(e,t,n),n);function ve(e,t){return(n,r,i)=>{let a=t=>t.renderRoot?.querySelector(e)??null;if(t){let{get:e,set:t}=typeof r==`object`?n:i??(()=>{let e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return _e(n,r,{get(){let n=e.call(this);return n===void 0&&(n=a(this),(n!==null||this.hasUpdated)&&t.call(this,n)),n}})}return _e(n,r,{get(){return a(this)}})}}var ye=globalThis,be=e=>e,xe=ye.trustedTypes,Se=xe?xe.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,Ce=`$lit$`,v=`lit$${Math.random().toFixed(9).slice(2)}$`,we=`?`+v,Te=`<${we}>`,y=document,b=()=>y.createComment(``),x=e=>e===null||typeof e!=`object`&&typeof e!=`function`,Ee=Array.isArray,De=e=>Ee(e)||typeof e?.[Symbol.iterator]==`function`,Oe=`[
2
- \f\r]`,S=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ke=/-->/g,Ae=/>/g,C=RegExp(`>|${Oe}(?:([^\\s"'>=/]+)(${Oe}*=${Oe}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),je=/'/g,Me=/"/g,Ne=/^(?:script|style|textarea|title)$/i,w=(e=>(t,...n)=>({_$litType$:e,strings:t,values:n}))(1),T=Symbol.for(`lit-noChange`),E=Symbol.for(`lit-nothing`),Pe=new WeakMap,D=y.createTreeWalker(y,129);function Fe(e,t){if(!Ee(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return Se===void 0?t:Se.createHTML(t)}var Ie=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=S;for(let t=0;t<n;t++){let n=e[t],s,c,l=-1,u=0;for(;u<n.length&&(o.lastIndex=u,c=o.exec(n),c!==null);)u=o.lastIndex,o===S?c[1]===`!--`?o=ke:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=C):(Ne.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=C):o=Ae:o===C?c[0]===`>`?(o=i??S,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?C:c[3]===`"`?Me:je):o===Me||o===je?o=C:o===ke||o===Ae?o=S:(o=C,i=void 0);let d=o===C&&e[t+1].startsWith(`/>`)?` `:``;a+=o===S?n+Te:l>=0?(r.push(s),n.slice(0,l)+Ce+n.slice(l)+v+d):n+v+(l===-2?t:d)}return[Fe(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]},Le=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,u]=Ie(t,n);if(this.el=e.createElement(l,r),D.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=D.nextNode())!==null&&c.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith(Ce)){let t=u[o++],n=i.getAttribute(e).split(v),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?Be:r[1]===`?`?Ve:r[1]===`@`?He:k}),i.removeAttribute(e)}else e.startsWith(v)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(Ne.test(i.tagName)){let e=i.textContent.split(v),t=e.length-1;if(t>0){i.textContent=xe?xe.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],b()),D.nextNode(),c.push({type:2,index:++a});i.append(e[t],b())}}}else if(i.nodeType===8){if(i.data===we)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(v,e+1))!==-1;)c.push({type:7,index:a}),e+=v.length-1}}a++}}static createElement(e,t){let n=y.createElement(`template`);return n.innerHTML=e,n}};function O(e,t,n=e,r){if(t===T)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=x(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,n,r)),r===void 0?n._$Cl=i:(n._$Co??=[])[r]=i),i!==void 0&&(t=O(e,i._$AS(e,t.values),i,r)),t}var Re=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??y).importNode(t,!0);D.currentNode=r;let i=D.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new ze(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new Ue(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=D.nextNode(),a++)}return D.currentNode=y,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},ze=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=O(this,e,t),x(e)?e===E||e==null||e===``?(this._$AH!==E&&this._$AR(),this._$AH=E):e!==this._$AH&&e!==T&&this._(e):e._$litType$===void 0?e.nodeType===void 0?De(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==E&&x(this._$AH)?this._$AA.nextSibling.data=e:this.T(y.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r=typeof n==`number`?this._$AC(e):(n.el===void 0&&(n.el=Le.createElement(Fe(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new Re(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=Pe.get(e.strings);return t===void 0&&Pe.set(e.strings,t=new Le(e)),t}k(t){Ee(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(b()),this.O(b()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=be(e).nextSibling;be(e).remove(),e=t}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},k=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=E,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=E}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=O(this,e,t,0),a=!x(e)||e!==this._$AH&&e!==T,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=O(this,r[n+o],t,o),s===T&&(s=this._$AH[o]),a||=!x(s)||s!==this._$AH[o],s===E?e=E:e!==E&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},Be=class extends k{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===E?void 0:e}},Ve=class extends k{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==E)}},He=class extends k{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=O(this,e,t,0)??E)===T)return;let n=this._$AH,r=e===E&&n!==E||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==E&&(n===E||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH==`function`?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ue=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){O(this,e)}},We={M:Ce,P:v,A:we,C:1,L:Ie,R:Re,D:De,V:O,I:ze,H:k,N:Ve,U:He,B:Be,F:Ue},Ge=ye.litHtmlPolyfillSupport;Ge?.(Le,ze),(ye.litHtmlVersions??=[]).push(`3.3.3`);var Ke=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new ze(t.insertBefore(b(),e),e,void 0,n??{})}return i._$AI(e),i},qe=globalThis,A=class extends h{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ke(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return T}};A._$litElement$=!0,A.finalized=!0,qe.litElementHydrateSupport?.({LitElement:A});var Je=qe.litElementPolyfillSupport;Je?.({LitElement:A}),(qe.litElementVersions??=[]).push(`4.2.2`);var Ye=class extends A{render(){return w`<slot></slot>`}connectedCallback(){super.connectedCallback(),this.getAttribute(`aria-hidden`)===`false`?this.removeAttribute(`aria-hidden`):this.setAttribute(`aria-hidden`,`true`)}},Xe=f`:host{font-size:var(--md-icon-size, 24px);width:var(--md-icon-size, 24px);height:var(--md-icon-size, 24px);color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--md-icon-font, Material Symbols Outlined);display:inline-flex;font-style:normal;place-items:center;place-content:center;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;flex-shrink:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%}
3
- `;Xe.styleSheet;var Ze=class extends Ye{};Ze.styles=[Xe],Ze=a([o(`md-icon`)],Ze);var Qe=Symbol(`attachableController`),$e=new MutationObserver(e=>{for(let t of e)t.target[Qe]?.hostConnected()}),et=class{get htmlFor(){return this.host.getAttribute(`for`)}set htmlFor(e){e===null?this.host.removeAttribute(`for`):this.host.setAttribute(`for`,e)}get control(){return this.host.hasAttribute(`for`)?!this.htmlFor||!this.host.isConnected?null:this.host.getRootNode().querySelector(`#${this.htmlFor}`):this.currentControl||this.host.parentElement}set control(e){e?this.attach(e):this.detach()}constructor(e,t){this.host=e,this.onControlChange=t,this.currentControl=null,e.addController(this),e[Qe]=this,$e?.observe(e,{attributeFilter:[`for`]})}attach(e){e!==this.currentControl&&(this.setCurrentControl(e),this.host.removeAttribute(`for`))}detach(){this.setCurrentControl(null),this.host.setAttribute(`for`,``)}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(e){this.onControlChange(this.currentControl,e),this.currentControl=e}},tt=[`focusin`,`focusout`,`pointerdown`],nt=class extends A{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new et(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute(`aria-hidden`,`true`)}handleEvent(e){if(!e[rt]){switch(e.type){default:return;case`focusin`:this.visible=this.control?.matches(`:focus-visible`)??!1;break;case`focusout`:case`pointerdown`:this.visible=!1}e[rt]=!0}}onControlChange(e,t){for(let n of tt)e?.removeEventListener(n,this),t?.addEventListener(n,this)}update(e){e.has(`visible`)&&this.dispatchEvent(new Event(`visibility-changed`)),super.update(e)}};a([g({type:Boolean,reflect:!0})],nt.prototype,`visible`,void 0),a([g({type:Boolean,reflect:!0})],nt.prototype,`inward`,void 0);var rt=Symbol(`handledByFocusRing`),it=f`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
4
- `;it.styleSheet;var at=class extends nt{};at.styles=[it],at=a([o(`md-focus-ring`)],at);var ot={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},st=e=>(...t)=>({_$litDirective$:e,values:t}),ct=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},lt=st(class extends ct{constructor(e){if(super(e),e.type!==ot.ATTRIBUTE||e.name!==`class`||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return` `+Object.keys(e).filter(t=>e[t]).join(` `)+` `}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(` `).split(/\s/).filter(e=>e!==``)));for(let e in t)t[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(t)}let n=e.element.classList;for(let e of this.st)e in t||(n.remove(e),this.st.delete(e));for(let e in t){let r=!!t[e];r===this.st.has(e)||this.nt?.has(e)||(r?(n.add(e),this.st.add(e)):(n.remove(e),this.st.delete(e)))}return T}}),ut={STANDARD:`cubic-bezier(0.2, 0, 0, 1)`,STANDARD_ACCELERATE:`cubic-bezier(.3,0,1,1)`,STANDARD_DECELERATE:`cubic-bezier(0,0,0,1)`,EMPHASIZED:`cubic-bezier(.3,0,0,1)`,EMPHASIZED_ACCELERATE:`cubic-bezier(.3,0,.8,.15)`,EMPHASIZED_DECELERATE:`cubic-bezier(.05,.7,.1,1)`},dt=450,ft=225,pt=.2,mt=10,ht=75,gt=.35,_t=`::after`,vt=`forwards`,j;(function(e){e[e.INACTIVE=0]=`INACTIVE`,e[e.TOUCH_DELAY=1]=`TOUCH_DELAY`,e[e.HOLDING=2]=`HOLDING`,e[e.WAITING_FOR_CLICK=3]=`WAITING_FOR_CLICK`})(j||={});var yt=[`click`,`contextmenu`,`pointercancel`,`pointerdown`,`pointerenter`,`pointerleave`,`pointerup`],bt=150,xt=window.matchMedia(`(forced-colors: active)`),M=class extends A{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize=``,this.rippleScale=``,this.initialSize=0,this.state=j.INACTIVE,this.attachableController=new et(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute(`aria-hidden`,`true`)}render(){return w`<div class="surface ${lt({hovered:this.hovered,pressed:this.pressed})}"></div>`}update(e){e.has(`disabled`)&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(e)}handlePointerenter(e){this.shouldReactToEvent(e)&&(this.hovered=!0)}handlePointerleave(e){this.shouldReactToEvent(e)&&(this.hovered=!1,this.state!==j.INACTIVE&&this.endPressAnimation())}handlePointerup(e){this.shouldReactToEvent(e)&&(this.state===j.HOLDING?this.state=j.WAITING_FOR_CLICK:this.state===j.TOUCH_DELAY&&(this.state=j.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent)))}async handlePointerdown(e){this.shouldReactToEvent(e)&&(this.rippleStartEvent=e,this.isTouch(e)?(this.state=j.TOUCH_DELAY,await new Promise(e=>{setTimeout(e,bt)}),this.state===j.TOUCH_DELAY&&(this.state=j.HOLDING,this.startPressAnimation(e))):(this.state=j.WAITING_FOR_CLICK,this.startPressAnimation(e)))}handleClick(){this.disabled||(this.state===j.WAITING_FOR_CLICK?this.endPressAnimation():this.state===j.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation()))}handlePointercancel(e){this.shouldReactToEvent(e)&&this.endPressAnimation()}handleContextmenu(){this.disabled||this.endPressAnimation()}determineRippleSize(){let{height:e,width:t}=this.getBoundingClientRect(),n=Math.max(e,t),r=Math.max(gt*n,ht),i=this.currentCSSZoom??1,a=Math.floor(n*pt/i),o=Math.sqrt(t**2+e**2)+mt;this.initialSize=a;let s=(o+r)/a;this.rippleScale=`${s/i}`,this.rippleSize=`${a}px`}getNormalizedPointerEventCoords(e){let{scrollX:t,scrollY:n}=window,{left:r,top:i}=this.getBoundingClientRect(),a=t+r,o=n+i,{pageX:s,pageY:c}=e,l=this.currentCSSZoom??1;return{x:(s-a)/l,y:(c-o)/l}}getTranslationCoordinates(e){let{height:t,width:n}=this.getBoundingClientRect(),r=this.currentCSSZoom??1,i={x:(n/r-this.initialSize)/2,y:(t/r-this.initialSize)/2},a;return a=e instanceof PointerEvent?this.getNormalizedPointerEventCoords(e):{x:n/r/2,y:t/r/2},a={x:a.x-this.initialSize/2,y:a.y-this.initialSize/2},{startPoint:a,endPoint:i}}startPressAnimation(e){if(!this.mdRoot)return;this.pressed=!0,this.growAnimation?.cancel(),this.determineRippleSize();let{startPoint:t,endPoint:n}=this.getTranslationCoordinates(e),r=`${t.x}px, ${t.y}px`,i=`${n.x}px, ${n.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${r}) scale(1)`,`translate(${i}) scale(${this.rippleScale})`]},{pseudoElement:_t,duration:dt,easing:ut.STANDARD,fill:vt})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=j.INACTIVE;let e=this.growAnimation,t=1/0;typeof e?.currentTime==`number`?t=e.currentTime:e?.currentTime&&(t=e.currentTime.to(`ms`).value),t>=ft?this.pressed=!1:(await new Promise(e=>{setTimeout(e,ft-t)}),this.growAnimation===e&&(this.pressed=!1))}shouldReactToEvent(e){if(this.disabled||!e.isPrimary||this.rippleStartEvent&&this.rippleStartEvent.pointerId!==e.pointerId)return!1;if(e.type===`pointerenter`||e.type===`pointerleave`)return!this.isTouch(e);let t=e.buttons===1;return this.isTouch(e)||t}isTouch({pointerType:e}){return e===`touch`}async handleEvent(e){if(!xt?.matches)switch(e.type){case`click`:this.handleClick();break;case`contextmenu`:this.handleContextmenu();break;case`pointercancel`:this.handlePointercancel(e);break;case`pointerdown`:await this.handlePointerdown(e);break;case`pointerenter`:this.handlePointerenter(e);break;case`pointerleave`:this.handlePointerleave(e);break;case`pointerup`:this.handlePointerup(e)}}onControlChange(e,t){for(let n of yt)e?.removeEventListener(n,this),t?.addEventListener(n,this)}};a([g({type:Boolean,reflect:!0})],M.prototype,`disabled`,void 0),a([_()],M.prototype,`hovered`,void 0),a([_()],M.prototype,`pressed`,void 0),a([ve(`.surface`)],M.prototype,`mdRoot`,void 0);var St=f`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}
5
- `;St.styleSheet;var Ct=class extends M{};Ct.styles=[St],Ct=a([o(`md-ripple`)],Ct);var wt=Symbol.for(``),Tt=e=>{if(e?.r===wt)return e?._$litStatic$},Et=(e,...t)=>({_$litStatic$:t.reduce((t,n,r)=>t+(e=>{if(e._$litStatic$!==void 0)return e._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(n)+e[r+1],e[0]),r:wt}),Dt=new Map,Ot=(e=>(t,...n)=>{let r=n.length,i,a,o=[],s=[],c,l=0,u=!1;for(;l<r;){for(c=t[l];l<r&&(a=n[l],(i=Tt(a))!==void 0);)c+=i+t[++l],u=!0;l!==r&&s.push(a),o.push(c),l++}if(l===r&&o.push(t[r]),u){let e=o.join(`$$lit$$`);(t=Dt.get(e))===void 0&&(o.raw=o,Dt.set(e,t=o)),n=s}return e(t,...n)})(w),kt=`role.ariaAtomic.ariaAutoComplete.ariaBusy.ariaChecked.ariaColCount.ariaColIndex.ariaColSpan.ariaCurrent.ariaDisabled.ariaExpanded.ariaHasPopup.ariaHidden.ariaInvalid.ariaKeyShortcuts.ariaLabel.ariaLevel.ariaLive.ariaModal.ariaMultiLine.ariaMultiSelectable.ariaOrientation.ariaPlaceholder.ariaPosInSet.ariaPressed.ariaReadOnly.ariaRequired.ariaRoleDescription.ariaRowCount.ariaRowIndex.ariaRowSpan.ariaSelected.ariaSetSize.ariaSort.ariaValueMax.ariaValueMin.ariaValueNow.ariaValueText`.split(`.`),At=kt.map(Mt);function jt(e){return At.includes(e)}function Mt(e){return e.replace(`aria`,`aria-`).replace(/Elements?/g,``).toLowerCase()}var Nt=Symbol(`privateIgnoreAttributeChangesFor`);function Pt(e){var t;class n extends e{constructor(){super(...arguments),this[t]=new Set}attributeChangedCallback(e,t,n){if(!jt(e)){super.attributeChangedCallback(e,t,n);return}if(this[Nt].has(e))return;this[Nt].add(e),this.removeAttribute(e),this[Nt].delete(e);let r=Lt(e);n===null?delete this.dataset[r]:this.dataset[r]=n,this.requestUpdate(Lt(e),t)}getAttribute(e){return jt(e)?super.getAttribute(It(e)):super.getAttribute(e)}removeAttribute(e){super.removeAttribute(e),jt(e)&&(super.removeAttribute(It(e)),this.requestUpdate())}}return t=Nt,Ft(n),n}function Ft(e){for(let t of kt){let n=Mt(t),r=It(n),i=Lt(n);e.createProperty(t,{attribute:n,noAccessor:!0}),e.createProperty(Symbol(r),{attribute:r,noAccessor:!0}),Object.defineProperty(e.prototype,t,{configurable:!0,enumerable:!0,get(){return this.dataset[i]??null},set(e){let n=this.dataset[i]??null;e!==n&&(e===null?delete this.dataset[i]:this.dataset[i]=e,this.requestUpdate(t,n))}})}}function It(e){return`data-${e}`}function Lt(e){return e.replace(/-\w/,e=>e[1].toUpperCase())}function Rt(e,t=!0){return t&&getComputedStyle(e).getPropertyValue(`direction`).trim()===`rtl`}var zt=Symbol(`dispatchHooks`);function Bt(e,t){let n=e[zt];if(!n)throw Error(`'${e.type}' event needs setupDispatchHooks().`);n.addEventListener(`after`,t,{once:!0})}var Vt=new WeakMap;function Ht(e,...t){let n=Vt.get(e);n||(n=new Set,Vt.set(e,n));for(let r of t)n.has(r)||(e.addEventListener(r,e=>{let t=new EventTarget;e[zt]=t;let n=new AbortController,i=()=>{n.abort(),t.dispatchEvent(new Event(`after`))},a=e=>function(){e.call(this),i()};e.stopPropagation=a(e.stopPropagation),e.stopImmediatePropagation=a(e.stopImmediatePropagation);let o=e.composedPath(),s;s=e.composed&&e.bubbles?o[o.length-1]:e.bubbles?o[0].getRootNode():o[0],s.addEventListener(r,()=>{i()},{once:!0,signal:n.signal})},{capture:!0}),n.add(r))}var N=Symbol(`internals`),Ut=Symbol(`privateInternals`);function Wt(e){class t extends e{get[N](){return this[Ut]||(this[Ut]=this.attachInternals()),this[Ut]}}return t}var Gt=Symbol(`getFormValue`),Kt=Symbol(`getFormState`);function qt(e){class t extends e{get form(){return this[N].form}get labels(){return this[N].labels}get name(){return this.getAttribute(`name`)??``}set name(e){this.setAttribute(`name`,e)}get disabled(){return this.hasAttribute(`disabled`)}set disabled(e){this.toggleAttribute(`disabled`,!!e)}attributeChangedCallback(e,t,n){if(e===`name`||e===`disabled`){let n=e===`disabled`?t!==null:t;this.requestUpdate(e,n)}else super.attributeChangedCallback(e,t,n)}requestUpdate(e,t,n){super.requestUpdate(e,t,n),this[N].setFormValue(this[Gt](),this[Kt]())}[Gt](){return this.getAttribute(`value`)}[Kt](){return this[Gt]()}formDisabledCallback(e){this.disabled=e}}return t.formAssociated=!0,a([g({noAccessor:!0})],t.prototype,`name`,null),a([g({type:Boolean,noAccessor:!0})],t.prototype,`disabled`,null),t}function Jt(e){class t extends e{get name(){return this.getAttribute(`name`)??``}set name(e){this.setAttribute(`name`,e)}constructor(...e){super(...e),this.type=`submit`,this.value=``,Ht(this,`click`),this.addEventListener(`click`,async e=>{let t=this.type===`reset`,n=this.type===`submit`,r=this[N],{form:i}=r;i&&(n||t)&&Bt(e,()=>{e.defaultPrevented||(t?i.reset():(i.addEventListener(`submit`,e=>{Object.defineProperty(e,"submitter",{configurable:!0,enumerable:!0,get:()=>this})},{capture:!0,once:!0}),r.setFormValue(this.value),i.requestSubmit()))})})}}return a([g()],t.prototype,`type`,void 0),a([g({reflect:!0})],t.prototype,`value`,void 0),t}var Yt=Pt(Jt(qt(Wt(A)))),P=class extends Yt{constructor(){super(),this.softDisabled=!1,this.flipIconInRtl=!1,this.href=``,this.download=``,this.target=``,this.ariaLabelSelected=``,this.toggle=!1,this.selected=!1,this.flipIcon=Rt(this,this.flipIconInRtl),Ht(this,`click`),this.addEventListener(`click`,e=>{if(this.softDisabled||this.disabled&&this.href){e.stopImmediatePropagation(),e.preventDefault();return}let t=this.selected;Bt(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?Et`div`:Et`button`,{ariaLabel:t,ariaHasPopup:n,ariaExpanded:r}=this,i=t&&this.ariaLabelSelected,a=this.toggle?this.selected:E,o=E;return this.href||(o=i&&this.selected?this.ariaLabelSelected:t),Ot`<${e}
6
- class="icon-button ${lt(this.getRenderClasses())}"
7
- id="button"
8
- aria-label="${o||E}"
9
- aria-haspopup="${!this.href&&n||E}"
10
- aria-expanded="${!this.href&&r||E}"
11
- aria-pressed="${a}"
12
- aria-disabled=${!this.href&&this.softDisabled||E}
13
- ?disabled="${!this.href&&this.disabled}">
14
- ${this.renderFocusRing()}
15
- ${this.renderRipple()}
16
- ${this.selected?E:this.renderIcon()}
17
- ${this.selected?this.renderSelectedIcon():E}
18
- ${this.href?this.renderLink():this.renderTouchTarget()}
19
- </${e}>`}renderLink(){let{ariaLabel:e}=this;return w`
20
- <a
21
- class="link"
22
- id="link"
23
- href="${this.href}"
24
- download="${this.download||E}"
25
- target="${this.target||E}"
26
- aria-label="${e||E}">
27
- ${this.renderTouchTarget()}
28
- </a>
29
- `}getRenderClasses(){return{"flip-icon":this.flipIcon,selected:this.toggle&&this.selected}}renderIcon(){return w`<span class="icon"><slot></slot></span>`}renderSelectedIcon(){return w`<span class="icon icon--selected"
30
- ><slot name="selected"><slot></slot></slot
31
- ></span>`}renderTouchTarget(){return w`<span class="touch"></span>`}renderFocusRing(){return w`<md-focus-ring
32
- part="focus-ring"
33
- for=${this.href?`link`:`button`}></md-focus-ring>`}renderRipple(){let e=!this.href&&(this.disabled||this.softDisabled);return w`<md-ripple
34
- for=${this.href?`link`:E}
35
- ?disabled="${e}"></md-ripple>`}connectedCallback(){this.flipIcon=Rt(this,this.flipIconInRtl),super.connectedCallback()}};P.shadowRootOptions={mode:`open`,delegatesFocus:!0},a([g({type:Boolean,attribute:`soft-disabled`,reflect:!0})],P.prototype,`softDisabled`,void 0),a([g({type:Boolean,attribute:`flip-icon-in-rtl`})],P.prototype,`flipIconInRtl`,void 0),a([g()],P.prototype,`href`,void 0),a([g()],P.prototype,`download`,void 0),a([g()],P.prototype,`target`,void 0),a([g({attribute:`aria-label-selected`})],P.prototype,`ariaLabelSelected`,void 0),a([g({type:Boolean})],P.prototype,`toggle`,void 0),a([g({type:Boolean,reflect:!0})],P.prototype,`selected`,void 0),a([_()],P.prototype,`flipIcon`,void 0);var Xt=f`: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}}
36
- `;Xt.styleSheet;var Zt=f`: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)}
37
- `;Zt.styleSheet;var Qt=class extends P{getRenderClasses(){return{...super.getRenderClasses(),standard:!0}}};Qt.styles=[Xt,Zt],Qt=a([o(`md-icon-button`)],Qt);var $t=`light`;function en(e){return e===`light`||e===`dark`?e:null}function tn(e){return e===`light`?`dark`:`light`}var nn=`sr-theme`,rn=class{read(){try{return en(localStorage.getItem(nn))}catch{return null}}write(e){document.documentElement.dataset.theme=e;try{localStorage.setItem(nn,e)}catch{}}},an={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function on(e){return e?{lang:e?.lang??void 0,message:e?.message,abortEarly:e?.abortEarly??void 0,abortPipeEarly:e?.abortPipeEarly??void 0}:an}function F(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 I(e,t,n,r,i){let a=i&&`input`in i?i.input:n.value,o=i?.expected??e.expects??null,s=i?.received??F(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 sn(e,t){let n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??`never`}function L(e){return e[`~standard`]={version:1,vendor:`valibot`,validate:t=>e[`~run`]({value:t},on())},e}function cn(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 ln=/^\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 un(e,t){return{kind:`validation`,type:`check`,reference:un,async:!1,expects:null,requirement:e,message:t,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&I(this,`input`,e,t),e}}}function R(e){return{kind:`metadata`,type:`description`,reference:R,description:e}}function z(e){return{kind:`metadata`,type:`examples`,reference:z,examples:e}}function B(e){return{kind:`validation`,type:`integer`,reference:B,async:!1,expects:null,requirement:Number.isInteger,message:e,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&I(this,`integer`,e,t),e}}}function dn(e){return{kind:`validation`,type:`iso_timestamp`,reference:dn,async:!1,expects:null,requirement:ln,message:e,"~run"(e,t){return e.typed&&!this.requirement.test(e.value)&&I(this,`timestamp`,e,t),e}}}function fn(e,t){return{kind:`validation`,type:`max_value`,reference:fn,async:!1,expects:`<=${e instanceof Date?e.toJSON():F(e)}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!(e.value<=this.requirement)&&I(this,`value`,e,t,{received:e.value instanceof Date?e.value.toJSON():F(e.value)}),e}}}function V(e,t){return{kind:`validation`,type:`min_value`,reference:V,async:!1,expects:`>=${e instanceof Date?e.toJSON():F(e)}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!(e.value>=this.requirement)&&I(this,`value`,e,t,{received:e.value instanceof Date?e.value.toJSON():F(e.value)}),e}}}function H(e,t){return{kind:`validation`,type:`regex`,reference:H,async:!1,expects:`${e}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!this.requirement.test(e.value)&&I(this,`format`,e,t),e}}}function pn(e,t,n){return typeof e.fallback==`function`?e.fallback(t,n):e.fallback}function mn(e,t,n){return typeof e.default==`function`?e.default(t,n):e.default}function hn(e,t){return L({kind:`schema`,type:`array`,reference:hn,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 I(this,`type`,e,t);return e}})}function U(e){return L({kind:`schema`,type:`boolean`,reference:U,expects:`boolean`,async:!1,message:e,"~run"(e,t){return typeof e.value==`boolean`?e.typed=!0:I(this,`type`,e,t),e}})}function W(e,t){return L({kind:`schema`,type:`nullable`,reference:W,expects:`(${e.expects} | null)`,async:!1,wrapped:e,default:t,"~run"(e,t){return e.value===null&&(this.default!==void 0&&(e.value=mn(this,e,t)),e.value===null)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}})}function G(e){return L({kind:`schema`,type:`number`,reference:G,expects:`number`,async:!1,message:e,"~run"(e,t){return typeof e.value==`number`&&!isNaN(e.value)?e.typed=!0:I(this,`type`,e,t),e}})}function K(e,t){return L({kind:`schema`,type:`object`,reference:K,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]:mn(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]=pn(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(I(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 I(this,`type`,e,t);return e}})}function gn(e,t){return L({kind:`schema`,type:`optional`,reference:gn,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,"~run"(e,t){return e.value===void 0&&(this.default!==void 0&&(e.value=mn(this,e,t)),e.value===void 0)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}})}function _n(e,t){return L({kind:`schema`,type:`picklist`,reference:_n,expects:sn(e.map(F),`|`),async:!1,options:e,message:t,"~run"(e,t){return this.options.includes(e.value)?e.typed=!0:I(this,`type`,e,t),e}})}function vn(e,t){return L({kind:`schema`,type:`strict_object`,reference:vn,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]:mn(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]=pn(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(I(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)){I(this,`key`,e,t,{input:r,expected:`never`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]});break}}}else I(this,`type`,e,t);return e}})}function q(e){return L({kind:`schema`,type:`string`,reference:q,expects:`string`,async:!1,message:e,"~run"(e,t){return typeof e.value==`string`?e.typed=!0:I(this,`type`,e,t),e}})}function J(...e){return L({...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 yn(e,t,n){let r=e[`~run`]({value:t},on(n));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}var Y={list:{default:1e3,max:1e4},wait:{timeoutMs:{default:5e3,max:3e5},seen:1e3,regexLength:500},markerLength:1e3,sessionLabelLength:1e3,input:{coordinate:1e5,delayMs:{default:50,max:1e4},maxKeys:100}},bn={port:{min:0,max:65535},maxLineBytes:{min:1024,max:16777216},maxEntries:{min:1,max:1e6}},xn=/^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$/,Sn=/^(\*|[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?)$/,Cn=(e,t)=>{let n=e.trim();return n!==``&&n.length<=t};function wn(e){try{return!new TextDecoder(e).encoding.startsWith(`utf-16`)}catch{return!1}}var Tn=[`error`,`warn`,`info`,`debug`],En=({min:e,max:t})=>J(G(),B(),V(e),fn(t)),Dn=En(bn.port),On=En({min:1,max:bn.port.max}),kn=J(q(),H(/\S/),R(`Not empty or blank.`)),An=J(hn(J(q(),H(Sn))),R('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.')),jn=K({enabled:U(),port:On,version:J(W(J(q(),H(xn))),R("`null` = bundled version. Otherwise an exact version like `1.65.0`."))}),X={tcp:{host:kn,port:Dn,encoding:J(q(),un(wn),R("TextDecoder label of the socket voice's code page. Not `utf-16*`: lines are split on bytes.")),maxLineBytes:En(bn.maxLineBytes)},http:{host:kn,port:Dn,allowedHosts:An},buffer:{maxEntries:En(bn.maxEntries)},log:{level:_n(Tn),file:J(W(kn),R("Bridge log file, `null` = default path.")),consoleSpeech:J(U(),R(`Also write the speech text to the console.`))}};X.tcp,X.http,X.buffer,X.log;var Z=e=>vn(Object.fromEntries(Object.entries(e).map(([e,t])=>[e,gn(t)])));Z(jn.entries),Z({enabled:U(),port:On}),Z(X.tcp),Z(X.http),Z(X.buffer),Z(X.log);var{coordinate:Mn,delayMs:Nn,maxKeys:Pn}=Y.input;-Mn,-Mn,`${Pn}`,Nn.max,`${Nn.default}`;var Q=e=>J(G(),B(),V(e)),Fn=J(q(),dn()),In=e=>J(q(),un(e=>Cn(e,Y.sessionLabelLength)),R(`${e} Trimmed, must not be empty, at most ${Y.sessionLabelLength} characters.`)),Ln={id:J(Q(1),R(`Increasing, restarts at 1 with the bridge.`)),name:q(),run:J(W(q()),R(`Optional label that groups sessions.`)),client:J(W(q()),R("Who started it: the `X-SR-Speech-Client` header, `null` if it wasn't sent. Added in API 1.10.")),startedAt:Fn,endedAt:J(W(Fn),R("`null` while the session is current.")),startSeq:J(Q(0),R("The last `seq` given out before the session started: `since=startSeq` reads the session from its start. Added in API 1.9.")),firstSeq:J(W(Q(1)),R("First entry still in the buffer, `null` if none.")),lastSeq:J(W(Q(1)),R("Last entry still in the buffer, `null` if none.")),entries:J(Q(0),R(`Entries of this session still in the buffer.`))},Rn=J(K(Ln),R(`A session (docs/usage/speech-capture.md#sessions). Added in API 1.3.`),z([{id:7,name:`form › submit button is announced`,run:`nightly-42`,client:`ci-runner pid 4242`,startedAt:`2026-11-12T09:31:04.120Z`,endedAt:null,startSeq:339,firstSeq:340,lastSeq:342,entries:3}]));In(`For example the test title.`),In(`Optional label that groups sessions, for example one per test run.`);var zn=J(K({...Ln,replaced:J(W(Rn),R("The session this start ended if another client had started it, `null` otherwise. Added in API 1.10."))}),R("`POST /sessions`: the new session, plus `replaced`.")),Bn=J(K({sessions:hn(Rn),currentId:W(Q(1)),outsideEntries:J(Q(0),R("Entries in the buffer that were recorded outside any session (`session=none`). Added in API 1.15."))}),R("`GET /sessions`: the current session and the ended ones with entries in the buffer, newest first, and how many entries lie outside any session."));Y.wait.seen,`${Y.wait.seen}`,`${Y.markerLength}`;var $=e=>J(G(),B(),V(e)),Vn=J(q(),dn()),Hn=[`starting`,`ready`,`stopping`],Un=J(K({state:J(_n([`stopped`,`starting`,`running`,`crashed`,`failed`]),R("`starting` includes the install. `crashed`: it exited and restarts after a delay. `failed`: 5 crashes in a row; restart the bridge (or change the service's settings).")),version:J(q(),R(`The version that runs (configured or bundled).`),z([`1.65.0`])),port:$(0),restarts:J($(0),R(`Restarts after crashes since the service was last started (bridge start or config change).`)),exitCode:J(W(J(G(),B())),R("Exit code of the last unexpected exit. `null` if none, or killed by a signal."))}),R(`A child service (docs/usage/operations.md#child-service-crashes).`)),Wn=K({id:$(1),voice:W(q()),connectedAt:Vn}),Gn=J(K({bridge:K({version:J(q(),R(`Package version of the bridge.`),z([`0.3.0`])),apiVersion:J(q(),R("`<major>.<minor>` of this API."),z([`1.13`])),state:_n(Hn),startedAt:J(Vn,R(`When this bridge run started. Added in API 1.4.`))}),tcp:K({listening:U(),host:q(),port:$(0),encoding:J(q(),R(`Code page used to decode the socket voice.`)),connections:J(hn(Wn),R(`Open connections, oldest first.`))}),buffer:K({size:$(0),maxEntries:$(1),firstSeq:W($(1)),lastSeq:W($(1))}),playwright:Un,mcp:Un,session:J(K({current:W(Rn),count:J($(0),R("Number of sessions `GET /sessions` lists."))}),R(`Added in API 1.3.`))}),R("`GET /status`. `playwright` since API 1.1, `mcp` since 1.2, `session` since 1.3."));function Kn(e,t){let n=yn(e,t);if(n.success)return{ok:!0,value:n.output};let[r]=n.issues;return{ok:!1,field:cn(r)??`(body)`,message:r.message}}var qn=class{url;constructor(e){this.url=e}list(){return this.send(`GET`,this.url,void 0,Bn)}start(e,t){return this.send(`POST`,this.url,{name:e,run:t},zn)}async end(){await this.send(`POST`,`${this.url}/end`,void 0,void 0)}async send(e,t,n,r){let i=await fetch(t,{method:e,headers:{accept:`application/json`,...n===void 0?{}:{"content-type":`application/json`}},body:n===void 0?void 0:JSON.stringify(n)});if(!i.ok)throw Error(await Jn(i));if(r===void 0)return;let a=Kn(r,await i.json());if(!a.ok)throw Error(`Unexpected answer at ${a.field}: ${a.message}`);return a.value}};async function Jn(e){let t=await e.json().catch(()=>void 0);if(typeof t==`object`&&t&&`message`in t){let{message:e}=t;if(typeof e==`string`)return e}return`The request answered ${e.status}`}var Yn=class{url;constructor(e){this.url=e}async fetch(){let e=await fetch(this.url,{headers:{accept:`application/json`}});if(!e.ok)throw Error(`The status request answered ${e.status}`);let t=Kn(Gn,await e.json());if(!t.ok)throw Error(`Unexpected status at ${t.field}: ${t.message}`);return t.value}};function Xn(e){return e===`1`||e!==`0`&&null}function Zn(e){return e?`1`:`0`}var Qn=`sr-sessions-collapsed`,$n=class{read(){try{return Xn(localStorage.getItem(Qn))}catch{return null}}write(e){try{localStorage.setItem(Qn,Zn(e))}catch{}}};function er(e){let i=n(!1);return{get collapsed(){return r(i)},init(){t(i,e.read()??!1,!0)},toggle(){t(i,!r(i)),e.write(r(i))}}}var tr=3e3;function nr(i){let a=n(e([])),o=n(null),s=n(0),c=n(!0),l=n(!1),u=n(e(Date.now())),d=null;function ee(e){t(a,e.sessions,!0),t(o,e.currentId,!0),t(s,e.outsideEntries,!0),t(u,Date.now(),!0),t(l,!0)}function f(){return d||(d=i.list().then(e=>{ee(e),t(c,!0)}).catch(()=>{t(c,!1)}).finally(()=>{d=null}),d)}async function te(){await d,await f()}return{get sessions(){return r(a)},get currentId(){return r(o)},get outsideEntries(){return r(s)},get loaded(){return r(l)},get reachable(){return r(c)},get now(){return r(u)},init(e){e&&r(a).length===0&&ee(e),f();let n=setInterval(()=>{r(o)!==null&&t(u,Date.now(),!0)},1e3),i=setInterval(()=>void f(),tr);return()=>{clearInterval(n),clearInterval(i)}},async start(e,t){let n=await i.start(e,t);return await te(),n},async end(){await i.end(),await te()}}}function rr(e){let i=n(null),a=n(!0),o=n(!1),s=null;function c(){return s||(t(o,!0),s=e.fetch().then(e=>{t(i,e,!0),t(a,!0)}).catch(()=>{t(a,!1)}).finally(()=>{t(o,!1),s=null}),s)}return{get status(){return r(i)},get reachable(){return r(a)},get loading(){return r(o)},init(e){e&&r(i)===null&&t(i,e,!0),c()},retry(){return c()}}}function ir(i){let a=n(e($t));return{get current(){return r(a)},init(){t(a,i.read()??`light`,!0)},toggle(){t(a,tn(r(a)),!0),i.write(r(a))}}}var ar=ir(new rn),or=rr(new Yn(i(`/api/status`))),sr=nr(new qn(i(`/api/sessions`))),cr=er(new $n);export{o as A,w as C,_ as D,_e as E,g as O,T as S,ve as T,ct as _,Y as a,E as b,qt as c,Pt as d,Et as f,st as g,lt as h,ar as i,a as j,f as k,N as l,ut as m,sr as n,Jt as o,Ot as p,or as r,Gt as s,cr as t,Wt as u,ot as v,We as w,Ke as x,A as y};