screenreader-speech-capture 0.7.0 → 0.8.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 +1 -1
- package/dist/ui/adapter-node.js +1 -1
- package/dist/ui/client/ui/_app/immutable/assets/3.CK2Biket.css +1 -0
- package/dist/ui/client/ui/_app/immutable/assets/3.CK2Biket.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/3.CK2Biket.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CM9WugkD.js +179 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CM9WugkD.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CM9WugkD.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CXrPUR7p.js +4 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CXrPUR7p.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CXrPUR7p.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Fimt9aTv.js +34 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Fimt9aTv.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Fimt9aTv.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.D_WMpF1j.js +2 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.D_WMpF1j.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.D_WMpF1j.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/{0.CJdYHfX8.js → 0.kO9a4iA1.js} +1 -1
- package/dist/ui/client/ui/_app/immutable/nodes/0.kO9a4iA1.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.kO9a4iA1.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.Y_rJeHBb.js +50 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.Y_rJeHBb.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.Y_rJeHBb.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.DcigOv3T.js +5 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.DcigOv3T.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.DcigOv3T.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 +39 -5
- package/dist/ui/server/_app/immutable/assets/_page.CK2Biket.css +1 -0
- package/dist/ui/server/chunks/bridge-api.js +12 -2
- package/dist/ui/server/chunks/bridge-api.js.map +1 -1
- package/dist/ui/server/chunks/composition.js +2615 -2
- package/dist/ui/server/chunks/composition.js.map +1 -1
- package/dist/ui/server/chunks/icon-button.js +31 -2389
- package/dist/ui/server/chunks/icon-button.js.map +1 -1
- package/dist/ui/server/chunks/index-server.js +2 -0
- package/dist/ui/server/chunks/instance.js +3 -3
- package/dist/ui/server/chunks/internal.js +1 -1
- package/dist/ui/server/chunks/outlined-text-field.js +1864 -0
- package/dist/ui/server/chunks/outlined-text-field.js.map +1 -0
- package/dist/ui/server/chunks/src.js +24 -5
- package/dist/ui/server/chunks/src.js.map +1 -1
- package/dist/ui/server/chunks/state.js +1 -0
- package/dist/ui/server/chunks/state.js.map +1 -1
- package/dist/ui/server/entries/endpoints/api/config/_server.ts.js +34 -0
- package/dist/ui/server/entries/endpoints/api/config/_server.ts.js.map +1 -0
- package/dist/ui/server/entries/endpoints/api/speech/_server.ts.js +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/entries/pages/_page.svelte.js +46 -1904
- package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/settings/_page.svelte.js +99 -3
- package/dist/ui/server/entries/pages/settings/_page.svelte.js.map +1 -1
- package/dist/ui/server/manifest-full.js +8 -1
- package/dist/ui/server/manifest.js +8 -1
- package/dist/ui/server/nodes/0.js +1 -1
- package/dist/ui/server/nodes/2.js +1 -1
- package/dist/ui/server/nodes/3.js +2 -2
- package/dist/ui/server/server.js +8 -1
- package/package.json +1 -1
- package/dist/ui/client/ui/_app/immutable/assets/3.BKNNVeb3.css +0 -1
- package/dist/ui/client/ui/_app/immutable/assets/3.BKNNVeb3.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/3.BKNNVeb3.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CEzmqEHD.js +0 -37
- package/dist/ui/client/ui/_app/immutable/chunks/CEzmqEHD.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CEzmqEHD.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/vjU7Kh7P.js +0 -1
- package/dist/ui/client/ui/_app/immutable/chunks/vjU7Kh7P.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/vjU7Kh7P.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.DkG_UKpo.js +0 -2
- package/dist/ui/client/ui/_app/immutable/entry/app.DkG_UKpo.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.DkG_UKpo.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.CJdYHfX8.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.CJdYHfX8.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.CKUmeq5l.js +0 -228
- package/dist/ui/client/ui/_app/immutable/nodes/2.CKUmeq5l.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/2.CKUmeq5l.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.D74ClOwr.js +0 -1
- package/dist/ui/client/ui/_app/immutable/nodes/3.D74ClOwr.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.D74ClOwr.js.gz +0 -0
- package/dist/ui/server/_app/immutable/assets/_page.BKNNVeb3.css +0 -1
|
@@ -1,5 +1,90 @@
|
|
|
1
|
-
import { a as head, f as escape_html, i as ensure_array_like, l as attr, s as stringify } from "../../../chunks/server2.js";
|
|
2
|
-
import
|
|
1
|
+
import { a as head, f as escape_html, i as ensure_array_like, l as attr, r as derived, s as stringify } from "../../../chunks/server2.js";
|
|
2
|
+
import "../../../chunks/index-server.js";
|
|
3
|
+
import { B as __decorate, M as T, R as i, f as THEMES, o as themeStore, t as configStore, z as t } from "../../../chunks/composition.js";
|
|
4
|
+
import { i as Button, n as styles$1, r as styles$2 } from "../../../chunks/outlined-text-field.js";
|
|
5
|
+
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/filled-button.js
|
|
6
|
+
/**
|
|
7
|
+
* @license
|
|
8
|
+
* Copyright 2021 Google LLC
|
|
9
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* A filled button component.
|
|
13
|
+
*/
|
|
14
|
+
var FilledButton = class extends Button {
|
|
15
|
+
renderElevationOrOutline() {
|
|
16
|
+
return T`<md-elevation part="elevation"></md-elevation>`;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/filled-styles.cssresult.js
|
|
20
|
+
/**
|
|
21
|
+
* @license
|
|
22
|
+
* Copyright 2026 Google LLC
|
|
23
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
24
|
+
*/
|
|
25
|
+
var styles = i`:host{--_container-color: var(--md-filled-button-container-color, var(--md-sys-color-primary, #6750a4));--_container-elevation: var(--md-filled-button-container-elevation, 0);--_container-height: var(--md-filled-button-container-height, 40px);--_container-shadow-color: var(--md-filled-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-filled-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-button-focus-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-container-elevation: var(--md-filled-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-button-hover-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-color: var(--md-filled-button-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-opacity: var(--md-filled-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-button-label-text-color, var(--md-sys-color-on-primary, #fff));--_label-text-font: var(--md-filled-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-button-pressed-label-text-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-color: var(--md-filled-button-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-opacity: var(--md-filled-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-button-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-icon-color: var(--md-filled-button-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-color: var(--md-filled-button-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-size: var(--md-filled-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-button-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_container-shape-start-start: var(--md-filled-button-container-shape-start-start, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-button-container-shape-start-end, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-button-container-shape-end-end, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-button-container-shape-end-start, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-filled-button-leading-space, 24px);--_trailing-space: var(--md-filled-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-button-with-trailing-icon-trailing-space, 16px)}
|
|
26
|
+
`;
|
|
27
|
+
styles.styleSheet;
|
|
28
|
+
// ../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/filled-button.js
|
|
29
|
+
/**
|
|
30
|
+
* @license
|
|
31
|
+
* Copyright 2021 Google LLC
|
|
32
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
33
|
+
*/
|
|
34
|
+
/**
|
|
35
|
+
* @summary Buttons help people take action, such as sending an email, sharing a
|
|
36
|
+
* document, or liking a comment.
|
|
37
|
+
*
|
|
38
|
+
* @description
|
|
39
|
+
* __Emphasis:__ High emphasis – For the primary, most important, or most common
|
|
40
|
+
* action on a screen
|
|
41
|
+
*
|
|
42
|
+
* __Rationale:__ The filled button’s contrasting surface color makes it the
|
|
43
|
+
* most prominent button after the FAB. It’s used for final or unblocking
|
|
44
|
+
* actions in a flow.
|
|
45
|
+
*
|
|
46
|
+
* __Example usages:__
|
|
47
|
+
* - Save
|
|
48
|
+
* - Confirm
|
|
49
|
+
* - Done
|
|
50
|
+
*
|
|
51
|
+
* @final
|
|
52
|
+
* @suppress {visibility}
|
|
53
|
+
*/
|
|
54
|
+
var MdFilledButton = class MdFilledButton extends FilledButton {};
|
|
55
|
+
MdFilledButton.styles = [
|
|
56
|
+
styles$1,
|
|
57
|
+
styles$2,
|
|
58
|
+
styles
|
|
59
|
+
];
|
|
60
|
+
MdFilledButton = __decorate([t("md-filled-button")], MdFilledButton);
|
|
61
|
+
// src/lib/components/TcpPortSetting/TcpPortSetting.svelte
|
|
62
|
+
function TcpPortSetting($$renderer, $$props) {
|
|
63
|
+
$$renderer.component(($$renderer) => {
|
|
64
|
+
/** The port the bridge listens on now. */
|
|
65
|
+
/** The port the next start will use. */
|
|
66
|
+
/** What sets the port (`--tcp-port`) when a flag or variable does: it can't be changed here. */
|
|
67
|
+
/** Rejects with a message to show; resolves when the port is saved. */
|
|
68
|
+
let { active, saved, overriddenBy, onSave } = $$props;
|
|
69
|
+
let fieldError = "";
|
|
70
|
+
let busy = false;
|
|
71
|
+
const shown = derived(() => String(saved));
|
|
72
|
+
const changed = derived(() => false);
|
|
73
|
+
const pending = derived(() => saved !== active);
|
|
74
|
+
$$renderer.push(`<form novalidate="" class="svelte-1oos7l"><md-outlined-text-field label="TCP port" inputmode="numeric" autocomplete="off" supporting-text="The port the screen reader's speech voice sends to. Default 4449."${attr("value", shown())}${attr("disabled", overriddenBy !== null, true)}${attr("error", false)}${attr("error-text", fieldError)}></md-outlined-text-field> `);
|
|
75
|
+
if (overriddenBy !== null) $$renderer.push(`<!--[0--><p class="note svelte-1oos7l">Set by <code class="svelte-1oos7l">${escape_html(overriddenBy)}</code> when the bridge starts, so a saved port has no effect. Remove
|
|
76
|
+
it to change the port here.</p>`);
|
|
77
|
+
else $$renderer.push(`<!--[-1--><div class="actions svelte-1oos7l"><md-filled-button type="submit"${attr("disabled", !changed() || busy, true)}>Save</md-filled-button> <md-text-button type="button"${attr("disabled", !changed() || busy, true)}>Revert</md-text-button></div>`);
|
|
78
|
+
$$renderer.push(`<!--]--> <p class="note svelte-1oos7l">In use: ${escape_html(active)}</p> <div role="status" class="status">`);
|
|
79
|
+
if (pending()) $$renderer.push(`<!--[0--><div class="pending svelte-1oos7l"><strong>Restart the bridge to use port ${escape_html(saved)}.</strong> It still listens on ${escape_html(active)} until it is restarted. The speech voice on the VM sends to a fixed
|
|
80
|
+
port, so also add a voice for ${escape_html(saved)} (<code class="svelte-1oos7l">text-to-socket-engine-add-voice</code>) and
|
|
81
|
+
select it in the screen reader.</div>`);
|
|
82
|
+
else $$renderer.push("<!--[-1-->");
|
|
83
|
+
$$renderer.push(`<!--]--></div> `);
|
|
84
|
+
$$renderer.push("<!--[-1-->");
|
|
85
|
+
$$renderer.push(`<!--]--></form>`);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
3
88
|
// src/lib/components/ThemeSetting/ThemeSetting.svelte
|
|
4
89
|
function ThemeSetting($$renderer, $$props) {
|
|
5
90
|
$$renderer.component(($$renderer) => {
|
|
@@ -21,7 +106,18 @@ function _page($$renderer, $$props) {
|
|
|
21
106
|
$$renderer.push(`<title>Settings · Speech Capture</title>`);
|
|
22
107
|
});
|
|
23
108
|
});
|
|
24
|
-
$$renderer.push(`<div class="page svelte-1i19ct2"><div class="pane svelte-1i19ct2"><h1 class="visually-hidden svelte-1i19ct2">Settings</h1> <section aria-labelledby="
|
|
109
|
+
$$renderer.push(`<div class="page svelte-1i19ct2"><div class="pane svelte-1i19ct2"><h1 class="visually-hidden svelte-1i19ct2">Settings</h1> <section aria-labelledby="capture-heading" class="svelte-1i19ct2"><h2 id="capture-heading" class="svelte-1i19ct2">Speech capture</h2> <p class="scope svelte-1i19ct2">Saved on the bridge. A change takes effect when the bridge is restarted.</p> `);
|
|
110
|
+
if (configStore.active !== null && configStore.saved !== null) {
|
|
111
|
+
$$renderer.push("<!--[0-->");
|
|
112
|
+
TcpPortSetting($$renderer, {
|
|
113
|
+
active: configStore.active.tcp.port,
|
|
114
|
+
saved: configStore.saved.tcp.port,
|
|
115
|
+
overriddenBy: configStore.overrides["tcp.port"] ?? null,
|
|
116
|
+
onSave: (port) => configStore.save({ tcp: { port } })
|
|
117
|
+
});
|
|
118
|
+
} else if (!configStore.reachable) $$renderer.push(`<!--[1--><p class="scope svelte-1i19ct2" role="alert">The bridge is not reachable, so its settings can't be read. <button type="button">Try again</button></p>`);
|
|
119
|
+
else $$renderer.push(`<!--[-1--><p class="scope svelte-1i19ct2">Reading the bridge settings…</p>`);
|
|
120
|
+
$$renderer.push(`<!--]--></section> <section aria-labelledby="appearance-heading" class="svelte-1i19ct2"><h2 id="appearance-heading" class="svelte-1i19ct2">Appearance</h2> `);
|
|
25
121
|
ThemeSetting($$renderer, {
|
|
26
122
|
value: themeStore.current,
|
|
27
123
|
onChange: (theme) => themeStore.set(theme)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_page.svelte.js","names":["$.ensure_array_like","$.attr","$.stringify","$.escape"],"sources":["../../../../../src/lib/components/ThemeSetting/ThemeSetting.svelte","../../../../../src/routes/settings/+page.svelte"],"sourcesContent":["<script lang=\"ts\">\n import { THEMES, type Theme } from '#lib/core/theme.js';\n\n type Props = { value: Theme; onChange: (theme: Theme) => void };\n\n let { value, onChange }: Props = $props();\n</script>\n\n<fieldset>\n <legend>Color theme</legend>\n <p class=\"hint\">Stored in this browser only. Applied immediately.</p>\n <div class=\"options\">\n {#each THEMES as theme (theme.value)}\n <label class=\"option\">\n <input\n type=\"radio\"\n name=\"color-theme\"\n value={theme.value}\n checked={value === theme.value}\n aria-describedby=\"theme-{theme.value}-description\"\n onchange={() => onChange(theme.value)}\n />\n <span class=\"mark\" aria-hidden=\"true\"></span>\n <span class=\"swatch\" data-theme={theme.value} aria-hidden=\"true\">\n <span class=\"bar\"></span>\n <span class=\"aa\">Aa</span>\n <span class=\"chip\"></span>\n </span>\n <span class=\"text\">\n <span class=\"label\">{theme.label}</span>\n <span class=\"description\" id=\"theme-{theme.value}-description\">{theme.description}</span>\n </span>\n <span class=\"selected\" aria-hidden=\"true\">\n <svg\n width=\"18\"\n height=\"18\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M5 12.5l4.5 4.5L19 7.5\" />\n </svg>\n Selected\n </span>\n </label>\n {/each}\n </div>\n</fieldset>\n\n<style>\n fieldset {\n min-width: 0;\n margin: 0;\n padding: 0;\n border: 0;\n }\n\n legend {\n padding: 0;\n color: var(--md-sys-color-on-surface);\n font-size: 14px;\n font-weight: 500;\n line-height: 20px;\n }\n\n .hint {\n margin: 2px 0 12px;\n color: var(--md-sys-color-on-surface-variant);\n font-size: 13px;\n line-height: 18px;\n }\n\n .options {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .option {\n position: relative;\n display: flex;\n align-items: center;\n gap: 12px;\n min-height: 64px;\n padding: 8px 16px 8px 12px;\n border: 1px solid var(--md-sys-color-outline);\n border-radius: 12px;\n box-sizing: border-box;\n background: var(--md-sys-color-surface);\n color: var(--md-sys-color-on-surface);\n cursor: pointer;\n }\n\n .option:hover {\n background: var(--md-sys-color-surface-container-high);\n }\n\n /* The native radio stays the real control and covers the whole card. */\n input {\n position: absolute;\n inset: 0;\n margin: 0;\n opacity: 0;\n cursor: pointer;\n }\n\n .mark {\n display: grid;\n flex: none;\n place-items: center;\n width: 20px;\n height: 20px;\n border: 2px solid var(--md-sys-color-outline);\n border-radius: 50%;\n box-sizing: border-box;\n }\n\n .option:has(input:checked) {\n padding: 6px 14px 6px 10px;\n border: 3px solid var(--md-sys-color-primary);\n background: var(--md-sys-color-primary-container);\n color: var(--md-sys-color-on-primary-container);\n }\n\n .option:has(input:checked) .mark {\n border-color: var(--md-sys-color-primary);\n }\n\n .option:has(input:checked) .mark::after {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background: var(--md-sys-color-primary);\n content: '';\n }\n\n .option:has(input:focus-visible) {\n outline: var(--md-sys-state-focus-indicator-thickness) solid var(--md-sys-color-primary);\n outline-offset: 2px;\n }\n\n .text {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-width: 0;\n }\n\n .label {\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n }\n\n .description {\n font-size: 13px;\n line-height: 18px;\n }\n\n .option:not(:has(input:checked)) .description {\n color: var(--md-sys-color-on-surface-variant);\n }\n\n .selected {\n display: none;\n align-items: center;\n gap: 4px;\n color: var(--md-sys-color-on-primary-container);\n font-size: 12px;\n font-weight: 600;\n }\n\n .option:has(input:checked) .selected {\n display: inline-flex;\n }\n\n /* Each swatch carries its own theme's tokens (tokens.css has bare [data-theme] selectors). */\n .swatch {\n position: relative;\n display: block;\n flex: none;\n width: 72px;\n height: 44px;\n border: 2px solid var(--md-sys-color-outline);\n border-radius: 8px;\n box-sizing: border-box;\n overflow: hidden;\n background: var(--md-sys-color-surface);\n }\n\n .bar {\n position: absolute;\n inset: 0 0 auto;\n height: 10px;\n background: var(--md-sys-color-primary);\n }\n\n .aa {\n position: absolute;\n bottom: 5px;\n left: 8px;\n color: var(--md-sys-color-on-surface);\n font:\n 600 15px/16px system-ui,\n sans-serif;\n }\n\n .chip {\n position: absolute;\n right: 7px;\n bottom: 7px;\n width: 20px;\n height: 12px;\n border-radius: 6px;\n background: var(--md-sys-color-primary);\n }\n</style>\n","<script lang=\"ts\">\n import type { Theme } from '#lib/core/theme.js';\n import { themeStore } from '#lib/composition.js';\n import ThemeSetting from '#lib/components/ThemeSetting/ThemeSetting.svelte';\n</script>\n\n<svelte:head>\n <title>Settings · Speech Capture</title>\n</svelte:head>\n\n<!-- One pane like the speech log; every setting is a section in it. The page heading is only for\n screen readers: the sections name themselves. -->\n<div class=\"page\">\n <div class=\"pane\">\n <h1 class=\"visually-hidden\">Settings</h1>\n\n <section aria-labelledby=\"appearance-heading\">\n <h2 id=\"appearance-heading\">Appearance</h2>\n <ThemeSetting value={themeStore.current} onChange={(theme: Theme) => themeStore.set(theme)} />\n </section>\n </div>\n</div>\n\n<style>\n /* The same gutter above and below as the Monitor page, so the pane lines up with the rail. */\n .page {\n box-sizing: border-box;\n height: 100%;\n padding: var(--app-gutter) 0;\n }\n\n .pane {\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n overflow: auto;\n padding: 16px 24px 24px;\n border: 1px solid var(--md-sys-color-outline-variant);\n border-width: max(1px, var(--app-border-width));\n border-radius: 16px;\n background: var(--md-sys-color-surface-container-lowest);\n }\n\n section {\n max-width: 720px;\n }\n\n h2 {\n margin: 0 0 8px;\n color: var(--md-sys-color-on-surface);\n font-size: 22px;\n font-weight: 500;\n line-height: 28px;\n }\n\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n</style>\n"],"mappings":";;;;CAAA,WAAA,WAAA,eAAA;EAKE,IAAI,EAAE,OAAO,aAAiB;;EAOrB,MAAA,aAAAA,kBAAA,MAAM;;GAAI,IAAA,QAAK,WAAA;GAKT,WAAA,KAAA,8EAAAC,KAAA,SAAA,MAAM,KAAK,IAAAA,KAAA,WACT,UAAU,MAAM,OAAK,IAAA,IAAAA,KAAA,oBAAA,SAAAC,UACL,MAAM,KAAK,EAAA,aAAA,EAAA,4HAAAD,KAAA,cAIL,MAAM,KAAK,EAAA,+NAAAE,YAMrB,MAAM,KAAK,EAAA,kDAAAF,KAAA,MAAA,SAAAC,UACK,MAAM,KAAK,EAAA,aAAA,EAAA,GAAAC,YAAgB,MAAM,WAAW,EAAA,iSAAA;;;CAxBnF,CAAA;;;;CCNR,WAAA,WAAA,eAAA;;;;;;;;GAkB2B,OAAA,WAAW;GAAmB,WAAC,UAAiB,WAAW,IAAI,KAAK;;;CAdvF,CAAA"}
|
|
1
|
+
{"version":3,"file":"_page.svelte.js","names":["sharedStyles","sharedElevationStyles","filledStyles","customElement","$.derived","$.attr","$.escape","$.ensure_array_like","$.attr","$.stringify","$.escape"],"sources":["../../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/filled-button.js","../../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/internal/filled-styles.cssresult.js","../../../../../../../node_modules/.pnpm/@material+web@2.5.0/node_modules/@material/web/button/filled-button.js","../../../../../src/lib/components/TcpPortSetting/TcpPortSetting.svelte","../../../../../src/lib/components/ThemeSetting/ThemeSetting.svelte","../../../../../src/routes/settings/+page.svelte"],"sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport '../../elevation/elevation.js';\nimport { html } from 'lit';\nimport { Button } from './button.js';\n/**\n * A filled button component.\n */\nexport class FilledButton extends Button {\n renderElevationOrOutline() {\n return html `<md-elevation part=\"elevation\"></md-elevation>`;\n }\n}\n//# sourceMappingURL=filled-button.js.map","/**\n * @license\n * Copyright 2026 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n// Generated stylesheet for ./button/internal/filled-styles.css.\nimport { css } from 'lit';\nexport const styles = css `:host{--_container-color: var(--md-filled-button-container-color, var(--md-sys-color-primary, #6750a4));--_container-elevation: var(--md-filled-button-container-elevation, 0);--_container-height: var(--md-filled-button-container-height, 40px);--_container-shadow-color: var(--md-filled-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-filled-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-button-focus-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-container-elevation: var(--md-filled-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-button-hover-label-text-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-color: var(--md-filled-button-hover-state-layer-color, var(--md-sys-color-on-primary, #fff));--_hover-state-layer-opacity: var(--md-filled-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-button-label-text-color, var(--md-sys-color-on-primary, #fff));--_label-text-font: var(--md-filled-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-button-pressed-label-text-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-color: var(--md-filled-button-pressed-state-layer-color, var(--md-sys-color-on-primary, #fff));--_pressed-state-layer-opacity: var(--md-filled-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-button-focus-icon-color, var(--md-sys-color-on-primary, #fff));--_hover-icon-color: var(--md-filled-button-hover-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-color: var(--md-filled-button-icon-color, var(--md-sys-color-on-primary, #fff));--_icon-size: var(--md-filled-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-button-pressed-icon-color, var(--md-sys-color-on-primary, #fff));--_container-shape-start-start: var(--md-filled-button-container-shape-start-start, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-button-container-shape-start-end, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-button-container-shape-end-end, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-button-container-shape-end-start, var(--md-filled-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-filled-button-leading-space, 24px);--_trailing-space: var(--md-filled-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-button-with-trailing-icon-trailing-space, 16px)}\n`;\nexport default styles.styleSheet;\n//# sourceMappingURL=filled-styles.cssresult.js.map","/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { __decorate } from \"tslib\";\nimport { customElement } from 'lit/decorators.js';\nimport { FilledButton } from './internal/filled-button.js';\nimport { styles as filledStyles } from './internal/filled-styles.cssresult.js';\nimport { styles as sharedElevationStyles } from './internal/shared-elevation-styles.cssresult.js';\nimport { styles as sharedStyles } from './internal/shared-styles.cssresult.js';\n/**\n * @summary Buttons help people take action, such as sending an email, sharing a\n * document, or liking a comment.\n *\n * @description\n * __Emphasis:__ High emphasis – For the primary, most important, or most common\n * action on a screen\n *\n * __Rationale:__ The filled button’s contrasting surface color makes it the\n * most prominent button after the FAB. It’s used for final or unblocking\n * actions in a flow.\n *\n * __Example usages:__\n * - Save\n * - Confirm\n * - Done\n *\n * @final\n * @suppress {visibility}\n */\nlet MdFilledButton = class MdFilledButton extends FilledButton {\n};\nMdFilledButton.styles = [\n sharedStyles,\n sharedElevationStyles,\n filledStyles,\n];\nMdFilledButton = __decorate([\n customElement('md-filled-button')\n], MdFilledButton);\nexport { MdFilledButton };\n//# sourceMappingURL=filled-button.js.map","<script lang=\"ts\">\n import '@material/web/button/filled-button.js';\n import '@material/web/button/text-button.js';\n import '@material/web/textfield/outlined-text-field.js';\n import { parsePort } from '#lib/core/config.js';\n\n type Props = {\n /** The port the bridge listens on now. */\n active: number;\n /** The port the next start will use. */\n saved: number;\n /** What sets the port (`--tcp-port`) when a flag or variable does: it can't be changed here. */\n overriddenBy: string | null;\n /** Rejects with a message to show; resolves when the port is saved. */\n onSave: (port: number) => Promise<void>;\n };\n\n let { active, saved, overriddenBy, onSave }: Props = $props();\n\n /** What was typed; `null` until the person edits, so the field follows the saved port. */\n let draft = $state<string | null>(null);\n let fieldError = $state('');\n let failure = $state('');\n let busy = $state(false);\n\n const shown = $derived(draft ?? String(saved));\n const changed = $derived(draft !== null && draft.trim() !== String(saved));\n const pending = $derived(saved !== active);\n\n function revert(): void {\n draft = null;\n fieldError = '';\n failure = '';\n }\n\n async function save(): Promise<void> {\n if (busy || !changed) return;\n const parsed = parsePort(shown);\n if (!parsed.ok) {\n fieldError = parsed.message;\n failure = '';\n return;\n }\n fieldError = '';\n failure = '';\n busy = true;\n try {\n await onSave(parsed.port);\n draft = null;\n } catch (cause) {\n failure = cause instanceof Error ? cause.message : 'The port could not be saved.';\n } finally {\n busy = false;\n }\n }\n</script>\n\n<form\n novalidate\n onsubmit={(event) => {\n event.preventDefault();\n void save();\n }}\n>\n <!-- svelte-ignore a11y_no_static_element_interactions -->\n <md-outlined-text-field\n label=\"TCP port\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n supporting-text=\"The port the screen reader's speech voice sends to. Default 4449.\"\n value={shown}\n disabled={overriddenBy !== null}\n error={fieldError !== ''}\n error-text={fieldError}\n onkeydown={(event: KeyboardEvent) => {\n // Enter saves, whatever the text field does with the form around it.\n if (event.key !== 'Enter') return;\n event.preventDefault();\n void save();\n }}\n oninput={(event: Event) => {\n draft = (event.target as HTMLInputElement).value;\n fieldError = '';\n }}\n ></md-outlined-text-field>\n\n {#if overriddenBy !== null}\n <p class=\"note\">\n Set by <code>{overriddenBy}</code> when the bridge starts, so a saved port has no effect. Remove\n it to change the port here.\n </p>\n {:else}\n <div class=\"actions\">\n <md-filled-button type=\"submit\" disabled={!changed || busy}>Save</md-filled-button>\n <!-- svelte-ignore a11y_click_events_have_key_events, a11y_no_static_element_interactions -->\n <md-text-button type=\"button\" disabled={!changed || busy} onclick={revert}\n >Revert</md-text-button\n >\n </div>\n {/if}\n\n <p class=\"note\">In use: {active}</p>\n\n <!-- A live region that is always there, so the notice is announced when it appears. -->\n <div role=\"status\" class=\"status\">\n {#if pending}\n <div class=\"pending\">\n <strong>Restart the bridge to use port {saved}.</strong>\n It still listens on {active} until it is restarted. The speech voice on the VM sends to a fixed\n port, so also add a voice for {saved} (<code>text-to-socket-engine-add-voice</code>) and\n select it in the screen reader.\n </div>\n {/if}\n </div>\n\n {#if failure !== ''}<p role=\"alert\" class=\"failure\">{failure}</p>{/if}\n</form>\n\n<style>\n form {\n display: flex;\n flex-direction: column;\n gap: 12px;\n max-width: 480px;\n }\n\n .actions {\n display: flex;\n gap: 8px;\n }\n\n .note {\n margin: 0;\n color: var(--md-sys-color-on-surface-variant);\n font-size: 13px;\n line-height: 18px;\n }\n\n .pending {\n padding: 12px 16px;\n border-radius: 12px;\n background: var(--app-warning-container);\n color: var(--app-on-warning-container);\n font-size: 14px;\n line-height: 20px;\n }\n\n .failure {\n margin: 0;\n color: var(--md-sys-color-error);\n font-size: 14px;\n line-height: 20px;\n }\n\n code {\n font-family: var(--app-mono-font, monospace);\n font-size: 0.95em;\n }\n</style>\n","<script lang=\"ts\">\n import { THEMES, type Theme } from '#lib/core/theme.js';\n\n type Props = { value: Theme; onChange: (theme: Theme) => void };\n\n let { value, onChange }: Props = $props();\n</script>\n\n<fieldset>\n <legend>Color theme</legend>\n <p class=\"hint\">Stored in this browser only. Applied immediately.</p>\n <div class=\"options\">\n {#each THEMES as theme (theme.value)}\n <label class=\"option\">\n <input\n type=\"radio\"\n name=\"color-theme\"\n value={theme.value}\n checked={value === theme.value}\n aria-describedby=\"theme-{theme.value}-description\"\n onchange={() => onChange(theme.value)}\n />\n <span class=\"mark\" aria-hidden=\"true\"></span>\n <span class=\"swatch\" data-theme={theme.value} aria-hidden=\"true\">\n <span class=\"bar\"></span>\n <span class=\"aa\">Aa</span>\n <span class=\"chip\"></span>\n </span>\n <span class=\"text\">\n <span class=\"label\">{theme.label}</span>\n <span class=\"description\" id=\"theme-{theme.value}-description\">{theme.description}</span>\n </span>\n <span class=\"selected\" aria-hidden=\"true\">\n <svg\n width=\"18\"\n height=\"18\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <path d=\"M5 12.5l4.5 4.5L19 7.5\" />\n </svg>\n Selected\n </span>\n </label>\n {/each}\n </div>\n</fieldset>\n\n<style>\n fieldset {\n min-width: 0;\n margin: 0;\n padding: 0;\n border: 0;\n }\n\n legend {\n padding: 0;\n color: var(--md-sys-color-on-surface);\n font-size: 14px;\n font-weight: 500;\n line-height: 20px;\n }\n\n .hint {\n margin: 2px 0 12px;\n color: var(--md-sys-color-on-surface-variant);\n font-size: 13px;\n line-height: 18px;\n }\n\n .options {\n display: flex;\n flex-direction: column;\n gap: 8px;\n }\n\n .option {\n position: relative;\n display: flex;\n align-items: center;\n gap: 12px;\n min-height: 64px;\n padding: 8px 16px 8px 12px;\n border: 1px solid var(--md-sys-color-outline);\n border-radius: 12px;\n box-sizing: border-box;\n background: var(--md-sys-color-surface);\n color: var(--md-sys-color-on-surface);\n cursor: pointer;\n }\n\n .option:hover {\n background: var(--md-sys-color-surface-container-high);\n }\n\n /* The native radio stays the real control and covers the whole card. */\n input {\n position: absolute;\n inset: 0;\n margin: 0;\n opacity: 0;\n cursor: pointer;\n }\n\n .mark {\n display: grid;\n flex: none;\n place-items: center;\n width: 20px;\n height: 20px;\n border: 2px solid var(--md-sys-color-outline);\n border-radius: 50%;\n box-sizing: border-box;\n }\n\n .option:has(input:checked) {\n padding: 6px 14px 6px 10px;\n border: 3px solid var(--md-sys-color-primary);\n background: var(--md-sys-color-primary-container);\n color: var(--md-sys-color-on-primary-container);\n }\n\n .option:has(input:checked) .mark {\n border-color: var(--md-sys-color-primary);\n }\n\n .option:has(input:checked) .mark::after {\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background: var(--md-sys-color-primary);\n content: '';\n }\n\n .option:has(input:focus-visible) {\n outline: var(--md-sys-state-focus-indicator-thickness) solid var(--md-sys-color-primary);\n outline-offset: 2px;\n }\n\n .text {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-width: 0;\n }\n\n .label {\n font-size: 16px;\n font-weight: 500;\n line-height: 24px;\n }\n\n .description {\n font-size: 13px;\n line-height: 18px;\n }\n\n .option:not(:has(input:checked)) .description {\n color: var(--md-sys-color-on-surface-variant);\n }\n\n .selected {\n display: none;\n align-items: center;\n gap: 4px;\n color: var(--md-sys-color-on-primary-container);\n font-size: 12px;\n font-weight: 600;\n }\n\n .option:has(input:checked) .selected {\n display: inline-flex;\n }\n\n /* Each swatch carries its own theme's tokens (tokens.css has bare [data-theme] selectors). */\n .swatch {\n position: relative;\n display: block;\n flex: none;\n width: 72px;\n height: 44px;\n border: 2px solid var(--md-sys-color-outline);\n border-radius: 8px;\n box-sizing: border-box;\n overflow: hidden;\n background: var(--md-sys-color-surface);\n }\n\n .bar {\n position: absolute;\n inset: 0 0 auto;\n height: 10px;\n background: var(--md-sys-color-primary);\n }\n\n .aa {\n position: absolute;\n bottom: 5px;\n left: 8px;\n color: var(--md-sys-color-on-surface);\n font:\n 600 15px/16px system-ui,\n sans-serif;\n }\n\n .chip {\n position: absolute;\n right: 7px;\n bottom: 7px;\n width: 20px;\n height: 12px;\n border-radius: 6px;\n background: var(--md-sys-color-primary);\n }\n</style>\n","<script lang=\"ts\">\n import { onMount } from 'svelte';\n import type { Theme } from '#lib/core/theme.js';\n import { configStore, themeStore } from '#lib/composition.js';\n import TcpPortSetting from '#lib/components/TcpPortSetting/TcpPortSetting.svelte';\n import ThemeSetting from '#lib/components/ThemeSetting/ThemeSetting.svelte';\n\n onMount(() => {\n void configStore.refresh();\n });\n</script>\n\n<svelte:head>\n <title>Settings · Speech Capture</title>\n</svelte:head>\n\n<!-- One pane like the speech log; every setting is a section in it. The page heading is only for\n screen readers: the sections name themselves. -->\n<div class=\"page\">\n <div class=\"pane\">\n <h1 class=\"visually-hidden\">Settings</h1>\n\n <section aria-labelledby=\"capture-heading\">\n <h2 id=\"capture-heading\">Speech capture</h2>\n <p class=\"scope\">Saved on the bridge. A change takes effect when the bridge is restarted.</p>\n {#if configStore.active !== null && configStore.saved !== null}\n <TcpPortSetting\n active={configStore.active.tcp.port}\n saved={configStore.saved.tcp.port}\n overriddenBy={configStore.overrides['tcp.port'] ?? null}\n onSave={(port: number) => configStore.save({ tcp: { port } })}\n />\n {:else if !configStore.reachable}\n <p class=\"scope\" role=\"alert\">\n The bridge is not reachable, so its settings can't be read.\n <button type=\"button\" onclick={() => void configStore.refresh()}>Try again</button>\n </p>\n {:else}\n <p class=\"scope\">Reading the bridge settings…</p>\n {/if}\n </section>\n\n <section aria-labelledby=\"appearance-heading\">\n <h2 id=\"appearance-heading\">Appearance</h2>\n <ThemeSetting value={themeStore.current} onChange={(theme: Theme) => themeStore.set(theme)} />\n </section>\n </div>\n</div>\n\n<style>\n /* The same gutter above and below as the Monitor page, so the pane lines up with the rail. */\n .page {\n box-sizing: border-box;\n height: 100%;\n padding: var(--app-gutter) 0;\n }\n\n .pane {\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n overflow: auto;\n padding: 16px 24px 24px;\n border: 1px solid var(--md-sys-color-outline-variant);\n border-width: max(1px, var(--app-border-width));\n border-radius: 16px;\n background: var(--md-sys-color-surface-container-lowest);\n }\n\n section {\n max-width: 720px;\n }\n\n section + section {\n margin-top: 32px;\n padding-top: 24px;\n border-top: 1px solid var(--md-sys-color-outline-variant);\n }\n\n .scope {\n margin: 0 0 12px;\n color: var(--md-sys-color-on-surface-variant);\n font-size: 13px;\n line-height: 18px;\n }\n\n h2 {\n margin: 0 0 8px;\n color: var(--md-sys-color-on-surface);\n font-size: 22px;\n font-weight: 500;\n line-height: 28px;\n }\n\n .visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n</style>\n"],"ignoreList":[0,1,2],"mappings":";;;;;;;;;;;;;AAWA,IAAa,eAAb,cAAkC,OAAO;CACrC,2BAA2B;EACvB,OAAO,CAAK;CAChB;AACJ;;;;;;;ACRA,IAAa,SAAS,CAAI;;AAEX,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;ACsBtB,IAAI,iBAAiB,MAAM,uBAAuB,aAAa,CAC/D;AACA,eAAe,SAAS;CACpBA;CACAC;CACAC;AACJ;AACA,iBAAiB,WAAW,CACxBC,EAAc,kBAAkB,CACpC,GAAG,cAAc;;;CCxCjB,WAAA,WAAA,eAAA;;;;;EAiBE,IAAI,EAAE,QAAQ,OAAO,cAAc,WAAe;EAIlD,IAAI,aAAoB;EAExB,IAAI,OAAc;EAElB,MAAM,QAAKC,cAAqB,OAAO,KAAK,CAAC;EAC7C,MAAM,UAAOA,cAAY,KAAgD;EACzE,MAAM,UAAOA,cAAY,UAAU,MAAM;EA2ChC,WAAA,KAAA,gNAAAC,KAAA,SAAA,MAAK,CAAA,IAAAA,KAAA,YACF,iBAAiB,MAAI,IAAA,IAAAA,KAAA,SACxB,KAAiB,IAAAA,KAAA,cACZ,UAAU,EAAA,4BAAA;E,IAanB,iBAAiB,MAEJ,WAAA,KAAA,6EAAAC,YAAA,YAAY,EAAA;;OAKgB,WAAA,KAAA,+EAAAD,KAAA,YAAA,CAAC,QAAO,KAAI,MAAI,IAAA,EAAA,wDAAAA,KAAA,YAElB,CAAC,QAAO,KAAI,MAAI,IAAA,EAAA,+BAAA;EAMnC,WAAA,KAAA,kDAAAC,YAAA,MAAM,EAAA,wCAAA;EAIxB,IAAA,QAAO,GAEgC,WAAA,KAAA,sFAAAA,YAAA,KAAK,EAAA,iCAAAA,YACxB,MAAM,EAAA;wCACIA,YAAA,KAAK,EAAA;;;;;;CAtDpC,CAAA;;;;CCvDR,WAAA,WAAA,eAAA;EAKE,IAAI,EAAE,OAAO,aAAiB;;EAOrB,MAAA,aAAAC,kBAAA,MAAM;;GAAI,IAAA,QAAK,WAAA;GAKT,WAAA,KAAA,8EAAAC,KAAA,SAAA,MAAM,KAAK,IAAAA,KAAA,WACT,UAAU,MAAM,OAAK,IAAA,IAAAA,KAAA,oBAAA,SAAAC,UACL,MAAM,KAAK,EAAA,aAAA,EAAA,4HAAAD,KAAA,cAIL,MAAM,KAAK,EAAA,+NAAAE,YAMrB,MAAM,KAAK,EAAA,kDAAAF,KAAA,MAAA,SAAAC,UACK,MAAM,KAAK,EAAA,aAAA,EAAA,GAAAC,YAAgB,MAAM,WAAW,EAAA,iSAAA;;;CAxBnF,CAAA;;;;CCNR,WAAA,WAAA,eAAA;;;;;;;EAyBW,IAAA,YAAY,WAAW,QAAQ,YAAY,UAAU,MAAI;;;IAElD,QAAA,YAAY,OAAO,IAAI;IACxB,OAAA,YAAY,MAAM,IAAI;IACf,cAAA,YAAY,UAAU,eAAe;IAC3C,SAAC,SAAiB,YAAY,KAAK,EAAE,KAAK,EAAE,KAAI,EAAE,CAAE;;EAEtD,OAAA,IAAA,CAAC,YAAY,W;;;;GAYF,OAAA,WAAW;GAAmB,WAAC,UAAiB,WAAW,IAAI,KAAK;;;CAlCvF,CAAA"}
|
|
@@ -9,7 +9,7 @@ return {
|
|
|
9
9
|
app_path: "ui/_app",
|
|
10
10
|
assets: new Set(["robots.txt"]),
|
|
11
11
|
mime_types: {".txt":"text/plain"},
|
|
12
|
-
client: {start:"_app/immutable/entry/start.uodUAHNT.js",app:"_app/immutable/entry/app.
|
|
12
|
+
client: {start:"_app/immutable/entry/start.uodUAHNT.js",app:"_app/immutable/entry/app.D_WMpF1j.js",imports:["_app/immutable/entry/start.uodUAHNT.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/DclECHGd.js","_app/immutable/chunks/CKeiBgOI.js","_app/immutable/chunks/CVUOwNb5.js","_app/immutable/chunks/h7UQ89-l.js","_app/immutable/chunks/Dksil5Gu.js","_app/immutable/chunks/C67ohLw_.js","_app/immutable/entry/app.D_WMpF1j.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
|
13
13
|
|
|
14
14
|
nodes: [
|
|
15
15
|
__memo(() => import('./nodes/0.js')),
|
|
@@ -29,6 +29,13 @@ return {
|
|
|
29
29
|
page: { layouts: [0,], errors: [1,], leaf: 2 },
|
|
30
30
|
endpoint: null
|
|
31
31
|
},
|
|
32
|
+
{
|
|
33
|
+
id: "/api/config",
|
|
34
|
+
pattern: /^\/api\/config\/?$/,
|
|
35
|
+
params: [],
|
|
36
|
+
page: null,
|
|
37
|
+
endpoint: __memo(() => import('./entries/endpoints/api/config/_server.ts.js'))
|
|
38
|
+
},
|
|
32
39
|
{
|
|
33
40
|
id: "/api/markers",
|
|
34
41
|
pattern: /^\/api\/markers\/?$/,
|
|
@@ -9,7 +9,7 @@ return {
|
|
|
9
9
|
app_path: "ui/_app",
|
|
10
10
|
assets: new Set(["robots.txt"]),
|
|
11
11
|
mime_types: {".txt":"text/plain"},
|
|
12
|
-
client: {start:"_app/immutable/entry/start.uodUAHNT.js",app:"_app/immutable/entry/app.
|
|
12
|
+
client: {start:"_app/immutable/entry/start.uodUAHNT.js",app:"_app/immutable/entry/app.D_WMpF1j.js",imports:["_app/immutable/entry/start.uodUAHNT.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/DclECHGd.js","_app/immutable/chunks/CKeiBgOI.js","_app/immutable/chunks/CVUOwNb5.js","_app/immutable/chunks/h7UQ89-l.js","_app/immutable/chunks/Dksil5Gu.js","_app/immutable/chunks/C67ohLw_.js","_app/immutable/entry/app.D_WMpF1j.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
|
13
13
|
|
|
14
14
|
nodes: [
|
|
15
15
|
__memo(() => import('./nodes/0.js')),
|
|
@@ -29,6 +29,13 @@ return {
|
|
|
29
29
|
page: { layouts: [0,], errors: [1,], leaf: 2 },
|
|
30
30
|
endpoint: null
|
|
31
31
|
},
|
|
32
|
+
{
|
|
33
|
+
id: "/api/config",
|
|
34
|
+
pattern: /^\/api\/config\/?$/,
|
|
35
|
+
params: [],
|
|
36
|
+
page: null,
|
|
37
|
+
endpoint: __memo(() => import('./entries/endpoints/api/config/_server.ts.js'))
|
|
38
|
+
},
|
|
32
39
|
{
|
|
33
40
|
id: "/api/markers",
|
|
34
41
|
pattern: /^\/api\/markers\/?$/,
|
|
@@ -5,6 +5,6 @@ let component_cache;
|
|
|
5
5
|
export const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;
|
|
6
6
|
export { server };
|
|
7
7
|
export const server_id = "src/routes/+layout.server.ts";
|
|
8
|
-
export const imports = ["_app/immutable/nodes/0.
|
|
8
|
+
export const imports = ["_app/immutable/nodes/0.kO9a4iA1.js","_app/immutable/chunks/h7UQ89-l.js","_app/immutable/chunks/Dksil5Gu.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/CXrPUR7p.js","_app/immutable/chunks/C67ohLw_.js","_app/immutable/chunks/DnL0kOQY.js","_app/immutable/chunks/Fimt9aTv.js"];
|
|
9
9
|
export const stylesheets = ["_app/immutable/assets/0.CnPCLsGJ.css"];
|
|
10
10
|
export const fonts = [{"file":"_app/immutable/assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2","filename":"node_modules/@fontsource/material-symbols-outlined/files/material-symbols-outlined-latin-400-normal.woff2"},{"file":"_app/immutable/assets/roboto-flex-cyrillic-ext-opsz-normal.nDQikIyu.woff2","filename":"node_modules/@fontsource-variable/roboto-flex/files/roboto-flex-cyrillic-ext-opsz-normal.woff2"},{"file":"_app/immutable/assets/roboto-flex-cyrillic-opsz-normal.SjuC5rw5.woff2","filename":"node_modules/@fontsource-variable/roboto-flex/files/roboto-flex-cyrillic-opsz-normal.woff2"},{"file":"_app/immutable/assets/roboto-flex-greek-opsz-normal.C14fFRny.woff2","filename":"node_modules/@fontsource-variable/roboto-flex/files/roboto-flex-greek-opsz-normal.woff2"},{"file":"_app/immutable/assets/roboto-flex-vietnamese-opsz-normal.C-H_yGOU.woff2","filename":"node_modules/@fontsource-variable/roboto-flex/files/roboto-flex-vietnamese-opsz-normal.woff2"},{"file":"_app/immutable/assets/roboto-flex-latin-ext-opsz-normal.xNclTVCo.woff2","filename":"node_modules/@fontsource-variable/roboto-flex/files/roboto-flex-latin-ext-opsz-normal.woff2"},{"file":"_app/immutable/assets/roboto-flex-latin-opsz-normal.hy8fyBBC.woff2","filename":"node_modules/@fontsource-variable/roboto-flex/files/roboto-flex-latin-opsz-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.BHxv52bw.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-cyrillic-ext-400-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-cyrillic-ext-400-normal.W26xs1TL.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-cyrillic-ext-400-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-cyrillic-400-normal.C-_K-ZCn.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-cyrillic-400-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-cyrillic-400-normal.B3hIXASd.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-cyrillic-400-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-greek-400-normal.CH_u3Aru.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-greek-400-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-greek-400-normal.P8xe1gs1.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-greek-400-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-vietnamese-400-normal.yYTFiTTs.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-vietnamese-400-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-vietnamese-400-normal.CzWHQABp.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-vietnamese-400-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-latin-ext-400-normal.DLAV9S_w.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-latin-ext-400-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-latin-ext-400-normal.BwLXVYNz.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-latin-ext-400-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-latin-400-normal.GekRknry.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-latin-400-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-latin-400-normal.DBZPkcnn.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-latin-400-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.DC57U9n8.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-cyrillic-ext-500-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-cyrillic-ext-500-normal.6xdwlG7p.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-cyrillic-ext-500-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-cyrillic-500-normal.DGZ7-lUP.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-cyrillic-500-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-cyrillic-500-normal.NpUJFYX7.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-cyrillic-500-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-greek-500-normal.DpRFkptA.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-greek-500-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-greek-500-normal.C2M8jX6G.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-greek-500-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-vietnamese-500-normal.Cq-quQMu.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-vietnamese-500-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-vietnamese-500-normal.IxzxMIj7.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-vietnamese-500-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-latin-ext-500-normal.Db3ge6Oe.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-latin-ext-500-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-latin-ext-500-normal.B1IjfbhL.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-latin-ext-500-normal.woff"},{"file":"_app/immutable/assets/roboto-mono-latin-500-normal.pxIOXZmA.woff2","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-latin-500-normal.woff2"},{"file":"_app/immutable/assets/roboto-mono-latin-500-normal.D6j6AMzd.woff","filename":"node_modules/@fontsource/roboto-mono/files/roboto-mono-latin-500-normal.woff"}];
|
|
@@ -5,6 +5,6 @@ let component_cache;
|
|
|
5
5
|
export const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;
|
|
6
6
|
export { server };
|
|
7
7
|
export const server_id = "src/routes/+page.server.ts";
|
|
8
|
-
export const imports = ["_app/immutable/nodes/2.
|
|
8
|
+
export const imports = ["_app/immutable/nodes/2.Y_rJeHBb.js","_app/immutable/chunks/h7UQ89-l.js","_app/immutable/chunks/Dksil5Gu.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/CVUOwNb5.js","_app/immutable/chunks/C67ohLw_.js","_app/immutable/chunks/CXrPUR7p.js","_app/immutable/chunks/DnL0kOQY.js","_app/immutable/chunks/CM9WugkD.js","_app/immutable/chunks/Fimt9aTv.js"];
|
|
9
9
|
export const stylesheets = ["_app/immutable/assets/2.IKhva0W0.css"];
|
|
10
10
|
export const fonts = [];
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
export const index = 3;
|
|
4
4
|
let component_cache;
|
|
5
5
|
export const component = async () => component_cache ??= (await import('../entries/pages/settings/_page.svelte.js')).default;
|
|
6
|
-
export const imports = ["_app/immutable/nodes/3.
|
|
7
|
-
export const stylesheets = ["_app/immutable/assets/3.
|
|
6
|
+
export const imports = ["_app/immutable/nodes/3.DcigOv3T.js","_app/immutable/chunks/h7UQ89-l.js","_app/immutable/chunks/CXrPUR7p.js","_app/immutable/chunks/Dksil5Gu.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/CM9WugkD.js"];
|
|
7
|
+
export const stylesheets = ["_app/immutable/assets/3.CK2Biket.css"];
|
|
8
8
|
export const fonts = [];
|
package/dist/ui/server/server.js
CHANGED
|
@@ -10,7 +10,7 @@ return {
|
|
|
10
10
|
app_path: "ui/_app",
|
|
11
11
|
assets: new Set(["robots.txt"]),
|
|
12
12
|
mime_types: {".txt":"text/plain"},
|
|
13
|
-
client: {start:"_app/immutable/entry/start.uodUAHNT.js",app:"_app/immutable/entry/app.
|
|
13
|
+
client: {start:"_app/immutable/entry/start.uodUAHNT.js",app:"_app/immutable/entry/app.D_WMpF1j.js",imports:["_app/immutable/entry/start.uodUAHNT.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/DclECHGd.js","_app/immutable/chunks/CKeiBgOI.js","_app/immutable/chunks/CVUOwNb5.js","_app/immutable/chunks/h7UQ89-l.js","_app/immutable/chunks/Dksil5Gu.js","_app/immutable/chunks/C67ohLw_.js","_app/immutable/entry/app.D_WMpF1j.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
|
14
14
|
|
|
15
15
|
nodes: [
|
|
16
16
|
__memo(() => import('./nodes/0.js')),
|
|
@@ -30,6 +30,13 @@ return {
|
|
|
30
30
|
page: { layouts: [0,], errors: [1,], leaf: 2 },
|
|
31
31
|
endpoint: null
|
|
32
32
|
},
|
|
33
|
+
{
|
|
34
|
+
id: "/api/config",
|
|
35
|
+
pattern: /^\/api\/config\/?$/,
|
|
36
|
+
params: [],
|
|
37
|
+
page: null,
|
|
38
|
+
endpoint: __memo(() => import('./entries/endpoints/api/config/_server.ts.js'))
|
|
39
|
+
},
|
|
33
40
|
{
|
|
34
41
|
id: "/api/markers",
|
|
35
42
|
pattern: /^\/api\/markers\/?$/,
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
fieldset.svelte-15x0123{border:0;min-width:0;margin:0;padding:0}legend.svelte-15x0123{color:var(--md-sys-color-on-surface);padding:0;font-size:14px;font-weight:500;line-height:20px}.hint.svelte-15x0123{color:var(--md-sys-color-on-surface-variant);margin:2px 0 12px;font-size:13px;line-height:18px}.options.svelte-15x0123{flex-direction:column;gap:8px;display:flex}.option.svelte-15x0123{border:1px solid var(--md-sys-color-outline);box-sizing:border-box;background:var(--md-sys-color-surface);min-height:64px;color:var(--md-sys-color-on-surface);cursor:pointer;border-radius:12px;align-items:center;gap:12px;padding:8px 16px 8px 12px;display:flex;position:relative}.option.svelte-15x0123:hover{background:var(--md-sys-color-surface-container-high)}input.svelte-15x0123{opacity:0;cursor:pointer;margin:0;position:absolute;inset:0}.mark.svelte-15x0123{border:2px solid var(--md-sys-color-outline);box-sizing:border-box;border-radius:50%;flex:none;place-items:center;width:20px;height:20px;display:grid}.option.svelte-15x0123:has(input:where(.svelte-15x0123):checked){border:3px solid var(--md-sys-color-primary);background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container);padding:6px 14px 6px 10px}.option.svelte-15x0123:has(input:where(.svelte-15x0123):checked) .mark:where(.svelte-15x0123){border-color:var(--md-sys-color-primary)}.option.svelte-15x0123:has(input:where(.svelte-15x0123):checked) .mark:where(.svelte-15x0123):after{background:var(--md-sys-color-primary);content:"";border-radius:50%;width:10px;height:10px}.option.svelte-15x0123:has(input:where(.svelte-15x0123):focus-visible){outline:var(--md-sys-state-focus-indicator-thickness) solid var(--md-sys-color-primary);outline-offset:2px}.text.svelte-15x0123{flex-direction:column;flex:1;min-width:0;display:flex}.label.svelte-15x0123{font-size:16px;font-weight:500;line-height:24px}.description.svelte-15x0123{font-size:13px;line-height:18px}.option.svelte-15x0123:not(:has(input:checked)) .description:where(.svelte-15x0123){color:var(--md-sys-color-on-surface-variant)}.selected.svelte-15x0123{color:var(--md-sys-color-on-primary-container);align-items:center;gap:4px;font-size:12px;font-weight:600;display:none}.option.svelte-15x0123:has(input:where(.svelte-15x0123):checked) .selected:where(.svelte-15x0123){display:inline-flex}.swatch.svelte-15x0123{border:2px solid var(--md-sys-color-outline);box-sizing:border-box;background:var(--md-sys-color-surface);border-radius:8px;flex:none;width:72px;height:44px;display:block;position:relative;overflow:hidden}.bar.svelte-15x0123{background:var(--md-sys-color-primary);height:10px;position:absolute;inset:0 0 auto}.aa.svelte-15x0123{color:var(--md-sys-color-on-surface);font:600 15px/16px system-ui,sans-serif;position:absolute;bottom:5px;left:8px}.chip.svelte-15x0123{background:var(--md-sys-color-primary);border-radius:6px;width:20px;height:12px;position:absolute;bottom:7px;right:7px}.page.svelte-1i19ct2{box-sizing:border-box;height:100%;padding:var(--app-gutter) 0}.pane.svelte-1i19ct2{box-sizing:border-box;border:1px solid var(--md-sys-color-outline-variant);border-width:max(1px, var(--app-border-width));background:var(--md-sys-color-surface-container-lowest);border-radius:16px;height:100%;min-height:0;padding:16px 24px 24px;overflow:auto}section.svelte-1i19ct2{max-width:720px}h2.svelte-1i19ct2{color:var(--md-sys-color-on-surface);margin:0 0 8px;font-size:22px;font-weight:500;line-height:28px}.visually-hidden.svelte-1i19ct2{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}
|
|
Binary file
|
|
Binary file
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
function e(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var t=e=>(t,n)=>{n===void 0?customElements.define(e,t):n.addInitializer(()=>{customElements.define(e,t)})},n=globalThis,r=n.ShadowRoot&&(n.ShadyCSS===void 0||n.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,i=Symbol(),a=new WeakMap,o=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(r&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=a.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&a.set(t,e))}return e}toString(){return this.cssText}},s=e=>new o(typeof e==`string`?e:e+``,void 0,i),c=(e,...t)=>new o(e.length===1?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(typeof e==`number`)return e;throw Error(`Value passed to 'css' function must be a 'css' function result: `+e+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(n)+e[r+1],e[0]),e,i),l=(e,t)=>{if(r)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let r of t){let t=document.createElement(`style`),i=n.litNonce;i!==void 0&&t.setAttribute(`nonce`,i),t.textContent=r.cssText,e.appendChild(t)}},u=r?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return s(t)})(e):e,{is:ee,defineProperty:te,getOwnPropertyDescriptor:ne,getOwnPropertyNames:re,getOwnPropertySymbols:ie,getPrototypeOf:ae}=Object,d=globalThis,oe=d.trustedTypes,se=oe?oe.emptyScript:``,ce=d.reactiveElementPolyfillSupport,f=(e,t)=>e,p={toAttribute(e,t){switch(t){case Boolean:e=e?se:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},m=(e,t)=>!ee(e,t),le={attribute:!0,type:String,converter:p,reflect:!1,useDefault:!1,hasChanged:m};Symbol.metadata??=Symbol(`metadata`),d.litPropertyMetadata??=new WeakMap;var h=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=le){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&te(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=ne(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let a=r?.call(this);i?.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??le}static _$Ei(){if(this.hasOwnProperty(f(`elementProperties`)))return;let e=ae(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(f(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(f(`properties`))){let e=this.properties,t=[...re(e),...ie(e)];for(let n of t)this.createProperty(n,e[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(u(e))}else e!==void 0&&t.push(u(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?void 0:typeof n==`string`?n:typeof e==`string`?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return l(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&!0===n.reflect){let i=(n.converter?.toAttribute===void 0?p:n.converter).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let e=n.getPropertyOptions(r),i=typeof e.converter==`function`?{fromAttribute:e.converter}:e.converter?.fromAttribute===void 0?p:e.converter;this._$Em=r;let a=i.fromAttribute(t,e.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(e,t,n,r=!1,i){if(e!==void 0){let a=this.constructor;if(!1===r&&(i=this[e]),n??=a.getPropertyOptions(e),!((n.hasChanged??m)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==i||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||r===void 0||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};h.elementStyles=[],h.shadowRootOptions={mode:`open`},h[f(`elementProperties`)]=new Map,h[f(`finalized`)]=new Map,ce?.({ReactiveElement:h}),(d.reactiveElementVersions??=[]).push(`2.1.2`);var ue={attribute:!0,type:String,converter:p,reflect:!1,hasChanged:m},de=(e=ue,t,n)=>{let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e,!0,n)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e,!0,n)}}throw Error(`Unsupported decorator location: `+r)};function g(e){return(t,n)=>typeof n==`object`?de(e,t,n):((e,t,n)=>{let r=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function _(e){return g({...e,state:!0,attribute:!1})}var v=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&typeof t!=`object`&&Object.defineProperty(e,t,n),n);function fe(e,t){return(n,r,i)=>{let a=t=>t.renderRoot?.querySelector(e)??null;if(t){let{get:e,set:t}=typeof r==`object`?n:i??(()=>{let e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return v(n,r,{get(){let n=e.call(this);return n===void 0&&(n=a(this),(n!==null||this.hasUpdated)&&t.call(this,n)),n}})}return v(n,r,{get(){return a(this)}})}}var y=globalThis,pe=e=>e,b=y.trustedTypes,me=b?b.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,he=`$lit$`,x=`lit$${Math.random().toFixed(9).slice(2)}$`,ge=`?`+x,_e=`<${ge}>`,S=document,C=()=>S.createComment(``),w=e=>e===null||typeof e!=`object`&&typeof e!=`function`,T=Array.isArray,ve=e=>T(e)||typeof e?.[Symbol.iterator]==`function`,E=`[
|
|
2
|
-
\f\r]`,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ye=/-->/g,be=/>/g,O=RegExp(`>|${E}(?:([^\\s"'>=/]+)(${E}*=${E}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),xe=/'/g,Se=/"/g,Ce=/^(?:script|style|textarea|title)$/i,k=(e=>(t,...n)=>({_$litType$:e,strings:t,values:n}))(1),A=Symbol.for(`lit-noChange`),j=Symbol.for(`lit-nothing`),we=new WeakMap,M=S.createTreeWalker(S,129);function Te(e,t){if(!T(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return me===void 0?t:me.createHTML(t)}var Ee=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=D;for(let t=0;t<n;t++){let n=e[t],s,c,l=-1,u=0;for(;u<n.length&&(o.lastIndex=u,c=o.exec(n),c!==null);)u=o.lastIndex,o===D?c[1]===`!--`?o=ye:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=O):(Ce.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=O):o=be:o===O?c[0]===`>`?(o=i??D,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?O:c[3]===`"`?Se:xe):o===Se||o===xe?o=O:o===ye||o===be?o=D:(o=O,i=void 0);let ee=o===O&&e[t+1].startsWith(`/>`)?` `:``;a+=o===D?n+_e:l>=0?(r.push(s),n.slice(0,l)+he+n.slice(l)+x+ee):n+x+(l===-2?t:ee)}return[Te(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]},N=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,u]=Ee(t,n);if(this.el=e.createElement(l,r),M.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=M.nextNode())!==null&&c.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith(he)){let t=u[o++],n=i.getAttribute(e).split(x),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?Oe:r[1]===`?`?ke:r[1]===`@`?Ae:I}),i.removeAttribute(e)}else e.startsWith(x)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(Ce.test(i.tagName)){let e=i.textContent.split(x),t=e.length-1;if(t>0){i.textContent=b?b.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],C()),M.nextNode(),c.push({type:2,index:++a});i.append(e[t],C())}}}else if(i.nodeType===8){if(i.data===ge)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(x,e+1))!==-1;)c.push({type:7,index:a}),e+=x.length-1}}a++}}static createElement(e,t){let n=S.createElement(`template`);return n.innerHTML=e,n}};function P(e,t,n=e,r){if(t===A)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=w(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,n,r)),r===void 0?n._$Cl=i:(n._$Co??=[])[r]=i),i!==void 0&&(t=P(e,i._$AS(e,t.values),i,r)),t}var De=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??S).importNode(t,!0);M.currentNode=r;let i=M.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new F(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new je(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=M.nextNode(),a++)}return M.currentNode=S,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},F=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=P(this,e,t),w(e)?e===j||e==null||e===``?(this._$AH!==j&&this._$AR(),this._$AH=j):e!==this._$AH&&e!==A&&this._(e):e._$litType$===void 0?e.nodeType===void 0?ve(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==j&&w(this._$AH)?this._$AA.nextSibling.data=e:this.T(S.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r=typeof n==`number`?this._$AC(e):(n.el===void 0&&(n.el=N.createElement(Te(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new De(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=we.get(e.strings);return t===void 0&&we.set(e.strings,t=new N(e)),t}k(t){T(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(C()),this.O(C()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=pe(e).nextSibling;pe(e).remove(),e=t}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},I=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=j,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=j}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=P(this,e,t,0),a=!w(e)||e!==this._$AH&&e!==A,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=P(this,r[n+o],t,o),s===A&&(s=this._$AH[o]),a||=!w(s)||s!==this._$AH[o],s===j?e=j:e!==j&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},Oe=class extends I{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===j?void 0:e}},ke=class extends I{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==j)}},Ae=class extends I{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=P(this,e,t,0)??j)===A)return;let n=this._$AH,r=e===j&&n!==j||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==j&&(n===j||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH==`function`?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},je=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){P(this,e)}},Me={M:he,P:x,A:ge,C:1,L:Ee,R:De,D:ve,V:P,I:F,H:I,N:ke,U:Ae,B:Oe,F:je},Ne=y.litHtmlPolyfillSupport;Ne?.(N,F),(y.litHtmlVersions??=[]).push(`3.3.3`);var Pe=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new F(t.insertBefore(C(),e),e,void 0,n??{})}return i._$AI(e),i},L=globalThis,R=class extends h{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Pe(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return A}};R._$litElement$=!0,R.finalized=!0,L.litElementHydrateSupport?.({LitElement:R});var Fe=L.litElementPolyfillSupport;Fe?.({LitElement:R}),(L.litElementVersions??=[]).push(`4.2.2`);var Ie=class extends R{render(){return k`<slot></slot>`}connectedCallback(){super.connectedCallback(),this.getAttribute(`aria-hidden`)===`false`?this.removeAttribute(`aria-hidden`):this.setAttribute(`aria-hidden`,`true`)}},Le=c`:host{font-size:var(--md-icon-size, 24px);width:var(--md-icon-size, 24px);height:var(--md-icon-size, 24px);color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--md-icon-font, Material Symbols Outlined);display:inline-flex;font-style:normal;place-items:center;place-content:center;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;flex-shrink:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%}
|
|
3
|
-
`;Le.styleSheet;var z=class extends Ie{};z.styles=[Le],z=e([t(`md-icon`)],z);var Re=Symbol(`attachableController`),ze=new MutationObserver(e=>{for(let t of e)t.target[Re]?.hostConnected()}),Be=class{get htmlFor(){return this.host.getAttribute(`for`)}set htmlFor(e){e===null?this.host.removeAttribute(`for`):this.host.setAttribute(`for`,e)}get control(){return this.host.hasAttribute(`for`)?!this.htmlFor||!this.host.isConnected?null:this.host.getRootNode().querySelector(`#${this.htmlFor}`):this.currentControl||this.host.parentElement}set control(e){e?this.attach(e):this.detach()}constructor(e,t){this.host=e,this.onControlChange=t,this.currentControl=null,e.addController(this),e[Re]=this,ze?.observe(e,{attributeFilter:[`for`]})}attach(e){e!==this.currentControl&&(this.setCurrentControl(e),this.host.removeAttribute(`for`))}detach(){this.setCurrentControl(null),this.host.setAttribute(`for`,``)}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(e){this.onControlChange(this.currentControl,e),this.currentControl=e}},Ve=[`focusin`,`focusout`,`pointerdown`],B=class extends R{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new Be(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute(`aria-hidden`,`true`)}handleEvent(e){if(!e[He]){switch(e.type){default:return;case`focusin`:this.visible=this.control?.matches(`:focus-visible`)??!1;break;case`focusout`:case`pointerdown`:this.visible=!1}e[He]=!0}}onControlChange(e,t){for(let n of Ve)e?.removeEventListener(n,this),t?.addEventListener(n,this)}update(e){e.has(`visible`)&&this.dispatchEvent(new Event(`visibility-changed`)),super.update(e)}};e([g({type:Boolean,reflect:!0})],B.prototype,`visible`,void 0),e([g({type:Boolean,reflect:!0})],B.prototype,`inward`,void 0);var He=Symbol(`handledByFocusRing`),Ue=c`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
|
|
4
|
-
`;Ue.styleSheet;var V=class extends B{};V.styles=[Ue],V=e([t(`md-focus-ring`)],V);var We={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ge=e=>(...t)=>({_$litDirective$:e,values:t}),Ke=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},H=Ge(class extends Ke{constructor(e){if(super(e),e.type!==We.ATTRIBUTE||e.name!==`class`||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return` `+Object.keys(e).filter(t=>e[t]).join(` `)+` `}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(` `).split(/\s/).filter(e=>e!==``)));for(let e in t)t[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(t)}let n=e.element.classList;for(let e of this.st)e in t||(n.remove(e),this.st.delete(e));for(let e in t){let r=!!t[e];r===this.st.has(e)||this.nt?.has(e)||(r?(n.add(e),this.st.add(e)):(n.remove(e),this.st.delete(e)))}return A}}),qe={STANDARD:`cubic-bezier(0.2, 0, 0, 1)`,STANDARD_ACCELERATE:`cubic-bezier(.3,0,1,1)`,STANDARD_DECELERATE:`cubic-bezier(0,0,0,1)`,EMPHASIZED:`cubic-bezier(.3,0,0,1)`,EMPHASIZED_ACCELERATE:`cubic-bezier(.3,0,.8,.15)`,EMPHASIZED_DECELERATE:`cubic-bezier(.05,.7,.1,1)`},Je=450,Ye=225,Xe=.2,Ze=10,Qe=75,$e=.35,et=`::after`,tt=`forwards`,U;(function(e){e[e.INACTIVE=0]=`INACTIVE`,e[e.TOUCH_DELAY=1]=`TOUCH_DELAY`,e[e.HOLDING=2]=`HOLDING`,e[e.WAITING_FOR_CLICK=3]=`WAITING_FOR_CLICK`})(U||={});var nt=[`click`,`contextmenu`,`pointercancel`,`pointerdown`,`pointerenter`,`pointerleave`,`pointerup`],rt=150,it=window.matchMedia(`(forced-colors: active)`),W=class extends R{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize=``,this.rippleScale=``,this.initialSize=0,this.state=U.INACTIVE,this.attachableController=new Be(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(e){this.attachableController.htmlFor=e}get control(){return this.attachableController.control}set control(e){this.attachableController.control=e}attach(e){this.attachableController.attach(e)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute(`aria-hidden`,`true`)}render(){return k`<div class="surface ${H({hovered:this.hovered,pressed:this.pressed})}"></div>`}update(e){e.has(`disabled`)&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(e)}handlePointerenter(e){this.shouldReactToEvent(e)&&(this.hovered=!0)}handlePointerleave(e){this.shouldReactToEvent(e)&&(this.hovered=!1,this.state!==U.INACTIVE&&this.endPressAnimation())}handlePointerup(e){this.shouldReactToEvent(e)&&(this.state===U.HOLDING?this.state=U.WAITING_FOR_CLICK:this.state===U.TOUCH_DELAY&&(this.state=U.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent)))}async handlePointerdown(e){this.shouldReactToEvent(e)&&(this.rippleStartEvent=e,this.isTouch(e)?(this.state=U.TOUCH_DELAY,await new Promise(e=>{setTimeout(e,rt)}),this.state===U.TOUCH_DELAY&&(this.state=U.HOLDING,this.startPressAnimation(e))):(this.state=U.WAITING_FOR_CLICK,this.startPressAnimation(e)))}handleClick(){this.disabled||(this.state===U.WAITING_FOR_CLICK?this.endPressAnimation():this.state===U.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation()))}handlePointercancel(e){this.shouldReactToEvent(e)&&this.endPressAnimation()}handleContextmenu(){this.disabled||this.endPressAnimation()}determineRippleSize(){let{height:e,width:t}=this.getBoundingClientRect(),n=Math.max(e,t),r=Math.max($e*n,Qe),i=this.currentCSSZoom??1,a=Math.floor(n*Xe/i),o=Math.sqrt(t**2+e**2)+Ze;this.initialSize=a;let s=(o+r)/a;this.rippleScale=`${s/i}`,this.rippleSize=`${a}px`}getNormalizedPointerEventCoords(e){let{scrollX:t,scrollY:n}=window,{left:r,top:i}=this.getBoundingClientRect(),a=t+r,o=n+i,{pageX:s,pageY:c}=e,l=this.currentCSSZoom??1;return{x:(s-a)/l,y:(c-o)/l}}getTranslationCoordinates(e){let{height:t,width:n}=this.getBoundingClientRect(),r=this.currentCSSZoom??1,i={x:(n/r-this.initialSize)/2,y:(t/r-this.initialSize)/2},a;return a=e instanceof PointerEvent?this.getNormalizedPointerEventCoords(e):{x:n/r/2,y:t/r/2},a={x:a.x-this.initialSize/2,y:a.y-this.initialSize/2},{startPoint:a,endPoint:i}}startPressAnimation(e){if(!this.mdRoot)return;this.pressed=!0,this.growAnimation?.cancel(),this.determineRippleSize();let{startPoint:t,endPoint:n}=this.getTranslationCoordinates(e),r=`${t.x}px, ${t.y}px`,i=`${n.x}px, ${n.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${r}) scale(1)`,`translate(${i}) scale(${this.rippleScale})`]},{pseudoElement:et,duration:Je,easing:qe.STANDARD,fill:tt})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=U.INACTIVE;let e=this.growAnimation,t=1/0;typeof e?.currentTime==`number`?t=e.currentTime:e?.currentTime&&(t=e.currentTime.to(`ms`).value),t>=Ye?this.pressed=!1:(await new Promise(e=>{setTimeout(e,Ye-t)}),this.growAnimation===e&&(this.pressed=!1))}shouldReactToEvent(e){if(this.disabled||!e.isPrimary||this.rippleStartEvent&&this.rippleStartEvent.pointerId!==e.pointerId)return!1;if(e.type===`pointerenter`||e.type===`pointerleave`)return!this.isTouch(e);let t=e.buttons===1;return this.isTouch(e)||t}isTouch({pointerType:e}){return e===`touch`}async handleEvent(e){if(!it?.matches)switch(e.type){case`click`:this.handleClick();break;case`contextmenu`:this.handleContextmenu();break;case`pointercancel`:this.handlePointercancel(e);break;case`pointerdown`:await this.handlePointerdown(e);break;case`pointerenter`:this.handlePointerenter(e);break;case`pointerleave`:this.handlePointerleave(e);break;case`pointerup`:this.handlePointerup(e)}}onControlChange(e,t){for(let n of nt)e?.removeEventListener(n,this),t?.addEventListener(n,this)}};e([g({type:Boolean,reflect:!0})],W.prototype,`disabled`,void 0),e([_()],W.prototype,`hovered`,void 0),e([_()],W.prototype,`pressed`,void 0),e([fe(`.surface`)],W.prototype,`mdRoot`,void 0);var at=c`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}
|
|
5
|
-
`;at.styleSheet;var G=class extends W{};G.styles=[at],G=e([t(`md-ripple`)],G);var ot=Symbol.for(``),st=e=>{if(e?.r===ot)return e?._$litStatic$},K=(e,...t)=>({_$litStatic$:t.reduce((t,n,r)=>t+(e=>{if(e._$litStatic$!==void 0)return e._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${e}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(n)+e[r+1],e[0]),r:ot}),ct=new Map,lt=(e=>(t,...n)=>{let r=n.length,i,a,o=[],s=[],c,l=0,u=!1;for(;l<r;){for(c=t[l];l<r&&(a=n[l],(i=st(a))!==void 0);)c+=i+t[++l],u=!0;l!==r&&s.push(a),o.push(c),l++}if(l===r&&o.push(t[r]),u){let e=o.join(`$$lit$$`);(t=ct.get(e))===void 0&&(o.raw=o,ct.set(e,t=o)),n=s}return e(t,...n)})(k),ut=`role.ariaAtomic.ariaAutoComplete.ariaBusy.ariaChecked.ariaColCount.ariaColIndex.ariaColSpan.ariaCurrent.ariaDisabled.ariaExpanded.ariaHasPopup.ariaHidden.ariaInvalid.ariaKeyShortcuts.ariaLabel.ariaLevel.ariaLive.ariaModal.ariaMultiLine.ariaMultiSelectable.ariaOrientation.ariaPlaceholder.ariaPosInSet.ariaPressed.ariaReadOnly.ariaRequired.ariaRoleDescription.ariaRowCount.ariaRowIndex.ariaRowSpan.ariaSelected.ariaSetSize.ariaSort.ariaValueMax.ariaValueMin.ariaValueNow.ariaValueText`.split(`.`),dt=ut.map(ft);function q(e){return dt.includes(e)}function ft(e){return e.replace(`aria`,`aria-`).replace(/Elements?/g,``).toLowerCase()}var J=Symbol(`privateIgnoreAttributeChangesFor`);function pt(e){var t;class n extends e{constructor(){super(...arguments),this[t]=new Set}attributeChangedCallback(e,t,n){if(!q(e)){super.attributeChangedCallback(e,t,n);return}if(this[J].has(e))return;this[J].add(e),this.removeAttribute(e),this[J].delete(e);let r=Y(e);n===null?delete this.dataset[r]:this.dataset[r]=n,this.requestUpdate(Y(e),t)}getAttribute(e){return q(e)?super.getAttribute(ht(e)):super.getAttribute(e)}removeAttribute(e){super.removeAttribute(e),q(e)&&(super.removeAttribute(ht(e)),this.requestUpdate())}}return t=J,mt(n),n}function mt(e){for(let t of ut){let n=ft(t),r=ht(n),i=Y(n);e.createProperty(t,{attribute:n,noAccessor:!0}),e.createProperty(Symbol(r),{attribute:r,noAccessor:!0}),Object.defineProperty(e.prototype,t,{configurable:!0,enumerable:!0,get(){return this.dataset[i]??null},set(e){let n=this.dataset[i]??null;e!==n&&(e===null?delete this.dataset[i]:this.dataset[i]=e,this.requestUpdate(t,n))}})}}function ht(e){return`data-${e}`}function Y(e){return e.replace(/-\w/,e=>e[1].toUpperCase())}function gt(e,t=!0){return t&&getComputedStyle(e).getPropertyValue(`direction`).trim()===`rtl`}var _t=Symbol(`dispatchHooks`);function vt(e,t){let n=e[_t];if(!n)throw Error(`'${e.type}' event needs setupDispatchHooks().`);n.addEventListener(`after`,t,{once:!0})}var yt=new WeakMap;function bt(e,...t){let n=yt.get(e);n||(n=new Set,yt.set(e,n));for(let r of t)n.has(r)||(e.addEventListener(r,e=>{let t=new EventTarget;e[_t]=t;let n=new AbortController,i=()=>{n.abort(),t.dispatchEvent(new Event(`after`))},a=e=>function(){e.call(this),i()};e.stopPropagation=a(e.stopPropagation),e.stopImmediatePropagation=a(e.stopImmediatePropagation);let o=e.composedPath(),s;s=e.composed&&e.bubbles?o[o.length-1]:e.bubbles?o[0].getRootNode():o[0],s.addEventListener(r,()=>{i()},{once:!0,signal:n.signal})},{capture:!0}),n.add(r))}var X=Symbol(`internals`),xt=Symbol(`privateInternals`);function St(e){class t extends e{get[X](){return this[xt]||(this[xt]=this.attachInternals()),this[xt]}}return t}var Z=Symbol(`getFormValue`),Ct=Symbol(`getFormState`);function wt(t){class n extends t{get form(){return this[X].form}get labels(){return this[X].labels}get name(){return this.getAttribute(`name`)??``}set name(e){this.setAttribute(`name`,e)}get disabled(){return this.hasAttribute(`disabled`)}set disabled(e){this.toggleAttribute(`disabled`,!!e)}attributeChangedCallback(e,t,n){if(e===`name`||e===`disabled`){let n=e===`disabled`?t!==null:t;this.requestUpdate(e,n)}else super.attributeChangedCallback(e,t,n)}requestUpdate(e,t,n){super.requestUpdate(e,t,n),this[X].setFormValue(this[Z](),this[Ct]())}[Z](){return this.getAttribute(`value`)}[Ct](){return this[Z]()}formDisabledCallback(e){this.disabled=e}}return n.formAssociated=!0,e([g({noAccessor:!0})],n.prototype,`name`,null),e([g({type:Boolean,noAccessor:!0})],n.prototype,`disabled`,null),n}function Tt(t){class n extends t{get name(){return this.getAttribute(`name`)??``}set name(e){this.setAttribute(`name`,e)}constructor(...e){super(...e),this.type=`submit`,this.value=``,bt(this,`click`),this.addEventListener(`click`,async e=>{let t=this.type===`reset`,n=this.type===`submit`,r=this[X],{form:i}=r;i&&(n||t)&&vt(e,()=>{e.defaultPrevented||(t?i.reset():(i.addEventListener(`submit`,e=>{Object.defineProperty(e,"submitter",{configurable:!0,enumerable:!0,get:()=>this})},{capture:!0,once:!0}),r.setFormValue(this.value),i.requestSubmit()))})})}}return e([g()],n.prototype,`type`,void 0),e([g({reflect:!0})],n.prototype,`value`,void 0),n}var Et=pt(Tt(wt(St(R)))),Q=class extends Et{constructor(){super(),this.softDisabled=!1,this.flipIconInRtl=!1,this.href=``,this.download=``,this.target=``,this.ariaLabelSelected=``,this.toggle=!1,this.selected=!1,this.flipIcon=gt(this,this.flipIconInRtl),bt(this,`click`),this.addEventListener(`click`,e=>{if(this.softDisabled||this.disabled&&this.href){e.stopImmediatePropagation(),e.preventDefault();return}let t=this.selected;vt(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?K`div`:K`button`,{ariaLabel:t,ariaHasPopup:n,ariaExpanded:r}=this,i=t&&this.ariaLabelSelected,a=this.toggle?this.selected:j,o=j;return this.href||(o=i&&this.selected?this.ariaLabelSelected:t),lt`<${e}
|
|
6
|
-
class="icon-button ${H(this.getRenderClasses())}"
|
|
7
|
-
id="button"
|
|
8
|
-
aria-label="${o||j}"
|
|
9
|
-
aria-haspopup="${!this.href&&n||j}"
|
|
10
|
-
aria-expanded="${!this.href&&r||j}"
|
|
11
|
-
aria-pressed="${a}"
|
|
12
|
-
aria-disabled=${!this.href&&this.softDisabled||j}
|
|
13
|
-
?disabled="${!this.href&&this.disabled}">
|
|
14
|
-
${this.renderFocusRing()}
|
|
15
|
-
${this.renderRipple()}
|
|
16
|
-
${this.selected?j:this.renderIcon()}
|
|
17
|
-
${this.selected?this.renderSelectedIcon():j}
|
|
18
|
-
${this.href?this.renderLink():this.renderTouchTarget()}
|
|
19
|
-
</${e}>`}renderLink(){let{ariaLabel:e}=this;return k`
|
|
20
|
-
<a
|
|
21
|
-
class="link"
|
|
22
|
-
id="link"
|
|
23
|
-
href="${this.href}"
|
|
24
|
-
download="${this.download||j}"
|
|
25
|
-
target="${this.target||j}"
|
|
26
|
-
aria-label="${e||j}">
|
|
27
|
-
${this.renderTouchTarget()}
|
|
28
|
-
</a>
|
|
29
|
-
`}getRenderClasses(){return{"flip-icon":this.flipIcon,selected:this.toggle&&this.selected}}renderIcon(){return k`<span class="icon"><slot></slot></span>`}renderSelectedIcon(){return k`<span class="icon icon--selected"
|
|
30
|
-
><slot name="selected"><slot></slot></slot
|
|
31
|
-
></span>`}renderTouchTarget(){return k`<span class="touch"></span>`}renderFocusRing(){return k`<md-focus-ring
|
|
32
|
-
part="focus-ring"
|
|
33
|
-
for=${this.href?`link`:`button`}></md-focus-ring>`}renderRipple(){let e=!this.href&&(this.disabled||this.softDisabled);return k`<md-ripple
|
|
34
|
-
for=${this.href?`link`:j}
|
|
35
|
-
?disabled="${e}"></md-ripple>`}connectedCallback(){this.flipIcon=gt(this,this.flipIconInRtl),super.connectedCallback()}};Q.shadowRootOptions={mode:`open`,delegatesFocus:!0},e([g({type:Boolean,attribute:`soft-disabled`,reflect:!0})],Q.prototype,`softDisabled`,void 0),e([g({type:Boolean,attribute:`flip-icon-in-rtl`})],Q.prototype,`flipIconInRtl`,void 0),e([g()],Q.prototype,`href`,void 0),e([g()],Q.prototype,`download`,void 0),e([g()],Q.prototype,`target`,void 0),e([g({attribute:`aria-label-selected`})],Q.prototype,`ariaLabelSelected`,void 0),e([g({type:Boolean})],Q.prototype,`toggle`,void 0),e([g({type:Boolean,reflect:!0})],Q.prototype,`selected`,void 0),e([_()],Q.prototype,`flipIcon`,void 0);var Dt=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}}
|
|
36
|
-
`;Dt.styleSheet;var Ot=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)}
|
|
37
|
-
`;Ot.styleSheet;var $=class extends Q{getRenderClasses(){return{...super.getRenderClasses(),standard:!0}}};$.styles=[Dt,Ot],$=e([t(`md-icon-button`)],$);export{g as C,e as E,_ as S,t as T,A as _,St as a,fe as b,lt as c,Ge as d,Ke as f,Pe as g,j as h,X as i,qe as l,R as m,Z as n,pt as o,We as p,wt as r,K as s,Tt as t,H as u,k as v,c as w,v as x,Me as y};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./Dksil5Gu.js";import{B as t,H as n,O as r,V as i}from"./h7UQ89-l.js";var a=`light`,o=[{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 s(e){return o.find(t=>t.value===e)?.value??null}var c=`sr-theme`,l=class{read(){try{return s(localStorage.getItem(c))}catch{return null}}write(e){document.documentElement.dataset.theme=e;try{localStorage.setItem(c,e)}catch{}}},u=class{markersUrl;speechUrl;constructor(e,t){this.markersUrl=e,this.speechUrl=t}async addMarker(e){let t=await fetch(this.markersUrl,{method:`POST`,headers:{accept:`application/json`,"content-type":`application/json`},body:JSON.stringify({label:e})});if(!t.ok)throw Error(await d(t))}async clear(e){let t=await fetch(`${this.speechUrl}?session=${encodeURIComponent(String(e))}`,{method:`DELETE`,headers:{accept:`application/json`}});if(!t.ok)throw Error(await d(t))}};async function d(e){let t=await e.json().catch(()=>void 0);if(typeof t==`object`&&t&&`message`in t){let{message:e}=t;if(typeof e==`string`)return e}return`The request answered ${e.status}`}var f={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function p(e){return e?{lang:e?.lang??void 0,message:e?.message,abortEarly:e?.abortEarly??void 0,abortPipeEarly:e?.abortPipeEarly??void 0}:f}function m(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 h(e,t,n,r,i){let a=i&&`input`in i?i.input:n.value,o=i?.expected??e.expects??null,s=i?.received??m(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 ee(e,t){let n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??`never`}function g(e){return e[`~standard`]={version:1,vendor:`valibot`,validate:t=>e[`~run`]({value:t},p())},e}function te(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 ne=/^\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 _(e,t){return{kind:`validation`,type:`check`,reference:_,async:!1,expects:null,requirement:e,message:t,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&h(this,`input`,e,t),e}}}function v(e){return{kind:`metadata`,type:`description`,reference:v,description:e}}function y(e){return{kind:`metadata`,type:`examples`,reference:y,examples:e}}function b(e){return{kind:`validation`,type:`integer`,reference:b,async:!1,expects:null,requirement:Number.isInteger,message:e,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&h(this,`integer`,e,t),e}}}function x(e){return{kind:`validation`,type:`iso_timestamp`,reference:x,async:!1,expects:null,requirement:ne,message:e,"~run"(e,t){return e.typed&&!this.requirement.test(e.value)&&h(this,`timestamp`,e,t),e}}}function re(e,t){return{kind:`validation`,type:`max_value`,reference:re,async:!1,expects:`<=${e instanceof Date?e.toJSON():m(e)}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!(e.value<=this.requirement)&&h(this,`value`,e,t,{received:e.value instanceof Date?e.value.toJSON():m(e.value)}),e}}}function S(e,t){return{kind:`validation`,type:`min_value`,reference:S,async:!1,expects:`>=${e instanceof Date?e.toJSON():m(e)}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!(e.value>=this.requirement)&&h(this,`value`,e,t,{received:e.value instanceof Date?e.value.toJSON():m(e.value)}),e}}}function C(e,t){return{kind:`validation`,type:`regex`,reference:C,async:!1,expects:`${e}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!this.requirement.test(e.value)&&h(this,`format`,e,t),e}}}function w(e,t,n){return typeof e.fallback==`function`?e.fallback(t,n):e.fallback}function T(e,t,n){return typeof e.default==`function`?e.default(t,n):e.default}function E(e,t){return g({kind:`schema`,type:`array`,reference:E,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 h(this,`type`,e,t);return e}})}function D(e){return g({kind:`schema`,type:`boolean`,reference:D,expects:`boolean`,async:!1,message:e,"~run"(e,t){return typeof e.value==`boolean`?e.typed=!0:h(this,`type`,e,t),e}})}function O(e,t){return g({kind:`schema`,type:`nullable`,reference:O,expects:`(${e.expects} | null)`,async:!1,wrapped:e,default:t,"~run"(e,t){return e.value===null&&(this.default!==void 0&&(e.value=T(this,e,t)),e.value===null)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}})}function k(e){return g({kind:`schema`,type:`number`,reference:k,expects:`number`,async:!1,message:e,"~run"(e,t){return typeof e.value==`number`&&!isNaN(e.value)?e.typed=!0:h(this,`type`,e,t),e}})}function A(e,t){return g({kind:`schema`,type:`object`,reference:A,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]:T(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]=w(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(h(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 h(this,`type`,e,t);return e}})}function j(e,t){return g({kind:`schema`,type:`optional`,reference:j,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,"~run"(e,t){return e.value===void 0&&(this.default!==void 0&&(e.value=T(this,e,t)),e.value===void 0)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}})}function M(e,t){return g({kind:`schema`,type:`picklist`,reference:M,expects:ee(e.map(m),`|`),async:!1,options:e,message:t,"~run"(e,t){return this.options.includes(e.value)?e.typed=!0:h(this,`type`,e,t),e}})}function N(e,t){return g({kind:`schema`,type:`strict_object`,reference:N,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]:T(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]=w(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(h(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)){h(this,`key`,e,t,{input:r,expected:`never`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]});break}}}else h(this,`type`,e,t);return e}})}function P(e){return g({kind:`schema`,type:`string`,reference:P,expects:`string`,async:!1,message:e,"~run"(e,t){return typeof e.value==`string`?e.typed=!0:h(this,`type`,e,t),e}})}function F(...e){return g({...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 ie(e,t,n){let r=e[`~run`]({value:t},p(n));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}var I={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}},L={port:{min:0,max:65535},maxLineBytes:{min:1024,max:16777216},maxEntries:{min:1,max:1e6}},ae=/^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$/,oe=/^(\*|[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?)$/,se=(e,t)=>{let n=e.trim();return n!==``&&n.length<=t};function ce(e){try{return!new TextDecoder(e).encoding.startsWith(`utf-16`)}catch{return!1}}var le=[`error`,`warn`,`info`,`debug`],R=({min:e,max:t})=>F(k(),b(),S(e),re(t)),z=R(L.port),B=R({min:1,max:L.port.max}),V=F(P(),C(/\S/),v(`Not empty or blank.`)),ue=F(E(F(P(),C(oe))),v('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.')),de=A({enabled:D(),port:B,version:F(O(F(P(),C(ae))),v("`null` = bundled version. Otherwise an exact version like `1.65.0`."))}),H={tcp:{host:V,port:z,encoding:F(P(),_(ce),v("TextDecoder label of the socket voice's code page. Not `utf-16*`: lines are split on bytes.")),maxLineBytes:R(L.maxLineBytes)},http:{host:V,port:z,allowedHosts:ue},buffer:{maxEntries:R(L.maxEntries)},log:{level:M(le),file:F(O(V),v("Bridge log file, `null` = default path.")),consoleSpeech:F(D(),v(`Also write the speech text to the console.`))}};H.tcp,H.http,H.buffer,H.log;var U=e=>N(Object.fromEntries(Object.entries(e).map(([e,t])=>[e,j(t)])));U(de.entries),U({enabled:D(),port:B}),U(H.tcp),U(H.http),U(H.buffer),U(H.log);var{coordinate:W,delayMs:G,maxKeys:fe}=I.input;-W,-W,`${fe}`,G.max,`${G.default}`;var K=e=>F(k(),b(),S(e)),q=F(P(),x()),J=e=>F(P(),_(e=>se(e,I.sessionLabelLength)),v(`${e} Trimmed, must not be empty, at most ${I.sessionLabelLength} characters.`)),pe={id:F(K(1),v(`Increasing, restarts at 1 with the bridge.`)),name:P(),run:F(O(P()),v(`Optional label that groups sessions.`)),client:F(O(P()),v("Who started it: the `X-SR-Speech-Client` header, `null` if it wasn't sent. Added in API 1.10.")),startedAt:q,endedAt:F(O(q),v("`null` while the session is current.")),startSeq:F(K(0),v("The last `seq` given out before the session started: `since=startSeq` reads the session from its start. Added in API 1.9.")),firstSeq:F(O(K(1)),v("First entry still in the buffer, `null` if none.")),lastSeq:F(O(K(1)),v("Last entry still in the buffer, `null` if none.")),entries:F(K(0),v(`Entries of this session still in the buffer.`))},Y=F(A(pe),v(`A session (docs/usage/speech-capture.md#sessions). Added in API 1.3.`),y([{id:7,name:`form › submit button is announced`,run:`nightly-42`,client:`ci-runner pid 4242`,startedAt:`2026-11-12T09:31:04.120Z`,endedAt:null,startSeq:339,firstSeq:340,lastSeq:342,entries:3}]));J(`For example the test title.`),J(`Optional label that groups sessions, for example one per test run.`);var me=F(A({...pe,replaced:F(O(Y),v("The session this start ended if another client had started it, `null` otherwise. Added in API 1.10."))}),v("`POST /sessions`: the new session, plus `replaced`.")),he=F(A({sessions:E(Y),currentId:O(K(1)),outsideEntries:F(K(0),v("Entries in the buffer that were recorded outside any session (`session=none`). Added in API 1.15."))}),v("`GET /sessions`: the current session and the ended ones with entries in the buffer, newest first, and how many entries lie outside any session.")),X=e=>F(k(),b(),S(e)),ge=F(P(),x()),_e=F(A({seq:F(X(1),v(`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:M([`speech`,`marker`]),text:P(),receivedAt:F(ge,v(`When the bridge received the line (UTC).`)),source:F(M([`tcp`,`api`]),v("`tcp` for speech, `api` for markers.")),voice:F(O(P()),v("Header (`voice=<id>`) of the sending voice, `null` if not set or for markers.")),connectionId:F(O(X(1)),v("TCP connection that delivered it, `null` for markers.")),sessionId:F(j(O(X(1))),v("The session that was current, `null` outside any session. Added in API 1.3."))}),v(`One recorded speech line or a marker.`),y([{seq:42,kind:`speech`,text:`Submit, button`,receivedAt:`2026-11-07T14:03:12.345Z`,source:`tcp`,voice:`ssc5000`,connectionId:3,sessionId:7}])),ve=F(A({entries:E(_e),truncated:F(D(),v("`true` when entries after `since` were dropped because the buffer was full.")),hasMore:F(D(),v("`true` when more entries follow: ask again with the last entry's `seq` as `since`."))}),v("`GET /speech`: a page of entries after `since`, oldest first."));I.wait.seen,`${I.wait.seen}`,`${I.markerLength}`;var Z=e=>F(k(),b(),S(e)),ye=F(P(),x()),be=[`starting`,`ready`,`stopping`],xe=F(A({state:F(M([`stopped`,`starting`,`running`,`crashed`,`failed`]),v("`starting` includes the install. `crashed`: it exited and restarts after a delay. `failed`: 5 crashes in a row; restart the bridge (or change the service's settings).")),version:F(P(),v(`The version that runs (configured or bundled).`),y([`1.65.0`])),port:Z(0),restarts:F(Z(0),v(`Restarts after crashes since the service was last started (bridge start or config change).`)),exitCode:F(O(F(k(),b())),v("Exit code of the last unexpected exit. `null` if none, or killed by a signal."))}),v(`A child service (docs/usage/operations.md#child-service-crashes).`)),Se=A({id:Z(1),voice:O(P()),connectedAt:ye}),Ce=F(A({bridge:A({version:F(P(),v(`Package version of the bridge.`),y([`0.3.0`])),apiVersion:F(P(),v("`<major>.<minor>` of this API."),y([`1.13`])),state:M(be),startedAt:F(ye,v(`When this bridge run started. Added in API 1.4.`))}),tcp:A({listening:D(),host:P(),port:Z(0),encoding:F(P(),v(`Code page used to decode the socket voice.`)),connections:F(E(Se),v(`Open connections, oldest first.`))}),buffer:A({size:Z(0),maxEntries:Z(1),firstSeq:O(Z(1)),lastSeq:O(Z(1))}),playwright:xe,mcp:xe,session:F(A({current:O(Y),count:F(Z(0),v("Number of sessions `GET /sessions` lists."))}),v(`Added in API 1.3.`))}),v("`GET /status`. `playwright` since API 1.1, `mcp` since 1.2, `session` since 1.3."));function Q(e,t){let n=ie(e,t);if(n.success)return{ok:!0,value:n.output};let[r]=n.issues;return{ok:!1,field:te(r)??`(body)`,message:r.message}}var we=class{url;constructor(e){this.url=e}list(){return this.send(`GET`,this.url,void 0,he)}start(e,t){return this.send(`POST`,this.url,{name:e,run:t},me)}async end(){await this.send(`POST`,`${this.url}/end`,void 0,void 0)}async delete(e){await this.send(`DELETE`,`${this.url}/${e}`,void 0,void 0)}async send(e,t,n,r){let i=await fetch(t,{method:e,headers:{accept:`application/json`,...n===void 0?{}:{"content-type":`application/json`}},body:n===void 0?void 0:JSON.stringify(n)});if(!i.ok)throw Error(await Te(i));if(r===void 0)return;let a=Q(r,await i.json());if(!a.ok)throw Error(`Unexpected answer at ${a.field}: ${a.message}`);return a.value}};async function Te(e){let t=await e.json().catch(()=>void 0);if(typeof t==`object`&&t&&`message`in t){let{message:e}=t;if(typeof e==`string`)return e}return`The request answered ${e.status}`}var Ee=1e3,De=class{streamUrl;speechUrl;constructor(e,t){this.streamUrl=e,this.speechUrl=t}open(e,t,n){return n.onState(`connecting`),t?this.follow(e,n):this.read(e,n)}follow(e,t){let n=new EventSource(`${this.streamUrl}?session=${encodeURIComponent(String(e))}&since=0`);return n.onopen=()=>t.onState(`live`),n.onerror=()=>t.onState(`reconnecting`),n.addEventListener(`entry`,e=>{let n;try{n=JSON.parse(e.data)}catch{return}let r=Q(_e,n);r.ok&&t.onEntry(r.value)}),n.addEventListener(`clear`,()=>t.onClear()),()=>n.close()}read(e,t){let n=new AbortController;return(async()=>{let r=0;for(;;){let i=new URLSearchParams({session:String(e),since:String(r),limit:String(Ee)}),a=await fetch(`${this.speechUrl}?${i}`,{headers:{accept:`application/json`},signal:n.signal});if(!a.ok)throw Error(`The request answered ${a.status}`);let o=Q(ve,await a.json());if(!o.ok)throw Error(`Unexpected answer at ${o.field}`);let{entries:s,hasMore:c}=o.value;t.onEntries(s);let l=s.at(-1);if(!c||l===void 0)return;r=l.seq}})().then(()=>t.onState(`ended`),()=>{n.signal.aborted||t.onState(`failed`)}),()=>n.abort()}},Oe=class{url;constructor(e){this.url=e}async fetch(){let e=await fetch(this.url,{headers:{accept:`application/json`}});if(!e.ok)throw Error(`The status request answered ${e.status}`);let t=Q(Ce,await e.json());if(!t.ok)throw Error(`Unexpected status at ${t.field}: ${t.message}`);return t.value}};function ke(e){return e===`1`||e!==`0`&&null}function Ae(e){return e?`1`:`0`}var je=`sr-sessions-collapsed`,Me=class{read(){try{return ke(localStorage.getItem(je))}catch{return null}}write(e){try{localStorage.setItem(je,Ae(e))}catch{}}};function Ne(e){let t=n(!0);return{get collapsed(){return r(t)},init(){i(t,e.read()??!1,!0)},toggle(){i(t,!r(t)),e.write(r(t))}}}var Pe=3e3;function Fe(e){let a=n(t([])),o=n(null),s=n(0),c=n(!0),l=n(!1),u=n(t(Date.now())),d=null;function f(e){i(a,e.sessions,!0),i(o,e.currentId,!0),i(s,e.outsideEntries,!0),i(u,Date.now(),!0),i(l,!0)}function p(){return d||(d=e.list().then(e=>{f(e),i(c,!0)}).catch(()=>{i(c,!1)}).finally(()=>{d=null}),d)}async function m(){await d,await p()}return{get sessions(){return r(a)},get currentId(){return r(o)},get outsideEntries(){return r(s)},get loaded(){return r(l)},get reachable(){return r(c)},get now(){return r(u)},init(e){e&&r(a).length===0&&f(e),p();let t=setInterval(()=>{r(o)!==null&&i(u,Date.now(),!0)},1e3),n=setInterval(()=>void p(),Pe);return()=>{clearInterval(t),clearInterval(n)}},refresh(){return m()},async start(t,n){let r=await e.start(t,n);return await m(),r},async end(){await e.end(),await m()},async delete(t){await e.delete(t),await m()}}}var Ie=5e3;function Le(e,t){return t===null?e===`none`:e===t}function Re(e,t){return $(e,t)}function ze(e,t){return e!==`none`&&e!==t}function $(e,t){return e===`none`||e===t}function Be(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 Ve(e,t){if(e===`none`)return`Outside sessions`;let n=t.find(t=>t.id===e);return n===void 0?`#${e}`:`#${n.id} ${n.name}`}function He(e,t){let a=n([]),o=n(`connecting`),s=null;function c(){s?.(),s=null}function l(e){let t=r(a).at(-1)?.seq??0,n=[];for(let r of e)r.seq<=t||(n.push(r),t=r.seq);if(n.length===0)return;let o=[...r(a),...n];i(a,o.length>5e3?o.slice(o.length-Ie):o)}return{get entries(){return r(a)},get connection(){return r(o)},open(t,n){return c(),i(a,[]),i(o,`connecting`),s=e.open(t,n,{onEntry:e=>l([e]),onEntries:l,onClear(){i(a,[])},onState(e){i(o,e,!0)}}),c},clear(e){return t.clear(e)},addMarker(e){return t.addMarker(e)}}}function Ue(e){let t=n(null),a=n(!0),o=n(!1),s=null;function c(){return s||(i(o,!0),s=e.fetch().then(e=>{i(t,e,!0),i(a,!0)}).catch(()=>{i(a,!1)}).finally(()=>{i(o,!1),s=null}),s)}return{get status(){return r(t)},get reachable(){return r(a)},get loading(){return r(o)},init(e){e&&r(t)===null&&i(t,e,!0),c()},retry(){return c()}}}function We(e){let o=n(t(a));return{get current(){return r(o)},init(){i(o,e.read()??`light`,!0)},set(t){i(o,t,!0),e.write(t)}}}var Ge=We(new l),Ke=Ue(new Oe(e(`/api/status`))),qe=Fe(new we(e(`/api/sessions`))),Je=He(new De(e(`/api/speech/stream`),e(`/api/speech`)),new u(e(`/api/markers`),e(`/api/speech`))),Ye=Ne(new Me);export{Ge as a,ze as c,Ve as d,I as f,Ke as i,Be as l,qe as n,Le as o,o as p,Je as r,Re as s,Ye as t,$ as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CJdYHfX8.js","../chunks/h7UQ89-l.js","../chunks/Dksil5Gu.js","./payload.DSmR2FwN.js","../chunks/vjU7Kh7P.js","../chunks/C67ohLw_.js","../chunks/DnL0kOQY.js","../chunks/CEzmqEHD.js","../assets/0.CnPCLsGJ.css","../nodes/1.jZ-iBVjE.js","../nodes/2.CKUmeq5l.js","../chunks/CVUOwNb5.js","../assets/2.IKhva0W0.css","../nodes/3.D74ClOwr.js","../assets/3.BKNNVeb3.css","../nodes/4.DY8qq4Io.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{t as e}from"../chunks/DclECHGd.js";var t={},n=[()=>e(()=>import(`../nodes/0.CJdYHfX8.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>e(()=>import(`../nodes/1.jZ-iBVjE.js`),__vite__mapDeps([9,1,5,2,3,6]),import.meta.url),()=>e(()=>import(`../nodes/2.CKUmeq5l.js`),__vite__mapDeps([10,1,2,3,11,5,4,6,7,12]),import.meta.url),()=>e(()=>import(`../nodes/3.D74ClOwr.js`),__vite__mapDeps([13,1,4,2,3,14]),import.meta.url),()=>e(()=>import(`../nodes/4.DY8qq4Io.js`),__vite__mapDeps([15,1]),import.meta.url)],r=[0],i={"/":[-3],"/settings":[3],"/setup":[4]},a={handleError:(({kind:e,error:t})=>{e===`unknown`&&console.error(t)}),reroute:(()=>{}),transport:{}},o=Object.fromEntries(Object.entries(a.transport).map(([e,t])=>[e,t.decode])),s=Object.fromEntries(Object.entries(a.transport).map(([e,t])=>[e,t.encode])),c=!1,l=(e,t)=>o[e](t),u=()=>e(()=>import(`../chunks/Bjy-W4x2.js`).then(e=>e.default),[],import.meta.url);export{l as decode,o as decoders,i as dictionary,s as encoders,u as get_error_template,c as hash,a as hooks,t as matchers,n as nodes,r as server_loads};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|