screenreader-speech-capture 0.4.0 → 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 (49) hide show
  1. package/dist/cli.mjs +35 -9
  2. package/dist/ui/adapter-node.js +1 -1
  3. package/dist/ui/client/ui/_app/immutable/assets/2.BbalQTLT.css +1 -0
  4. package/dist/ui/client/ui/_app/immutable/assets/2.BbalQTLT.css.br +0 -0
  5. package/dist/ui/client/ui/_app/immutable/assets/2.BbalQTLT.css.gz +0 -0
  6. package/dist/ui/client/ui/_app/immutable/chunks/{w6UAqFO5.js → VoEQsW8I.js} +1 -1
  7. package/dist/ui/client/ui/_app/immutable/chunks/VoEQsW8I.js.br +0 -0
  8. package/dist/ui/client/ui/_app/immutable/chunks/{w6UAqFO5.js.gz → VoEQsW8I.js.gz} +0 -0
  9. package/dist/ui/client/ui/_app/immutable/entry/{app.COo3YJBG.js → app.vg2Ojqcj.js} +2 -2
  10. package/dist/ui/client/ui/_app/immutable/entry/app.vg2Ojqcj.js.br +0 -0
  11. package/dist/ui/client/ui/_app/immutable/entry/app.vg2Ojqcj.js.gz +0 -0
  12. package/dist/ui/client/ui/_app/immutable/nodes/{0.BKE0tKKK.js → 0.BTOtEgN4.js} +1 -1
  13. package/dist/ui/client/ui/_app/immutable/nodes/0.BTOtEgN4.js.br +0 -0
  14. package/dist/ui/client/ui/_app/immutable/nodes/0.BTOtEgN4.js.gz +0 -0
  15. package/dist/ui/client/ui/_app/immutable/nodes/{2.BCy3UgNz.js → 2.COkKMNHv.js} +73 -73
  16. package/dist/ui/client/ui/_app/immutable/nodes/2.COkKMNHv.js.br +0 -0
  17. package/dist/ui/client/ui/_app/immutable/nodes/2.COkKMNHv.js.gz +0 -0
  18. package/dist/ui/client/ui/_app/version.json +1 -1
  19. package/dist/ui/client/ui/_app/version.json.br +0 -0
  20. package/dist/ui/client/ui/_app/version.json.gz +0 -0
  21. package/dist/ui/server/.vite/manifest.json +11 -1
  22. package/dist/ui/server/_app/immutable/assets/_page.BbalQTLT.css +1 -0
  23. package/dist/ui/server/chunks/bridge-api.js +3 -0
  24. package/dist/ui/server/chunks/bridge-api.js.map +1 -1
  25. package/dist/ui/server/chunks/composition.js +13 -1
  26. package/dist/ui/server/chunks/composition.js.map +1 -1
  27. package/dist/ui/server/chunks/instance.js +3 -3
  28. package/dist/ui/server/chunks/internal.js +1 -1
  29. package/dist/ui/server/entries/endpoints/api/sessions/_id_/_server.ts.js +13 -0
  30. package/dist/ui/server/entries/endpoints/api/sessions/_id_/_server.ts.js.map +1 -0
  31. package/dist/ui/server/entries/pages/_page.svelte.js +56 -5
  32. package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
  33. package/dist/ui/server/manifest-full.js +8 -1
  34. package/dist/ui/server/manifest.js +8 -1
  35. package/dist/ui/server/nodes/0.js +1 -1
  36. package/dist/ui/server/nodes/2.js +2 -2
  37. package/dist/ui/server/server.js +8 -1
  38. package/package.json +1 -1
  39. package/dist/ui/client/ui/_app/immutable/assets/2.CtITS5jU.css +0 -1
  40. package/dist/ui/client/ui/_app/immutable/assets/2.CtITS5jU.css.br +0 -0
  41. package/dist/ui/client/ui/_app/immutable/assets/2.CtITS5jU.css.gz +0 -0
  42. package/dist/ui/client/ui/_app/immutable/chunks/w6UAqFO5.js.br +0 -0
  43. package/dist/ui/client/ui/_app/immutable/entry/app.COo3YJBG.js.br +0 -2
  44. package/dist/ui/client/ui/_app/immutable/entry/app.COo3YJBG.js.gz +0 -0
  45. package/dist/ui/client/ui/_app/immutable/nodes/0.BKE0tKKK.js.br +0 -0
  46. package/dist/ui/client/ui/_app/immutable/nodes/0.BKE0tKKK.js.gz +0 -0
  47. package/dist/ui/client/ui/_app/immutable/nodes/2.BCy3UgNz.js.br +0 -0
  48. package/dist/ui/client/ui/_app/immutable/nodes/2.BCy3UgNz.js.gz +0 -0
  49. package/dist/ui/server/_app/immutable/assets/_page.CtITS5jU.css +0 -1
package/dist/cli.mjs CHANGED
@@ -13,13 +13,13 @@ import { execFile, spawn, spawnSync } from "node:child_process";
13
13
  import { once } from "node:events";
14
14
  import readline from "node:readline";
15
15
  // package.json
16
- var version = "0.4.0";
16
+ var version = "0.5.0";
17
17
  // ../shared/src/api-version.ts
18
18
  /**
19
19
  * `<major>.<minor>` of the HTTP API. Minor versions only add things
20
20
  * (docs/usage/http-api.md#versioning).
21
21
  */
22
- const API_VERSION = "1.16";
22
+ const API_VERSION = "1.17";
23
23
  /** Path prefix of every API route. */
24
24
  const API_PREFIX = "/api/v1";
25
25
  const DEFAULT_CONFIG$1 = {
@@ -1503,6 +1503,7 @@ function sseFrame(event) {
1503
1503
  });
1504
1504
  case "position": return `id: ${event.seq}\nevent: position\ndata: {}\n\n`;
1505
1505
  case "session": return cached(event.session, () => `event: session\ndata: ${JSON.stringify(toSessionDto(event.session))}\n\n`);
1506
+ case "clear": return event.sessionId === void 0 ? "event: clear\ndata: {}\n\n" : `event: clear\ndata: ${JSON.stringify({ sessionId: event.sessionId })}\n\n`;
1506
1507
  default: return `event: ${event.type}\ndata: {}\n\n`;
1507
1508
  }
1508
1509
  }
@@ -1515,8 +1516,8 @@ function speechRoutes(router, deps) {
1515
1516
  limit: intParam(url, "limit"),
1516
1517
  session: sessionParam(url)
1517
1518
  })));
