@screenreader-speech-capture/bridge 0.1.0 → 0.2.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 +255 -27
- package/dist/ui/adapter-node.js +1 -1
- package/dist/ui/client/ui/_app/immutable/assets/{4.DyY1vjRV.css → 4.DEk4yqpA.css} +1 -1
- package/dist/ui/client/ui/_app/immutable/assets/4.DEk4yqpA.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/4.DEk4yqpA.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{Cc902J0D.js → Bq3k_s8n.js} +1 -1
- package/dist/ui/client/ui/_app/immutable/chunks/Bq3k_s8n.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Bq3k_s8n.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{D9JU-e3z.js → CEGGem4o.js} +1 -1
- package/dist/ui/client/ui/_app/immutable/chunks/CEGGem4o.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/CEGGem4o.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{ux9AxWa3.js → Cwz551Q0.js} +4 -3
- package/dist/ui/client/ui/_app/immutable/chunks/Cwz551Q0.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Cwz551Q0.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{Roub4aju.js → DJvJc_zO.js} +1 -1
- package/dist/ui/client/ui/_app/immutable/chunks/DJvJc_zO.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DJvJc_zO.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{C7D7xLuA.js → DU8ibkb0.js} +1 -1
- package/dist/ui/client/ui/_app/immutable/chunks/DU8ibkb0.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DU8ibkb0.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{BrPqgVT6.js → Dk73DTz3.js} +1 -1
- package/dist/ui/client/ui/_app/immutable/chunks/Dk73DTz3.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Dk73DTz3.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/{KD5R77Wj.js → DoG5cwE3.js} +1 -1
- package/dist/ui/client/ui/_app/immutable/chunks/DoG5cwE3.js.br +3 -0
- package/dist/ui/client/ui/_app/immutable/chunks/DoG5cwE3.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/hhZsYtkz.js +3 -0
- package/dist/ui/client/ui/_app/immutable/chunks/hhZsYtkz.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/hhZsYtkz.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.Bic9wlww.js +2 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.Bic9wlww.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.Bic9wlww.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.IqK6bsxB.js +1 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.IqK6bsxB.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.IqK6bsxB.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/{3.CywuMQ0y.js → 3.DYZ3H5TS.js} +1 -1
- package/dist/ui/client/ui/_app/immutable/nodes/3.DYZ3H5TS.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.DYZ3H5TS.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.Lwlmq1AY.js +180 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.Lwlmq1AY.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.Lwlmq1AY.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/{5.xWNFTFjr.js → 5.rBMVkFpN.js} +5 -5
- package/dist/ui/client/ui/_app/immutable/nodes/5.rBMVkFpN.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/5.rBMVkFpN.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.nui9awM2.js +6 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.nui9awM2.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.nui9awM2.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 +18 -29
- package/dist/ui/server/_app/immutable/assets/{_page.DyY1vjRV.css → _page.DEk4yqpA.css} +1 -1
- package/dist/ui/server/chunks/composition.js +52 -0
- package/dist/ui/server/chunks/composition.js.map +1 -1
- package/dist/ui/server/chunks/instance.js +3 -3
- package/dist/ui/server/chunks/internal.js +1 -1
- package/dist/ui/server/chunks/outlined-button.js +116 -0
- package/dist/ui/server/chunks/outlined-button.js.map +1 -0
- package/dist/ui/server/entries/pages/_layout.svelte.js +1 -2
- package/dist/ui/server/entries/pages/_layout.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/_page.svelte.js +0 -1
- package/dist/ui/server/entries/pages/_page.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/settings/_page.svelte.js +139 -13
- package/dist/ui/server/entries/pages/settings/_page.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/setup/_page.svelte.js +2 -3
- package/dist/ui/server/entries/pages/setup/_page.svelte.js.map +1 -1
- package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js +14 -9
- package/dist/ui/server/entries/pages/setup/instructions/_page.svelte.js.map +1 -1
- package/dist/ui/server/manifest-full.js +1 -1
- package/dist/ui/server/manifest.js +1 -1
- package/dist/ui/server/nodes/0.js +1 -1
- package/dist/ui/server/nodes/3.js +1 -1
- package/dist/ui/server/nodes/4.js +2 -2
- package/dist/ui/server/nodes/5.js +1 -1
- package/dist/ui/server/nodes/6.js +1 -1
- package/dist/ui/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/ui/client/ui/_app/immutable/assets/4.DyY1vjRV.css.br +0 -0
- package/dist/ui/client/ui/_app/immutable/assets/4.DyY1vjRV.css.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BfHif6xP.js +0 -2
- package/dist/ui/client/ui/_app/immutable/chunks/BfHif6xP.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BfHif6xP.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BrPqgVT6.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/BrPqgVT6.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/C7D7xLuA.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/C7D7xLuA.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Cc902J0D.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Cc902J0D.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/D9JU-e3z.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/D9JU-e3z.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/KD5R77Wj.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/KD5R77Wj.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/PzCUpBms.js +0 -3
- package/dist/ui/client/ui/_app/immutable/chunks/PzCUpBms.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/PzCUpBms.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Roub4aju.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/Roub4aju.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/ux9AxWa3.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/chunks/ux9AxWa3.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.DM2PRoLw.js +0 -2
- package/dist/ui/client/ui/_app/immutable/entry/app.DM2PRoLw.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/entry/app.DM2PRoLw.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.fKLM0nQo.js +0 -1
- package/dist/ui/client/ui/_app/immutable/nodes/0.fKLM0nQo.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/0.fKLM0nQo.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.CywuMQ0y.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/3.CywuMQ0y.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.BYvsTY13.js +0 -160
- package/dist/ui/client/ui/_app/immutable/nodes/4.BYvsTY13.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/4.BYvsTY13.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/5.xWNFTFjr.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/5.xWNFTFjr.js.gz +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.Dnf8S10l.js +0 -6
- package/dist/ui/client/ui/_app/immutable/nodes/6.Dnf8S10l.js.br +0 -0
- package/dist/ui/client/ui/_app/immutable/nodes/6.Dnf8S10l.js.gz +0 -0
- package/dist/ui/server/chunks/filled-button.js +0 -116
- package/dist/ui/server/chunks/filled-button.js.map +0 -1
- package/dist/ui/server/chunks/icon.js +0 -49
- package/dist/ui/server/chunks/icon.js.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import{_ as e,a as t,f as n,g as r,h as i,i as a,l as o,m as s,n as c,o as l,p as u,s as d,t as f,u as p}from"./Dvxhfd7j.js";import{$ as m,Q as h,at as ee,ct as g,dt as te,ft as ne,ht as re,lt as _,m as ie,nt as ae,o as oe,p as se,s as v,t as ce,tt as le,ut as y}from"./0FroJ-XN.js";import"./DHsTyp2W.js";function b(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 ue=e=>(t,n)=>{n===void 0?customElements.define(e,t):n.addInitializer(()=>{customElements.define(e,t)})},de=globalThis,fe=de.ShadowRoot&&(de.ShadyCSS===void 0||de.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,pe=Symbol(),me=new WeakMap,he=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==pe)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(fe&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=me.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&me.set(t,e))}return e}toString(){return this.cssText}},ge=e=>new he(typeof e==`string`?e:e+``,void 0,pe),_e=(e,...t)=>new he(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,pe),ve=(e,t)=>{if(fe)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of t){let t=document.createElement(`style`),r=de.litNonce;r!==void 0&&t.setAttribute(`nonce`,r),t.textContent=n.cssText,e.appendChild(t)}},ye=fe?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return ge(t)})(e):e,{is:be,defineProperty:xe,getOwnPropertyDescriptor:Se,getOwnPropertyNames:Ce,getOwnPropertySymbols:we,getPrototypeOf:Te}=Object,Ee=globalThis,De=Ee.trustedTypes,Oe=De?De.emptyScript:``,ke=Ee.reactiveElementPolyfillSupport,x=(e,t)=>e,Ae={toAttribute(e,t){switch(t){case Boolean:e=e?Oe: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}},je=(e,t)=>!be(e,t),Me={attribute:!0,type:String,converter:Ae,reflect:!1,useDefault:!1,hasChanged:je};Symbol.metadata??=Symbol(`metadata`),Ee.litPropertyMetadata??=new WeakMap;var S=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Me){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&xe(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=Se(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let a=r?.call(this);i?.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Me}static _$Ei(){if(this.hasOwnProperty(x(`elementProperties`)))return;let e=Te(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(x(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x(`properties`))){let e=this.properties,t=[...Ce(e),...we(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(ye(e))}else e!==void 0&&t.push(ye(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 ve(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?Ae: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?Ae: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??je)(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){}};S.elementStyles=[],S.shadowRootOptions={mode:`open`},S[x(`elementProperties`)]=new Map,S[x(`finalized`)]=new Map,ke?.({ReactiveElement:S}),(Ee.reactiveElementVersions??=[]).push(`2.1.2`);var Ne={attribute:!0,type:String,converter:Ae,reflect:!1,hasChanged:je},Pe=(e=Ne,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 C(e){return(t,n)=>typeof n==`object`?Pe(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 Fe(e){return C({...e,state:!0,attribute:!1})}var Ie=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&typeof t!=`object`&&Object.defineProperty(e,t,n),n);function Le(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 Ie(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 Ie(n,r,{get(){return a(this)}})}}var Re=globalThis,ze=e=>e,Be=Re.trustedTypes,Ve=Be?Be.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,He=`$lit$`,w=`lit$${Math.random().toFixed(9).slice(2)}$`,Ue=`?`+w,We=`<${Ue}>`,T=document,E=()=>T.createComment(``),D=e=>e===null||typeof e!=`object`&&typeof e!=`function`,Ge=Array.isArray,Ke=e=>Ge(e)||typeof e?.[Symbol.iterator]==`function`,qe=`[
|
|
2
|
-
\f\r]`,O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Je=/-->/g,Ye=/>/g,k=RegExp(`>|${qe}(?:([^\\s"'>=/]+)(${qe}*=${qe}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),Xe=/'/g,Ze=/"/g,Qe=/^(?:script|style|textarea|title)$/i,$e=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),et=$e(1),tt=$e(2),nt=$e(3),A=Symbol.for(`lit-noChange`),j=Symbol.for(`lit-nothing`),rt=new WeakMap,M=T.createTreeWalker(T,129);function it(e,t){if(!Ge(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return Ve===void 0?t:Ve.createHTML(t)}var at=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=O;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===O?c[1]===`!--`?o=Je:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=k):(Qe.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=k):o=Ye:o===k?c[0]===`>`?(o=i??O,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?k:c[3]===`"`?Ze:Xe):o===Ze||o===Xe?o=k:o===Je||o===Ye?o=O:(o=k,i=void 0);let d=o===k&&e[t+1].startsWith(`/>`)?` `:``;a+=o===O?n+We:l>=0?(r.push(s),n.slice(0,l)+He+n.slice(l)+w+d):n+w+(l===-2?t:d)}return[it(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]},ot=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]=at(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(w),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?lt:r[1]===`?`?ut:r[1]===`@`?dt:P}),i.removeAttribute(e)}else e.startsWith(w)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(Qe.test(i.tagName)){let e=i.textContent.split(w),t=e.length-1;if(t>0){i.textContent=Be?Be.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],E()),M.nextNode(),c.push({type:2,index:++a});i.append(e[t],E())}}}else if(i.nodeType===8){if(i.data===Ue)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(w,e+1))!==-1;)c.push({type:7,index:a}),e+=w.length-1}}a++}}static createElement(e,t){let n=T.createElement(`template`);return n.innerHTML=e,n}};function N(e,t,n=e,r){if(t===A)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=D(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=N(e,i._$AS(e,t.values),i,r)),t}var st=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??T).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 ct(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new ft(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=M.nextNode(),a++)}return M.currentNode=T,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++}},ct=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=N(this,e,t),D(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?Ke(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&&D(this._$AH)?this._$AA.nextSibling.data=e:this.T(T.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=ot.createElement(it(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new st(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=rt.get(e.strings);return t===void 0&&rt.set(e.strings,t=new ot(e)),t}k(t){Ge(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(E()),this.O(E()),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=ze(e).nextSibling;ze(e).remove(),e=t}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},P=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=N(this,e,t,0),a=!D(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=N(this,r[n+o],t,o),s===A&&(s=this._$AH[o]),a||=!D(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??``)}},lt=class extends P{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===j?void 0:e}},ut=class extends P{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==j)}},dt=class extends P{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=N(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)}},ft=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){N(this,e)}},pt={M:He,P:w,A:Ue,C:1,L:at,R:st,D:Ke,V:N,I:ct,H:P,N:ut,U:dt,B:lt,F:ft};(0,Re.litHtmlPolyfillSupport)?.(ot,ct),(Re.litHtmlVersions??=[]).push(`3.3.3`);var mt=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new ct(t.insertBefore(E(),e),e,void 0,n??{})}return i._$AI(e),i},ht=globalThis,F=class extends S{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=mt(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return A}};F._$litElement$=!0,F.finalized=!0,ht.litElementHydrateSupport?.({LitElement:F}),(0,ht.litElementPolyfillSupport)?.({LitElement:F}),(ht.litElementVersions??=[]).push(`4.2.2`);var gt=Symbol(`attachableController`),_t=new MutationObserver(e=>{for(let t of e)t.target[gt]?.hostConnected()}),vt=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[gt]=this,_t?.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}},yt=[`focusin`,`focusout`,`pointerdown`],bt=class extends F{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new vt(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[xt]){switch(e.type){default:return;case`focusin`:this.visible=this.control?.matches(`:focus-visible`)??!1;break;case`focusout`:case`pointerdown`:this.visible=!1}e[xt]=!0}}onControlChange(e,t){for(let n of yt)e?.removeEventListener(n,this),t?.addEventListener(n,this)}update(e){e.has(`visible`)&&this.dispatchEvent(new Event(`visibility-changed`)),super.update(e)}};b([C({type:Boolean,reflect:!0})],bt.prototype,`visible`,void 0),b([C({type:Boolean,reflect:!0})],bt.prototype,`inward`,void 0);var xt=Symbol(`handledByFocusRing`),St=_e`: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}}
|
|
3
|
-
`;
|
|
4
|
-
`;Vt.styleSheet;var Ht=class extends L{};Ht.styles=[Vt],Ht=b([ue(`md-ripple`)],Ht);var 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(`.`),Wt=Ut.map(Kt);function Gt(e){return Wt.includes(e)}function Kt(e){return e.replace(`aria`,`aria-`).replace(/Elements?/g,``).toLowerCase()}var qt=Symbol(`privateIgnoreAttributeChangesFor`);function Jt(e){var t;class n extends e{constructor(){super(...arguments),this[t]=new Set}attributeChangedCallback(e,t,n){if(!Gt(e)){super.attributeChangedCallback(e,t,n);return}if(this[qt].has(e))return;this[qt].add(e),this.removeAttribute(e),this[qt].delete(e);let r=Zt(e);n===null?delete this.dataset[r]:this.dataset[r]=n,this.requestUpdate(Zt(e),t)}getAttribute(e){return Gt(e)?super.getAttribute(Xt(e)):super.getAttribute(e)}removeAttribute(e){super.removeAttribute(e),Gt(e)&&(super.removeAttribute(Xt(e)),this.requestUpdate())}}return t=qt,Yt(n),n}function Yt(e){for(let t of Ut){let n=Kt(t),r=Xt(n),i=Zt(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 Xt(e){return`data-${e}`}function Zt(e){return e.replace(/-\w/,e=>e[1].toUpperCase())}var Qt=Symbol(`dispatchHooks`);function $t(e,t){let n=e[Qt];if(!n)throw Error(`'${e.type}' event needs setupDispatchHooks().`);n.addEventListener(`after`,t,{once:!0})}var en=new WeakMap;function tn(e,...t){let n=en.get(e);n||(n=new Set,en.set(e,n));for(let r of t)n.has(r)||(e.addEventListener(r,e=>{let t=new EventTarget;e[Qt]=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 R=Symbol(`internals`),nn=Symbol(`privateInternals`);function rn(e){class t extends e{get[R](){return this[nn]||(this[nn]=this.attachInternals()),this[nn]}}return t}var an=Symbol(`getFormValue`),on=Symbol(`getFormState`);function sn(e){class t extends e{get form(){return this[R].form}get labels(){return this[R].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[R].setFormValue(this[an](),this[on]())}[an](){return this.getAttribute(`value`)}[on](){return this[an]()}formDisabledCallback(e){this.disabled=e}}return t.formAssociated=!0,b([C({noAccessor:!0})],t.prototype,`name`,null),b([C({type:Boolean,noAccessor:!0})],t.prototype,`disabled`,null),t}function cn(e){class t extends e{get name(){return this.getAttribute(`name`)??``}set name(e){this.setAttribute(`name`,e)}constructor(...e){super(...e),this.type=`submit`,this.value=``,tn(this,`click`),this.addEventListener(`click`,async e=>{let t=this.type===`reset`,n=this.type===`submit`,r=this[R],{form:i}=r;i&&(n||t)&&$t(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 b([C()],t.prototype,`type`,void 0),b([C({reflect:!0})],t.prototype,`value`,void 0),t}var ln=class{async copy(e){let t=navigator.clipboard;if(t!==void 0)try{return await t.writeText(e),!0}catch{}return un(e)}};function un(e){let t=document.activeElement,n=document.createElement(`textarea`);n.value=e,n.readOnly=!0,n.setAttribute(`aria-hidden`,`true`),Object.assign(n.style,{position:`fixed`,top:`0`,left:`0`,opacity:`0`}),document.body.append(n);try{return n.select(),document.execCommand(`copy`)}catch{return!1}finally{n.remove(),t instanceof HTMLElement&&t.focus({preventScroll:!0})}}var dn=`light`,fn=[{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 pn(e){return fn.find(t=>t.value===e)?.value??null}var mn=`sr-theme`,hn=class{read(){try{return pn(localStorage.getItem(mn))}catch{return null}}write(e){document.documentElement.dataset.theme=e;try{localStorage.setItem(mn,e)}catch{}}},gn={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function _n(e){return e?{lang:e?.lang??void 0,message:e?.message,abortEarly:e?.abortEarly??void 0,abortPipeEarly:e?.abortPipeEarly??void 0}:gn}function z(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 B(e,t,n,r,i){let a=i&&`input`in i?i.input:n.value,o=i?.expected??e.expects??null,s=i?.received??z(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 vn(e,t){let n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??`never`}function V(e){return e[`~standard`]={version:1,vendor:`valibot`,validate:t=>e[`~run`]({value:t},_n())},e}function yn(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 bn=/^\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 xn(e,t){return{kind:`validation`,type:`check`,reference:xn,async:!1,expects:null,requirement:e,message:t,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&B(this,`input`,e,t),e}}}function H(e){return{kind:`metadata`,type:`description`,reference:H,description:e}}function Sn(e){return{kind:`metadata`,type:`examples`,reference:Sn,examples:e}}function Cn(e){return{kind:`validation`,type:`integer`,reference:Cn,async:!1,expects:null,requirement:Number.isInteger,message:e,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&B(this,`integer`,e,t),e}}}function wn(e){return{kind:`validation`,type:`iso_timestamp`,reference:wn,async:!1,expects:null,requirement:bn,message:e,"~run"(e,t){return e.typed&&!this.requirement.test(e.value)&&B(this,`timestamp`,e,t),e}}}function Tn(e,t){return{kind:`validation`,type:`max_value`,reference:Tn,async:!1,expects:`<=${e instanceof Date?e.toJSON():z(e)}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!(e.value<=this.requirement)&&B(this,`value`,e,t,{received:e.value instanceof Date?e.value.toJSON():z(e.value)}),e}}}function En(e,t){return{kind:`validation`,type:`min_value`,reference:En,async:!1,expects:`>=${e instanceof Date?e.toJSON():z(e)}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!(e.value>=this.requirement)&&B(this,`value`,e,t,{received:e.value instanceof Date?e.value.toJSON():z(e.value)}),e}}}function Dn(e,t){return{kind:`validation`,type:`regex`,reference:Dn,async:!1,expects:`${e}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!this.requirement.test(e.value)&&B(this,`format`,e,t),e}}}function On(e,t,n){return typeof e.fallback==`function`?e.fallback(t,n):e.fallback}function kn(e,t,n){return typeof e.default==`function`?e.default(t,n):e.default}function An(e,t){return V({kind:`schema`,type:`array`,reference:An,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 B(this,`type`,e,t);return e}})}function jn(e){return V({kind:`schema`,type:`boolean`,reference:jn,expects:`boolean`,async:!1,message:e,"~run"(e,t){return typeof e.value==`boolean`?e.typed=!0:B(this,`type`,e,t),e}})}function U(e,t){return V({kind:`schema`,type:`nullable`,reference:U,expects:`(${e.expects} | null)`,async:!1,wrapped:e,default:t,"~run"(e,t){return e.value===null&&(this.default!==void 0&&(e.value=kn(this,e,t)),e.value===null)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}})}function Mn(e){return V({kind:`schema`,type:`number`,reference:Mn,expects:`number`,async:!1,message:e,"~run"(e,t){return typeof e.value==`number`&&!isNaN(e.value)?e.typed=!0:B(this,`type`,e,t),e}})}function Nn(e,t){return V({kind:`schema`,type:`object`,reference:Nn,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]:kn(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]=On(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(B(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 B(this,`type`,e,t);return e}})}function Pn(e,t){return V({kind:`schema`,type:`optional`,reference:Pn,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,"~run"(e,t){return e.value===void 0&&(this.default!==void 0&&(e.value=kn(this,e,t)),e.value===void 0)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}})}function Fn(e,t){return V({kind:`schema`,type:`picklist`,reference:Fn,expects:vn(e.map(z),`|`),async:!1,options:e,message:t,"~run"(e,t){return this.options.includes(e.value)?e.typed=!0:B(this,`type`,e,t),e}})}function In(e,t){return V({kind:`schema`,type:`strict_object`,reference:In,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]:kn(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]=On(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(B(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)){B(this,`key`,e,t,{input:r,expected:`never`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]});break}}}else B(this,`type`,e,t);return e}})}function W(e){return V({kind:`schema`,type:`string`,reference:W,expects:`string`,async:!1,message:e,"~run"(e,t){return typeof e.value==`string`?e.typed=!0:B(this,`type`,e,t),e}})}function G(...e){return V({...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 Ln(e,t,n){let r=e[`~run`]({value:t},_n(n));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}var K={list:{default:1e3,max:1e4},wait:{timeoutMs:{default:5e3,max:3e5},seen:1e3,regexLength:500},markerLength:1e3,sessionLabelLength:1e3,input:{coordinate:1e5,delayMs:{default:50,max:1e4},maxKeys:100,focusTitleLength:200},capture:{quietForMs:{default:500,min:1,max:6e4},firstWithinMs:{default:2e3,max:3e5},timeoutMs:{default:1e4,max:3e5},settleMs:{default:0,max:6e4},entries:1e4}},q={port:{min:0,max:65535},maxLineBytes:{min:1024,max:16777216},maxEntries:{min:1,max:1e6}},Rn=/^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$/,zn=/^(\*|[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?)$/,Bn=(e,t)=>{let n=e.trim();return n!==``&&n.length<=t},Vn=[`error`,`warn`,`info`,`debug`];function Hn(e){try{return!new TextDecoder(e).encoding.startsWith(`utf-16`)}catch{return!1}}var Un=({min:e,max:t})=>G(Mn(),Cn(),En(e),Tn(t)),Wn=Un(q.port),Gn=Un({min:1,max:q.port.max}),Kn=G(W(),Dn(/\S/),H(`Not empty or blank.`)),qn=G(An(G(W(),Dn(zn))),H('Host names the API answers to besides IP addresses, `localhost` and the machine\'s name. Without port or scheme. `["*"]` accepts any name. Added in API 1.5.')),Jn=Nn({enabled:jn(),port:Gn,version:G(U(G(W(),Dn(Rn))),H("`null` = bundled version. Otherwise an exact version like `1.65.1`."))}),J={tcp:{host:Kn,port:Wn,encoding:G(W(),xn(Hn),H("TextDecoder label of the socket voice's code page. Not `utf-16*`: lines are split on bytes.")),maxLineBytes:Un(q.maxLineBytes)},http:{host:Kn,port:Wn,allowedHosts:qn},buffer:{maxEntries:Un(q.maxEntries)},log:{level:Fn(Vn),file:G(U(Kn),H("Bridge log file, `null` = default path.")),consoleSpeech:G(jn(),H(`Also write the speech text to the console.`))}};J.tcp,J.http,J.buffer,J.log;var Y=e=>In(Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Pn(t)])));Y(Jn.entries),Y({enabled:jn(),port:Gn}),Y(J.tcp),Y(J.http),Y(J.buffer),Y(J.log);var Yn=e=>G(Mn(),Cn(),En(e)),Xn=G(W(),wn()),Zn=G(Nn({seq:G(Yn(1),H(`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:Fn([`speech`,`marker`]),text:W(),receivedAt:G(Xn,H(`When the bridge received the line (UTC).`)),source:G(Fn([`tcp`,`api`]),H("`tcp` for speech, `api` for markers.")),voice:G(U(W()),H("Header (`voice=<id>`) of the sending voice, `null` if not set or for markers.")),connectionId:G(U(Yn(1)),H("TCP connection that delivered it, `null` for markers.")),sessionId:G(Pn(U(Yn(1))),H("The session that was current, `null` outside any session. Added in API 1.3."))}),H(`One recorded speech line or a marker.`),Sn([{seq:42,kind:`speech`,text:`Submit, button`,receivedAt:`2026-11-07T14:03:12.345Z`,source:`tcp`,voice:`ssc5000`,connectionId:3,sessionId:7}]));K.wait.seen,`${K.wait.seen}`,`${K.markerLength}`;var{coordinate:Qn,delayMs:$n,maxKeys:er}=K.input,X=K.capture;X.quietForMs.min,X.quietForMs.max,`${X.quietForMs.default}`,X.firstWithinMs.max,`${X.firstWithinMs.default}`,X.timeoutMs.max,`${X.timeoutMs.default}`,X.settleMs.max,X.entries,`${X.entries}`,-Qn,-Qn,`${er}`,$n.max,`${$n.default}`,K.input.focusTitleLength;var tr=[`control`,`shift`,`alt`,`win`,`insert`,`capslock`],nr=[...Array.from({length:10},(e,t)=>`numpad${t}`),`numpadplus`,`numpadminus`,`numpadmultiply`,`numpaddivide`,`numpaddecimal`,`numpadenter`],rr=[`enter`,`tab`,`escape`,`space`,`backspace`,`delete`,`up`,`down`,`left`,`right`,`home`,`end`,`pageup`,`pagedown`,...Array.from({length:12},(e,t)=>`f${t+1}`),...nr];[...tr,...rr],new Set(tr);var ir=e=>G(Mn(),Cn(),En(e)),ar=G(W(),wn()),or=e=>G(W(),xn(e=>Bn(e,K.sessionLabelLength)),H(`${e} Trimmed, must not be empty, at most ${K.sessionLabelLength} characters.`)),sr={id:G(ir(1),H(`Increasing, also across restarts (since API 1.29): the first session of a bridge run gets the run's start time in milliseconds, so an id is never given out twice.`)),name:W(),run:G(U(W()),H(`Optional label that groups sessions.`)),client:G(U(W()),H("Who started it: the `X-SR-Speech-Client` header, `null` if it wasn't sent. Added in API 1.10.")),startedAt:ar,endedAt:G(U(ar),H("`null` while the session is current.")),startSeq:G(ir(0),H("The last `seq` given out before the session started: `since=startSeq` reads the session from its start. Added in API 1.9.")),firstSeq:G(U(ir(1)),H("First entry still in the buffer, `null` if none.")),lastSeq:G(U(ir(1)),H("Last entry still in the buffer, `null` if none.")),entries:G(ir(0),H(`Entries of this session still in the buffer.`))};or(`For example the test title.`),or(`Optional label that groups sessions, for example one per test run.`),{...sr};function cr(e,t){let n=Ln(e,t);if(n.success)return{ok:!0,value:n.output};let[r]=n.issues;return{ok:!1,field:yn(r)??`(body)`,message:r.message}}var lr=class extends Error{field;constructor(e,t){super(e),this.field=t,this.name=`SettingRejected`}};function ur(e,t,n){if(typeof e==`object`&&e&&!Array.isArray(e))for(let[r,i]of Object.entries(e))ur(i,t===``?r:`${t}.${r}`,n);else n.set(t,JSON.stringify(e));return n}function dr(e,t){let n=ur(e,``,new Map);return[...ur(t,``,new Map)].filter(([e,t])=>n.get(e)!==t).map(([e])=>e)}var fr=`Enter a port from 1 to 65535.`;function pr(e){let t=e.trim();if(!/^\d{1,5}$/.test(t))return{ok:!1,message:fr};let n=Number(t);return n>=1&&n<=65535?{ok:!0,port:n}:{ok:!1,message:fr}}var mr=`Enter an exact version like 1.65.0, or leave the field empty.`;function hr(e){let t=e.trim();return t===``?{ok:!0,version:null}:Rn.test(t)?{ok:!0,version:t}:{ok:!1,message:mr}}var{min:gr,max:_r}=q.maxEntries,vr=`Enter a whole number from ${gr} to ${_r}.`;function yr(e){let t=e.trim(),n=/^\d+$/.test(t)?Number(t):NaN;return n>=gr&&n<=_r?{ok:!0,entries:n}:{ok:!1,message:vr}}var br=(e,t)=>Error(e?.message??`The request answered ${t}`);async function Z(e,{method:t=`GET`,body:n,signal:r,rejection:i=br}={}){let a=await fetch(e,{method:t,headers:{accept:`application/json`,...n===void 0?{}:{"content-type":`application/json`}},body:n===void 0?void 0:JSON.stringify(n),signal:r});if(!a.ok)throw i(await xr(a),a.status);return a}async function Q(e,t){return await(await Z(e,t)).json()}async function xr(e){let t=await e.json().catch(()=>void 0);if(typeof t!=`object`||!t||!(`message`in t))return null;let{message:n}=t;return typeof n==`string`?{message:n,field:`field`in t&&typeof t.field==`string`?t.field:void 0}:null}var Sr=(e,t)=>e===null?Error(`The request answered ${t}`):new lr(e.message,e.field),Cr=class{url;constructor(e){this.url=e}fetch(){return Q(this.url,{rejection:Sr})}update(e){return Q(this.url,{method:`PUT`,body:e,rejection:Sr})}},wr=class{url;constructor(e){this.url=e}async press(e){await Z(this.url,{method:`POST`,body:{keys:e}})}},Tr=class{markersUrl;speechUrl;constructor(e,t){this.markersUrl=e,this.speechUrl=t}async addMarker(e){await Z(this.markersUrl,{method:`POST`,body:{label:e}})}async clear(e){await Z(`${this.speechUrl}?session=${e}`,{method:`DELETE`})}},Er=Symbol(`sveltekit.query_function_id`),Dr=Symbol(`sveltekit.query_override_key`),Or=Symbol(`sveltekit.query_resource_key`);function kr(e,t,n,r){try{g(()=>{let i=e.get(n)?.get(r);if(i)return t.manual_ref(i,n,r)})}catch{}}function Ar(e,t,n,r,i){return((...a)=>{let o=e.get(n)?.get(r),s=o?t.manual_ref(o,n,r):void 0,c=i(...a);return s&&c.then(s,s),c})}async function jr(r,a,o){let s=await fetch(r,a),f=s.status;if(ce(s.headers.get(`x-sveltekit-version`)),!s.ok){let e=await s.json().catch(()=>void 0);throw e?.type===`error`?new n({status:f,...e.error}):new u({status:f,message:s.statusText})}let p=await s.json();if(p.type===`error`)throw new n(p.error);let m=p.data?e(p.data,c.decoders):{};function h(e,t,r){t?.resource?r.e?t.resource.fail(new n(r.e)):t.resource.set(r.v):r.e||(d[e]=r)}if(m.q)for(let e in m.q){o?.delete(e);let t=i(e);h(e,l.get(t.id)?.get(t.payload),m.q[e])}if(m.l)for(let e in m.l){o?.delete(e);let n=i(e),r=t.get(n.id)?.get(n.payload);h(e,r,m.l[e]),m.l[e].e||r?.resource.reconnect()}for(let e of m.i??[])o?.delete(e);return m}var Mr=`sveltekit:${oe}`;(async()=>{if(typeof caches<`u`)try{await caches.open(Mr);let e=await caches.keys();for(let t of e)t.startsWith(`sveltekit:`)&&t!==Mr&&await caches.delete(t)}catch(e){console.warn(`Failed to initialize SvelteKit cache:`,e)}})();var Nr=new Map;new FinalizationRegistry(e=>{let t=Nr.get(e);t&&t.deref()===void 0&&Nr.delete(e)});function Pr(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var Fr=class{#e;#t;#n=y(!0);#r=[];#i=y(!1);#a=y();#o=y(null);#s=y(h([]));#c=te(()=>{if(m(this.#i))return m(this.#s).reduce((e,t)=>t(e),m(this.#a))});#l=y(void 0);#u=te(()=>{let e=this.#d();return m(this.#s).length,(t,r)=>{let i=e.then(le).then(()=>{if(!m(this.#i))throw new n(m(this.#l)??{status:500,message:`Query resolved without a value`});return m(this.#c)});return t||r?i.then(t,r):i}});constructor(e,t){if(this.#e=e,this.#t=t,Object.hasOwn(d,e)){let t=d[e];delete d[e],t.e?this.fail(new n(t.e)):this.set(t.v)}}#d(){return ae(()=>m(this.#o)??_(this.#o,this.#p())),m(this.#o)}start(){le().then(()=>this.#d()).catch(o)}#f(){this.#r.forEach(e=>e(void 0)),this.#r.length=0}#p(){_(this.#n,!0);let{promise:e,resolve:t,reject:r}=Pr();return e.catch(o),this.#r.push(t),Promise.resolve(this.#t()).then(e=>{let n=this.#r.indexOf(t);n!==-1&&ae(()=>{this.#r.splice(0,n+1).forEach(e=>e(void 0)),_(this.#i,!0),_(this.#n,!1),_(this.#a,e),_(this.#l,void 0)})}).catch(async e=>{if(!this.#r.includes(t))return;let i=await a(e,{params:{},route:{id:null},url:new URL(location.href)}),o=this.#r.indexOf(t);o!==-1&&(ae(()=>{this.#r.splice(0,o).forEach(e=>e(void 0)),this.#r.shift(),_(this.#l,i),_(this.#n,!1)}),r(new n(i)))}),e}get then(){return this.start(),m(this.#u)}get catch(){return this.start(),m(this.#u),e=>m(this.#u)(void 0,e)}get finally(){return this.start(),m(this.#u),e=>m(this.#u)(t=>(e(),t),t=>{throw e(),t})}get current(){return this.start(),m(this.#c)}get error(){return this.start(),m(this.#l)}get loading(){return this.start(),m(this.#n)}get ready(){return this.start(),m(this.#i)}refresh(){return delete d[this.#e],_(this.#o,this.#p())}set(e){delete d[this.#e];let t=this.#r.length>0;this.#f(),_(this.#i,!0),_(this.#n,!1),_(this.#l,void 0),_(this.#a,e),t||_(this.#o,Promise.resolve())}fail(e){delete d[this.#e],this.#f(),_(this.#n,!1),_(this.#l,e.body);let t=Promise.reject(e);t.catch(o),_(this.#o,t)}withOverride(e){m(this.#s).push(e);let t=(()=>{let t=m(this.#s).indexOf(e);t!==-1&&m(this.#s).splice(t,1)});return Object.defineProperty(t,Dr,{value:this.#e}),t}reset(){_(this.#o,null),delete d[this.#e]}get[Symbol.toStringTag](){return`Query`}},Ir=class{#e;#t;#n=new FinalizationRegistry(({entry:e,id:t,payload:n})=>{this.deref(e,t,n)});constructor(e,t){this.#e=e,this.#t=t}ensure_entry=(e,t,n)=>{let r=this.#e.get(e);r||(r=new Map,this.#e.set(e,r));let i=r.get(t);if(!i){let e={proxy_count:0,resource:null,cleanup:null};e.cleanup=ee(()=>{e.resource=n()}),i=e,r.set(t,i)}return i};ref=(e,t,n,r)=>{t.proxy_count++,this.#n.register(e,{entry:t,id:n,payload:r})};manual_ref=(e,t,n)=>(e.proxy_count++,p(()=>this.deref(e,t,n)));deref=(e,t,n)=>{e.proxy_count--,le().then(()=>{let e=this.#e.get(t)?.get(n);!e||e.proxy_count>0||this.#r(t,n)})};#r=(e,t)=>{let n=this.#e.get(e),r=n?.get(t);r&&(this.#t?.(r.resource),r.cleanup(),n?.delete(t),n&&n.size===0&&this.#e.delete(e))}},$=new Ir(l),Lr=class{#e;#t;#n;#r;constructor(e,t,n){this.#e=e,this.#n=r(t),this.#t=s(e,this.#n),Object.defineProperty(this,Or,{value:this.#t}),this.#r=n;let i=this.#t,a=this.#n,o=$.ensure_entry(this.#e,this.#n,()=>new Fr(i,()=>n(a)));$.ref(this,o,this.#e,this.#n)}#i(){let e=l.get(this.#e)?.get(this.#n);if(!e)throw Error(`No cached query found. This should be impossible. Please file a bug report.`);return e.resource}get current(){return this.#i().current}get error(){return this.#i().error}get loading(){return this.#i().loading}get ready(){return this.#i().ready}refresh(){return this.#i().refresh()}set(e){this.#i().set(e)}withOverride(e){let t=this.#r,n=this.#t,r=this.#n,i=$.ensure_entry(this.#e,this.#n,()=>new Fr(n,()=>t(r))),a=$.manual_ref(i,this.#e,this.#n),o=i.resource.withOverride(e),s=(()=>{o(),a()});return Object.defineProperty(s,Dr,{value:o[Dr]}),s}get then(){kr(l,$,this.#e,this.#n);let e=this.#i();return Ar(l,$,this.#e,this.#n,e.then.bind(e))}get catch(){kr(l,$,this.#e,this.#n);let e=this.#i();return Ar(l,$,this.#e,this.#n,e.catch.bind(e))}get finally(){kr(l,$,this.#e,this.#n);let e=this.#i();return Ar(l,$,this.#e,this.#n,e.finally.bind(e))}get[Symbol.toStringTag](){return`QueryProxy`}};function Rr(e){let t=t=>new Lr(e,t,async t=>{let n=await jr(`${ie}/${se}/remote/${e}${t?`?payload=${t}`:``}`);n.redirect&&await f(n.redirect)});return Object.defineProperty(t,Er,{value:e}),t}new Ir(t,e=>e.destroy());var zr=Rr(`1j2tn2d/getSessions`),Br=class{url;constructor(e){this.url=e}async list(){let e=zr();return await e.refresh(),e.current}start(e,t){return Q(this.url,{method:`POST`,body:{name:e,run:t}})}async end(){await Z(`${this.url}/end`,{method:`POST`})}async delete(e){await Z(`${this.url}/${e}`,{method:`DELETE`})}},Vr=1e3,Hr=class{streamUrl;speechUrl;constructor(e,t){this.streamUrl=e,this.speechUrl=t}open(e,t,n){return n.onState(`connecting`),t?this.follow(e,n):this.read(e,n)}listen(e,t){let n=this.stream(`since=${e}`,e=>t.onEntry(e));return this.report(n,e=>t.onState(e)),()=>n.close()}follow(e,t){let n=this.stream(`session=${encodeURIComponent(String(e))}&since=0`,e=>t.onEntry(e));return this.report(n,e=>t.onState(e)),n.addEventListener(`clear`,()=>t.onClear()),()=>n.close()}report(e,t){e.onopen=()=>t(`live`),e.onerror=()=>t(e.readyState===EventSource.CLOSED?`failed`:`reconnecting`)}stream(e,t){let n=new EventSource(`${this.streamUrl}?${e}`);return n.addEventListener(`entry`,e=>{let n;try{n=JSON.parse(e.data)}catch{return}let r=cr(Zn,n);r.ok&&t(r.value)}),n}read(e,t){let n=new AbortController;return(async()=>{let r=0;for(;;){let i=new URLSearchParams({session:String(e),since:String(r),limit:String(Vr)}),{entries:a,hasMore:o}=await Q(`${this.speechUrl}?${i}`,{signal:n.signal});t.onEntries(a);let s=a.at(-1);if(!o||s===void 0)return;r=s.seq}})().then(()=>t.onState(`ended`),()=>{n.signal.aborted||t.onState(`failed`)}),()=>n.abort()}},Ur=class{url;constructor(e){this.url=e}fetch(){return Q(this.url)}};function Wr(e){return e===`1`||e!==`0`&&null}function Gr(e){return e?`1`:`0`}var Kr=`sr-sessions-collapsed`,qr=class{read(){try{return Wr(localStorage.getItem(Kr))}catch{return null}}write(e){try{localStorage.setItem(Kr,Gr(e))}catch{}}};function Jr(e){let t=y(null),n=y(!0),r=null;function i(){return r||(r=e.fetch().then(e=>{_(t,e,!0),_(n,!0)}).catch(()=>{_(n,!1)}).finally(()=>{r=null}),r)}return{get loaded(){return m(t)!==null},get reachable(){return m(n)},get active(){return m(t)?.active??null},get saved(){return m(t)?.saved??null},get overrides(){return m(t)?.overrides??{}},get pending(){return m(t)===null?[]:dr(m(t).active,m(t).saved)},seed(e){e!==null&&(_(t,e,!0),_(n,!0))},refresh(){return i()},async save(t){await e.update(t),await r,await i()}}}function Yr(e){let t=y(!0);return{get collapsed(){return m(t)},init(){_(t,e.read()??!1,!0)},toggle(){_(t,!m(t)),e.write(m(t))}}}var Xr=3e3;function Zr(e){let t=y(h([])),n=y(null),r=y(0),i=y(!0),a=y(!1),o=y(h(Date.now())),s=null;function c(e,i=Date.now()){_(t,e.sessions,!0),_(n,e.currentId,!0),_(r,e.outsideEntries,!0),_(o,i,!0),_(a,!0)}function l(){return s||(s=e.list().then(e=>{c(e),_(i,!0)}).catch(()=>{_(i,!1)}).finally(()=>{s=null}),s)}async function u(){await s,await l()}return{get sessions(){return m(t)},get currentId(){return m(n)},get outsideEntries(){return m(r)},get loaded(){return m(a)},get reachable(){return m(i)},get now(){return m(o)},seed(e,t){e!==null&&!m(a)&&c(e,t)},init(){l();let e=setInterval(()=>{m(n)!==null&&_(o,Date.now(),!0)},1e3),t=setInterval(()=>void l(),Xr);return()=>{clearInterval(e),clearInterval(t)}},refresh(){return u()},async start(t,n){let r=await e.start(t,n);return await u(),r},async end(){await e.end(),await u()},async delete(t){await e.delete(t),await u()}}}var Qr=5e3;function $r(e,t){return t===null?e===`none`:e===t}function ei(e,t){return ni(e,t)}function ti(e,t){return e!==`none`&&e!==t}function ni(e,t){return e===`none`||e===t}function ri(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 ii(e,t){if(e===`none`)return`Records outside sessions`;let n=t.find(t=>t.id===e);return n===void 0?`#${e}`:`${n.name} #${n.id}`}function ai(e,t){let n=y([]),r=y(`connecting`),i=null;function a(){i?.(),i=null}function o(e){let t=m(n).at(-1)?.seq??0,r=[];for(let n of e)n.seq<=t||(r.push(n),t=n.seq);if(r.length===0)return;let i=[...m(n),...r];_(n,i.length>5e3?i.slice(i.length-Qr):i)}return{get entries(){return m(n)},get connection(){return m(r)},open(t,s){return a(),_(n,[]),_(r,`connecting`),i=e.open(t,s,{onEntry:e=>o([e]),onEntries:o,onClear(){_(n,[])},onState(e){_(r,e,!0)}}),a},clear(e){return t.clear(e)},addMarker(e){return t.addMarker(e)}}}function oi(e){let t=y(null),n=y(!0),r=y(!1),i=null;function a(){return i||(_(r,!0),i=e.fetch().then(e=>{_(t,e,!0),_(n,!0)}).catch(()=>{_(n,!1)}).finally(()=>{_(r,!1),i=null}),i)}return{get status(){return m(t)},get reachable(){return m(n)},get loading(){return m(r)},init(e){e&&m(t)===null&&_(t,e,!0),a()},retry(){return a()}}}function si(e){let t=y(h(dn));return{get current(){return m(t)},init(){_(t,e.read()??`light`,!0)},set(n){_(t,n,!0),e.write(n)}}}var ci=`Insert+T`,li=`ui: ${ci}`,ui=3e4,di=5e3,fi=1e3,pi=`screen-reader-heading`,mi=`https://github.com/TimoSto/screenreader-speech-capture/blob`;function hi(e,t){return`${mi}/${e!==null&&/^\d+\.\d+\.\d+$/.test(e)?`@screenreader-speech-capture/bridge@${e}`:`main`}/docs/${t}`}var gi=new Map([[`robotjs`,`https://github.com/jitsi/robotjs`],[`koffi`,`https://github.com/Koromix/koffi`]]);function _i(e){let t=(t,n)=>({label:t,href:hi(e.bridge.version,n)}),n=(e,n,r,i,a,o=null)=>({id:e,label:n,tone:r,state:i,library:o,help:r===`ok`?null:`path`in a?t(a.label,a.path):a}),{listening:r,port:i,encoding:a,connections:o}=e.tcp,s=[...new Set(o.flatMap(({voice:e})=>e===null?[]:[e]))],c=o.length===1?`1 connection`:`${o.length} connections`,l=(e,t,{available:r,backend:i,reason:a},o)=>n(e,t,r?`ok`:`warning`,r?`Available`:`Not available: ${a??`no reason given`}`,o,i===null?null:{name:i,href:gi.get(i)??null}),u=(e,t,{state:r,version:i})=>{let[a,o]={running:[`ok`,`Running, version ${i}`],starting:[`neutral`,`Starting, version ${i}`],stopped:[`neutral`,`Off`],crashed:[`warning`,`Crashed, version ${i}. It restarts by itself.`],failed:[`warning`,`Failed, version ${i}`]}[r];return n(e,t,a,o,{label:`Child services`,path:`usage/operations.md#child-service-crashes`})};return[n(`listener`,`Speech listener`,r?`ok`:`warning`,r?`Listening on port ${i} (${a})`:`Not listening on port ${i}`,{label:`Troubleshooting`,path:`usage/troubleshooting.md#speech`}),n(`voice`,`Voice connected`,o.length>0?`ok`:`neutral`,o.length>0?`${c}${s.length>0?` (voice ${s.join(`, `)})`:``}`:`None yet: the voice connects with its first words`,{label:`Select the voice`,screenReader:!0}),l(`input`,`Native input`,e.input.native,{label:`Troubleshooting`,path:`usage/troubleshooting.md#browser-and-input`}),l(`focus`,`Window focus`,e.input.focus,{label:`Bringing the browser to the front`,path:`usage/native-input.md#bringing-the-browser-to-the-front`}),u(`playwright`,`Playwright server`,e.playwright),u(`mcp`,`Playwright MCP`,e.mcp)]}function vi(e,t,n,r){let i=y(`idle`),a=y(`manual`),o=y([]),s=y(!1),c=y(``),l=0,u=null,d;function f(){l++,clearTimeout(d),u?.(),u=null,_(s,!1)}function p(e){f(),_(i,`failed`),_(c,e,!0)}function h(e){d=setTimeout(()=>{m(s)?p(`The connection to the bridge was lost.`):(f(),_(i,`silent`))},e)}return{get phase(){return m(i)},get via(){return m(a)},get entries(){return m(o)},get reconnecting(){return m(s)},get failure(){return m(c)},async start(ee){f();let g=l;_(a,ee,!0),_(i,`starting`),_(o,[]),_(c,``);let te;try{te=(await e.fetch()).buffer.lastSeq??0}catch{g===l&&p(`The bridge is not reachable.`);return}if(g!==l)return;let ne=ee===`manual`;if(_(i,`listening`),u=t.listen(te,{onEntry(e){g===l&&(e.kind===`marker`?e.text===`ui: Insert+T`&&(ne=!0):ne&&(_(o,[...m(o),e]),_(i,`heard`),clearTimeout(d),m(o).length>=5?f():d=setTimeout(f,fi)))},onState(e){g===l&&(e===`failed`?m(i)===`heard`?f():p(`The speech stream is not available.`):_(s,e===`reconnecting`))}}),ee===`manual`)h(ui);else{try{if(await r.addMarker(li),g!==l)return;await n.press(ci)}catch(e){g===l&&m(o).length===0&&p(e instanceof Error?e.message:`The keys could not be sent.`);return}g===l&&m(o).length===0&&h(di)}},stop(){f(),_(i,`idle`),_(o,[]),_(c,``)}}}function yi(){let e=new Ur(v(`/api/status`)),t=new Hr(v(`/api/speech/stream`),v(`/api/speech`)),n=new Tr(v(`/api/markers`),v(`/api/speech`)),r=new ln;return{theme:si(new hn),status:oi(e),config:Jr(new Cr(v(`/api/config`))),sessions:Zr(new Br(v(`/api/sessions`))),speech:ai(t,n),voiceCheck:vi(e,t,new wr(v(`/api/input/keys`)),n),sessionsPane:Yr(new qr),clipboard:r}}var bi=Symbol(`app-stores`);function xi(){return re(bi,yi())}function Si(){let e=ne(bi);if(e===void 0)throw Error(`appStores() needs provideAppStores() in a parent`);return e}export{Ot as A,nt as B,an as C,$t as D,rn as E,wt as F,Ie as G,pt as H,F as I,_e as J,Fe as K,j as L,Dt as M,Tt as N,tn as O,Et as P,mt as R,cn as S,R as T,tt as U,et as V,Le as W,b as X,ue as Y,dr as _,_i as a,zn as b,ei as c,ni as d,ii as f,pr as g,hr as h,pi as i,kt as j,Jt as k,ti as l,yr as m,xi as n,hi as o,lr as p,C as q,ci as r,$r as s,Si as t,ri as u,Vn as v,sn as w,fn as x,K as y,A as z};
|
|
2
|
+
\f\r]`,O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Je=/-->/g,Ye=/>/g,k=RegExp(`>|${qe}(?:([^\\s"'>=/]+)(${qe}*=${qe}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),Xe=/'/g,Ze=/"/g,Qe=/^(?:script|style|textarea|title)$/i,$e=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),et=$e(1),tt=$e(2),nt=$e(3),A=Symbol.for(`lit-noChange`),j=Symbol.for(`lit-nothing`),rt=new WeakMap,M=T.createTreeWalker(T,129);function it(e,t){if(!Ge(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return Ve===void 0?t:Ve.createHTML(t)}var at=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=O;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===O?c[1]===`!--`?o=Je:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=k):(Qe.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=k):o=Ye:o===k?c[0]===`>`?(o=i??O,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?k:c[3]===`"`?Ze:Xe):o===Ze||o===Xe?o=k:o===Je||o===Ye?o=O:(o=k,i=void 0);let d=o===k&&e[t+1].startsWith(`/>`)?` `:``;a+=o===O?n+We:l>=0?(r.push(s),n.slice(0,l)+He+n.slice(l)+w+d):n+w+(l===-2?t:d)}return[it(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]},ot=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]=at(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(w),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?lt:r[1]===`?`?ut:r[1]===`@`?dt:P}),i.removeAttribute(e)}else e.startsWith(w)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(Qe.test(i.tagName)){let e=i.textContent.split(w),t=e.length-1;if(t>0){i.textContent=Be?Be.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],E()),M.nextNode(),c.push({type:2,index:++a});i.append(e[t],E())}}}else if(i.nodeType===8){if(i.data===Ue)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(w,e+1))!==-1;)c.push({type:7,index:a}),e+=w.length-1}}a++}}static createElement(e,t){let n=T.createElement(`template`);return n.innerHTML=e,n}};function N(e,t,n=e,r){if(t===A)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=D(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=N(e,i._$AS(e,t.values),i,r)),t}var st=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??T).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 ct(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new ft(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=M.nextNode(),a++)}return M.currentNode=T,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++}},ct=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=N(this,e,t),D(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?Ke(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&&D(this._$AH)?this._$AA.nextSibling.data=e:this.T(T.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=ot.createElement(it(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new st(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=rt.get(e.strings);return t===void 0&&rt.set(e.strings,t=new ot(e)),t}k(t){Ge(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(E()),this.O(E()),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=ze(e).nextSibling;ze(e).remove(),e=t}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},P=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=N(this,e,t,0),a=!D(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=N(this,r[n+o],t,o),s===A&&(s=this._$AH[o]),a||=!D(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??``)}},lt=class extends P{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===j?void 0:e}},ut=class extends P{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==j)}},dt=class extends P{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=N(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)}},ft=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){N(this,e)}},pt={M:He,P:w,A:Ue,C:1,L:at,R:st,D:Ke,V:N,I:ct,H:P,N:ut,U:dt,B:lt,F:ft};(0,Re.litHtmlPolyfillSupport)?.(ot,ct),(Re.litHtmlVersions??=[]).push(`3.3.3`);var mt=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new ct(t.insertBefore(E(),e),e,void 0,n??{})}return i._$AI(e),i},ht=globalThis,F=class extends S{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=mt(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return A}};F._$litElement$=!0,F.finalized=!0,ht.litElementHydrateSupport?.({LitElement:F}),(0,ht.litElementPolyfillSupport)?.({LitElement:F}),(ht.litElementVersions??=[]).push(`4.2.2`);var gt=class extends F{render(){return et`<slot></slot>`}connectedCallback(){super.connectedCallback(),this.getAttribute(`aria-hidden`)===`false`?this.removeAttribute(`aria-hidden`):this.setAttribute(`aria-hidden`,`true`)}},_t=_e`: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
|
+
`;_t.styleSheet;var vt=class extends gt{};vt.styles=[_t],vt=b([ue(`md-icon`)],vt);var yt=Symbol(`attachableController`),bt=new MutationObserver(e=>{for(let t of e)t.target[yt]?.hostConnected()}),xt=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[yt]=this,bt?.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}},St=[`focusin`,`focusout`,`pointerdown`],Ct=class extends F{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new xt(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[wt]){switch(e.type){default:return;case`focusin`:this.visible=this.control?.matches(`:focus-visible`)??!1;break;case`focusout`:case`pointerdown`:this.visible=!1}e[wt]=!0}}onControlChange(e,t){for(let n of St)e?.removeEventListener(n,this),t?.addEventListener(n,this)}update(e){e.has(`visible`)&&this.dispatchEvent(new Event(`visibility-changed`)),super.update(e)}};b([C({type:Boolean,reflect:!0})],Ct.prototype,`visible`,void 0),b([C({type:Boolean,reflect:!0})],Ct.prototype,`inward`,void 0);var wt=Symbol(`handledByFocusRing`),Tt=_e`: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
|
+
`;Tt.styleSheet;var Et=class extends Ct{};Et.styles=[Tt],Et=b([ue(`md-focus-ring`)],Et);var Dt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ot=e=>(...t)=>({_$litDirective$:e,values:t}),kt=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)}},At=Ot(class extends kt{constructor(e){if(super(e),e.type!==Dt.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}}),jt={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)`};function Mt(){let e=null;return{start(){return e?.abort(),e=new AbortController,e.signal},finish(){e=null}}}var Nt=450,Pt=225,Ft=.2,It=10,Lt=75,Rt=.35,zt=`::after`,Bt=`forwards`,I;(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`})(I||={});var Vt=[`click`,`contextmenu`,`pointercancel`,`pointerdown`,`pointerenter`,`pointerleave`,`pointerup`],Ht=150,Ut=window.matchMedia(`(forced-colors: active)`),L=class extends F{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize=``,this.rippleScale=``,this.initialSize=0,this.state=I.INACTIVE,this.attachableController=new xt(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 et`<div class="surface ${At({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!==I.INACTIVE&&this.endPressAnimation())}handlePointerup(e){this.shouldReactToEvent(e)&&(this.state===I.HOLDING?this.state=I.WAITING_FOR_CLICK:this.state===I.TOUCH_DELAY&&(this.state=I.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent)))}async handlePointerdown(e){this.shouldReactToEvent(e)&&(this.rippleStartEvent=e,this.isTouch(e)?(this.state=I.TOUCH_DELAY,await new Promise(e=>{setTimeout(e,Ht)}),this.state===I.TOUCH_DELAY&&(this.state=I.HOLDING,this.startPressAnimation(e))):(this.state=I.WAITING_FOR_CLICK,this.startPressAnimation(e)))}handleClick(){this.disabled||(this.state===I.WAITING_FOR_CLICK?this.endPressAnimation():this.state===I.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(Rt*n,Lt),i=this.currentCSSZoom??1,a=Math.floor(n*Ft/i),o=Math.sqrt(t**2+e**2)+It;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:zt,duration:Nt,easing:jt.STANDARD,fill:Bt})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=I.INACTIVE;let e=this.growAnimation,t=1/0;typeof e?.currentTime==`number`?t=e.currentTime:e?.currentTime&&(t=e.currentTime.to(`ms`).value),t>=Pt?this.pressed=!1:(await new Promise(e=>{setTimeout(e,Pt-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(!Ut?.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 Vt)e?.removeEventListener(n,this),t?.addEventListener(n,this)}};b([C({type:Boolean,reflect:!0})],L.prototype,`disabled`,void 0),b([Fe()],L.prototype,`hovered`,void 0),b([Fe()],L.prototype,`pressed`,void 0),b([Le(`.surface`)],L.prototype,`mdRoot`,void 0);var Wt=_e`: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
|
+
`;Wt.styleSheet;var Gt=class extends L{};Gt.styles=[Wt],Gt=b([ue(`md-ripple`)],Gt);var Kt=`role.ariaAtomic.ariaAutoComplete.ariaBusy.ariaChecked.ariaColCount.ariaColIndex.ariaColSpan.ariaCurrent.ariaDisabled.ariaExpanded.ariaHasPopup.ariaHidden.ariaInvalid.ariaKeyShortcuts.ariaLabel.ariaLevel.ariaLive.ariaModal.ariaMultiLine.ariaMultiSelectable.ariaOrientation.ariaPlaceholder.ariaPosInSet.ariaPressed.ariaReadOnly.ariaRequired.ariaRoleDescription.ariaRowCount.ariaRowIndex.ariaRowSpan.ariaSelected.ariaSetSize.ariaSort.ariaValueMax.ariaValueMin.ariaValueNow.ariaValueText`.split(`.`),qt=Kt.map(Yt);function Jt(e){return qt.includes(e)}function Yt(e){return e.replace(`aria`,`aria-`).replace(/Elements?/g,``).toLowerCase()}var Xt=Symbol(`privateIgnoreAttributeChangesFor`);function Zt(e){var t;class n extends e{constructor(){super(...arguments),this[t]=new Set}attributeChangedCallback(e,t,n){if(!Jt(e)){super.attributeChangedCallback(e,t,n);return}if(this[Xt].has(e))return;this[Xt].add(e),this.removeAttribute(e),this[Xt].delete(e);let r=en(e);n===null?delete this.dataset[r]:this.dataset[r]=n,this.requestUpdate(en(e),t)}getAttribute(e){return Jt(e)?super.getAttribute($t(e)):super.getAttribute(e)}removeAttribute(e){super.removeAttribute(e),Jt(e)&&(super.removeAttribute($t(e)),this.requestUpdate())}}return t=Xt,Qt(n),n}function Qt(e){for(let t of Kt){let n=Yt(t),r=$t(n),i=en(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 $t(e){return`data-${e}`}function en(e){return e.replace(/-\w/,e=>e[1].toUpperCase())}var tn=Symbol(`dispatchHooks`);function nn(e,t){let n=e[tn];if(!n)throw Error(`'${e.type}' event needs setupDispatchHooks().`);n.addEventListener(`after`,t,{once:!0})}var rn=new WeakMap;function an(e,...t){let n=rn.get(e);n||(n=new Set,rn.set(e,n));for(let r of t)n.has(r)||(e.addEventListener(r,e=>{let t=new EventTarget;e[tn]=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 R=Symbol(`internals`),on=Symbol(`privateInternals`);function sn(e){class t extends e{get[R](){return this[on]||(this[on]=this.attachInternals()),this[on]}}return t}var cn=Symbol(`getFormValue`),ln=Symbol(`getFormState`);function un(e){class t extends e{get form(){return this[R].form}get labels(){return this[R].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[R].setFormValue(this[cn](),this[ln]())}[cn](){return this.getAttribute(`value`)}[ln](){return this[cn]()}formDisabledCallback(e){this.disabled=e}}return t.formAssociated=!0,b([C({noAccessor:!0})],t.prototype,`name`,null),b([C({type:Boolean,noAccessor:!0})],t.prototype,`disabled`,null),t}function dn(e){class t extends e{get name(){return this.getAttribute(`name`)??``}set name(e){this.setAttribute(`name`,e)}constructor(...e){super(...e),this.type=`submit`,this.value=``,an(this,`click`),this.addEventListener(`click`,async e=>{let t=this.type===`reset`,n=this.type===`submit`,r=this[R],{form:i}=r;i&&(n||t)&&nn(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 b([C()],t.prototype,`type`,void 0),b([C({reflect:!0})],t.prototype,`value`,void 0),t}var fn=class{async copy(e){let t=navigator.clipboard;if(t!==void 0)try{return await t.writeText(e),!0}catch{}return pn(e)}};function pn(e){let t=document.activeElement,n=document.createElement(`textarea`);n.value=e,n.readOnly=!0,n.setAttribute(`aria-hidden`,`true`),Object.assign(n.style,{position:`fixed`,top:`0`,left:`0`,opacity:`0`}),document.body.append(n);try{return n.select(),document.execCommand(`copy`)}catch{return!1}finally{n.remove(),t instanceof HTMLElement&&t.focus({preventScroll:!0})}}var mn=`light`,hn=[{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 gn(e){return hn.find(t=>t.value===e)?.value??null}var _n=`sr-theme`,vn=class{read(){try{return gn(localStorage.getItem(_n))}catch{return null}}write(e){document.documentElement.dataset.theme=e;try{localStorage.setItem(_n,e)}catch{}}},yn={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function bn(e){return e?{lang:e?.lang??void 0,message:e?.message,abortEarly:e?.abortEarly??void 0,abortPipeEarly:e?.abortPipeEarly??void 0}:yn}function z(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 B(e,t,n,r,i){let a=i&&`input`in i?i.input:n.value,o=i?.expected??e.expects??null,s=i?.received??z(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 xn(e,t){let n=[...new Set(e)];return n.length>1?`(${n.join(` ${t} `)})`:n[0]??`never`}function V(e){return e[`~standard`]={version:1,vendor:`valibot`,validate:t=>e[`~run`]({value:t},bn())},e}function Sn(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 Cn=/^\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 wn(e,t){return{kind:`validation`,type:`check`,reference:wn,async:!1,expects:null,requirement:e,message:t,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&B(this,`input`,e,t),e}}}function H(e){return{kind:`metadata`,type:`description`,reference:H,description:e}}function Tn(e){return{kind:`metadata`,type:`examples`,reference:Tn,examples:e}}function En(e){return{kind:`validation`,type:`integer`,reference:En,async:!1,expects:null,requirement:Number.isInteger,message:e,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&B(this,`integer`,e,t),e}}}function Dn(e){return{kind:`validation`,type:`iso_timestamp`,reference:Dn,async:!1,expects:null,requirement:Cn,message:e,"~run"(e,t){return e.typed&&!this.requirement.test(e.value)&&B(this,`timestamp`,e,t),e}}}function On(e,t){return{kind:`validation`,type:`max_value`,reference:On,async:!1,expects:`<=${e instanceof Date?e.toJSON():z(e)}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!(e.value<=this.requirement)&&B(this,`value`,e,t,{received:e.value instanceof Date?e.value.toJSON():z(e.value)}),e}}}function kn(e,t){return{kind:`validation`,type:`min_value`,reference:kn,async:!1,expects:`>=${e instanceof Date?e.toJSON():z(e)}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!(e.value>=this.requirement)&&B(this,`value`,e,t,{received:e.value instanceof Date?e.value.toJSON():z(e.value)}),e}}}function An(e,t){return{kind:`validation`,type:`regex`,reference:An,async:!1,expects:`${e}`,requirement:e,message:t,"~run"(e,t){return e.typed&&!this.requirement.test(e.value)&&B(this,`format`,e,t),e}}}function jn(e,t,n){return typeof e.fallback==`function`?e.fallback(t,n):e.fallback}function Mn(e,t,n){return typeof e.default==`function`?e.default(t,n):e.default}function Nn(e,t){return V({kind:`schema`,type:`array`,reference:Nn,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 B(this,`type`,e,t);return e}})}function Pn(e){return V({kind:`schema`,type:`boolean`,reference:Pn,expects:`boolean`,async:!1,message:e,"~run"(e,t){return typeof e.value==`boolean`?e.typed=!0:B(this,`type`,e,t),e}})}function U(e,t){return V({kind:`schema`,type:`nullable`,reference:U,expects:`(${e.expects} | null)`,async:!1,wrapped:e,default:t,"~run"(e,t){return e.value===null&&(this.default!==void 0&&(e.value=Mn(this,e,t)),e.value===null)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}})}function Fn(e){return V({kind:`schema`,type:`number`,reference:Fn,expects:`number`,async:!1,message:e,"~run"(e,t){return typeof e.value==`number`&&!isNaN(e.value)?e.typed=!0:B(this,`type`,e,t),e}})}function In(e,t){return V({kind:`schema`,type:`object`,reference:In,expects:`Object`,async:!1,entries:e,message:t,"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){e.typed=!0,e.value={};for(let r in this.entries){let i=this.entries[r];if(r in n||(i.type===`exact_optional`||i.type===`optional`||i.type===`nullish`)&&i.default!==void 0){let a=r in n?n[r]:Mn(i),o=i[`~run`]({value:a},t);if(o.issues){let i={type:`object`,origin:`value`,input:n,key:r,value:a};for(let t of o.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),e.value[r]=o.value}else if(i.fallback!==void 0)e.value[r]=jn(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(B(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 B(this,`type`,e,t);return e}})}function Ln(e,t){return V({kind:`schema`,type:`optional`,reference:Ln,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,"~run"(e,t){return e.value===void 0&&(this.default!==void 0&&(e.value=Mn(this,e,t)),e.value===void 0)?(e.typed=!0,e):this.wrapped[`~run`](e,t)}})}function Rn(e,t){return V({kind:`schema`,type:`picklist`,reference:Rn,expects:xn(e.map(z),`|`),async:!1,options:e,message:t,"~run"(e,t){return this.options.includes(e.value)?e.typed=!0:B(this,`type`,e,t),e}})}function zn(e,t){return V({kind:`schema`,type:`strict_object`,reference:zn,expects:`Object`,async:!1,entries:e,message:t,"~run"(e,t){let n=e.value;if(n&&typeof n==`object`){e.typed=!0,e.value={};for(let r in this.entries){let i=this.entries[r];if(r in n||(i.type===`exact_optional`||i.type===`optional`||i.type===`nullish`)&&i.default!==void 0){let a=r in n?n[r]:Mn(i),o=i[`~run`]({value:a},t);if(o.issues){let i={type:`object`,origin:`value`,input:n,key:r,value:a};for(let t of o.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||=o.issues,t.abortEarly){e.typed=!1;break}}o.typed||(e.typed=!1),e.value[r]=o.value}else if(i.fallback!==void 0)e.value[r]=jn(i);else if(i.type!==`exact_optional`&&i.type!==`optional`&&i.type!==`nullish`&&(B(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)){B(this,`key`,e,t,{input:r,expected:`never`,path:[{type:`object`,origin:`key`,input:n,key:r,value:n[r]}]});break}}}else B(this,`type`,e,t);return e}})}function W(e){return V({kind:`schema`,type:`string`,reference:W,expects:`string`,async:!1,message:e,"~run"(e,t){return typeof e.value==`string`?e.typed=!0:B(this,`type`,e,t),e}})}function G(...e){return V({...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 Bn(e,t,n){let r=e[`~run`]({value:t},bn(n));return{typed:r.typed,success:!r.issues,output:r.value,issues:r.issues}}var K={list:{default:1e3,max:1e4},wait:{timeoutMs:{default:5e3,max:3e5},seen:1e3,regexLength:500},markerLength:1e3,sessionLabelLength:1e3,input:{coordinate:1e5,delayMs:{default:50,max:1e4},maxKeys:100,focusTitleLength:200},capture:{quietForMs:{default:500,min:1,max:6e4},firstWithinMs:{default:2e3,max:3e5},timeoutMs:{default:1e4,max:3e5},settleMs:{default:0,max:6e4},entries:1e4}},q={port:{min:0,max:65535},maxLineBytes:{min:1024,max:16777216},maxEntries:{min:1,max:1e6}},Vn=/^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$/,Hn=/^(\*|[A-Za-z0-9]([A-Za-z0-9.-]*[A-Za-z0-9])?)$/,Un=(e,t)=>{let n=e.trim();return n!==``&&n.length<=t},Wn=[`error`,`warn`,`info`,`debug`];function Gn(e){try{return!new TextDecoder(e).encoding.startsWith(`utf-16`)}catch{return!1}}var Kn=({min:e,max:t})=>G(Fn(),En(),kn(e),On(t)),qn=Kn(q.port),Jn=Kn({min:1,max:q.port.max}),Yn=G(W(),An(/\S/),H(`Not empty or blank.`)),Xn=G(Nn(G(W(),An(Hn))),H('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.')),Zn=In({enabled:Pn(),port:Jn,version:G(U(G(W(),An(Vn))),H("`null` = bundled version. Otherwise an exact version like `1.65.1`."))}),J={tcp:{host:Yn,port:qn,encoding:G(W(),wn(Gn),H("TextDecoder label of the socket voice's code page. Not `utf-16*`: lines are split on bytes.")),maxLineBytes:Kn(q.maxLineBytes)},http:{host:Yn,port:qn,allowedHosts:Xn},buffer:{maxEntries:Kn(q.maxEntries)},log:{level:Rn(Wn),file:G(U(Yn),H("Bridge log file, `null` = default path.")),consoleSpeech:G(Pn(),H(`Also write the speech text to the console.`))}};J.tcp,J.http,J.buffer,J.log;var Y=e=>zn(Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Ln(t)])));Y(Zn.entries),Y({enabled:Pn(),port:Jn}),Y(J.tcp),Y(J.http),Y(J.buffer),Y(J.log);var Qn=e=>G(Fn(),En(),kn(e)),$n=G(W(),Dn()),er=G(In({seq:G(Qn(1),H(`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:Rn([`speech`,`marker`]),text:W(),receivedAt:G($n,H(`When the bridge received the line (UTC).`)),source:G(Rn([`tcp`,`api`]),H("`tcp` for speech, `api` for markers.")),voice:G(U(W()),H("Header (`voice=<id>`) of the sending voice, `null` if not set or for markers.")),connectionId:G(U(Qn(1)),H("TCP connection that delivered it, `null` for markers.")),sessionId:G(Ln(U(Qn(1))),H("The session that was current, `null` outside any session. Added in API 1.3."))}),H(`One recorded speech line or a marker.`),Tn([{seq:42,kind:`speech`,text:`Submit, button`,receivedAt:`2026-11-07T14:03:12.345Z`,source:`tcp`,voice:`ssc5000`,connectionId:3,sessionId:7}]));K.wait.seen,`${K.wait.seen}`,`${K.markerLength}`;var{coordinate:tr,delayMs:nr,maxKeys:rr}=K.input,X=K.capture;X.quietForMs.min,X.quietForMs.max,`${X.quietForMs.default}`,X.firstWithinMs.max,`${X.firstWithinMs.default}`,X.timeoutMs.max,`${X.timeoutMs.default}`,X.settleMs.max,X.entries,`${X.entries}`,-tr,-tr,`${rr}`,nr.max,`${nr.default}`,K.input.focusTitleLength;var ir=[`control`,`shift`,`alt`,`win`,`insert`,`capslock`],ar=[...Array.from({length:10},(e,t)=>`numpad${t}`),`numpadplus`,`numpadminus`,`numpadmultiply`,`numpaddivide`,`numpaddecimal`,`numpadenter`],or=[`enter`,`tab`,`escape`,`space`,`backspace`,`delete`,`up`,`down`,`left`,`right`,`home`,`end`,`pageup`,`pagedown`,...Array.from({length:12},(e,t)=>`f${t+1}`),...ar];[...ir,...or],new Set(ir);var sr=e=>G(Fn(),En(),kn(e)),cr=G(W(),Dn()),lr=e=>G(W(),wn(e=>Un(e,K.sessionLabelLength)),H(`${e} Trimmed, must not be empty, at most ${K.sessionLabelLength} characters.`)),ur={id:G(sr(1),H(`Increasing, also across restarts (since API 1.29): the first session of a bridge run gets the run's start time in milliseconds, so an id is never given out twice.`)),name:W(),run:G(U(W()),H(`Optional label that groups sessions.`)),client:G(U(W()),H("Who started it: the `X-SR-Speech-Client` header, `null` if it wasn't sent. Added in API 1.10.")),startedAt:cr,endedAt:G(U(cr),H("`null` while the session is current.")),startSeq:G(sr(0),H("The last `seq` given out before the session started: `since=startSeq` reads the session from its start. Added in API 1.9.")),firstSeq:G(U(sr(1)),H("First entry still in the buffer, `null` if none.")),lastSeq:G(U(sr(1)),H("Last entry still in the buffer, `null` if none.")),entries:G(sr(0),H(`Entries of this session still in the buffer.`))};lr(`For example the test title.`),lr(`Optional label that groups sessions, for example one per test run.`),{...ur};function dr(e,t){let n=Bn(e,t);if(n.success)return{ok:!0,value:n.output};let[r]=n.issues;return{ok:!1,field:Sn(r)??`(body)`,message:r.message}}var fr=class extends Error{field;constructor(e,t){super(e),this.field=t,this.name=`SettingRejected`}};function pr(e,t,n){if(typeof e==`object`&&e&&!Array.isArray(e))for(let[r,i]of Object.entries(e))pr(i,t===``?r:`${t}.${r}`,n);else n.set(t,JSON.stringify(e));return n}function mr(e,t){let n=pr(e,``,new Map);return[...pr(t,``,new Map)].filter(([e,t])=>n.get(e)!==t).map(([e])=>e)}var hr=`Enter a port from 1 to 65535.`;function gr(e){let t=e.trim();if(!/^\d{1,5}$/.test(t))return{ok:!1,message:hr};let n=Number(t);return n>=1&&n<=65535?{ok:!0,port:n}:{ok:!1,message:hr}}var _r=`Enter an exact version like 1.65.0, or leave the field empty.`;function vr(e){let t=e.trim();return t===``?{ok:!0,version:null}:Vn.test(t)?{ok:!0,version:t}:{ok:!1,message:_r}}var{min:yr,max:br}=q.maxEntries,xr=`Enter a whole number from ${yr} to ${br}.`;function Sr(e){let t=e.trim(),n=/^\d+$/.test(t)?Number(t):NaN;return n>=yr&&n<=br?{ok:!0,entries:n}:{ok:!1,message:xr}}var Cr=(e,t)=>Error(e?.message??`The request answered ${t}`);async function Z(e,{method:t=`GET`,body:n,signal:r,rejection:i=Cr}={}){let a=await fetch(e,{method:t,headers:{accept:`application/json`,...n===void 0?{}:{"content-type":`application/json`}},body:n===void 0?void 0:JSON.stringify(n),signal:r});if(!a.ok)throw i(await wr(a),a.status);return a}async function Q(e,t){return await(await Z(e,t)).json()}async function wr(e){let t=await e.json().catch(()=>void 0);if(typeof t!=`object`||!t||!(`message`in t))return null;let{message:n}=t;return typeof n==`string`?{message:n,field:`field`in t&&typeof t.field==`string`?t.field:void 0}:null}var Tr=(e,t)=>e===null?Error(`The request answered ${t}`):new fr(e.message,e.field),Er=class{url;constructor(e){this.url=e}fetch(){return Q(this.url,{rejection:Tr})}update(e){return Q(this.url,{method:`PUT`,body:e,rejection:Tr})}},Dr=class{url;constructor(e){this.url=e}async press(e){await Z(this.url,{method:`POST`,body:{keys:e}})}},Or=class{markersUrl;speechUrl;constructor(e,t){this.markersUrl=e,this.speechUrl=t}async addMarker(e){await Z(this.markersUrl,{method:`POST`,body:{label:e}})}async clear(e){await Z(`${this.speechUrl}?session=${e}`,{method:`DELETE`})}},kr=Symbol(`sveltekit.query_function_id`),Ar=Symbol(`sveltekit.query_override_key`),jr=Symbol(`sveltekit.query_resource_key`);function Mr(e,t,n,r){try{g(()=>{let i=e.get(n)?.get(r);if(i)return t.manual_ref(i,n,r)})}catch{}}function Nr(e,t,n,r,i){return((...a)=>{let o=e.get(n)?.get(r),s=o?t.manual_ref(o,n,r):void 0,c=i(...a);return s&&c.then(s,s),c})}async function Pr(r,a,o){let s=await fetch(r,a),f=s.status;if(ce(s.headers.get(`x-sveltekit-version`)),!s.ok){let e=await s.json().catch(()=>void 0);throw e?.type===`error`?new n({status:f,...e.error}):new u({status:f,message:s.statusText})}let p=await s.json();if(p.type===`error`)throw new n(p.error);let m=p.data?e(p.data,c.decoders):{};function h(e,t,r){t?.resource?r.e?t.resource.fail(new n(r.e)):t.resource.set(r.v):r.e||(d[e]=r)}if(m.q)for(let e in m.q){o?.delete(e);let t=i(e);h(e,l.get(t.id)?.get(t.payload),m.q[e])}if(m.l)for(let e in m.l){o?.delete(e);let n=i(e),r=t.get(n.id)?.get(n.payload);h(e,r,m.l[e]),m.l[e].e||r?.resource.reconnect()}for(let e of m.i??[])o?.delete(e);return m}var Fr=`sveltekit:${oe}`;(async()=>{if(typeof caches<`u`)try{await caches.open(Fr);let e=await caches.keys();for(let t of e)t.startsWith(`sveltekit:`)&&t!==Fr&&await caches.delete(t)}catch(e){console.warn(`Failed to initialize SvelteKit cache:`,e)}})();var Ir=new Map;new FinalizationRegistry(e=>{let t=Ir.get(e);t&&t.deref()===void 0&&Ir.delete(e)});function Lr(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var Rr=class{#e;#t;#n=y(!0);#r=[];#i=y(!1);#a=y();#o=y(null);#s=y(h([]));#c=te(()=>{if(m(this.#i))return m(this.#s).reduce((e,t)=>t(e),m(this.#a))});#l=y(void 0);#u=te(()=>{let e=this.#d();return m(this.#s).length,(t,r)=>{let i=e.then(le).then(()=>{if(!m(this.#i))throw new n(m(this.#l)??{status:500,message:`Query resolved without a value`});return m(this.#c)});return t||r?i.then(t,r):i}});constructor(e,t){if(this.#e=e,this.#t=t,Object.hasOwn(d,e)){let t=d[e];delete d[e],t.e?this.fail(new n(t.e)):this.set(t.v)}}#d(){return ae(()=>m(this.#o)??_(this.#o,this.#p())),m(this.#o)}start(){le().then(()=>this.#d()).catch(o)}#f(){this.#r.forEach(e=>e(void 0)),this.#r.length=0}#p(){_(this.#n,!0);let{promise:e,resolve:t,reject:r}=Lr();return e.catch(o),this.#r.push(t),Promise.resolve(this.#t()).then(e=>{let n=this.#r.indexOf(t);n!==-1&&ae(()=>{this.#r.splice(0,n+1).forEach(e=>e(void 0)),_(this.#i,!0),_(this.#n,!1),_(this.#a,e),_(this.#l,void 0)})}).catch(async e=>{if(!this.#r.includes(t))return;let i=await a(e,{params:{},route:{id:null},url:new URL(location.href)}),o=this.#r.indexOf(t);o!==-1&&(ae(()=>{this.#r.splice(0,o).forEach(e=>e(void 0)),this.#r.shift(),_(this.#l,i),_(this.#n,!1)}),r(new n(i)))}),e}get then(){return this.start(),m(this.#u)}get catch(){return this.start(),m(this.#u),e=>m(this.#u)(void 0,e)}get finally(){return this.start(),m(this.#u),e=>m(this.#u)(t=>(e(),t),t=>{throw e(),t})}get current(){return this.start(),m(this.#c)}get error(){return this.start(),m(this.#l)}get loading(){return this.start(),m(this.#n)}get ready(){return this.start(),m(this.#i)}refresh(){return delete d[this.#e],_(this.#o,this.#p())}set(e){delete d[this.#e];let t=this.#r.length>0;this.#f(),_(this.#i,!0),_(this.#n,!1),_(this.#l,void 0),_(this.#a,e),t||_(this.#o,Promise.resolve())}fail(e){delete d[this.#e],this.#f(),_(this.#n,!1),_(this.#l,e.body);let t=Promise.reject(e);t.catch(o),_(this.#o,t)}withOverride(e){m(this.#s).push(e);let t=(()=>{let t=m(this.#s).indexOf(e);t!==-1&&m(this.#s).splice(t,1)});return Object.defineProperty(t,Ar,{value:this.#e}),t}reset(){_(this.#o,null),delete d[this.#e]}get[Symbol.toStringTag](){return`Query`}},zr=class{#e;#t;#n=new FinalizationRegistry(({entry:e,id:t,payload:n})=>{this.deref(e,t,n)});constructor(e,t){this.#e=e,this.#t=t}ensure_entry=(e,t,n)=>{let r=this.#e.get(e);r||(r=new Map,this.#e.set(e,r));let i=r.get(t);if(!i){let e={proxy_count:0,resource:null,cleanup:null};e.cleanup=ee(()=>{e.resource=n()}),i=e,r.set(t,i)}return i};ref=(e,t,n,r)=>{t.proxy_count++,this.#n.register(e,{entry:t,id:n,payload:r})};manual_ref=(e,t,n)=>(e.proxy_count++,p(()=>this.deref(e,t,n)));deref=(e,t,n)=>{e.proxy_count--,le().then(()=>{let e=this.#e.get(t)?.get(n);!e||e.proxy_count>0||this.#r(t,n)})};#r=(e,t)=>{let n=this.#e.get(e),r=n?.get(t);r&&(this.#t?.(r.resource),r.cleanup(),n?.delete(t),n&&n.size===0&&this.#e.delete(e))}},$=new zr(l),Br=class{#e;#t;#n;#r;constructor(e,t,n){this.#e=e,this.#n=r(t),this.#t=s(e,this.#n),Object.defineProperty(this,jr,{value:this.#t}),this.#r=n;let i=this.#t,a=this.#n,o=$.ensure_entry(this.#e,this.#n,()=>new Rr(i,()=>n(a)));$.ref(this,o,this.#e,this.#n)}#i(){let e=l.get(this.#e)?.get(this.#n);if(!e)throw Error(`No cached query found. This should be impossible. Please file a bug report.`);return e.resource}get current(){return this.#i().current}get error(){return this.#i().error}get loading(){return this.#i().loading}get ready(){return this.#i().ready}refresh(){return this.#i().refresh()}set(e){this.#i().set(e)}withOverride(e){let t=this.#r,n=this.#t,r=this.#n,i=$.ensure_entry(this.#e,this.#n,()=>new Rr(n,()=>t(r))),a=$.manual_ref(i,this.#e,this.#n),o=i.resource.withOverride(e),s=(()=>{o(),a()});return Object.defineProperty(s,Ar,{value:o[Ar]}),s}get then(){Mr(l,$,this.#e,this.#n);let e=this.#i();return Nr(l,$,this.#e,this.#n,e.then.bind(e))}get catch(){Mr(l,$,this.#e,this.#n);let e=this.#i();return Nr(l,$,this.#e,this.#n,e.catch.bind(e))}get finally(){Mr(l,$,this.#e,this.#n);let e=this.#i();return Nr(l,$,this.#e,this.#n,e.finally.bind(e))}get[Symbol.toStringTag](){return`QueryProxy`}};function Vr(e){let t=t=>new Br(e,t,async t=>{let n=await Pr(`${ie}/${se}/remote/${e}${t?`?payload=${t}`:``}`);n.redirect&&await f(n.redirect)});return Object.defineProperty(t,kr,{value:e}),t}new zr(t,e=>e.destroy());var Hr=Vr(`1j2tn2d/getSessions`),Ur=class{url;constructor(e){this.url=e}async list(){let e=Hr();return await e.refresh(),e.current}start(e,t){return Q(this.url,{method:`POST`,body:{name:e,run:t}})}async end(){await Z(`${this.url}/end`,{method:`POST`})}async delete(e){await Z(`${this.url}/${e}`,{method:`DELETE`})}},Wr=1e3,Gr=class{streamUrl;speechUrl;constructor(e,t){this.streamUrl=e,this.speechUrl=t}open(e,t,n){return n.onState(`connecting`),t?this.follow(e,n):this.read(e,n)}listen(e,t){let n=this.stream(`since=${e}`,e=>t.onEntry(e));return this.report(n,e=>t.onState(e)),()=>n.close()}follow(e,t){let n=this.stream(`session=${encodeURIComponent(String(e))}&since=0`,e=>t.onEntry(e));return this.report(n,e=>t.onState(e)),n.addEventListener(`clear`,()=>t.onClear()),()=>n.close()}report(e,t){e.onopen=()=>t(`live`),e.onerror=()=>t(e.readyState===EventSource.CLOSED?`failed`:`reconnecting`)}stream(e,t){let n=new EventSource(`${this.streamUrl}?${e}`);return n.addEventListener(`entry`,e=>{let n;try{n=JSON.parse(e.data)}catch{return}let r=dr(er,n);r.ok&&t(r.value)}),n}read(e,t){let n=new AbortController;return(async()=>{let r=0;for(;;){let i=new URLSearchParams({session:String(e),since:String(r),limit:String(Wr)}),{entries:a,hasMore:o}=await Q(`${this.speechUrl}?${i}`,{signal:n.signal});t.onEntries(a);let s=a.at(-1);if(!o||s===void 0)return;r=s.seq}})().then(()=>t.onState(`ended`),()=>{n.signal.aborted||t.onState(`failed`)}),()=>n.abort()}},Kr=class{url;constructor(e){this.url=e}fetch(){return Q(this.url)}};function qr(e){return e===`1`||e!==`0`&&null}function Jr(e){return e?`1`:`0`}var Yr=`sr-sessions-collapsed`,Xr=class{read(){try{return qr(localStorage.getItem(Yr))}catch{return null}}write(e){try{localStorage.setItem(Yr,Jr(e))}catch{}}};function Zr(e){let t=y(null),n=y(!0),r=y(!1),i=null;function a(){return i||(_(r,!0),i=e.fetch().then(e=>{_(t,e,!0),_(n,!0)}).catch(()=>{_(n,!1)}).finally(()=>{i=null,_(r,!1)}),i)}return{get loaded(){return m(t)!==null},get reachable(){return m(n)},get reading(){return m(r)},get active(){return m(t)?.active??null},get saved(){return m(t)?.saved??null},get overrides(){return m(t)?.overrides??{}},get pending(){return m(t)===null?[]:mr(m(t).active,m(t).saved)},seed(e){e!==null&&(_(t,e,!0),_(n,!0))},refresh(){return a()},async save(t){await e.update(t),await i,await a()}}}function Qr(e){let t=y(!0);return{get collapsed(){return m(t)},init(){_(t,e.read()??!1,!0)},toggle(){_(t,!m(t)),e.write(m(t))}}}var $r=3e3;function ei(e){let t=y(h([])),n=y(null),r=y(0),i=y(!0),a=y(!1),o=y(h(Date.now())),s=null;function c(e,i=Date.now()){_(t,e.sessions,!0),_(n,e.currentId,!0),_(r,e.outsideEntries,!0),_(o,i,!0),_(a,!0)}function l(){return s||(s=e.list().then(e=>{c(e),_(i,!0)}).catch(()=>{_(i,!1)}).finally(()=>{s=null}),s)}async function u(){await s,await l()}return{get sessions(){return m(t)},get currentId(){return m(n)},get outsideEntries(){return m(r)},get loaded(){return m(a)},get reachable(){return m(i)},get now(){return m(o)},seed(e,t){e!==null&&!m(a)&&c(e,t)},init(){l();let e=setInterval(()=>{m(n)!==null&&_(o,Date.now(),!0)},1e3),t=setInterval(()=>void l(),$r);return()=>{clearInterval(e),clearInterval(t)}},refresh(){return u()},async start(t,n){let r=await e.start(t,n);return await u(),r},async end(){await e.end(),await u()},async delete(t){await e.delete(t),await u()}}}var ti=5e3;function ni(e,t){return t===null?e===`none`:e===t}function ri(e,t){return ai(e,t)}function ii(e,t){return e!==`none`&&e!==t}function ai(e,t){return e===`none`||e===t}function oi(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 si(e,t){if(e===`none`)return`Records outside sessions`;let n=t.find(t=>t.id===e);return n===void 0?`#${e}`:`${n.name} #${n.id}`}function ci(e,t){let n=y([]),r=y(`connecting`),i=null;function a(){i?.(),i=null}function o(e){let t=m(n).at(-1)?.seq??0,r=[];for(let n of e)n.seq<=t||(r.push(n),t=n.seq);if(r.length===0)return;let i=[...m(n),...r];_(n,i.length>5e3?i.slice(i.length-ti):i)}return{get entries(){return m(n)},get connection(){return m(r)},open(t,s){return a(),_(n,[]),_(r,`connecting`),i=e.open(t,s,{onEntry:e=>o([e]),onEntries:o,onClear(){_(n,[])},onState(e){_(r,e,!0)}}),a},clear(e){return t.clear(e)},addMarker(e){return t.addMarker(e)}}}function li(e){let t=y(null),n=y(!0),r=y(!1),i=null;function a(){return i||(_(r,!0),i=e.fetch().then(e=>{_(t,e,!0),_(n,!0)}).catch(()=>{_(n,!1)}).finally(()=>{_(r,!1),i=null}),i)}return{get status(){return m(t)},get reachable(){return m(n)},get loading(){return m(r)},init(e){e&&m(t)===null&&_(t,e,!0),a()},retry(){return a()}}}function ui(e){let t=y(h(mn));return{get current(){return m(t)},init(){_(t,e.read()??`light`,!0)},set(n){_(t,n,!0),e.write(n)}}}var di=`Insert+T`,fi=`ui: ${di}`,pi=3e4,mi=5e3,hi=1e3,gi=`screen-reader-heading`,_i=`https://github.com/TimoSto/screenreader-speech-capture/blob`;function vi(e,t){return`${_i}/${e!==null&&/^\d+\.\d+\.\d+$/.test(e)?`@screenreader-speech-capture/bridge@${e}`:`main`}/docs/${t}`}var yi=new Map([[`robotjs`,`https://github.com/jitsi/robotjs`],[`koffi`,`https://github.com/Koromix/koffi`]]);function bi(e){let t=(t,n)=>({label:t,href:vi(e.bridge.version,n)}),n=(e,n,r,i,a,o=null)=>({id:e,label:n,tone:r,state:i,library:o,help:r===`ok`?null:`path`in a?t(a.label,a.path):a}),{listening:r,port:i,encoding:a,connections:o}=e.tcp,s=[...new Set(o.flatMap(({voice:e})=>e===null?[]:[e]))],c=o.length===1?`1 connection`:`${o.length} connections`,l=(e,t,{available:r,backend:i,reason:a},o)=>n(e,t,r?`ok`:`warning`,r?`Available`:`Not available: ${a??`no reason given`}`,o,i===null?null:{name:i,href:yi.get(i)??null}),u=(e,t,{state:r,version:i})=>{let[a,o]={running:[`ok`,`Running, version ${i}`],starting:[`neutral`,`Starting, version ${i}`],stopped:[`neutral`,`Off`],crashed:[`warning`,`Crashed, version ${i}. It restarts by itself.`],failed:[`warning`,`Failed, version ${i}`]}[r];return n(e,t,a,o,{label:`Child services`,path:`usage/operations.md#child-service-crashes`})};return[n(`listener`,`Speech listener`,r?`ok`:`warning`,r?`Listening on port ${i} (${a})`:`Not listening on port ${i}`,{label:`Troubleshooting`,path:`usage/troubleshooting.md#speech`}),n(`voice`,`Voice connected`,o.length>0?`ok`:`neutral`,o.length>0?`${c}${s.length>0?` (voice ${s.join(`, `)})`:``}`:`None yet: the voice connects with its first words`,{label:`Select the voice`,screenReader:!0}),l(`input`,`Native input`,e.input.native,{label:`Troubleshooting`,path:`usage/troubleshooting.md#browser-and-input`}),l(`focus`,`Window focus`,e.input.focus,{label:`Bringing the browser to the front`,path:`usage/native-input.md#bringing-the-browser-to-the-front`}),u(`playwright`,`Playwright server`,e.playwright),u(`mcp`,`Playwright MCP`,e.mcp)]}function xi(e,t,n,r){let i=y(`idle`),a=y(`manual`),o=y([]),s=y(!1),c=y(``),l=0,u=null,d;function f(){l++,clearTimeout(d),u?.(),u=null,_(s,!1)}function p(e){f(),_(i,`failed`),_(c,e,!0)}function h(e){d=setTimeout(()=>{m(s)?p(`The connection to the bridge was lost.`):(f(),_(i,`silent`))},e)}return{get phase(){return m(i)},get via(){return m(a)},get entries(){return m(o)},get reconnecting(){return m(s)},get failure(){return m(c)},async start(ee){f();let g=l;_(a,ee,!0),_(i,`starting`),_(o,[]),_(c,``);let te;try{te=(await e.fetch()).buffer.lastSeq??0}catch{g===l&&p(`The bridge is not reachable.`);return}if(g!==l)return;let ne=ee===`manual`;if(_(i,`listening`),u=t.listen(te,{onEntry(e){g===l&&(e.kind===`marker`?e.text===`ui: Insert+T`&&(ne=!0):ne&&(_(o,[...m(o),e]),_(i,`heard`),clearTimeout(d),m(o).length>=5?f():d=setTimeout(f,hi)))},onState(e){g===l&&(e===`failed`?m(i)===`heard`?f():p(`The speech stream is not available.`):_(s,e===`reconnecting`))}}),ee===`manual`)h(pi);else{try{if(await r.addMarker(fi),g!==l)return;await n.press(di)}catch(e){g===l&&m(o).length===0&&p(e instanceof Error?e.message:`The keys could not be sent.`);return}g===l&&m(o).length===0&&h(mi)}},stop(){f(),_(i,`idle`),_(o,[]),_(c,``)}}}function Si(){let e=new Kr(v(`/api/status`)),t=new Gr(v(`/api/speech/stream`),v(`/api/speech`)),n=new Or(v(`/api/markers`),v(`/api/speech`)),r=new fn;return{theme:ui(new vn),status:li(e),config:Zr(new Er(v(`/api/config`))),sessions:ei(new Ur(v(`/api/sessions`))),speech:ci(t,n),voiceCheck:xi(e,t,new Dr(v(`/api/input/keys`)),n),sessionsPane:Qr(new Xr),clipboard:r}}var Ci=Symbol(`app-stores`);function wi(){return re(Ci,Si())}function Ti(){let e=ne(Ci);if(e===void 0)throw Error(`appStores() needs provideAppStores() in a parent`);return e}export{jt as A,nt as B,cn as C,nn as D,sn as E,Dt as F,Ie as G,pt as H,F as I,_e as J,Fe as K,j as L,At as M,Ot as N,an as O,kt as P,mt as R,dn as S,R as T,tt as U,et as V,Le as W,b as X,ue as Y,mr as _,bi as a,Hn as b,ri as c,ai as d,si as f,gr as g,vr as h,gi as i,Mt as j,Zt as k,ii as l,Sr as m,wi as n,vi as o,fr as p,C as q,di as r,ni as s,Ti as t,oi as u,Wn as v,un as w,hn as x,K as y,A as z};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{D as e,E as t,I as n,J as r,K as i,L as a,M as o,O as s,S as c,V as l,X as u,Y as d,k as f,q as p,w as m}from"./
|
|
1
|
+
import{D as e,E as t,I as n,J as r,K as i,L as a,M as o,O as s,S as c,V as l,X as u,Y as d,k as f,q as p,w as m}from"./Cwz551Q0.js";import{n as h,t as g}from"./DoG5cwE3.js";function _(e,t=!0){return t&&getComputedStyle(e).getPropertyValue(`direction`).trim()===`rtl`}var v=f(c(m(t(n)))),y=class extends v{constructor(){super(),this.softDisabled=!1,this.flipIconInRtl=!1,this.href=``,this.download=``,this.target=``,this.ariaLabelSelected=``,this.toggle=!1,this.selected=!1,this.flipIcon=_(this,this.flipIconInRtl),s(this,`click`),this.addEventListener(`click`,t=>{if(this.softDisabled||this.disabled&&this.href){t.stopImmediatePropagation(),t.preventDefault();return}let n=this.selected;e(t,()=>{!this.toggle||this.disabled||t.defaultPrevented||(this.selected=!n,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?g`div`:g`button`,{ariaLabel:t,ariaHasPopup:n,ariaExpanded:r}=this,i=t&&this.ariaLabelSelected,s=this.toggle?this.selected:a,c=a;return this.href||(c=i&&this.selected?this.ariaLabelSelected:t),h`<${e}
|
|
2
2
|
class="icon-button ${o(this.getRenderClasses())}"
|
|
3
3
|
id="button"
|
|
4
4
|
aria-label="${c||a}"
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{A as e,I as t,J as n,K as r,L as i,M as a,V as o,W as s,X as c,Y as l,k as u,q as d}from"./
|
|
1
|
+
import{A as e,I as t,J as n,K as r,L as i,M as a,V as o,W as s,X as c,Y as l,k as u,q as d}from"./Cwz551Q0.js";import{t as f}from"./Bq3k_s8n.js";var p=class extends t{constructor(){super(...arguments),this.inset=!1,this.insetStart=!1,this.insetEnd=!1}};c([d({type:Boolean,reflect:!0})],p.prototype,`inset`,void 0),c([d({type:Boolean,reflect:!0,attribute:`inset-start`})],p.prototype,`insetStart`,void 0),c([d({type:Boolean,reflect:!0,attribute:`inset-end`})],p.prototype,`insetEnd`,void 0);var m=n`:host{box-sizing:border-box;color:var(--md-divider-color, var(--md-sys-color-outline-variant, #cac4d0));display:flex;height:var(--md-divider-thickness, 1px);width:100%}:host([inset]),:host([inset-start]){padding-inline-start:16px}:host([inset]),:host([inset-end]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%}@media(forced-colors: active){:host::before{background:CanvasText}}
|
|
2
2
|
`;m.styleSheet;var h=class extends p{};h.styles=[m],h=c([l(`md-divider`)],h);var g={dialog:[[[{transform:`translateY(-50px)`},{transform:`translateY(0)`}],{duration:500,easing:e.EMPHASIZED}]],scrim:[[[{opacity:0},{opacity:.32}],{duration:500,easing:`linear`}]],container:[[[{opacity:0},{opacity:1}],{duration:50,easing:`linear`,pseudoElement:`::before`}],[[{height:`35%`},{height:`100%`}],{duration:500,easing:e.EMPHASIZED,pseudoElement:`::before`}]],headline:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:`linear`,fill:`forwards`}]],content:[[[{opacity:0},{opacity:0,offset:.2},{opacity:1}],{duration:250,easing:`linear`,fill:`forwards`}]],actions:[[[{opacity:0},{opacity:0,offset:.5},{opacity:1}],{duration:300,easing:`linear`,fill:`forwards`}]]},_={dialog:[[[{transform:`translateY(0)`},{transform:`translateY(-50px)`}],{duration:150,easing:e.EMPHASIZED_ACCELERATE}]],scrim:[[[{opacity:.32},{opacity:0}],{duration:150,easing:`linear`}]],container:[[[{height:`100%`},{height:`35%`}],{duration:150,easing:e.EMPHASIZED_ACCELERATE,pseudoElement:`::before`}],[[{opacity:`1`},{opacity:`0`}],{delay:100,duration:50,easing:`linear`,pseudoElement:`::before`}]],headline:[[[{opacity:1},{opacity:0}],{duration:100,easing:`linear`,fill:`forwards`}]],content:[[[{opacity:1},{opacity:0}],{duration:100,easing:`linear`,fill:`forwards`}]],actions:[[[{opacity:1},{opacity:0}],{duration:100,easing:`linear`,fill:`forwards`}]]},v=u(t),y=class extends v{get open(){return this.isOpen}set open(e){e!==this.isOpen&&(this.isOpen=e,e?(this.setAttribute(`open`,``),this.show()):(this.removeAttribute(`open`),this.close()))}constructor(){super(),this.quick=!1,this.returnValue=``,this.noFocusTrap=!1,this.getOpenAnimation=()=>g,this.getCloseAnimation=()=>_,this.isOpen=!1,this.isOpening=!1,this.isConnectedPromise=this.getIsConnectedPromise(),this.isAtScrollTop=!1,this.isAtScrollBottom=!1,this.nextClickIsFromContent=!1,this.hasHeadline=!1,this.hasActions=!1,this.hasIcon=!1,this.escapePressedWithoutCancel=!1,this.treewalker=document.createTreeWalker(this,NodeFilter.SHOW_ELEMENT),this.addEventListener(`submit`,this.handleSubmit)}async show(){this.isOpening=!0,await this.isConnectedPromise,await this.updateComplete;let e=this.dialog;e.open||!this.isOpening?this.isOpening=!1:this.dispatchEvent(new Event(`open`,{cancelable:!0}))?(e.showModal(),this.open=!0,this.scroller&&(this.scroller.scrollTop=0),this.querySelector(`[autofocus]`)?.focus(),await this.animateDialog(this.getOpenAnimation()),this.dispatchEvent(new Event(`opened`)),this.isOpening=!1):(this.open=!1,this.isOpening=!1)}async close(e=this.returnValue){if(this.isOpening=!1,!this.isConnected){this.open=!1;return}await this.updateComplete;let t=this.dialog;if(!t.open||this.isOpening){this.open=!1;return}let n=this.returnValue;this.returnValue=e,this.dispatchEvent(new Event(`close`,{cancelable:!0}))?(await this.animateDialog(this.getCloseAnimation()),t.close(e),this.open=!1,this.dispatchEvent(new Event(`closed`))):this.returnValue=n}connectedCallback(){super.connectedCallback(),this.isConnectedPromiseResolve()}disconnectedCallback(){super.disconnectedCallback(),this.isConnectedPromise=this.getIsConnectedPromise()}render(){let e=this.open&&!(this.isAtScrollTop&&this.isAtScrollBottom),t={"has-headline":this.hasHeadline,"has-actions":this.hasActions,"has-icon":this.hasIcon,scrollable:e,"show-top-divider":e&&!this.isAtScrollTop,"show-bottom-divider":e&&!this.isAtScrollBottom},n=this.open&&!this.noFocusTrap,r=o`
|
|
3
3
|
<div
|
|
4
4
|
class="focus-trap"
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{E as e,G as t,I as n,J as r,L as i,S as a,V as o,W as s,X as c,Y as l,k as u,q as d,w as f}from"./
|
|
1
|
+
import{E as e,G as t,I as n,J as r,L as i,S as a,V as o,W as s,X as c,Y as l,k as u,q as d,w as f}from"./Cwz551Q0.js";function p(e){return(n,r)=>{let{slot:i,selector:a}=e??{},o=`slot`+(i?`[name=${i}]`:`:not([name])`);return t(n,r,{get(){let t=(this.renderRoot?.querySelector(o))?.assignedElements(e)??[];return a===void 0?t:t.filter(e=>e.matches(a))}})}}function m(e){let t=new MouseEvent(`click`,{bubbles:!0});return e.dispatchEvent(t),t}function h(e){return e.currentTarget!==e.target||e.composedPath()[0]!==e.target||e.target.disabled?!1:!g(e)}function g(e){let t=_;return t&&(e.preventDefault(),e.stopImmediatePropagation()),v(),t}var _=!1;async function v(){_=!0,await null,_=!1}var y=u(a(f(e(n)))),b=class extends y{constructor(){super(),this.softDisabled=!1,this.href=``,this.download=``,this.target=``,this.trailingIcon=!1,this.hasIcon=!1,this.addEventListener(`click`,this.handleClick.bind(this))}focus(){this.buttonElement?.focus()}blur(){this.buttonElement?.blur()}render(){let e=this.disabled||this.softDisabled,t=this.href?this.renderLink():this.renderButton(),n=this.href?`link`:`button`;return o`
|
|
2
2
|
${this.renderElevationOrOutline?.()}
|
|
3
3
|
<div class="background"></div>
|
|
4
4
|
<md-focus-ring part="focus-ring" for=${n}></md-focus-ring>
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{V as e}from"./
|
|
1
|
+
import{V as e}from"./Cwz551Q0.js";var t=Symbol.for(``),n=e=>{if(e?.r===t)return e?._$litStatic$},r=(e,...n)=>({_$litStatic$:n.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:t}),i=new Map,a=(e=>(t,...r)=>{let a=r.length,o,s,c=[],l=[],u,d=0,f=!1;for(;d<a;){for(u=t[d];d<a&&(s=r[d],(o=n(s))!==void 0);)u+=o+t[++d],f=!0;d!==a&&l.push(s),c.push(u),d++}if(d===a&&c.push(t[a]),f){let e=c.join(`$$lit$$`);(t=i.get(e))===void 0&&(c.raw=c,i.set(e,t=c)),r=l}return e(t,...r)})(e);export{a as n,r as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
� d��t�{�Ș ���R���t��s�nj!���Ik�X�S�h`a<�yf�0vC��90l��*W+���m�������%3��<L��EYE�2������%�}�Y�a��ugc1��_7Qd�d� �{��� Ɩ�*�P���'N�=��b���+u���Q���;6 �v8��([ܔ��"0}�������ɨ�ګA�W�%�y3���q�eb������fL|�0�"���d�j���y��;�;�����:q�<1&"��ͼ(Ǒښ��j���fӹ�
|
|
2
|
+
^��[����u��j
|
|
3
|
+
�S���Cͱ�"�8@��`z����5s�ʒ-Ż�3̒�H�֠��i\B�;Q9"O���{�<�/�CϺ����Ђ����G�������8�����p�H�g ��@�G��.ᆁ�re��,
|
|
Binary file
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{J as e,V as t,X as n,Y as r}from"./Cwz551Q0.js";import{n as i,t as a}from"./Dk73DTz3.js";import{n as o}from"./Bq3k_s8n.js";var s=class extends i{renderElevationOrOutline(){return t`<md-elevation part="elevation"></md-elevation>`}},c=e`: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)}
|
|
2
|
+
`;c.styleSheet;var l=class extends s{};l.styles=[a,o,c],l=n([r(`md-filled-button`)],l);var u=class extends i{renderElevationOrOutline(){return t`<div class="outline"></div>`}},d=e`:host{--_container-height: var(--md-outlined-button-container-height, 40px);--_disabled-label-text-color: var(--md-outlined-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-button-disabled-label-text-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-button-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-button-disabled-outline-opacity, 0.12);--_focus-label-text-color: var(--md-outlined-button-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-label-text-color: var(--md-outlined-button-hover-label-text-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-color: var(--md-outlined-button-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_hover-state-layer-opacity: var(--md-outlined-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-outlined-button-label-text-color, var(--md-sys-color-primary, #6750a4));--_label-text-font: var(--md-outlined-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-outlined-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-outlined-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_outline-color: var(--md-outlined-button-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-button-outline-width, 1px);--_pressed-label-text-color: var(--md-outlined-button-pressed-label-text-color, var(--md-sys-color-primary, #6750a4));--_pressed-outline-color: var(--md-outlined-button-pressed-outline-color, var(--md-sys-color-outline, #79747e));--_pressed-state-layer-color: var(--md-outlined-button-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--md-outlined-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-outlined-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-outlined-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-outlined-button-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_hover-icon-color: var(--md-outlined-button-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-color: var(--md-outlined-button-icon-color, var(--md-sys-color-primary, #6750a4));--_icon-size: var(--md-outlined-button-icon-size, 18px);--_pressed-icon-color: var(--md-outlined-button-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_container-shape-start-start: var(--md-outlined-button-container-shape-start-start, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-outlined-button-container-shape-start-end, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-outlined-button-container-shape-end-end, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-outlined-button-container-shape-end-start, var(--md-outlined-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-outlined-button-leading-space, 24px);--_trailing-space: var(--md-outlined-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-outlined-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-outlined-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-outlined-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-outlined-button-with-trailing-icon-trailing-space, 16px);--_container-color: none;--_disabled-container-color: none;--_disabled-container-opacity: 0}.outline{inset:0;border-style:solid;position:absolute;box-sizing:border-box;border-color:var(--_outline-color);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)}:host(:active) .outline{border-color:var(--_pressed-outline-color)}:host(:is([disabled],[soft-disabled])) .outline{border-color:var(--_disabled-outline-color);opacity:var(--_disabled-outline-opacity)}@media(forced-colors: active){:host(:is([disabled],[soft-disabled])) .background{border-color:GrayText}:host(:is([disabled],[soft-disabled])) .outline{opacity:1}}.outline,md-ripple{border-width:var(--_outline-width)}md-ripple{inline-size:calc(100% - 2*var(--_outline-width));block-size:calc(100% - 2*var(--_outline-width));border-style:solid;border-color:rgba(0,0,0,0)}
|
|
3
|
+
`;d.styleSheet;var f=class extends u{};f.styles=[a,d],f=n([r(`md-outlined-button`)],f);
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.IqK6bsxB.js","../chunks/0FroJ-XN.js","./payload.DSmR2FwN.js","../chunks/D0famktY.js","../chunks/DHsTyp2W.js","../chunks/B_ZElYu_.js","../chunks/Cwz551Q0.js","../chunks/Dvxhfd7j.js","../chunks/DJvJc_zO.js","../chunks/DoG5cwE3.js","../chunks/Bvlvl8SZ.js","../assets/0.ONZWQgDA.css","../nodes/1.C81neQJL.js","../nodes/2.CmlyeAx_.js","../chunks/D-2Nx62w.js","../assets/Pane.Dgdg5KMw.css","../assets/2.DSVNnDlO.css","../nodes/3.DYZ3H5TS.js","../chunks/Bq3k_s8n.js","../chunks/Dk73DTz3.js","../chunks/DU8ibkb0.js","../chunks/CEGGem4o.js","../assets/3.WduKm4aT.css","../nodes/4.Lwlmq1AY.js","../chunks/hhZsYtkz.js","../assets/4.DEk4yqpA.css","../nodes/5.rBMVkFpN.js","../chunks/CVpgcnu3.js","../assets/ExternalLink.CYXazpKA.css","../assets/5.YyxFzHED.css","../nodes/6.nui9awM2.js","../assets/6.C0Nhvs_m.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as e}from"../chunks/D0famktY.js";import{t}from"../chunks/DUTjbZNf.js";function n(e){let t={};for(let[n,i]of Object.entries(e))t[n]=r(i);return t}function r(t){if(t&&(typeof t==`object`||typeof t==`function`)&&`~standard`in t)return t;if(typeof t==`function`)return{"~standard":{validate(e){let n=t(e);return n===void 0?{issues:[{message:`Invalid param`}]}:n instanceof Promise?n:{value:n}}}};e()}var i=n({id:e=>{if(!/^[1-9]\d*$/.test(e))return;let t=Number(e);return Number.isSafeInteger(t)?t:void 0}}),a=[()=>t(()=>import(`../nodes/0.IqK6bsxB.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url),()=>t(()=>import(`../nodes/1.C81neQJL.js`),__vite__mapDeps([12,1,2,3,5]),import.meta.url),()=>t(()=>import(`../nodes/2.CmlyeAx_.js`),__vite__mapDeps([13,1,2,3,4,5,14,15,10,16]),import.meta.url),()=>t(()=>import(`../nodes/3.DYZ3H5TS.js`),__vite__mapDeps([17,1,2,3,7,4,5,6,18,19,8,9,20,21,22]),import.meta.url),()=>t(()=>import(`../nodes/4.Lwlmq1AY.js`),__vite__mapDeps([23,1,2,3,24,6,7,4,19,18,21,9,14,15,25]),import.meta.url),()=>t(()=>import(`../nodes/5.rBMVkFpN.js`),__vite__mapDeps([26,1,2,3,24,6,7,4,19,18,27,28,20,29]),import.meta.url),()=>t(()=>import(`../nodes/6.nui9awM2.js`),__vite__mapDeps([30,1,2,3,5,4,19,6,7,27,28,31]),import.meta.url)],o=[0],s={"/":[-4],"/settings":[-5],"/setup":[5,[2]],"/setup/instructions":[-7,[2]]},c={handleError:(({kind:e,error:t})=>{e===`unknown`&&console.error(t)}),reroute:(()=>{}),transport:{}},l=Object.fromEntries(Object.entries(c.transport).map(([e,t])=>[e,t.decode])),u=Object.fromEntries(Object.entries(c.transport).map(([e,t])=>[e,t.encode])),d=!1,f=(e,t)=>l[e](t),p=()=>t(()=>import(`../chunks/Beqi9dRN.js`).then(e=>e.default),[],import.meta.url);export{f as decode,l as decoders,s as dictionary,u as encoders,p as get_error_template,d as hash,c as hooks,i as matchers,a as nodes,o as server_loads};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,D as t,E as n,G as r,H as i,J as a,L as o,M as s,N as c,P as l,S as u,T as d,V as f,W as p,X as m,Y as h,Z as g,_t as _,b as v,dt as y,j as b,k as x,lt as S,mt as C,n as w,ot as T,pt as E,s as D,st as O,ut as k,vt as A,z as j}from"../chunks/0FroJ-XN.js";import"../chunks/DHsTyp2W.js";import"../chunks/B_ZElYu_.js";import{n as M,t as N}from"../chunks/Cwz551Q0.js";import{t as P}from"../chunks/DJvJc_zO.js";import{t as F}from"../chunks/Bvlvl8SZ.js";var I=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='44'%20height='44'%20viewBox='0%200%2044%2044'%3e%3ctitle%3eSpeech%20Capture%3c/title%3e%3crect%20width='44'%20height='44'%20rx='14'%20fill='%23415f91'/%3e%3cpath%20d='M4%2010v4M8%206v12M12%203v18M16%208v8M20%2011v2'%20transform='translate(10%2010)'%20fill='none'%20stroke='%23fff'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e`,L=new URL(`../assets/material-symbols-outlined-latin-400-normal.BhEvR8fk.woff2`,import.meta.url).href,R=f(`<li><span class="face svelte-19wvxlf" aria-hidden="true"><span></span> <span class="chip-label svelte-19wvxlf"> </span></span> <span class="visually-hidden"> </span></li>`),z=f(`<ul aria-label="Bridge status" class="svelte-19wvxlf"></ul>`),B=f(`<!> <span class="visually-hidden" role="status"> </span>`,1);function V(t,n){C(n,!0);var r=B(),i=h(r),c=t=>{var r=z();x(r,21,()=>n.chips,e=>e.id,(t,n)=>{var r=R();let i;var s=a(r),c=a(s),l=g(c,2),u=m(l,!0);A(s);var f=g(s,2),p=m(f,!0);A(r),T(()=>{i=d(r,1,b(e(n).tone),`svelte-19wvxlf`,i,{down:e(n).down}),v(s,`title`,e(n).text),d(c,1,`dot ${e(n).dot??``}`,`svelte-19wvxlf`),o(u,e(n).text),o(p,e(n).description)}),j(t,r)}),A(r),j(t,r)};s(i,e=>{n.chips.length>0&&e(c)});var l=g(i,2),u=m(l,!0);T(()=>o(u,n.announcement)),j(t,r),E()}var H=f(`<md-icon-button><md-icon>refresh</md-icon></md-icon-button>`,2);function U(e,t){var n=H();u(n,`title`,`Refresh status`),u(n,`aria-label`,`Refresh status`),d(n,1,`svelte-5q7qd7`);var i=a(n);u(i,`aria-hidden`,`true`);let o;A(n),T(()=>o=d(i,1,`svelte-5q7qd7`,null,o,{spin:t.loading})),r(`click`,n,function(...e){t.onRetry?.apply(this,e)}),j(e,n)}p([`click`]);var W=`24px "Material Symbols Outlined"`;async function G(){try{await document.fonts.load(W)}catch{}document.documentElement.setAttribute(`data-icons-ready`,``)}function K(e,t){return t?e===null?[]:[q(`playwright`,`Playwright`,e.playwright),q(`mcp`,`MCP`,e.mcp)].filter(e=>e!==null):[{id:`bridge`,text:`Bridge unreachable`,tone:`error`,dot:`filled`,description:`Bridge unreachable`}]}function q(e,t,n){let r=`${t} ${n.version}`;switch(n.state){case`running`:return{id:e,text:r,tone:`ok`,dot:`filled`,description:`${r}, running`};case`crashed`:case`failed`:return{id:e,text:`${r} · ${n.state}`,tone:`warning`,dot:`filled`,description:`${r}, ${n.state}`};case`starting`:return{id:e,text:r,tone:`neutral`,dot:`hollow`,description:`${r}, starting`,down:!0};case`stopped`:return null}}function J(e,t){return t?e.filter(e=>e.tone===`error`||e.tone===`warning`).map(e=>`${e.description}.`).join(` `):`Bridge unreachable.`}var Y=f(`<!> <!>`,1);function X(t,n){C(n,!0);let r=N().status,i=y(()=>w.data.status),a=y(()=>r.status??e(i)),o=y(()=>K(e(a),r.reachable));c(()=>r.init(e(i)));var l=Y(),u=h(l);{let t=y(()=>J(e(o),r.reachable));V(u,{get chips(){return e(o)},get announcement(){return e(t)}})}var d=g(u,2),f=e=>{U(e,{get loading(){return r.loading},onRetry:()=>void r.retry()})};s(d,e=>{r.reachable||e(f)}),j(t,l),E()}var Z=f(`<header class="svelte-4j9s4f"><div class="logo-slot svelte-4j9s4f"><div class="logo svelte-4j9s4f"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 10v4M8 6v12M12 3v18M16 8v8M20 11v2"></path></svg></div></div> <div class="title svelte-4j9s4f"><span class="name svelte-4j9s4f">Speech Capture</span> <span class="meta svelte-4j9s4f"> </span></div> <!></header>`);function Q(e,t){var n=Z(),r=g(a(n),2),i=g(a(r),2),s=m(i,!0);A(r),X(g(r,2),{}),A(n),T(()=>o(s,t.host)),j(e,n)}var $=f(`<li><a data-sveltekit-reset="false" class="svelte-sxtjmn"><span><md-ripple></md-ripple> <md-icon> </md-icon></span> <span class="label svelte-sxtjmn"> </span></a></li>`,2),ee=f(`<nav aria-label="Pages" class="svelte-sxtjmn"><ul class="svelte-sxtjmn"></ul></nav> <span class="visually-hidden" role="status"> </span>`,1);function te(t,s){let c=i();C(s,!0);let l=k(``),f;O(()=>(s.currentPath,()=>{clearTimeout(f),S(l,``)}));function p(e,t){if(e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)return;let n=e.currentTarget;n.href===n.ownerDocument.URL&&(e.preventDefault(),clearTimeout(f),S(l,``),f=setTimeout(()=>S(l,`${t}, current page`),100))}function _(e){e.key===` `&&(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||(e.preventDefault(),e.repeat||e.currentTarget.click()))}var b=ee(),w=h(b),D=a(w);x(D,23,()=>s.items,e=>e.href,(t,n,i)=>{let l=y(()=>F(e(n),s.currentPath)),f=y(()=>`${c}-link-${e(i)}`),h=y(()=>`${e(f)}-label`);var b=$(),x=a(b),S=a(x);let C;var w=a(S);T(()=>u(w,`for`,e(f))),u(w,`aria-hidden`,`true`);var E=g(w,2);u(E,`aria-hidden`,`true`);var D=m(E,!0);A(S);var O=g(S,2),k=m(O,!0);A(x),A(b),T(()=>{v(x,`id`,e(f)),v(x,`href`,e(n).href),v(x,`aria-labelledby`,e(h)),v(x,`aria-current`,e(l)?`page`:void 0),C=d(S,1,`indicator svelte-sxtjmn`,null,C,{current:e(l)}),o(D,e(n).icon),v(O,`id`,e(h)),o(k,e(n).label)}),r(`click`,x,t=>p(t,e(n).label)),r(`keydown`,x,_),j(t,b)}),A(D),n(D,()=>P(`a`)),A(w);var M=g(w,2),N=m(M,!0);T(()=>o(N,e(l))),j(t,b),E()}p([`click`,`keydown`]);var ne=f(`<link rel="icon"/> <link rel="preload" as="font" type="font/woff2" crossorigin="anonymous"/> <meta name="color-scheme" content="light dark"/>`,1),re=f(`<div class="app svelte-12qhfyh"><!> <div class="body svelte-12qhfyh"><!> <main class="svelte-12qhfyh"><!></main></div></div>`);function ie(e,n){C(n,!0);let{theme:r}=M(),i=[{href:D(`/`),label:`Monitor`,icon:`monitor`,exact:!0},{href:D(`/settings`),label:`Settings`,icon:`settings`},{href:D(`/setup`),label:`Setup`,icon:`build`}];c(()=>{r.init(),G()});var o=re();t(`12qhfyh`,e=>{var t=ne(),n=h(t),r=g(n,2);_(2),T(()=>{v(n,`href`,I),v(r,`href`,L)}),j(e,t)});var s=a(o);Q(s,{get host(){return w.url.host}});var u=g(s,2),d=a(u);te(d,{get items(){return i},get currentPath(){return w.url.pathname}});var f=g(d,2),p=a(f);l(p,()=>n.children),A(f),A(u),A(o),j(e,o),E()}export{ie as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as e,D as t,E as n,G as r,H as i,J as a,K as o,L as s,M as c,N as l,P as u,S as d,T as f,U as p,V as m,W as h,X as g,Y as _,Z as v,_ as y,_t as b,b as x,dt as S,g as C,it as w,j as T,k as E,lt as D,mt as O,n as k,nt as A,ot as j,pt as M,q as N,s as P,st as F,ut as I,v as L,vt as R,w as z,z as B}from"../chunks/0FroJ-XN.js";import{r as V}from"../chunks/Dvxhfd7j.js";import"../chunks/DHsTyp2W.js";import"../chunks/B_ZElYu_.js";import
|
|
1
|
+
import{$ as e,D as t,E as n,G as r,H as i,J as a,K as o,L as s,M as c,N as l,P as u,S as d,T as f,U as p,V as m,W as h,X as g,Y as _,Z as v,_ as y,_t as b,b as x,dt as S,g as C,it as w,j as T,k as E,lt as D,mt as O,n as k,nt as A,ot as j,pt as M,q as N,s as P,st as F,ut as I,v as L,vt as R,w as z,z as B}from"../chunks/0FroJ-XN.js";import{r as V}from"../chunks/Dvxhfd7j.js";import"../chunks/DHsTyp2W.js";import"../chunks/B_ZElYu_.js";import{J as H,V as U,X as W,Y as G,c as K,d as q,f as J,l as Y,s as X,t as ee,u as te,y as Z}from"../chunks/Cwz551Q0.js";import{n as ne}from"../chunks/Bq3k_s8n.js";import{n as re,t as ie}from"../chunks/Dk73DTz3.js";import{t as ae}from"../chunks/DJvJc_zO.js";import"../chunks/DU8ibkb0.js";import"../chunks/CEGGem4o.js";var oe=m(`<div class="banner svelte-qexebn" role="note"><md-icon>warning</md-icon> <p class="svelte-qexebn"><strong>The speech log is hidden from the screen reader.</strong> This page is opened on the bridge's own machine (loopback or its own network address): the screen
|
|
2
2
|
reader would read new rows aloud and they would be recorded again. Open the UI from another machine
|
|
3
3
|
to read the log with a screen reader.</p></div>`,2);function se(e){var t=oe(),n=a(t);d(n,`aria-hidden`,`true`),f(n,1,`svelte-qexebn`),b(2),R(t),B(e,t)}var ce=class extends re{renderElevationOrOutline(){return U`<md-elevation part="elevation"></md-elevation>`}},le=H`:host{--_container-color: var(--md-filled-tonal-button-container-color, var(--md-sys-color-secondary-container, #e8def8));--_container-elevation: var(--md-filled-tonal-button-container-elevation, 0);--_container-height: var(--md-filled-tonal-button-container-height, 40px);--_container-shadow-color: var(--md-filled-tonal-button-container-shadow-color, var(--md-sys-color-shadow, #000));--_disabled-container-color: var(--md-filled-tonal-button-disabled-container-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-container-elevation: var(--md-filled-tonal-button-disabled-container-elevation, 0);--_disabled-container-opacity: var(--md-filled-tonal-button-disabled-container-opacity, 0.12);--_disabled-label-text-color: var(--md-filled-tonal-button-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-filled-tonal-button-disabled-label-text-opacity, 0.38);--_focus-container-elevation: var(--md-filled-tonal-button-focus-container-elevation, 0);--_focus-label-text-color: var(--md-filled-tonal-button-focus-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-container-elevation: var(--md-filled-tonal-button-hover-container-elevation, 1);--_hover-label-text-color: var(--md-filled-tonal-button-hover-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-color: var(--md-filled-tonal-button-hover-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-state-layer-opacity: var(--md-filled-tonal-button-hover-state-layer-opacity, 0.08);--_label-text-color: var(--md-filled-tonal-button-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_label-text-font: var(--md-filled-tonal-button-label-text-font, var(--md-sys-typescale-label-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-filled-tonal-button-label-text-line-height, var(--md-sys-typescale-label-large-line-height, 1.25rem));--_label-text-size: var(--md-filled-tonal-button-label-text-size, var(--md-sys-typescale-label-large-size, 0.875rem));--_label-text-weight: var(--md-filled-tonal-button-label-text-weight, var(--md-sys-typescale-label-large-weight, var(--md-ref-typeface-weight-medium, 500)));--_pressed-container-elevation: var(--md-filled-tonal-button-pressed-container-elevation, 0);--_pressed-label-text-color: var(--md-filled-tonal-button-pressed-label-text-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-color: var(--md-filled-tonal-button-pressed-state-layer-color, var(--md-sys-color-on-secondary-container, #1d192b));--_pressed-state-layer-opacity: var(--md-filled-tonal-button-pressed-state-layer-opacity, 0.12);--_disabled-icon-color: var(--md-filled-tonal-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-filled-tonal-button-disabled-icon-opacity, 0.38);--_focus-icon-color: var(--md-filled-tonal-button-focus-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_hover-icon-color: var(--md-filled-tonal-button-hover-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-color: var(--md-filled-tonal-button-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_icon-size: var(--md-filled-tonal-button-icon-size, 18px);--_pressed-icon-color: var(--md-filled-tonal-button-pressed-icon-color, var(--md-sys-color-on-secondary-container, #1d192b));--_container-shape-start-start: var(--md-filled-tonal-button-container-shape-start-start, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-start-end: var(--md-filled-tonal-button-container-shape-start-end, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-end: var(--md-filled-tonal-button-container-shape-end-end, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_container-shape-end-start: var(--md-filled-tonal-button-container-shape-end-start, var(--md-filled-tonal-button-container-shape, var(--md-sys-shape-corner-full, 9999px)));--_leading-space: var(--md-filled-tonal-button-leading-space, 24px);--_trailing-space: var(--md-filled-tonal-button-trailing-space, 24px);--_with-leading-icon-leading-space: var(--md-filled-tonal-button-with-leading-icon-leading-space, 16px);--_with-leading-icon-trailing-space: var(--md-filled-tonal-button-with-leading-icon-trailing-space, 24px);--_with-trailing-icon-leading-space: var(--md-filled-tonal-button-with-trailing-icon-leading-space, 24px);--_with-trailing-icon-trailing-space: var(--md-filled-tonal-button-with-trailing-icon-trailing-space, 16px)}
|
|
4
4
|
`;le.styleSheet;var Q=class extends ce{};Q.styles=[ie,ne,le],Q=W([G(`md-filled-tonal-button`)],Q);var ue=m(`<p role="alert" class="failure svelte-qieqgw"> </p>`),de=m(`<md-dialog><div slot="headline">Clear speech?</div> <div slot="content"><p class="svelte-qieqgw">The speech of <strong> </strong> is removed from the bridge. The session keeps running.
|
|
Binary file
|
|
Binary file
|