@screenreader-speech-capture/bridge 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +70 -26
- package/dist/ui/adapter-node.js +1 -1
- package/dist/ui/client/ui/_app/immutable/chunks/{CTnnxqUD.js → C75l7c5l.js} +1 -1
- package/dist/ui/client/ui/_app/immutable/chunks/C75l7c5l.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/C75l7c5l.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Cb63XE4v.js +33 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Cb63XE4v.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Cb63XE4v.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{BLbj0ykL.js → DWjfB3ah.js} +1 -1
- package/dist/ui/client/ui/_app/immutable/chunks/DWjfB3ah.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DWjfB3ah.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/{app.CHExvln1.js → app.B2MXuPeH.js} +2 -2
- package/dist/ui/client/ui/_app/immutable/entry/app.B2MXuPeH.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.B2MXuPeH.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.CEfoZ0Mb.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.CEfoZ0Mb.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.CEfoZ0Mb.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/{3.D9AmPYb5.js → 3.BzIz3rja.js} +2 -2
- package/dist/ui/client/ui/_app/immutable/nodes/3.BzIz3rja.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.BzIz3rja.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/{4.DxNIrNp_.js → 4.B9Ke6ZBV.js} +1 -1
- package/dist/ui/client/ui/_app/immutable/nodes/4.B9Ke6ZBV.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.B9Ke6ZBV.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/{6.D9jpgBJB.js → 6.B_1Pts2e.js} +1 -1
- package/dist/ui/client/ui/_app/immutable/nodes/6.B_1Pts2e.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.B_1Pts2e.js.gz +0 -0
- package/dist/ui/client/ui/_app/version.json +1 -1
- package/dist/ui/client/ui/_app/version.json.br +0 -0
- package/dist/ui/client/ui/_app/version.json.gz +0 -0
- package/dist/ui/server/.vite/manifest.json +17 -4
- package/dist/ui/server/chunks/instance.js +3 -3
- package/dist/ui/server/chunks/internal.js +1 -1
- package/dist/ui/server/chunks/rules.js +1 -6
- package/dist/ui/server/chunks/rules.js.map +1 -1
- package/dist/ui/server/chunks/src.js +20 -31
- package/dist/ui/server/chunks/src.js.map +1 -1
- package/dist/ui/server/chunks/validate.js +23 -0
- package/dist/ui/server/chunks/validate.js.map +1 -0
- package/dist/ui/server/entries/endpoints/api/config/_server.ts.js +2 -1
- package/dist/ui/server/entries/endpoints/api/config/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/input/keys/_server.ts.js +2 -1
- package/dist/ui/server/entries/endpoints/api/input/keys/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js +2 -1
- package/dist/ui/server/entries/endpoints/api/markers/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js +2 -1
- package/dist/ui/server/entries/endpoints/api/sessions/_server.ts.js.map +1 -1
- package/dist/ui/server/entries/hooks.server.js +2 -1
- package/dist/ui/server/entries/hooks.server.js.map +1 -1
- package/dist/ui/server/entries/pages/_layout.svelte.js +2 -1
- package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
- package/dist/ui/server/manifest-full.js +1 -1
- package/dist/ui/server/manifest.js +1 -1
- package/dist/ui/server/nodes/0.js +1 -1
- package/dist/ui/server/nodes/3.js +1 -1
- package/dist/ui/server/nodes/4.js +1 -1
- package/dist/ui/server/nodes/6.js +1 -1
- package/dist/ui/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/ui/client/ui/_app/immutable/chunks/BLbj0ykL.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BLbj0ykL.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CTnnxqUD.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CTnnxqUD.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/R_4U_-zb.js +0 -33
- package/dist/ui/client/ui/_app/immutable/chunks/R_4U_-zb.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/R_4U_-zb.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.CHExvln1.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.CHExvln1.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.DENUQERM.js +0 -1
- package/dist/ui/client/ui/_app/immutable/nodes/0.DENUQERM.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.DENUQERM.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.D9AmPYb5.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.D9AmPYb5.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.DxNIrNp_.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.DxNIrNp_.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.D9jpgBJB.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.D9jpgBJB.js.gz +0 -0
package/dist/cli.mjs
CHANGED
|
@@ -15,14 +15,14 @@ import { execFile, spawn, spawnSync } from "node:child_process";
|
|
|
15
15
|
import readline from "node:readline";
|
|
16
16
|
import { createInterface } from "node:readline/promises";
|
|
17
17
|
// package.json
|
|
18
|
-
var version = "0.
|
|
18
|
+
var version = "0.3.0";
|
|
19
19
|
// ../shared/src/api-version.ts
|
|
20
20
|
/**
|
|
21
21
|
* `<major>.<minor>` of the HTTP API. Minor versions only add things, with the exceptions in
|
|
22
22
|
* docs/usage/http-api.md#versioning. Within a major version the enums of the answers never grow
|
|
23
23
|
* (`openapi/freeze.test.ts`).
|
|
24
24
|
*/
|
|
25
|
-
const API_VERSION = "1.
|
|
25
|
+
const API_VERSION = "1.34";
|
|
26
26
|
/** Path prefix of every API route. */
|
|
27
27
|
const API_PREFIX = "/api/v1";
|
|
28
28
|
/**
|
|
@@ -832,11 +832,6 @@ const CONFIG_LIMITS = {
|
|
|
832
832
|
const EXACT_VERSION_PATTERN = /^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$/;
|
|
833
833
|
/** A host name without port or scheme, or `*` (`http.allowedHosts`). */
|
|
834
834
|
const HOST_NAME_PATTERN = /^(\*|[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?)$/;
|
|
835
|
-
/** Whether `text` is a usable label: not empty after trimming, at most `max` characters trimmed. */
|
|
836
|
-
const isTrimmedLabel = (text, max) => {
|
|
837
|
-
const trimmed = text.trim();
|
|
838
|
-
return trimmed !== "" && trimmed.length <= max;
|
|
839
|
-
};
|
|
840
835
|
// ../shared/src/rules/vocabulary.ts
|
|
841
836
|
/** `log.level`, from the least to the most detail. */
|
|
842
837
|
const LOG_LEVELS = [
|
|
@@ -922,6 +917,12 @@ const ERROR_STATUS = {
|
|
|
922
917
|
SERVICE_UNAVAILABLE: 503,
|
|
923
918
|
INTERNAL: 500
|
|
924
919
|
};
|
|
920
|
+
// ../shared/src/rules/labels.ts
|
|
921
|
+
/** Whether `text` is a usable label: not empty after trimming, at most `max` characters trimmed. */
|
|
922
|
+
const isTrimmedLabel = (text, max) => {
|
|
923
|
+
const trimmed = text.trim();
|
|
924
|
+
return trimmed !== "" && trimmed.length <= max;
|
|
925
|
+
};
|
|
925
926
|
API_LIMITS.wait.seen, `${API_LIMITS.wait.seen}`;
|
|
926
927
|
const MarkerRequestSchema = /* @__PURE__ */ strictObject({ label: /* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ check((label) => isTrimmedLabel(label, API_LIMITS.markerLength)), /* @__PURE__ */ description(`Marker text. Trimmed, must not be empty, at most ${API_LIMITS.markerLength} characters.`), /* @__PURE__ */ examples(["step 3"])) });
|
|
927
928
|
// ../shared/src/input.ts
|
|
@@ -934,17 +935,20 @@ const capture = /* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ st
|
|
|
934
935
|
timeoutMs: ms(0, CAPTURE.timeoutMs.max, `Longest capture, counted from the input; speech that goes on until then is \`timeout\`. ${CAPTURE.timeoutMs.default} if omitted.`),
|
|
935
936
|
settleMs: ms(0, CAPTURE.settleMs.max, "Before the input, wait until nothing was spoken for this long (at most `timeoutMs`), so speech still trailing from an earlier step is not captured. The input is sent after `timeoutMs` even if the speech did not pause. 0 (no wait) if omitted.")
|
|
936
937
|
}), /* @__PURE__ */ description("Records the speech the input causes and answers with it (`InputCapture` instead of `InputResult`). Times are in milliseconds and measured on the bridge, from when it received the speech. Added in API 1.19.")));
|
|
938
|
+
const mark = /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Put a marker into the speech log right before the input is sent (`keys: Tab`, `click: left 640,12`), `true` if omitted (docs/usage/native-input.md#markers-in-the-speech-log). Added in API 1.34."));
|
|
937
939
|
CAPTURE.entries, `${CAPTURE.entries}`;
|
|
938
940
|
const ClickRequestSchema = /* @__PURE__ */ pipe(/* @__PURE__ */ strictObject({
|
|
939
941
|
x: /* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ integer$3(), /* @__PURE__ */ minValue(-coordinate$1), /* @__PURE__ */ maxValue(coordinate$1), /* @__PURE__ */ description("Screen x in physical pixels."), /* @__PURE__ */ examples([640])),
|
|
940
942
|
y: /* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ integer$3(), /* @__PURE__ */ minValue(-coordinate$1), /* @__PURE__ */ maxValue(coordinate$1), /* @__PURE__ */ description("Screen y in physical pixels."), /* @__PURE__ */ examples([12])),
|
|
941
943
|
button: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ picklist(MOUSE_BUTTONS)), /* @__PURE__ */ description("Mouse button, `left` if omitted.")),
|
|
944
|
+
mark,
|
|
942
945
|
capture
|
|
943
946
|
}), /* @__PURE__ */ description("`POST /input/click`: a native mouse click at a screen point, to give a window the focus. Added in API 1.14."));
|
|
944
947
|
const KeysRequestSchema = /* @__PURE__ */ pipe(/* @__PURE__ */ strictObject({
|
|
945
948
|
keys: /* @__PURE__ */ pipe(/* @__PURE__ */ union([/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ nonEmpty()), /* @__PURE__ */ pipe(/* @__PURE__ */ array(/* @__PURE__ */ pipe(/* @__PURE__ */ string(), /* @__PURE__ */ nonEmpty())), /* @__PURE__ */ minLength(1), /* @__PURE__ */ maxLength(maxKeys$1))]), /* @__PURE__ */ description(`One chord (\`Insert+T\`) or a sequence of chords (\`["h", "h", "Insert+Down"]\`). Chords join modifiers (\`Control\`, \`Shift\`, \`Alt\`, \`Win\`, \`Insert\`, \`CapsLock\`) and one key with \`+\`. Names are case-insensitive (docs/usage/native-input.md#key-names); the numpad keys (\`numpad7\`, \`numpadEnter\`, …) since API 1.30. At most ${maxKeys$1} chords.`), /* @__PURE__ */ examples(["Insert+T"])),
|
|
946
949
|
delayMs: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ pipe(/* @__PURE__ */ number(), /* @__PURE__ */ integer$3(), /* @__PURE__ */ minValue(0), /* @__PURE__ */ maxValue(delayMs$1.max))), /* @__PURE__ */ description(`Pause between the chords of a sequence in milliseconds, ${delayMs$1.default} if omitted.`)),
|
|
947
950
|
expectedTarget: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ picklist(FOCUS_TARGETS)), /* @__PURE__ */ description("Only send the keys while a window of this browser is in front: `mcp` (Playwright MCP) or `playwright` (the Playwright server). Checked before every chord; otherwise, and where the bridge cannot tell, `409 WRONG_WINDOW` and no further chord is sent (docs/usage/native-input.md#requiring-a-target-window). Added in API 1.32.")),
|
|
951
|
+
mark,
|
|
948
952
|
capture
|
|
949
953
|
}), /* @__PURE__ */ description("`POST /input/keys`: send key presses to the focused window. Added in API 1.14."));
|
|
950
954
|
const FocusRequestSchema = /* @__PURE__ */ pipe(/* @__PURE__ */ strictObject({
|
|
@@ -1096,8 +1100,8 @@ const PLAYWRIGHT_MCP_PATH = "/playwright-mcp";
|
|
|
1096
1100
|
// ../shared/src/rules/text-match.ts
|
|
1097
1101
|
/**
|
|
1098
1102
|
* The `normalize` rule of the HTTP API (docs/usage/http-api.md). The bridge applies it in
|
|
1099
|
-
* `GET /speech/wait`, the client in its own waits, so both must use this one copy
|
|
1100
|
-
*
|
|
1103
|
+
* `GET /speech/wait`, the client in its own waits, so both must use this one copy: it belongs to
|
|
1104
|
+
* the contract, not to either side.
|
|
1101
1105
|
*/
|
|
1102
1106
|
/** Lower case, whitespace runs collapsed to one space, trimmed. */
|
|
1103
1107
|
function normalizeText(text) {
|
|
@@ -1429,7 +1433,7 @@ var PortUnavailableError = class extends Error {
|
|
|
1429
1433
|
this.reason = reason;
|
|
1430
1434
|
}
|
|
1431
1435
|
};
|
|
1432
|
-
// src/adapters/
|
|
1436
|
+
// src/adapters/common/net/listen.ts
|
|
1433
1437
|
/**
|
|
1434
1438
|
* Thrown when a listener can't start for another reason than its port being unavailable (for
|
|
1435
1439
|
* example `EADDRNOTAVAIL`: an address this machine doesn't have). A port that is in use or not
|
|
@@ -1476,7 +1480,7 @@ async function listen(server, host, port) {
|
|
|
1476
1480
|
});
|
|
1477
1481
|
return server.address().port;
|
|
1478
1482
|
}
|
|
1479
|
-
// src/adapters/
|
|
1483
|
+
// src/adapters/common/net/reachable-urls.ts
|
|
1480
1484
|
/** True for a host that means "every interface" (`0.0.0.0`, `::`). */
|
|
1481
1485
|
const isWildcard = (host) => [
|
|
1482
1486
|
"0.0.0.0",
|
|
@@ -1527,7 +1531,7 @@ function describeListener(scheme, host, port, path = "", interfaces = os.network
|
|
|
1527
1531
|
const urls = reachableUrls(scheme, host, port, interfaces).map((url) => `${url}${path}`).join(", ");
|
|
1528
1532
|
return isWildcard(host) ? `${hostPort(host, port)}, reachable at ${urls}` : urls;
|
|
1529
1533
|
}
|
|
1530
|
-
// src/adapters/
|
|
1534
|
+
// src/adapters/common/net/child-host.ts
|
|
1531
1535
|
/**
|
|
1532
1536
|
* Where the child services listen: loopback only. Clients reach them through the bridge's HTTP
|
|
1533
1537
|
* port, which checks Host and Origin for them like for the API
|
|
@@ -1756,6 +1760,7 @@ function hasType(value, schema) {
|
|
|
1756
1760
|
switch (schema.type) {
|
|
1757
1761
|
case "string": return typeof value === "string";
|
|
1758
1762
|
case "number": return Number.isFinite(value);
|
|
1763
|
+
case "boolean": return typeof value === "boolean";
|
|
1759
1764
|
case "picklist": return schema.options.includes(value);
|
|
1760
1765
|
case "array": return Array.isArray(value) && value.every((item) => hasType(item, schema.item));
|
|
1761
1766
|
case "union": return schema.options.some((option) => hasType(value, option));
|
|
@@ -1979,19 +1984,21 @@ function toFocusRequest({ target, title }) {
|
|
|
1979
1984
|
title
|
|
1980
1985
|
};
|
|
1981
1986
|
}
|
|
1982
|
-
function toClickRequest({ x, y, button }) {
|
|
1987
|
+
function toClickRequest({ x, y, button, mark }) {
|
|
1983
1988
|
return {
|
|
1984
1989
|
x,
|
|
1985
1990
|
y,
|
|
1986
|
-
button
|
|
1991
|
+
button,
|
|
1992
|
+
mark
|
|
1987
1993
|
};
|
|
1988
1994
|
}
|
|
1989
1995
|
function toPressKeysRequest(dto) {
|
|
1990
|
-
const { keys, delayMs, expectedTarget } = dto;
|
|
1996
|
+
const { keys, delayMs, expectedTarget, mark } = dto;
|
|
1991
1997
|
return {
|
|
1992
1998
|
keys,
|
|
1993
1999
|
delayMs,
|
|
1994
|
-
expectedTarget
|
|
2000
|
+
expectedTarget,
|
|
2001
|
+
mark
|
|
1995
2002
|
};
|
|
1996
2003
|
}
|
|
1997
2004
|
function toCaptureOptions(dto) {
|
|
@@ -3201,7 +3208,7 @@ function pipeLines(child, output) {
|
|
|
3201
3208
|
crlfDelay: Infinity
|
|
3202
3209
|
}).on("line", (line) => output.warn(line));
|
|
3203
3210
|
}
|
|
3204
|
-
// src/application/
|
|
3211
|
+
// src/application/support/abort.ts
|
|
3205
3212
|
/** The error an aborted signal ends a pending request with: its reason, if that is an error. */
|
|
3206
3213
|
function abortReason(signal) {
|
|
3207
3214
|
const reason = signal.reason;
|
|
@@ -3903,7 +3910,7 @@ function followUntil(deps, { since, sessionId, signal, pace, timeLeft, startTime
|
|
|
3903
3910
|
}
|
|
3904
3911
|
});
|
|
3905
3912
|
}
|
|
3906
|
-
// src/application/
|
|
3913
|
+
// src/application/support/int-option.ts
|
|
3907
3914
|
/**
|
|
3908
3915
|
* A numeric use-case option: `fallback` if it is missing, otherwise checked to be an integer
|
|
3909
3916
|
* from `min` to `max` (`INVALID_REQUEST` for `field` if not).
|
|
@@ -3930,7 +3937,8 @@ function parseOptions(options) {
|
|
|
3930
3937
|
}
|
|
3931
3938
|
/**
|
|
3932
3939
|
* Native input that records the speech it causes (docs/usage/native-input.md#capturing-the-speech-an-input-causes).
|
|
3933
|
-
* The start `seq` is read in the input queue right before the input is sent
|
|
3940
|
+
* The start `seq` is read in the input queue right before the input is sent (after the input's
|
|
3941
|
+
* marker), so no other input
|
|
3934
3942
|
* and no speech that came before it gets into the capture; silence is timed from the entries'
|
|
3935
3943
|
* `receivedAt`, on the bridge's clock, not from when a client got them.
|
|
3936
3944
|
*/
|
|
@@ -3958,6 +3966,8 @@ var InputCaptureService = class {
|
|
|
3958
3966
|
beforeInject: async () => {
|
|
3959
3967
|
if (options.settleMs > 0) await this.settle(options, stop.signal);
|
|
3960
3968
|
if (stop.signal.aborted) throw abortReason(stop.signal);
|
|
3969
|
+
},
|
|
3970
|
+
onSend: () => {
|
|
3961
3971
|
startSeq = this.deps.log.headSeq;
|
|
3962
3972
|
}
|
|
3963
3973
|
}),
|
|
@@ -4029,7 +4039,7 @@ function isWindowOfTarget(window, tree) {
|
|
|
4029
4039
|
function findTargetWindow(windows, tree, title) {
|
|
4030
4040
|
return windows.find((window) => isWindowOfTarget(window, tree) && window.title !== "" && (title === void 0 || window.title.includes(title)));
|
|
4031
4041
|
}
|
|
4032
|
-
// src/application/
|
|
4042
|
+
// src/application/support/browser-targets.ts
|
|
4033
4043
|
/** The service whose process tree holds a target's browser windows, and its name in messages. */
|
|
4034
4044
|
const BROWSER_TARGETS = {
|
|
4035
4045
|
mcp: {
|
|
@@ -4041,6 +4051,21 @@ const BROWSER_TARGETS = {
|
|
|
4041
4051
|
name: "the Playwright server"
|
|
4042
4052
|
}
|
|
4043
4053
|
};
|
|
4054
|
+
// src/application/support/input-marker.ts
|
|
4055
|
+
/**
|
|
4056
|
+
* The marker the bridge puts into the speech log for input it sends or a window it focuses
|
|
4057
|
+
* (docs/usage/native-input.md#markers-in-the-speech-log). A label too long for a marker is cut.
|
|
4058
|
+
*/
|
|
4059
|
+
function addInputMarker(log, clock, label) {
|
|
4060
|
+
log.append({
|
|
4061
|
+
kind: "marker",
|
|
4062
|
+
text: label.slice(0, API_LIMITS.markerLength),
|
|
4063
|
+
source: "api",
|
|
4064
|
+
voice: null,
|
|
4065
|
+
connectionId: null,
|
|
4066
|
+
receivedAt: clock.now()
|
|
4067
|
+
});
|
|
4068
|
+
}
|
|
4044
4069
|
// src/application/services/window-focus-service.ts
|
|
4045
4070
|
/** How long a `title` may take to show up in the window title, and how often it is looked for. */
|
|
4046
4071
|
const TITLE_WAIT = {
|
|
@@ -4069,7 +4094,8 @@ var WindowFocusService = class {
|
|
|
4069
4094
|
if (!window) throw notFound(known, title);
|
|
4070
4095
|
stop.throwIfAborted();
|
|
4071
4096
|
if (!await this.deps.windows.bringToFront(window)) throw new AppError("FOCUS_FAILED", `Windows did not bring "${window.title}" to the front (is the desktop locked, or does an elevated window have the focus?)`);
|
|
4072
|
-
this.deps.
|
|
4097
|
+
addInputMarker(this.deps.log, this.deps.clock, `focus: ${target}`);
|
|
4098
|
+
this.deps.logger.debug(`focus ${target}: "${window.title}" (pid ${window.pid})`);
|
|
4073
4099
|
return {
|
|
4074
4100
|
title: window.title,
|
|
4075
4101
|
pid: window.pid
|
|
@@ -4130,13 +4156,16 @@ function parseKeys(keys) {
|
|
|
4130
4156
|
*
|
|
4131
4157
|
* Keys with an `expectedTarget` are checked before every chord and stop at the first one whose
|
|
4132
4158
|
* window in front isn't of that browser (docs/usage/native-input.md#requiring-a-target-window).
|
|
4159
|
+
*
|
|
4160
|
+
* A request that gets to send its input puts one marker into the speech log first, unless it says
|
|
4161
|
+
* `mark: false` (docs/usage/native-input.md#markers-in-the-speech-log).
|
|
4133
4162
|
*/
|
|
4134
4163
|
var NativeInputService = class {
|
|
4135
4164
|
deps;
|
|
4136
4165
|
constructor(deps) {
|
|
4137
4166
|
this.deps = deps;
|
|
4138
4167
|
}
|
|
4139
|
-
async click({ x, y, button = "left" }, hooks = {}) {
|
|
4168
|
+
async click({ x, y, button = "left", mark = true }, hooks = {}) {
|
|
4140
4169
|
checkCoordinate("x", x);
|
|
4141
4170
|
checkCoordinate("y", y);
|
|
4142
4171
|
if (!MOUSE_BUTTONS.includes(button)) throw invalidField("button", "must be left, right or middle");
|
|
@@ -4145,18 +4174,21 @@ var NativeInputService = class {
|
|
|
4145
4174
|
await hooks.beforeInject?.();
|
|
4146
4175
|
const before = await this.sentTo();
|
|
4147
4176
|
signal.throwIfAborted();
|
|
4177
|
+
this.announce(mark ? `click: ${button} ${x},${y}` : void 0, hooks);
|
|
4148
4178
|
await this.deps.injector.click(x, y, button);
|
|
4149
4179
|
sent = true;
|
|
4150
4180
|
this.deps.logger.info(`click ${button} at ${x},${y}`);
|
|
4151
4181
|
return before;
|
|
4152
4182
|
}, hooks.signal, () => sent ? void 0 : "click not sent");
|
|
4153
4183
|
}
|
|
4154
|
-
async pressKeys({ keys, delayMs: delay = delayMs.default, expectedTarget }, hooks = {}) {
|
|
4184
|
+
async pressKeys({ keys, delayMs: delay = delayMs.default, expectedTarget, mark = true }, hooks = {}) {
|
|
4155
4185
|
const chords = parseKeys(keys);
|
|
4156
4186
|
if (!Number.isInteger(delay) || delay < 0 || delay > delayMs.max) throw invalidField("delayMs", `must be an integer from 0 to ${delayMs.max}`);
|
|
4157
4187
|
if (expectedTarget !== void 0 && !Object.hasOwn(BROWSER_TARGETS, expectedTarget)) throw invalidField("expectedTarget", "must be mcp or playwright");
|
|
4158
4188
|
this.checkSupported(chords);
|
|
4159
|
-
const
|
|
4189
|
+
const list = typeof keys === "string" ? [keys] : keys;
|
|
4190
|
+
const text = `keys ${list.join(" ")}`;
|
|
4191
|
+
const label = `keys: ${list.map((chord) => chord.replace(/\s+/g, "")).join(" ")}`;
|
|
4160
4192
|
let sent = 0;
|
|
4161
4193
|
return this.deps.queue.exclusive(async (signal) => {
|
|
4162
4194
|
await hooks.beforeInject?.();
|
|
@@ -4173,6 +4205,7 @@ var NativeInputService = class {
|
|
|
4173
4205
|
if (index === 0) before = { window };
|
|
4174
4206
|
signal.throwIfAborted();
|
|
4175
4207
|
}
|
|
4208
|
+
if (index === 0) this.announce(mark ? label : void 0, hooks);
|
|
4176
4209
|
await this.press(chord);
|
|
4177
4210
|
sent++;
|
|
4178
4211
|
}
|
|
@@ -4181,6 +4214,15 @@ var NativeInputService = class {
|
|
|
4181
4214
|
}, hooks.signal, () => sent === chords.length ? void 0 : `${text}: ${sent} of ${chords.length} chords sent`);
|
|
4182
4215
|
}
|
|
4183
4216
|
/**
|
|
4217
|
+
* Right before a request's first input: its marker (none without a `label`, or where nothing
|
|
4218
|
+
* can be sent anyway), then `onSend`.
|
|
4219
|
+
*/
|
|
4220
|
+
announce(label, { onSend }) {
|
|
4221
|
+
const { injector, log, clock } = this.deps;
|
|
4222
|
+
if (label !== void 0 && injector.availability.available) addInputMarker(log, clock, label);
|
|
4223
|
+
onSend?.();
|
|
4224
|
+
}
|
|
4225
|
+
/**
|
|
4184
4226
|
* The window in front, read in the input queue right before the input. Only extra information:
|
|
4185
4227
|
* if it can't be read, the input is sent all the same.
|
|
4186
4228
|
*/
|
|
@@ -4457,7 +4499,7 @@ var StatusService = class {
|
|
|
4457
4499
|
};
|
|
4458
4500
|
}
|
|
4459
4501
|
};
|
|
4460
|
-
// src/application/
|
|
4502
|
+
// src/application/support/input-queue.ts
|
|
4461
4503
|
/** One task at a time, in the order they came. A failed task doesn't stop the later ones. */
|
|
4462
4504
|
var SerialInputQueue = class {
|
|
4463
4505
|
deps;
|
|
@@ -5501,7 +5543,7 @@ function proxyRoutes(services) {
|
|
|
5501
5543
|
target: () => services.reachability(name)
|
|
5502
5544
|
}));
|
|
5503
5545
|
}
|
|
5504
|
-
// src/adapters/
|
|
5546
|
+
// src/adapters/common/net/port-probe.ts
|
|
5505
5547
|
/** Where to probe a listener on a wildcard host: the loopback address of that family. */
|
|
5506
5548
|
const WILDCARD_PROBE = {
|
|
5507
5549
|
"0.0.0.0": "127.0.0.1",
|
|
@@ -6563,6 +6605,7 @@ async function startBridge(options) {
|
|
|
6563
6605
|
windows,
|
|
6564
6606
|
services: supervisors,
|
|
6565
6607
|
clock,
|
|
6608
|
+
log: speechLog,
|
|
6566
6609
|
logger: log.for("native-input")
|
|
6567
6610
|
});
|
|
6568
6611
|
const captures = new InputCaptureService({
|
|
@@ -6586,6 +6629,7 @@ async function startBridge(options) {
|
|
|
6586
6629
|
queue: inputQueue,
|
|
6587
6630
|
services: supervisors,
|
|
6588
6631
|
clock,
|
|
6632
|
+
log: speechLog,
|
|
6589
6633
|
logger: log.for("native-input")
|
|
6590
6634
|
});
|
|
6591
6635
|
const childServices = new ChildServicesService({
|
package/dist/ui/adapter-node.js
CHANGED
|
@@ -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.ONZWQgDA.css\",{\"file\":\"_app/immutable/assets/0.ONZWQgDA.css\",\"size\":28573,\"etag\":\"8BSBrRt-NHEmVmGC59Y470qBXA2e_o603rShTIPP4Uo\",\"gz\":4973,\"br\":4223}],[\"/ui/_app/immutable/assets/2.DSVNnDlO.css\",{\"file\":\"_app/immutable/assets/2.DSVNnDlO.css\",\"size\":658,\"etag\":\"tZufqT6Wo0dXkbZ0Sin_77gqIMjTaeduT3iJ53BlWN4\",\"gz\":336,\"br\":247}],[\"/ui/_app/immutable/assets/3.WduKm4aT.css\",{\"file\":\"_app/immutable/assets/3.WduKm4aT.css\",\"size\":10705,\"etag\":\"ycqfkJGPnW8aVxMuWLzScP0PBYQCF1aMbM6rIs7kMSM\",\"gz\":2331,\"br\":2021}],[\"/ui/_app/immutable/assets/4.DEk4yqpA.css\",{\"file\":\"_app/immutable/assets/4.DEk4yqpA.css\",\"size\":8240,\"etag\":\"tz_N4vQo5KlhSuoNKl3_woBa0K0L6rlIwNwISBBXWyc\",\"gz\":1839,\"br\":1584}],[\"/ui/_app/immutable/assets/5.YyxFzHED.css\",{\"file\":\"_app/immutable/assets/5.YyxFzHED.css\",\"size\":2437,\"etag\":\"wK5TvPGtvgtXzmGwJ2A-RKNIGd4KslhBC3yPG7sad3c\",\"gz\":740,\"br\":612}],[\"/ui/_app/immutable/assets/6.C0Nhvs_m.css\",{\"file\":\"_app/immutable/assets/6.C0Nhvs_m.css\",\"size\":1626,\"etag\":\"ZzWgAE23N15kAslnywipXjdcJSenJhaSfvcoszF6Nzo\",\"gz\":519,\"br\":435}],[\"/ui/_app/immutable/assets/ExternalLink.CYXazpKA.css\",{\"file\":\"_app/immutable/assets/ExternalLink.CYXazpKA.css\",\"size\":51,\"etag\":\"hmG0WzKNUHYGzl2zk_N7YDKgZwBBLlLRXuqxiqfrtlw\",\"gz\":68,\"br\":50}],[\"/ui/_app/immutable/assets/Pane.Dgdg5KMw.css\",{\"file\":\"_app/immutable/assets/Pane.Dgdg5KMw.css\",\"size\":910,\"etag\":\"1rbabW7OrxpFwGEjIsj9M2sB_5VNvCEg1BIWWP3hDaY\",\"gz\":387,\"br\":303}],[\"/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/BEImj5AP.js\",{\"file\":\"_app/immutable/chunks/BEImj5AP.js\",\"size\":1602,\"etag\":\"f2xgEdbGI6XPsHsYxQ41a59OCVkZrd3Mv2Q6bpG-ISo\",\"gz\":709,\"br\":623}],[\"/ui/_app/immutable/chunks/BLbj0ykL.js\",{\"file\":\"_app/immutable/chunks/BLbj0ykL.js\",\"size\":1146,\"etag\":\"S580c_9ClPIYWnzgvTAR0SS-Jmcx1uEIKFHAWm4XodI\",\"gz\":667,\"br\":588}],[\"/ui/_app/immutable/chunks/B__KpOuX.js\",{\"file\":\"_app/immutable/chunks/B__KpOuX.js\",\"size\":54062,\"etag\":\"TSRBTDLk9kopqoxaJAluDmuuE2wJ_vqKfit-n0lf18E\",\"gz\":20545,\"br\":18618}],[\"/ui/_app/immutable/chunks/Beqi9dRN.js\",{\"file\":\"_app/immutable/chunks/Beqi9dRN.js\",\"size\":1320,\"etag\":\"QTbxrAaJV6FJsOOmO0et2a-u_vgaO_DGH2ow157P_8A\",\"gz\":655,\"br\":501}],[\"/ui/_app/immutable/chunks/BkoDSEOx.js\",{\"file\":\"_app/immutable/chunks/BkoDSEOx.js\",\"size\":3530,\"etag\":\"qvV4JiQd18gxgV0ro6ODCM38V6NBJk2aeC28JbBrihk\",\"gz\":1724,\"br\":1568}],[\"/ui/_app/immutable/chunks/BlC5mir6.js\",{\"file\":\"_app/immutable/chunks/BlC5mir6.js\",\"size\":352,\"etag\":\"etsU1G0_l_ynI-3X7hLFjp_g2OKCo5ihCLeGGcqTLd0\",\"gz\":262,\"br\":210}],[\"/ui/_app/immutable/chunks/BquQTeuV.js\",{\"file\":\"_app/immutable/chunks/BquQTeuV.js\",\"size\":260,\"etag\":\"DlZtXqX0D7WMQjXmgDeUByuAmpKVIkfbQc_WFziVDTQ\",\"gz\":219,\"br\":176}],[\"/ui/_app/immutable/chunks/BtnuBvK5.js\",{\"file\":\"_app/immutable/chunks/BtnuBvK5.js\",\"size\":52,\"etag\":\"h4umS5ujgV_efhuIkUtZ0vHTVr0xVkrvGoZxfP_qr5E\",\"gz\":69,\"br\":56}],[\"/ui/_app/immutable/chunks/BuwZGWCm.js\",{\"file\":\"_app/immutable/chunks/BuwZGWCm.js\",\"size\":10840,\"etag\":\"T3FCtSkBRpH7C9mjT95UraPxCnkzz1Z3zlDStS4RjkQ\",\"gz\":2862,\"br\":2459}],[\"/ui/_app/immutable/chunks/Bvlvl8SZ.js\",{\"file\":\"_app/immutable/chunks/Bvlvl8SZ.js\",\"size\":142,\"etag\":\"mGLyKyFpDkzzU2Le1sT0vn-5KiTugrUIXjaR9Wx3xI0\",\"gz\":140,\"br\":108}],[\"/ui/_app/immutable/chunks/Bxh3K0TK.js\",{\"file\":\"_app/immutable/chunks/Bxh3K0TK.js\",\"size\":2073,\"etag\":\"ESyxojXmdUnpIjN_FK2Kfi_39FJCEuvMZNQuPStR4b8\",\"gz\":1051,\"br\":923}],[\"/ui/_app/immutable/chunks/C06IiL6m.js\",{\"file\":\"_app/immutable/chunks/C06IiL6m.js\",\"size\":22,\"etag\":\"Jhgz36-cKKWlwxrDNgoLZtlF8rqnYYRZvPGs7RAl1Eo\",\"gz\":42,\"br\":26}],[\"/ui/_app/immutable/chunks/CAZ56n62.js\",{\"file\":\"_app/immutable/chunks/CAZ56n62.js\",\"size\":9837,\"etag\":\"pXYXCMNBageB7fWn2sCWxYQnWgq-KKIUhISZWz67Ye4\",\"gz\":1432,\"br\":1201}],[\"/ui/_app/immutable/chunks/CTnnxqUD.js\",{\"file\":\"_app/immutable/chunks/CTnnxqUD.js\",\"size\":1476,\"etag\":\"K8zJyz0YEk5iDSDDzlVkNY4FgmK596DUoULqO1c-VrU\",\"gz\":770,\"br\":648}],[\"/ui/_app/immutable/chunks/D0famktY.js\",{\"file\":\"_app/immutable/chunks/D0famktY.js\",\"size\":1010,\"etag\":\"tzoaXOo8CXOZ3DKb04IBLNUZ6JwIYzHPZmvBWCMHB8w\",\"gz\":278,\"br\":219}],[\"/ui/_app/immutable/chunks/DRNNJMYk.js\",{\"file\":\"_app/immutable/chunks/DRNNJMYk.js\",\"size\":34303,\"etag\":\"ctb3Y0CT-azbbQrf-OVnEdUun5xqOkAmxWsocA_MS1E\",\"gz\":11611,\"br\":10374}],[\"/ui/_app/immutable/chunks/DUTjbZNf.js\",{\"file\":\"_app/immutable/chunks/DUTjbZNf.js\",\"size\":1732,\"etag\":\"4vqmKqYRlnx14ppc0svDxtBqmjCGyKqpnLK9iuMBWIY\",\"gz\":885,\"br\":765}],[\"/ui/_app/immutable/chunks/JsC3ASJq.js\",{\"file\":\"_app/immutable/chunks/JsC3ASJq.js\",\"size\":42894,\"etag\":\"Kmjc5RXiPIb9PH1NsB5G2HpSF91SV3CL3ALAydHjZO4\",\"gz\":15626,\"br\":14142}],[\"/ui/_app/immutable/chunks/OAsMjdHF.js\",{\"file\":\"_app/immutable/chunks/OAsMjdHF.js\",\"size\":14036,\"etag\":\"QInRGNcNDaNVBSi8UEIuksTHXbNf1-dU7az83d_JMK8\",\"gz\":4067,\"br\":3561}],[\"/ui/_app/immutable/chunks/R_4U_-zb.js\",{\"file\":\"_app/immutable/chunks/R_4U_-zb.js\",\"size\":22259,\"etag\":\"wMrr83EkB1TV9OOyQWvojEydqFr0CDB6auxTG15usWo\",\"gz\":6734,\"br\":5942}],[\"/ui/_app/immutable/chunks/UKukklIc.js\",{\"file\":\"_app/immutable/chunks/UKukklIc.js\",\"size\":22,\"etag\":\"9WWVUxPRHVxkqtfVuhXw-uFNdSmxbfKoYQz0B21-Nr0\",\"gz\":42,\"br\":26}],[\"/ui/_app/immutable/chunks/VxDST09k.js\",{\"file\":\"_app/immutable/chunks/VxDST09k.js\",\"size\":820,\"etag\":\"mIL3lMWWMc8hhUQR6TeeKLnQvN2MrsHvSSz4CrgYnRY\",\"gz\":535,\"br\":508}],[\"/ui/_app/immutable/chunks/vPs9G1oN.js\",{\"file\":\"_app/immutable/chunks/vPs9G1oN.js\",\"size\":61006,\"etag\":\"_hO6umOOz6kcIrUk46n54lbK9jv017RwjxS1L-EUimY\",\"gz\":11247,\"br\":9632}],[\"/ui/_app/immutable/chunks/w5i9ZoX_.js\",{\"file\":\"_app/immutable/chunks/w5i9ZoX_.js\",\"size\":2169,\"etag\":\"pq37B9di_71lzo7HsK7FwIvZVzU1Fix_455WYRtgKc8\",\"gz\":779,\"br\":641}],[\"/ui/_app/immutable/entry/app.CHExvln1.js\",{\"file\":\"_app/immutable/entry/app.CHExvln1.js\",\"size\":2920,\"etag\":\"ZrVf8aSmV5ZzJpxtSOZFVA4mE4vRlujKzJElU-soIRY\",\"gz\":1286,\"br\":1165}],[\"/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.4hiWLKwq.js\",{\"file\":\"_app/immutable/entry/start.4hiWLKwq.js\",\"size\":600,\"etag\":\"Ao-_0OAB-IDhH63V4BevjNmy9DbbH3p9y6RHhyWBBec\",\"gz\":340,\"br\":342}],[\"/ui/_app/immutable/nodes/0.DENUQERM.js\",{\"file\":\"_app/immutable/nodes/0.DENUQERM.js\",\"size\":20489,\"etag\":\"Zd6K2E7RUSq68H8gl34Z8CL3cKaPXoMtczfn-7PzVw8\",\"gz\":7946,\"br\":7094}],[\"/ui/_app/immutable/nodes/1.BBl7b45u.js\",{\"file\":\"_app/immutable/nodes/1.BBl7b45u.js\",\"size\":448,\"etag\":\"RKnkvuFhuZsGlfUk-AHGEM9-sEQTow1T5Ss2rAy5n9I\",\"gz\":322,\"br\":297}],[\"/ui/_app/immutable/nodes/2.4VpydhMh.js\",{\"file\":\"_app/immutable/nodes/2.4VpydhMh.js\",\"size\":1156,\"etag\":\"RQeFL3p7VbYbps6K9k4W6NKCt9Hep__lRTV6esynwQc\",\"gz\":626,\"br\":558}],[\"/ui/_app/immutable/nodes/3.D9AmPYb5.js\",{\"file\":\"_app/immutable/nodes/3.D9AmPYb5.js\",\"size\":26894,\"etag\":\"8_eUTJlEoJccIoR4njgTXTbmep6PBMNytZNDwhhDBFQ\",\"gz\":7871,\"br\":6800}],[\"/ui/_app/immutable/nodes/4.DxNIrNp_.js\",{\"file\":\"_app/immutable/nodes/4.DxNIrNp_.js\",\"size\":89380,\"etag\":\"SIDP9v2uCbGoHWjj79x05kAkqHG0SL--drlDVLt79ZU\",\"gz\":22093,\"br\":19136}],[\"/ui/_app/immutable/nodes/5.Cm6I95kb.js\",{\"file\":\"_app/immutable/nodes/5.Cm6I95kb.js\",\"size\":9541,\"etag\":\"em_7nY7Gr4uXJoCzSByng9OAi7aid4tqt94rZRTJe8s\",\"gz\":3721,\"br\":3232}],[\"/ui/_app/immutable/nodes/6.D9jpgBJB.js\",{\"file\":\"_app/immutable/nodes/6.D9jpgBJB.js\",\"size\":10342,\"etag\":\"ExoYuDyXG8zBIXfaL3dRdhAAFinnyIF_hBBKZMMiAMU\",\"gz\":3888,\"br\":3390}],[\"/ui/_app/version.json\",{\"file\":\"_app/version.json\",\"size\":27,\"etag\":\"Y6GFko79RdTvxytH3H556A2cSGMZw7-Q0x70VcPlTUw\",\"gz\":47,\"br\":29}],[\"/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.ONZWQgDA.css\",{\"file\":\"_app/immutable/assets/0.ONZWQgDA.css\",\"size\":28573,\"etag\":\"8BSBrRt-NHEmVmGC59Y470qBXA2e_o603rShTIPP4Uo\",\"gz\":4973,\"br\":4223}],[\"/ui/_app/immutable/assets/2.DSVNnDlO.css\",{\"file\":\"_app/immutable/assets/2.DSVNnDlO.css\",\"size\":658,\"etag\":\"tZufqT6Wo0dXkbZ0Sin_77gqIMjTaeduT3iJ53BlWN4\",\"gz\":336,\"br\":247}],[\"/ui/_app/immutable/assets/3.WduKm4aT.css\",{\"file\":\"_app/immutable/assets/3.WduKm4aT.css\",\"size\":10705,\"etag\":\"ycqfkJGPnW8aVxMuWLzScP0PBYQCF1aMbM6rIs7kMSM\",\"gz\":2331,\"br\":2021}],[\"/ui/_app/immutable/assets/4.DEk4yqpA.css\",{\"file\":\"_app/immutable/assets/4.DEk4yqpA.css\",\"size\":8240,\"etag\":\"tz_N4vQo5KlhSuoNKl3_woBa0K0L6rlIwNwISBBXWyc\",\"gz\":1839,\"br\":1584}],[\"/ui/_app/immutable/assets/5.YyxFzHED.css\",{\"file\":\"_app/immutable/assets/5.YyxFzHED.css\",\"size\":2437,\"etag\":\"wK5TvPGtvgtXzmGwJ2A-RKNIGd4KslhBC3yPG7sad3c\",\"gz\":740,\"br\":612}],[\"/ui/_app/immutable/assets/6.C0Nhvs_m.css\",{\"file\":\"_app/immutable/assets/6.C0Nhvs_m.css\",\"size\":1626,\"etag\":\"ZzWgAE23N15kAslnywipXjdcJSenJhaSfvcoszF6Nzo\",\"gz\":519,\"br\":435}],[\"/ui/_app/immutable/assets/ExternalLink.CYXazpKA.css\",{\"file\":\"_app/immutable/assets/ExternalLink.CYXazpKA.css\",\"size\":51,\"etag\":\"hmG0WzKNUHYGzl2zk_N7YDKgZwBBLlLRXuqxiqfrtlw\",\"gz\":68,\"br\":50}],[\"/ui/_app/immutable/assets/Pane.Dgdg5KMw.css\",{\"file\":\"_app/immutable/assets/Pane.Dgdg5KMw.css\",\"size\":910,\"etag\":\"1rbabW7OrxpFwGEjIsj9M2sB_5VNvCEg1BIWWP3hDaY\",\"gz\":387,\"br\":303}],[\"/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/BEImj5AP.js\",{\"file\":\"_app/immutable/chunks/BEImj5AP.js\",\"size\":1602,\"etag\":\"f2xgEdbGI6XPsHsYxQ41a59OCVkZrd3Mv2Q6bpG-ISo\",\"gz\":709,\"br\":623}],[\"/ui/_app/immutable/chunks/B__KpOuX.js\",{\"file\":\"_app/immutable/chunks/B__KpOuX.js\",\"size\":54062,\"etag\":\"TSRBTDLk9kopqoxaJAluDmuuE2wJ_vqKfit-n0lf18E\",\"gz\":20545,\"br\":18618}],[\"/ui/_app/immutable/chunks/Beqi9dRN.js\",{\"file\":\"_app/immutable/chunks/Beqi9dRN.js\",\"size\":1320,\"etag\":\"QTbxrAaJV6FJsOOmO0et2a-u_vgaO_DGH2ow157P_8A\",\"gz\":655,\"br\":501}],[\"/ui/_app/immutable/chunks/BkoDSEOx.js\",{\"file\":\"_app/immutable/chunks/BkoDSEOx.js\",\"size\":3530,\"etag\":\"qvV4JiQd18gxgV0ro6ODCM38V6NBJk2aeC28JbBrihk\",\"gz\":1724,\"br\":1568}],[\"/ui/_app/immutable/chunks/BlC5mir6.js\",{\"file\":\"_app/immutable/chunks/BlC5mir6.js\",\"size\":352,\"etag\":\"etsU1G0_l_ynI-3X7hLFjp_g2OKCo5ihCLeGGcqTLd0\",\"gz\":262,\"br\":210}],[\"/ui/_app/immutable/chunks/BquQTeuV.js\",{\"file\":\"_app/immutable/chunks/BquQTeuV.js\",\"size\":260,\"etag\":\"DlZtXqX0D7WMQjXmgDeUByuAmpKVIkfbQc_WFziVDTQ\",\"gz\":219,\"br\":176}],[\"/ui/_app/immutable/chunks/BtnuBvK5.js\",{\"file\":\"_app/immutable/chunks/BtnuBvK5.js\",\"size\":52,\"etag\":\"h4umS5ujgV_efhuIkUtZ0vHTVr0xVkrvGoZxfP_qr5E\",\"gz\":69,\"br\":56}],[\"/ui/_app/immutable/chunks/BuwZGWCm.js\",{\"file\":\"_app/immutable/chunks/BuwZGWCm.js\",\"size\":10840,\"etag\":\"T3FCtSkBRpH7C9mjT95UraPxCnkzz1Z3zlDStS4RjkQ\",\"gz\":2862,\"br\":2459}],[\"/ui/_app/immutable/chunks/Bvlvl8SZ.js\",{\"file\":\"_app/immutable/chunks/Bvlvl8SZ.js\",\"size\":142,\"etag\":\"mGLyKyFpDkzzU2Le1sT0vn-5KiTugrUIXjaR9Wx3xI0\",\"gz\":140,\"br\":108}],[\"/ui/_app/immutable/chunks/Bxh3K0TK.js\",{\"file\":\"_app/immutable/chunks/Bxh3K0TK.js\",\"size\":2073,\"etag\":\"ESyxojXmdUnpIjN_FK2Kfi_39FJCEuvMZNQuPStR4b8\",\"gz\":1051,\"br\":923}],[\"/ui/_app/immutable/chunks/C06IiL6m.js\",{\"file\":\"_app/immutable/chunks/C06IiL6m.js\",\"size\":22,\"etag\":\"Jhgz36-cKKWlwxrDNgoLZtlF8rqnYYRZvPGs7RAl1Eo\",\"gz\":42,\"br\":26}],[\"/ui/_app/immutable/chunks/C75l7c5l.js\",{\"file\":\"_app/immutable/chunks/C75l7c5l.js\",\"size\":1476,\"etag\":\"lZ8g3tZeLjebm12Zcl2vY8e7HB3UJ9arFuWun0ae12M\",\"gz\":770,\"br\":653}],[\"/ui/_app/immutable/chunks/CAZ56n62.js\",{\"file\":\"_app/immutable/chunks/CAZ56n62.js\",\"size\":9837,\"etag\":\"pXYXCMNBageB7fWn2sCWxYQnWgq-KKIUhISZWz67Ye4\",\"gz\":1432,\"br\":1201}],[\"/ui/_app/immutable/chunks/Cb63XE4v.js\",{\"file\":\"_app/immutable/chunks/Cb63XE4v.js\",\"size\":22170,\"etag\":\"HwxPkhylHuuAB5FiCHWelum4lnyRsGYr6IJO7FWUW5U\",\"gz\":6699,\"br\":5905}],[\"/ui/_app/immutable/chunks/D0famktY.js\",{\"file\":\"_app/immutable/chunks/D0famktY.js\",\"size\":1010,\"etag\":\"tzoaXOo8CXOZ3DKb04IBLNUZ6JwIYzHPZmvBWCMHB8w\",\"gz\":278,\"br\":219}],[\"/ui/_app/immutable/chunks/DRNNJMYk.js\",{\"file\":\"_app/immutable/chunks/DRNNJMYk.js\",\"size\":34303,\"etag\":\"ctb3Y0CT-azbbQrf-OVnEdUun5xqOkAmxWsocA_MS1E\",\"gz\":11611,\"br\":10374}],[\"/ui/_app/immutable/chunks/DUTjbZNf.js\",{\"file\":\"_app/immutable/chunks/DUTjbZNf.js\",\"size\":1732,\"etag\":\"4vqmKqYRlnx14ppc0svDxtBqmjCGyKqpnLK9iuMBWIY\",\"gz\":885,\"br\":765}],[\"/ui/_app/immutable/chunks/DWjfB3ah.js\",{\"file\":\"_app/immutable/chunks/DWjfB3ah.js\",\"size\":1086,\"etag\":\"pLouHrdgl0lHvJxcKDAjaaXE8WZ736ixfOL5eUv_OH8\",\"gz\":622,\"br\":551}],[\"/ui/_app/immutable/chunks/JsC3ASJq.js\",{\"file\":\"_app/immutable/chunks/JsC3ASJq.js\",\"size\":42894,\"etag\":\"Kmjc5RXiPIb9PH1NsB5G2HpSF91SV3CL3ALAydHjZO4\",\"gz\":15626,\"br\":14142}],[\"/ui/_app/immutable/chunks/OAsMjdHF.js\",{\"file\":\"_app/immutable/chunks/OAsMjdHF.js\",\"size\":14036,\"etag\":\"QInRGNcNDaNVBSi8UEIuksTHXbNf1-dU7az83d_JMK8\",\"gz\":4067,\"br\":3561}],[\"/ui/_app/immutable/chunks/UKukklIc.js\",{\"file\":\"_app/immutable/chunks/UKukklIc.js\",\"size\":22,\"etag\":\"9WWVUxPRHVxkqtfVuhXw-uFNdSmxbfKoYQz0B21-Nr0\",\"gz\":42,\"br\":26}],[\"/ui/_app/immutable/chunks/VxDST09k.js\",{\"file\":\"_app/immutable/chunks/VxDST09k.js\",\"size\":820,\"etag\":\"mIL3lMWWMc8hhUQR6TeeKLnQvN2MrsHvSSz4CrgYnRY\",\"gz\":535,\"br\":508}],[\"/ui/_app/immutable/chunks/vPs9G1oN.js\",{\"file\":\"_app/immutable/chunks/vPs9G1oN.js\",\"size\":61006,\"etag\":\"_hO6umOOz6kcIrUk46n54lbK9jv017RwjxS1L-EUimY\",\"gz\":11247,\"br\":9632}],[\"/ui/_app/immutable/chunks/w5i9ZoX_.js\",{\"file\":\"_app/immutable/chunks/w5i9ZoX_.js\",\"size\":2169,\"etag\":\"pq37B9di_71lzo7HsK7FwIvZVzU1Fix_455WYRtgKc8\",\"gz\":779,\"br\":641}],[\"/ui/_app/immutable/entry/app.B2MXuPeH.js\",{\"file\":\"_app/immutable/entry/app.B2MXuPeH.js\",\"size\":2920,\"etag\":\"p4RwPbfXc_5VlJKVnaAUj9-8A1Dmyq5qYkgNPKL52BE\",\"gz\":1282,\"br\":1175}],[\"/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.4hiWLKwq.js\",{\"file\":\"_app/immutable/entry/start.4hiWLKwq.js\",\"size\":600,\"etag\":\"Ao-_0OAB-IDhH63V4BevjNmy9DbbH3p9y6RHhyWBBec\",\"gz\":340,\"br\":342}],[\"/ui/_app/immutable/nodes/0.CEfoZ0Mb.js\",{\"file\":\"_app/immutable/nodes/0.CEfoZ0Mb.js\",\"size\":20644,\"etag\":\"Th4SFi7qg6KCBAyu9mYyd9aPsacR8V2gYvasTN2YCyg\",\"gz\":8026,\"br\":7171}],[\"/ui/_app/immutable/nodes/1.BBl7b45u.js\",{\"file\":\"_app/immutable/nodes/1.BBl7b45u.js\",\"size\":448,\"etag\":\"RKnkvuFhuZsGlfUk-AHGEM9-sEQTow1T5Ss2rAy5n9I\",\"gz\":322,\"br\":297}],[\"/ui/_app/immutable/nodes/2.4VpydhMh.js\",{\"file\":\"_app/immutable/nodes/2.4VpydhMh.js\",\"size\":1156,\"etag\":\"RQeFL3p7VbYbps6K9k4W6NKCt9Hep__lRTV6esynwQc\",\"gz\":626,\"br\":558}],[\"/ui/_app/immutable/nodes/3.BzIz3rja.js\",{\"file\":\"_app/immutable/nodes/3.BzIz3rja.js\",\"size\":26894,\"etag\":\"0TwQo0kolF5DDv1uSnIDrDKRspq5hNgoK4vHcZUNw7Y\",\"gz\":7876,\"br\":6791}],[\"/ui/_app/immutable/nodes/4.B9Ke6ZBV.js\",{\"file\":\"_app/immutable/nodes/4.B9Ke6ZBV.js\",\"size\":89380,\"etag\":\"RV3vjLnQPm13xpNcIg11GUMB-IomD1stGM0ZqW18nng\",\"gz\":22092,\"br\":19151}],[\"/ui/_app/immutable/nodes/5.Cm6I95kb.js\",{\"file\":\"_app/immutable/nodes/5.Cm6I95kb.js\",\"size\":9541,\"etag\":\"em_7nY7Gr4uXJoCzSByng9OAi7aid4tqt94rZRTJe8s\",\"gz\":3721,\"br\":3232}],[\"/ui/_app/immutable/nodes/6.B_1Pts2e.js\",{\"file\":\"_app/immutable/nodes/6.B_1Pts2e.js\",\"size\":10342,\"etag\":\"P8VuvSpFd3tGOke72QIB4yrpiRqXuBseKih_3v0zNgM\",\"gz\":3888,\"br\":3395}],[\"/ui/_app/version.json\",{\"file\":\"_app/version.json\",\"size\":27,\"etag\":\"xpmx7VWgUlf5G83DpblnnkBVSdDlb7NtW1croMKMTpY\",\"gz\":47,\"br\":30}],[\"/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\":[]}");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,r as t}from"./
|
|
1
|
+
import{n as e,r as t}from"./DWjfB3ah.js";var n=`light`,r=[{value:`light`,label:`Light`,description:`Default light scheme.`},{value:`dark`,label:`Dark`,description:`Default dark scheme.`},{value:`high-contrast`,label:`High contrast`,description:`White surface, black text, 2px outlines.`},{value:`dark-high-contrast`,label:`Dark high contrast`,description:`Black surface, white text, 2px outlines.`}];function i(e){return r.find(t=>t.value===e)?.value??null}var a=class extends Error{field;constructor(e,t){super(e),this.field=t,this.name=`SettingRejected`}};function o(e,t,n){if(typeof e==`object`&&e&&!Array.isArray(e))for(let[r,i]of Object.entries(e))o(i,t===``?r:`${t}.${r}`,n);else n.set(t,JSON.stringify(e));return n}function s(e,t,n){let r=o(e,``,new Map);return[...o(t,``,new Map)].filter(([e,t])=>n[e]===void 0&&r.get(e)!==t).map(([e])=>e)}var{max:c}=e.port,l=`Enter a port from 1 to ${c}.`;function u(e){let t=e.trim();if(!/^\d{1,5}$/.test(t))return{ok:!1,message:l};let n=Number(t);return n>=1&&n<=c?{ok:!0,port:n}:{ok:!1,message:l}}var d=`Enter an exact version like 1.65.0, or leave the field empty.`;function f(e){let n=e.trim();return n===``?{ok:!0,version:null}:t.test(n)?{ok:!0,version:n}:{ok:!1,message:d}}var{min:p,max:m}=e.maxEntries,h=`Enter a whole number from ${p} to ${m}.`;function g(e){let t=e.trim(),n=/^\d+$/.test(t)?Number(t):NaN;return n>=p&&n<=m?{ok:!0,entries:n}:{ok:!1,message:h}}export{s as a,i as c,u as i,g as n,n as o,f as r,r as s,a as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import{A as e,D as t,O as n,S as r,_ as i,a,c as o,j as s,k as c,l,p as u,r as ee,s as te,u as ne,v as d}from"./DRNNJMYk.js";import{a as re,i as f,n as ie}from"./VxDST09k.js";import{i as ae,n as p,r as oe,t as m}from"./DWjfB3ah.js";function h(e,t=!0){return t&&getComputedStyle(e).getPropertyValue(`direction`).trim()===`rtl`}var se=ne(ee(a(te(i)))),g=class extends se{constructor(){super(),this.softDisabled=!1,this.flipIconInRtl=!1,this.href=``,this.download=``,this.target=``,this.ariaLabelSelected=``,this.toggle=!1,this.selected=!1,this.flipIcon=h(this,this.flipIconInRtl),l(this,`click`),this.addEventListener(`click`,e=>{if(this.softDisabled||this.disabled&&this.href){e.stopImmediatePropagation(),e.preventDefault();return}let t=this.selected;o(e,()=>{!this.toggle||this.disabled||e.defaultPrevented||(this.selected=!t,this.dispatchEvent(new InputEvent(`input`,{bubbles:!0,composed:!0})),this.dispatchEvent(new Event(`change`,{bubbles:!0})))})})}willUpdate(){this.href&&(this.disabled=!1,this.softDisabled=!1)}render(){let e=this.href?f`div`:f`button`,{ariaLabel:t,ariaHasPopup:n,ariaExpanded:r}=this,i=t&&this.ariaLabelSelected,a=this.toggle?this.selected:d,o=d;return this.href||(o=i&&this.selected?this.ariaLabelSelected:t),re`<${e}
|
|
2
|
+
class="icon-button ${u(this.getRenderClasses())}"
|
|
3
|
+
id="button"
|
|
4
|
+
aria-label="${o||d}"
|
|
5
|
+
aria-haspopup="${!this.href&&n||d}"
|
|
6
|
+
aria-expanded="${!this.href&&r||d}"
|
|
7
|
+
aria-pressed="${a}"
|
|
8
|
+
aria-disabled=${!this.href&&this.softDisabled||d}
|
|
9
|
+
?disabled="${!this.href&&this.disabled}">
|
|
10
|
+
${this.renderFocusRing()}
|
|
11
|
+
${this.renderRipple()}
|
|
12
|
+
${this.selected?d:this.renderIcon()}
|
|
13
|
+
${this.selected?this.renderSelectedIcon():d}
|
|
14
|
+
${this.href?this.renderLink():this.renderTouchTarget()}
|
|
15
|
+
</${e}>`}renderLink(){let{ariaLabel:e}=this;return r`
|
|
16
|
+
<a
|
|
17
|
+
class="link"
|
|
18
|
+
id="link"
|
|
19
|
+
href="${this.href}"
|
|
20
|
+
download="${this.download||d}"
|
|
21
|
+
target="${this.target||d}"
|
|
22
|
+
aria-label="${e||d}">
|
|
23
|
+
${this.renderTouchTarget()}
|
|
24
|
+
</a>
|
|
25
|
+
`}getRenderClasses(){return{"flip-icon":this.flipIcon,selected:this.toggle&&this.selected}}renderIcon(){return r`<span class="icon"><slot></slot></span>`}renderSelectedIcon(){return r`<span class="icon icon--selected"
|
|
26
|
+
><slot name="selected"><slot></slot></slot
|
|
27
|
+
></span>`}renderTouchTarget(){return r`<span class="touch"></span>`}renderFocusRing(){return r`<md-focus-ring
|
|
28
|
+
part="focus-ring"
|
|
29
|
+
for=${this.href?`link`:`button`}></md-focus-ring>`}renderRipple(){let e=!this.href&&(this.disabled||this.softDisabled);return r`<md-ripple
|
|
30
|
+
for=${this.href?`link`:d}
|
|
31
|
+
?disabled="${e}"></md-ripple>`}connectedCallback(){this.flipIcon=h(this,this.flipIconInRtl),super.connectedCallback()}};g.shadowRootOptions={mode:`open`,delegatesFocus:!0},s([n({type:Boolean,attribute:`soft-disabled`,reflect:!0})],g.prototype,`softDisabled`,void 0),s([n({type:Boolean,attribute:`flip-icon-in-rtl`})],g.prototype,`flipIconInRtl`,void 0),s([n()],g.prototype,`href`,void 0),s([n()],g.prototype,`download`,void 0),s([n()],g.prototype,`target`,void 0),s([n({attribute:`aria-label-selected`})],g.prototype,`ariaLabelSelected`,void 0),s([n({type:Boolean})],g.prototype,`toggle`,void 0),s([n({type:Boolean,reflect:!0})],g.prototype,`selected`,void 0),s([t()],g.prototype,`flipIcon`,void 0);var _=c`:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);height:var(--_container-height);width:var(--_container-width);justify-content:center}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) max(0px,(48px - var(--_container-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host(:is([disabled],[soft-disabled])){pointer-events:none}.icon-button{place-items:center;background:none;border:none;box-sizing:border-box;cursor:pointer;display:flex;place-content:center;outline:none;padding:0;position:relative;text-decoration:none;user-select:none;z-index:0;flex:1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.icon ::slotted(*){font-size:var(--_icon-size);height:var(--_icon-size);width:var(--_icon-size);font-weight:inherit}md-ripple{z-index:-1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.flip-icon .icon{transform:scaleX(-1)}.icon{display:inline-flex}.link{display:grid;height:100%;outline:none;place-items:center;position:absolute;width:100%}.touch{position:absolute;height:max(48px,100%);width:max(48px,100%)}:host([touch-target=none]) .touch{display:none}@media(forced-colors: active){:host(:is([disabled],[soft-disabled])){--_disabled-icon-color: GrayText;--_disabled-icon-opacity: 1}}
|
|
32
|
+
`;_.styleSheet;var v=c`:host{--_disabled-icon-color: var(--md-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-icon-button-disabled-icon-opacity, 0.38);--_icon-size: var(--md-icon-button-icon-size, 24px);--_selected-focus-icon-color: var(--md-icon-button-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-icon-color: var(--md-icon-button-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-color: var(--md-icon-button-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-opacity: var(--md-icon-button-selected-hover-state-layer-opacity, 0.08);--_selected-icon-color: var(--md-icon-button-selected-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-icon-color: var(--md-icon-button-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-color: var(--md-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-opacity: var(--md-icon-button-selected-pressed-state-layer-opacity, 0.12);--_state-layer-height: var(--md-icon-button-state-layer-height, 40px);--_state-layer-shape: var(--md-icon-button-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));--_state-layer-width: var(--md-icon-button-state-layer-width, 40px);--_focus-icon-color: var(--md-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--md-icon-button-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-icon-button-pressed-state-layer-opacity, 0.12);--_container-shape-start-start: 0;--_container-shape-start-end: 0;--_container-shape-end-end: 0;--_container-shape-end-start: 0;--_container-height: 0;--_container-width: 0;height:var(--_state-layer-height);width:var(--_state-layer-width)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_state-layer-height))/2) max(0px,(48px - var(--_state-layer-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_state-layer-shape);--md-focus-ring-shape-start-end: var(--_state-layer-shape);--md-focus-ring-shape-end-end: var(--_state-layer-shape);--md-focus-ring-shape-end-start: var(--_state-layer-shape)}.standard{background-color:rgba(0,0,0,0);color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.standard:hover{color:var(--_hover-icon-color)}.standard:focus{color:var(--_focus-icon-color)}.standard:active{color:var(--_pressed-icon-color)}.standard:is(:disabled,[aria-disabled=true]){color:var(--_disabled-icon-color)}md-ripple{border-radius:var(--_state-layer-shape)}.standard:is(:disabled,[aria-disabled=true]){opacity:var(--_disabled-icon-opacity)}.selected:not(:disabled,[aria-disabled=true]){color:var(--_selected-icon-color)}.selected:not(:disabled,[aria-disabled=true]):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled,[aria-disabled=true]):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled,[aria-disabled=true]):active{color:var(--_selected-pressed-icon-color)}.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_selected-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_selected-pressed-state-layer-opacity)}
|
|
33
|
+
`;v.styleSheet;var y=class extends g{getRenderClasses(){return{...super.getRenderClasses(),standard:!0}}};y.styles=[_,v],y=s([e(`md-icon-button`)],y);function ce(e,{singleTabStop:t=!1,wrap:n=!1,leftRight:r=!1}={}){let i=new Map([[`ArrowDown`,1],[`ArrowUp`,-1]]);return r&&i.set(`ArrowRight`,1).set(`ArrowLeft`,-1),r=>{let a=()=>[...r.querySelectorAll(e)],o=()=>{let e=a(),t=e.find(e=>e===document.activeElement)??e.find(e=>e.getAttribute(`aria-selected`)===`true`)??e[0];for(let n of e)n.tabIndex=n===t?0:-1},s=e=>{a().includes(e.relatedTarget)||o()},c=e=>{if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;let t=i.get(e.key);if(t===void 0)return;let r=a(),o=r.indexOf(e.target);o!==-1&&(e.preventDefault(),r[n?(o+t+r.length)%r.length:o+t]?.focus())},l;return t&&(o(),l=new MutationObserver(o),l.observe(r,{childList:!0,subtree:!0,attributeFilter:[`aria-selected`]}),r.addEventListener(`focusin`,o),r.addEventListener(`focusout`,s)),r.addEventListener(`keydown`,c),()=>{l?.disconnect(),r.removeEventListener(`focusin`,o),r.removeEventListener(`focusout`,s),r.removeEventListener(`keydown`,c)}}}var le=(e,t)=>{let n=e.trim();return n!==``&&n.length<=t},ue={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function b(e){return e?{lang:e?.lang??void 0,message:e?.message,abortEarly:e?.abortEarly??void 0,abortPipeEarly:e?.abortPipeEarly??void 0}:ue}function x(e){let t=typeof e;return t===`string`?`"${e}"`:t===`number`||t===`bigint`||t===`boolean`?`${e}`:t===`object`||t===`function`?(e&&Object.getPrototypeOf(e)?.constructor?.name)??`null`:t}function S(e,t,n,r,i){let a=i&&`input`in i?i.input:n.value,o=i?.expected??e.expects??null,s=i?.received??x(a),c={kind:e.kind,type:e.type,input:a,expected:o,received:s,message:`Invalid ${t}: ${o?`Expected ${o} but r`:`R`}eceived ${s}`,requirement:e.requirement,path:i?.path,issues:i?.issues,lang:r.lang,abortEarly:r.abortEarly,abortPipeEarly:r.abortPipeEarly},l=e.kind===`schema`,u=i?.message??e.message??(e.reference,c.lang,void 0)??(l?(c.lang,void 0):null)??r.message??(c.lang,void 0);u!==void 0&&(c.message=typeof u==`function`?u(c):u),l&&(n.typed=!1),n.issues?n.issues.push(c):n.issues=[c]}function de(e,t){let n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??`never`}function C(e){return e[`~standard`]={version:1,vendor:`valibot`,validate:t=>e[`~run`]({value:t},b())},e}function fe(e){if(e.path){let t=``;for(let n of e.path)if(typeof n.key==`string`||typeof n.key==`number`)t+=t?`.${n.key}`:n.key;else return null;return t}return null}var pe=/^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])[T ](?:0\d|1\d|2[0-3])(?::[0-5]\d){2}(?:\.\d{1,9})?(?:Z| ?[+-](?:0\d|1\d|2[0-3])(?::?[0-5]\d)?)$/u;function w(e,t){return{kind:`validation`,type:`check`,reference:w,async:!1,expects:null,requirement:e,message:t,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&S(this,`input`,e,t),e}}}function T(e){return{kind:`metadata`,type:`description`,reference:T,description:e}}function E(e){return{kind:`metadata`,type:`examples`,reference:E,examples:e}}function D(e){return{kind:`validation`,type:`integer`,reference:D,async:!1,expects:null,requirement:Number.isInteger,message:e,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&S(this,`integer`,e,t),e}}}function O(e){return{kind:`validation`,type:`iso_timestamp`,reference:O,async:!1,expects:null,requirement:pe,message:e,"~run"(e,t){return e.typed&&!this.requirement.test(e.value)&&S(this,`timestamp`,e,t),e}}}function k(e,t){return{kind:`validation`,type:`max_value`,reference:k,async:!1,expects:`<=${e instanceof Date?e.toJSON():x(e)}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!(e.value<=this.requirement)&&S(this,`value`,e,t,{received:e.value instanceof Date?e.value.toJSON():x(e.value)}),e}}}function A(e,t){return{kind:`validation`,type:`min_value`,reference:A,async:!1,expects:`>=${e instanceof Date?e.toJSON():x(e)}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!(e.value>=this.requirement)&&S(this,`value`,e,t,{received:e.value instanceof Date?e.value.toJSON():x(e.value)}),e}}}function j(e,t){return{kind:`validation`,type:`regex`,reference:j,async:!1,expects:`${e}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!this.requirement.test(e.value)&&S(this,`format`,e,t),e}}}function M(e,t,n){return typeof e.fallback==`function`?e.fallback(t,n):e.fallback}function N(e,t,n){return typeof e.default==`function`?e.default(t,n):e.default}function P(e,t){return C({kind:`schema`,type:`array`,reference:P,expects:`Array`,async:!1,item:e,message:t,"~run"(e,t){let n=e.value;if(Array.isArray(n)){e.typed=!0,e.value=[];for(let r=0;r<n.length;r++){let i=n[r],a=this.item[`~run`]({value:i},t);if(a.issues){let o={type:`array`,origin:`value`,input:n,key:r,value:i};for(let t of a.issues)t.path?t.path.unshift(o):t.path=[o],e.issues?.push(t);if(e.issues||=a.issues,t.abortEarly){e.typed=!1;break}}a.typed||(e.typed=!1),e.value.push(a.value)}}else S(this,`type`,e,t);return e}})}function F(e){return C({kind:`schema`,type:`boolean`,reference:F,expects:`boolean`,async:!1,message:e,"~run"(e,t){return typeof e.value==`boolean`?e.typed=!0:S(this,`type`,e,t),e}})}function I(e,t){return C({kind:`schema`,type:`nullable`,reference:I,expects:`(${e.expects} | null)`,async:!1,wrapped:e,default:t,"~run"(e,t){return e.value===null&&(this.default!==void 0&&(e.value=N(this,e,t)),e.value===null)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}})}function L(e){return C({kind:`schema`,type:`number`,reference:L,expects:`number`,async:!1,message:e,"~run"(e,t){return typeof e.value==`number`&&!isNaN(e.value)?e.typed=!0:S(this,`type`,e,t),e}})}function R(e,t){return C({kind:`schema`,type:`object`,reference:R,expects:`Object`,async:!1,entries:e,message:t,"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){e.typed=!0,e.value={};for(let r in this.entries){let i=this.entries[r];if(r in n||(i.type===`exact_optional`||i.type===`optional`||i.type===`nullish`)&&i.default!==void 0){let a=r in n?n[r]:N(i),o=i[`~run`]({value:a},t);if(o.issues){let i={type:`object`,origin:`value`,input:n,key:r,value:a};for(let t of o.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),e.value[r]=o.value}else if(i.fallback!==void 0)e.value[r]=M(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(S(this,`key`,e,t,{input:void 0,expected:`"${r}"`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]}),t.abortEarly))break}}else S(this,`type`,e,t);return e}})}function z(e,t){return C({kind:`schema`,type:`optional`,reference:z,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,"~run"(e,t){return e.value===void 0&&(this.default!==void 0&&(e.value=N(this,e,t)),e.value===void 0)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}})}function B(e,t){return C({kind:`schema`,type:`picklist`,reference:B,expects:de(e.map(x),`|`),async:!1,options:e,message:t,"~run"(e,t){return this.options.includes(e.value)?e.typed=!0:S(this,`type`,e,t),e}})}function V(e,t){return C({kind:`schema`,type:`strict_object`,reference:V,expects:`Object`,async:!1,entries:e,message:t,"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){e.typed=!0,e.value={};for(let r in this.entries){let i=this.entries[r];if(r in n||(i.type===`exact_optional`||i.type===`optional`||i.type===`nullish`)&&i.default!==void 0){let a=r in n?n[r]:N(i),o=i[`~run`]({value:a},t);if(o.issues){let i={type:`object`,origin:`value`,input:n,key:r,value:a};for(let t of o.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),e.value[r]=o.value}else if(i.fallback!==void 0)e.value[r]=M(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(S(this,`key`,e,t,{input:void 0,expected:`"${r}"`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]}),t.abortEarly))break}if(!e.issues||!t.abortEarly){for(let r in n)if(!Object.prototype.hasOwnProperty.call(this.entries,r)){S(this,`key`,e,t,{input:r,expected:`never`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]});break}}}else S(this,`type`,e,t);return e}})}function H(e){return C({kind:`schema`,type:`string`,reference:H,expects:`string`,async:!1,message:e,"~run"(e,t){return typeof e.value==`string`?e.typed=!0:S(this,`type`,e,t),e}})}function U(...e){return C({...e[0],pipe:e,"~run"(t,n){for(let r of e)if(r.kind!==`metadata`){if(t.issues&&(r.kind===`schema`||r.kind===`transformation`)){t.typed=!1;break}t.issues&&(n.abortEarly||n.abortPipeEarly)||(t=r[`~run`](t,n))}return t}})}function me(e,t,n){let r=e[`~run`]({value:t},b(n));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}function he(e){try{return!new TextDecoder(e).encoding.startsWith(`utf-16`)}catch{return!1}}var W=({min:e,max:t})=>U(L(),D(),A(e),k(t)),G=W(p.port),ge=W({min:1,max:p.port.max}),K=U(H(),j(/\S/),T(`Not empty or blank.`)),_e=U(P(U(H(),j(ae))),T('Host names the API answers to besides IP addresses, `localhost` and the machine\'s name. Without port or scheme. `["*"]` accepts any name. Added in API 1.5.')),ve=R({enabled:F(),port:ge,version:U(I(U(H(),j(oe))),T("`null` = bundled version. Otherwise an exact version like `1.65.1`."))}),q={tcp:{host:K,port:G,encoding:U(H(),w(he),T("TextDecoder label of the socket voice's code page. Not `utf-16*`: lines are split on bytes.")),maxLineBytes:W(p.maxLineBytes)},http:{host:K,port:G,allowedHosts:_e},buffer:{maxEntries:W(p.maxEntries)},log:{level:B(ie),file:U(I(K),T("Bridge log file, `null` = default path.")),consoleSpeech:U(F(),T(`Also write the speech text to the console.`))}};q.tcp,q.http,q.buffer,q.log;var J=e=>V(Object.fromEntries(Object.entries(e).map(([e,t])=>[e,z(t)])));J(ve.entries),J({enabled:F(),port:ge}),J(q.tcp),J(q.http),J(q.buffer),J(q.log);var Y=e=>U(L(),D(),A(e)),ye=U(H(),O()),be=U(R({seq:U(Y(1),T(`Increasing sequence number. Survives clear and keeps rising across restarts: the first entry of a bridge run gets the run's start time in milliseconds.`)),kind:B([`speech`,`marker`]),text:H(),receivedAt:U(ye,T(`When the bridge received the line (UTC).`)),source:U(B([`tcp`,`api`]),T("`tcp` for speech, `api` for markers.")),voice:U(I(H()),T("Header (`voice=<id>`) of the sending voice, `null` if not set or for markers.")),connectionId:U(I(Y(1)),T("TCP connection that delivered it, `null` for markers.")),sessionId:U(z(I(Y(1))),T("The session that was current, `null` outside any session. Added in API 1.3."))}),T(`One recorded speech line or a marker.`),E([{seq:42,kind:`speech`,text:`Submit, button`,receivedAt:`2026-11-07T14:03:12.345Z`,source:`tcp`,voice:`ssc5000`,connectionId:3,sessionId:7}]));m.wait.seen,`${m.wait.seen}`,`${m.markerLength}`;var{coordinate:X,delayMs:Z,maxKeys:xe}=m.input,Q=m.capture;Q.quietForMs.min,Q.quietForMs.max,`${Q.quietForMs.default}`,Q.firstWithinMs.max,`${Q.firstWithinMs.default}`,Q.timeoutMs.max,`${Q.timeoutMs.default}`,Q.settleMs.max,Q.entries,`${Q.entries}`,-X,-X,`${xe}`,Z.max,`${Z.default}`,m.input.focusTitleLength;var $=e=>U(L(),D(),A(e)),Se=U(H(),O()),Ce=e=>U(H(),w(e=>le(e,m.sessionLabelLength)),T(`${e} Trimmed, must not be empty, at most ${m.sessionLabelLength} characters.`)),we={id:U($(1),T(`Increasing, also across restarts (since API 1.29): the first session of a bridge run gets the run's start time in milliseconds, so an id is never given out twice.`)),name:H(),run:U(I(H()),T(`Optional label that groups sessions.`)),client:U(I(H()),T("Who started it: the `X-SR-Speech-Client` header, `null` if it wasn't sent. Added in API 1.10.")),startedAt:Se,endedAt:U(I(Se),T("`null` while the session is current.")),startSeq:U($(0),T("The last `seq` given out before the session started: `since=startSeq` reads the session from its start. Added in API 1.9.")),firstSeq:U(I($(1)),T("First entry still in the buffer, `null` if none.")),lastSeq:U(I($(1)),T("Last entry still in the buffer, `null` if none.")),entries:U($(0),T(`Entries of this session still in the buffer.`))};Ce(`For example the test title.`),Ce(`Optional label that groups sessions, for example one per test run.`),{...we};var Te=5e3;function Ee(e,t){return t===null?e===`none`:e===t}function De(e,t){return ke(e,t)}function Oe(e,t){return e!==`none`&&e!==t}function ke(e,t){return e===`none`||e===t}function Ae(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 je(e,t){if(e===`none`)return`Records outside sessions`;let n=t.find(t=>t.id===e);return n===void 0?`#${e}`:`${n.name} #${n.id}`}export{Ae as a,be as c,ce as d,Oe as i,fe as l,Ee as n,ke as o,De as r,je as s,Te as t,me as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],t=[`f1`,`f2`,`f3`,`f4`,`f5`,`f6`,`f7`,`f8`,`f9`,`f10`,`f11`,`f12`],n=`abcdefghijklmnopqrstuvwxyz`.split(``),r=[`control`,`shift`,`alt`,`win`,`insert`,`capslock`],i=[...e.map(e=>`numpad${e}`),`numpadplus`,`numpadminus`,`numpadmultiply`,`numpaddivide`,`numpaddecimal`,`numpadenter`],a=[`enter`,`tab`,`escape`,`space`,`backspace`,`delete`,`up`,`down`,`left`,`right`,`home`,`end`,`pageup`,`pagedown`,...t,...i];[...r,...a,...n,...e],new Set(r);var o={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,focusTitleLength:200},capture:{quietForMs:{default:500,min:1,max:6e4},firstWithinMs:{default:2e3,max:3e5},timeoutMs:{default:1e4,max:3e5},settleMs:{default:0,max:6e4},entries:1e4}},s={port:{min:0,max:65535},maxLineBytes:{min:1024,max:16777216},maxEntries:{min:1,max:1e6}},c=/^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$/,l=/^(\*|[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?)
|
|
1
|
+
var e=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],t=[`f1`,`f2`,`f3`,`f4`,`f5`,`f6`,`f7`,`f8`,`f9`,`f10`,`f11`,`f12`],n=`abcdefghijklmnopqrstuvwxyz`.split(``),r=[`control`,`shift`,`alt`,`win`,`insert`,`capslock`],i=[...e.map(e=>`numpad${e}`),`numpadplus`,`numpadminus`,`numpadmultiply`,`numpaddivide`,`numpaddecimal`,`numpadenter`],a=[`enter`,`tab`,`escape`,`space`,`backspace`,`delete`,`up`,`down`,`left`,`right`,`home`,`end`,`pageup`,`pagedown`,...t,...i];[...r,...a,...n,...e],new Set(r);var o={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,focusTitleLength:200},capture:{quietForMs:{default:500,min:1,max:6e4},firstWithinMs:{default:2e3,max:3e5},timeoutMs:{default:1e4,max:3e5},settleMs:{default:0,max:6e4},entries:1e4}},s={port:{min:0,max:65535},maxLineBytes:{min:1024,max:16777216},maxEntries:{min:1,max:1e6}},c=/^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$/,l=/^(\*|[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?)$/;export{l as i,s as n,c as r,o as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.
|
|
2
|
-
import{i as e}from"../chunks/D0famktY.js";import{t}from"../chunks/DUTjbZNf.js";function n(e){let t={};for(let[n,i]of Object.entries(e))t[n]=r(i);return t}function r(t){if(t&&(typeof t==`object`||typeof t==`function`)&&`~standard`in t)return t;if(typeof t==`function`)return{"~standard":{validate(e){let n=t(e);return n===void 0?{issues:[{message:`Invalid param`}]}:n instanceof Promise?n:{value:n}}}};e()}var i=n({id:e=>{if(!/^[1-9]\d*$/.test(e))return;let t=Number(e);return Number.isSafeInteger(t)?t:void 0}}),a=[()=>t(()=>import(`../nodes/0.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CEfoZ0Mb.js","../chunks/B__KpOuX.js","../chunks/UKukklIc.js","../chunks/BkoDSEOx.js","./payload.DSmR2FwN.js","../chunks/D0famktY.js","../chunks/C06IiL6m.js","../chunks/BEImj5AP.js","../chunks/DRNNJMYk.js","../chunks/Cb63XE4v.js","../chunks/VxDST09k.js","../chunks/DWjfB3ah.js","../chunks/Bvlvl8SZ.js","../chunks/C75l7c5l.js","../chunks/JsC3ASJq.js","../chunks/Bxh3K0TK.js","../assets/0.ONZWQgDA.css","../nodes/1.BBl7b45u.js","../nodes/2.4VpydhMh.js","../chunks/BlC5mir6.js","../assets/Pane.Dgdg5KMw.css","../assets/2.DSVNnDlO.css","../nodes/3.BzIz3rja.js","../chunks/w5i9ZoX_.js","../chunks/BuwZGWCm.js","../chunks/OAsMjdHF.js","../chunks/vPs9G1oN.js","../assets/3.WduKm4aT.css","../nodes/4.B9Ke6ZBV.js","../chunks/CAZ56n62.js","../assets/4.DEk4yqpA.css","../nodes/5.Cm6I95kb.js","../chunks/BquQTeuV.js","../assets/ExternalLink.CYXazpKA.css","../assets/5.YyxFzHED.css","../nodes/6.B_1Pts2e.js","../assets/6.C0Nhvs_m.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as e}from"../chunks/D0famktY.js";import{t}from"../chunks/DUTjbZNf.js";function n(e){let t={};for(let[n,i]of Object.entries(e))t[n]=r(i);return t}function r(t){if(t&&(typeof t==`object`||typeof t==`function`)&&`~standard`in t)return t;if(typeof t==`function`)return{"~standard":{validate(e){let n=t(e);return n===void 0?{issues:[{message:`Invalid param`}]}:n instanceof Promise?n:{value:n}}}};e()}var i=n({id:e=>{if(!/^[1-9]\d*$/.test(e))return;let t=Number(e);return Number.isSafeInteger(t)?t:void 0}}),a=[()=>t(()=>import(`../nodes/0.CEfoZ0Mb.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]),import.meta.url),()=>t(()=>import(`../nodes/1.BBl7b45u.js`),__vite__mapDeps([17,1,7,3,4,5,6]),import.meta.url),()=>t(()=>import(`../nodes/2.4VpydhMh.js`),__vite__mapDeps([18,1,3,4,5,2,7,6,19,20,12,21]),import.meta.url),()=>t(()=>import(`../nodes/3.BzIz3rja.js`),__vite__mapDeps([22,1,14,4,5,3,7,2,6,8,23,24,11,9,10,25,26,27]),import.meta.url),()=>t(()=>import(`../nodes/4.B9Ke6ZBV.js`),__vite__mapDeps([28,1,29,8,24,23,26,10,11,13,19,20,30]),import.meta.url),()=>t(()=>import(`../nodes/5.Cm6I95kb.js`),__vite__mapDeps([31,1,3,4,5,29,8,24,23,32,33,2,15,25,34]),import.meta.url),()=>t(()=>import(`../nodes/6.B_1Pts2e.js`),__vite__mapDeps([35,1,3,4,5,6,7,2,24,8,32,33,11,15,36]),import.meta.url)],o=[0],s={"/":[-4],"/settings":[-5],"/setup":[5,[2]],"/setup/instructions":[-7,[2]]},c={handleError:(({kind:e,error:t})=>{e===`unknown`&&console.error(t)}),reroute:(()=>{}),transport:{}},l=Object.fromEntries(Object.entries(c.transport).map(([e,t])=>[e,t.decode])),u=Object.fromEntries(Object.entries(c.transport).map(([e,t])=>[e,t.encode])),d=!1,f=(e,t)=>l[e](t),p=()=>t(()=>import(`../chunks/Beqi9dRN.js`).then(e=>e.default),[],import.meta.url);export{f as decode,l as decoders,s as dictionary,u as encoders,p as get_error_template,d as hash,c as hooks,i as matchers,a as nodes,o as server_loads};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,A as t,B as n,D as r,E as i,F as a,G as o,I as s,J as c,K as l,L as u,N as d,P as f,Q as p,R as m,S as h,V as g,W as _,X as v,Y as y,_ as b,a as x,d as S,et as ee,f as C,g as w,k as T,m as E,nt as D,q as O,rt as k,s as A,u as j,v as M,w as N,y as te}from"../chunks/B__KpOuX.js";import"../chunks/UKukklIc.js";import"../chunks/C06IiL6m.js";import{n as ne,t as re}from"../chunks/DRNNJMYk.js";import{c as ie,d as ae,l as oe,t as se,u as ce}from"../chunks/Cb63XE4v.js";import{t as le}from"../chunks/Bvlvl8SZ.js";import{c as ue,o as de,t as fe}from"../chunks/C75l7c5l.js";import{l as pe,s as me,t as P}from"../chunks/BkoDSEOx.js";import{_ as he,a as ge,f as F,g as _e,h as I,i as ve,l as L,m as ye,n as be,o as R,p as xe,s as z,t as Se,u as Ce}from"../chunks/JsC3ASJq.js";import{n as B,o as we,t as Te}from"../chunks/BEImj5AP.js";import{i as Ee,n as De,r as Oe,t as ke}from"../chunks/Bxh3K0TK.js";var Ae=`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`,je=new URL(`../assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2`,import.meta.url).href,Me=i(`<li><span class="face svelte-19wvxlf" aria-hidden="true"><span></span> <span class="chip-label svelte-19wvxlf"> </span></span> <span class="visually-hidden"> </span></li>`),Ne=i(`<ul aria-label="Bridge status" class="svelte-19wvxlf"></ul>`),Pe=i(`<!> <span class="visually-hidden" role="status"> </span>`,1);function Fe(t,n){e(n,!0);var r=Pe(),i=f(r),c=e=>{var t=Ne();E(t,21,()=>n.chips,e=>e.id,(e,t)=>{var n=Me();let r;var i=d(n),c=d(i),l=s(c,2),u=a(l,!0);k(i);var f=s(i,2),p=a(f,!0);k(n),o(()=>{r=j(n,1,w(m(t).tone),`svelte-19wvxlf`,r,{down:m(t).down}),x(i,`title`,m(t).text),j(c,1,`dot ${m(t).dot??``}`,`svelte-19wvxlf`),h(u,m(t).text),h(p,m(t).description)}),N(e,n)}),k(t),N(e,t)};b(i,e=>{n.chips.length>0&&e(c)});var l=s(i,2),u=a(l,!0);o(()=>h(u,n.announcement)),N(t,r),p()}var Ie=i(`<md-icon-button><md-icon>refresh</md-icon></md-icon-button>`,2);function Le(e,n){var r=Ie();A(r,`title`,`Refresh status`),A(r,`aria-label`,`Refresh status`),j(r,1,`svelte-5q7qd7`);var i=d(r);A(i,`aria-hidden`,`true`);let a;k(r),o(()=>a=j(i,1,`svelte-5q7qd7`,null,a,{spin:n.loading})),t(`click`,r,function(...e){n.onRetry?.apply(this,e)}),N(e,r)}T([`click`]);function Re(e,t){return t?e===null?[]:[V(`playwright`,`Playwright`,e.playwright),V(`mcp`,`MCP`,e.mcp)].filter(e=>e!==null):[{id:`bridge`,text:`Bridge unreachable`,tone:`error`,dot:`filled`,description:`Bridge unreachable`}]}function V(e,t,n){let r=`${t} ${n.version}`;switch(n.state){case`running`:return{id:e,text:r,tone:`ok`,dot:`filled`,description:`${r}, running`};case`crashed`:case`failed`:return{id:e,text:`${r} · ${n.state}`,tone:`warning`,dot:`filled`,description:`${r}, ${n.state}`};case`starting`:return{id:e,text:r,tone:`neutral`,dot:`hollow`,description:`${r}, starting`,down:!0};case`stopped`:return null}}function ze(e,t){return t?e.filter(e=>e.tone===`error`||e.tone===`warning`).map(e=>`${e.description}.`).join(` `):`Bridge unreachable.`}var Be=i(`<!> <!>`,1);function Ve(t,n){e(n,!0);let r=ne().status,i=v(()=>B.data.status),a=v(()=>r.status??m(i)),o=v(()=>Re(m(a),r.reachable));M(()=>{r.seed(m(i)),r.init()});var c=Be(),l=f(c);{let e=v(()=>ze(m(o),r.reachable));Fe(l,{get chips(){return m(o)},get announcement(){return m(e)}})}var u=s(l,2),d=e=>{Le(e,{get loading(){return r.loading},onRetry:()=>void r.retry()})};b(u,e=>{r.reachable||e(d)}),N(t,c),p()}var He=i(`<header class="svelte-4j9s4f"><div class="logo-slot svelte-4j9s4f"><div class="logo svelte-4j9s4f"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 10v4M8 6v12M12 3v18M16 8v8M20 11v2"></path></svg></div></div> <div class="title svelte-4j9s4f"><span class="name svelte-4j9s4f">Speech Capture</span> <span class="meta svelte-4j9s4f"> </span></div> <!></header>`);function Ue(e,t){var n=He(),r=s(d(n),2),i=s(d(r),2),c=a(i,!0);k(r),Ve(s(r,2),{}),k(n),o(()=>h(c,t.host)),N(e,n)}var We=i(`<li><a data-sveltekit-reset="false" class="svelte-sxtjmn"><span><md-ripple></md-ripple> <md-icon> </md-icon></span> <span class="label svelte-sxtjmn"> </span></a></li>`,2),Ge=i(`<nav aria-label="Pages" class="svelte-sxtjmn"><ul class="svelte-sxtjmn"></ul></nav> <span class="visually-hidden" role="status"> </span>`,1);function Ke(n,i){let u=r();e(i,!0);let g=y(``),_;l(()=>(i.currentPath,()=>{clearTimeout(_),c(g,``)}));function b(e,t){if(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)return;let n=e.currentTarget;n.href===n.ownerDocument.URL&&(e.preventDefault(),clearTimeout(_),c(g,``),_=setTimeout(()=>c(g,`${t}, current page`),100))}function ee(e){e.key===` `&&(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||(e.preventDefault(),e.repeat||e.currentTarget.click()))}var C=Ge(),w=f(C),T=d(w);E(T,23,()=>i.items,e=>e.href,(e,n,r)=>{let c=v(()=>le(m(n),i.currentPath)),l=v(()=>`${u}-link-${m(r)}`),f=v(()=>`${m(l)}-label`);var p=We(),g=d(p),_=d(g);let y;var S=d(_);o(()=>A(S,`for`,m(l))),A(S,`aria-hidden`,`true`);var C=s(S,2);A(C,`aria-hidden`,`true`);var w=a(C,!0);k(_);var T=s(_,2),E=a(T,!0);k(g),k(p),o(()=>{x(g,`id`,m(l)),x(g,`href`,m(n).href),x(g,`aria-labelledby`,m(f)),x(g,`aria-current`,m(c)?`page`:void 0),y=j(_,1,`indicator svelte-sxtjmn`,null,y,{current:m(c)}),h(w,m(n).icon),x(T,`id`,m(f)),h(E,m(n).label)}),t(`click`,g,e=>b(e,m(n).label)),t(`keydown`,g,ee),N(e,p)}),k(T),S(T,()=>ae(`a`)),k(w);var D=s(w,2),O=a(D,!0);o(()=>h(O,m(g))),N(n,C),p()}T([`click`,`keydown`]);var qe=class{async copy(e){let t=navigator.clipboard;if(t!==void 0)try{return await t.writeText(e),!0}catch{}return Je(e)}};function Je(e){let t=document.activeElement,n=document.createElement(`textarea`);n.value=e,n.readOnly=!0,n.setAttribute(`aria-hidden`,`true`),Object.assign(n.style,{position:`fixed`,top:`0`,left:`0`,opacity:`0`}),document.body.append(n);try{return n.select(),document.execCommand(`copy`)}catch{return!1}finally{n.remove(),t instanceof HTMLElement&&t.focus({preventScroll:!0})}}var H=`sr-theme`,Ye=class{read(){try{return ue(localStorage.getItem(H))}catch{return null}}write(e){document.documentElement.dataset.theme=e;try{localStorage.setItem(H,e)}catch{}}},Xe=`24px "Material Symbols Outlined"`;async function Ze(){try{await document.fonts.load(Xe)}catch{}document.documentElement.setAttribute(`data-icons-ready`,``)}var Qe=(e,t)=>Error(e?.message??`The request answered ${t}`);async function U(e,{method:t=`GET`,body:n,signal:r,rejection:i=Qe}={}){let a=await fetch(e,{method:t,headers:{accept:`application/json`,...n===void 0?{}:{"content-type":`application/json`}},body:n===void 0?void 0:JSON.stringify(n),signal:r});if(!a.ok)throw i(await $e(a),a.status);return a}async function W(e,t){return await(await U(e,t)).json()}async function $e(e){let t=await e.json().catch(()=>void 0);if(typeof t!=`object`||!t||!(`message`in t))return null;let{message:n}=t;return typeof n==`string`?{message:n,field:`field`in t&&typeof t.field==`string`?t.field:void 0}:null}var G=(e,t)=>e===null?Error(`The request answered ${t}`):new fe(e.message,e.field),et=class{url;constructor(e){this.url=e}fetch(){return W(this.url,{rejection:G})}update(e){return W(this.url,{method:`PUT`,body:e,rejection:G})}},tt=class{url;constructor(e){this.url=e}pressAndCapture(e,t,n){return W(this.url,{method:`POST`,body:{keys:e,capture:t},signal:n})}},nt=class{markersUrl;speechUrl;constructor(e,t){this.markersUrl=e,this.speechUrl=t}async addMarker(e){await U(this.markersUrl,{method:`POST`,body:{label:e}})}async clear(e){await U(`${this.speechUrl}?session=${e}`,{method:`DELETE`})}},rt=Symbol(`sveltekit.query_function_id`),K=Symbol(`sveltekit.query_override_key`),it=Symbol(`sveltekit.query_resource_key`);function q(e,t,n,r){try{O(()=>{let i=e.get(n)?.get(r);if(i)return t.manual_ref(i,n,r)})}catch{}}function J(e,t,n,r,i){return((...a)=>{let o=e.get(n)?.get(r),s=o?t.manual_ref(o,n,r):void 0,c=i(...a);return s&&c.then(s,s),c})}async function at(e,t,n){let r=await fetch(e,t),i=r.status;if(Te(r.headers.get(`x-sveltekit-version`)),!r.ok){let e=await r.json().catch(()=>void 0);throw e?.type===`error`?new F({status:i,...e.error}):new xe({status:i,message:r.statusText})}let a=await r.json();if(a.type===`error`)throw new F(a.error);let o=a.data?he(a.data,be.decoders):{};function s(e,t,n){t?.resource?n.e?t.resource.fail(new F(n.e)):t.resource.set(n.v):n.e||(z[e]=n)}if(o.q)for(let e in o.q){n?.delete(e);let t=I(e);s(e,R.get(t.id)?.get(t.payload),o.q[e])}if(o.l)for(let e in o.l){n?.delete(e);let t=I(e),r=ge.get(t.id)?.get(t.payload);s(e,r,o.l[e]),o.l[e].e||r?.resource.reconnect()}for(let e of o.i??[])n?.delete(e);return o}var Y=`sveltekit:${we}`;(async()=>{if(typeof caches<`u`)try{await caches.open(Y);let e=await caches.keys();for(let t of e)t.startsWith(`sveltekit:`)&&t!==Y&&await caches.delete(t)}catch(e){console.warn(`Failed to initialize SvelteKit cache:`,e)}})();var X=new Map;new FinalizationRegistry(e=>{let t=X.get(e);t&&t.deref()===void 0&&X.delete(e)});function ot(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var Z=class{#e;#t;#n=y(!0);#r=[];#i=y(!1);#a=y();#o=y(null);#s=y(u([]));#c=v(()=>{if(m(this.#i))return m(this.#s).reduce((e,t)=>t(e),m(this.#a))});#l=y(void 0);#u=v(()=>{let e=this.#d();return m(this.#s).length,(t,r)=>{let i=e.then(n).then(()=>{if(!m(this.#i))throw new F(m(this.#l)??{status:500,message:`Query resolved without a value`});return m(this.#c)});return t||r?i.then(t,r):i}});constructor(e,t){if(this.#e=e,this.#t=t,Object.hasOwn(z,e)){let t=z[e];delete z[e],t.e?this.fail(new F(t.e)):this.set(t.v)}}#d(){return g(()=>m(this.#o)??c(this.#o,this.#p())),m(this.#o)}start(){n().then(()=>this.#d()).catch(L)}#f(){this.#r.forEach(e=>e(void 0)),this.#r.length=0}#p(){c(this.#n,!0);let{promise:e,resolve:t,reject:n}=ot();return e.catch(L),this.#r.push(t),Promise.resolve(this.#t()).then(e=>{let n=this.#r.indexOf(t);n!==-1&&g(()=>{this.#r.splice(0,n+1).forEach(e=>e(void 0)),c(this.#i,!0),c(this.#n,!1),c(this.#a,e),c(this.#l,void 0)})}).catch(async e=>{if(!this.#r.includes(t))return;let r=await ve(e,{params:{},route:{id:null},url:new URL(location.href)}),i=this.#r.indexOf(t);i!==-1&&(g(()=>{this.#r.splice(0,i).forEach(e=>e(void 0)),this.#r.shift(),c(this.#l,r),c(this.#n,!1)}),n(new F(r)))}),e}get then(){return this.start(),m(this.#u)}get catch(){return this.start(),m(this.#u),e=>m(this.#u)(void 0,e)}get finally(){return this.start(),m(this.#u),e=>m(this.#u)(t=>(e(),t),t=>{throw e(),t})}get current(){return this.start(),m(this.#c)}get error(){return this.start(),m(this.#l)}get loading(){return this.start(),m(this.#n)}get ready(){return this.start(),m(this.#i)}refresh(){return delete z[this.#e],c(this.#o,this.#p())}set(e){delete z[this.#e];let t=this.#r.length>0;this.#f(),c(this.#i,!0),c(this.#n,!1),c(this.#l,void 0),c(this.#a,e),t||c(this.#o,Promise.resolve())}fail(e){delete z[this.#e],this.#f(),c(this.#n,!1),c(this.#l,e.body);let t=Promise.reject(e);t.catch(L),c(this.#o,t)}withOverride(e){m(this.#s).push(e);let t=(()=>{let t=m(this.#s).indexOf(e);t!==-1&&m(this.#s).splice(t,1)});return Object.defineProperty(t,K,{value:this.#e}),t}reset(){c(this.#o,null),delete z[this.#e]}get[Symbol.toStringTag](){return`Query`}},Q=class{#e;#t;#n=new FinalizationRegistry(({entry:e,id:t,payload:n})=>{this.deref(e,t,n)});constructor(e,t){this.#e=e,this.#t=t}ensure_entry=(e,t,n)=>{let r=this.#e.get(e);r||(r=new Map,this.#e.set(e,r));let i=r.get(t);if(!i){let e={proxy_count:0,resource:null,cleanup:null};e.cleanup=_(()=>{e.resource=n()}),i=e,r.set(t,i)}return i};ref=(e,t,n,r)=>{t.proxy_count++,this.#n.register(e,{entry:t,id:n,payload:r})};manual_ref=(e,t,n)=>(e.proxy_count++,Ce(()=>this.deref(e,t,n)));deref=(e,t,r)=>{e.proxy_count--,n().then(()=>{let e=this.#e.get(t)?.get(r);!e||e.proxy_count>0||this.#r(t,r)})};#r=(e,t)=>{let n=this.#e.get(e),r=n?.get(t);r&&(this.#t?.(r.resource),r.cleanup(),n?.delete(t),n&&n.size===0&&this.#e.delete(e))}},$=new Q(R),st=class{#e;#t;#n;#r;constructor(e,t,n){this.#e=e,this.#n=_e(t),this.#t=ye(e,this.#n),Object.defineProperty(this,it,{value:this.#t}),this.#r=n;let r=this.#t,i=this.#n,a=$.ensure_entry(this.#e,this.#n,()=>new Z(r,()=>n(i)));$.ref(this,a,this.#e,this.#n)}#i(){let e=R.get(this.#e)?.get(this.#n);if(!e)throw Error(`No cached query found. This should be impossible. Please file a bug report.`);return e.resource}get current(){return this.#i().current}get error(){return this.#i().error}get loading(){return this.#i().loading}get ready(){return this.#i().ready}refresh(){return this.#i().refresh()}set(e){this.#i().set(e)}withOverride(e){let t=this.#r,n=this.#t,r=this.#n,i=$.ensure_entry(this.#e,this.#n,()=>new Z(n,()=>t(r))),a=$.manual_ref(i,this.#e,this.#n),o=i.resource.withOverride(e),s=(()=>{o(),a()});return Object.defineProperty(s,K,{value:o[K]}),s}get then(){q(R,$,this.#e,this.#n);let e=this.#i();return J(R,$,this.#e,this.#n,e.then.bind(e))}get catch(){q(R,$,this.#e,this.#n);let e=this.#i();return J(R,$,this.#e,this.#n,e.catch.bind(e))}get finally(){q(R,$,this.#e,this.#n);let e=this.#i();return J(R,$,this.#e,this.#n,e.finally.bind(e))}get[Symbol.toStringTag](){return`QueryProxy`}};function ct(e){let t=t=>new st(e,t,async t=>{let n=await at(`${pe}/${me}/remote/${e}${t?`?payload=${t}`:``}`);n.redirect&&await Se(n.redirect)});return Object.defineProperty(t,rt,{value:e}),t}new Q(ge,e=>e.destroy());var lt=ct(`1j2tn2d/getSessions`),ut=class{url;constructor(e){this.url=e}async list(){let e=lt();return await e.refresh(),e.current}start(e,t){return W(this.url,{method:`POST`,body:{name:e,run:t}})}async end(){await U(`${this.url}/end`,{method:`POST`})}async delete(e){await U(`${this.url}/${e}`,{method:`DELETE`})}};function dt(e,t){let n=ce(e,t);if(n.success)return{ok:!0,value:n.output};let[r]=n.issues;return{ok:!1,field:oe(r)??`(body)`,message:r.message}}var ft=1e3,pt=class{streamUrl;speechUrl;constructor(e,t){this.streamUrl=e,this.speechUrl=t}open(e,t,n){return n.onState(`connecting`),t?this.follow(e,n):this.read(e,n)}listen(e,t){let n=this.stream(`since=${e}`,e=>t.onEntry(e));return this.report(n,e=>t.onState(e)),()=>n.close()}follow(e,t){let n=this.stream(`session=${encodeURIComponent(String(e))}&since=0`,e=>t.onEntry(e));return this.report(n,e=>t.onState(e)),n.addEventListener(`clear`,()=>t.onClear()),()=>n.close()}report(e,t){e.onopen=()=>t(`live`),e.onerror=()=>t(e.readyState===EventSource.CLOSED?`failed`:`reconnecting`)}stream(e,t){let n=new EventSource(`${this.streamUrl}?${e}`);return n.addEventListener(`entry`,e=>{let n;try{n=JSON.parse(e.data)}catch{return}let r=dt(ie,n);r.ok&&t(r.value)}),n}read(e,t){let n=new AbortController;return(async()=>{let r=0;for(;;){let i=new URLSearchParams({session:String(e),since:String(r),limit:String(ft)}),{entries:a,hasMore:o}=await W(`${this.speechUrl}?${i}`,{signal:n.signal});t.onEntries(a);let s=a.at(-1);if(!o||s===void 0)return;r=s.seq}})().then(()=>t.onState(`ended`),()=>{n.signal.aborted||t.onState(`failed`)}),()=>n.abort()}},mt=class{url;constructor(e){this.url=e}fetch(){return W(this.url)}};function ht(e){return e===`1`||e!==`0`&&null}function gt(e){return e?`1`:`0`}var _t=`sr-sessions-collapsed`,vt=class{read(){try{return ht(localStorage.getItem(_t))}catch{return null}}write(e){try{localStorage.setItem(_t,gt(e))}catch{}}};function yt(e){let t=y(null),n=y(!0),r=y(!1),i=null;function a(){return i||(c(r,!0),i=e.fetch().then(e=>{c(t,e,!0),c(n,!0)}).catch(()=>{c(n,!1)}).finally(()=>{i=null,c(r,!1)}),i)}return{get loaded(){return m(t)!==null},get reachable(){return m(n)},get reading(){return m(r)},get active(){return m(t)?.active??null},get saved(){return m(t)?.saved??null},get overrides(){return m(t)?.overrides??{}},seed(e){e!==null&&(c(t,e,!0),c(n,!0))},refresh(){return a()},async save(t){await e.update(t),await i,await a()}}}function bt(e){let t=y(!0);return{get collapsed(){return m(t)},init(){c(t,e.read()??!1,!0)},toggle(){c(t,!m(t)),e.write(m(t))}}}var xt=3e3;function St(e){let t=y(u([])),n=y(null),r=y(0),i=y(!0),a=y(!1),o=y(u(Date.now())),s=null;function l(e,i=Date.now()){c(t,e.sessions,!0),c(n,e.currentId,!0),c(r,e.outsideEntries,!0),c(o,i,!0),c(a,!0)}function d(){return s||(s=e.list().then(e=>{l(e),c(i,!0)}).catch(()=>{c(i,!1)}).finally(()=>{s=null}),s)}async function f(){await s,await d()}return{get sessions(){return m(t)},get currentId(){return m(n)},get outsideEntries(){return m(r)},get loaded(){return m(a)},get reachable(){return m(i)},get now(){return m(o)},seed(e,t){e!==null&&!m(a)&&l(e,t)},init(){d();let e=setInterval(()=>{m(n)!==null&&c(o,Date.now(),!0)},1e3),t=setInterval(()=>void d(),xt);return()=>{clearInterval(e),clearInterval(t)}},refresh(){return f()},async start(t,n){let r=await e.start(t,n);return await f(),r},async end(){await e.end(),await f()},async delete(t){await e.delete(t),await f()}}}function Ct(e,t){let n=y([]),r=y(`connecting`),i=null;function a(){i?.(),i=null}function o(e){let t=m(n).at(-1)?.seq??0,r=[];for(let n of e)n.seq<=t||(r.push(n),t=n.seq);if(r.length===0)return;let i=[...m(n),...r];c(n,i.length>5e3?i.slice(i.length-se):i)}return{get entries(){return m(n)},get connection(){return m(r)},open(t,s){return a(),c(n,[]),c(r,`connecting`),i=e.open(t,s,{onEntry:e=>o([e]),onEntries:o,onClear(){c(n,[])},onState(e){c(r,e,!0)}}),a},clear(e){return t.clear(e)},addMarker(e){return t.addMarker(e)}}}function wt(e){let t=y(null),n=y(!0),r=y(!1),i=null;function a(){return i||(c(r,!0),i=e.fetch().then(e=>{c(t,e,!0),c(n,!0)}).catch(()=>{c(n,!1)}).finally(()=>{c(r,!1),i=null}),i)}return{get status(){return m(t)},get reachable(){return m(n)},get loading(){return m(r)},seed(e){e!==null&&m(t)===null&&c(t,e,!0)},init(){a()},retry(){return a()}}}function Tt(e){let t=y(u(de));return{get current(){return m(t)},init(){c(t,e.read()??`light`,!0)},set(n){c(t,n,!0),e.write(n)}}}function Et(e,t,n){let r=y(`idle`),i=y(`manual`),a=y([]),o=y(!1),s=y(``),l=0,u=null,d;function f(){l++,clearTimeout(d),u?.(),u=null,c(o,!1)}function p(e){f(),c(r,`failed`),c(s,e,!0)}function h(){d=setTimeout(()=>{m(o)?p(`The connection to the bridge was lost.`):(f(),c(r,`silent`))},Oe)}async function g(n){c(r,`starting`);let i;try{i=(await e.fetch()).buffer.lastSeq??0}catch{n===l&&p(`The bridge is not reachable.`);return}n===l&&(c(r,`listening`),u=t.listen(i,{onEntry(e){n===l&&e.kind!==`marker`&&(c(a,[...m(a),e]),c(r,`heard`),clearTimeout(d),m(a).length>=5?f():d=setTimeout(f,Ee))},onState(e){n===l&&(e===`failed`?m(r)===`heard`?f():p(`The speech stream is not available.`):c(o,e===`reconnecting`))}}),h())}async function _(e){c(r,`listening`);let t=new AbortController;u=()=>t.abort();try{let i=await n.pressAndCapture(De,ke,t.signal);if(e!==l)return;f(),c(a,i.entries.slice(0,5)),c(r,m(a).length>0?`heard`:`silent`,!0)}catch(t){e===l&&p(t instanceof Error?t.message:`The keys could not be sent.`)}}return{get phase(){return m(r)},get via(){return m(i)},get entries(){return m(a)},get reconnecting(){return m(o)},get failure(){return m(s)},async start(e){f(),c(i,e,!0),c(a,[]),c(s,``),await(e===`manual`?g(l):_(l))},stop(){f(),c(r,`idle`),c(a,[]),c(s,``)}}}function Dt(){let e=new mt(P(`/api/status`)),t=new pt(P(`/api/speech/stream`),P(`/api/speech`)),n=new nt(P(`/api/markers`),P(`/api/speech`)),r=new qe;return{theme:Tt(new Ye),status:wt(e),config:yt(new et(P(`/api/config`))),sessions:St(new ut(P(`/api/sessions`))),speech:Ct(t,n),voiceCheck:Et(e,t,new tt(P(`/api/input/keys`))),sessionsPane:bt(new vt),clipboard:r}}function Ot(){return ee(re,Dt())}var kt=i(`<link rel="icon"/> <link rel="preload" as="font" type="font/woff2" crossorigin="anonymous"/> <meta name="color-scheme" content="light dark"/>`,1),At=i(`<div class="app svelte-12qhfyh"><!> <div class="body svelte-12qhfyh"><!> <main class="svelte-12qhfyh"><!></main></div></div>`);function jt(t,n){e(n,!0);let{theme:r}=Ot(),i=[{href:P(`/`),label:`Monitor`,icon:`monitor`,exact:!0},{href:P(`/settings`),label:`Settings`,icon:`settings`},{href:P(`/setup`),label:`Setup`,icon:`build`}];M(()=>{r.init(),Ze()});var a=At();C(`12qhfyh`,e=>{var t=kt(),n=f(t),r=s(n,2);D(2),o(()=>{x(n,`href`,Ae),x(r,`href`,je)}),N(e,t)});var c=d(a);Ue(c,{get host(){return B.url.host}});var l=s(c,2),u=d(l);Ke(u,{get items(){return i},get currentPath(){return B.url.pathname}});var m=s(u,2),h=d(m);te(h,()=>n.children),k(m),k(l),k(a),N(t,a),p()}export{jt as component};
|