1518
- }).add("DELETE", "/speech", ({ res }) => {
1519
- speech.clear();
1519
+ }).add("DELETE", "/speech", ({ res, url }) => {
1520
+ speech.clear(sessionParam(url));
1520
1521
  sendNoContent(res);
1521
1522
  }).add("POST", "/markers", async ({ req, res }) => {
1522
1523
  const label = stringField(await jsonBody(req), "label");
@@ -2632,7 +2633,7 @@ var SeqCursor = class {
2632
2633
  /**
2633
2634
  * Hands `listener` the log's entries after `since`, then the new events, with nothing missed or
2634
2635
  * repeated in between (`SpeechUseCases.watch`, the wait). With `sessionId`, only that session's
2635
- * entries (`null`: those outside sessions); `clear` and `session` events always come. Returns a
2636
+ * entries (`null`: those outside sessions); `session` events always come, and a `clear` unless it only cleared another scope. Returns a
2636
2637
  * function that stops it; calling it again does nothing.
2637
2638
  *
2638
2639
  * Without `since` (`null`) no entry is replayed; the first event is `position`, the log's
@@ -2649,6 +2650,9 @@ function followLog(deps, { since: requested, sessionId, staleSince = "wait" }, l
2649
2650
  let replaying = since !== null;
2650
2651
  let stopped = false;
2651
2652
  const unsubscribe = events.subscribe((event) => {
2653
+ if (event.type === "clear" && event.sessionId !== void 0 && sessionId !== void 0) {
2654
+ if (event.sessionId !== sessionId) return;
2655
+ }
2652
2656
  if (event.type !== "entry") return listener(event);
2653
2657
  if (replaying || !cursor.advance(event.entry)) return;
2654
2658
  if (sessionId === void 0 || event.entry.sessionId === sessionId) listener(event);
@@ -2758,10 +2762,17 @@ var SpeechService = class {
2758
2762
  staleSince: "replay"
2759
2763
  }, listener, options);
2760
2764
  }
2761
- /** Wipes the buffer and the ended sessions. The current session stays current. */
2762
- clear() {
2763
- this.deps.log.clear();
2764
- this.deps.events.publish({ type: "clear" });
2765
+ /** Wipes the buffer and the ended sessions, or one scope. The current session stays current. */
2766
+ clear(session) {
2767
+ if (session === void 0) {
2768
+ this.deps.log.clear();
2769
+ this.deps.events.publish({ type: "clear" });
2770
+ return;
2771
+ }
2772
+ this.deps.events.publish({
2773
+ type: "clear",
2774
+ sessionId: this.deps.log.clearScope(session)
2775
+ });
2765
2776
  }
2766
2777
  addMarker(label) {
2767
2778
  const text = label.trim();
@@ -4346,6 +4357,21 @@ var SpeechLog = class {
4346
4357
  hasMore
4347
4358
  };
4348
4359
  }
4360
+ /**
4361
+ * Removes the entries (and markers) of the current session or of the entries outside sessions
4362
+ * (`none`), and returns that scope's id (`null`: outside). The session stays current. `NOT_FOUND`
4363
+ * for `current` with none current or an id never given out, `INVALID_REQUEST` for an ended
4364
+ * session (delete it with `deleteSession` instead). `seq` keeps counting.
4365
+ */
4366
+ clearScope(filter) {
4367
+ const scope = this.resolveFilter(filter);
4368
+ if (scope === void 0) throw invalidField("session", "must be a session id, current or none");
4369
+ if (scope !== null && scope !== this.#currentId) throw invalidField("session", "only the current session can be cleared, delete this one instead");
4370
+ this.#entries.removeWhere((entry) => entry.sessionId === scope);
4371
+ this.#bySession.delete(scope);
4372
+ this.#droppedBySession.delete(scope);
4373
+ return scope;
4374
+ }
4349
4375
  /** Removes all entries and the ended sessions. The current session stays current. */
4350
4376
  clear() {
4351
4377
  this.#entries.clear();
@@ -7,5 +7,5 @@ export const app_path = "ui/_app";
7
7
  export const origin = undefined;
8
8
  export const env_prefix = "";
9
9
  export const mime_types = {".txt":"text/plain",".json":"application/json",".css":"text/css",".woff2":"font/woff2",".woff":"font/woff",".js":"text/javascript"};
10
- export const assets = JSON.parse("{\"entries\":[[\"/ui/_app/immutable/assets/0.B2ZWH0rX.css\",{\"file\":\"_app/immutable/assets/0.B2ZWH0rX.css\",\"size\":22388,\"etag\":\"DJcKXQ3z597Bpd9OClQmey5DjlUQ7DFj16ghZmuEw-Q\",\"gz\":4158,\"br\":3567}],[\"/ui/_app/immutable/assets/2.CtITS5jU.css\",{\"file\":\"_app/immutable/assets/2.CtITS5jU.css\",\"size\":8809,\"etag\":\"H71OJQ5AxlWXtud-_EvC_tvbSAfCY39tkH73PpA_jRA\",\"gz\":2069,\"br\":1788}],[\"/ui/_app/immutable/assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2\",{\"file\":\"_app/immutable/assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2\",\"size\":323332,\"etag\":\"lG4kWCQl2JTmBdetIXyis5jtAKLVXakHFHPge2GL-mo\"}],[\"/ui/_app/immutable/assets/roboto-flex-cyrillic-ext-opsz-normal.nDQikIyu.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-cyrillic-ext-opsz-normal.nDQikIyu.woff2\",\"size\":26636,\"etag\":\"Xo9rWKm47bD92r-jOEmIJ8e5WdPs2VkgglbEc34YnbA\"}],[\"/ui/_app/immutable/assets/roboto-flex-cyrillic-opsz-normal.SjuC5rw5.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-cyrillic-opsz-normal.SjuC5rw5.woff2\",\"size\":41732,\"etag\":\"NZscIuvjCi6aMmnVZK-qci8WjN47sM5_d44ADIayuo4\"}],[\"/ui/_app/immutable/assets/roboto-flex-greek-opsz-normal.C14fFRny.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-greek-opsz-normal.C14fFRny.woff2\",\"size\":27412,\"etag\":\"Odr-I2_rbhJlwRMBOPvO73NumLHzS_DPn0Ml6aEznZc\"}],[\"/ui/_app/immutable/assets/roboto-flex-latin-ext-opsz-normal.xNclTVCo.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-latin-ext-opsz-normal.xNclTVCo.woff2\",\"size\":59020,\"etag\":\"AU13PKeSW6pmOn1_iyR1qBYj1q59NeZv3xAPJhq9ee0\"}],[\"/ui/_app/immutable/assets/roboto-flex-latin-opsz-normal.hy8fyBBC.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-latin-opsz-normal.hy8fyBBC.woff2\",\"size\":84304,\"etag\":\"6XypLOvPTfNTn2UUzWUqhKgnk55tXq9e3s5tg8gikTg\"}],[\"/ui/_app/immutable/assets/roboto-flex-vietnamese-opsz-normal.C-H_yGOU.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-vietnamese-opsz-normal.C-H_yGOU.woff2\",\"size\":22784,\"etag\":\"ID6H6oY6dHzFa8f-IQZnNzaJY68MmsJfugB1547NI_A\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-400-normal.B3hIXASd.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-400-normal.B3hIXASd.woff\",\"size\":9100,\"etag\":\"2bbrZbKWjtunnR214mXtGBGgmZyiT-eB020Ll--S77s\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-400-normal.C-_K-ZCn.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-400-normal.C-_K-ZCn.woff2\",\"size\":7456,\"etag\":\"4-mr9gth2_iRYOitbLxgugEWptcpf1Fzx4eq62pnctw\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-500-normal.DGZ7-lUP.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-500-normal.DGZ7-lUP.woff2\",\"size\":7512,\"etag\":\"EX-navsvNJ2dPomPJOtSYxUXBSHtdJac8Wuc8p0QUwg\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-500-normal.NpUJFYX7.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-500-normal.NpUJFYX7.woff\",\"size\":9208,\"etag\":\"FhEru93Qje-NX6qsnUdZjS0CnJ5HsTgFEsAv1xyE2Dc\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.BHxv52bw.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.BHxv52bw.woff2\",\"size\":13732,\"etag\":\"3p2daccUDrC6lRmGsRgf8XJcFMeane_8E8xkXP0xKj4\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.W26xs1TL.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.W26xs1TL.woff\",\"size\":17112,\"etag\":\"GNVjaNsWsBA7myTwjGib6Nb3b4TcTxNItWs5gkyOAlo\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.6xdwlG7p.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.6xdwlG7p.woff\",\"size\":17496,\"etag\":\"invqlJk1nekhGuwr5uqzb1snlNTpp2Am_ip80XcHygY\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.DC57U9n8.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.DC57U9n8.woff2\",\"size\":14056,\"etag\":\"lv8BDhBsrjCzO7wvS2w_YEOSjZkbTvQmXCzbB3EwOxQ\"}],[\"/ui/_app/immutable/assets/roboto-mono-greek-400-normal.CH_u3Aru.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-greek-400-normal.CH_u3Aru.woff2\",\"size\":5940,\"etag\":\"SxybC6KcPzLAoEkVeSrqudYU0UfYxpXZVdwGnChbMp4\"}],[\"/ui/_app/immutable/assets/roboto-mono-greek-400-normal.P8xe1gs1.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-greek-400-normal.P8xe1gs1.woff\",\"size\":7176,\"etag\":\"PQAVb05w6pSja5LRrTBLylAkD3MVh-uNENv8ebI6H5E\"}],[\"/ui/_app/immutable/assets/roboto-mono-greek-500-normal.C2M8jX6G.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-greek-500-normal.C2M8jX6G.woff\",\"size\":7188,\"etag\":\"p3BI7KcIZ0SWGLKndgFG6hyMOngc4I3px7_Hjl_7YPE\"}],[\"/ui/_app/immutable/assets/roboto-mono-greek-500-normal.DpRFkptA.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-greek-500-normal.DpRFkptA.woff2\",\"size\":5984,\"etag\":\"liRoYrZFP7YtW6bc-gQ8AnIT0kBaGmyJkvZePjmaF-4\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-400-normal.DBZPkcnn.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-400-normal.DBZPkcnn.woff\",\"size\":15720,\"etag\":\"lpDzxusG0KTns95CTaphZhLjFxjPVECz_Fl323JnPSQ\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-400-normal.GekRknry.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-400-normal.GekRknry.woff2\",\"size\":12680,\"etag\":\"4DAT4LqlaQqAPBiNoiFNkgwyRbJa14Qh7Miuhs2EKuk\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-500-normal.D6j6AMzd.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-500-normal.D6j6AMzd.woff\",\"size\":15932,\"etag\":\"ro2pPd-tN7NEqm9hW9JnccWOOzvjo3GmI-kKfNKPQy0\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-500-normal.pxIOXZmA.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-500-normal.pxIOXZmA.woff2\",\"size\":12936,\"etag\":\"znAn76XIlOiyRLDKBewSG2qFZVlXr9nHbFm1aRDefU4\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-ext-400-normal.BwLXVYNz.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-ext-400-normal.BwLXVYNz.woff\",\"size\":12164,\"etag\":\"O_6UIV4oXuPaNMvdZIYsP4nuJzuAtNveQ5_6GpErn3E\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-ext-400-normal.DLAV9S_w.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-ext-400-normal.DLAV9S_w.woff2\",\"size\":9592,\"etag\":\"PR5yvy9_V55WgOh6SSvxTxVsAdCdp0HVu2V_KEF4cVc\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-ext-500-normal.B1IjfbhL.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-ext-500-normal.B1IjfbhL.woff\",\"size\":12308,\"etag\":\"XA3Zvhj7NOPdc8lSi6O-rw8TxTUA8GRd90jz7DIZyZc\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-ext-500-normal.Db3ge6Oe.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-ext-500-normal.Db3ge6Oe.woff2\",\"size\":9808,\"etag\":\"-ZQwN9c0zgo9yoctoninfM7ABdtyG3ZKf_l34FlCYxY\"}],[\"/ui/_app/immutable/assets/roboto-mono-vietnamese-400-normal.CzWHQABp.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-vietnamese-400-normal.CzWHQABp.woff\",\"size\":5800,\"etag\":\"H0NM4VrxKgHcQ0OY-LyagnHydK1STuDSUwCrsQwZOfU\"}],[\"/ui/_app/immutable/assets/roboto-mono-vietnamese-400-normal.yYTFiTTs.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-vietnamese-400-normal.yYTFiTTs.woff2\",\"size\":4636,\"etag\":\"kCN-rZCF7823V7pJii1GRg4AnCkHyDKR7Fb1mBOXZZM\"}],[\"/ui/_app/immutable/assets/roboto-mono-vietnamese-500-normal.Cq-quQMu.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-vietnamese-500-normal.Cq-quQMu.woff2\",\"size\":4708,\"etag\":\"5rrj9ghzh6IqWJf-9EGJt7gqHsdS3jeoEpTKzmHzZCA\"}],[\"/ui/_app/immutable/assets/roboto-mono-vietnamese-500-normal.IxzxMIj7.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-vietnamese-500-normal.IxzxMIj7.woff\",\"size\":5920,\"etag\":\"wU_brpryo9P6DBrH_Az7x92c85LNrD747cA5w4p8oJg\"}],[\"/ui/_app/immutable/chunks/BaD2EyfF.js\",{\"file\":\"_app/immutable/chunks/BaD2EyfF.js\",\"size\":52,\"etag\":\"CFx680I98IMpjlStXJr76NxYIW8Z-xLuDy70RAjHX70\",\"gz\":69,\"br\":56}],[\"/ui/_app/immutable/chunks/Bjy-W4x2.js\",{\"file\":\"_app/immutable/chunks/Bjy-W4x2.js\",\"size\":1365,\"etag\":\"8HQkdYMY3WtfMrD-jenS_7jZehfIQXWGJtGLoPqgRWo\",\"gz\":654,\"br\":499}],[\"/ui/_app/immutable/chunks/CcBdu3S8.js\",{\"file\":\"_app/immutable/chunks/CcBdu3S8.js\",\"size\":40604,\"etag\":\"RmIEQbFQ54nZ9aJ4WbpTnV8kvpwajBL_Zlx1RzWQkEA\",\"gz\":15626,\"br\":14182}],[\"/ui/_app/immutable/chunks/DbiAGPgw.js\",{\"file\":\"_app/immutable/chunks/DbiAGPgw.js\",\"size\":22,\"etag\":\"fq70f7yEaBehPwiSrK7BQj5jMWcA8XU_44Rt5et9g7w\",\"gz\":42,\"br\":26}],[\"/ui/_app/immutable/chunks/DclECHGd.js\",{\"file\":\"_app/immutable/chunks/DclECHGd.js\",\"size\":1630,\"etag\":\"hnTfcMv_1XU3cajdWwisO27CnBFwRo5GhIdgoP_upVA\",\"gz\":828,\"br\":714}],[\"/ui/_app/immutable/chunks/Dg9MaatX.js\",{\"file\":\"_app/immutable/chunks/Dg9MaatX.js\",\"size\":5749,\"etag\":\"CTEMat8_qSFsheeKmOSC5w4bLnCwbkgaJHCc3cmyeKQ\",\"gz\":2450,\"br\":2191}],[\"/ui/_app/immutable/chunks/DvmLiMpQ.js\",{\"file\":\"_app/immutable/chunks/DvmLiMpQ.js\",\"size\":43325,\"etag\":\"kSkd29TscbnlYiPu4kpG2Epir0GlANuLQtu_7uKZlec\",\"gz\":15780,\"br\":14307}],[\"/ui/_app/immutable/chunks/w6UAqFO5.js\",{\"file\":\"_app/immutable/chunks/w6UAqFO5.js\",\"size\":63737,\"etag\":\"JSuaL4fthcth4u5IIbKSuhl2kCth76vrvebqrsAfmC4\",\"gz\":20187,\"br\":17983}],[\"/ui/_app/immutable/entry/app.COo3YJBG.js\",{\"file\":\"_app/immutable/entry/app.COo3YJBG.js\",\"size\":1463,\"etag\":\"JrRCnlpsFmwKsjR8gGZQGqJ0RA9USvzRJayrz8i7Bpg\",\"gz\":668,\"br\":618}],[\"/ui/_app/immutable/entry/payload.DSmR2FwN.js\",{\"file\":\"_app/immutable/entry/payload.DSmR2FwN.js\",\"size\":65,\"etag\":\"t8untEsjl8fSj320o07HNKmF5k_yfXTd-NlkXPgU8J8\",\"gz\":77,\"br\":60}],[\"/ui/_app/immutable/entry/start.BHpKgjPx.js\",{\"file\":\"_app/immutable/entry/start.BHpKgjPx.js\",\"size\":548,\"etag\":\"R6tOx4PwtYF3Rl1WIRHaUA3wd8OvvT8Kq3spkx0uenA\",\"gz\":318,\"br\":295}],[\"/ui/_app/immutable/nodes/0.BKE0tKKK.js\",{\"file\":\"_app/immutable/nodes/0.BKE0tKKK.js\",\"size\":5674,\"etag\":\"0ps5Gq6gvBgqm3HPJ5kP81qrhDbqil-fYENtH06mnEk\",\"gz\":2574,\"br\":2250}],[\"/ui/_app/immutable/nodes/1.Bd-KoKuj.js\",{\"file\":\"_app/immutable/nodes/1.Bd-KoKuj.js\",\"size\":352,\"etag\":\"Y7H-M7fy21yhUo5Fa2EPYQjU_dNWVD5Dp_vHJHxo1VI\",\"gz\":256,\"br\":218}],[\"/ui/_app/immutable/nodes/2.BCy3UgNz.js\",{\"file\":\"_app/immutable/nodes/2.BCy3UgNz.js\",\"size\":108557,\"etag\":\"RkWxPM_vwMdA24DRUoSXMXsmHacg90mHp-VQLyMgv7M\",\"gz\":23010,\"br\":19660}],[\"/ui/_app/immutable/nodes/3.CsdEJLWJ.js\",{\"file\":\"_app/immutable/nodes/3.CsdEJLWJ.js\",\"size\":194,\"etag\":\"qhBBXhJbTth5QrbVB1D-IP7g2waBaU4rNUi-V104uEU\",\"gz\":178,\"br\":135}],[\"/ui/_app/immutable/nodes/4.CXVi2Rvi.js\",{\"file\":\"_app/immutable/nodes/4.CXVi2Rvi.js\",\"size\":208,\"etag\":\"4jHpM3mlQvyvAsU0jocRAZem6VTw256_fqGTaAdLSXY\",\"gz\":186,\"br\":141}],[\"/ui/_app/version.json\",{\"file\":\"_app/version.json\",\"size\":27,\"etag\":\"nDw5G8AMPc5jjbLu4C_tSowj_uDry764jdxoXahjY68\",\"gz\":47,\"br\":30}],[\"/ui/robots.txt\",{\"file\":\"robots.txt\",\"size\":63,\"etag\":\"sDMkMme8vauEywHpQIEdbXeolNePBHD6rw60P45O_Mk\",\"gz\":77,\"br\":67}]],\"aliases\":[]}");
10
+ export const assets = JSON.parse("{\"entries\":[[\"/ui/_app/immutable/assets/0.B2ZWH0rX.css\",{\"file\":\"_app/immutable/assets/0.B2ZWH0rX.css\",\"size\":22388,\"etag\":\"DJcKXQ3z597Bpd9OClQmey5DjlUQ7DFj16ghZmuEw-Q\",\"gz\":4158,\"br\":3567}],[\"/ui/_app/immutable/assets/2.BbalQTLT.css\",{\"file\":\"_app/immutable/assets/2.BbalQTLT.css\",\"size\":9167,\"etag\":\"dP-FYzwSm25GWMyimnTdKoTXggqv5vxjPQYvbldWUHY\",\"gz\":2087,\"br\":1807}],[\"/ui/_app/immutable/assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2\",{\"file\":\"_app/immutable/assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2\",\"size\":323332,\"etag\":\"lG4kWCQl2JTmBdetIXyis5jtAKLVXakHFHPge2GL-mo\"}],[\"/ui/_app/immutable/assets/roboto-flex-cyrillic-ext-opsz-normal.nDQikIyu.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-cyrillic-ext-opsz-normal.nDQikIyu.woff2\",\"size\":26636,\"etag\":\"Xo9rWKm47bD92r-jOEmIJ8e5WdPs2VkgglbEc34YnbA\"}],[\"/ui/_app/immutable/assets/roboto-flex-cyrillic-opsz-normal.SjuC5rw5.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-cyrillic-opsz-normal.SjuC5rw5.woff2\",\"size\":41732,\"etag\":\"NZscIuvjCi6aMmnVZK-qci8WjN47sM5_d44ADIayuo4\"}],[\"/ui/_app/immutable/assets/roboto-flex-greek-opsz-normal.C14fFRny.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-greek-opsz-normal.C14fFRny.woff2\",\"size\":27412,\"etag\":\"Odr-I2_rbhJlwRMBOPvO73NumLHzS_DPn0Ml6aEznZc\"}],[\"/ui/_app/immutable/assets/roboto-flex-latin-ext-opsz-normal.xNclTVCo.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-latin-ext-opsz-normal.xNclTVCo.woff2\",\"size\":59020,\"etag\":\"AU13PKeSW6pmOn1_iyR1qBYj1q59NeZv3xAPJhq9ee0\"}],[\"/ui/_app/immutable/assets/roboto-flex-latin-opsz-normal.hy8fyBBC.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-latin-opsz-normal.hy8fyBBC.woff2\",\"size\":84304,\"etag\":\"6XypLOvPTfNTn2UUzWUqhKgnk55tXq9e3s5tg8gikTg\"}],[\"/ui/_app/immutable/assets/roboto-flex-vietnamese-opsz-normal.C-H_yGOU.woff2\",{\"file\":\"_app/immutable/assets/roboto-flex-vietnamese-opsz-normal.C-H_yGOU.woff2\",\"size\":22784,\"etag\":\"ID6H6oY6dHzFa8f-IQZnNzaJY68MmsJfugB1547NI_A\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-400-normal.B3hIXASd.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-400-normal.B3hIXASd.woff\",\"size\":9100,\"etag\":\"2bbrZbKWjtunnR214mXtGBGgmZyiT-eB020Ll--S77s\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-400-normal.C-_K-ZCn.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-400-normal.C-_K-ZCn.woff2\",\"size\":7456,\"etag\":\"4-mr9gth2_iRYOitbLxgugEWptcpf1Fzx4eq62pnctw\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-500-normal.DGZ7-lUP.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-500-normal.DGZ7-lUP.woff2\",\"size\":7512,\"etag\":\"EX-navsvNJ2dPomPJOtSYxUXBSHtdJac8Wuc8p0QUwg\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-500-normal.NpUJFYX7.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-500-normal.NpUJFYX7.woff\",\"size\":9208,\"etag\":\"FhEru93Qje-NX6qsnUdZjS0CnJ5HsTgFEsAv1xyE2Dc\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.BHxv52bw.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.BHxv52bw.woff2\",\"size\":13732,\"etag\":\"3p2daccUDrC6lRmGsRgf8XJcFMeane_8E8xkXP0xKj4\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.W26xs1TL.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.W26xs1TL.woff\",\"size\":17112,\"etag\":\"GNVjaNsWsBA7myTwjGib6Nb3b4TcTxNItWs5gkyOAlo\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.6xdwlG7p.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.6xdwlG7p.woff\",\"size\":17496,\"etag\":\"invqlJk1nekhGuwr5uqzb1snlNTpp2Am_ip80XcHygY\"}],[\"/ui/_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.DC57U9n8.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.DC57U9n8.woff2\",\"size\":14056,\"etag\":\"lv8BDhBsrjCzO7wvS2w_YEOSjZkbTvQmXCzbB3EwOxQ\"}],[\"/ui/_app/immutable/assets/roboto-mono-greek-400-normal.CH_u3Aru.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-greek-400-normal.CH_u3Aru.woff2\",\"size\":5940,\"etag\":\"SxybC6KcPzLAoEkVeSrqudYU0UfYxpXZVdwGnChbMp4\"}],[\"/ui/_app/immutable/assets/roboto-mono-greek-400-normal.P8xe1gs1.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-greek-400-normal.P8xe1gs1.woff\",\"size\":7176,\"etag\":\"PQAVb05w6pSja5LRrTBLylAkD3MVh-uNENv8ebI6H5E\"}],[\"/ui/_app/immutable/assets/roboto-mono-greek-500-normal.C2M8jX6G.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-greek-500-normal.C2M8jX6G.woff\",\"size\":7188,\"etag\":\"p3BI7KcIZ0SWGLKndgFG6hyMOngc4I3px7_Hjl_7YPE\"}],[\"/ui/_app/immutable/assets/roboto-mono-greek-500-normal.DpRFkptA.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-greek-500-normal.DpRFkptA.woff2\",\"size\":5984,\"etag\":\"liRoYrZFP7YtW6bc-gQ8AnIT0kBaGmyJkvZePjmaF-4\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-400-normal.DBZPkcnn.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-400-normal.DBZPkcnn.woff\",\"size\":15720,\"etag\":\"lpDzxusG0KTns95CTaphZhLjFxjPVECz_Fl323JnPSQ\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-400-normal.GekRknry.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-400-normal.GekRknry.woff2\",\"size\":12680,\"etag\":\"4DAT4LqlaQqAPBiNoiFNkgwyRbJa14Qh7Miuhs2EKuk\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-500-normal.D6j6AMzd.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-500-normal.D6j6AMzd.woff\",\"size\":15932,\"etag\":\"ro2pPd-tN7NEqm9hW9JnccWOOzvjo3GmI-kKfNKPQy0\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-500-normal.pxIOXZmA.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-500-normal.pxIOXZmA.woff2\",\"size\":12936,\"etag\":\"znAn76XIlOiyRLDKBewSG2qFZVlXr9nHbFm1aRDefU4\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-ext-400-normal.BwLXVYNz.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-ext-400-normal.BwLXVYNz.woff\",\"size\":12164,\"etag\":\"O_6UIV4oXuPaNMvdZIYsP4nuJzuAtNveQ5_6GpErn3E\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-ext-400-normal.DLAV9S_w.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-ext-400-normal.DLAV9S_w.woff2\",\"size\":9592,\"etag\":\"PR5yvy9_V55WgOh6SSvxTxVsAdCdp0HVu2V_KEF4cVc\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-ext-500-normal.B1IjfbhL.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-ext-500-normal.B1IjfbhL.woff\",\"size\":12308,\"etag\":\"XA3Zvhj7NOPdc8lSi6O-rw8TxTUA8GRd90jz7DIZyZc\"}],[\"/ui/_app/immutable/assets/roboto-mono-latin-ext-500-normal.Db3ge6Oe.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-latin-ext-500-normal.Db3ge6Oe.woff2\",\"size\":9808,\"etag\":\"-ZQwN9c0zgo9yoctoninfM7ABdtyG3ZKf_l34FlCYxY\"}],[\"/ui/_app/immutable/assets/roboto-mono-vietnamese-400-normal.CzWHQABp.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-vietnamese-400-normal.CzWHQABp.woff\",\"size\":5800,\"etag\":\"H0NM4VrxKgHcQ0OY-LyagnHydK1STuDSUwCrsQwZOfU\"}],[\"/ui/_app/immutable/assets/roboto-mono-vietnamese-400-normal.yYTFiTTs.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-vietnamese-400-normal.yYTFiTTs.woff2\",\"size\":4636,\"etag\":\"kCN-rZCF7823V7pJii1GRg4AnCkHyDKR7Fb1mBOXZZM\"}],[\"/ui/_app/immutable/assets/roboto-mono-vietnamese-500-normal.Cq-quQMu.woff2\",{\"file\":\"_app/immutable/assets/roboto-mono-vietnamese-500-normal.Cq-quQMu.woff2\",\"size\":4708,\"etag\":\"5rrj9ghzh6IqWJf-9EGJt7gqHsdS3jeoEpTKzmHzZCA\"}],[\"/ui/_app/immutable/assets/roboto-mono-vietnamese-500-normal.IxzxMIj7.woff\",{\"file\":\"_app/immutable/assets/roboto-mono-vietnamese-500-normal.IxzxMIj7.woff\",\"size\":5920,\"etag\":\"wU_brpryo9P6DBrH_Az7x92c85LNrD747cA5w4p8oJg\"}],[\"/ui/_app/immutable/chunks/BaD2EyfF.js\",{\"file\":\"_app/immutable/chunks/BaD2EyfF.js\",\"size\":52,\"etag\":\"CFx680I98IMpjlStXJr76NxYIW8Z-xLuDy70RAjHX70\",\"gz\":69,\"br\":56}],[\"/ui/_app/immutable/chunks/Bjy-W4x2.js\",{\"file\":\"_app/immutable/chunks/Bjy-W4x2.js\",\"size\":1365,\"etag\":\"8HQkdYMY3WtfMrD-jenS_7jZehfIQXWGJtGLoPqgRWo\",\"gz\":654,\"br\":499}],[\"/ui/_app/immutable/chunks/CcBdu3S8.js\",{\"file\":\"_app/immutable/chunks/CcBdu3S8.js\",\"size\":40604,\"etag\":\"RmIEQbFQ54nZ9aJ4WbpTnV8kvpwajBL_Zlx1RzWQkEA\",\"gz\":15626,\"br\":14182}],[\"/ui/_app/immutable/chunks/DbiAGPgw.js\",{\"file\":\"_app/immutable/chunks/DbiAGPgw.js\",\"size\":22,\"etag\":\"fq70f7yEaBehPwiSrK7BQj5jMWcA8XU_44Rt5et9g7w\",\"gz\":42,\"br\":26}],[\"/ui/_app/immutable/chunks/DclECHGd.js\",{\"file\":\"_app/immutable/chunks/DclECHGd.js\",\"size\":1630,\"etag\":\"hnTfcMv_1XU3cajdWwisO27CnBFwRo5GhIdgoP_upVA\",\"gz\":828,\"br\":714}],[\"/ui/_app/immutable/chunks/Dg9MaatX.js\",{\"file\":\"_app/immutable/chunks/Dg9MaatX.js\",\"size\":5749,\"etag\":\"CTEMat8_qSFsheeKmOSC5w4bLnCwbkgaJHCc3cmyeKQ\",\"gz\":2450,\"br\":2191}],[\"/ui/_app/immutable/chunks/DvmLiMpQ.js\",{\"file\":\"_app/immutable/chunks/DvmLiMpQ.js\",\"size\":43325,\"etag\":\"kSkd29TscbnlYiPu4kpG2Epir0GlANuLQtu_7uKZlec\",\"gz\":15780,\"br\":14307}],[\"/ui/_app/immutable/chunks/VoEQsW8I.js\",{\"file\":\"_app/immutable/chunks/VoEQsW8I.js\",\"size\":63908,\"etag\":\"26HFYZuz7nfaPKcDN6GPXXWKmpGTVgx06xAPF89Ejm0\",\"gz\":20234,\"br\":18021}],[\"/ui/_app/immutable/entry/app.vg2Ojqcj.js\",{\"file\":\"_app/immutable/entry/app.vg2Ojqcj.js\",\"size\":1463,\"etag\":\"yCAOba0X6YKIYSfdWvBJ3uy9yUUmg6mMdQDtUjSVsxg\",\"gz\":667,\"br\":615}],[\"/ui/_app/immutable/entry/payload.DSmR2FwN.js\",{\"file\":\"_app/immutable/entry/payload.DSmR2FwN.js\",\"size\":65,\"etag\":\"t8untEsjl8fSj320o07HNKmF5k_yfXTd-NlkXPgU8J8\",\"gz\":77,\"br\":60}],[\"/ui/_app/immutable/entry/start.BHpKgjPx.js\",{\"file\":\"_app/immutable/entry/start.BHpKgjPx.js\",\"size\":548,\"etag\":\"R6tOx4PwtYF3Rl1WIRHaUA3wd8OvvT8Kq3spkx0uenA\",\"gz\":318,\"br\":295}],[\"/ui/_app/immutable/nodes/0.BTOtEgN4.js\",{\"file\":\"_app/immutable/nodes/0.BTOtEgN4.js\",\"size\":5674,\"etag\":\"9FjYF2ajga0vWa7I9L7Q1YmO_EKvsLNfeQ9Hx3XYz-Y\",\"gz\":2574,\"br\":2254}],[\"/ui/_app/immutable/nodes/1.Bd-KoKuj.js\",{\"file\":\"_app/immutable/nodes/1.Bd-KoKuj.js\",\"size\":352,\"etag\":\"Y7H-M7fy21yhUo5Fa2EPYQjU_dNWVD5Dp_vHJHxo1VI\",\"gz\":256,\"br\":218}],[\"/ui/_app/immutable/nodes/2.COkKMNHv.js\",{\"file\":\"_app/immutable/nodes/2.COkKMNHv.js\",\"size\":110521,\"etag\":\"4unRwg8YPijrhOWo-Bu3mEcFnOe87ENnePq1FnkB83A\",\"gz\":23776,\"br\":20100}],[\"/ui/_app/immutable/nodes/3.CsdEJLWJ.js\",{\"file\":\"_app/immutable/nodes/3.CsdEJLWJ.js\",\"size\":194,\"etag\":\"qhBBXhJbTth5QrbVB1D-IP7g2waBaU4rNUi-V104uEU\",\"gz\":178,\"br\":135}],[\"/ui/_app/immutable/nodes/4.CXVi2Rvi.js\",{\"file\":\"_app/immutable/nodes/4.CXVi2Rvi.js\",\"size\":208,\"etag\":\"4jHpM3mlQvyvAsU0jocRAZem6VTw256_fqGTaAdLSXY\",\"gz\":186,\"br\":141}],[\"/ui/_app/version.json\",{\"file\":\"_app/version.json\",\"size\":27,\"etag\":\"TsxleTyF2xVmdBnA0CPVE7hi8uMVARQr0Cb3ntSUk08\",\"gz\":47,\"br\":29}],[\"/ui/robots.txt\",{\"file\":\"robots.txt\",\"size\":63,\"etag\":\"sDMkMme8vauEywHpQIEdbXeolNePBHD6rw60P45O_Mk\",\"gz\":77,\"br\":67}]],\"aliases\":[]}");
11
11
  export const prerendered_assets = JSON.parse("{\"entries\":[],\"aliases\":[]}");
@@ -0,0 +1 @@
1
+ md-dialog.svelte-1sof82u{--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-1sof82u{margin:0}.failure.svelte-1sof82u{color:var(--md-sys-color-error);margin-top:12px}md-dialog.svelte-ttl1x5{--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-ttl1x5{flex-direction:column;gap:16px;min-width:min(360px,70vw);display:flex}.failure.svelte-ttl1x5{color:var(--md-sys-color-error);margin:0}table.svelte-5c13xh{border-collapse:separate;border-spacing:0;width:100%}thead.svelte-5c13xh th:where(.svelte-5c13xh){z-index:1;border-top:1px solid var(--md-sys-color-outline-variant);border-bottom:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-low);color:var(--md-sys-color-on-surface-variant);letter-spacing:.5px;text-align:left;text-transform:uppercase;padding:6px 12px;font-size:11px;font-weight:500;position:sticky;top:0}thead.svelte-5c13xh th:where(.svelte-5c13xh):first-child{padding-left:24px}th.seq.svelte-5c13xh,td.seq.svelte-5c13xh{text-align:left;padding-right:24px}tbody.svelte-5c13xh tr:where(.svelte-5c13xh):hover{background:var(--md-sys-color-surface-container)}td.svelte-5c13xh{vertical-align:baseline;padding:7px 12px}td.time.svelte-5c13xh,td.seq.svelte-5c13xh{white-space:nowrap;width:1%}td.time.svelte-5c13xh{color:var(--md-sys-color-on-surface-variant);font-size:var(--app-mono-size);line-height:var(--app-mono-line-height);padding-left:24px}td.text.svelte-5c13xh{color:var(--md-sys-color-on-surface);font-size:var(--app-log-text-size);line-height:var(--app-log-text-line-height);overflow-wrap:anywhere}td.seq.svelte-5c13xh{color:var(--md-sys-color-outline);font-size:11px}tr.fresh.svelte-5c13xh{animation:svelte-5c13xh-fade-new calc(var(--app-new-row-ms) * 1ms) ease-out}@keyframes svelte-5c13xh-fade-new{0%{background:var(--app-new-row)}}@container (width<=520px){th.seq.svelte-5c13xh,td.seq.svelte-5c13xh{display:none}}@media (prefers-reduced-motion:reduce){tr.fresh.svelte-5c13xh{animation:none}}.pill.svelte-5c13xh{background:var(--md-sys-color-tertiary-container);max-width:70%;height:24px;color:var(--md-sys-color-on-tertiary-container);vertical-align:middle;border-radius:6px;align-items:center;gap:4px;padding:0 8px 0 4px;font-size:12px;font-weight:500;line-height:16px;display:inline-flex}.pill.svelte-5c13xh md-icon:where(.svelte-5c13xh){--md-icon-size:16px;font-size:16px}.label.svelte-5c13xh{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.visually-hidden.svelte-5c13xh{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.log.svelte-1jnrixz{box-sizing:border-box;border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-lowest);border-radius:16px;flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden}header.svelte-1jnrixz{box-sizing:border-box;flex:none;align-items:center;gap:8px;min-height:64px;padding:16px 12px 8px 24px;display:flex}h1.svelte-1jnrixz{min-width:0;color:var(--md-sys-color-on-surface);flex:1;margin:0;font-size:22px;font-weight:500;line-height:28px}.trunc.svelte-1jnrixz{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.scroll.svelte-1jnrixz{flex:1;min-height:0;overflow-y:auto;container-type:inline-size}.empty.svelte-1jnrixz{color:var(--md-sys-color-on-surface-variant);text-align:center;flex-direction:column;align-items:center;padding:96px 24px;animation:0s .25s backwards svelte-1jnrixz-reveal;display:flex}@keyframes svelte-1jnrixz-reveal{0%{visibility:hidden}}.empty.svelte-1jnrixz md-icon:where(.svelte-1jnrixz){--md-icon-size:40px;font-size:40px}.empty.svelte-1jnrixz p:where(.svelte-1jnrixz){margin:4px 0 0;font-size:14px}.empty.svelte-1jnrixz .title:where(.svelte-1jnrixz){color:var(--md-sys-color-on-surface);font-size:16px;font-weight:500}footer.svelte-1jnrixz{border-top:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container-low);flex:none;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px 8px 24px;display:flex}footer.svelte-1jnrixz p.failed:where(.svelte-1jnrixz){color:var(--md-sys-color-error)}footer.svelte-1jnrixz p:where(.svelte-1jnrixz){color:var(--md-sys-color-on-surface-variant);font-size:var(--app-mono-size);margin:0}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;min-height:0}
@@ -34,4 +34,4 @@ import{F as e,I as t,L as n,T as r}from"./CcBdu3S8.js";import{o as i}from"./Dg9M
34
34
  for=${this.href?`link`:w}
35
35
  ?disabled="${e}"></md-ripple>`}connectedCallback(){this.flipIcon=Bt(this,this.flipIconInRtl),super.connectedCallback()}};N.shadowRootOptions={mode:`open`,delegatesFocus:!0},a([h({type:Boolean,attribute:`soft-disabled`,reflect:!0})],N.prototype,`softDisabled`,void 0),a([h({type:Boolean,attribute:`flip-icon-in-rtl`})],N.prototype,`flipIconInRtl`,void 0),a([h()],N.prototype,`href`,void 0),a([h()],N.prototype,`download`,void 0),a([h()],N.prototype,`target`,void 0),a([h({attribute:`aria-label-selected`})],N.prototype,`ariaLabelSelected`,void 0),a([h({type:Boolean})],N.prototype,`toggle`,void 0),a([h({type:Boolean,reflect:!0})],N.prototype,`selected`,void 0),a([ve()],N.prototype,`flipIcon`,void 0);var Zt=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
36
  `;Zt.styleSheet;var Qt=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
- `;Qt.styleSheet;var $t=class extends N{getRenderClasses(){return{...super.getRenderClasses(),standard:!0}}};$t.styles=[Zt,Qt],$t=a([o(`md-icon-button`)],$t);var en=`light`;function tn(e){return e===`light`||e===`dark`?e:null}function nn(e){return e===`light`?`dark`:`light`}var rn=`sr-theme`,an=class{read(){try{return tn(localStorage.getItem(rn))}catch{return null}}write(e){document.documentElement.dataset.theme=e;try{localStorage.setItem(rn,e)}catch{}}},on=class{url;constructor(e){this.url=e}async addMarker(e){let t=await fetch(this.url,{method:`POST`,headers:{accept:`application/json`,"content-type":`application/json`},body:JSON.stringify({label:e})});if(!t.ok)throw Error(await sn(t))}};async function sn(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 cn={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function ln(e){return e?{lang:e?.lang??void 0,message:e?.message,abortEarly:e?.abortEarly??void 0,abortPipeEarly:e?.abortPipeEarly??void 0}:cn}function P(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 F(e,t,n,r,i){let a=i&&`input`in i?i.input:n.value,o=i?.expected??e.expects??null,s=i?.received??P(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 un(e,t){let n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??`never`}function I(e){return e[`~standard`]={version:1,vendor:`valibot`,validate:t=>e[`~run`]({value:t},ln())},e}function dn(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 fn=/^\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 pn(e,t){return{kind:`validation`,type:`check`,reference:pn,async:!1,expects:null,requirement:e,message:t,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&F(this,`input`,e,t),e}}}function L(e){return{kind:`metadata`,type:`description`,reference:L,description:e}}function R(e){return{kind:`metadata`,type:`examples`,reference:R,examples:e}}function z(e){return{kind:`validation`,type:`integer`,reference:z,async:!1,expects:null,requirement:Number.isInteger,message:e,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&F(this,`integer`,e,t),e}}}function mn(e){return{kind:`validation`,type:`iso_timestamp`,reference:mn,async:!1,expects:null,requirement:fn,message:e,"~run"(e,t){return e.typed&&!this.requirement.test(e.value)&&F(this,`timestamp`,e,t),e}}}function hn(e,t){return{kind:`validation`,type:`max_value`,reference:hn,async:!1,expects:`<=${e instanceof Date?e.toJSON():P(e)}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!(e.value<=this.requirement)&&F(this,`value`,e,t,{received:e.value instanceof Date?e.value.toJSON():P(e.value)}),e}}}function B(e,t){return{kind:`validation`,type:`min_value`,reference:B,async:!1,expects:`>=${e instanceof Date?e.toJSON():P(e)}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!(e.value>=this.requirement)&&F(this,`value`,e,t,{received:e.value instanceof Date?e.value.toJSON():P(e.value)}),e}}}function gn(e,t){return{kind:`validation`,type:`regex`,reference:gn,async:!1,expects:`${e}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!this.requirement.test(e.value)&&F(this,`format`,e,t),e}}}function _n(e,t,n){return typeof e.fallback==`function`?e.fallback(t,n):e.fallback}function vn(e,t,n){return typeof e.default==`function`?e.default(t,n):e.default}function V(e,t){return I({kind:`schema`,type:`array`,reference:V,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 F(this,`type`,e,t);return e}})}function H(e){return I({kind:`schema`,type:`boolean`,reference:H,expects:`boolean`,async:!1,message:e,"~run"(e,t){return typeof e.value==`boolean`?e.typed=!0:F(this,`type`,e,t),e}})}function U(e,t){return I({kind:`schema`,type:`nullable`,reference:U,expects:`(${e.expects} | null)`,async:!1,wrapped:e,default:t,"~run"(e,t){return e.value===null&&(this.default!==void 0&&(e.value=vn(this,e,t)),e.value===null)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}})}function W(e){return I({kind:`schema`,type:`number`,reference:W,expects:`number`,async:!1,message:e,"~run"(e,t){return typeof e.value==`number`&&!isNaN(e.value)?e.typed=!0:F(this,`type`,e,t),e}})}function G(e,t){return I({kind:`schema`,type:`object`,reference:G,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]:vn(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]=_n(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(F(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 F(this,`type`,e,t);return e}})}function yn(e,t){return I({kind:`schema`,type:`optional`,reference:yn,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,"~run"(e,t){return e.value===void 0&&(this.default!==void 0&&(e.value=vn(this,e,t)),e.value===void 0)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}})}function K(e,t){return I({kind:`schema`,type:`picklist`,reference:K,expects:un(e.map(P),`|`),async:!1,options:e,message:t,"~run"(e,t){return this.options.includes(e.value)?e.typed=!0:F(this,`type`,e,t),e}})}function bn(e,t){return I({kind:`schema`,type:`strict_object`,reference:bn,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]:vn(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]=_n(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(F(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)){F(this,`key`,e,t,{input:r,expected:`never`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]});break}}}else F(this,`type`,e,t);return e}})}function q(e){return I({kind:`schema`,type:`string`,reference:q,expects:`string`,async:!1,message:e,"~run"(e,t){return typeof e.value==`string`?e.typed=!0:F(this,`type`,e,t),e}})}function J(...e){return I({...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 xn(e,t,n){let r=e[`~run`]({value:t},ln(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}},Sn={port:{min:0,max:65535},maxLineBytes:{min:1024,max:16777216},maxEntries:{min:1,max:1e6}},Cn=/^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$/,wn=/^(\*|[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?)$/,Tn=(e,t)=>{let n=e.trim();return n!==``&&n.length<=t};function En(e){try{return!new TextDecoder(e).encoding.startsWith(`utf-16`)}catch{return!1}}var Dn=[`error`,`warn`,`info`,`debug`],On=({min:e,max:t})=>J(W(),z(),B(e),hn(t)),kn=On(Sn.port),An=On({min:1,max:Sn.port.max}),jn=J(q(),gn(/\S/),L(`Not empty or blank.`)),Mn=J(V(J(q(),gn(wn))),L('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.')),Nn=G({enabled:H(),port:An,version:J(U(J(q(),gn(Cn))),L("`null` = bundled version. Otherwise an exact version like `1.65.0`."))}),X={tcp:{host:jn,port:kn,encoding:J(q(),pn(En),L("TextDecoder label of the socket voice's code page. Not `utf-16*`: lines are split on bytes.")),maxLineBytes:On(Sn.maxLineBytes)},http:{host:jn,port:kn,allowedHosts:Mn},buffer:{maxEntries:On(Sn.maxEntries)},log:{level:K(Dn),file:J(U(jn),L("Bridge log file, `null` = default path.")),consoleSpeech:J(H(),L(`Also write the speech text to the console.`))}};X.tcp,X.http,X.buffer,X.log;var Z=e=>bn(Object.fromEntries(Object.entries(e).map(([e,t])=>[e,yn(t)])));Z(Nn.entries),Z({enabled:H(),port:An}),Z(X.tcp),Z(X.http),Z(X.buffer),Z(X.log);var{coordinate:Pn,delayMs:Fn,maxKeys:In}=Y.input;-Pn,-Pn,`${In}`,Fn.max,`${Fn.default}`;var Q=e=>J(W(),z(),B(e)),Ln=J(q(),mn()),Rn=e=>J(q(),pn(e=>Tn(e,Y.sessionLabelLength)),L(`${e} Trimmed, must not be empty, at most ${Y.sessionLabelLength} characters.`)),zn={id:J(Q(1),L(`Increasing, restarts at 1 with the bridge.`)),name:q(),run:J(U(q()),L(`Optional label that groups sessions.`)),client:J(U(q()),L("Who started it: the `X-SR-Speech-Client` header, `null` if it wasn't sent. Added in API 1.10.")),startedAt:Ln,endedAt:J(U(Ln),L("`null` while the session is current.")),startSeq:J(Q(0),L("The last `seq` given out before the session started: `since=startSeq` reads the session from its start. Added in API 1.9.")),firstSeq:J(U(Q(1)),L("First entry still in the buffer, `null` if none.")),lastSeq:J(U(Q(1)),L("Last entry still in the buffer, `null` if none.")),entries:J(Q(0),L(`Entries of this session still in the buffer.`))},Bn=J(G(zn),L(`A session (docs/usage/speech-capture.md#sessions). Added in API 1.3.`),R([{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}]));Rn(`For example the test title.`),Rn(`Optional label that groups sessions, for example one per test run.`);var Vn=J(G({...zn,replaced:J(U(Bn),L("The session this start ended if another client had started it, `null` otherwise. Added in API 1.10."))}),L("`POST /sessions`: the new session, plus `replaced`.")),Hn=J(G({sessions:V(Bn),currentId:U(Q(1)),outsideEntries:J(Q(0),L("Entries in the buffer that were recorded outside any session (`session=none`). Added in API 1.15."))}),L("`GET /sessions`: the current session and the ended ones with entries in the buffer, newest first, and how many entries lie outside any session.")),Un=e=>J(W(),z(),B(e)),Wn=J(q(),mn()),Gn=J(G({seq:J(Un(1),L(`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:K([`speech`,`marker`]),text:q(),receivedAt:J(Wn,L(`When the bridge received the line (UTC).`)),source:J(K([`tcp`,`api`]),L("`tcp` for speech, `api` for markers.")),voice:J(U(q()),L("Header (`voice=<id>`) of the sending voice, `null` if not set or for markers.")),connectionId:J(U(Un(1)),L("TCP connection that delivered it, `null` for markers.")),sessionId:J(yn(U(Un(1))),L("The session that was current, `null` outside any session. Added in API 1.3."))}),L(`One recorded speech line or a marker.`),R([{seq:42,kind:`speech`,text:`Submit, button`,receivedAt:`2026-11-07T14:03:12.345Z`,source:`tcp`,voice:`ssc5000`,connectionId:3,sessionId:7}])),Kn=J(G({entries:V(Gn),truncated:J(H(),L("`true` when entries after `since` were dropped because the buffer was full.")),hasMore:J(H(),L("`true` when more entries follow: ask again with the last entry's `seq` as `since`."))}),L("`GET /speech`: a page of entries after `since`, oldest first."));Y.wait.seen,`${Y.wait.seen}`,`${Y.markerLength}`;var $=e=>J(W(),z(),B(e)),qn=J(q(),mn()),Jn=[`starting`,`ready`,`stopping`],Yn=J(G({state:J(K([`stopped`,`starting`,`running`,`crashed`,`failed`]),L("`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(),L(`The version that runs (configured or bundled).`),R([`1.65.0`])),port:$(0),restarts:J($(0),L(`Restarts after crashes since the service was last started (bridge start or config change).`)),exitCode:J(U(J(W(),z())),L("Exit code of the last unexpected exit. `null` if none, or killed by a signal."))}),L(`A child service (docs/usage/operations.md#child-service-crashes).`)),Xn=G({id:$(1),voice:U(q()),connectedAt:qn}),Zn=J(G({bridge:G({version:J(q(),L(`Package version of the bridge.`),R([`0.3.0`])),apiVersion:J(q(),L("`<major>.<minor>` of this API."),R([`1.13`])),state:K(Jn),startedAt:J(qn,L(`When this bridge run started. Added in API 1.4.`))}),tcp:G({listening:H(),host:q(),port:$(0),encoding:J(q(),L(`Code page used to decode the socket voice.`)),connections:J(V(Xn),L(`Open connections, oldest first.`))}),buffer:G({size:$(0),maxEntries:$(1),firstSeq:U($(1)),lastSeq:U($(1))}),playwright:Yn,mcp:Yn,session:J(G({current:U(Bn),count:J($(0),L("Number of sessions `GET /sessions` lists."))}),L(`Added in API 1.3.`))}),L("`GET /status`. `playwright` since API 1.1, `mcp` since 1.2, `session` since 1.3."));function Qn(e,t){let n=xn(e,t);if(n.success)return{ok:!0,value:n.output};let[r]=n.issues;return{ok:!1,field:dn(r)??`(body)`,message:r.message}}var $n=class{url;constructor(e){this.url=e}list(){return this.send(`GET`,this.url,void 0,Hn)}start(e,t){return this.send(`POST`,this.url,{name:e,run:t},Vn)}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 er(i));if(r===void 0)return;let a=Qn(r,await i.json());if(!a.ok)throw Error(`Unexpected answer at ${a.field}: ${a.message}`);return a.value}};async function er(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 tr=1e3,nr=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)}follow(e,t){let n=new EventSource(`${this.streamUrl}?session=${encodeURIComponent(String(e))}&since=0`);return n.onopen=()=>t.onState(`live`),n.onerror=()=>t.onState(`reconnecting`),n.addEventListener(`entry`,e=>{let n;try{n=JSON.parse(e.data)}catch{return}let r=Qn(Gn,n);r.ok&&t.onEntry(r.value)}),n.addEventListener(`clear`,()=>t.onClear()),()=>n.close()}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(tr)}),a=await fetch(`${this.speechUrl}?${i}`,{headers:{accept:`application/json`},signal:n.signal});if(!a.ok)throw Error(`The request answered ${a.status}`);let o=Qn(Kn,await a.json());if(!o.ok)throw Error(`Unexpected answer at ${o.field}`);let{entries:s,hasMore:c}=o.value;t.onEntries(s);let l=s.at(-1);if(!c||l===void 0)return;r=l.seq}})().then(()=>t.onState(`ended`),()=>{n.signal.aborted||t.onState(`failed`)}),()=>n.abort()}},rr=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=Qn(Zn,await e.json());if(!t.ok)throw Error(`Unexpected status at ${t.field}: ${t.message}`);return t.value}};function ir(e){return e===`1`||e!==`0`&&null}function ar(e){return e?`1`:`0`}var or=`sr-sessions-collapsed`,sr=class{read(){try{return ir(localStorage.getItem(or))}catch{return null}}write(e){try{localStorage.setItem(or,ar(e))}catch{}}};function cr(e){let i=n(!0);return{get collapsed(){return r(i)},init(){t(i,e.read()??!1,!0)},toggle(){t(i,!r(i)),e.write(r(i))}}}var lr=3e3;function ur(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(),lr);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()}}}var dr=5e3;function fr(e,t){return t===null?e===`none`:e===t}function pr(e,t){return e===`none`||e===t}function mr(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 hr(e,t){if(e===`none`)return`Outside sessions`;let n=t.find(t=>t.id===e);return n===void 0?`#${e}`:`#${n.id} ${n.name}`}function gr(e,i){let a=n([]),o=n(`connecting`),s=null;function c(){s?.(),s=null}function l(e){let n=r(a).at(-1)?.seq??0,i=[];for(let t of e)t.seq<=n||(i.push(t),n=t.seq);if(i.length===0)return;let o=[...r(a),...i];t(a,o.length>5e3?o.slice(o.length-dr):o)}return{get entries(){return r(a)},get connection(){return r(o)},open(n,r){return c(),t(a,[]),t(o,`connecting`),s=e.open(n,r,{onEntry:e=>l([e]),onEntries:l,onClear(){t(a,[])},onState(e){t(o,e,!0)}}),c},addMarker(e){return i.addMarker(e)}}}function _r(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 vr(i){let a=n(e(en));return{get current(){return r(a)},init(){t(a,i.read()??`light`,!0)},toggle(){t(a,nn(r(a)),!0),i.write(r(a))}}}var yr=vr(new an),br=_r(new rr(i(`/api/status`))),xr=ur(new $n(i(`/api/sessions`))),Sr=gr(new nr(i(`/api/speech/stream`),i(`/api/speech`)),new on(i(`/api/markers`))),Cr=cr(new sr);export{be as A,ct as C,C as D,Je as E,o as F,a as I,ve as M,h as N,S as O,f as P,ut as S,w as T,Ot as _,yr as a,dt as b,pr as c,Yt as d,M as f,It as g,Kt as h,br as i,ye as j,Ke as k,hr as l,j as m,xr as n,fr as o,Jt as p,Sr as r,mr as s,Cr as t,Y as u,At as v,O as w,lt as x,ft as y};
37
+ `;Qt.styleSheet;var $t=class extends N{getRenderClasses(){return{...super.getRenderClasses(),standard:!0}}};$t.styles=[Zt,Qt],$t=a([o(`md-icon-button`)],$t);var en=`light`;function tn(e){return e===`light`||e===`dark`?e:null}function nn(e){return e===`light`?`dark`:`light`}var rn=`sr-theme`,an=class{read(){try{return tn(localStorage.getItem(rn))}catch{return null}}write(e){document.documentElement.dataset.theme=e;try{localStorage.setItem(rn,e)}catch{}}},on=class{url;constructor(e){this.url=e}async addMarker(e){let t=await fetch(this.url,{method:`POST`,headers:{accept:`application/json`,"content-type":`application/json`},body:JSON.stringify({label:e})});if(!t.ok)throw Error(await sn(t))}};async function sn(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 cn={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function ln(e){return e?{lang:e?.lang??void 0,message:e?.message,abortEarly:e?.abortEarly??void 0,abortPipeEarly:e?.abortPipeEarly??void 0}:cn}function P(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 F(e,t,n,r,i){let a=i&&`input`in i?i.input:n.value,o=i?.expected??e.expects??null,s=i?.received??P(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 un(e,t){let n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??`never`}function I(e){return e[`~standard`]={version:1,vendor:`valibot`,validate:t=>e[`~run`]({value:t},ln())},e}function dn(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 fn=/^\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 pn(e,t){return{kind:`validation`,type:`check`,reference:pn,async:!1,expects:null,requirement:e,message:t,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&F(this,`input`,e,t),e}}}function L(e){return{kind:`metadata`,type:`description`,reference:L,description:e}}function R(e){return{kind:`metadata`,type:`examples`,reference:R,examples:e}}function z(e){return{kind:`validation`,type:`integer`,reference:z,async:!1,expects:null,requirement:Number.isInteger,message:e,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&F(this,`integer`,e,t),e}}}function mn(e){return{kind:`validation`,type:`iso_timestamp`,reference:mn,async:!1,expects:null,requirement:fn,message:e,"~run"(e,t){return e.typed&&!this.requirement.test(e.value)&&F(this,`timestamp`,e,t),e}}}function hn(e,t){return{kind:`validation`,type:`max_value`,reference:hn,async:!1,expects:`<=${e instanceof Date?e.toJSON():P(e)}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!(e.value<=this.requirement)&&F(this,`value`,e,t,{received:e.value instanceof Date?e.value.toJSON():P(e.value)}),e}}}function B(e,t){return{kind:`validation`,type:`min_value`,reference:B,async:!1,expects:`>=${e instanceof Date?e.toJSON():P(e)}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!(e.value>=this.requirement)&&F(this,`value`,e,t,{received:e.value instanceof Date?e.value.toJSON():P(e.value)}),e}}}function gn(e,t){return{kind:`validation`,type:`regex`,reference:gn,async:!1,expects:`${e}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!this.requirement.test(e.value)&&F(this,`format`,e,t),e}}}function _n(e,t,n){return typeof e.fallback==`function`?e.fallback(t,n):e.fallback}function vn(e,t,n){return typeof e.default==`function`?e.default(t,n):e.default}function V(e,t){return I({kind:`schema`,type:`array`,reference:V,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 F(this,`type`,e,t);return e}})}function H(e){return I({kind:`schema`,type:`boolean`,reference:H,expects:`boolean`,async:!1,message:e,"~run"(e,t){return typeof e.value==`boolean`?e.typed=!0:F(this,`type`,e,t),e}})}function U(e,t){return I({kind:`schema`,type:`nullable`,reference:U,expects:`(${e.expects} | null)`,async:!1,wrapped:e,default:t,"~run"(e,t){return e.value===null&&(this.default!==void 0&&(e.value=vn(this,e,t)),e.value===null)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}})}function W(e){return I({kind:`schema`,type:`number`,reference:W,expects:`number`,async:!1,message:e,"~run"(e,t){return typeof e.value==`number`&&!isNaN(e.value)?e.typed=!0:F(this,`type`,e,t),e}})}function G(e,t){return I({kind:`schema`,type:`object`,reference:G,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]:vn(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]=_n(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(F(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 F(this,`type`,e,t);return e}})}function yn(e,t){return I({kind:`schema`,type:`optional`,reference:yn,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,"~run"(e,t){return e.value===void 0&&(this.default!==void 0&&(e.value=vn(this,e,t)),e.value===void 0)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}})}function K(e,t){return I({kind:`schema`,type:`picklist`,reference:K,expects:un(e.map(P),`|`),async:!1,options:e,message:t,"~run"(e,t){return this.options.includes(e.value)?e.typed=!0:F(this,`type`,e,t),e}})}function bn(e,t){return I({kind:`schema`,type:`strict_object`,reference:bn,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]:vn(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]=_n(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(F(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)){F(this,`key`,e,t,{input:r,expected:`never`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]});break}}}else F(this,`type`,e,t);return e}})}function q(e){return I({kind:`schema`,type:`string`,reference:q,expects:`string`,async:!1,message:e,"~run"(e,t){return typeof e.value==`string`?e.typed=!0:F(this,`type`,e,t),e}})}function J(...e){return I({...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 xn(e,t,n){let r=e[`~run`]({value:t},ln(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}},Sn={port:{min:0,max:65535},maxLineBytes:{min:1024,max:16777216},maxEntries:{min:1,max:1e6}},Cn=/^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$/,wn=/^(\*|[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?)$/,Tn=(e,t)=>{let n=e.trim();return n!==``&&n.length<=t};function En(e){try{return!new TextDecoder(e).encoding.startsWith(`utf-16`)}catch{return!1}}var Dn=[`error`,`warn`,`info`,`debug`],On=({min:e,max:t})=>J(W(),z(),B(e),hn(t)),kn=On(Sn.port),An=On({min:1,max:Sn.port.max}),jn=J(q(),gn(/\S/),L(`Not empty or blank.`)),Mn=J(V(J(q(),gn(wn))),L('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.')),Nn=G({enabled:H(),port:An,version:J(U(J(q(),gn(Cn))),L("`null` = bundled version. Otherwise an exact version like `1.65.0`."))}),X={tcp:{host:jn,port:kn,encoding:J(q(),pn(En),L("TextDecoder label of the socket voice's code page. Not `utf-16*`: lines are split on bytes.")),maxLineBytes:On(Sn.maxLineBytes)},http:{host:jn,port:kn,allowedHosts:Mn},buffer:{maxEntries:On(Sn.maxEntries)},log:{level:K(Dn),file:J(U(jn),L("Bridge log file, `null` = default path.")),consoleSpeech:J(H(),L(`Also write the speech text to the console.`))}};X.tcp,X.http,X.buffer,X.log;var Z=e=>bn(Object.fromEntries(Object.entries(e).map(([e,t])=>[e,yn(t)])));Z(Nn.entries),Z({enabled:H(),port:An}),Z(X.tcp),Z(X.http),Z(X.buffer),Z(X.log);var{coordinate:Pn,delayMs:Fn,maxKeys:In}=Y.input;-Pn,-Pn,`${In}`,Fn.max,`${Fn.default}`;var Q=e=>J(W(),z(),B(e)),Ln=J(q(),mn()),Rn=e=>J(q(),pn(e=>Tn(e,Y.sessionLabelLength)),L(`${e} Trimmed, must not be empty, at most ${Y.sessionLabelLength} characters.`)),zn={id:J(Q(1),L(`Increasing, restarts at 1 with the bridge.`)),name:q(),run:J(U(q()),L(`Optional label that groups sessions.`)),client:J(U(q()),L("Who started it: the `X-SR-Speech-Client` header, `null` if it wasn't sent. Added in API 1.10.")),startedAt:Ln,endedAt:J(U(Ln),L("`null` while the session is current.")),startSeq:J(Q(0),L("The last `seq` given out before the session started: `since=startSeq` reads the session from its start. Added in API 1.9.")),firstSeq:J(U(Q(1)),L("First entry still in the buffer, `null` if none.")),lastSeq:J(U(Q(1)),L("Last entry still in the buffer, `null` if none.")),entries:J(Q(0),L(`Entries of this session still in the buffer.`))},Bn=J(G(zn),L(`A session (docs/usage/speech-capture.md#sessions). Added in API 1.3.`),R([{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}]));Rn(`For example the test title.`),Rn(`Optional label that groups sessions, for example one per test run.`);var Vn=J(G({...zn,replaced:J(U(Bn),L("The session this start ended if another client had started it, `null` otherwise. Added in API 1.10."))}),L("`POST /sessions`: the new session, plus `replaced`.")),Hn=J(G({sessions:V(Bn),currentId:U(Q(1)),outsideEntries:J(Q(0),L("Entries in the buffer that were recorded outside any session (`session=none`). Added in API 1.15."))}),L("`GET /sessions`: the current session and the ended ones with entries in the buffer, newest first, and how many entries lie outside any session.")),Un=e=>J(W(),z(),B(e)),Wn=J(q(),mn()),Gn=J(G({seq:J(Un(1),L(`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:K([`speech`,`marker`]),text:q(),receivedAt:J(Wn,L(`When the bridge received the line (UTC).`)),source:J(K([`tcp`,`api`]),L("`tcp` for speech, `api` for markers.")),voice:J(U(q()),L("Header (`voice=<id>`) of the sending voice, `null` if not set or for markers.")),connectionId:J(U(Un(1)),L("TCP connection that delivered it, `null` for markers.")),sessionId:J(yn(U(Un(1))),L("The session that was current, `null` outside any session. Added in API 1.3."))}),L(`One recorded speech line or a marker.`),R([{seq:42,kind:`speech`,text:`Submit, button`,receivedAt:`2026-11-07T14:03:12.345Z`,source:`tcp`,voice:`ssc5000`,connectionId:3,sessionId:7}])),Kn=J(G({entries:V(Gn),truncated:J(H(),L("`true` when entries after `since` were dropped because the buffer was full.")),hasMore:J(H(),L("`true` when more entries follow: ask again with the last entry's `seq` as `since`."))}),L("`GET /speech`: a page of entries after `since`, oldest first."));Y.wait.seen,`${Y.wait.seen}`,`${Y.markerLength}`;var $=e=>J(W(),z(),B(e)),qn=J(q(),mn()),Jn=[`starting`,`ready`,`stopping`],Yn=J(G({state:J(K([`stopped`,`starting`,`running`,`crashed`,`failed`]),L("`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(),L(`The version that runs (configured or bundled).`),R([`1.65.0`])),port:$(0),restarts:J($(0),L(`Restarts after crashes since the service was last started (bridge start or config change).`)),exitCode:J(U(J(W(),z())),L("Exit code of the last unexpected exit. `null` if none, or killed by a signal."))}),L(`A child service (docs/usage/operations.md#child-service-crashes).`)),Xn=G({id:$(1),voice:U(q()),connectedAt:qn}),Zn=J(G({bridge:G({version:J(q(),L(`Package version of the bridge.`),R([`0.3.0`])),apiVersion:J(q(),L("`<major>.<minor>` of this API."),R([`1.13`])),state:K(Jn),startedAt:J(qn,L(`When this bridge run started. Added in API 1.4.`))}),tcp:G({listening:H(),host:q(),port:$(0),encoding:J(q(),L(`Code page used to decode the socket voice.`)),connections:J(V(Xn),L(`Open connections, oldest first.`))}),buffer:G({size:$(0),maxEntries:$(1),firstSeq:U($(1)),lastSeq:U($(1))}),playwright:Yn,mcp:Yn,session:J(G({current:U(Bn),count:J($(0),L("Number of sessions `GET /sessions` lists."))}),L(`Added in API 1.3.`))}),L("`GET /status`. `playwright` since API 1.1, `mcp` since 1.2, `session` since 1.3."));function Qn(e,t){let n=xn(e,t);if(n.success)return{ok:!0,value:n.output};let[r]=n.issues;return{ok:!1,field:dn(r)??`(body)`,message:r.message}}var $n=class{url;constructor(e){this.url=e}list(){return this.send(`GET`,this.url,void 0,Hn)}start(e,t){return this.send(`POST`,this.url,{name:e,run:t},Vn)}async end(){await this.send(`POST`,`${this.url}/end`,void 0,void 0)}async delete(e){await this.send(`DELETE`,`${this.url}/${e}`,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 er(i));if(r===void 0)return;let a=Qn(r,await i.json());if(!a.ok)throw Error(`Unexpected answer at ${a.field}: ${a.message}`);return a.value}};async function er(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 tr=1e3,nr=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)}follow(e,t){let n=new EventSource(`${this.streamUrl}?session=${encodeURIComponent(String(e))}&since=0`);return n.onopen=()=>t.onState(`live`),n.onerror=()=>t.onState(`reconnecting`),n.addEventListener(`entry`,e=>{let n;try{n=JSON.parse(e.data)}catch{return}let r=Qn(Gn,n);r.ok&&t.onEntry(r.value)}),n.addEventListener(`clear`,()=>t.onClear()),()=>n.close()}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(tr)}),a=await fetch(`${this.speechUrl}?${i}`,{headers:{accept:`application/json`},signal:n.signal});if(!a.ok)throw Error(`The request answered ${a.status}`);let o=Qn(Kn,await a.json());if(!o.ok)throw Error(`Unexpected answer at ${o.field}`);let{entries:s,hasMore:c}=o.value;t.onEntries(s);let l=s.at(-1);if(!c||l===void 0)return;r=l.seq}})().then(()=>t.onState(`ended`),()=>{n.signal.aborted||t.onState(`failed`)}),()=>n.abort()}},rr=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=Qn(Zn,await e.json());if(!t.ok)throw Error(`Unexpected status at ${t.field}: ${t.message}`);return t.value}};function ir(e){return e===`1`||e!==`0`&&null}function ar(e){return e?`1`:`0`}var or=`sr-sessions-collapsed`,sr=class{read(){try{return ir(localStorage.getItem(or))}catch{return null}}write(e){try{localStorage.setItem(or,ar(e))}catch{}}};function cr(e){let i=n(!0);return{get collapsed(){return r(i)},init(){t(i,e.read()??!1,!0)},toggle(){t(i,!r(i)),e.write(r(i))}}}var lr=3e3;function ur(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(),lr);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()},async delete(e){await i.delete(e),await te()}}}var dr=5e3;function fr(e,t){return t===null?e===`none`:e===t}function pr(e,t){return e!==`none`&&e!==t}function mr(e,t){return e===`none`||e===t}function hr(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 gr(e,t){if(e===`none`)return`Outside sessions`;let n=t.find(t=>t.id===e);return n===void 0?`#${e}`:`#${n.id} ${n.name}`}function _r(e,i){let a=n([]),o=n(`connecting`),s=null;function c(){s?.(),s=null}function l(e){let n=r(a).at(-1)?.seq??0,i=[];for(let t of e)t.seq<=n||(i.push(t),n=t.seq);if(i.length===0)return;let o=[...r(a),...i];t(a,o.length>5e3?o.slice(o.length-dr):o)}return{get entries(){return r(a)},get connection(){return r(o)},open(n,r){return c(),t(a,[]),t(o,`connecting`),s=e.open(n,r,{onEntry:e=>l([e]),onEntries:l,onClear(){t(a,[])},onState(e){t(o,e,!0)}}),c},addMarker(e){return i.addMarker(e)}}}function vr(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 yr(i){let a=n(e(en));return{get current(){return r(a)},init(){t(a,i.read()??`light`,!0)},toggle(){t(a,nn(r(a)),!0),i.write(r(a))}}}var br=yr(new an),xr=vr(new rr(i(`/api/status`))),Sr=ur(new $n(i(`/api/sessions`))),Cr=_r(new nr(i(`/api/speech/stream`),i(`/api/speech`)),new on(i(`/api/markers`))),wr=cr(new sr);export{Ke as A,ut as C,Je as D,w as E,f as F,o as I,a as L,ye as M,ve as N,C as O,h as P,lt as S,O as T,It as _,br as a,ft as b,hr as c,Y as d,Yt as f,Kt as g,j as h,xr as i,be as j,S as k,mr as l,Jt as m,Sr as n,fr as o,M as p,Cr as r,pr as s,wr as t,gr as u,Ot as v,ct as w,dt as x,At as y};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BKE0tKKK.js","../chunks/CcBdu3S8.js","../chunks/Dg9MaatX.js","./payload.DSmR2FwN.js","../chunks/w6UAqFO5.js","../chunks/DbiAGPgw.js","../assets/0.B2ZWH0rX.css","../nodes/1.Bd-KoKuj.js","../nodes/2.BCy3UgNz.js","../chunks/DvmLiMpQ.js","../assets/2.CtITS5jU.css","../nodes/3.CsdEJLWJ.js","../nodes/4.CXVi2Rvi.js"])))=>i.map(i=>d[i]);
2
- import{t as e}from"../chunks/DclECHGd.js";var t={},n=[()=>e(()=>import(`../nodes/0.BKE0tKKK.js`),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),()=>e(()=>import(`../nodes/1.Bd-KoKuj.js`),__vite__mapDeps([7,1,2,3,5]),import.meta.url),()=>e(()=>import(`../nodes/2.BCy3UgNz.js`),__vite__mapDeps([8,1,2,3,9,4,5,10]),import.meta.url),()=>e(()=>import(`../nodes/3.CsdEJLWJ.js`),__vite__mapDeps([11,1]),import.meta.url),()=>e(()=>import(`../nodes/4.CXVi2Rvi.js`),__vite__mapDeps([12,1]),import.meta.url)],r=[0],i={"/":[-3],"/settings":[3],"/setup":[4]},a={handleError:(({kind:e,error:t})=>{e===`unknown`&&console.error(t)}),reroute:(()=>{}),transport:{}},o=Object.fromEntries(Object.entries(a.transport).map(([e,t])=>[e,t.decode])),s=Object.fromEntries(Object.entries(a.transport).map(([e,t])=>[e,t.encode])),c=!1,l=(e,t)=>o[e](t),u=()=>e(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{l as decode,o as decoders,i as dictionary,s as encoders,u as get_error_template,c as hash,a as hooks,t as matchers,n as nodes,r as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BTOtEgN4.js","../chunks/CcBdu3S8.js","../chunks/Dg9MaatX.js","./payload.DSmR2FwN.js","../chunks/VoEQsW8I.js","../chunks/DbiAGPgw.js","../assets/0.B2ZWH0rX.css","../nodes/1.Bd-KoKuj.js","../nodes/2.COkKMNHv.js","../chunks/DvmLiMpQ.js","../assets/2.BbalQTLT.css","../nodes/3.CsdEJLWJ.js","../nodes/4.CXVi2Rvi.js"])))=>i.map(i=>d[i]);
2
+ import{t as e}from"../chunks/DclECHGd.js";var t={},n=[()=>e(()=>import(`../nodes/0.BTOtEgN4.js`),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),()=>e(()=>import(`../nodes/1.Bd-KoKuj.js`),__vite__mapDeps([7,1,2,3,5]),import.meta.url),()=>e(()=>import(`../nodes/2.COkKMNHv.js`),__vite__mapDeps([8,1,2,3,9,4,5,10]),import.meta.url),()=>e(()=>import(`../nodes/3.CsdEJLWJ.js`),__vite__mapDeps([11,1]),import.meta.url),()=>e(()=>import(`../nodes/4.CXVi2Rvi.js`),__vite__mapDeps([12,1]),import.meta.url)],r=[0],i={"/":[-3],"/settings":[3],"/setup":[4]},a={handleError:(({kind:e,error:t})=>{e===`unknown`&&console.error(t)}),reroute:(()=>{}),transport:{}},o=Object.fromEntries(Object.entries(a.transport).map(([e,t])=>[e,t.decode])),s=Object.fromEntries(Object.entries(a.transport).map(([e,t])=>[e,t.encode])),c=!1,l=(e,t)=>o[e](t),u=()=>e(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{l as decode,o as decoders,i as dictionary,s as encoders,u as get_error_template,c as hash,a as hooks,t as matchers,n as nodes,r as server_loads};
@@ -1 +1 @@
1
- import{B as e,C as t,H as n,M as r,N as i,P as a,R as o,S as s,T as c,V as l,b as u,c as d,f,g as p,i as m,j as h,k as g,o as _,p as v,r as y,s as b,u as x,v as S,z as C}from"../chunks/CcBdu3S8.js";import{n as w,o as T}from"../chunks/Dg9MaatX.js";import{a as E,i as D}from"../chunks/w6UAqFO5.js";import"../chunks/DbiAGPgw.js";var O=`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`,k=new URL(`../assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2`,import.meta.url).href,A=u(`<li><span aria-hidden="true"></span> <span aria-hidden="true" class="chip-label svelte-19wvxlf"> </span></li>`),j=u(`<ul aria-label="Bridge status" class="svelte-19wvxlf"></ul> <span class="sr-only svelte-19wvxlf" role="status"> </span>`,1);function M(e,t){var o=j(),s=r(o);x(s,21,()=>t.chips,e=>e.id,(e,t)=>{var r=A();let o;var s=h(r),l=a(s,2),u=i(l,!0);n(r),g(()=>{o=_(r,1,b(c(t).tone),`svelte-19wvxlf`,o,{down:c(t).down}),y(r,`aria-label`,c(t).description),y(r,`title`,c(t).text),_(s,1,`dot ${c(t).dot??``}`,`svelte-19wvxlf`),p(u,c(t).text)}),S(e,r)}),n(s);var l=a(s,2),u=i(l,!0);g(()=>p(u,t.announcement)),S(e,o)}var N=u(`<md-icon-button><md-icon>refresh</md-icon></md-icon-button>`,2);function P(e,r){var i=N();m(i,`title`,`Refresh status`),_(i,1,`svelte-5q7qd7`);var a=h(i);let o;n(i),g(()=>o=_(a,1,`svelte-5q7qd7`,null,o,{spin:r.loading})),t(`click`,i,function(...e){r.onRetry?.apply(this,e)}),S(e,i)}s([`click`]);var F=`24px "Material Symbols Outlined"`;async function I(){try{await document.fonts.load(F)}catch{}document.documentElement.setAttribute(`data-icons-ready`,``)}function L(e,t){if(e===null)return[R(`playwright`,`Playwright`),R(`mcp`,`MCP`),R(`session`,`Session`)];let n=[z(`playwright`,`Playwright`,e.playwright),z(`mcp`,`MCP`,e.mcp),B(e)];return t?n:n.map(e=>({...e,tone:`neutral`,down:!0}))}function R(e,t){return{id:e,text:t,tone:`neutral`,dot:`hollow`,description:`${t}, state unknown`,down:!0}}function z(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{id:e,text:r,tone:`neutral`,dot:`hollow`,description:`${r}, stopped`,down:!0}}}function B({session:e}){if(e.current===null)return{id:`session`,text:`No session`,tone:`neutral`,dot:`hollow`,description:`No session is running`};let t=`Session #${e.current.id}`;return{id:`session`,text:t,tone:`ok`,dot:`filled`,description:`${t}, live`}}function V(e,t){return t?e.filter(e=>e.tone===`error`||e.tone===`warning`).map(e=>`${e.description}.`).join(` `):`Bridge unreachable.`}var H=u(`<!> <!>`,1);function U(t,n){e(n,!0);let i=o(()=>w.data.status),s=o(()=>D.status??c(i)),l=o(()=>L(c(s),D.reachable));f(()=>D.init(c(i)));var u=H(),d=r(u);{let e=o(()=>V(c(l),D.reachable));M(d,{get chips(){return c(l)},get announcement(){return c(e)}})}P(a(d,2),{get loading(){return D.loading},onRetry:()=>void D.retry()}),S(t,u),C()}var W=u(`<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 G(e,t){var r=W(),o=a(h(r),2),s=a(h(o),2),c=i(s,!0);n(o),U(a(o,2),{}),n(r),g(()=>p(c,t.host)),S(e,r)}var K=e=>e.length>1?e.replace(/\/+$/,``):e;function q(e,t){let n=K(e.href),r=K(t);return e.exact?r===n:r===n||r.startsWith(`${n}/`)}var J=u(`<li><a class="svelte-sxtjmn"><span><md-icon> </md-icon></span> <span class="label svelte-sxtjmn"> </span></a></li>`,2),Y=u(`<nav aria-label="Pages" class="svelte-sxtjmn"><ul class="svelte-sxtjmn"></ul></nav>`);function X(t,r){e(r,!0);var s=Y(),l=h(s);x(l,21,()=>r.items,e=>e.href,(e,t)=>{let s=o(()=>q(c(t),r.currentPath));var l=J(),u=h(l),d=h(u);let f;var m=h(d),v=i(m,!0);n(d);var b=a(d,2),x=i(b,!0);n(u),n(l),g(()=>{y(u,`href`,c(t).href),y(u,`aria-current`,c(s)?`page`:void 0),f=_(d,1,`indicator svelte-sxtjmn`,null,f,{current:c(s)}),p(v,c(t).icon),p(x,c(t).label)}),S(e,l)}),n(l),n(s),S(t,s),C()}var Z=u(`<link rel="icon"/> <link rel="preload" as="font" type="font/woff2" crossorigin="anonymous"/> <meta name="color-scheme" content="light dark"/>`,1),Q=u(`<div class="app svelte-12qhfyh"><!> <div class="body svelte-12qhfyh"><!> <main class="svelte-12qhfyh"><!></main></div></div>`);function $(t,i){e(i,!0);let o=[{href:T(`/`),label:`Monitor`,icon:`monitor`,exact:!0},{href:T(`/settings`),label:`Settings`,icon:`settings`},{href:T(`/setup`),label:`Setup`,icon:`build`}];f(()=>{E.init(),I()});var s=Q();d(`12qhfyh`,e=>{var t=Z(),n=r(t),i=a(n,2);l(2),g(()=>{y(n,`href`,O),y(i,`href`,k)}),S(e,t)});var c=h(s);G(c,{get host(){return w.url.host}});var u=a(c,2),p=h(u);X(p,{get items(){return o},get currentPath(){return w.url.pathname}});var m=a(p,2),_=h(m);v(_,()=>i.children),n(m),n(u),n(s),S(t,s),C()}export{$ as component};
1
+ import{B as e,C as t,H as n,M as r,N as i,P as a,R as o,S as s,T as c,V as l,b as u,c as d,f,g as p,i as m,j as h,k as g,o as _,p as v,r as y,s as b,u as x,v as S,z as C}from"../chunks/CcBdu3S8.js";import{n as w,o as T}from"../chunks/Dg9MaatX.js";import{a as E,i as D}from"../chunks/VoEQsW8I.js";import"../chunks/DbiAGPgw.js";var O=`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`,k=new URL(`../assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2`,import.meta.url).href,A=u(`<li><span aria-hidden="true"></span> <span aria-hidden="true" class="chip-label svelte-19wvxlf"> </span></li>`),j=u(`<ul aria-label="Bridge status" class="svelte-19wvxlf"></ul> <span class="sr-only svelte-19wvxlf" role="status"> </span>`,1);function M(e,t){var o=j(),s=r(o);x(s,21,()=>t.chips,e=>e.id,(e,t)=>{var r=A();let o;var s=h(r),l=a(s,2),u=i(l,!0);n(r),g(()=>{o=_(r,1,b(c(t).tone),`svelte-19wvxlf`,o,{down:c(t).down}),y(r,`aria-label`,c(t).description),y(r,`title`,c(t).text),_(s,1,`dot ${c(t).dot??``}`,`svelte-19wvxlf`),p(u,c(t).text)}),S(e,r)}),n(s);var l=a(s,2),u=i(l,!0);g(()=>p(u,t.announcement)),S(e,o)}var N=u(`<md-icon-button><md-icon>refresh</md-icon></md-icon-button>`,2);function P(e,r){var i=N();m(i,`title`,`Refresh status`),_(i,1,`svelte-5q7qd7`);var a=h(i);let o;n(i),g(()=>o=_(a,1,`svelte-5q7qd7`,null,o,{spin:r.loading})),t(`click`,i,function(...e){r.onRetry?.apply(this,e)}),S(e,i)}s([`click`]);var F=`24px "Material Symbols Outlined"`;async function I(){try{await document.fonts.load(F)}catch{}document.documentElement.setAttribute(`data-icons-ready`,``)}function L(e,t){if(e===null)return[R(`playwright`,`Playwright`),R(`mcp`,`MCP`),R(`session`,`Session`)];let n=[z(`playwright`,`Playwright`,e.playwright),z(`mcp`,`MCP`,e.mcp),B(e)];return t?n:n.map(e=>({...e,tone:`neutral`,down:!0}))}function R(e,t){return{id:e,text:t,tone:`neutral`,dot:`hollow`,description:`${t}, state unknown`,down:!0}}function z(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{id:e,text:r,tone:`neutral`,dot:`hollow`,description:`${r}, stopped`,down:!0}}}function B({session:e}){if(e.current===null)return{id:`session`,text:`No session`,tone:`neutral`,dot:`hollow`,description:`No session is running`};let t=`Session #${e.current.id}`;return{id:`session`,text:t,tone:`ok`,dot:`filled`,description:`${t}, live`}}function V(e,t){return t?e.filter(e=>e.tone===`error`||e.tone===`warning`).map(e=>`${e.description}.`).join(` `):`Bridge unreachable.`}var H=u(`<!> <!>`,1);function U(t,n){e(n,!0);let i=o(()=>w.data.status),s=o(()=>D.status??c(i)),l=o(()=>L(c(s),D.reachable));f(()=>D.init(c(i)));var u=H(),d=r(u);{let e=o(()=>V(c(l),D.reachable));M(d,{get chips(){return c(l)},get announcement(){return c(e)}})}P(a(d,2),{get loading(){return D.loading},onRetry:()=>void D.retry()}),S(t,u),C()}var W=u(`<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 G(e,t){var r=W(),o=a(h(r),2),s=a(h(o),2),c=i(s,!0);n(o),U(a(o,2),{}),n(r),g(()=>p(c,t.host)),S(e,r)}var K=e=>e.length>1?e.replace(/\/+$/,``):e;function q(e,t){let n=K(e.href),r=K(t);return e.exact?r===n:r===n||r.startsWith(`${n}/`)}var J=u(`<li><a class="svelte-sxtjmn"><span><md-icon> </md-icon></span> <span class="label svelte-sxtjmn"> </span></a></li>`,2),Y=u(`<nav aria-label="Pages" class="svelte-sxtjmn"><ul class="svelte-sxtjmn"></ul></nav>`);function X(t,r){e(r,!0);var s=Y(),l=h(s);x(l,21,()=>r.items,e=>e.href,(e,t)=>{let s=o(()=>q(c(t),r.currentPath));var l=J(),u=h(l),d=h(u);let f;var m=h(d),v=i(m,!0);n(d);var b=a(d,2),x=i(b,!0);n(u),n(l),g(()=>{y(u,`href`,c(t).href),y(u,`aria-current`,c(s)?`page`:void 0),f=_(d,1,`indicator svelte-sxtjmn`,null,f,{current:c(s)}),p(v,c(t).icon),p(x,c(t).label)}),S(e,l)}),n(l),n(s),S(t,s),C()}var Z=u(`<link rel="icon"/> <link rel="preload" as="font" type="font/woff2" crossorigin="anonymous"/> <meta name="color-scheme" content="light dark"/>`,1),Q=u(`<div class="app svelte-12qhfyh"><!> <div class="body svelte-12qhfyh"><!> <main class="svelte-12qhfyh"><!></main></div></div>`);function $(t,i){e(i,!0);let o=[{href:T(`/`),label:`Monitor`,icon:`monitor`,exact:!0},{href:T(`/settings`),label:`Settings`,icon:`settings`},{href:T(`/setup`),label:`Setup`,icon:`build`}];f(()=>{E.init(),I()});var s=Q();d(`12qhfyh`,e=>{var t=Z(),n=r(t),i=a(n,2);l(2),g(()=>{y(n,`href`,O),y(i,`href`,k)}),S(e,t)});var c=h(s);G(c,{get host(){return w.url.host}});var u=a(c,2),p=h(u);X(p,{get items(){return o},get currentPath(){return w.url.pathname}});var m=a(p,2),_=h(m);v(_,()=>i.children),n(m),n(u),n(s),S(t,s),C()}export{$ as component};