scb-wc-test 0.1.83 → 0.1.85

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.
@@ -6,15 +6,15 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
6
6
  * @license
7
7
  * Copyright 2019 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const wi=globalThis,Ar=wi.ShadowRoot&&(wi.ShadyCSS===void 0||wi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ir=Symbol(),Yo=new WeakMap;let Xo=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==Ir)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Ar&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=Yo.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Yo.set(t,e))}return e}toString(){return this.cssText}};const Bs=o=>new Xo(typeof o=="string"?o:o+"",void 0,Ir),m=(o,...e)=>{const t=o.length===1?o[0]:e.reduce((i,r,s)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+o[s+1],o[0]);return new Xo(t,o,Ir)},Ms=(o,e)=>{if(Ar)o.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),r=wi.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=t.cssText,o.appendChild(i)}},Zo=Ar?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return Bs(t)})(o):o;/**
9
+ */const wi=globalThis,Ar=wi.ShadowRoot&&(wi.ShadyCSS===void 0||wi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Tr=Symbol(),Yo=new WeakMap;let Xo=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==Tr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(Ar&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=Yo.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Yo.set(t,e))}return e}toString(){return this.cssText}};const Bs=o=>new Xo(typeof o=="string"?o:o+"",void 0,Tr),m=(o,...e)=>{const t=o.length===1?o[0]:e.reduce((i,r,s)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+o[s+1],o[0]);return new Xo(t,o,Tr)},Ms=(o,e)=>{if(Ar)o.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),r=wi.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=t.cssText,o.appendChild(i)}},Zo=Ar?o=>o:o=>o instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return Bs(t)})(o):o;/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const{is:Fs,defineProperty:Hs,getOwnPropertyDescriptor:Ns,getOwnPropertyNames:qs,getOwnPropertySymbols:Vs,getPrototypeOf:Us}=Object,We=globalThis,Jo=We.trustedTypes,js=Jo?Jo.emptyScript:"",zr=We.reactiveElementPolyfillSupport,Nt=(o,e)=>o,Si={toAttribute(o,e){switch(e){case Boolean:o=o?js:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch{t=null}}return t}},Tr=(o,e)=>!Fs(o,e),Qo={attribute:!0,type:String,converter:Si,reflect:!1,useDefault:!1,hasChanged:Tr};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),We.litPropertyMetadata??(We.litPropertyMetadata=new WeakMap);let St=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Qo){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){const i=Symbol(),r=this.getPropertyDescriptor(e,i,t);r!==void 0&&Hs(this.prototype,e,r)}}static getPropertyDescriptor(e,t,i){const{get:r,set:s}=Ns(this.prototype,e)??{get(){return this[t]},set(n){this[t]=n}};return{get:r,set(n){const h=r==null?void 0:r.call(this);s==null||s.call(this,n),this.requestUpdate(e,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Qo}static _$Ei(){if(this.hasOwnProperty(Nt("elementProperties")))return;const e=Us(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Nt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Nt("properties"))){const t=this.properties,i=[...qs(t),...Vs(t)];for(const r of i)this.createProperty(r,t[r])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,r]of t)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const r=this._$Eu(t,i);r!==void 0&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const r of i)t.unshift(Zo(r))}else e!==void 0&&t.push(Zo(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i: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(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ms(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){var s;const i=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,i);if(r!==void 0&&i.reflect===!0){const n=(((s=i.converter)==null?void 0:s.toAttribute)!==void 0?i.converter:Si).toAttribute(t,i.type);this._$Em=e,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(e,t){var s,n;const i=this.constructor,r=i._$Eh.get(e);if(r!==void 0&&this._$Em!==r){const h=i.getPropertyOptions(r),p=typeof h.converter=="function"?{fromAttribute:h.converter}:((s=h.converter)==null?void 0:s.fromAttribute)!==void 0?h.converter:Si;this._$Em=r;const v=p.fromAttribute(t,h.type);this[r]=v??((n=this._$Ej)==null?void 0:n.get(r))??v,this._$Em=null}}requestUpdate(e,t,i){var r;if(e!==void 0){const s=this.constructor,n=this[e];if(i??(i=s.getPropertyOptions(e)),!((i.hasChanged??Tr)(n,t)||i.useDefault&&i.reflect&&n===((r=this._$Ej)==null?void 0:r.get(e))&&!this.hasAttribute(s._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:r,wrapped:s},n){i&&!(this._$Ej??(this._$Ej=new Map)).has(e)&&(this._$Ej.set(e,n??t??this[e]),s!==!0||n!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),r===!0&&this._$Em!==e&&(this._$Eq??(this._$Eq=new Set)).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[s,n]of r){const{wrapped:h}=n,p=this[s];h!==!0||this._$AL.has(s)||p===void 0||this.C(s,void 0,n,p)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(r=>{var s;return(s=r.hostUpdate)==null?void 0:s.call(r)}),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),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=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};St.elementStyles=[],St.shadowRootOptions={mode:"open"},St[Nt("elementProperties")]=new Map,St[Nt("finalized")]=new Map,zr==null||zr({ReactiveElement:St}),(We.reactiveElementVersions??(We.reactiveElementVersions=[])).push("2.1.1");/**
13
+ */const{is:Fs,defineProperty:Hs,getOwnPropertyDescriptor:Ns,getOwnPropertyNames:qs,getOwnPropertySymbols:Vs,getPrototypeOf:Us}=Object,We=globalThis,Jo=We.trustedTypes,js=Jo?Jo.emptyScript:"",Ir=We.reactiveElementPolyfillSupport,Nt=(o,e)=>o,Si={toAttribute(o,e){switch(e){case Boolean:o=o?js:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,e){let t=o;switch(e){case Boolean:t=o!==null;break;case Number:t=o===null?null:Number(o);break;case Object:case Array:try{t=JSON.parse(o)}catch{t=null}}return t}},zr=(o,e)=>!Fs(o,e),Qo={attribute:!0,type:String,converter:Si,reflect:!1,useDefault:!1,hasChanged:zr};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),We.litPropertyMetadata??(We.litPropertyMetadata=new WeakMap);let St=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Qo){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){const i=Symbol(),r=this.getPropertyDescriptor(e,i,t);r!==void 0&&Hs(this.prototype,e,r)}}static getPropertyDescriptor(e,t,i){const{get:r,set:s}=Ns(this.prototype,e)??{get(){return this[t]},set(n){this[t]=n}};return{get:r,set(n){const h=r==null?void 0:r.call(this);s==null||s.call(this,n),this.requestUpdate(e,h,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Qo}static _$Ei(){if(this.hasOwnProperty(Nt("elementProperties")))return;const e=Us(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Nt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Nt("properties"))){const t=this.properties,i=[...qs(t),...Vs(t)];for(const r of i)this.createProperty(r,t[r])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,r]of t)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const r=this._$Eu(t,i);r!==void 0&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const r of i)t.unshift(Zo(r))}else e!==void 0&&t.push(Zo(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i: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(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ms(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){var s;const i=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,i);if(r!==void 0&&i.reflect===!0){const n=(((s=i.converter)==null?void 0:s.toAttribute)!==void 0?i.converter:Si).toAttribute(t,i.type);this._$Em=e,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(e,t){var s,n;const i=this.constructor,r=i._$Eh.get(e);if(r!==void 0&&this._$Em!==r){const h=i.getPropertyOptions(r),p=typeof h.converter=="function"?{fromAttribute:h.converter}:((s=h.converter)==null?void 0:s.fromAttribute)!==void 0?h.converter:Si;this._$Em=r;const v=p.fromAttribute(t,h.type);this[r]=v??((n=this._$Ej)==null?void 0:n.get(r))??v,this._$Em=null}}requestUpdate(e,t,i){var r;if(e!==void 0){const s=this.constructor,n=this[e];if(i??(i=s.getPropertyOptions(e)),!((i.hasChanged??zr)(n,t)||i.useDefault&&i.reflect&&n===((r=this._$Ej)==null?void 0:r.get(e))&&!this.hasAttribute(s._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:r,wrapped:s},n){i&&!(this._$Ej??(this._$Ej=new Map)).has(e)&&(this._$Ej.set(e,n??t??this[e]),s!==!0||n!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),r===!0&&this._$Em!==e&&(this._$Eq??(this._$Eq=new Set)).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[s,n]of this._$Ep)this[s]=n;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[s,n]of r){const{wrapped:h}=n,p=this[s];h!==!0||this._$AL.has(s)||p===void 0||this.C(s,void 0,n,p)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(r=>{var s;return(s=r.hostUpdate)==null?void 0:s.call(r)}),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),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=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};St.elementStyles=[],St.shadowRootOptions={mode:"open"},St[Nt("elementProperties")]=new Map,St[Nt("finalized")]=new Map,Ir==null||Ir({ReactiveElement:St}),(We.reactiveElementVersions??(We.reactiveElementVersions=[])).push("2.1.1");/**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */const Ws={attribute:!0,type:String,converter:Si,reflect:!1,hasChanged:Tr},Ks=(o=Ws,e,t)=>{const{kind:i,metadata:r}=t;let s=globalThis.litPropertyMetadata.get(r);if(s===void 0&&globalThis.litPropertyMetadata.set(r,s=new Map),i==="setter"&&((o=Object.create(o)).wrapped=!0),s.set(t.name,o),i==="accessor"){const{name:n}=t;return{set(h){const p=e.get.call(this);e.set.call(this,h),this.requestUpdate(n,p,o)},init(h){return h!==void 0&&this.C(n,void 0,o,h),h}}}if(i==="setter"){const{name:n}=t;return function(h){const p=this[n];e.call(this,h),this.requestUpdate(n,p,o)}}throw Error("Unsupported decorator location: "+i)};function l(o){return(e,t)=>typeof t=="object"?Ks(o,e,t):((i,r,s)=>{const n=r.hasOwnProperty(s);return r.constructor.createProperty(s,i),n?Object.getOwnPropertyDescriptor(r,s):void 0})(o,e,t)}/**
17
+ */const Ws={attribute:!0,type:String,converter:Si,reflect:!1,hasChanged:zr},Ks=(o=Ws,e,t)=>{const{kind:i,metadata:r}=t;let s=globalThis.litPropertyMetadata.get(r);if(s===void 0&&globalThis.litPropertyMetadata.set(r,s=new Map),i==="setter"&&((o=Object.create(o)).wrapped=!0),s.set(t.name,o),i==="accessor"){const{name:n}=t;return{set(h){const p=e.get.call(this);e.set.call(this,h),this.requestUpdate(n,p,o)},init(h){return h!==void 0&&this.C(n,void 0,o,h),h}}}if(i==="setter"){const{name:n}=t;return function(h){const p=this[n];e.call(this,h),this.requestUpdate(n,p,o)}}throw Error("Unsupported decorator location: "+i)};function l(o){return(e,t)=>typeof t=="object"?Ks(o,e,t):((i,r,s)=>{const n=r.hasOwnProperty(s);return r.constructor.createProperty(s,i),n?Object.getOwnPropertyDescriptor(r,s):void 0})(o,e,t)}/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
@@ -107,7 +107,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
107
107
  * @license
108
108
  * Copyright 2022 Google LLC
109
109
  * SPDX-License-Identifier: Apache-2.0
110
- */let Ai=class extends Yt{};Ai.styles=[xn],Ai=d([g("md-ripple")],Ai);const Ii=Object.freeze(Object.defineProperty({__proto__:null,get MdRipple(){return Ai}},Symbol.toStringTag,{value:"Module"}));/**
110
+ */let Ai=class extends Yt{};Ai.styles=[xn],Ai=d([g("md-ripple")],Ai);const Ti=Object.freeze(Object.defineProperty({__proto__:null,get MdRipple(){return Ai}},Symbol.toStringTag,{value:"Module"}));/**
111
111
  * @license
112
112
  * Copyright 2023 Google LLC
113
113
  * SPDX-License-Identifier: Apache-2.0
@@ -127,11 +127,11 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
127
127
  * @license
128
128
  * Copyright 2021 Google LLC
129
129
  * SPDX-License-Identifier: Apache-2.0
130
- */function zi(o){const e=new MouseEvent("click",{bubbles:!0});return o.dispatchEvent(e),e}function Xt(o){return o.currentTarget!==o.target||o.composedPath()[0]!==o.target||o.target.disabled?!1:!wn(o)}function wn(o){const e=Ur;return e&&(o.preventDefault(),o.stopImmediatePropagation()),Sn(),e}let Ur=!1;async function Sn(){Ur=!0,await null,Ur=!1}/**
130
+ */function Ii(o){const e=new MouseEvent("click",{bubbles:!0});return o.dispatchEvent(e),e}function Xt(o){return o.currentTarget!==o.target||o.composedPath()[0]!==o.target||o.target.disabled?!1:!wn(o)}function wn(o){const e=Ur;return e&&(o.preventDefault(),o.stopImmediatePropagation()),Sn(),e}let Ur=!1;async function Sn(){Ur=!0,await null,Ur=!1}/**
131
131
  * @license
132
132
  * Copyright 2019 Google LLC
133
133
  * SPDX-License-Identifier: Apache-2.0
134
- */const kn=Ye(y);class V extends kn{get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get form(){return this[W].form}constructor(){super(),this.disabled=!1,this.href="",this.target="",this.trailingIcon=!1,this.hasIcon=!1,this.type="submit",this.value="",this.handleActivationClick=e=>{!Xt(e)||!this.buttonElement||(this.focus(),zi(this.buttonElement))},this.addEventListener("click",this.handleActivationClick)}focus(){var e;(e=this.buttonElement)==null||e.focus()}blur(){var e;(e=this.buttonElement)==null||e.blur()}render(){var r;const e=this.disabled&&!this.href,t=this.href?this.renderLink():this.renderButton(),i=this.href?"link":"button";return c`
134
+ */const kn=Ye(y);class V extends kn{get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get form(){return this[W].form}constructor(){super(),this.disabled=!1,this.href="",this.target="",this.trailingIcon=!1,this.hasIcon=!1,this.type="submit",this.value="",this.handleActivationClick=e=>{!Xt(e)||!this.buttonElement||(this.focus(),Ii(this.buttonElement))},this.addEventListener("click",this.handleActivationClick)}focus(){var e;(e=this.buttonElement)==null||e.focus()}blur(){var e;(e=this.buttonElement)==null||e.blur()}render(){var r;const e=this.disabled&&!this.href,t=this.href?this.renderLink():this.renderButton(),i=this.href?"link":"button";return c`
135
135
  ${(r=this.renderElevationOrOutline)==null?void 0:r.call(this)}
136
136
  <div class="background"></div>
137
137
  <md-focus-ring part="focus-ring" for=${i}></md-focus-ring>
@@ -200,20 +200,20 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
200
200
  * @license
201
201
  * Copyright 2021 Google LLC
202
202
  * SPDX-License-Identifier: Apache-2.0
203
- */let Ti=class extends En{};Ti.styles=[Zt,jr,An],Ti=d([g("md-filled-button")],Ti);const In=Object.freeze(Object.defineProperty({__proto__:null,get MdFilledButton(){return Ti}},Symbol.toStringTag,{value:"Module"}));/**
203
+ */let zi=class extends En{};zi.styles=[Zt,jr,An],zi=d([g("md-filled-button")],zi);const Tn=Object.freeze(Object.defineProperty({__proto__:null,get MdFilledButton(){return zi}},Symbol.toStringTag,{value:"Module"}));/**
204
204
  * @license
205
205
  * Copyright 2021 Google LLC
206
206
  * SPDX-License-Identifier: Apache-2.0
207
- */class zn extends V{renderElevationOrOutline(){return c`<md-elevation part="elevation"></md-elevation>`}}/**
207
+ */class In extends V{renderElevationOrOutline(){return c`<md-elevation part="elevation"></md-elevation>`}}/**
208
208
  * @license
209
209
  * Copyright 2024 Google LLC
210
210
  * SPDX-License-Identifier: Apache-2.0
211
- */const Tn=m`: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)}
211
+ */const zn=m`: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)}
212
212
  `;/**
213
213
  * @license
214
214
  * Copyright 2021 Google LLC
215
215
  * SPDX-License-Identifier: Apache-2.0
216
- */let Oi=class extends zn{};Oi.styles=[Zt,jr,Tn],Oi=d([g("md-filled-tonal-button")],Oi);const On=Object.freeze(Object.defineProperty({__proto__:null,get MdFilledTonalButton(){return Oi}},Symbol.toStringTag,{value:"Module"}));/**
216
+ */let Oi=class extends In{};Oi.styles=[Zt,jr,zn],Oi=d([g("md-filled-tonal-button")],Oi);const On=Object.freeze(Object.defineProperty({__proto__:null,get MdFilledTonalButton(){return Oi}},Symbol.toStringTag,{value:"Module"}));/**
217
217
  * @license
218
218
  * Copyright 2021 Google LLC
219
219
  * SPDX-License-Identifier: Apache-2.0
@@ -263,7 +263,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
263
263
  * @license
264
264
  * Copyright 2019 Google LLC
265
265
  * SPDX-License-Identifier: Apache-2.0
266
- */const Fn=Jt($t(Ye(y)));class fe extends Fn{constructor(){super(),this.checked=!1,this.indeterminate=!1,this.required=!1,this.value="on",this.prevChecked=!1,this.prevDisabled=!1,this.prevIndeterminate=!1,this.addEventListener("click",e=>{!Xt(e)||!this.input||(this.focus(),zi(this.input))})}update(e){(e.has("checked")||e.has("disabled")||e.has("indeterminate"))&&(this.prevChecked=e.get("checked")??this.checked,this.prevDisabled=e.get("disabled")??this.disabled,this.prevIndeterminate=e.get("indeterminate")??this.indeterminate),super.update(e)}render(){const e=!this.prevChecked&&!this.prevIndeterminate,t=this.prevChecked&&!this.prevIndeterminate,i=this.prevIndeterminate,r=this.checked&&!this.indeterminate,s=this.indeterminate,n=P({disabled:this.disabled,selected:r||s,unselected:!r&&!s,checked:r,indeterminate:s,"prev-unselected":e,"prev-checked":t,"prev-indeterminate":i,"prev-disabled":this.prevDisabled}),{ariaLabel:h,ariaInvalid:p}=this;return c`
266
+ */const Fn=Jt($t(Ye(y)));class fe extends Fn{constructor(){super(),this.checked=!1,this.indeterminate=!1,this.required=!1,this.value="on",this.prevChecked=!1,this.prevDisabled=!1,this.prevIndeterminate=!1,this.addEventListener("click",e=>{!Xt(e)||!this.input||(this.focus(),Ii(this.input))})}update(e){(e.has("checked")||e.has("disabled")||e.has("indeterminate"))&&(this.prevChecked=e.get("checked")??this.checked,this.prevDisabled=e.get("disabled")??this.disabled,this.prevIndeterminate=e.get("indeterminate")??this.indeterminate),super.update(e)}render(){const e=!this.prevChecked&&!this.prevIndeterminate,t=this.prevChecked&&!this.prevIndeterminate,i=this.prevIndeterminate,r=this.checked&&!this.indeterminate,s=this.indeterminate,n=P({disabled:this.disabled,selected:r||s,unselected:!r&&!s,checked:r,indeterminate:s,"prev-unselected":e,"prev-checked":t,"prev-indeterminate":i,"prev-disabled":this.prevDisabled}),{ariaLabel:h,ariaInvalid:p}=this;return c`
267
267
  <div class="container ${n}">
268
268
  <input
269
269
  type="checkbox"
@@ -555,7 +555,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
555
555
  </div>
556
556
  ${i?r:u}
557
557
  </dialog>
558
- `}firstUpdated(){this.intersectionObserver=new IntersectionObserver(e=>{for(const t of e)this.handleAnchorIntersection(t)},{root:this.scroller}),this.intersectionObserver.observe(this.topAnchor),this.intersectionObserver.observe(this.bottomAnchor)}handleDialogClick(){if(this.nextClickIsFromContent){this.nextClickIsFromContent=!1;return}this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.close()}handleContentClick(){this.nextClickIsFromContent=!0}handleSubmit(e){const t=e.target,{submitter:i}=e;t.method!=="dialog"||!i||this.close(i.getAttribute("value")??this.returnValue)}handleCancel(e){if(e.target!==this.dialog)return;this.escapePressedWithoutCancel=!1;const t=!Xe(this,e);e.preventDefault(),!t&&this.close()}handleClose(){var e;this.escapePressedWithoutCancel&&(this.escapePressedWithoutCancel=!1,(e=this.dialog)==null||e.dispatchEvent(new Event("cancel",{cancelable:!0})))}handleKeydown(e){e.key==="Escape"&&(this.escapePressedWithoutCancel=!0,setTimeout(()=>{this.escapePressedWithoutCancel=!1}))}async animateDialog(e){var E;if((E=this.cancelAnimations)==null||E.abort(),this.cancelAnimations=new AbortController,this.quick)return;const{dialog:t,scrim:i,container:r,headline:s,content:n,actions:h}=this;if(!t||!i||!r||!s||!n||!h)return;const{container:p,dialog:v,scrim:f,headline:b,content:_,actions:x}=e,S=[[t,v??[]],[i,f??[]],[r,p??[]],[s,b??[]],[n,_??[]],[h,x??[]]],C=[];for(const[A,I]of S)for(const Y of I){const q=A.animate(...Y);this.cancelAnimations.signal.addEventListener("abort",()=>{q.cancel()}),C.push(q)}await Promise.all(C.map(A=>A.finished.catch(()=>{})))}handleHeadlineChange(e){const t=e.target;this.hasHeadline=t.assignedElements().length>0}handleActionsChange(e){const t=e.target;this.hasActions=t.assignedElements().length>0}handleIconChange(e){const t=e.target;this.hasIcon=t.assignedElements().length>0}handleAnchorIntersection(e){const{target:t,isIntersecting:i}=e;t===this.topAnchor&&(this.isAtScrollTop=i),t===this.bottomAnchor&&(this.isAtScrollBottom=i)}getIsConnectedPromise(){return new Promise(e=>{this.isConnectedPromiseResolve=e})}handleFocusTrapFocus(e){var b;const[t,i]=this.getFirstAndLastFocusableChildren();if(!t||!i){(b=this.dialog)==null||b.focus();return}const r=e.target===this.firstFocusTrap,s=!r,n=e.relatedTarget===t,h=e.relatedTarget===i,p=!n&&!h;if(s&&h||r&&p){t.focus();return}if(r&&n||s&&p){i.focus();return}}getFirstAndLastFocusableChildren(){let e=null,t=null;for(this.treewalker.currentNode=this.treewalker.root;this.treewalker.nextNode();){const i=this.treewalker.currentNode;el(i)&&(e||(e=i),t=i)}return[e,t]}}Q(R),d([l({type:Boolean})],R.prototype,"open",null),d([l({type:Boolean})],R.prototype,"quick",void 0),d([l({attribute:!1})],R.prototype,"returnValue",void 0),d([l()],R.prototype,"type",void 0),d([l({type:Boolean,attribute:"no-focus-trap"})],R.prototype,"noFocusTrap",void 0),d([k("dialog")],R.prototype,"dialog",void 0),d([k(".scrim")],R.prototype,"scrim",void 0),d([k(".container")],R.prototype,"container",void 0),d([k(".headline")],R.prototype,"headline",void 0),d([k(".content")],R.prototype,"content",void 0),d([k(".actions")],R.prototype,"actions",void 0),d([w()],R.prototype,"isAtScrollTop",void 0),d([w()],R.prototype,"isAtScrollBottom",void 0),d([k(".scroller")],R.prototype,"scroller",void 0),d([k(".top.anchor")],R.prototype,"topAnchor",void 0),d([k(".bottom.anchor")],R.prototype,"bottomAnchor",void 0),d([k(".focus-trap")],R.prototype,"firstFocusTrap",void 0),d([w()],R.prototype,"hasHeadline",void 0),d([w()],R.prototype,"hasActions",void 0),d([w()],R.prototype,"hasIcon",void 0);function el(o){var s;const e=":is(button,input,select,textarea,object,:is(a,area)[href],[tabindex],[contenteditable=true])",t=":not(:disabled,[disabled])";return o.matches(e+t+':not([tabindex^="-"])')?!0:!o.localName.includes("-")||!o.matches(t)?!1:((s=o.shadowRoot)==null?void 0:s.delegatesFocus)??!1}/**
558
+ `}firstUpdated(){this.intersectionObserver=new IntersectionObserver(e=>{for(const t of e)this.handleAnchorIntersection(t)},{root:this.scroller}),this.intersectionObserver.observe(this.topAnchor),this.intersectionObserver.observe(this.bottomAnchor)}handleDialogClick(){if(this.nextClickIsFromContent){this.nextClickIsFromContent=!1;return}this.dispatchEvent(new Event("cancel",{cancelable:!0}))&&this.close()}handleContentClick(){this.nextClickIsFromContent=!0}handleSubmit(e){const t=e.target,{submitter:i}=e;t.method!=="dialog"||!i||this.close(i.getAttribute("value")??this.returnValue)}handleCancel(e){if(e.target!==this.dialog)return;this.escapePressedWithoutCancel=!1;const t=!Xe(this,e);e.preventDefault(),!t&&this.close()}handleClose(){var e;this.escapePressedWithoutCancel&&(this.escapePressedWithoutCancel=!1,(e=this.dialog)==null||e.dispatchEvent(new Event("cancel",{cancelable:!0})))}handleKeydown(e){e.key==="Escape"&&(this.escapePressedWithoutCancel=!0,setTimeout(()=>{this.escapePressedWithoutCancel=!1}))}async animateDialog(e){var E;if((E=this.cancelAnimations)==null||E.abort(),this.cancelAnimations=new AbortController,this.quick)return;const{dialog:t,scrim:i,container:r,headline:s,content:n,actions:h}=this;if(!t||!i||!r||!s||!n||!h)return;const{container:p,dialog:v,scrim:f,headline:b,content:_,actions:x}=e,S=[[t,v??[]],[i,f??[]],[r,p??[]],[s,b??[]],[n,_??[]],[h,x??[]]],C=[];for(const[A,T]of S)for(const Y of T){const q=A.animate(...Y);this.cancelAnimations.signal.addEventListener("abort",()=>{q.cancel()}),C.push(q)}await Promise.all(C.map(A=>A.finished.catch(()=>{})))}handleHeadlineChange(e){const t=e.target;this.hasHeadline=t.assignedElements().length>0}handleActionsChange(e){const t=e.target;this.hasActions=t.assignedElements().length>0}handleIconChange(e){const t=e.target;this.hasIcon=t.assignedElements().length>0}handleAnchorIntersection(e){const{target:t,isIntersecting:i}=e;t===this.topAnchor&&(this.isAtScrollTop=i),t===this.bottomAnchor&&(this.isAtScrollBottom=i)}getIsConnectedPromise(){return new Promise(e=>{this.isConnectedPromiseResolve=e})}handleFocusTrapFocus(e){var b;const[t,i]=this.getFirstAndLastFocusableChildren();if(!t||!i){(b=this.dialog)==null||b.focus();return}const r=e.target===this.firstFocusTrap,s=!r,n=e.relatedTarget===t,h=e.relatedTarget===i,p=!n&&!h;if(s&&h||r&&p){t.focus();return}if(r&&n||s&&p){i.focus();return}}getFirstAndLastFocusableChildren(){let e=null,t=null;for(this.treewalker.currentNode=this.treewalker.root;this.treewalker.nextNode();){const i=this.treewalker.currentNode;el(i)&&(e||(e=i),t=i)}return[e,t]}}Q(R),d([l({type:Boolean})],R.prototype,"open",null),d([l({type:Boolean})],R.prototype,"quick",void 0),d([l({attribute:!1})],R.prototype,"returnValue",void 0),d([l()],R.prototype,"type",void 0),d([l({type:Boolean,attribute:"no-focus-trap"})],R.prototype,"noFocusTrap",void 0),d([k("dialog")],R.prototype,"dialog",void 0),d([k(".scrim")],R.prototype,"scrim",void 0),d([k(".container")],R.prototype,"container",void 0),d([k(".headline")],R.prototype,"headline",void 0),d([k(".content")],R.prototype,"content",void 0),d([k(".actions")],R.prototype,"actions",void 0),d([w()],R.prototype,"isAtScrollTop",void 0),d([w()],R.prototype,"isAtScrollBottom",void 0),d([k(".scroller")],R.prototype,"scroller",void 0),d([k(".top.anchor")],R.prototype,"topAnchor",void 0),d([k(".bottom.anchor")],R.prototype,"bottomAnchor",void 0),d([k(".focus-trap")],R.prototype,"firstFocusTrap",void 0),d([w()],R.prototype,"hasHeadline",void 0),d([w()],R.prototype,"hasActions",void 0),d([w()],R.prototype,"hasIcon",void 0);function el(o){var s;const e=":is(button,input,select,textarea,object,:is(a,area)[href],[tabindex],[contenteditable=true])",t=":not(:disabled,[disabled])";return o.matches(e+t+':not([tabindex^="-"])')?!0:!o.localName.includes("-")||!o.matches(t)?!1:((s=o.shadowRoot)==null?void 0:s.delegatesFocus)??!1}/**
559
559
  * @license
560
560
  * Copyright 2024 Google LLC
561
561
  * SPDX-License-Identifier: Apache-2.0
@@ -651,7 +651,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
651
651
  <span class="label ${P(i)}" aria-hidden=${!t}
652
652
  >${r}</span
653
653
  >
654
- `}animateLabelIfNeeded({wasFocused:e,wasPopulated:t}){var s,n,h;if(!this.label)return;e??(e=this.focused),t??(t=this.populated);const i=e||t,r=this.focused||this.populated;i!==r&&(this.isAnimating=!0,(s=this.labelAnimation)==null||s.cancel(),this.labelAnimation=(n=this.floatingLabelEl)==null?void 0:n.animate(this.getLabelKeyframes(),{duration:150,easing:me.STANDARD}),(h=this.labelAnimation)==null||h.addEventListener("finish",()=>{this.isAnimating=!1}))}getLabelKeyframes(){const{floatingLabelEl:e,restingLabelEl:t}=this;if(!e||!t)return[];const{x:i,y:r,height:s}=e.getBoundingClientRect(),{x:n,y:h,height:p}=t.getBoundingClientRect(),v=e.scrollWidth,f=t.scrollWidth,b=f/v,_=n-i,x=h-r+Math.round((p-s*b)/2),S=`translateX(${_}px) translateY(${x}px) scale(${b})`,C="translateX(0) translateY(0) scale(1)",E=t.clientWidth,I=f>E?`${E/b}px`:"";return this.focused||this.populated?[{transform:S,width:I},{transform:C,width:I}]:[{transform:C,width:I},{transform:S,width:I}]}getSurfacePositionClientRect(){return this.containerEl.getBoundingClientRect()}}d([l({type:Boolean})],D.prototype,"disabled",void 0),d([l({type:Boolean})],D.prototype,"error",void 0),d([l({type:Boolean})],D.prototype,"focused",void 0),d([l()],D.prototype,"label",void 0),d([l({type:Boolean,attribute:"no-asterisk"})],D.prototype,"noAsterisk",void 0),d([l({type:Boolean})],D.prototype,"populated",void 0),d([l({type:Boolean})],D.prototype,"required",void 0),d([l({type:Boolean})],D.prototype,"resizable",void 0),d([l({attribute:"supporting-text"})],D.prototype,"supportingText",void 0),d([l({attribute:"error-text"})],D.prototype,"errorText",void 0),d([l({type:Number})],D.prototype,"count",void 0),d([l({type:Number})],D.prototype,"max",void 0),d([l({type:Boolean,attribute:"has-start"})],D.prototype,"hasStart",void 0),d([l({type:Boolean,attribute:"has-end"})],D.prototype,"hasEnd",void 0),d([G({slot:"aria-describedby"})],D.prototype,"slottedAriaDescribedBy",void 0),d([w()],D.prototype,"isAnimating",void 0),d([w()],D.prototype,"refreshErrorAlert",void 0),d([w()],D.prototype,"disableTransitions",void 0),d([k(".label.floating")],D.prototype,"floatingLabelEl",void 0),d([k(".label.resting")],D.prototype,"restingLabelEl",void 0),d([k(".container")],D.prototype,"containerEl",void 0);/**
654
+ `}animateLabelIfNeeded({wasFocused:e,wasPopulated:t}){var s,n,h;if(!this.label)return;e??(e=this.focused),t??(t=this.populated);const i=e||t,r=this.focused||this.populated;i!==r&&(this.isAnimating=!0,(s=this.labelAnimation)==null||s.cancel(),this.labelAnimation=(n=this.floatingLabelEl)==null?void 0:n.animate(this.getLabelKeyframes(),{duration:150,easing:me.STANDARD}),(h=this.labelAnimation)==null||h.addEventListener("finish",()=>{this.isAnimating=!1}))}getLabelKeyframes(){const{floatingLabelEl:e,restingLabelEl:t}=this;if(!e||!t)return[];const{x:i,y:r,height:s}=e.getBoundingClientRect(),{x:n,y:h,height:p}=t.getBoundingClientRect(),v=e.scrollWidth,f=t.scrollWidth,b=f/v,_=n-i,x=h-r+Math.round((p-s*b)/2),S=`translateX(${_}px) translateY(${x}px) scale(${b})`,C="translateX(0) translateY(0) scale(1)",E=t.clientWidth,T=f>E?`${E/b}px`:"";return this.focused||this.populated?[{transform:S,width:T},{transform:C,width:T}]:[{transform:C,width:T},{transform:S,width:T}]}getSurfacePositionClientRect(){return this.containerEl.getBoundingClientRect()}}d([l({type:Boolean})],D.prototype,"disabled",void 0),d([l({type:Boolean})],D.prototype,"error",void 0),d([l({type:Boolean})],D.prototype,"focused",void 0),d([l()],D.prototype,"label",void 0),d([l({type:Boolean,attribute:"no-asterisk"})],D.prototype,"noAsterisk",void 0),d([l({type:Boolean})],D.prototype,"populated",void 0),d([l({type:Boolean})],D.prototype,"required",void 0),d([l({type:Boolean})],D.prototype,"resizable",void 0),d([l({attribute:"supporting-text"})],D.prototype,"supportingText",void 0),d([l({attribute:"error-text"})],D.prototype,"errorText",void 0),d([l({type:Number})],D.prototype,"count",void 0),d([l({type:Number})],D.prototype,"max",void 0),d([l({type:Boolean,attribute:"has-start"})],D.prototype,"hasStart",void 0),d([l({type:Boolean,attribute:"has-end"})],D.prototype,"hasEnd",void 0),d([G({slot:"aria-describedby"})],D.prototype,"slottedAriaDescribedBy",void 0),d([w()],D.prototype,"isAnimating",void 0),d([w()],D.prototype,"refreshErrorAlert",void 0),d([w()],D.prototype,"disableTransitions",void 0),d([k(".label.floating")],D.prototype,"floatingLabelEl",void 0),d([k(".label.resting")],D.prototype,"restingLabelEl",void 0),d([k(".container")],D.prototype,"containerEl",void 0);/**
655
655
  * @license
656
656
  * Copyright 2021 Google LLC
657
657
  * SPDX-License-Identifier: Apache-2.0
@@ -722,11 +722,11 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
722
722
  * @license
723
723
  * Copyright 2022 Google LLC
724
724
  * SPDX-License-Identifier: Apache-2.0
725
- */function Ia(o,e=!0){return e&&getComputedStyle(o).getPropertyValue("direction").trim()==="rtl"}/**
725
+ */function Ta(o,e=!0){return e&&getComputedStyle(o).getPropertyValue("direction").trim()==="rtl"}/**
726
726
  * @license
727
727
  * Copyright 2018 Google LLC
728
728
  * SPDX-License-Identifier: Apache-2.0
729
- */const ul=Ye(y);class U extends ul{constructor(){super(...arguments),this.disabled=!1,this.flipIconInRtl=!1,this.href="",this.target="",this.ariaLabelSelected="",this.toggle=!1,this.selected=!1,this.type="submit",this.value="",this.flipIcon=Ia(this,this.flipIconInRtl)}get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get form(){return this[W].form}get labels(){return this[W].labels}willUpdate(){this.href&&(this.disabled=!1)}render(){const e=this.href?ee`div`:ee`button`,{ariaLabel:t,ariaHasPopup:i,ariaExpanded:r}=this,s=t&&this.ariaLabelSelected,n=this.toggle?this.selected:u;let h=u;return this.href||(h=s&&this.selected?this.ariaLabelSelected:t),ti`<${e}
729
+ */const ul=Ye(y);class U extends ul{constructor(){super(...arguments),this.disabled=!1,this.flipIconInRtl=!1,this.href="",this.target="",this.ariaLabelSelected="",this.toggle=!1,this.selected=!1,this.type="submit",this.value="",this.flipIcon=Ta(this,this.flipIconInRtl)}get name(){return this.getAttribute("name")??""}set name(e){this.setAttribute("name",e)}get form(){return this[W].form}get labels(){return this[W].labels}willUpdate(){this.href&&(this.disabled=!1)}render(){const e=this.href?ee`div`:ee`button`,{ariaLabel:t,ariaHasPopup:i,ariaExpanded:r}=this,s=t&&this.ariaLabelSelected,n=this.toggle?this.selected:u;let h=u;return this.href||(h=s&&this.selected?this.ariaLabelSelected:t),ti`<${e}
730
730
  class="icon-button ${P(this.getRenderClasses())}"
731
731
  id="button"
732
732
  aria-label="${h||u}"
@@ -754,7 +754,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
754
754
  part="focus-ring"
755
755
  for=${this.href?"link":"button"}></md-focus-ring>`}renderRipple(){return c`<md-ripple
756
756
  for=${this.href?"link":u}
757
- ?disabled="${!this.href&&this.disabled}"></md-ripple>`}connectedCallback(){this.flipIcon=Ia(this,this.flipIconInRtl),super.connectedCallback()}async handleClick(e){await 0,!(!this.toggle||this.disabled||e.defaultPrevented)&&(this.selected=!this.selected,this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})))}}Q(U),fa(U),U.formAssociated=!0,U.shadowRootOptions={mode:"open",delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],U.prototype,"disabled",void 0),d([l({type:Boolean,attribute:"flip-icon-in-rtl"})],U.prototype,"flipIconInRtl",void 0),d([l()],U.prototype,"href",void 0),d([l()],U.prototype,"target",void 0),d([l({attribute:"aria-label-selected"})],U.prototype,"ariaLabelSelected",void 0),d([l({type:Boolean})],U.prototype,"toggle",void 0),d([l({type:Boolean,reflect:!0})],U.prototype,"selected",void 0),d([l()],U.prototype,"type",void 0),d([l({reflect:!0})],U.prototype,"value",void 0),d([w()],U.prototype,"flipIcon",void 0);/**
757
+ ?disabled="${!this.href&&this.disabled}"></md-ripple>`}connectedCallback(){this.flipIcon=Ta(this,this.flipIconInRtl),super.connectedCallback()}async handleClick(e){await 0,!(!this.toggle||this.disabled||e.defaultPrevented)&&(this.selected=!this.selected,this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})))}}Q(U),fa(U),U.formAssociated=!0,U.shadowRootOptions={mode:"open",delegatesFocus:!0},d([l({type:Boolean,reflect:!0})],U.prototype,"disabled",void 0),d([l({type:Boolean,attribute:"flip-icon-in-rtl"})],U.prototype,"flipIconInRtl",void 0),d([l()],U.prototype,"href",void 0),d([l()],U.prototype,"target",void 0),d([l({attribute:"aria-label-selected"})],U.prototype,"ariaLabelSelected",void 0),d([l({type:Boolean})],U.prototype,"toggle",void 0),d([l({type:Boolean,reflect:!0})],U.prototype,"selected",void 0),d([l()],U.prototype,"type",void 0),d([l({reflect:!0})],U.prototype,"value",void 0),d([w()],U.prototype,"flipIcon",void 0);/**
758
758
  * @license
759
759
  * Copyright 2024 Google LLC
760
760
  * SPDX-License-Identifier: Apache-2.0
@@ -794,11 +794,11 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
794
794
  * @license
795
795
  * Copyright 2023 Google LLC
796
796
  * SPDX-License-Identifier: Apache-2.0
797
- */function za(o,e=$e){const t=Yi(o,e);return t&&(t.tabIndex=0,t.focus()),t}function Ta(o,e=$e){const t=Oa(o,e);return t&&(t.tabIndex=0,t.focus()),t}function xl(o,e=$e){const t=Et(o,e);return t&&(t.item.tabIndex=-1),t}function Et(o,e=$e){for(let t=0;t<o.length;t++){const i=o[t];if(i.tabIndex===0&&e(i))return{item:i,index:t}}return null}function Yi(o,e=$e){for(const t of o)if(e(t))return t;return null}function Oa(o,e=$e){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return i}return null}function wl(o,e,t=$e,i=!0){for(let r=1;r<o.length;r++){const s=(r+e)%o.length;if(s<e&&!i)return null;const n=o[s];if(t(n))return n}return o[e]?o[e]:null}function Sl(o,e,t=$e,i=!0){for(let r=1;r<o.length;r++){const s=(e-r+o.length)%o.length;if(s>e&&!i)return null;const n=o[s];if(t(n))return n}return o[e]?o[e]:null}function La(o,e,t=$e,i=!0){if(e){const r=wl(o,e.index,t,i);return r&&(r.tabIndex=0,r.focus()),r}else return za(o,t)}function Pa(o,e,t=$e,i=!0){if(e){const r=Sl(o,e.index,t,i);return r&&(r.tabIndex=0,r.focus()),r}else return Ta(o,t)}function Xi(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function Da(){return new Event("request-activation",{bubbles:!0,composed:!0})}function $e(o){return!o.disabled}/**
797
+ */function Ia(o,e=$e){const t=Yi(o,e);return t&&(t.tabIndex=0,t.focus()),t}function za(o,e=$e){const t=Oa(o,e);return t&&(t.tabIndex=0,t.focus()),t}function xl(o,e=$e){const t=Et(o,e);return t&&(t.item.tabIndex=-1),t}function Et(o,e=$e){for(let t=0;t<o.length;t++){const i=o[t];if(i.tabIndex===0&&e(i))return{item:i,index:t}}return null}function Yi(o,e=$e){for(const t of o)if(e(t))return t;return null}function Oa(o,e=$e){for(let t=o.length-1;t>=0;t--){const i=o[t];if(e(i))return i}return null}function wl(o,e,t=$e,i=!0){for(let r=1;r<o.length;r++){const s=(r+e)%o.length;if(s<e&&!i)return null;const n=o[s];if(t(n))return n}return o[e]?o[e]:null}function Sl(o,e,t=$e,i=!0){for(let r=1;r<o.length;r++){const s=(e-r+o.length)%o.length;if(s>e&&!i)return null;const n=o[s];if(t(n))return n}return o[e]?o[e]:null}function La(o,e,t=$e,i=!0){if(e){const r=wl(o,e.index,t,i);return r&&(r.tabIndex=0,r.focus()),r}else return Ia(o,t)}function Pa(o,e,t=$e,i=!0){if(e){const r=Sl(o,e.index,t,i);return r&&(r.tabIndex=0,r.focus()),r}else return za(o,t)}function Xi(){return new Event("deactivate-items",{bubbles:!0,composed:!0})}function Da(){return new Event("request-activation",{bubbles:!0,composed:!0})}function $e(o){return!o.disabled}/**
798
798
  * @license
799
799
  * Copyright 2023 Google LLC
800
800
  * SPDX-License-Identifier: Apache-2.0
801
- */const K={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",Home:"Home",End:"End"};class Ra{constructor(e){this.handleKeydown=f=>{const b=f.key;if(f.defaultPrevented||!this.isNavigableKey(b))return;const _=this.items;if(!_.length)return;const x=Et(_,this.isActivatable);f.preventDefault();const S=this.isRtl(),C=S?K.ArrowRight:K.ArrowLeft,E=S?K.ArrowLeft:K.ArrowRight;let A=null;switch(b){case K.ArrowDown:case E:A=La(_,x,this.isActivatable,this.wrapNavigation());break;case K.ArrowUp:case C:A=Pa(_,x,this.isActivatable,this.wrapNavigation());break;case K.Home:A=za(_,this.isActivatable);break;case K.End:A=Ta(_,this.isActivatable);break}A&&x&&x.item!==A&&(x.item.tabIndex=-1)},this.onDeactivateItems=()=>{const f=this.items;for(const b of f)this.deactivateItem(b)},this.onRequestActivation=f=>{this.onDeactivateItems();const b=f.target;this.activateItem(b),b.focus()},this.onSlotchange=()=>{const f=this.items;let b=!1;for(const x of f){if(!x.disabled&&x.tabIndex>-1&&!b){b=!0,x.tabIndex=0;continue}x.tabIndex=-1}if(b)return;const _=Yi(f,this.isActivatable);_&&(_.tabIndex=0)};const{isItem:t,getPossibleItems:i,isRtl:r,deactivateItem:s,activateItem:n,isNavigableKey:h,isActivatable:p,wrapNavigation:v}=e;this.isItem=t,this.getPossibleItems=i,this.isRtl=r,this.deactivateItem=s,this.activateItem=n,this.isNavigableKey=h,this.isActivatable=p,this.wrapNavigation=v??(()=>!0)}get items(){const e=this.getPossibleItems(),t=[];for(const i of e){if(this.isItem(i)){t.push(i);continue}const s=i.item;s&&this.isItem(s)&&t.push(s)}return t}activateNextItem(){const e=this.items,t=Et(e,this.isActivatable);return t&&(t.item.tabIndex=-1),La(e,t,this.isActivatable,this.wrapNavigation())}activatePreviousItem(){const e=this.items,t=Et(e,this.isActivatable);return t&&(t.item.tabIndex=-1),Pa(e,t,this.isActivatable,this.wrapNavigation())}}/**
801
+ */const K={ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowRight:"ArrowRight",Home:"Home",End:"End"};class Ra{constructor(e){this.handleKeydown=f=>{const b=f.key;if(f.defaultPrevented||!this.isNavigableKey(b))return;const _=this.items;if(!_.length)return;const x=Et(_,this.isActivatable);f.preventDefault();const S=this.isRtl(),C=S?K.ArrowRight:K.ArrowLeft,E=S?K.ArrowLeft:K.ArrowRight;let A=null;switch(b){case K.ArrowDown:case E:A=La(_,x,this.isActivatable,this.wrapNavigation());break;case K.ArrowUp:case C:A=Pa(_,x,this.isActivatable,this.wrapNavigation());break;case K.Home:A=Ia(_,this.isActivatable);break;case K.End:A=za(_,this.isActivatable);break}A&&x&&x.item!==A&&(x.item.tabIndex=-1)},this.onDeactivateItems=()=>{const f=this.items;for(const b of f)this.deactivateItem(b)},this.onRequestActivation=f=>{this.onDeactivateItems();const b=f.target;this.activateItem(b),b.focus()},this.onSlotchange=()=>{const f=this.items;let b=!1;for(const x of f){if(!x.disabled&&x.tabIndex>-1&&!b){b=!0,x.tabIndex=0;continue}x.tabIndex=-1}if(b)return;const _=Yi(f,this.isActivatable);_&&(_.tabIndex=0)};const{isItem:t,getPossibleItems:i,isRtl:r,deactivateItem:s,activateItem:n,isNavigableKey:h,isActivatable:p,wrapNavigation:v}=e;this.isItem=t,this.getPossibleItems=i,this.isRtl=r,this.deactivateItem=s,this.activateItem=n,this.isNavigableKey=h,this.isActivatable=p,this.wrapNavigation=v??(()=>!0)}get items(){const e=this.getPossibleItems(),t=[];for(const i of e){if(this.isItem(i)){t.push(i);continue}const s=i.item;s&&this.isItem(s)&&t.push(s)}return t}activateNextItem(){const e=this.items,t=Et(e,this.isActivatable);return t&&(t.item.tabIndex=-1),La(e,t,this.isActivatable,this.wrapNavigation())}activatePreviousItem(){const e=this.items,t=Et(e,this.isActivatable);return t&&(t.item.tabIndex=-1),Pa(e,t,this.isActivatable,this.wrapNavigation())}}/**
802
802
  * @license
803
803
  * Copyright 2021 Google LLC
804
804
  * SPDX-License-Identifier: Apache-2.0
@@ -892,24 +892,24 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
892
892
  * @license
893
893
  * Copyright 2024 Google LLC
894
894
  * SPDX-License-Identifier: Apache-2.0
895
- */const Il=m`:host{display:flex;-webkit-tap-highlight-color:rgba(0,0,0,0);--md-ripple-hover-color: var(--md-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-list-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-list-item-pressed-state-layer-opacity, 0.12)}:host(:is([type=button]:not([disabled]),[type=link])){cursor:pointer}md-focus-ring{z-index:1;--md-focus-ring-shape: 8px}a,button,li{background:none;border:none;cursor:inherit;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%}.list-item.interactive{cursor:pointer}.list-item.disabled{opacity:var(--md-list-item-disabled-opacity, 0.3);pointer-events:none}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;height:100%;color:var(--md-list-item-label-text-color, var(--md-sys-color-on-surface, #1d1b20));font-family:var(--md-list-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-list-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-list-item-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));min-height:var(--md-list-item-one-line-container-height, 56px);padding-top:var(--md-list-item-top-space, 12px);padding-bottom:var(--md-list-item-bottom-space, 12px);padding-inline-start:var(--md-list-item-leading-space, 16px);padding-inline-end:var(--md-list-item-trailing-space, 16px)}md-item[multiline]{min-height:var(--md-list-item-two-line-container-height, 72px)}[slot=supporting-text]{color:var(--md-list-item-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-list-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-list-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-list-item-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)))}[slot=trailing-supporting-text]{color:var(--md-list-item-trailing-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-list-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, 0.6875rem));line-height:var(--md-list-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-list-item-trailing-supporting-text-weight, var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-list-item-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}[slot=end]{color:var(--md-list-item-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}@media(forced-colors: active){.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}}
895
+ */const Tl=m`:host{display:flex;-webkit-tap-highlight-color:rgba(0,0,0,0);--md-ripple-hover-color: var(--md-list-item-hover-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-hover-opacity: var(--md-list-item-hover-state-layer-opacity, 0.08);--md-ripple-pressed-color: var(--md-list-item-pressed-state-layer-color, var(--md-sys-color-on-surface, #1d1b20));--md-ripple-pressed-opacity: var(--md-list-item-pressed-state-layer-opacity, 0.12)}:host(:is([type=button]:not([disabled]),[type=link])){cursor:pointer}md-focus-ring{z-index:1;--md-focus-ring-shape: 8px}a,button,li{background:none;border:none;cursor:inherit;padding:0;margin:0;text-align:unset;text-decoration:none}.list-item{border-radius:inherit;display:flex;flex:1;max-width:inherit;min-width:inherit;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);width:100%}.list-item.interactive{cursor:pointer}.list-item.disabled{opacity:var(--md-list-item-disabled-opacity, 0.3);pointer-events:none}[slot=container]{pointer-events:none}md-ripple{border-radius:inherit}md-item{border-radius:inherit;flex:1;height:100%;color:var(--md-list-item-label-text-color, var(--md-sys-color-on-surface, #1d1b20));font-family:var(--md-list-item-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));line-height:var(--md-list-item-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));font-weight:var(--md-list-item-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));min-height:var(--md-list-item-one-line-container-height, 56px);padding-top:var(--md-list-item-top-space, 12px);padding-bottom:var(--md-list-item-bottom-space, 12px);padding-inline-start:var(--md-list-item-leading-space, 16px);padding-inline-end:var(--md-list-item-trailing-space, 16px)}md-item[multiline]{min-height:var(--md-list-item-two-line-container-height, 72px)}[slot=supporting-text]{color:var(--md-list-item-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-list-item-supporting-text-font, var(--md-sys-typescale-body-medium-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-supporting-text-size, var(--md-sys-typescale-body-medium-size, 0.875rem));line-height:var(--md-list-item-supporting-text-line-height, var(--md-sys-typescale-body-medium-line-height, 1.25rem));font-weight:var(--md-list-item-supporting-text-weight, var(--md-sys-typescale-body-medium-weight, var(--md-ref-typeface-weight-regular, 400)))}[slot=trailing-supporting-text]{color:var(--md-list-item-trailing-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));font-family:var(--md-list-item-trailing-supporting-text-font, var(--md-sys-typescale-label-small-font, var(--md-ref-typeface-plain, Roboto)));font-size:var(--md-list-item-trailing-supporting-text-size, var(--md-sys-typescale-label-small-size, 0.6875rem));line-height:var(--md-list-item-trailing-supporting-text-line-height, var(--md-sys-typescale-label-small-line-height, 1rem));font-weight:var(--md-list-item-trailing-supporting-text-weight, var(--md-sys-typescale-label-small-weight, var(--md-ref-typeface-weight-medium, 500)))}:is([slot=start],[slot=end])::slotted(*){fill:currentColor}[slot=start]{color:var(--md-list-item-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}[slot=end]{color:var(--md-list-item-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f))}@media(forced-colors: active){.disabled slot{color:GrayText}.list-item.disabled{color:GrayText;opacity:1}}
896
896
  `;/**
897
897
  * @license
898
898
  * Copyright 2022 Google LLC
899
899
  * SPDX-License-Identifier: Apache-2.0
900
- */let no=class extends Re{};no.styles=[Il],no=d([g("md-list-item")],no);/**
900
+ */let no=class extends Re{};no.styles=[Tl],no=d([g("md-list-item")],no);/**
901
901
  * @license
902
902
  * Copyright 2018 Google LLC
903
903
  * SPDX-License-Identifier: BSD-3-Clause
904
- */const Ma="important",zl=" !"+Ma,pt=Hr(class extends Nr{constructor(o){var e;if(super(o),o.type!==Ge.ATTRIBUTE||o.name!=="style"||((e=o.strings)==null?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((e,t)=>{const i=o[t];return i==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(o,[e]){const{style:t}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?t.removeProperty(i):t[i]=null);for(const i in e){const r=e[i];if(r!=null){this.ft.add(i);const s=typeof r=="string"&&r.endsWith(zl);i.includes("-")||s?t.setProperty(i,s?r.slice(0,-11):r,s?Ma:""):t[i]=r}}return de}});/**
904
+ */const Ma="important",Il=" !"+Ma,pt=Hr(class extends Nr{constructor(o){var e;if(super(o),o.type!==Ge.ATTRIBUTE||o.name!=="style"||((e=o.strings)==null?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((e,t)=>{const i=o[t];return i==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(o,[e]){const{style:t}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?t.removeProperty(i):t[i]=null);for(const i in e){const r=e[i];if(r!=null){this.ft.add(i);const s=typeof r=="string"&&r.endsWith(Il);i.includes("-")||s?t.setProperty(i,s?r.slice(0,-11):r,s?Ma:""):t[i]=r}}return de}});/**
905
905
  * @license
906
906
  * Copyright 2023 Google LLC
907
907
  * SPDX-License-Identifier: Apache-2.0
908
- */function Tl(o,e){return new CustomEvent("close-menu",{bubbles:!0,composed:!0,detail:{initiator:o,reason:e,itemPath:[o]}})}const Fa=Tl;function Ol(){return new Event("deactivate-typeahead",{bubbles:!0,composed:!0})}function lo(){return new Event("activate-typeahead",{bubbles:!0,composed:!0})}const Ze={RIGHT:"ArrowRight",LEFT:"ArrowLeft"},At={SPACE:"Space",ENTER:"Enter"},co={CLICK_SELECTION:"click-selection",KEYDOWN:"keydown"},ho={ESCAPE:"Escape",SPACE:At.SPACE,ENTER:At.ENTER};function Ha(o){return Object.values(ho).some(e=>e===o)}function Ll(o){return Object.values(At).some(e=>e===o)}function po(o,e){const t=new Event("md-contains",{bubbles:!0,composed:!0});let i=[];const r=n=>{i=n.composedPath()};return e.addEventListener("md-contains",r),o.dispatchEvent(t),e.removeEventListener("md-contains",r),i.length>0}const ge={NONE:"none",LIST_ROOT:"list-root",FIRST_ITEM:"first-item",LAST_ITEM:"last-item"};/**
908
+ */function zl(o,e){return new CustomEvent("close-menu",{bubbles:!0,composed:!0,detail:{initiator:o,reason:e,itemPath:[o]}})}const Fa=zl;function Ol(){return new Event("deactivate-typeahead",{bubbles:!0,composed:!0})}function lo(){return new Event("activate-typeahead",{bubbles:!0,composed:!0})}const Ze={RIGHT:"ArrowRight",LEFT:"ArrowLeft"},At={SPACE:"Space",ENTER:"Enter"},co={CLICK_SELECTION:"click-selection",KEYDOWN:"keydown"},ho={ESCAPE:"Escape",SPACE:At.SPACE,ENTER:At.ENTER};function Ha(o){return Object.values(ho).some(e=>e===o)}function Ll(o){return Object.values(At).some(e=>e===o)}function po(o,e){const t=new Event("md-contains",{bubbles:!0,composed:!0});let i=[];const r=n=>{i=n.composedPath()};return e.addEventListener("md-contains",r),o.dispatchEvent(t),e.removeEventListener("md-contains",r),i.length>0}const ge={NONE:"none",LIST_ROOT:"list-root",FIRST_ITEM:"first-item",LAST_ITEM:"last-item"};/**
909
909
  * @license
910
910
  * Copyright 2023 Google LLC
911
911
  * SPDX-License-Identifier: Apache-2.0
912
- */const Ji={END_START:"end-start",START_START:"start-start",START_END:"start-end"};class Pl{constructor(e,t){this.host=e,this.getProperties=t,this.surfaceStylesInternal={display:"none"},this.lastValues={isOpen:!1},this.host.addController(this)}get surfaceStyles(){return this.surfaceStylesInternal}async position(){const{surfaceEl:e,anchorEl:t,anchorCorner:i,surfaceCorner:r,positioning:s,xOffset:n,yOffset:h,repositionStrategy:p}=this.getProperties(),v=i.toLowerCase().trim(),f=r.toLowerCase().trim();if(!e||!t)return;const b=window.innerWidth,_=window.innerHeight,x=document.createElement("div");x.style.opacity="0",x.style.position="fixed",x.style.display="block",x.style.inset="0",document.body.appendChild(x);const S=x.getBoundingClientRect();x.remove();const C=window.innerHeight-S.bottom,E=window.innerWidth-S.right;this.surfaceStylesInternal={display:"block",opacity:"0"},this.host.requestUpdate(),await this.host.updateComplete,e.popover&&e.isConnected&&e.showPopover();const A=e.getSurfacePositionClientRect?e.getSurfacePositionClientRect():e.getBoundingClientRect(),I=t.getSurfacePositionClientRect?t.getSurfacePositionClientRect():t.getBoundingClientRect(),[Y,q]=f.split("-"),[M,Ue]=v.split("-"),je=getComputedStyle(e).direction==="ltr";let{blockInset:be,blockOutOfBoundsCorrection:le,surfaceBlockProperty:wt}=this.calculateBlock({surfaceRect:A,anchorRect:I,anchorBlock:M,surfaceBlock:Y,yOffset:h,positioning:s,windowInnerHeight:_,blockScrollbarHeight:C});if(le){const yi=Y==="start"?"end":"start",_i=M==="start"?"end":"start",Se=this.calculateBlock({surfaceRect:A,anchorRect:I,anchorBlock:_i,surfaceBlock:yi,yOffset:h,positioning:s,windowInnerHeight:_,blockScrollbarHeight:C});le>Se.blockOutOfBoundsCorrection&&(be=Se.blockInset,le=Se.blockOutOfBoundsCorrection,wt=Se.surfaceBlockProperty)}let{inlineInset:Oe,inlineOutOfBoundsCorrection:rt,surfaceInlineProperty:Cr}=this.calculateInline({surfaceRect:A,anchorRect:I,anchorInline:Ue,surfaceInline:q,xOffset:n,positioning:s,isLTR:je,windowInnerWidth:b,inlineScrollbarWidth:E});if(rt){const yi=q==="start"?"end":"start",_i=Ue==="start"?"end":"start",Se=this.calculateInline({surfaceRect:A,anchorRect:I,anchorInline:_i,surfaceInline:yi,xOffset:n,positioning:s,isLTR:je,windowInnerWidth:b,inlineScrollbarWidth:E});Math.abs(rt)>Math.abs(Se.inlineOutOfBoundsCorrection)&&(Oe=Se.inlineInset,rt=Se.inlineOutOfBoundsCorrection,Cr=Se.surfaceInlineProperty)}p==="move"&&(be=be-le,Oe=Oe-rt),this.surfaceStylesInternal={display:"block",opacity:"1",[wt]:`${be}px`,[Cr]:`${Oe}px`},p==="resize"&&(le&&(this.surfaceStylesInternal.height=`${A.height-le}px`),rt&&(this.surfaceStylesInternal.width=`${A.width-rt}px`)),this.host.requestUpdate()}calculateBlock(e){const{surfaceRect:t,anchorRect:i,anchorBlock:r,surfaceBlock:s,yOffset:n,positioning:h,windowInnerHeight:p,blockScrollbarHeight:v}=e,f=h==="fixed"||h==="document"?1:0,b=h==="document"?1:0,_=s==="start"?1:0,x=s==="end"?1:0,C=(r!==s?1:0)*i.height+n,E=_*i.top+x*(p-i.bottom-v),A=_*window.scrollY-x*window.scrollY,I=Math.abs(Math.min(0,p-E-C-t.height));return{blockInset:f*E+b*A+C,blockOutOfBoundsCorrection:I,surfaceBlockProperty:s==="start"?"inset-block-start":"inset-block-end"}}calculateInline(e){const{isLTR:t,surfaceInline:i,anchorInline:r,anchorRect:s,surfaceRect:n,xOffset:h,positioning:p,windowInnerWidth:v,inlineScrollbarWidth:f}=e,b=p==="fixed"||p==="document"?1:0,_=p==="document"?1:0,x=t?1:0,S=t?0:1,C=i==="start"?1:0,E=i==="end"?1:0,I=(r!==i?1:0)*s.width+h,Y=C*s.left+E*(v-s.right-f),q=C*(v-s.right-f)+E*s.left,M=x*Y+S*q,Ue=C*window.scrollX-E*window.scrollX,je=E*window.scrollX-C*window.scrollX,be=x*Ue+S*je,le=Math.abs(Math.min(0,v-M-I-n.width)),wt=b*M+I+_*be;let Oe=i==="start"?"inset-inline-start":"inset-inline-end";return(p==="document"||p==="fixed")&&(i==="start"&&t||i==="end"&&!t?Oe="left":Oe="right"),{inlineInset:wt,inlineOutOfBoundsCorrection:le,surfaceInlineProperty:Oe}}hostUpdate(){this.onUpdate()}hostUpdated(){this.onUpdate()}async onUpdate(){const e=this.getProperties();let t=!1;for(const[n,h]of Object.entries(e))if(t=t||h!==this.lastValues[n],t)break;const i=this.lastValues.isOpen!==e.isOpen,r=!!e.anchorEl,s=!!e.surfaceEl;t&&r&&s&&(this.lastValues.isOpen=e.isOpen,e.isOpen?(this.lastValues=e,await this.position(),e.onOpen()):i&&(await e.beforeClose(),this.close(),e.onClose()))}close(){this.surfaceStylesInternal={display:"none"},this.host.requestUpdate();const e=this.getProperties().surfaceEl;e!=null&&e.popover&&(e!=null&&e.isConnected)&&e.hidePopover()}}/**
912
+ */const Ji={END_START:"end-start",START_START:"start-start",START_END:"start-end"};class Pl{constructor(e,t){this.host=e,this.getProperties=t,this.surfaceStylesInternal={display:"none"},this.lastValues={isOpen:!1},this.host.addController(this)}get surfaceStyles(){return this.surfaceStylesInternal}async position(){const{surfaceEl:e,anchorEl:t,anchorCorner:i,surfaceCorner:r,positioning:s,xOffset:n,yOffset:h,repositionStrategy:p}=this.getProperties(),v=i.toLowerCase().trim(),f=r.toLowerCase().trim();if(!e||!t)return;const b=window.innerWidth,_=window.innerHeight,x=document.createElement("div");x.style.opacity="0",x.style.position="fixed",x.style.display="block",x.style.inset="0",document.body.appendChild(x);const S=x.getBoundingClientRect();x.remove();const C=window.innerHeight-S.bottom,E=window.innerWidth-S.right;this.surfaceStylesInternal={display:"block",opacity:"0"},this.host.requestUpdate(),await this.host.updateComplete,e.popover&&e.isConnected&&e.showPopover();const A=e.getSurfacePositionClientRect?e.getSurfacePositionClientRect():e.getBoundingClientRect(),T=t.getSurfacePositionClientRect?t.getSurfacePositionClientRect():t.getBoundingClientRect(),[Y,q]=f.split("-"),[M,Ue]=v.split("-"),je=getComputedStyle(e).direction==="ltr";let{blockInset:be,blockOutOfBoundsCorrection:le,surfaceBlockProperty:wt}=this.calculateBlock({surfaceRect:A,anchorRect:T,anchorBlock:M,surfaceBlock:Y,yOffset:h,positioning:s,windowInnerHeight:_,blockScrollbarHeight:C});if(le){const yi=Y==="start"?"end":"start",_i=M==="start"?"end":"start",Se=this.calculateBlock({surfaceRect:A,anchorRect:T,anchorBlock:_i,surfaceBlock:yi,yOffset:h,positioning:s,windowInnerHeight:_,blockScrollbarHeight:C});le>Se.blockOutOfBoundsCorrection&&(be=Se.blockInset,le=Se.blockOutOfBoundsCorrection,wt=Se.surfaceBlockProperty)}let{inlineInset:Oe,inlineOutOfBoundsCorrection:rt,surfaceInlineProperty:Cr}=this.calculateInline({surfaceRect:A,anchorRect:T,anchorInline:Ue,surfaceInline:q,xOffset:n,positioning:s,isLTR:je,windowInnerWidth:b,inlineScrollbarWidth:E});if(rt){const yi=q==="start"?"end":"start",_i=Ue==="start"?"end":"start",Se=this.calculateInline({surfaceRect:A,anchorRect:T,anchorInline:_i,surfaceInline:yi,xOffset:n,positioning:s,isLTR:je,windowInnerWidth:b,inlineScrollbarWidth:E});Math.abs(rt)>Math.abs(Se.inlineOutOfBoundsCorrection)&&(Oe=Se.inlineInset,rt=Se.inlineOutOfBoundsCorrection,Cr=Se.surfaceInlineProperty)}p==="move"&&(be=be-le,Oe=Oe-rt),this.surfaceStylesInternal={display:"block",opacity:"1",[wt]:`${be}px`,[Cr]:`${Oe}px`},p==="resize"&&(le&&(this.surfaceStylesInternal.height=`${A.height-le}px`),rt&&(this.surfaceStylesInternal.width=`${A.width-rt}px`)),this.host.requestUpdate()}calculateBlock(e){const{surfaceRect:t,anchorRect:i,anchorBlock:r,surfaceBlock:s,yOffset:n,positioning:h,windowInnerHeight:p,blockScrollbarHeight:v}=e,f=h==="fixed"||h==="document"?1:0,b=h==="document"?1:0,_=s==="start"?1:0,x=s==="end"?1:0,C=(r!==s?1:0)*i.height+n,E=_*i.top+x*(p-i.bottom-v),A=_*window.scrollY-x*window.scrollY,T=Math.abs(Math.min(0,p-E-C-t.height));return{blockInset:f*E+b*A+C,blockOutOfBoundsCorrection:T,surfaceBlockProperty:s==="start"?"inset-block-start":"inset-block-end"}}calculateInline(e){const{isLTR:t,surfaceInline:i,anchorInline:r,anchorRect:s,surfaceRect:n,xOffset:h,positioning:p,windowInnerWidth:v,inlineScrollbarWidth:f}=e,b=p==="fixed"||p==="document"?1:0,_=p==="document"?1:0,x=t?1:0,S=t?0:1,C=i==="start"?1:0,E=i==="end"?1:0,T=(r!==i?1:0)*s.width+h,Y=C*s.left+E*(v-s.right-f),q=C*(v-s.right-f)+E*s.left,M=x*Y+S*q,Ue=C*window.scrollX-E*window.scrollX,je=E*window.scrollX-C*window.scrollX,be=x*Ue+S*je,le=Math.abs(Math.min(0,v-M-T-n.width)),wt=b*M+T+_*be;let Oe=i==="start"?"inset-inline-start":"inset-inline-end";return(p==="document"||p==="fixed")&&(i==="start"&&t||i==="end"&&!t?Oe="left":Oe="right"),{inlineInset:wt,inlineOutOfBoundsCorrection:le,surfaceInlineProperty:Oe}}hostUpdate(){this.onUpdate()}hostUpdated(){this.onUpdate()}async onUpdate(){const e=this.getProperties();let t=!1;for(const[n,h]of Object.entries(e))if(t=t||h!==this.lastValues[n],t)break;const i=this.lastValues.isOpen!==e.isOpen,r=!!e.anchorEl,s=!!e.surfaceEl;t&&r&&s&&(this.lastValues.isOpen=e.isOpen,e.isOpen?(this.lastValues=e,await this.position(),e.onOpen()):i&&(await e.beforeClose(),this.close(),e.onClose()))}close(){this.surfaceStylesInternal={display:"none"},this.host.requestUpdate();const e=this.getProperties().surfaceEl;e!=null&&e.popover&&(e!=null&&e.isConnected)&&e.hidePopover()}}/**
913
913
  * @license
914
914
  * Copyright 2023 Google LLC
915
915
  * SPDX-License-Identifier: Apache-2.0
@@ -935,7 +935,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
935
935
  @activate-typeahead=${this.handleActivateTypeahead}
936
936
  @stay-open-on-focusout=${this.handleStayOpenOnFocusout}
937
937
  @close-on-focusout=${this.handleCloseOnFocusout}
938
- @slotchange=${this.listController.onSlotchange}></slot>`}renderElevation(){return c`<md-elevation part="elevation"></md-elevation>`}getSurfaceClasses(){return{open:this.open,fixed:this.positioning==="fixed","has-overflow":this.hasOverflow}}captureKeydown(e){e.target===this&&!e.defaultPrevented&&Ha(e.code)&&(e.preventDefault(),this.close()),this.typeaheadController.onKeydown(e)}async animateOpen(){const e=this.surfaceEl,t=this.slotEl;if(!e||!t)return!0;const i=this.openDirection;this.dispatchEvent(new Event("opening")),e.classList.toggle("animating",!0);const r=this.openCloseAnimationSignal.start(),s=e.offsetHeight,n=i==="UP",h=this.items,p=500,v=50,f=250,b=(p-f)/h.length,_=e.animate([{height:"0px"},{height:`${s}px`}],{duration:p,easing:me.EMPHASIZED}),x=t.animate([{transform:n?`translateY(-${s}px)`:""},{transform:""}],{duration:p,easing:me.EMPHASIZED}),S=e.animate([{opacity:0},{opacity:1}],v),C=[];for(let I=0;I<h.length;I++){const Y=n?h.length-1-I:I,q=h[Y],M=q.animate([{opacity:0},{opacity:1}],{duration:f,delay:b*I});q.classList.toggle("md-menu-hidden",!0),M.addEventListener("finish",()=>{q.classList.toggle("md-menu-hidden",!1)}),C.push([q,M])}let E=I=>{};const A=new Promise(I=>{E=I});return r.addEventListener("abort",()=>{_.cancel(),x.cancel(),S.cancel(),C.forEach(([I,Y])=>{I.classList.toggle("md-menu-hidden",!1),Y.cancel()}),E(!0)}),_.addEventListener("finish",()=>{e.classList.toggle("animating",!1),this.openCloseAnimationSignal.finish(),E(!1)}),await A}animateClose(){let e;const t=new Promise(M=>{e=M}),i=this.surfaceEl,r=this.slotEl;if(!i||!r)return e(!1),t;const n=this.openDirection==="UP";this.dispatchEvent(new Event("closing")),i.classList.toggle("animating",!0);const h=this.openCloseAnimationSignal.start(),p=i.offsetHeight,v=this.items,f=150,b=50,_=f-b,x=50,S=50,C=.35,E=(f-S-x)/v.length,A=i.animate([{height:`${p}px`},{height:`${p*C}px`}],{duration:f,easing:me.EMPHASIZED_ACCELERATE}),I=r.animate([{transform:""},{transform:n?`translateY(-${p*(1-C)}px)`:""}],{duration:f,easing:me.EMPHASIZED_ACCELERATE}),Y=i.animate([{opacity:1},{opacity:0}],{duration:b,delay:_}),q=[];for(let M=0;M<v.length;M++){const Ue=n?M:v.length-1-M,je=v[Ue],be=je.animate([{opacity:1},{opacity:0}],{duration:x,delay:S+E*M});be.addEventListener("finish",()=>{je.classList.toggle("md-menu-hidden",!0)}),q.push([je,be])}return h.addEventListener("abort",()=>{A.cancel(),I.cancel(),Y.cancel(),q.forEach(([M,Ue])=>{Ue.cancel(),M.classList.toggle("md-menu-hidden",!1)}),e(!1)}),A.addEventListener("finish",()=>{i.classList.toggle("animating",!1),q.forEach(([M])=>{M.classList.toggle("md-menu-hidden",!1)}),this.openCloseAnimationSignal.finish(),this.dispatchEvent(new Event("closed")),e(!0)}),t}handleKeydown(e){this.pointerPath=[],this.listController.handleKeydown(e)}setUpGlobalEventListeners(){document.addEventListener("click",this.onDocumentClick,{capture:!0}),window.addEventListener("pointerdown",this.onWindowPointerdown),document.addEventListener("resize",this.onWindowResize,{passive:!0}),window.addEventListener("resize",this.onWindowResize,{passive:!0})}cleanUpGlobalEventListeners(){document.removeEventListener("click",this.onDocumentClick,{capture:!0}),window.removeEventListener("pointerdown",this.onWindowPointerdown),document.removeEventListener("resize",this.onWindowResize),window.removeEventListener("resize",this.onWindowResize)}onCloseMenu(){this.close()}onDeactivateItems(e){e.stopPropagation(),this.listController.onDeactivateItems()}onRequestActivation(e){e.stopPropagation(),this.listController.onRequestActivation(e)}handleDeactivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!1}handleActivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!0}handleStayOpenOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!0}handleCloseOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!1}close(){this.open=!1,this.slotItems.forEach(t=>{var i;(i=t.close)==null||i.call(t)})}show(){this.open=!0}activateNextItem(){return this.listController.activateNextItem()??null}activatePreviousItem(){return this.listController.activatePreviousItem()??null}reposition(){this.open&&this.menuPositionController.position()}}d([k(".menu")],F.prototype,"surfaceEl",void 0),d([k("slot")],F.prototype,"slotEl",void 0),d([l()],F.prototype,"anchor",void 0),d([l()],F.prototype,"positioning",void 0),d([l({type:Boolean})],F.prototype,"quick",void 0),d([l({type:Boolean,attribute:"has-overflow"})],F.prototype,"hasOverflow",void 0),d([l({type:Boolean,reflect:!0})],F.prototype,"open",void 0),d([l({type:Number,attribute:"x-offset"})],F.prototype,"xOffset",void 0),d([l({type:Number,attribute:"y-offset"})],F.prototype,"yOffset",void 0),d([l({type:Number,attribute:"typeahead-delay"})],F.prototype,"typeaheadDelay",void 0),d([l({attribute:"anchor-corner"})],F.prototype,"anchorCorner",void 0),d([l({attribute:"menu-corner"})],F.prototype,"menuCorner",void 0),d([l({type:Boolean,attribute:"stay-open-on-outside-click"})],F.prototype,"stayOpenOnOutsideClick",void 0),d([l({type:Boolean,attribute:"stay-open-on-focusout"})],F.prototype,"stayOpenOnFocusout",void 0),d([l({type:Boolean,attribute:"skip-restore-focus"})],F.prototype,"skipRestoreFocus",void 0),d([l({attribute:"default-focus"})],F.prototype,"defaultFocus",void 0),d([l({type:Boolean,attribute:"no-navigation-wrap"})],F.prototype,"noNavigationWrap",void 0),d([G({flatten:!0})],F.prototype,"slotItems",void 0),d([w()],F.prototype,"typeaheadActive",void 0);/**
938
+ @slotchange=${this.listController.onSlotchange}></slot>`}renderElevation(){return c`<md-elevation part="elevation"></md-elevation>`}getSurfaceClasses(){return{open:this.open,fixed:this.positioning==="fixed","has-overflow":this.hasOverflow}}captureKeydown(e){e.target===this&&!e.defaultPrevented&&Ha(e.code)&&(e.preventDefault(),this.close()),this.typeaheadController.onKeydown(e)}async animateOpen(){const e=this.surfaceEl,t=this.slotEl;if(!e||!t)return!0;const i=this.openDirection;this.dispatchEvent(new Event("opening")),e.classList.toggle("animating",!0);const r=this.openCloseAnimationSignal.start(),s=e.offsetHeight,n=i==="UP",h=this.items,p=500,v=50,f=250,b=(p-f)/h.length,_=e.animate([{height:"0px"},{height:`${s}px`}],{duration:p,easing:me.EMPHASIZED}),x=t.animate([{transform:n?`translateY(-${s}px)`:""},{transform:""}],{duration:p,easing:me.EMPHASIZED}),S=e.animate([{opacity:0},{opacity:1}],v),C=[];for(let T=0;T<h.length;T++){const Y=n?h.length-1-T:T,q=h[Y],M=q.animate([{opacity:0},{opacity:1}],{duration:f,delay:b*T});q.classList.toggle("md-menu-hidden",!0),M.addEventListener("finish",()=>{q.classList.toggle("md-menu-hidden",!1)}),C.push([q,M])}let E=T=>{};const A=new Promise(T=>{E=T});return r.addEventListener("abort",()=>{_.cancel(),x.cancel(),S.cancel(),C.forEach(([T,Y])=>{T.classList.toggle("md-menu-hidden",!1),Y.cancel()}),E(!0)}),_.addEventListener("finish",()=>{e.classList.toggle("animating",!1),this.openCloseAnimationSignal.finish(),E(!1)}),await A}animateClose(){let e;const t=new Promise(M=>{e=M}),i=this.surfaceEl,r=this.slotEl;if(!i||!r)return e(!1),t;const n=this.openDirection==="UP";this.dispatchEvent(new Event("closing")),i.classList.toggle("animating",!0);const h=this.openCloseAnimationSignal.start(),p=i.offsetHeight,v=this.items,f=150,b=50,_=f-b,x=50,S=50,C=.35,E=(f-S-x)/v.length,A=i.animate([{height:`${p}px`},{height:`${p*C}px`}],{duration:f,easing:me.EMPHASIZED_ACCELERATE}),T=r.animate([{transform:""},{transform:n?`translateY(-${p*(1-C)}px)`:""}],{duration:f,easing:me.EMPHASIZED_ACCELERATE}),Y=i.animate([{opacity:1},{opacity:0}],{duration:b,delay:_}),q=[];for(let M=0;M<v.length;M++){const Ue=n?M:v.length-1-M,je=v[Ue],be=je.animate([{opacity:1},{opacity:0}],{duration:x,delay:S+E*M});be.addEventListener("finish",()=>{je.classList.toggle("md-menu-hidden",!0)}),q.push([je,be])}return h.addEventListener("abort",()=>{A.cancel(),T.cancel(),Y.cancel(),q.forEach(([M,Ue])=>{Ue.cancel(),M.classList.toggle("md-menu-hidden",!1)}),e(!1)}),A.addEventListener("finish",()=>{i.classList.toggle("animating",!1),q.forEach(([M])=>{M.classList.toggle("md-menu-hidden",!1)}),this.openCloseAnimationSignal.finish(),this.dispatchEvent(new Event("closed")),e(!0)}),t}handleKeydown(e){this.pointerPath=[],this.listController.handleKeydown(e)}setUpGlobalEventListeners(){document.addEventListener("click",this.onDocumentClick,{capture:!0}),window.addEventListener("pointerdown",this.onWindowPointerdown),document.addEventListener("resize",this.onWindowResize,{passive:!0}),window.addEventListener("resize",this.onWindowResize,{passive:!0})}cleanUpGlobalEventListeners(){document.removeEventListener("click",this.onDocumentClick,{capture:!0}),window.removeEventListener("pointerdown",this.onWindowPointerdown),document.removeEventListener("resize",this.onWindowResize),window.removeEventListener("resize",this.onWindowResize)}onCloseMenu(){this.close()}onDeactivateItems(e){e.stopPropagation(),this.listController.onDeactivateItems()}onRequestActivation(e){e.stopPropagation(),this.listController.onRequestActivation(e)}handleDeactivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!1}handleActivateTypeahead(e){e.stopPropagation(),this.typeaheadActive=!0}handleStayOpenOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!0}handleCloseOnFocusout(e){e.stopPropagation(),this.stayOpenOnFocusout=!1}close(){this.open=!1,this.slotItems.forEach(t=>{var i;(i=t.close)==null||i.call(t)})}show(){this.open=!0}activateNextItem(){return this.listController.activateNextItem()??null}activatePreviousItem(){return this.listController.activatePreviousItem()??null}reposition(){this.open&&this.menuPositionController.position()}}d([k(".menu")],F.prototype,"surfaceEl",void 0),d([k("slot")],F.prototype,"slotEl",void 0),d([l()],F.prototype,"anchor",void 0),d([l()],F.prototype,"positioning",void 0),d([l({type:Boolean})],F.prototype,"quick",void 0),d([l({type:Boolean,attribute:"has-overflow"})],F.prototype,"hasOverflow",void 0),d([l({type:Boolean,reflect:!0})],F.prototype,"open",void 0),d([l({type:Number,attribute:"x-offset"})],F.prototype,"xOffset",void 0),d([l({type:Number,attribute:"y-offset"})],F.prototype,"yOffset",void 0),d([l({type:Number,attribute:"typeahead-delay"})],F.prototype,"typeaheadDelay",void 0),d([l({attribute:"anchor-corner"})],F.prototype,"anchorCorner",void 0),d([l({attribute:"menu-corner"})],F.prototype,"menuCorner",void 0),d([l({type:Boolean,attribute:"stay-open-on-outside-click"})],F.prototype,"stayOpenOnOutsideClick",void 0),d([l({type:Boolean,attribute:"stay-open-on-focusout"})],F.prototype,"stayOpenOnFocusout",void 0),d([l({type:Boolean,attribute:"skip-restore-focus"})],F.prototype,"skipRestoreFocus",void 0),d([l({attribute:"default-focus"})],F.prototype,"defaultFocus",void 0),d([l({type:Boolean,attribute:"no-navigation-wrap"})],F.prototype,"noNavigationWrap",void 0),d([G({flatten:!0})],F.prototype,"slotItems",void 0),d([w()],F.prototype,"typeaheadActive",void 0);/**
939
939
  * @license
940
940
  * Copyright 2024 Google LLC
941
941
  * SPDX-License-Identifier: Apache-2.0
@@ -1336,7 +1336,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
1336
1336
  * @license
1337
1337
  * Copyright 2023 Google LLC
1338
1338
  * SPDX-License-Identifier: Apache-2.0
1339
- */const lc=$t(Ye(y));class T extends lc{get nameStart(){return this.getAttribute("name-start")??this.name}set nameStart(e){this.setAttribute("name-start",e)}get nameEnd(){return this.getAttribute("name-end")??this.nameStart}set nameEnd(e){this.setAttribute("name-end",e)}get renderAriaLabelStart(){const{ariaLabel:e}=this;return this.ariaLabelStart||e&&`${e} start`||this.valueLabelStart||String(this.valueStart)}get renderAriaValueTextStart(){return this.ariaValueTextStart||this.valueLabelStart||String(this.valueStart)}get renderAriaLabelEnd(){const{ariaLabel:e}=this;return this.range?this.ariaLabelEnd||e&&`${e} end`||this.valueLabelEnd||String(this.valueEnd):e||this.valueLabel||String(this.value)}get renderAriaValueTextEnd(){if(this.range)return this.ariaValueTextEnd||this.valueLabelEnd||String(this.valueEnd);const{ariaValueText:e}=this;return e||this.valueLabel||String(this.value)}constructor(){super(),this.min=0,this.max=100,this.valueLabel="",this.valueLabelStart="",this.valueLabelEnd="",this.ariaLabelStart="",this.ariaValueTextStart="",this.ariaLabelEnd="",this.ariaValueTextEnd="",this.step=1,this.ticks=!1,this.labeled=!1,this.range=!1,this.handleStartHover=!1,this.handleEndHover=!1,this.startOnTop=!1,this.handlesOverlapping=!1,this.ripplePointerId=1,this.isRedispatchingEvent=!1,this.addEventListener("click",e=>{!Xt(e)||!this.inputEnd||(this.focus(),zi(this.inputEnd))})}focus(){var e;(e=this.inputEnd)==null||e.focus()}willUpdate(e){var i,r;this.renderValueStart=e.has("valueStart")?this.valueStart:(i=this.inputStart)==null?void 0:i.valueAsNumber;const t=e.has("valueEnd")&&this.range||e.has("value");this.renderValueEnd=t?this.range?this.valueEnd:this.value:(r=this.inputEnd)==null?void 0:r.valueAsNumber,e.get("handleStartHover")!==void 0?this.toggleRippleHover(this.rippleStart,this.handleStartHover):e.get("handleEndHover")!==void 0&&this.toggleRippleHover(this.rippleEnd,this.handleEndHover)}updated(e){var t,i;if(this.range&&(this.renderValueStart=this.inputStart.valueAsNumber),this.renderValueEnd=this.inputEnd.valueAsNumber,this.range){const r=(this.max-this.min)/3;if(this.valueStart===void 0){this.inputStart.valueAsNumber=this.min+r;const s=this.inputStart.valueAsNumber;this.valueStart=this.renderValueStart=s}if(this.valueEnd===void 0){this.inputEnd.valueAsNumber=this.min+2*r;const s=this.inputEnd.valueAsNumber;this.valueEnd=this.renderValueEnd=s}}else this.value??(this.value=this.renderValueEnd);if(e.has("range")||e.has("renderValueStart")||e.has("renderValueEnd")||this.isUpdatePending){const r=(t=this.handleStart)==null?void 0:t.querySelector(".handleNub"),s=(i=this.handleEnd)==null?void 0:i.querySelector(".handleNub");this.handlesOverlapping=cc(r,s)}this.performUpdate()}render(){const e=this.step===0?1:this.step,t=Math.max(this.max-this.min,e),i=this.range?((this.renderValueStart??this.min)-this.min)/t:0,r=((this.renderValueEnd??this.min)-this.min)/t,s={"--_start-fraction":String(i),"--_end-fraction":String(r),"--_tick-count":String(t/e)},n={ranged:this.range},h=this.valueLabelStart||String(this.renderValueStart),p=(this.range?this.valueLabelEnd:this.valueLabel)||String(this.renderValueEnd),v={start:!0,value:this.renderValueStart,ariaLabel:this.renderAriaLabelStart,ariaValueText:this.renderAriaValueTextStart,ariaMin:this.min,ariaMax:this.valueEnd??this.max},f={start:!1,value:this.renderValueEnd,ariaLabel:this.renderAriaLabelEnd,ariaValueText:this.renderAriaValueTextEnd,ariaMin:this.range?this.valueStart??this.min:this.min,ariaMax:this.max},b={start:!0,hover:this.handleStartHover,label:h},_={start:!1,hover:this.handleEndHover,label:p},x={hover:this.handleStartHover||this.handleEndHover};return c` <div
1339
+ */const lc=$t(Ye(y));class z extends lc{get nameStart(){return this.getAttribute("name-start")??this.name}set nameStart(e){this.setAttribute("name-start",e)}get nameEnd(){return this.getAttribute("name-end")??this.nameStart}set nameEnd(e){this.setAttribute("name-end",e)}get renderAriaLabelStart(){const{ariaLabel:e}=this;return this.ariaLabelStart||e&&`${e} start`||this.valueLabelStart||String(this.valueStart)}get renderAriaValueTextStart(){return this.ariaValueTextStart||this.valueLabelStart||String(this.valueStart)}get renderAriaLabelEnd(){const{ariaLabel:e}=this;return this.range?this.ariaLabelEnd||e&&`${e} end`||this.valueLabelEnd||String(this.valueEnd):e||this.valueLabel||String(this.value)}get renderAriaValueTextEnd(){if(this.range)return this.ariaValueTextEnd||this.valueLabelEnd||String(this.valueEnd);const{ariaValueText:e}=this;return e||this.valueLabel||String(this.value)}constructor(){super(),this.min=0,this.max=100,this.valueLabel="",this.valueLabelStart="",this.valueLabelEnd="",this.ariaLabelStart="",this.ariaValueTextStart="",this.ariaLabelEnd="",this.ariaValueTextEnd="",this.step=1,this.ticks=!1,this.labeled=!1,this.range=!1,this.handleStartHover=!1,this.handleEndHover=!1,this.startOnTop=!1,this.handlesOverlapping=!1,this.ripplePointerId=1,this.isRedispatchingEvent=!1,this.addEventListener("click",e=>{!Xt(e)||!this.inputEnd||(this.focus(),Ii(this.inputEnd))})}focus(){var e;(e=this.inputEnd)==null||e.focus()}willUpdate(e){var i,r;this.renderValueStart=e.has("valueStart")?this.valueStart:(i=this.inputStart)==null?void 0:i.valueAsNumber;const t=e.has("valueEnd")&&this.range||e.has("value");this.renderValueEnd=t?this.range?this.valueEnd:this.value:(r=this.inputEnd)==null?void 0:r.valueAsNumber,e.get("handleStartHover")!==void 0?this.toggleRippleHover(this.rippleStart,this.handleStartHover):e.get("handleEndHover")!==void 0&&this.toggleRippleHover(this.rippleEnd,this.handleEndHover)}updated(e){var t,i;if(this.range&&(this.renderValueStart=this.inputStart.valueAsNumber),this.renderValueEnd=this.inputEnd.valueAsNumber,this.range){const r=(this.max-this.min)/3;if(this.valueStart===void 0){this.inputStart.valueAsNumber=this.min+r;const s=this.inputStart.valueAsNumber;this.valueStart=this.renderValueStart=s}if(this.valueEnd===void 0){this.inputEnd.valueAsNumber=this.min+2*r;const s=this.inputEnd.valueAsNumber;this.valueEnd=this.renderValueEnd=s}}else this.value??(this.value=this.renderValueEnd);if(e.has("range")||e.has("renderValueStart")||e.has("renderValueEnd")||this.isUpdatePending){const r=(t=this.handleStart)==null?void 0:t.querySelector(".handleNub"),s=(i=this.handleEnd)==null?void 0:i.querySelector(".handleNub");this.handlesOverlapping=cc(r,s)}this.performUpdate()}render(){const e=this.step===0?1:this.step,t=Math.max(this.max-this.min,e),i=this.range?((this.renderValueStart??this.min)-this.min)/t:0,r=((this.renderValueEnd??this.min)-this.min)/t,s={"--_start-fraction":String(i),"--_end-fraction":String(r),"--_tick-count":String(t/e)},n={ranged:this.range},h=this.valueLabelStart||String(this.renderValueStart),p=(this.range?this.valueLabelEnd:this.valueLabel)||String(this.renderValueEnd),v={start:!0,value:this.renderValueStart,ariaLabel:this.renderAriaLabelStart,ariaValueText:this.renderAriaValueTextStart,ariaMin:this.min,ariaMax:this.valueEnd??this.max},f={start:!1,value:this.renderValueEnd,ariaLabel:this.renderAriaLabelEnd,ariaValueText:this.renderAriaValueTextEnd,ariaMin:this.range?this.valueStart??this.min:this.min,ariaMax:this.max},b={start:!0,hover:this.handleStartHover,label:h},_={start:!1,hover:this.handleEndHover,label:p},x={hover:this.handleStartHover||this.handleEndHover};return c` <div
1340
1340
  class="container ${P(n)}"
1341
1341
  style=${pt(s)}>
1342
1342
  ${$o(this.range,()=>this.renderInput(v))}
@@ -1388,7 +1388,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
1388
1388
  .value=${String(t)}
1389
1389
  .tabIndex=${e?1:0}
1390
1390
  aria-label=${i||u}
1391
- aria-valuetext=${r} />`}async toggleRippleHover(e,t){const i=await e;i&&(t?i.handlePointerenter(new PointerEvent("pointerenter",{isPrimary:!0,pointerId:this.ripplePointerId})):i.handlePointerleave(new PointerEvent("pointerleave",{isPrimary:!0,pointerId:this.ripplePointerId})))}handleFocus(e){this.updateOnTop(e.target)}startAction(e){const t=e.target,i=t===this.inputStart?this.inputEnd:this.inputStart;this.action={canFlip:e.type==="pointerdown",flipped:!1,target:t,fixed:i,values:new Map([[t,t.valueAsNumber],[i,i==null?void 0:i.valueAsNumber]])}}finishAction(e){this.action=void 0}handleKeydown(e){this.startAction(e)}handleKeyup(e){this.finishAction(e)}handleDown(e){this.startAction(e),this.ripplePointerId=e.pointerId;const t=e.target===this.inputStart;this.handleStartHover=!this.disabled&&t&&!!this.handleStart,this.handleEndHover=!this.disabled&&!t&&!!this.handleEnd}async handleUp(e){if(!this.action)return;const{target:t,values:i,flipped:r}=this.action;await new Promise(requestAnimationFrame),t!==void 0&&(t.focus(),r&&t.valueAsNumber!==i.get(t)&&t.dispatchEvent(new Event("change",{bubbles:!0}))),this.finishAction(e)}handleMove(e){this.handleStartHover=!this.disabled&&Za(e,this.handleStart),this.handleEndHover=!this.disabled&&Za(e,this.handleEnd)}handleEnter(e){this.handleMove(e)}handleLeave(){this.handleStartHover=!1,this.handleEndHover=!1}updateOnTop(e){this.startOnTop=e.classList.contains("start")}needsClamping(){if(!this.action)return!1;const{target:e,fixed:t}=this.action;return e===this.inputStart?e.valueAsNumber>t.valueAsNumber:e.valueAsNumber<t.valueAsNumber}isActionFlipped(){const{action:e}=this;if(!e)return!1;const{target:t,fixed:i,values:r}=e;return e.canFlip&&r.get(t)===r.get(i)&&this.needsClamping()&&(e.canFlip=!1,e.flipped=!0,e.target=i,e.fixed=t),e.flipped}flipAction(){if(!this.action)return!1;const{target:e,fixed:t,values:i}=this.action,r=e.valueAsNumber!==t.valueAsNumber;return e.valueAsNumber=t.valueAsNumber,t.valueAsNumber=i.get(t),r}clampAction(){if(!this.needsClamping()||!this.action)return!1;const{target:e,fixed:t}=this.action;return e.valueAsNumber=t.valueAsNumber,!0}handleInput(e){if(this.isRedispatchingEvent)return;let t=!1,i=!1;this.range&&(this.isActionFlipped()&&(t=!0,i=this.flipAction()),this.clampAction()&&(t=!0,i=!1));const r=e.target;this.updateOnTop(r),this.range?(this.valueStart=this.inputStart.valueAsNumber,this.valueEnd=this.inputEnd.valueAsNumber):this.value=this.inputEnd.valueAsNumber,t&&e.stopPropagation(),i&&(this.isRedispatchingEvent=!0,Xe(r,e),this.isRedispatchingEvent=!1)}handleChange(e){const t=e.target,{target:i,values:r}=this.action??{};i&&i.valueAsNumber===r.get(t)||Xe(this,e),this.finishAction(e)}[Pe](){if(this.range){const e=new FormData;return e.append(this.nameStart,String(this.valueStart)),e.append(this.nameEnd,String(this.valueEnd)),e}return String(this.value)}formResetCallback(){if(this.range){const t=this.getAttribute("value-start");this.valueStart=t!==null?Number(t):void 0;const i=this.getAttribute("value-end");this.valueEnd=i!==null?Number(i):void 0;return}const e=this.getAttribute("value");this.value=e!==null?Number(e):void 0}formStateRestoreCallback(e){if(Array.isArray(e)){const[[,t],[,i]]=e;this.valueStart=Number(t),this.valueEnd=Number(i),this.range=!0;return}this.value=Number(e),this.range=!1}}Q(T),T.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([l({type:Number})],T.prototype,"min",void 0),d([l({type:Number})],T.prototype,"max",void 0),d([l({type:Number})],T.prototype,"value",void 0),d([l({type:Number,attribute:"value-start"})],T.prototype,"valueStart",void 0),d([l({type:Number,attribute:"value-end"})],T.prototype,"valueEnd",void 0),d([l({attribute:"value-label"})],T.prototype,"valueLabel",void 0),d([l({attribute:"value-label-start"})],T.prototype,"valueLabelStart",void 0),d([l({attribute:"value-label-end"})],T.prototype,"valueLabelEnd",void 0),d([l({attribute:"aria-label-start"})],T.prototype,"ariaLabelStart",void 0),d([l({attribute:"aria-valuetext-start"})],T.prototype,"ariaValueTextStart",void 0),d([l({attribute:"aria-label-end"})],T.prototype,"ariaLabelEnd",void 0),d([l({attribute:"aria-valuetext-end"})],T.prototype,"ariaValueTextEnd",void 0),d([l({type:Number})],T.prototype,"step",void 0),d([l({type:Boolean})],T.prototype,"ticks",void 0),d([l({type:Boolean})],T.prototype,"labeled",void 0),d([l({type:Boolean})],T.prototype,"range",void 0),d([k("input.start")],T.prototype,"inputStart",void 0),d([k(".handle.start")],T.prototype,"handleStart",void 0),d([ea("md-ripple.start")],T.prototype,"rippleStart",void 0),d([k("input.end")],T.prototype,"inputEnd",void 0),d([k(".handle.end")],T.prototype,"handleEnd",void 0),d([ea("md-ripple.end")],T.prototype,"rippleEnd",void 0),d([w()],T.prototype,"handleStartHover",void 0),d([w()],T.prototype,"handleEndHover",void 0),d([w()],T.prototype,"startOnTop",void 0),d([w()],T.prototype,"handlesOverlapping",void 0),d([w()],T.prototype,"renderValueStart",void 0),d([w()],T.prototype,"renderValueEnd",void 0);function Za({x:o,y:e},t){if(!t)return!1;const{top:i,left:r,bottom:s,right:n}=t.getBoundingClientRect();return o>=r&&o<=n&&e>=i&&e<=s}function cc(o,e){if(!(o&&e))return!1;const t=o.getBoundingClientRect(),i=e.getBoundingClientRect();return!(t.top>i.bottom||t.right<i.left||t.bottom<i.top||t.left>i.right)}/**
1391
+ aria-valuetext=${r} />`}async toggleRippleHover(e,t){const i=await e;i&&(t?i.handlePointerenter(new PointerEvent("pointerenter",{isPrimary:!0,pointerId:this.ripplePointerId})):i.handlePointerleave(new PointerEvent("pointerleave",{isPrimary:!0,pointerId:this.ripplePointerId})))}handleFocus(e){this.updateOnTop(e.target)}startAction(e){const t=e.target,i=t===this.inputStart?this.inputEnd:this.inputStart;this.action={canFlip:e.type==="pointerdown",flipped:!1,target:t,fixed:i,values:new Map([[t,t.valueAsNumber],[i,i==null?void 0:i.valueAsNumber]])}}finishAction(e){this.action=void 0}handleKeydown(e){this.startAction(e)}handleKeyup(e){this.finishAction(e)}handleDown(e){this.startAction(e),this.ripplePointerId=e.pointerId;const t=e.target===this.inputStart;this.handleStartHover=!this.disabled&&t&&!!this.handleStart,this.handleEndHover=!this.disabled&&!t&&!!this.handleEnd}async handleUp(e){if(!this.action)return;const{target:t,values:i,flipped:r}=this.action;await new Promise(requestAnimationFrame),t!==void 0&&(t.focus(),r&&t.valueAsNumber!==i.get(t)&&t.dispatchEvent(new Event("change",{bubbles:!0}))),this.finishAction(e)}handleMove(e){this.handleStartHover=!this.disabled&&Za(e,this.handleStart),this.handleEndHover=!this.disabled&&Za(e,this.handleEnd)}handleEnter(e){this.handleMove(e)}handleLeave(){this.handleStartHover=!1,this.handleEndHover=!1}updateOnTop(e){this.startOnTop=e.classList.contains("start")}needsClamping(){if(!this.action)return!1;const{target:e,fixed:t}=this.action;return e===this.inputStart?e.valueAsNumber>t.valueAsNumber:e.valueAsNumber<t.valueAsNumber}isActionFlipped(){const{action:e}=this;if(!e)return!1;const{target:t,fixed:i,values:r}=e;return e.canFlip&&r.get(t)===r.get(i)&&this.needsClamping()&&(e.canFlip=!1,e.flipped=!0,e.target=i,e.fixed=t),e.flipped}flipAction(){if(!this.action)return!1;const{target:e,fixed:t,values:i}=this.action,r=e.valueAsNumber!==t.valueAsNumber;return e.valueAsNumber=t.valueAsNumber,t.valueAsNumber=i.get(t),r}clampAction(){if(!this.needsClamping()||!this.action)return!1;const{target:e,fixed:t}=this.action;return e.valueAsNumber=t.valueAsNumber,!0}handleInput(e){if(this.isRedispatchingEvent)return;let t=!1,i=!1;this.range&&(this.isActionFlipped()&&(t=!0,i=this.flipAction()),this.clampAction()&&(t=!0,i=!1));const r=e.target;this.updateOnTop(r),this.range?(this.valueStart=this.inputStart.valueAsNumber,this.valueEnd=this.inputEnd.valueAsNumber):this.value=this.inputEnd.valueAsNumber,t&&e.stopPropagation(),i&&(this.isRedispatchingEvent=!0,Xe(r,e),this.isRedispatchingEvent=!1)}handleChange(e){const t=e.target,{target:i,values:r}=this.action??{};i&&i.valueAsNumber===r.get(t)||Xe(this,e),this.finishAction(e)}[Pe](){if(this.range){const e=new FormData;return e.append(this.nameStart,String(this.valueStart)),e.append(this.nameEnd,String(this.valueEnd)),e}return String(this.value)}formResetCallback(){if(this.range){const t=this.getAttribute("value-start");this.valueStart=t!==null?Number(t):void 0;const i=this.getAttribute("value-end");this.valueEnd=i!==null?Number(i):void 0;return}const e=this.getAttribute("value");this.value=e!==null?Number(e):void 0}formStateRestoreCallback(e){if(Array.isArray(e)){const[[,t],[,i]]=e;this.valueStart=Number(t),this.valueEnd=Number(i),this.range=!0;return}this.value=Number(e),this.range=!1}}Q(z),z.shadowRootOptions={...y.shadowRootOptions,delegatesFocus:!0},d([l({type:Number})],z.prototype,"min",void 0),d([l({type:Number})],z.prototype,"max",void 0),d([l({type:Number})],z.prototype,"value",void 0),d([l({type:Number,attribute:"value-start"})],z.prototype,"valueStart",void 0),d([l({type:Number,attribute:"value-end"})],z.prototype,"valueEnd",void 0),d([l({attribute:"value-label"})],z.prototype,"valueLabel",void 0),d([l({attribute:"value-label-start"})],z.prototype,"valueLabelStart",void 0),d([l({attribute:"value-label-end"})],z.prototype,"valueLabelEnd",void 0),d([l({attribute:"aria-label-start"})],z.prototype,"ariaLabelStart",void 0),d([l({attribute:"aria-valuetext-start"})],z.prototype,"ariaValueTextStart",void 0),d([l({attribute:"aria-label-end"})],z.prototype,"ariaLabelEnd",void 0),d([l({attribute:"aria-valuetext-end"})],z.prototype,"ariaValueTextEnd",void 0),d([l({type:Number})],z.prototype,"step",void 0),d([l({type:Boolean})],z.prototype,"ticks",void 0),d([l({type:Boolean})],z.prototype,"labeled",void 0),d([l({type:Boolean})],z.prototype,"range",void 0),d([k("input.start")],z.prototype,"inputStart",void 0),d([k(".handle.start")],z.prototype,"handleStart",void 0),d([ea("md-ripple.start")],z.prototype,"rippleStart",void 0),d([k("input.end")],z.prototype,"inputEnd",void 0),d([k(".handle.end")],z.prototype,"handleEnd",void 0),d([ea("md-ripple.end")],z.prototype,"rippleEnd",void 0),d([w()],z.prototype,"handleStartHover",void 0),d([w()],z.prototype,"handleEndHover",void 0),d([w()],z.prototype,"startOnTop",void 0),d([w()],z.prototype,"handlesOverlapping",void 0),d([w()],z.prototype,"renderValueStart",void 0),d([w()],z.prototype,"renderValueEnd",void 0);function Za({x:o,y:e},t){if(!t)return!1;const{top:i,left:r,bottom:s,right:n}=t.getBoundingClientRect();return o>=r&&o<=n&&e>=i&&e<=s}function cc(o,e){if(!(o&&e))return!1;const t=o.getBoundingClientRect(),i=e.getBoundingClientRect();return!(t.top>i.bottom||t.right<i.left||t.bottom<i.top||t.left>i.right)}/**
1392
1392
  * @license
1393
1393
  * Copyright 2024 Google LLC
1394
1394
  * SPDX-License-Identifier: Apache-2.0
@@ -1397,7 +1397,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
1397
1397
  * @license
1398
1398
  * Copyright 2023 Google LLC
1399
1399
  * SPDX-License-Identifier: Apache-2.0
1400
- */let Co=class extends T{};Co.styles=[dc,nc],Co=d([g("md-slider")],Co);/**
1400
+ */let Co=class extends z{};Co.styles=[dc,nc],Co=d([g("md-slider")],Co);/**
1401
1401
  * @license
1402
1402
  * Copyright 2023 Google LLC
1403
1403
  * SPDX-License-Identifier: Apache-2.0
@@ -1405,7 +1405,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
1405
1405
  * @license
1406
1406
  * Copyright 2021 Google LLC
1407
1407
  * SPDX-License-Identifier: Apache-2.0
1408
- */const uc=Jt($t(Ye(y)));class Be extends uc{constructor(){super(),this.selected=!1,this.icons=!1,this.showOnlySelectedIcon=!1,this.required=!1,this.value="on",this.addEventListener("click",e=>{!Xt(e)||!this.input||(this.focus(),zi(this.input))}),pc(this,"keydown"),this.addEventListener("keydown",e=>{hc(e,()=>{e.defaultPrevented||e.key!=="Enter"||this.disabled||!this.input||this.input.click()})})}render(){return c`
1408
+ */const uc=Jt($t(Ye(y)));class Be extends uc{constructor(){super(),this.selected=!1,this.icons=!1,this.showOnlySelectedIcon=!1,this.required=!1,this.value="on",this.addEventListener("click",e=>{!Xt(e)||!this.input||(this.focus(),Ii(this.input))}),pc(this,"keydown"),this.addEventListener("keydown",e=>{hc(e,()=>{e.defaultPrevented||e.key!=="Enter"||this.disabled||!this.input||this.input.click()})})}render(){return c`
1409
1409
  <div class="switch ${P(this.getRenderClasses())}">
1410
1410
  <input
1411
1411
  id="switch"
@@ -1462,7 +1462,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
1462
1462
  * @license
1463
1463
  * Copyright 2023 Google LLC
1464
1464
  * SPDX-License-Identifier: Apache-2.0
1465
- */var es;const It=Symbol("indicator"),ts=Symbol("animateIndicator"),mc=Wa(y);class ye extends mc{get selected(){return this.active}set selected(e){this.active=e}constructor(){super(),this.isTab=!0,this.active=!1,this.hasIcon=!1,this.iconOnly=!1,this.fullWidthIndicator=!1,this.internals=this.attachInternals(),this.internals.role="tab",this.addEventListener("keydown",this.handleKeydown.bind(this))}render(){const e=c`<div class="indicator"></div>`;return c`<div
1465
+ */var es;const Tt=Symbol("indicator"),ts=Symbol("animateIndicator"),mc=Wa(y);class ye extends mc{get selected(){return this.active}set selected(e){this.active=e}constructor(){super(),this.isTab=!0,this.active=!1,this.hasIcon=!1,this.iconOnly=!1,this.fullWidthIndicator=!1,this.internals=this.attachInternals(),this.internals.role="tab",this.addEventListener("keydown",this.handleKeydown.bind(this))}render(){const e=c`<div class="indicator"></div>`;return c`<div
1466
1466
  class="button"
1467
1467
  role="presentation"
1468
1468
  @click=${this.handleContentClick}>
@@ -1477,7 +1477,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
1477
1477
  ${this.fullWidthIndicator?u:e}
1478
1478
  </div>
1479
1479
  ${this.fullWidthIndicator?e:u}
1480
- </div>`}getContentClasses(){return{"has-icon":this.hasIcon,"has-label":!this.iconOnly}}updated(){this.internals.ariaSelected=String(this.active)}async handleKeydown(e){await 0,!e.defaultPrevented&&(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.click())}handleContentClick(e){e.stopPropagation(),this.click()}[(es=It,ts)](e){if(!this[It])return;this[It].getAnimations().forEach(i=>{i.cancel()});const t=this.getKeyframes(e);t!==null&&this[It].animate(t,{duration:250,easing:me.EMPHASIZED})}getKeyframes(e){var b;const t=fc();if(!this.active)return t?[{opacity:1},{transform:"none"}]:null;const i={},r=((b=e[It])==null?void 0:b.getBoundingClientRect())??{},s=r.left,n=r.width,h=this[It].getBoundingClientRect(),p=h.left,v=h.width,f=n/v;return!t&&s!==void 0&&p!==void 0&&!isNaN(f)?i.transform=`translateX(${(s-p).toFixed(4)}px) scaleX(${f.toFixed(4)})`:i.opacity=0,[i,{transform:"none"}]}handleSlotChange(){this.iconOnly=!1;for(const e of this.assignedDefaultNodes){const t=e.nodeType===Node.TEXT_NODE&&!!e.wholeText.match(/\S/);if(e.nodeType===Node.ELEMENT_NODE||t)return}this.iconOnly=!0}handleIconSlotChange(){this.hasIcon=this.assignedIcons.length>0}}d([l({type:Boolean,reflect:!0,attribute:"md-tab"})],ye.prototype,"isTab",void 0),d([l({type:Boolean,reflect:!0})],ye.prototype,"active",void 0),d([l({type:Boolean})],ye.prototype,"selected",null),d([l({type:Boolean,attribute:"has-icon"})],ye.prototype,"hasIcon",void 0),d([l({type:Boolean,attribute:"icon-only"})],ye.prototype,"iconOnly",void 0),d([k(".indicator")],ye.prototype,es,void 0),d([w()],ye.prototype,"fullWidthIndicator",void 0),d([Or({flatten:!0})],ye.prototype,"assignedDefaultNodes",void 0),d([G({slot:"icon",flatten:!0})],ye.prototype,"assignedIcons",void 0);function fc(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}/**
1480
+ </div>`}getContentClasses(){return{"has-icon":this.hasIcon,"has-label":!this.iconOnly}}updated(){this.internals.ariaSelected=String(this.active)}async handleKeydown(e){await 0,!e.defaultPrevented&&(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.click())}handleContentClick(e){e.stopPropagation(),this.click()}[(es=Tt,ts)](e){if(!this[Tt])return;this[Tt].getAnimations().forEach(i=>{i.cancel()});const t=this.getKeyframes(e);t!==null&&this[Tt].animate(t,{duration:250,easing:me.EMPHASIZED})}getKeyframes(e){var b;const t=fc();if(!this.active)return t?[{opacity:1},{transform:"none"}]:null;const i={},r=((b=e[Tt])==null?void 0:b.getBoundingClientRect())??{},s=r.left,n=r.width,h=this[Tt].getBoundingClientRect(),p=h.left,v=h.width,f=n/v;return!t&&s!==void 0&&p!==void 0&&!isNaN(f)?i.transform=`translateX(${(s-p).toFixed(4)}px) scaleX(${f.toFixed(4)})`:i.opacity=0,[i,{transform:"none"}]}handleSlotChange(){this.iconOnly=!1;for(const e of this.assignedDefaultNodes){const t=e.nodeType===Node.TEXT_NODE&&!!e.wholeText.match(/\S/);if(e.nodeType===Node.ELEMENT_NODE||t)return}this.iconOnly=!0}handleIconSlotChange(){this.hasIcon=this.assignedIcons.length>0}}d([l({type:Boolean,reflect:!0,attribute:"md-tab"})],ye.prototype,"isTab",void 0),d([l({type:Boolean,reflect:!0})],ye.prototype,"active",void 0),d([l({type:Boolean})],ye.prototype,"selected",null),d([l({type:Boolean,attribute:"has-icon"})],ye.prototype,"hasIcon",void 0),d([l({type:Boolean,attribute:"icon-only"})],ye.prototype,"iconOnly",void 0),d([k(".indicator")],ye.prototype,es,void 0),d([w()],ye.prototype,"fullWidthIndicator",void 0),d([Or({flatten:!0})],ye.prototype,"assignedDefaultNodes",void 0),d([G({slot:"icon",flatten:!0})],ye.prototype,"assignedIcons",void 0);function fc(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}/**
1481
1481
  * @license
1482
1482
  * Copyright 2023 Google LLC
1483
1483
  * SPDX-License-Identifier: Apache-2.0
@@ -1512,14 +1512,14 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
1512
1512
  * @license
1513
1513
  * Copyright 2023 Google LLC
1514
1514
  * SPDX-License-Identifier: Apache-2.0
1515
- */class zt extends y{get activeTab(){return this.tabs.find(e=>e.active)??null}set activeTab(e){e&&this.activateTab(e)}get activeTabIndex(){return this.tabs.findIndex(e=>e.active)}set activeTabIndex(e){const t=()=>{const i=this.tabs[e];i&&this.activateTab(i)};if(!this.slotElement){this.updateComplete.then(t);return}t()}get focusedTab(){return this.tabs.find(e=>e.matches(":focus-within"))}constructor(){super(),this.autoActivate=!1,this.internals=this.attachInternals(),this.internals.role="tablist",this.addEventListener("keydown",this.handleKeydown.bind(this)),this.addEventListener("keyup",this.handleKeyup.bind(this)),this.addEventListener("focusout",this.handleFocusout.bind(this))}async scrollToTab(e){await this.updateComplete;const{tabs:t}=this;if(e??(e=this.activeTab),!e||!t.includes(e)||!this.tabsScrollerElement)return;for(const _ of this.tabs)await _.updateComplete;const i=e.offsetLeft,r=e.offsetWidth,s=this.scrollLeft,n=this.offsetWidth,h=48,p=i-h,v=i+r-n+h,f=Math.min(p,Math.max(v,s)),b=this.focusedTab?"auto":"instant";this.tabsScrollerElement.scrollTo({behavior:b,top:0,left:f})}render(){return c`
1515
+ */class It extends y{get activeTab(){return this.tabs.find(e=>e.active)??null}set activeTab(e){e&&this.activateTab(e)}get activeTabIndex(){return this.tabs.findIndex(e=>e.active)}set activeTabIndex(e){const t=()=>{const i=this.tabs[e];i&&this.activateTab(i)};if(!this.slotElement){this.updateComplete.then(t);return}t()}get focusedTab(){return this.tabs.find(e=>e.matches(":focus-within"))}constructor(){super(),this.autoActivate=!1,this.internals=this.attachInternals(),this.internals.role="tablist",this.addEventListener("keydown",this.handleKeydown.bind(this)),this.addEventListener("keyup",this.handleKeyup.bind(this)),this.addEventListener("focusout",this.handleFocusout.bind(this))}async scrollToTab(e){await this.updateComplete;const{tabs:t}=this;if(e??(e=this.activeTab),!e||!t.includes(e)||!this.tabsScrollerElement)return;for(const _ of this.tabs)await _.updateComplete;const i=e.offsetLeft,r=e.offsetWidth,s=this.scrollLeft,n=this.offsetWidth,h=48,p=i-h,v=i+r-n+h,f=Math.min(p,Math.max(v,s)),b=this.focusedTab?"auto":"instant";this.tabsScrollerElement.scrollTo({behavior:b,top:0,left:f})}render(){return c`
1516
1516
  <div class="tabs">
1517
1517
  <slot
1518
1518
  @slotchange=${this.handleSlotChange}
1519
1519
  @click=${this.handleTabClick}></slot>
1520
1520
  </div>
1521
1521
  <md-divider part="divider"></md-divider>
1522
- `}async handleTabClick(e){const t=e.target;await 0,!(e.defaultPrevented||!xc(t)||t.active)&&this.activateTab(t)}activateTab(e){const{tabs:t}=this,i=this.activeTab;if(!(!t.includes(e)||i===e)){for(const r of t)r.active=r===e;if(i){if(!this.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))){for(const s of t)s.active=s===i;return}e[ts](i)}this.updateFocusableTab(e),this.scrollToTab(e)}}updateFocusableTab(e){for(const t of this.tabs)t.tabIndex=t===e?0:-1}async handleKeydown(e){await 0;const t=e.key==="ArrowLeft",i=e.key==="ArrowRight",r=e.key==="Home",s=e.key==="End";if(e.defaultPrevented||!t&&!i&&!r&&!s)return;const{tabs:n}=this;if(n.length<2)return;e.preventDefault();let h;if(r||s)h=r?0:n.length-1;else{const f=getComputedStyle(this).direction==="rtl"?t:i,{focusedTab:b}=this;if(!b)h=f?0:n.length-1;else{const _=this.tabs.indexOf(b);h=f?_+1:_-1,h>=n.length?h=0:h<0&&(h=n.length-1)}}const p=n[h];p.focus(),this.autoActivate?this.activateTab(p):this.updateFocusableTab(p)}handleKeyup(){this.scrollToTab(this.focusedTab??this.activeTab)}handleFocusout(){if(this.matches(":focus-within"))return;const{activeTab:e}=this;e&&this.updateFocusableTab(e)}handleSlotChange(){const e=this.tabs[0];!this.activeTab&&e&&this.activateTab(e),this.scrollToTab(this.activeTab)}}d([G({flatten:!0,selector:"[md-tab]"})],zt.prototype,"tabs",void 0),d([l({type:Number,attribute:"active-tab-index"})],zt.prototype,"activeTabIndex",null),d([l({type:Boolean,attribute:"auto-activate"})],zt.prototype,"autoActivate",void 0),d([k(".tabs")],zt.prototype,"tabsScrollerElement",void 0),d([k("slot")],zt.prototype,"slotElement",void 0);function xc(o){return o instanceof HTMLElement&&o.hasAttribute("md-tab")}/**
1522
+ `}async handleTabClick(e){const t=e.target;await 0,!(e.defaultPrevented||!xc(t)||t.active)&&this.activateTab(t)}activateTab(e){const{tabs:t}=this,i=this.activeTab;if(!(!t.includes(e)||i===e)){for(const r of t)r.active=r===e;if(i){if(!this.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0}))){for(const s of t)s.active=s===i;return}e[ts](i)}this.updateFocusableTab(e),this.scrollToTab(e)}}updateFocusableTab(e){for(const t of this.tabs)t.tabIndex=t===e?0:-1}async handleKeydown(e){await 0;const t=e.key==="ArrowLeft",i=e.key==="ArrowRight",r=e.key==="Home",s=e.key==="End";if(e.defaultPrevented||!t&&!i&&!r&&!s)return;const{tabs:n}=this;if(n.length<2)return;e.preventDefault();let h;if(r||s)h=r?0:n.length-1;else{const f=getComputedStyle(this).direction==="rtl"?t:i,{focusedTab:b}=this;if(!b)h=f?0:n.length-1;else{const _=this.tabs.indexOf(b);h=f?_+1:_-1,h>=n.length?h=0:h<0&&(h=n.length-1)}}const p=n[h];p.focus(),this.autoActivate?this.activateTab(p):this.updateFocusableTab(p)}handleKeyup(){this.scrollToTab(this.focusedTab??this.activeTab)}handleFocusout(){if(this.matches(":focus-within"))return;const{activeTab:e}=this;e&&this.updateFocusableTab(e)}handleSlotChange(){const e=this.tabs[0];!this.activeTab&&e&&this.activateTab(e),this.scrollToTab(this.activeTab)}}d([G({flatten:!0,selector:"[md-tab]"})],It.prototype,"tabs",void 0),d([l({type:Number,attribute:"active-tab-index"})],It.prototype,"activeTabIndex",null),d([l({type:Boolean,attribute:"auto-activate"})],It.prototype,"autoActivate",void 0),d([k(".tabs")],It.prototype,"tabsScrollerElement",void 0),d([k("slot")],It.prototype,"slotElement",void 0);function xc(o){return o instanceof HTMLElement&&o.hasAttribute("md-tab")}/**
1523
1523
  * @license
1524
1524
  * Copyright 2024 Google LLC
1525
1525
  * SPDX-License-Identifier: Apache-2.0
@@ -1528,7 +1528,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
1528
1528
  * @license
1529
1529
  * Copyright 2023 Google LLC
1530
1530
  * SPDX-License-Identifier: Apache-2.0
1531
- */let ai=class extends zt{};ai.styles=[wc],ai=d([g("md-tabs")],ai);/**
1531
+ */let ai=class extends It{};ai.styles=[wc],ai=d([g("md-tabs")],ai);/**
1532
1532
  * @license
1533
1533
  * Copyright 2024 Google LLC
1534
1534
  * SPDX-License-Identifier: Apache-2.0
@@ -1553,7 +1553,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
1553
1553
  * @license
1554
1554
  * Copyright 2021 Google LLC
1555
1555
  * SPDX-License-Identifier: Apache-2.0
1556
- */const Ic=Ga(Jt($t(Ye(y))));class $ extends Ic{constructor(){super(...arguments),this.error=!1,this.errorText="",this.label="",this.noAsterisk=!1,this.required=!1,this.value="",this.prefixText="",this.suffixText="",this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.supportingText="",this.textDirection="",this.rows=2,this.cols=20,this.inputMode="",this.max="",this.maxLength=-1,this.min="",this.minLength=-1,this.noSpinner=!1,this.pattern="",this.placeholder="",this.readOnly=!1,this.multiple=!1,this.step="",this.type="text",this.autocomplete="",this.dirty=!1,this.focused=!1,this.nativeError=!1,this.nativeErrorText=""}get selectionDirection(){return this.getInputOrTextarea().selectionDirection}set selectionDirection(e){this.getInputOrTextarea().selectionDirection=e}get selectionEnd(){return this.getInputOrTextarea().selectionEnd}set selectionEnd(e){this.getInputOrTextarea().selectionEnd=e}get selectionStart(){return this.getInputOrTextarea().selectionStart}set selectionStart(e){this.getInputOrTextarea().selectionStart=e}get valueAsNumber(){const e=this.getInput();return e?e.valueAsNumber:NaN}set valueAsNumber(e){const t=this.getInput();t&&(t.valueAsNumber=e,this.value=t.value)}get valueAsDate(){const e=this.getInput();return e?e.valueAsDate:null}set valueAsDate(e){const t=this.getInput();t&&(t.valueAsDate=e,this.value=t.value)}get hasError(){return this.error||this.nativeError}select(){this.getInputOrTextarea().select()}setRangeText(...e){this.getInputOrTextarea().setRangeText(...e),this.value=this.getInputOrTextarea().value}setSelectionRange(e,t,i){this.getInputOrTextarea().setSelectionRange(e,t,i)}stepDown(e){const t=this.getInput();t&&(t.stepDown(e),this.value=t.value)}stepUp(e){const t=this.getInput();t&&(t.stepUp(e),this.value=t.value)}reset(){this.dirty=!1,this.value=this.getAttribute("value")??"",this.nativeError=!1,this.nativeErrorText=""}attributeChangedCallback(e,t,i){e==="value"&&this.dirty||super.attributeChangedCallback(e,t,i)}render(){const e={disabled:this.disabled,error:!this.disabled&&this.hasError,textarea:this.type==="textarea","no-spinner":this.noSpinner};return c`
1556
+ */const Tc=Ga(Jt($t(Ye(y))));class $ extends Tc{constructor(){super(...arguments),this.error=!1,this.errorText="",this.label="",this.noAsterisk=!1,this.required=!1,this.value="",this.prefixText="",this.suffixText="",this.hasLeadingIcon=!1,this.hasTrailingIcon=!1,this.supportingText="",this.textDirection="",this.rows=2,this.cols=20,this.inputMode="",this.max="",this.maxLength=-1,this.min="",this.minLength=-1,this.noSpinner=!1,this.pattern="",this.placeholder="",this.readOnly=!1,this.multiple=!1,this.step="",this.type="text",this.autocomplete="",this.dirty=!1,this.focused=!1,this.nativeError=!1,this.nativeErrorText=""}get selectionDirection(){return this.getInputOrTextarea().selectionDirection}set selectionDirection(e){this.getInputOrTextarea().selectionDirection=e}get selectionEnd(){return this.getInputOrTextarea().selectionEnd}set selectionEnd(e){this.getInputOrTextarea().selectionEnd=e}get selectionStart(){return this.getInputOrTextarea().selectionStart}set selectionStart(e){this.getInputOrTextarea().selectionStart=e}get valueAsNumber(){const e=this.getInput();return e?e.valueAsNumber:NaN}set valueAsNumber(e){const t=this.getInput();t&&(t.valueAsNumber=e,this.value=t.value)}get valueAsDate(){const e=this.getInput();return e?e.valueAsDate:null}set valueAsDate(e){const t=this.getInput();t&&(t.valueAsDate=e,this.value=t.value)}get hasError(){return this.error||this.nativeError}select(){this.getInputOrTextarea().select()}setRangeText(...e){this.getInputOrTextarea().setRangeText(...e),this.value=this.getInputOrTextarea().value}setSelectionRange(e,t,i){this.getInputOrTextarea().setSelectionRange(e,t,i)}stepDown(e){const t=this.getInput();t&&(t.stepDown(e),this.value=t.value)}stepUp(e){const t=this.getInput();t&&(t.stepUp(e),this.value=t.value)}reset(){this.dirty=!1,this.value=this.getAttribute("value")??"",this.nativeError=!1,this.nativeErrorText=""}attributeChangedCallback(e,t,i){e==="value"&&this.dirty||super.attributeChangedCallback(e,t,i)}render(){const e={disabled:this.disabled,error:!this.disabled&&this.hasError,textarea:this.type==="textarea","no-spinner":this.noSpinner};return c`
1557
1557
  <span class="text-field ${P(e)}">
1558
1558
  ${this.renderField()}
1559
1559
  </span>
@@ -1645,7 +1645,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
1645
1645
  * @license
1646
1646
  * Copyright 2021 Google LLC
1647
1647
  * SPDX-License-Identifier: Apache-2.0
1648
- */class zc extends ${constructor(){super(...arguments),this.fieldTag=ee`md-filled-field`}}/**
1648
+ */class Ic extends ${constructor(){super(...arguments),this.fieldTag=ee`md-filled-field`}}/**
1649
1649
  * @license
1650
1650
  * Copyright 2024 Google LLC
1651
1651
  * SPDX-License-Identifier: Apache-2.0
@@ -1654,11 +1654,11 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
1654
1654
  * @license
1655
1655
  * Copyright 2021 Google LLC
1656
1656
  * SPDX-License-Identifier: Apache-2.0
1657
- */let Eo=class extends zc{constructor(){super(...arguments),this.fieldTag=ee`md-filled-field`}};Eo.styles=[as,Sc],Eo=d([g("md-filled-text-field")],Eo);/**
1657
+ */let Eo=class extends Ic{constructor(){super(...arguments),this.fieldTag=ee`md-filled-field`}};Eo.styles=[as,Sc],Eo=d([g("md-filled-text-field")],Eo);/**
1658
1658
  * @license
1659
1659
  * Copyright 2024 Google LLC
1660
1660
  * SPDX-License-Identifier: Apache-2.0
1661
- */const Tc=m`:host{--_caret-color: var(--md-outlined-text-field-caret-color, var(--md-sys-color-primary, #6750a4));--_disabled-input-text-color: var(--md-outlined-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-input-text-opacity: var(--md-outlined-text-field-disabled-input-text-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-text-field-disabled-label-text-opacity, 0.38);--_disabled-leading-icon-color: var(--md-outlined-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-outlined-text-field-disabled-leading-icon-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-text-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-text-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-text-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-icon-color: var(--md-outlined-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-outlined-text-field-disabled-trailing-icon-opacity, 0.38);--_error-focus-caret-color: var(--md-outlined-text-field-error-focus-caret-color, var(--md-sys-color-error, #b3261e));--_error-focus-input-text-color: var(--md-outlined-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-icon-color: var(--md-outlined-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-icon-color: var(--md-outlined-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_error-hover-input-text-color: var(--md-outlined-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-icon-color: var(--md-outlined-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-icon-color: var(--md-outlined-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_error-input-text-color: var(--md-outlined-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-label-text-color: var(--md-outlined-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-icon-color: var(--md-outlined-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-icon-color: var(--md-outlined-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_focus-input-text-color: var(--md-outlined-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-outlined-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-text-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-icon-color: var(--md-outlined-text-field-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-input-text-color: var(--md-outlined-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-icon-color: var(--md-outlined-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-text-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-outlined-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-color: var(--md-outlined-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_input-text-font: var(--md-outlined-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_input-text-line-height: var(--md-outlined-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_input-text-placeholder-color: var(--md-outlined-text-field-input-text-placeholder-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-prefix-color: var(--md-outlined-text-field-input-text-prefix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-size: var(--md-outlined-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_input-text-suffix-color: var(--md-outlined-text-field-input-text-suffix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-weight: var(--md-outlined-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_label-text-color: var(--md-outlined-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-outlined-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-icon-color: var(--md-outlined-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-icon-size: var(--md-outlined-text-field-leading-icon-size, 24px);--_outline-color: var(--md-outlined-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-text-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-line-height: var(--md-outlined-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-weight: var(--md-outlined-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_trailing-icon-color: var(--md-outlined-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-size: var(--md-outlined-text-field-trailing-icon-size, 24px);--_container-shape-start-start: var(--md-outlined-text-field-container-shape-start-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-text-field-container-shape-start-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-text-field-container-shape-end-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-text-field-container-shape-end-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_leading-space: var(--md-outlined-text-field-leading-space, 16px);--_trailing-space: var(--md-outlined-text-field-trailing-space, 16px);--_top-space: var(--md-outlined-text-field-top-space, 16px);--_bottom-space: var(--md-outlined-text-field-bottom-space, 16px);--_input-text-prefix-trailing-space: var(--md-outlined-text-field-input-text-prefix-trailing-space, 2px);--_input-text-suffix-leading-space: var(--md-outlined-text-field-input-text-suffix-leading-space, 2px);--_focus-caret-color: var(--md-outlined-text-field-focus-caret-color, var(--md-sys-color-primary, #6750a4));--md-outlined-field-bottom-space: var(--_bottom-space);--md-outlined-field-container-shape-end-end: var(--_container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_container-shape-start-start);--md-outlined-field-content-color: var(--_input-text-color);--md-outlined-field-content-font: var(--_input-text-font);--md-outlined-field-content-line-height: var(--_input-text-line-height);--md-outlined-field-content-size: var(--_input-text-size);--md-outlined-field-content-weight: var(--_input-text-weight);--md-outlined-field-disabled-content-color: var(--_disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_focus-outline-color);--md-outlined-field-focus-outline-width: var(--_focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_hover-outline-color);--md-outlined-field-hover-outline-width: var(--_hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_label-text-color);--md-outlined-field-label-text-font: var(--_label-text-font);--md-outlined-field-label-text-line-height: var(--_label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_label-text-populated-size);--md-outlined-field-label-text-size: var(--_label-text-size);--md-outlined-field-label-text-weight: var(--_label-text-weight);--md-outlined-field-leading-content-color: var(--_leading-icon-color);--md-outlined-field-leading-space: var(--_leading-space);--md-outlined-field-outline-color: var(--_outline-color);--md-outlined-field-outline-width: var(--_outline-width);--md-outlined-field-supporting-text-color: var(--_supporting-text-color);--md-outlined-field-supporting-text-font: var(--_supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_supporting-text-weight);--md-outlined-field-top-space: var(--_top-space);--md-outlined-field-trailing-content-color: var(--_trailing-icon-color);--md-outlined-field-trailing-space: var(--_trailing-space)}
1661
+ */const zc=m`:host{--_caret-color: var(--md-outlined-text-field-caret-color, var(--md-sys-color-primary, #6750a4));--_disabled-input-text-color: var(--md-outlined-text-field-disabled-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-input-text-opacity: var(--md-outlined-text-field-disabled-input-text-opacity, 0.38);--_disabled-label-text-color: var(--md-outlined-text-field-disabled-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-label-text-opacity: var(--md-outlined-text-field-disabled-label-text-opacity, 0.38);--_disabled-leading-icon-color: var(--md-outlined-text-field-disabled-leading-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-leading-icon-opacity: var(--md-outlined-text-field-disabled-leading-icon-opacity, 0.38);--_disabled-outline-color: var(--md-outlined-text-field-disabled-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-outline-opacity: var(--md-outlined-text-field-disabled-outline-opacity, 0.12);--_disabled-outline-width: var(--md-outlined-text-field-disabled-outline-width, 1px);--_disabled-supporting-text-color: var(--md-outlined-text-field-disabled-supporting-text-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-supporting-text-opacity: var(--md-outlined-text-field-disabled-supporting-text-opacity, 0.38);--_disabled-trailing-icon-color: var(--md-outlined-text-field-disabled-trailing-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-trailing-icon-opacity: var(--md-outlined-text-field-disabled-trailing-icon-opacity, 0.38);--_error-focus-caret-color: var(--md-outlined-text-field-error-focus-caret-color, var(--md-sys-color-error, #b3261e));--_error-focus-input-text-color: var(--md-outlined-text-field-error-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-focus-label-text-color: var(--md-outlined-text-field-error-focus-label-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-leading-icon-color: var(--md-outlined-text-field-error-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-focus-outline-color: var(--md-outlined-text-field-error-focus-outline-color, var(--md-sys-color-error, #b3261e));--_error-focus-supporting-text-color: var(--md-outlined-text-field-error-focus-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-focus-trailing-icon-color: var(--md-outlined-text-field-error-focus-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_error-hover-input-text-color: var(--md-outlined-text-field-error-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-hover-label-text-color: var(--md-outlined-text-field-error-hover-label-text-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-leading-icon-color: var(--md-outlined-text-field-error-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-hover-outline-color: var(--md-outlined-text-field-error-hover-outline-color, var(--md-sys-color-on-error-container, #410e0b));--_error-hover-supporting-text-color: var(--md-outlined-text-field-error-hover-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-hover-trailing-icon-color: var(--md-outlined-text-field-error-hover-trailing-icon-color, var(--md-sys-color-on-error-container, #410e0b));--_error-input-text-color: var(--md-outlined-text-field-error-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_error-label-text-color: var(--md-outlined-text-field-error-label-text-color, var(--md-sys-color-error, #b3261e));--_error-leading-icon-color: var(--md-outlined-text-field-error-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_error-outline-color: var(--md-outlined-text-field-error-outline-color, var(--md-sys-color-error, #b3261e));--_error-supporting-text-color: var(--md-outlined-text-field-error-supporting-text-color, var(--md-sys-color-error, #b3261e));--_error-trailing-icon-color: var(--md-outlined-text-field-error-trailing-icon-color, var(--md-sys-color-error, #b3261e));--_focus-input-text-color: var(--md-outlined-text-field-focus-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_focus-label-text-color: var(--md-outlined-text-field-focus-label-text-color, var(--md-sys-color-primary, #6750a4));--_focus-leading-icon-color: var(--md-outlined-text-field-focus-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-outline-color: var(--md-outlined-text-field-focus-outline-color, var(--md-sys-color-primary, #6750a4));--_focus-outline-width: var(--md-outlined-text-field-focus-outline-width, 3px);--_focus-supporting-text-color: var(--md-outlined-text-field-focus-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_focus-trailing-icon-color: var(--md-outlined-text-field-focus-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-input-text-color: var(--md-outlined-text-field-hover-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--md-outlined-text-field-hover-label-text-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-leading-icon-color: var(--md-outlined-text-field-hover-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-outline-color: var(--md-outlined-text-field-hover-outline-color, var(--md-sys-color-on-surface, #1d1b20));--_hover-outline-width: var(--md-outlined-text-field-hover-outline-width, 1px);--_hover-supporting-text-color: var(--md-outlined-text-field-hover-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-trailing-icon-color: var(--md-outlined-text-field-hover-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-color: var(--md-outlined-text-field-input-text-color, var(--md-sys-color-on-surface, #1d1b20));--_input-text-font: var(--md-outlined-text-field-input-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_input-text-line-height: var(--md-outlined-text-field-input-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_input-text-placeholder-color: var(--md-outlined-text-field-input-text-placeholder-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-prefix-color: var(--md-outlined-text-field-input-text-prefix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-size: var(--md-outlined-text-field-input-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_input-text-suffix-color: var(--md-outlined-text-field-input-text-suffix-color, var(--md-sys-color-on-surface-variant, #49454f));--_input-text-weight: var(--md-outlined-text-field-input-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_label-text-color: var(--md-outlined-text-field-label-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_label-text-font: var(--md-outlined-text-field-label-text-font, var(--md-sys-typescale-body-large-font, var(--md-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--md-outlined-text-field-label-text-line-height, var(--md-sys-typescale-body-large-line-height, 1.5rem));--_label-text-populated-line-height: var(--md-outlined-text-field-label-text-populated-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_label-text-populated-size: var(--md-outlined-text-field-label-text-populated-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_label-text-size: var(--md-outlined-text-field-label-text-size, var(--md-sys-typescale-body-large-size, 1rem));--_label-text-weight: var(--md-outlined-text-field-label-text-weight, var(--md-sys-typescale-body-large-weight, var(--md-ref-typeface-weight-regular, 400)));--_leading-icon-color: var(--md-outlined-text-field-leading-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_leading-icon-size: var(--md-outlined-text-field-leading-icon-size, 24px);--_outline-color: var(--md-outlined-text-field-outline-color, var(--md-sys-color-outline, #79747e));--_outline-width: var(--md-outlined-text-field-outline-width, 1px);--_supporting-text-color: var(--md-outlined-text-field-supporting-text-color, var(--md-sys-color-on-surface-variant, #49454f));--_supporting-text-font: var(--md-outlined-text-field-supporting-text-font, var(--md-sys-typescale-body-small-font, var(--md-ref-typeface-plain, Roboto)));--_supporting-text-line-height: var(--md-outlined-text-field-supporting-text-line-height, var(--md-sys-typescale-body-small-line-height, 1rem));--_supporting-text-size: var(--md-outlined-text-field-supporting-text-size, var(--md-sys-typescale-body-small-size, 0.75rem));--_supporting-text-weight: var(--md-outlined-text-field-supporting-text-weight, var(--md-sys-typescale-body-small-weight, var(--md-ref-typeface-weight-regular, 400)));--_trailing-icon-color: var(--md-outlined-text-field-trailing-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_trailing-icon-size: var(--md-outlined-text-field-trailing-icon-size, 24px);--_container-shape-start-start: var(--md-outlined-text-field-container-shape-start-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-start-end: var(--md-outlined-text-field-container-shape-start-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-end: var(--md-outlined-text-field-container-shape-end-end, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_container-shape-end-start: var(--md-outlined-text-field-container-shape-end-start, var(--md-outlined-text-field-container-shape, var(--md-sys-shape-corner-extra-small, 4px)));--_leading-space: var(--md-outlined-text-field-leading-space, 16px);--_trailing-space: var(--md-outlined-text-field-trailing-space, 16px);--_top-space: var(--md-outlined-text-field-top-space, 16px);--_bottom-space: var(--md-outlined-text-field-bottom-space, 16px);--_input-text-prefix-trailing-space: var(--md-outlined-text-field-input-text-prefix-trailing-space, 2px);--_input-text-suffix-leading-space: var(--md-outlined-text-field-input-text-suffix-leading-space, 2px);--_focus-caret-color: var(--md-outlined-text-field-focus-caret-color, var(--md-sys-color-primary, #6750a4));--md-outlined-field-bottom-space: var(--_bottom-space);--md-outlined-field-container-shape-end-end: var(--_container-shape-end-end);--md-outlined-field-container-shape-end-start: var(--_container-shape-end-start);--md-outlined-field-container-shape-start-end: var(--_container-shape-start-end);--md-outlined-field-container-shape-start-start: var(--_container-shape-start-start);--md-outlined-field-content-color: var(--_input-text-color);--md-outlined-field-content-font: var(--_input-text-font);--md-outlined-field-content-line-height: var(--_input-text-line-height);--md-outlined-field-content-size: var(--_input-text-size);--md-outlined-field-content-weight: var(--_input-text-weight);--md-outlined-field-disabled-content-color: var(--_disabled-input-text-color);--md-outlined-field-disabled-content-opacity: var(--_disabled-input-text-opacity);--md-outlined-field-disabled-label-text-color: var(--_disabled-label-text-color);--md-outlined-field-disabled-label-text-opacity: var(--_disabled-label-text-opacity);--md-outlined-field-disabled-leading-content-color: var(--_disabled-leading-icon-color);--md-outlined-field-disabled-leading-content-opacity: var(--_disabled-leading-icon-opacity);--md-outlined-field-disabled-outline-color: var(--_disabled-outline-color);--md-outlined-field-disabled-outline-opacity: var(--_disabled-outline-opacity);--md-outlined-field-disabled-outline-width: var(--_disabled-outline-width);--md-outlined-field-disabled-supporting-text-color: var(--_disabled-supporting-text-color);--md-outlined-field-disabled-supporting-text-opacity: var(--_disabled-supporting-text-opacity);--md-outlined-field-disabled-trailing-content-color: var(--_disabled-trailing-icon-color);--md-outlined-field-disabled-trailing-content-opacity: var(--_disabled-trailing-icon-opacity);--md-outlined-field-error-content-color: var(--_error-input-text-color);--md-outlined-field-error-focus-content-color: var(--_error-focus-input-text-color);--md-outlined-field-error-focus-label-text-color: var(--_error-focus-label-text-color);--md-outlined-field-error-focus-leading-content-color: var(--_error-focus-leading-icon-color);--md-outlined-field-error-focus-outline-color: var(--_error-focus-outline-color);--md-outlined-field-error-focus-supporting-text-color: var(--_error-focus-supporting-text-color);--md-outlined-field-error-focus-trailing-content-color: var(--_error-focus-trailing-icon-color);--md-outlined-field-error-hover-content-color: var(--_error-hover-input-text-color);--md-outlined-field-error-hover-label-text-color: var(--_error-hover-label-text-color);--md-outlined-field-error-hover-leading-content-color: var(--_error-hover-leading-icon-color);--md-outlined-field-error-hover-outline-color: var(--_error-hover-outline-color);--md-outlined-field-error-hover-supporting-text-color: var(--_error-hover-supporting-text-color);--md-outlined-field-error-hover-trailing-content-color: var(--_error-hover-trailing-icon-color);--md-outlined-field-error-label-text-color: var(--_error-label-text-color);--md-outlined-field-error-leading-content-color: var(--_error-leading-icon-color);--md-outlined-field-error-outline-color: var(--_error-outline-color);--md-outlined-field-error-supporting-text-color: var(--_error-supporting-text-color);--md-outlined-field-error-trailing-content-color: var(--_error-trailing-icon-color);--md-outlined-field-focus-content-color: var(--_focus-input-text-color);--md-outlined-field-focus-label-text-color: var(--_focus-label-text-color);--md-outlined-field-focus-leading-content-color: var(--_focus-leading-icon-color);--md-outlined-field-focus-outline-color: var(--_focus-outline-color);--md-outlined-field-focus-outline-width: var(--_focus-outline-width);--md-outlined-field-focus-supporting-text-color: var(--_focus-supporting-text-color);--md-outlined-field-focus-trailing-content-color: var(--_focus-trailing-icon-color);--md-outlined-field-hover-content-color: var(--_hover-input-text-color);--md-outlined-field-hover-label-text-color: var(--_hover-label-text-color);--md-outlined-field-hover-leading-content-color: var(--_hover-leading-icon-color);--md-outlined-field-hover-outline-color: var(--_hover-outline-color);--md-outlined-field-hover-outline-width: var(--_hover-outline-width);--md-outlined-field-hover-supporting-text-color: var(--_hover-supporting-text-color);--md-outlined-field-hover-trailing-content-color: var(--_hover-trailing-icon-color);--md-outlined-field-label-text-color: var(--_label-text-color);--md-outlined-field-label-text-font: var(--_label-text-font);--md-outlined-field-label-text-line-height: var(--_label-text-line-height);--md-outlined-field-label-text-populated-line-height: var(--_label-text-populated-line-height);--md-outlined-field-label-text-populated-size: var(--_label-text-populated-size);--md-outlined-field-label-text-size: var(--_label-text-size);--md-outlined-field-label-text-weight: var(--_label-text-weight);--md-outlined-field-leading-content-color: var(--_leading-icon-color);--md-outlined-field-leading-space: var(--_leading-space);--md-outlined-field-outline-color: var(--_outline-color);--md-outlined-field-outline-width: var(--_outline-width);--md-outlined-field-supporting-text-color: var(--_supporting-text-color);--md-outlined-field-supporting-text-font: var(--_supporting-text-font);--md-outlined-field-supporting-text-line-height: var(--_supporting-text-line-height);--md-outlined-field-supporting-text-size: var(--_supporting-text-size);--md-outlined-field-supporting-text-weight: var(--_supporting-text-weight);--md-outlined-field-top-space: var(--_top-space);--md-outlined-field-trailing-content-color: var(--_trailing-icon-color);--md-outlined-field-trailing-space: var(--_trailing-space)}
1662
1662
  `;/**
1663
1663
  * @license
1664
1664
  * Copyright 2021 Google LLC
@@ -1667,7 +1667,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
1667
1667
  * @license
1668
1668
  * Copyright 2021 Google LLC
1669
1669
  * SPDX-License-Identifier: Apache-2.0
1670
- */let Ao=class extends Oc{constructor(){super(...arguments),this.fieldTag=ee`md-outlined-field`}};Ao.styles=[as,Tc],Ao=d([g("md-outlined-text-field")],Ao);var Lc=Object.defineProperty,Pc=Object.getOwnPropertyDescriptor,J=(o,e,t,i)=>{for(var r=i>1?void 0:i?Pc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Lc(e,t,r),r};a.ScbAccordionItem=class extends y{constructor(){super(...arguments),this.open=!1,this.title="",this.content="",this.overline="",this.supportingText="",this.leading=!1,this.leadingVariant="",this.leadingIcon="",this.imgHrefImage="",this.avatarLabel="",this.avatarAlt="",this.avatarVariant="icon",this.avatarSrc="",this.density=0,this._unique=a.ScbAccordionItem._uid(),this._onToggle=e=>{const t=e.currentTarget;this.open=!!t.open;const i=this.closest("scb-accordion");this.open&&i&&!i.hasAttribute("detached")&&i.querySelectorAll("scb-accordion-item").forEach(s=>{s!==this&&s.setOpen(!1)}),this._applyInertByOpen()}}static _uid(){var e,t;return((t=(e=globalThis.crypto)==null?void 0:e.randomUUID)==null?void 0:t.call(e))??`${a.ScbAccordionItem._uidPrefix}-${++a.ScbAccordionItem._uidSeq}`}async firstUpdated(){a.ScbAccordionItem._mdIconLoaded||(await Promise.resolve().then(()=>Z),a.ScbAccordionItem._mdIconLoaded=!0),a.ScbAccordionItem._mdRippleLoaded||(await Promise.resolve().then(()=>Ii),a.ScbAccordionItem._mdRippleLoaded=!0),this._applyInertByOpen()}_applyInertByOpen(){const e=this.renderRoot.querySelector(".scb-accordion-bottom"),t=this.renderRoot.querySelector("details");!e||!t||(t.open?(e.removeAttribute("inert"),e.setAttribute("aria-hidden","false")):(e.setAttribute("inert",""),e.setAttribute("aria-hidden","true")))}_onKeyDown(e){const t=this.closest("scb-accordion"),r=Array.from((t==null?void 0:t.querySelectorAll("scb-accordion-item"))||[]).map(h=>{var p;return((p=h.renderRoot.querySelector("details"))==null?void 0:p.querySelector(".scb-accordion-top"))||null}).filter(h=>!!h),s=e.currentTarget,n=r.indexOf(s);switch(e.key){case"ArrowDown":e.preventDefault(),n<r.length-1&&r[n+1].focus();break;case"ArrowUp":e.preventDefault(),n>0&&r[n-1].focus();break;case"Home":e.preventDefault(),r.length&&r[0].focus();break;case"End":e.preventDefault(),r.length&&r[r.length-1].focus();break}}setOpen(e){this.open=!!e;const t=this.renderRoot.querySelector("details");t&&(t.open=this.open),this._applyInertByOpen()}updated(e){if(e.has("open")){const t=this.renderRoot.querySelector("details");t&&t.open!==this.open&&(t.open=this.open),this._applyInertByOpen(),this.dispatchEvent(new CustomEvent("open-changed",{detail:{open:this.open,title:this.title},bubbles:!0,composed:!0}))}}render(){const e=`bottom-${this._unique}`,t=`header-${this._unique}`,i=this.leading?this.leadingVariant==="image"&&this.imgHrefImage?c`<img part="leading-image" class="img" src="${this.imgHrefImage}" alt="" />`:this.leadingVariant==="avatar"?c`
1670
+ */let Ao=class extends Oc{constructor(){super(...arguments),this.fieldTag=ee`md-outlined-field`}};Ao.styles=[as,zc],Ao=d([g("md-outlined-text-field")],Ao);var Lc=Object.defineProperty,Pc=Object.getOwnPropertyDescriptor,J=(o,e,t,i)=>{for(var r=i>1?void 0:i?Pc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Lc(e,t,r),r};a.ScbAccordionItem=class extends y{constructor(){super(...arguments),this.open=!1,this.title="",this.content="",this.overline="",this.supportingText="",this.leading=!1,this.leadingVariant="",this.leadingIcon="",this.imgHrefImage="",this.avatarLabel="",this.avatarAlt="",this.avatarVariant="icon",this.avatarSrc="",this.density=0,this._unique=a.ScbAccordionItem._uid(),this._onToggle=e=>{const t=e.currentTarget;this.open=!!t.open;const i=this.closest("scb-accordion");this.open&&i&&!i.hasAttribute("detached")&&i.querySelectorAll("scb-accordion-item").forEach(s=>{s!==this&&s.setOpen(!1)}),this._applyInertByOpen()}}static _uid(){var e,t;return((t=(e=globalThis.crypto)==null?void 0:e.randomUUID)==null?void 0:t.call(e))??`${a.ScbAccordionItem._uidPrefix}-${++a.ScbAccordionItem._uidSeq}`}async firstUpdated(){a.ScbAccordionItem._mdIconLoaded||(await Promise.resolve().then(()=>Z),a.ScbAccordionItem._mdIconLoaded=!0),a.ScbAccordionItem._mdRippleLoaded||(await Promise.resolve().then(()=>Ti),a.ScbAccordionItem._mdRippleLoaded=!0),this._applyInertByOpen()}_applyInertByOpen(){const e=this.renderRoot.querySelector(".scb-accordion-bottom"),t=this.renderRoot.querySelector("details");!e||!t||(t.open?(e.removeAttribute("inert"),e.setAttribute("aria-hidden","false")):(e.setAttribute("inert",""),e.setAttribute("aria-hidden","true")))}_onKeyDown(e){const t=this.closest("scb-accordion"),r=Array.from((t==null?void 0:t.querySelectorAll("scb-accordion-item"))||[]).map(h=>{var p;return((p=h.renderRoot.querySelector("details"))==null?void 0:p.querySelector(".scb-accordion-top"))||null}).filter(h=>!!h),s=e.currentTarget,n=r.indexOf(s);switch(e.key){case"ArrowDown":e.preventDefault(),n<r.length-1&&r[n+1].focus();break;case"ArrowUp":e.preventDefault(),n>0&&r[n-1].focus();break;case"Home":e.preventDefault(),r.length&&r[0].focus();break;case"End":e.preventDefault(),r.length&&r[r.length-1].focus();break}}setOpen(e){this.open=!!e;const t=this.renderRoot.querySelector("details");t&&(t.open=this.open),this._applyInertByOpen()}updated(e){if(e.has("open")){const t=this.renderRoot.querySelector("details");t&&t.open!==this.open&&(t.open=this.open),this._applyInertByOpen(),this.dispatchEvent(new CustomEvent("open-changed",{detail:{open:this.open,title:this.title},bubbles:!0,composed:!0}))}}render(){const e=`bottom-${this._unique}`,t=`header-${this._unique}`,i=this.leading?this.leadingVariant==="image"&&this.imgHrefImage?c`<img part="leading-image" class="img" src="${this.imgHrefImage}" alt="" />`:this.leadingVariant==="avatar"?c`
1671
1671
  <scb-avatar
1672
1672
  label=${this.avatarLabel}
1673
1673
  alt=${this.avatarAlt}
@@ -1839,7 +1839,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
1839
1839
  <div class="scb-accordion" ?detached=${this.detached}>
1840
1840
  <slot></slot>
1841
1841
  </div>
1842
- `}},ss([l({type:Boolean,reflect:!0})],a.ScbAccordion.prototype,"detached",2),a.ScbAccordion=ss([g("scb-accordion")],a.ScbAccordion);var Bc=Object.defineProperty,Mc=Object.getOwnPropertyDescriptor,Ce=(o,e,t,i)=>{for(var r=i>1?void 0:i?Mc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Bc(e,t,r),r};a.ScbButton=class extends y{constructor(){super(...arguments),this.variant="filled",this.type="button",this.label="Button",this.trailingIcon=!1,this.icon="",this.disabled=!1,this.href="",this.target="",this.rel="",this.__loadedButtons=new Set,this.__iconLoaded=!1}async __ensureDepsLoaded(){if(!this.__loadedButtons.has(this.variant)){switch(this.variant){case"filled":await Promise.resolve().then(()=>In);break;case"outlined":await Promise.resolve().then(()=>Dn);break;case"filled-tonal":await Promise.resolve().then(()=>On);break;case"text":await Promise.resolve().then(()=>Mn);break}this.__loadedButtons.add(this.variant)}this.icon&&!this.__iconLoaded&&(await Promise.resolve().then(()=>Z),this.__iconLoaded=!0)}__getMdHost(){return this.renderRoot.querySelector("md-filled-button, md-outlined-button, md-filled-tonal-button, md-text-button")}__getInnerNativeButton(e){var t;return((t=e==null?void 0:e.shadowRoot)==null?void 0:t.querySelector("button"))??null}__syncAriaToInner(){var v;const e=this.__getMdHost(),t=this.__getInnerNativeButton(e);if(!e||!t)return;const i=(this.getAttribute("aria-label")||"").trim(),r=(e.getAttribute("aria-label")||"").trim(),s=this.label.trim()===""?(this.icon||"").trim():"",n=i||r||s;n?t.setAttribute("aria-label",n):t.removeAttribute("aria-label");const h=this.getAttribute("aria-controls");h!==null?t.setAttribute("aria-controls",h):t.removeAttribute("aria-controls");const p=this.getAttribute("aria-expanded");p!==null?t.setAttribute("aria-expanded",p):t.removeAttribute("aria-expanded"),e.removeAttribute("aria-label"),e.removeAttribute("aria-controls"),e.removeAttribute("aria-expanded"),this.removeAttribute("aria-expanded"),(v=this.__ariaObserver)==null||v.disconnect(),this.__ariaObserver=new MutationObserver(f=>{const b=this.__getMdHost(),_=this.__getInnerNativeButton(b);if(!(!b||!_)){for(const x of f){if(x.type!=="attributes"||!x.attributeName)continue;const S=x.attributeName,C=this.getAttribute(S);if(S==="aria-label"){const E=(b.getAttribute("aria-label")||"").trim(),A=(C||E||(this.label.trim()===""?(this.icon||"").trim():"")).trim();A?_.setAttribute("aria-label",A):_.removeAttribute("aria-label"),b.removeAttribute("aria-label")}else(S==="aria-controls"||S==="aria-expanded")&&(C===null?_.removeAttribute(S):_.setAttribute(S,C),S==="aria-expanded"&&this.removeAttribute("aria-expanded"))}b.removeAttribute("aria-label"),b.removeAttribute("aria-controls"),b.removeAttribute("aria-expanded")}}),this.__ariaObserver.observe(this,{attributes:!0,attributeFilter:["aria-label","aria-controls","aria-expanded"]})}firstUpdated(){(this.type==="submit"||this.type==="reset")&&this.addEventListener("click",()=>{if(!this.disabled){const e=this.closest("form");e&&(this.type==="submit"&&e.requestSubmit(),this.type==="reset"&&e.reset())}}),this.__ensureDepsLoaded(),this.__syncAriaToInner()}updated(e){(e.has("variant")||e.has("icon")&&this.icon)&&this.__ensureDepsLoaded(),e.has("variant")&&this.__syncAriaToInner()}disconnectedCallback(){var e;(e=this.__ariaObserver)==null||e.disconnect(),super.disconnectedCallback()}static get styles(){return m`
1842
+ `}},ss([l({type:Boolean,reflect:!0})],a.ScbAccordion.prototype,"detached",2),a.ScbAccordion=ss([g("scb-accordion")],a.ScbAccordion);var Bc=Object.defineProperty,Mc=Object.getOwnPropertyDescriptor,Ce=(o,e,t,i)=>{for(var r=i>1?void 0:i?Mc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Bc(e,t,r),r};a.ScbButton=class extends y{constructor(){super(...arguments),this.variant="filled",this.type="button",this.label="Button",this.trailingIcon=!1,this.icon="",this.disabled=!1,this.href="",this.target="",this.rel="",this.__loadedButtons=new Set,this.__iconLoaded=!1}async __ensureDepsLoaded(){if(!this.__loadedButtons.has(this.variant)){switch(this.variant){case"filled":await Promise.resolve().then(()=>Tn);break;case"outlined":await Promise.resolve().then(()=>Dn);break;case"filled-tonal":await Promise.resolve().then(()=>On);break;case"text":await Promise.resolve().then(()=>Mn);break}this.__loadedButtons.add(this.variant)}this.icon&&!this.__iconLoaded&&(await Promise.resolve().then(()=>Z),this.__iconLoaded=!0)}__getMdHost(){return this.renderRoot.querySelector("md-filled-button, md-outlined-button, md-filled-tonal-button, md-text-button")}__getInnerNativeButton(e){var t;return((t=e==null?void 0:e.shadowRoot)==null?void 0:t.querySelector("button"))??null}__syncAriaToInner(){var v;const e=this.__getMdHost(),t=this.__getInnerNativeButton(e);if(!e||!t)return;const i=(this.getAttribute("aria-label")||"").trim(),r=(e.getAttribute("aria-label")||"").trim(),s=this.label.trim()===""?(this.icon||"").trim():"",n=i||r||s;n?t.setAttribute("aria-label",n):t.removeAttribute("aria-label");const h=this.getAttribute("aria-controls");h!==null?t.setAttribute("aria-controls",h):t.removeAttribute("aria-controls");const p=this.getAttribute("aria-expanded");p!==null?t.setAttribute("aria-expanded",p):t.removeAttribute("aria-expanded"),e.removeAttribute("aria-label"),e.removeAttribute("aria-controls"),e.removeAttribute("aria-expanded"),this.removeAttribute("aria-expanded"),(v=this.__ariaObserver)==null||v.disconnect(),this.__ariaObserver=new MutationObserver(f=>{const b=this.__getMdHost(),_=this.__getInnerNativeButton(b);if(!(!b||!_)){for(const x of f){if(x.type!=="attributes"||!x.attributeName)continue;const S=x.attributeName,C=this.getAttribute(S);if(S==="aria-label"){const E=(b.getAttribute("aria-label")||"").trim(),A=(C||E||(this.label.trim()===""?(this.icon||"").trim():"")).trim();A?_.setAttribute("aria-label",A):_.removeAttribute("aria-label"),b.removeAttribute("aria-label")}else(S==="aria-controls"||S==="aria-expanded")&&(C===null?_.removeAttribute(S):_.setAttribute(S,C),S==="aria-expanded"&&this.removeAttribute("aria-expanded"))}b.removeAttribute("aria-label"),b.removeAttribute("aria-controls"),b.removeAttribute("aria-expanded")}}),this.__ariaObserver.observe(this,{attributes:!0,attributeFilter:["aria-label","aria-controls","aria-expanded"]})}firstUpdated(){(this.type==="submit"||this.type==="reset")&&this.addEventListener("click",()=>{if(!this.disabled){const e=this.closest("form");e&&(this.type==="submit"&&e.requestSubmit(),this.type==="reset"&&e.reset())}}),this.__ensureDepsLoaded(),this.__syncAriaToInner()}updated(e){(e.has("variant")||e.has("icon")&&this.icon)&&this.__ensureDepsLoaded(),e.has("variant")&&this.__syncAriaToInner()}disconnectedCallback(){var e;(e=this.__ariaObserver)==null||e.disconnect(),super.disconnectedCallback()}static get styles(){return m`
1843
1843
  /* Gör hosten stretchbar i t.ex. flex/grid */
1844
1844
  :host {
1845
1845
  display: inline-flex;
@@ -1958,7 +1958,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
1958
1958
  ${this.label}
1959
1959
  ${e&&this.trailingIcon?t:u}
1960
1960
  </md-text-button>
1961
- `;default:return c``}}},Ce([l({type:String,reflect:!0})],a.ScbButton.prototype,"variant",2),Ce([l({type:String,reflect:!0})],a.ScbButton.prototype,"type",2),Ce([l({type:String})],a.ScbButton.prototype,"label",2),Ce([l({type:Boolean,attribute:"trailing-icon"})],a.ScbButton.prototype,"trailingIcon",2),Ce([l({type:String})],a.ScbButton.prototype,"icon",2),Ce([l({type:Boolean,reflect:!0})],a.ScbButton.prototype,"disabled",2),Ce([l({type:String})],a.ScbButton.prototype,"href",2),Ce([l({type:String})],a.ScbButton.prototype,"target",2),Ce([l({type:String})],a.ScbButton.prototype,"rel",2),a.ScbButton=Ce([g("scb-button")],a.ScbButton);const Fc=Object.freeze(Object.defineProperty({__proto__:null,get ScbButton(){return a.ScbButton}},Symbol.toStringTag,{value:"Module"}));var Hc=Object.defineProperty,Nc=Object.getOwnPropertyDescriptor,Ee=(o,e,t,i)=>{for(var r=i>1?void 0:i?Nc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Hc(e,t,r),r};let qc=0;a.ScbTooltip=class extends y{constructor(){super(...arguments),this.variant="plain",this.arrow=null,this.supportingtext="",this.label="",this.trigger="hover",this.position="top",this.open=!1,this.delay=1,this.offset=0,this._hoverActive=!1,this._clickActive=!1,this._hideTimeout=null,this._triggerEl=null,this._originalPosition="top",this._tooltipId=`scb-tooltip-${++qc}`,this._onTriggerMouseEnter=()=>{this._hoverActive=!0,this.open=!0},this._onTriggerMouseLeave=()=>{this._hoverActive=!1,this._clickActive||(this.open=!1)},this._onTriggerFocus=()=>{this._hoverActive=!0,this.open=!0},this._onTriggerBlur=()=>{this._hoverActive=!1,this._clickActive||(this.open=!1)},this._onTriggerClick=()=>{this._clickActive=!this._clickActive,this._clickActive?this.open=!0:this._hoverActive||(this.open=!1)}}firstUpdated(){if(this._originalPosition=this.position,this._updateDelayCss(),this._updateTriggerElement(),this.open){const e=this._getTooltipElement();e&&this._showTooltip(e)}}updated(e){if(e.has("trigger")&&this._updateTriggerElement(),e.has("delay")&&this._updateDelayCss(),e.has("open")){const t=this._getTooltipElement();if(!t)return;this.open?this._showTooltip(t):this._hideTooltip(t)}}disconnectedCallback(){super.disconnectedCallback(),this._detachTriggerListeners(),this._hideTimeout!==null&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=null)}_getTooltipElement(){return this.renderRoot.querySelector(".scb-tooltip")}_updateDelayCss(){const e=Number.isFinite(this.delay)?this.delay:1;this.style.setProperty("--delay",`${e}s`)}_findTriggerElement(){const e=this.querySelector("[scb-tooltip-button]:not([slot])");return e||(Array.from(this.children).find(i=>i.nodeType===Node.ELEMENT_NODE)??null)}_updateTriggerElement(){const e=this._triggerEl;e&&(this._detachTriggerListeners(),e.removeAttribute("aria-describedby"));const t=this._findTriggerElement();this._triggerEl=t,t&&(t.setAttribute("aria-describedby",this._tooltipId),(this.trigger==="click"||this.trigger==="hover-click")&&t.addEventListener("click",this._onTriggerClick),(this.trigger==="hover"||this.trigger==="hover-click")&&(t.addEventListener("mouseenter",this._onTriggerMouseEnter),t.addEventListener("mouseleave",this._onTriggerMouseLeave),t.addEventListener("focus",this._onTriggerFocus),t.addEventListener("blur",this._onTriggerBlur)))}_detachTriggerListeners(){const e=this._triggerEl;e&&(e.removeEventListener("click",this._onTriggerClick),e.removeEventListener("mouseenter",this._onTriggerMouseEnter),e.removeEventListener("mouseleave",this._onTriggerMouseLeave),e.removeEventListener("focus",this._onTriggerFocus),e.removeEventListener("blur",this._onTriggerBlur))}_showTooltip(e){this._hideTimeout!==null&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=null);const t=this._triggerEl;this._resetPosition(),e.classList.remove("hidden"),e.setAttribute("aria-hidden","false"),requestAnimationFrame(()=>{t&&this._positionTooltip(e,t),e.setAttribute("open","")})}_hideTooltip(e){e.removeAttribute("open"),e.setAttribute("aria-hidden","true"),this._scheduleHidden(e)}_scheduleHidden(e){const t=(Number.isFinite(this.delay)?this.delay:1)*1e3;if(t<=0){e.classList.add("hidden");return}this._hideTimeout=window.setTimeout(()=>{e.classList.add("hidden"),this._hideTimeout=null},t)}_resetPosition(){this.position=this._originalPosition}_positionTooltip(e,t){const i=t.getBoundingClientRect(),r=e.getBoundingClientRect(),s=this.getBoundingClientRect(),p=(this.offset??0)+8,v=8,f=v,b=window.innerHeight-v,_=v,x=window.innerWidth-v,S=H=>H>=f&&H+r.height<=b,C=H=>H>=_&&H+r.width<=x,E=(H,ce,ke,xi)=>{let Ht=0;H<ke&&(Ht+=ke-H);const Er=H+ce;return Er>xi&&(Ht+=Er-xi),Ht},A=H=>{let ce=0,ke=0;switch(H){case"top":ce=i.top-s.top-r.height-p,ke=i.left-s.left+(i.width-r.width)/2;break;case"bottom":ce=i.bottom-s.top+p,ke=i.left-s.left+(i.width-r.width)/2;break;case"left":ke=i.left-s.left-r.width-p,ce=i.top-s.top+(i.height-r.height)/2;break;case"right":ke=i.right-s.left+p,ce=i.top-s.top+(i.height-r.height)/2;break}const xi=ce+s.top,Ht=ke+s.left,Er=E(xi,r.height,f,b),Cp=E(Ht,r.width,_,x);return{pos:H,top:ce,left:ke,fitsV:S(xi),fitsH:C(Ht),totalOverflow:Er+Cp}},I=this.position==="top"||this.position==="bottom",Y=this.position,q=this._getOppositePosition(Y),be=[Y,q,I?"left":"top",I?"right":"bottom"].map(A);let le=be.find(H=>H.fitsV&&H.fitsH)??be.reduce((H,ce)=>ce.totalOverflow<H.totalOverflow?ce:H);const wt=(H,ce,ke)=>Math.min(Math.max(H,ce),ke),Oe=f-s.top,rt=b-r.height-s.top,Cr=_-s.left,yi=x-r.width-s.left,_i=wt(le.top,Oe,rt),Se=wt(le.left,Cr,yi);e.style.top=`${_i}px`,e.style.left=`${Se}px`,this.position!==le.pos&&(this.position=le.pos)}_getOppositePosition(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}_onDefaultSlotChange(){this._updateTriggerElement()}render(){const e=this.arrow?c`<svg
1961
+ `;default:return c``}}},Ce([l({type:String,reflect:!0})],a.ScbButton.prototype,"variant",2),Ce([l({type:String,reflect:!0})],a.ScbButton.prototype,"type",2),Ce([l({type:String})],a.ScbButton.prototype,"label",2),Ce([l({type:Boolean,attribute:"trailing-icon"})],a.ScbButton.prototype,"trailingIcon",2),Ce([l({type:String})],a.ScbButton.prototype,"icon",2),Ce([l({type:Boolean,reflect:!0})],a.ScbButton.prototype,"disabled",2),Ce([l({type:String})],a.ScbButton.prototype,"href",2),Ce([l({type:String})],a.ScbButton.prototype,"target",2),Ce([l({type:String})],a.ScbButton.prototype,"rel",2),a.ScbButton=Ce([g("scb-button")],a.ScbButton);const Fc=Object.freeze(Object.defineProperty({__proto__:null,get ScbButton(){return a.ScbButton}},Symbol.toStringTag,{value:"Module"}));var Hc=Object.defineProperty,Nc=Object.getOwnPropertyDescriptor,Ee=(o,e,t,i)=>{for(var r=i>1?void 0:i?Nc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Hc(e,t,r),r};let qc=0;a.ScbTooltip=class extends y{constructor(){super(...arguments),this.variant="plain",this.arrow=null,this.supportingtext="",this.label="",this.trigger="hover",this.position="top",this.open=!1,this.delay=.25,this.offset=0,this._hoverActive=!1,this._clickActive=!1,this._hideTimeout=null,this._triggerEl=null,this._originalPosition="top",this._tooltipId=`scb-tooltip-${++qc}`,this._onTriggerMouseEnter=()=>{this._hoverActive=!0,this.open=!0},this._onTriggerMouseLeave=()=>{this._hoverActive=!1,this._clickActive||(this.open=!1)},this._onTriggerFocus=()=>{this._hoverActive=!0,this.open=!0},this._onTriggerBlur=()=>{this._hoverActive=!1,this._clickActive||(this.open=!1)},this._onTooltipMouseEnter=()=>{(this.trigger==="hover"||this.trigger==="hover-click")&&(this._hoverActive=!0,this.open=!0)},this._onTooltipMouseLeave=()=>{(this.trigger==="hover"||this.trigger==="hover-click")&&(this._hoverActive=!1,this._clickActive||(this.open=!1))},this._onTriggerClick=()=>{this._clickActive=!this._clickActive,this._clickActive?this.open=!0:this._hoverActive||(this.open=!1)}}firstUpdated(){if(this._originalPosition=this.position,this._updateDelayCss(),this._updateTriggerElement(),this._updateTooltipHoverListeners(),this.open){const e=this._getTooltipElement();e&&this._showTooltip(e)}}updated(e){if(e.has("trigger")&&(this._updateTriggerElement(),this._updateTooltipHoverListeners()),e.has("delay")&&this._updateDelayCss(),e.has("open")){const t=this._getTooltipElement();if(!t)return;this.open?this._showTooltip(t):this._hideTooltip(t)}}disconnectedCallback(){super.disconnectedCallback(),this._detachTriggerListeners();const e=this._getTooltipElement();e&&(e.removeEventListener("mouseenter",this._onTooltipMouseEnter),e.removeEventListener("mouseleave",this._onTooltipMouseLeave)),this._hideTimeout!==null&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=null)}_getTooltipElement(){return this.renderRoot.querySelector(".scb-tooltip")}_updateDelayCss(){const e=Number.isFinite(this.delay)?this.delay:.25;this.style.setProperty("--delay",`${e}s`)}_findTriggerElement(){const e=this.querySelector("[scb-tooltip-anchor]:not([slot])");return e||(Array.from(this.children).find(i=>i.nodeType===Node.ELEMENT_NODE)??null)}_updateTriggerElement(){const e=this._triggerEl;e&&(this._detachTriggerListeners(),e.removeAttribute("aria-describedby"));const t=this._findTriggerElement();this._triggerEl=t,t&&(t.setAttribute("aria-describedby",this._tooltipId),(this.trigger==="click"||this.trigger==="hover-click")&&t.addEventListener("click",this._onTriggerClick),(this.trigger==="hover"||this.trigger==="hover-click")&&(t.addEventListener("mouseenter",this._onTriggerMouseEnter),t.addEventListener("mouseleave",this._onTriggerMouseLeave),t.addEventListener("focus",this._onTriggerFocus),t.addEventListener("blur",this._onTriggerBlur)))}_updateTooltipHoverListeners(){const e=this._getTooltipElement();e&&(e.removeEventListener("mouseenter",this._onTooltipMouseEnter),e.removeEventListener("mouseleave",this._onTooltipMouseLeave),(this.trigger==="hover"||this.trigger==="hover-click")&&(e.addEventListener("mouseenter",this._onTooltipMouseEnter),e.addEventListener("mouseleave",this._onTooltipMouseLeave)))}_detachTriggerListeners(){const e=this._triggerEl;e&&(e.removeEventListener("click",this._onTriggerClick),e.removeEventListener("mouseenter",this._onTriggerMouseEnter),e.removeEventListener("mouseleave",this._onTriggerMouseLeave),e.removeEventListener("focus",this._onTriggerFocus),e.removeEventListener("blur",this._onTriggerBlur))}_showTooltip(e){this._hideTimeout!==null&&(window.clearTimeout(this._hideTimeout),this._hideTimeout=null);const t=this._triggerEl;this._resetPosition(),e.classList.remove("hidden"),e.setAttribute("aria-hidden","false"),requestAnimationFrame(()=>{t&&this._positionTooltip(e,t),e.setAttribute("open","")})}_hideTooltip(e){e.removeAttribute("open"),e.setAttribute("aria-hidden","true"),this._scheduleHidden(e)}_scheduleHidden(e){const t=(Number.isFinite(this.delay)?this.delay:.25)*1e3;if(t<=0){e.classList.add("hidden");return}this._hideTimeout=window.setTimeout(()=>{e.classList.add("hidden"),this._hideTimeout=null},t)}_resetPosition(){this.position=this._originalPosition}_positionTooltip(e,t){const i=t.getBoundingClientRect(),r=e.getBoundingClientRect(),s=this.getBoundingClientRect(),p=(this.offset??0)+8,v=8,f=v,b=window.innerHeight-v,_=v,x=window.innerWidth-v,S=H=>H>=f&&H+r.height<=b,C=H=>H>=_&&H+r.width<=x,E=(H,ce,ke,xi)=>{let Ht=0;H<ke&&(Ht+=ke-H);const Er=H+ce;return Er>xi&&(Ht+=Er-xi),Ht},A=H=>{let ce=0,ke=0;switch(H){case"top":ce=i.top-s.top-r.height-p,ke=i.left-s.left+(i.width-r.width)/2;break;case"bottom":ce=i.bottom-s.top+p,ke=i.left-s.left+(i.width-r.width)/2;break;case"left":ke=i.left-s.left-r.width-p,ce=i.top-s.top+(i.height-r.height)/2;break;case"right":ke=i.right-s.left+p,ce=i.top-s.top+(i.height-r.height)/2;break}const xi=ce+s.top,Ht=ke+s.left,Er=E(xi,r.height,f,b),Cp=E(Ht,r.width,_,x);return{pos:H,top:ce,left:ke,fitsV:S(xi),fitsH:C(Ht),totalOverflow:Er+Cp}},T=this.position==="top"||this.position==="bottom",Y=this.position,q=this._getOppositePosition(Y),be=[Y,q,T?"left":"top",T?"right":"bottom"].map(A);let le=be.find(H=>H.fitsV&&H.fitsH)??be.reduce((H,ce)=>ce.totalOverflow<H.totalOverflow?ce:H);const wt=(H,ce,ke)=>Math.min(Math.max(H,ce),ke),Oe=f-s.top,rt=b-r.height-s.top,Cr=_-s.left,yi=x-r.width-s.left,_i=wt(le.top,Oe,rt),Se=wt(le.left,Cr,yi);e.style.top=`${_i}px`,e.style.left=`${Se}px`,this.position!==le.pos&&(this.position=le.pos)}_getOppositePosition(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}_onDefaultSlotChange(){this._updateTriggerElement()}render(){const e=this.arrow?c`<svg
1962
1962
  class="scb-tooltip-arrow"
1963
1963
  xmlns="http://www.w3.org/2000/svg"
1964
1964
  width="13"
@@ -2009,7 +2009,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
2009
2009
  :host {
2010
2010
  position: relative;
2011
2011
  display: inline-block;
2012
- --delay: 1s;
2012
+ --delay: 0.25s;
2013
2013
  }
2014
2014
 
2015
2015
  .scb-tooltip {
@@ -2041,10 +2041,6 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
2041
2041
  letter-spacing: var(--md-sys-typescale-body-small-tracking);
2042
2042
  }
2043
2043
 
2044
- ::slotted([scb-tooltip-button]) {
2045
- display: inline-flex;
2046
- }
2047
-
2048
2044
  /* Plain variant */
2049
2045
 
2050
2046
  :host([variant='plain']) .scb-tooltip {
@@ -2211,7 +2207,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
2211
2207
  >
2212
2208
  ${this.__renderMd(!0)}
2213
2209
  </scb-tooltip>
2214
- `:this.__renderMd(!1)}},a.ScbIconButton.styles=m``,Ae([l({type:String,attribute:"aria-label"})],a.ScbIconButton.prototype,"ariaLabel",2),Ae([l({type:String})],a.ScbIconButton.prototype,"tooltip",2),Ae([l({type:String})],a.ScbIconButton.prototype,"variant",2),Ae([l({type:String})],a.ScbIconButton.prototype,"icon",2),Ae([l({type:Boolean,reflect:!0})],a.ScbIconButton.prototype,"toggle",2),Ae([l({type:Boolean,reflect:!0})],a.ScbIconButton.prototype,"selected",2),Ae([l({type:String})],a.ScbIconButton.prototype,"toggleofficon",2),Ae([l({type:String})],a.ScbIconButton.prototype,"toggleonicon",2),Ae([l({type:Boolean,reflect:!0})],a.ScbIconButton.prototype,"disabled",2),a.ScbIconButton=Ae([g("scb-icon-button")],a.ScbIconButton);const ns=Object.freeze(Object.defineProperty({__proto__:null,get ScbIconButton(){return a.ScbIconButton}},Symbol.toStringTag,{value:"Module"}));var jc=Object.defineProperty,Wc=Object.getOwnPropertyDescriptor,ls=o=>{throw TypeError(o)},B=(o,e,t,i)=>{for(var r=i>1?void 0:i?Wc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&jc(e,t,r),r},Io=(o,e,t)=>e.has(o)||ls("Cannot "+t),dr=(o,e,t)=>(Io(o,e,"read from private field"),t?t.call(o):e.get(o)),ni=(o,e,t)=>e.has(o)?ls("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),zo=(o,e,t,i)=>(Io(o,e,"write to private field"),e.set(o,t),t),cs=(o,e,t)=>(Io(o,e,"access private method"),t),hr,pr,ur,vr,To,Oo;a.ScbListItem=class extends y{constructor(){super(...arguments),ni(this,vr),this.type="text",this.href="",this.itemHref="",this.target="",this.disabled=!1,this.label="",this.supportingText="",this.overline="",this.leading=!1,this.leadingVariant="",this.leadingIcon="",this.avatarLabel="",this.avatarAlt="",this.avatarVariant="icon",this.avatarSrc="",this.imgHrefImage="",this.trailing=!1,this.trailingVariant="",this.trailingIcon="",this.density=0,this.noDivider=!1,ni(this,hr,!1),ni(this,pr,!1),ni(this,ur,!1),this.onRowClick=()=>{var i,r;if(this.type==="link"&&(this.href||this.itemHref))return;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("scb-checkbox"),t=(r=this.shadowRoot)==null?void 0:r.querySelector("scb-switch");e&&(e.checked=!e.checked),t&&(t.selected=!t.selected)},ni(this,Oo,e=>{var t;if(!e.defaultPrevented&&(e.key==="Enter"||e.key===" ")){if(this.type==="link"){const i=(t=this.shadowRoot)==null?void 0:t.querySelector("a[href]");if(i){e.preventDefault(),i.click();return}}e.preventDefault(),this.onRowClick()}})}static get styles(){return m`
2210
+ `:this.__renderMd(!1)}},a.ScbIconButton.styles=m``,Ae([l({type:String,attribute:"aria-label"})],a.ScbIconButton.prototype,"ariaLabel",2),Ae([l({type:String})],a.ScbIconButton.prototype,"tooltip",2),Ae([l({type:String})],a.ScbIconButton.prototype,"variant",2),Ae([l({type:String})],a.ScbIconButton.prototype,"icon",2),Ae([l({type:Boolean,reflect:!0})],a.ScbIconButton.prototype,"toggle",2),Ae([l({type:Boolean,reflect:!0})],a.ScbIconButton.prototype,"selected",2),Ae([l({type:String})],a.ScbIconButton.prototype,"toggleofficon",2),Ae([l({type:String})],a.ScbIconButton.prototype,"toggleonicon",2),Ae([l({type:Boolean,reflect:!0})],a.ScbIconButton.prototype,"disabled",2),a.ScbIconButton=Ae([g("scb-icon-button")],a.ScbIconButton);const ns=Object.freeze(Object.defineProperty({__proto__:null,get ScbIconButton(){return a.ScbIconButton}},Symbol.toStringTag,{value:"Module"}));var jc=Object.defineProperty,Wc=Object.getOwnPropertyDescriptor,ls=o=>{throw TypeError(o)},B=(o,e,t,i)=>{for(var r=i>1?void 0:i?Wc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&jc(e,t,r),r},To=(o,e,t)=>e.has(o)||ls("Cannot "+t),dr=(o,e,t)=>(To(o,e,"read from private field"),t?t.call(o):e.get(o)),ni=(o,e,t)=>e.has(o)?ls("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Io=(o,e,t,i)=>(To(o,e,"write to private field"),e.set(o,t),t),cs=(o,e,t)=>(To(o,e,"access private method"),t),hr,pr,ur,vr,zo,Oo;a.ScbListItem=class extends y{constructor(){super(...arguments),ni(this,vr),this.type="text",this.href="",this.itemHref="",this.target="",this.disabled=!1,this.label="",this.supportingText="",this.overline="",this.leading=!1,this.leadingVariant="",this.leadingIcon="",this.avatarLabel="",this.avatarAlt="",this.avatarVariant="icon",this.avatarSrc="",this.imgHrefImage="",this.trailing=!1,this.trailingVariant="",this.trailingIcon="",this.density=0,this.noDivider=!1,ni(this,hr,!1),ni(this,pr,!1),ni(this,ur,!1),this.onRowClick=()=>{var i,r;if(this.type==="link"&&(this.href||this.itemHref))return;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("scb-checkbox"),t=(r=this.shadowRoot)==null?void 0:r.querySelector("scb-switch");e&&(e.checked=!e.checked),t&&(t.selected=!t.selected)},ni(this,Oo,e=>{var t;if(!e.defaultPrevented&&(e.key==="Enter"||e.key===" ")){if(this.type==="link"){const i=(t=this.shadowRoot)==null?void 0:t.querySelector("a[href]");if(i){e.preventDefault(),i.click();return}}e.preventDefault(),this.onRowClick()}})}static get styles(){return m`
2215
2211
  :host {
2216
2212
  border-bottom: var(--stroke-border, 1px) solid var(--md-sys-color-outline-variant);
2217
2213
  margin-bottom: calc(var(--stroke-border, 1px) * -1);
@@ -2315,7 +2311,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
2315
2311
  }
2316
2312
 
2317
2313
  .link { text-decoration: none; color: inherit; display: contents; }
2318
- `}async firstUpdated(){await cs(this,vr,To).call(this),this.addEventListener("keydown",dr(this,Oo))}updated(e){super.updated(e),(e.has("leading")||e.has("leadingVariant")||e.has("trailing")||e.has("trailingVariant")||e.has("type")||e.has("target"))&&cs(this,vr,To).call(this)}render(){const e=this.leading?(()=>{switch(this.leadingVariant){case"icon":return this.leadingIcon?c`<div class="leading"><md-icon>${this.leadingIcon}</md-icon></div>`:u;case"avatar":return c`
2314
+ `}async firstUpdated(){await cs(this,vr,zo).call(this),this.addEventListener("keydown",dr(this,Oo))}updated(e){super.updated(e),(e.has("leading")||e.has("leadingVariant")||e.has("trailing")||e.has("trailingVariant")||e.has("type")||e.has("target"))&&cs(this,vr,zo).call(this)}render(){const e=this.leading?(()=>{switch(this.leadingVariant){case"icon":return this.leadingIcon?c`<div class="leading"><md-icon>${this.leadingIcon}</md-icon></div>`:u;case"avatar":return c`
2319
2315
  <div class="leading">
2320
2316
  <scb-avatar
2321
2317
  label=${this.avatarLabel}
@@ -2353,7 +2349,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
2353
2349
  </div>
2354
2350
 
2355
2351
  <md-focus-ring></md-focus-ring>
2356
- `}},hr=new WeakMap,pr=new WeakMap,ur=new WeakMap,vr=new WeakSet,To=async function(){const o=this.type==="link"&&(!this.trailing||this.trailingVariant==="icon");(this.leading&&this.leadingVariant==="icon"||this.trailing&&this.trailingVariant==="icon"||o)&&!dr(this,hr)&&(await Promise.resolve().then(()=>Z),zo(this,hr,!0)),this.trailing&&this.trailingVariant==="checkbox"&&!dr(this,pr)&&(await Promise.resolve().then(()=>bs),zo(this,pr,!0)),this.trailing&&this.trailingVariant==="switch"&&!dr(this,ur)&&(await Promise.resolve().then(()=>Ls),zo(this,ur,!0))},Oo=new WeakMap,B([l({type:String,reflect:!0,attribute:"type"})],a.ScbListItem.prototype,"type",2),B([l({type:String})],a.ScbListItem.prototype,"href",2),B([l({type:String,attribute:"item-href"})],a.ScbListItem.prototype,"itemHref",2),B([l({type:String,attribute:"target"})],a.ScbListItem.prototype,"target",2),B([l({type:Boolean,attribute:"disabled"})],a.ScbListItem.prototype,"disabled",2),B([l({type:String,reflect:!0})],a.ScbListItem.prototype,"label",2),B([l({type:String,attribute:"supporting-text"})],a.ScbListItem.prototype,"supportingText",2),B([l({type:String,attribute:"overline"})],a.ScbListItem.prototype,"overline",2),B([l({type:Boolean})],a.ScbListItem.prototype,"leading",2),B([l({type:String,attribute:"leading-variant",reflect:!0})],a.ScbListItem.prototype,"leadingVariant",2),B([l({type:String,attribute:"leading-icon"})],a.ScbListItem.prototype,"leadingIcon",2),B([l({type:String,attribute:"avatar-label"})],a.ScbListItem.prototype,"avatarLabel",2),B([l({type:String,attribute:"avatar-alt"})],a.ScbListItem.prototype,"avatarAlt",2),B([l({type:String,attribute:"avatar-variant"})],a.ScbListItem.prototype,"avatarVariant",2),B([l({type:String,attribute:"avatar-src"})],a.ScbListItem.prototype,"avatarSrc",2),B([l({type:String,reflect:!0,attribute:"img-href-image"})],a.ScbListItem.prototype,"imgHrefImage",2),B([l({type:Boolean})],a.ScbListItem.prototype,"trailing",2),B([l({type:String,attribute:"trailing-variant",reflect:!0})],a.ScbListItem.prototype,"trailingVariant",2),B([l({type:String,attribute:"trailing-icon"})],a.ScbListItem.prototype,"trailingIcon",2),B([l({type:Number,reflect:!0})],a.ScbListItem.prototype,"density",2),B([l({type:Boolean,attribute:"no-divider",reflect:!0})],a.ScbListItem.prototype,"noDivider",2),a.ScbListItem=B([g("scb-list-item")],a.ScbListItem);var Kc=Object.defineProperty,Gc=Object.getOwnPropertyDescriptor,ds=o=>{throw TypeError(o)},Lo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Gc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Kc(e,t,r),r},hs=(o,e,t)=>e.has(o)||ds("Cannot "+t),Yc=(o,e,t)=>(hs(o,e,"read from private field"),e.get(o)),Xc=(o,e,t)=>e.has(o)?ds("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Zc=(o,e,t,i)=>(hs(o,e,"write to private field"),e.set(o,t),t),br;a.ScbList=class extends y{constructor(){super(...arguments),Xc(this,br,!1),this.noDivider=!1,this._onSlotChange=()=>this._setupItems()}async firstUpdated(){Yc(this,br)||(await Promise.resolve().then(()=>Cl),Zc(this,br,!0)),this._setupItems()}_getItems(){var t;return(((t=this._slotEl)==null?void 0:t.assignedElements({flatten:!0}))??[]).filter(i=>i instanceof HTMLElement)}_setupItems(){var i;this._getItems().forEach((r,s)=>{r.hasAttribute("role")||r.setAttribute("role","listitem"),r.setAttribute("tabindex",s===0?"0":"-1")});const t=(i=this.renderRoot)==null?void 0:i.querySelector("md-list");t&&!t.hasAttribute("data-kbd")&&(t.setAttribute("data-kbd","true"),t.addEventListener("keydown",r=>this._onKeyDown(r)))}_onKeyDown(e){const t=this._getItems();if(!t.length)return;const i=t.findIndex(s=>s.getAttribute("tabindex")==="0"),r=s=>{const n=(s%t.length+t.length)%t.length;t.forEach(p=>p.setAttribute("tabindex","-1"));const h=t[n];h.setAttribute("tabindex","0"),h.focus()};switch(e.key){case"ArrowDown":case"ArrowRight":e.preventDefault(),r(i<0?0:i+1);break;case"ArrowUp":case"ArrowLeft":e.preventDefault(),r(i<0?0:i-1);break;case"Home":e.preventDefault(),r(0);break;case"End":e.preventDefault(),r(t.length-1);break}}render(){return c`
2352
+ `}},hr=new WeakMap,pr=new WeakMap,ur=new WeakMap,vr=new WeakSet,zo=async function(){const o=this.type==="link"&&(!this.trailing||this.trailingVariant==="icon");(this.leading&&this.leadingVariant==="icon"||this.trailing&&this.trailingVariant==="icon"||o)&&!dr(this,hr)&&(await Promise.resolve().then(()=>Z),Io(this,hr,!0)),this.trailing&&this.trailingVariant==="checkbox"&&!dr(this,pr)&&(await Promise.resolve().then(()=>bs),Io(this,pr,!0)),this.trailing&&this.trailingVariant==="switch"&&!dr(this,ur)&&(await Promise.resolve().then(()=>Ls),Io(this,ur,!0))},Oo=new WeakMap,B([l({type:String,reflect:!0,attribute:"type"})],a.ScbListItem.prototype,"type",2),B([l({type:String})],a.ScbListItem.prototype,"href",2),B([l({type:String,attribute:"item-href"})],a.ScbListItem.prototype,"itemHref",2),B([l({type:String,attribute:"target"})],a.ScbListItem.prototype,"target",2),B([l({type:Boolean,attribute:"disabled"})],a.ScbListItem.prototype,"disabled",2),B([l({type:String,reflect:!0})],a.ScbListItem.prototype,"label",2),B([l({type:String,attribute:"supporting-text"})],a.ScbListItem.prototype,"supportingText",2),B([l({type:String,attribute:"overline"})],a.ScbListItem.prototype,"overline",2),B([l({type:Boolean})],a.ScbListItem.prototype,"leading",2),B([l({type:String,attribute:"leading-variant",reflect:!0})],a.ScbListItem.prototype,"leadingVariant",2),B([l({type:String,attribute:"leading-icon"})],a.ScbListItem.prototype,"leadingIcon",2),B([l({type:String,attribute:"avatar-label"})],a.ScbListItem.prototype,"avatarLabel",2),B([l({type:String,attribute:"avatar-alt"})],a.ScbListItem.prototype,"avatarAlt",2),B([l({type:String,attribute:"avatar-variant"})],a.ScbListItem.prototype,"avatarVariant",2),B([l({type:String,attribute:"avatar-src"})],a.ScbListItem.prototype,"avatarSrc",2),B([l({type:String,reflect:!0,attribute:"img-href-image"})],a.ScbListItem.prototype,"imgHrefImage",2),B([l({type:Boolean})],a.ScbListItem.prototype,"trailing",2),B([l({type:String,attribute:"trailing-variant",reflect:!0})],a.ScbListItem.prototype,"trailingVariant",2),B([l({type:String,attribute:"trailing-icon"})],a.ScbListItem.prototype,"trailingIcon",2),B([l({type:Number,reflect:!0})],a.ScbListItem.prototype,"density",2),B([l({type:Boolean,attribute:"no-divider",reflect:!0})],a.ScbListItem.prototype,"noDivider",2),a.ScbListItem=B([g("scb-list-item")],a.ScbListItem);var Kc=Object.defineProperty,Gc=Object.getOwnPropertyDescriptor,ds=o=>{throw TypeError(o)},Lo=(o,e,t,i)=>{for(var r=i>1?void 0:i?Gc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Kc(e,t,r),r},hs=(o,e,t)=>e.has(o)||ds("Cannot "+t),Yc=(o,e,t)=>(hs(o,e,"read from private field"),e.get(o)),Xc=(o,e,t)=>e.has(o)?ds("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Zc=(o,e,t,i)=>(hs(o,e,"write to private field"),e.set(o,t),t),br;a.ScbList=class extends y{constructor(){super(...arguments),Xc(this,br,!1),this.noDivider=!1,this._onSlotChange=()=>this._setupItems()}async firstUpdated(){Yc(this,br)||(await Promise.resolve().then(()=>Cl),Zc(this,br,!0)),this._setupItems()}_getItems(){var t;return(((t=this._slotEl)==null?void 0:t.assignedElements({flatten:!0}))??[]).filter(i=>i instanceof HTMLElement)}_setupItems(){var i;this._getItems().forEach((r,s)=>{r.hasAttribute("role")||r.setAttribute("role","listitem"),r.setAttribute("tabindex",s===0?"0":"-1")});const t=(i=this.renderRoot)==null?void 0:i.querySelector("md-list");t&&!t.hasAttribute("data-kbd")&&(t.setAttribute("data-kbd","true"),t.addEventListener("keydown",r=>this._onKeyDown(r)))}_onKeyDown(e){const t=this._getItems();if(!t.length)return;const i=t.findIndex(s=>s.getAttribute("tabindex")==="0"),r=s=>{const n=(s%t.length+t.length)%t.length;t.forEach(p=>p.setAttribute("tabindex","-1"));const h=t[n];h.setAttribute("tabindex","0"),h.focus()};switch(e.key){case"ArrowDown":case"ArrowRight":e.preventDefault(),r(i<0?0:i+1);break;case"ArrowUp":case"ArrowLeft":e.preventDefault(),r(i<0?0:i-1);break;case"Home":e.preventDefault(),r(0);break;case"End":e.preventDefault(),r(t.length-1);break}}render(){return c`
2357
2353
  <md-list role="list" @slotchange=${this._onSlotChange}>
2358
2354
  <slot></slot>
2359
2355
  </md-list>
@@ -2377,7 +2373,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
2377
2373
  :host([no-divider]) ::slotted(scb-list-item) {
2378
2374
  --stroke-border: 0px;
2379
2375
  }
2380
- `],Lo([l({type:Boolean,attribute:"no-divider",reflect:!0})],a.ScbList.prototype,"noDivider",2),Lo([k("slot")],a.ScbList.prototype,"_slotEl",2),a.ScbList=Lo([g("scb-list")],a.ScbList);var Jc=Object.defineProperty,Qc=Object.getOwnPropertyDescriptor,Tt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Qc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Jc(e,t,r),r};let ed=0;a.ScbSearch=class extends y{constructor(){super(...arguments),this.supportingText="Hinted search text",this.value="",this.size="default",this.fullScreen=!1,this._inputFocused=!1,this._visibleSuggestions=0,this._activeIndex=-1,this._listboxId=`scb-search-listbox-${++ed}`,this._kbMode=!1,this._kbShouldShowRing=!1,this._onGlobalKeydown=e=>{e.key==="Tab"&&(this._kbShouldShowRing=!0,this._inputFocused&&this._updateInputRingVisibility())},this._onGlobalPointerDown=()=>{this._kbShouldShowRing=!1,this._inputFocused&&this._updateInputRingVisibility()},this._listScrollHandler=()=>{const e=this._getActiveItem();this._kbMode&&e&&this._positionOptionRing(e)}}connectedCallback(){super.connectedCallback(),this._onWindowResize=this._onWindowResize.bind(this),window.addEventListener("resize",this._onWindowResize,{passive:!0}),window.addEventListener("keydown",this._onGlobalKeydown,!0),window.addEventListener("pointerdown",this._onGlobalPointerDown,!0)}disconnectedCallback(){const e=this._inputEl();e&&this._boundNativeKeydown&&e.removeEventListener("keydown",this._boundNativeKeydown,!0),this._detachListScrollListener(),window.removeEventListener("resize",this._onWindowResize),window.removeEventListener("keydown",this._onGlobalKeydown,!0),window.removeEventListener("pointerdown",this._onGlobalPointerDown,!0),super.disconnectedCallback()}firstUpdated(){this._ensureListboxA11y(),this._updateComboboxA11y();const e=this._inputEl();e&&(this._boundNativeKeydown=t=>this._handleKey(t),e.addEventListener("keydown",this._boundNativeKeydown,!0))}updated(){this._ensureListboxA11y(),this._updateComboboxA11y(),this._attachListScrollListener()}render(){const e=(this.value??"").trim().length>0,t=this._inputFocused&&e&&this._hasSuggestions;return c`
2376
+ `],Lo([l({type:Boolean,attribute:"no-divider",reflect:!0})],a.ScbList.prototype,"noDivider",2),Lo([k("slot")],a.ScbList.prototype,"_slotEl",2),a.ScbList=Lo([g("scb-list")],a.ScbList);var Jc=Object.defineProperty,Qc=Object.getOwnPropertyDescriptor,zt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Qc(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Jc(e,t,r),r};let ed=0;a.ScbSearch=class extends y{constructor(){super(...arguments),this.supportingText="Hinted search text",this.value="",this.size="default",this.fullScreen=!1,this._inputFocused=!1,this._visibleSuggestions=0,this._activeIndex=-1,this._listboxId=`scb-search-listbox-${++ed}`,this._kbMode=!1,this._kbShouldShowRing=!1,this._onGlobalKeydown=e=>{e.key==="Tab"&&(this._kbShouldShowRing=!0,this._inputFocused&&this._updateInputRingVisibility())},this._onGlobalPointerDown=()=>{this._kbShouldShowRing=!1,this._inputFocused&&this._updateInputRingVisibility()},this._listScrollHandler=()=>{const e=this._getActiveItem();this._kbMode&&e&&this._positionOptionRing(e)}}connectedCallback(){super.connectedCallback(),this._onWindowResize=this._onWindowResize.bind(this),window.addEventListener("resize",this._onWindowResize,{passive:!0}),window.addEventListener("keydown",this._onGlobalKeydown,!0),window.addEventListener("pointerdown",this._onGlobalPointerDown,!0)}disconnectedCallback(){const e=this._inputEl();e&&this._boundNativeKeydown&&e.removeEventListener("keydown",this._boundNativeKeydown,!0),this._detachListScrollListener(),window.removeEventListener("resize",this._onWindowResize),window.removeEventListener("keydown",this._onGlobalKeydown,!0),window.removeEventListener("pointerdown",this._onGlobalPointerDown,!0),super.disconnectedCallback()}firstUpdated(){this._ensureListboxA11y(),this._updateComboboxA11y();const e=this._inputEl();e&&(this._boundNativeKeydown=t=>this._handleKey(t),e.addEventListener("keydown",this._boundNativeKeydown,!0))}updated(){this._ensureListboxA11y(),this._updateComboboxA11y(),this._attachListScrollListener()}render(){const e=(this.value??"").trim().length>0,t=this._inputFocused&&e&&this._hasSuggestions;return c`
2381
2377
  <div class="ripple-wrapper">
2382
2378
  <md-icon class="leading">${e?"arrow_back":"search"}</md-icon>
2383
2379
 
@@ -2598,7 +2594,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
2598
2594
  @media (prefers-color-scheme: dark) {
2599
2595
  :host { color: var(--md-sys-color-on-surface); }
2600
2596
  }
2601
- `,Tt([l({type:String,attribute:"trailing-icon"})],a.ScbSearch.prototype,"trailingIcon",2),Tt([l({type:String,attribute:"supporting-text"})],a.ScbSearch.prototype,"supportingText",2),Tt([l({type:String})],a.ScbSearch.prototype,"value",2),Tt([l({type:String,reflect:!0})],a.ScbSearch.prototype,"size",2),Tt([l({type:Boolean,attribute:"full-screen",reflect:!0})],a.ScbSearch.prototype,"fullScreen",2),a.ScbSearch=Tt([g("scb-search")],a.ScbSearch);const td=Object.freeze(Object.defineProperty({__proto__:null,get ScbSearch(){return a.ScbSearch}},Symbol.toStringTag,{value:"Module"}));var id=Object.defineProperty,rd=Object.getOwnPropertyDescriptor,Ie=(o,e,t,i)=>{for(var r=i>1?void 0:i?rd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&id(e,t,r),r};a.ScbAvatar=class extends y{constructor(){super(...arguments),this.src="",this.alt="",this.label="",this.size="medium",this.shape="circular",this.iconName="",this.variant="image",this._imgError=!1,this._hasIconSlot=!1,this._onImgLoad=()=>{this._imgError=!1,this.dispatchEvent(new CustomEvent("image-load",{bubbles:!0,composed:!0}))},this._onImgError=()=>{this._imgError=!0,this.dispatchEvent(new CustomEvent("image-error",{bubbles:!0,composed:!0}))},this._onIconSlotChange=e=>{const t=e.currentTarget;this._hasIconSlot=(t.assignedNodes({flatten:!0})||[]).length>0}}async firstUpdated(){this.variant==="icon"&&await Promise.resolve().then(()=>Z)}_initials(){const e=(this.label||this.alt||"").trim();if(!e)return"?";const t=e.split(/\s+/).filter(Boolean);if(t.length===1)return t[0].slice(0,1).toUpperCase();const i=t[0].slice(0,1),r=t[t.length-1].slice(0,1);return(i+r).toUpperCase()}_ariaLabel(){const e=(this.label||this.alt||"").trim();return e||null}render(){const e=this._ariaLabel(),t=this.variant==="image"&&!!this.src&&!this._imgError,i=c`${u}
2597
+ `,zt([l({type:String,attribute:"trailing-icon"})],a.ScbSearch.prototype,"trailingIcon",2),zt([l({type:String,attribute:"supporting-text"})],a.ScbSearch.prototype,"supportingText",2),zt([l({type:String})],a.ScbSearch.prototype,"value",2),zt([l({type:String,reflect:!0})],a.ScbSearch.prototype,"size",2),zt([l({type:Boolean,attribute:"full-screen",reflect:!0})],a.ScbSearch.prototype,"fullScreen",2),a.ScbSearch=zt([g("scb-search")],a.ScbSearch);const td=Object.freeze(Object.defineProperty({__proto__:null,get ScbSearch(){return a.ScbSearch}},Symbol.toStringTag,{value:"Module"}));var id=Object.defineProperty,rd=Object.getOwnPropertyDescriptor,Te=(o,e,t,i)=>{for(var r=i>1?void 0:i?rd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&id(e,t,r),r};a.ScbAvatar=class extends y{constructor(){super(...arguments),this.src="",this.alt="",this.label="",this.size="medium",this.shape="circular",this.iconName="",this.variant="image",this._imgError=!1,this._hasIconSlot=!1,this._onImgLoad=()=>{this._imgError=!1,this.dispatchEvent(new CustomEvent("image-load",{bubbles:!0,composed:!0}))},this._onImgError=()=>{this._imgError=!0,this.dispatchEvent(new CustomEvent("image-error",{bubbles:!0,composed:!0}))},this._onIconSlotChange=e=>{const t=e.currentTarget;this._hasIconSlot=(t.assignedNodes({flatten:!0})||[]).length>0}}async firstUpdated(){this.variant==="icon"&&await Promise.resolve().then(()=>Z)}_initials(){const e=(this.label||this.alt||"").trim();if(!e)return"?";const t=e.split(/\s+/).filter(Boolean);if(t.length===1)return t[0].slice(0,1).toUpperCase();const i=t[0].slice(0,1),r=t[t.length-1].slice(0,1);return(i+r).toUpperCase()}_ariaLabel(){const e=(this.label||this.alt||"").trim();return e||null}render(){const e=this._ariaLabel(),t=this.variant==="image"&&!!this.src&&!this._imgError,i=c`${u}
2602
2598
  <slot name="icon" @slotchange=${this._onIconSlotChange}></slot>
2603
2599
  ${this._hasIconSlot?u:this.iconName?c`<md-icon aria-hidden="true">${this.iconName}</md-icon>`:c`<div class="fallback" part="fallback">${this._initials()}</div>`}
2604
2600
  `,r=t?c`<img class="photo" part="image" src=${this.src} alt=${this.alt}
@@ -2695,7 +2691,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
2695
2691
  outline-offset: 2px;
2696
2692
  border-radius: var(--_radius);
2697
2693
  }
2698
- `,Ie([l({type:String})],a.ScbAvatar.prototype,"src",2),Ie([l({type:String})],a.ScbAvatar.prototype,"alt",2),Ie([l({type:String})],a.ScbAvatar.prototype,"label",2),Ie([l({type:String,reflect:!0})],a.ScbAvatar.prototype,"size",2),Ie([l({type:String,reflect:!0})],a.ScbAvatar.prototype,"shape",2),Ie([l({type:String,attribute:"icon-name",reflect:!0})],a.ScbAvatar.prototype,"iconName",2),Ie([l({type:String,reflect:!0})],a.ScbAvatar.prototype,"variant",2),Ie([w()],a.ScbAvatar.prototype,"_imgError",2),Ie([w()],a.ScbAvatar.prototype,"_hasIconSlot",2),a.ScbAvatar=Ie([g("scb-avatar")],a.ScbAvatar);var od=Object.defineProperty,ad=Object.getOwnPropertyDescriptor,li=(o,e,t,i)=>{for(var r=i>1?void 0:i?ad(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&od(e,t,r),r};a.ScbAppBar=class extends y{constructor(){super(...arguments),this.title="",this.type="default",this.position="default",this.searchSupportingText=""}handleAvatarSlotChange(e){e.target.assignedElements({flatten:!0}).forEach(r=>{r.tagName==="SCB-AVATAR"&&r.setAttribute("size","small")})}updated(e){e.has("title")&&this.dispatchEvent(new CustomEvent("title-changed",{detail:{title:this.title},bubbles:!0,composed:!0})),e.has("position")&&this.dispatchEvent(new CustomEvent("position-changed",{detail:{position:this.position},bubbles:!0,composed:!0})),e.has("type")&&this.dispatchEvent(new CustomEvent("type-changed",{detail:{type:this.type},bubbles:!0,composed:!0})),e.has("searchSupportingText")&&this.dispatchEvent(new CustomEvent("search-supporting-text-changed",{detail:{searchSupportingText:this.searchSupportingText},bubbles:!0,composed:!0}))}render(){switch(this.type){case"small-flexible":return c`
2694
+ `,Te([l({type:String})],a.ScbAvatar.prototype,"src",2),Te([l({type:String})],a.ScbAvatar.prototype,"alt",2),Te([l({type:String})],a.ScbAvatar.prototype,"label",2),Te([l({type:String,reflect:!0})],a.ScbAvatar.prototype,"size",2),Te([l({type:String,reflect:!0})],a.ScbAvatar.prototype,"shape",2),Te([l({type:String,attribute:"icon-name",reflect:!0})],a.ScbAvatar.prototype,"iconName",2),Te([l({type:String,reflect:!0})],a.ScbAvatar.prototype,"variant",2),Te([w()],a.ScbAvatar.prototype,"_imgError",2),Te([w()],a.ScbAvatar.prototype,"_hasIconSlot",2),a.ScbAvatar=Te([g("scb-avatar")],a.ScbAvatar);var od=Object.defineProperty,ad=Object.getOwnPropertyDescriptor,li=(o,e,t,i)=>{for(var r=i>1?void 0:i?ad(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&od(e,t,r),r};a.ScbAppBar=class extends y{constructor(){super(...arguments),this.title="",this.type="default",this.position="default",this.searchSupportingText=""}handleAvatarSlotChange(e){e.target.assignedElements({flatten:!0}).forEach(r=>{r.tagName==="SCB-AVATAR"&&r.setAttribute("size","small")})}updated(e){e.has("title")&&this.dispatchEvent(new CustomEvent("title-changed",{detail:{title:this.title},bubbles:!0,composed:!0})),e.has("position")&&this.dispatchEvent(new CustomEvent("position-changed",{detail:{position:this.position},bubbles:!0,composed:!0})),e.has("type")&&this.dispatchEvent(new CustomEvent("type-changed",{detail:{type:this.type},bubbles:!0,composed:!0})),e.has("searchSupportingText")&&this.dispatchEvent(new CustomEvent("search-supporting-text-changed",{detail:{searchSupportingText:this.searchSupportingText},bubbles:!0,composed:!0}))}render(){switch(this.type){case"small-flexible":return c`
2699
2695
  <header class="small-flexible ${this.position=="bottom"?"position-bottom":this.position=="top"?"position-top":""}" role="banner" aria-label="Small app bar">
2700
2696
  <div class="leading">
2701
2697
  <slot name="leading"></slot>
@@ -2853,7 +2849,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
2853
2849
  display: flex;
2854
2850
  align-items: center;
2855
2851
  }
2856
- `],li([l({type:String})],a.ScbAppBar.prototype,"title",2),li([l({type:String})],a.ScbAppBar.prototype,"type",2),li([l({type:String,reflect:!0})],a.ScbAppBar.prototype,"position",2),li([l({type:String,attribute:"search-supporting-text"})],a.ScbAppBar.prototype,"searchSupportingText",2),a.ScbAppBar=li([g("scb-app-bar")],a.ScbAppBar);var sd=Object.defineProperty,nd=Object.getOwnPropertyDescriptor,Me=(o,e,t,i)=>{for(var r=i>1?void 0:i?nd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&sd(e,t,r),r};a.ScbBadge=class extends y{constructor(){super(...arguments),this._slotClickHandler=e=>{var r;const t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),i=e.target;i&&i!==t&&i.dispatchEvent(new CustomEvent("hide-badge",{bubbles:!0,composed:!0}))},this.autoHide=!1,this.position="relative",this.positionTop=0,this.positionRight=12,this.value="",this.label="",this.hidden=!1,this.variant="dot",this._badgeVisible=!0,this._onHideBadge=()=>{this._badgeVisible=!1,this.requestUpdate()}}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");this.autoHide&&e&&e.addEventListener("click",this._slotClickHandler)}updated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&(this.autoHide?e.addEventListener("click",this._slotClickHandler):e.removeEventListener("click",this._slotClickHandler))}connectedCallback(){super.connectedCallback(),this.addEventListener("hide-badge",this._onHideBadge)}disconnectedCallback(){this.removeEventListener("hide-badge",this._onHideBadge),super.disconnectedCallback()}render(){this.style.setProperty("--scb-badge-absolute-top",this.positionTop+"px"),this.style.setProperty("--scb-badge-absolute-right",this.positionRight+"px");let e=this.value;!isNaN(Number(this.value))&&this.value.length>4&&(e=this.value.slice(0,4)+"+");const t=this.variant==="value"&&!this.value?"badge-value-empty":"",i=this._badgeVisible?"":"badge--hide",r=this.label||(this.variant==="dot"?"Indikator":`Märke: ${e}`);return c`
2852
+ `],li([l({type:String,reflect:!0})],a.ScbAppBar.prototype,"title",2),li([l({type:String,reflect:!0})],a.ScbAppBar.prototype,"type",2),li([l({type:String,reflect:!0})],a.ScbAppBar.prototype,"position",2),li([l({type:String,attribute:"search-supporting-text",reflect:!0})],a.ScbAppBar.prototype,"searchSupportingText",2),a.ScbAppBar=li([g("scb-app-bar")],a.ScbAppBar);var sd=Object.defineProperty,nd=Object.getOwnPropertyDescriptor,Me=(o,e,t,i)=>{for(var r=i>1?void 0:i?nd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&sd(e,t,r),r};a.ScbBadge=class extends y{constructor(){super(...arguments),this._slotClickHandler=e=>{var r;const t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),i=e.target;i&&i!==t&&i.dispatchEvent(new CustomEvent("hide-badge",{bubbles:!0,composed:!0}))},this.autoHide=!1,this.position="relative",this.positionTop=0,this.positionRight=12,this.value="",this.label="",this.hidden=!1,this.variant="dot",this._badgeVisible=!0,this._onHideBadge=()=>{this._badgeVisible=!1,this.requestUpdate()}}firstUpdated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");this.autoHide&&e&&e.addEventListener("click",this._slotClickHandler)}updated(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e&&(this.autoHide?e.addEventListener("click",this._slotClickHandler):e.removeEventListener("click",this._slotClickHandler))}connectedCallback(){super.connectedCallback(),this.addEventListener("hide-badge",this._onHideBadge)}disconnectedCallback(){this.removeEventListener("hide-badge",this._onHideBadge),super.disconnectedCallback()}render(){this.style.setProperty("--scb-badge-absolute-top",this.positionTop+"px"),this.style.setProperty("--scb-badge-absolute-right",this.positionRight+"px");let e=this.value;!isNaN(Number(this.value))&&this.value.length>4&&(e=this.value.slice(0,4)+"+");const t=this.variant==="value"&&!this.value?"badge-value-empty":"",i=this._badgeVisible?"":"badge--hide",r=this.label||(this.variant==="dot"?"Indikator":`Märke: ${e}`);return c`
2857
2853
  <div class="badge-content">
2858
2854
  <slot></slot>
2859
2855
  <div
@@ -2985,79 +2981,105 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
2985
2981
  cursor: default;
2986
2982
  }
2987
2983
  `,vt([l({type:String,reflect:!0})],a.ScbLink.prototype,"href",2),vt([l({type:String,reflect:!0})],a.ScbLink.prototype,"target",2),vt([l({type:String,reflect:!0})],a.ScbLink.prototype,"rel",2),vt([l({type:String,reflect:!0})],a.ScbLink.prototype,"download",2),vt([l({type:Boolean,reflect:!0})],a.ScbLink.prototype,"disabled",2),vt([l({type:String,attribute:"aria-label"})],a.ScbLink.prototype,"ariaLabel",2),a.ScbLink=vt([g("scb-link")],a.ScbLink);var ud=Object.defineProperty,vd=Object.getOwnPropertyDescriptor,mr=(o,e,t,i)=>{for(var r=i>1?void 0:i?vd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ud(e,t,r),r};a.SCBBreadcrumbItem=class extends y{constructor(){super(...arguments),this.label="",this.isCurrent=!1,this.href=""}static get styles(){return m`
2988
- .breadcrumb-separator {
2989
- margin: var(--spacing-0) var(--spacing-3);
2990
- color: var(--md-sys-color-on-surface);
2991
- }
2992
- `}render(){switch(!0){case this.isCurrent:return c`<span class="breadcrumb-current">${this.label}</span>`;default:return c`
2984
+ .breadcrumb-separator {
2985
+ margin: var(--spacing-0) var(--spacing-3);
2986
+ color: var(--md-sys-color-on-surface);
2987
+ }
2988
+
2989
+ .breadcrumb-current {
2990
+ color: var(--md-sys-color-on-surface);
2991
+ font-weight: var(--weight-semibold);
2992
+ }
2993
+ `}updated(e){e.has("isCurrent")&&this.dispatchEvent(new CustomEvent("current-changed",{detail:{isCurrent:this.isCurrent},bubbles:!0,composed:!0}))}render(){switch(!0){case this.isCurrent:return c`<span class="breadcrumb-current">${this.label}</span>`;default:return c`
2993
2994
  <scb-link href="${this.href}">${this.label}</scb-link>
2994
2995
  <span class="breadcrumb-separator">/</span>
2995
- `}}},mr([l({type:String})],a.SCBBreadcrumbItem.prototype,"label",2),mr([l({type:Boolean,attribute:"is-current"})],a.SCBBreadcrumbItem.prototype,"isCurrent",2),mr([l({type:String,attribute:"item-href"})],a.SCBBreadcrumbItem.prototype,"href",2),a.SCBBreadcrumbItem=mr([g("scb-breadcrumb-item")],a.SCBBreadcrumbItem);var bd=Object.defineProperty,md=Object.getOwnPropertyDescriptor,us=(o,e,t,i)=>{for(var r=i>1?void 0:i?md(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&bd(e,t,r),r};a.SCBBreadcrumb=class extends y{constructor(){super(...arguments),this.showAll=!1}static get styles(){return m`
2996
+ `}}},mr([l({type:String})],a.SCBBreadcrumbItem.prototype,"label",2),mr([l({type:Boolean,attribute:"is-current",reflect:!0})],a.SCBBreadcrumbItem.prototype,"isCurrent",2),mr([l({type:String,attribute:"item-href"})],a.SCBBreadcrumbItem.prototype,"href",2),a.SCBBreadcrumbItem=mr([g("scb-breadcrumb-item")],a.SCBBreadcrumbItem);var bd=Object.defineProperty,md=Object.getOwnPropertyDescriptor,us=(o,e,t,i)=>{for(var r=i>1?void 0:i?md(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&bd(e,t,r),r};a.SCBBreadcrumb=class extends y{constructor(){super(...arguments),this.showAll=!1}static get styles(){return m`
2996
2997
  .scb-breadcrumb {
2997
2998
  display: flex;
2998
2999
  align-items: center;
2999
3000
  flex-wrap: wrap;
3000
3001
  }
3002
+
3001
3003
  .breadcrumb-separator {
3002
3004
  margin: var(--spacing-0) var(--spacing-3);
3003
3005
  color: var(--md-sys-color-on-surface);
3004
3006
  }
3007
+
3005
3008
  .collapsed > scb-breadcrumb-item {
3006
3009
  display: none;
3007
3010
  }
3008
- .collapsed > scb-breadcrumb-item:nth-child(-n+3),
3009
- .collapsed > scb-breadcrumb-item:nth-last-child(-n+3) {
3011
+
3012
+ .collapsed > scb-breadcrumb-item:nth-child(-n + 3),
3013
+ .collapsed > scb-breadcrumb-item:nth-last-child(-n + 3) {
3010
3014
  display: flex;
3011
3015
  align-items: anchor-center;
3012
3016
  }
3013
- .ellipsis:focus {
3014
- outline: none;
3015
- }
3017
+
3016
3018
  .ellipsis {
3017
3019
  cursor: pointer;
3018
3020
  display: inline-flex;
3019
3021
  color: var(--md-sys-color-primary);
3020
3022
  position: relative;
3021
3023
  }
3024
+
3025
+ .ellipsis:focus {
3026
+ outline: none;
3027
+ }
3028
+
3022
3029
  .collapsed .ellipsis {
3023
3030
  display: inline-flex;
3024
3031
  }
3032
+
3025
3033
  .expanded .ellipsis {
3026
3034
  display: none;
3027
3035
  }
3036
+
3028
3037
  .breadcrumb-animate {
3029
3038
  opacity: 0;
3030
3039
  transform: translateY(10px);
3031
- animation: fadeInBreadcrumb 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
3040
+ animation: fadeInBreadcrumb 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
3032
3041
  }
3033
- md-focus-ring {
3034
- position: absolute;
3035
- inset: 0;
3036
- pointer-events: none;
3037
- display: none;
3038
- border-radius: var(--scb-card-focus-ring-radius, var(--md-sys-shape-corner-large));
3039
- }
3040
- .ellipsis:focus md-focus-ring {
3041
- display: block;
3042
- }
3042
+
3043
+ md-focus-ring {
3044
+ position: absolute;
3045
+ inset: 0;
3046
+ pointer-events: none;
3047
+ display: none;
3048
+ border-radius: var(
3049
+ --scb-card-focus-ring-radius,
3050
+ var(--md-sys-shape-corner-large)
3051
+ );
3052
+ }
3053
+
3054
+ .ellipsis:focus md-focus-ring {
3055
+ display: block;
3056
+ }
3057
+
3043
3058
  @keyframes fadeInBreadcrumb {
3044
3059
  to {
3045
3060
  opacity: 1;
3046
3061
  transform: translateY(0);
3047
3062
  }
3048
3063
  }
3049
- `}_onEllipsisClick(){this.showAll?this.showAll=!1:(this.showAll=!0,this.updateComplete.then(()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelectorAll(".scb-breadcrumb.expanded > scb-breadcrumb-item");e&&(e.forEach((i,r)=>{i.classList.add("breadcrumb-animate"),i.style.animationDelay=`${r*60}ms`}),setTimeout(()=>{e.forEach(i=>{i.classList.remove("breadcrumb-animate"),i.style.animationDelay=""})},600))}))}connectedCallback(){super.connectedCallback(),this._observer=new MutationObserver(()=>{this.requestUpdate()}),this._observer.observe(this,{childList:!0})}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._observer)==null||e.disconnect()}render(){let e=[];this.children.length||(e=Array.from(this.shadowRoot?this.shadowRoot.querySelectorAll("scb-breadcrumb-item"):[])),e.length||(e=Array.from(this.children).filter(i=>i.tagName.toLowerCase()==="scb-breadcrumb-item")),e.length>0&&e[e.length-1].setAttribute("is-current","true");const t=e.length>6&&!this.showAll;return c`
3064
+ `}connectedCallback(){super.connectedCallback(),this._observer=new MutationObserver(()=>{this.requestUpdate()}),this._observer.observe(this,{childList:!0})}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._observer)==null||e.disconnect()}updated(e){e.has("showAll")&&this.dispatchEvent(new CustomEvent("show-all-changed",{detail:{showAll:this.showAll},bubbles:!0,composed:!0}))}_onEllipsisClick(){this.showAll?this.showAll=!1:(this.showAll=!0,this.updateComplete.then(()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelectorAll(".scb-breadcrumb.expanded > scb-breadcrumb-item");e&&(e.forEach((i,r)=>{i.classList.add("breadcrumb-animate"),i.style.animationDelay=`${r*60}ms`}),setTimeout(()=>{e.forEach(i=>{i.classList.remove("breadcrumb-animate"),i.style.animationDelay=""})},600))}))}render(){let e=[];if(this.children.length||(e=Array.from(this.shadowRoot?this.shadowRoot.querySelectorAll("scb-breadcrumb-item"):[])),e.length||(e=Array.from(this.children).filter(i=>i.tagName.toLowerCase()==="scb-breadcrumb-item")),e.length>0){const i=e.length-1;e.forEach((r,s)=>{r.toggleAttribute("is-current",s===i)})}const t=e.length>6&&!this.showAll;return c`
3050
3065
  <div class="scb-breadcrumb ${t?"collapsed":"expanded"}">
3051
3066
  ${t?e.map((i,r)=>r===3?c`<span
3052
- class="ellipsis"
3053
- aria-label="Visa alla"
3054
- role="button"
3055
- tabindex="0"
3056
- @click=${this._onEllipsisClick}
3057
- @keydown=${s=>{(s.key==="Enter"||s.key===" ")&&this._onEllipsisClick()}}
3058
- ><md-icon><md-focus-ring></md-focus-ring>more_horiz</md-icon></span><span class="breadcrumb-separator">/</span>${i}`:c`${i}`):e.map(i=>i)}
3067
+ class="ellipsis"
3068
+ aria-label="Visa alla"
3069
+ role="button"
3070
+ tabindex="0"
3071
+ @click=${this._onEllipsisClick}
3072
+ @keydown=${s=>{(s.key==="Enter"||s.key===" ")&&this._onEllipsisClick()}}
3073
+ >
3074
+ <md-icon>
3075
+ <md-focus-ring></md-focus-ring>
3076
+ more_horiz
3077
+ </md-icon>
3078
+ </span>
3079
+ <span class="breadcrumb-separator">/</span>
3080
+ ${i}`:c`${i}`):e.map(i=>i)}
3059
3081
  </div>
3060
- `}},us([l({type:Boolean})],a.SCBBreadcrumb.prototype,"showAll",2),a.SCBBreadcrumb=us([g("scb-breadcrumb")],a.SCBBreadcrumb);var fd=Object.defineProperty,gd=Object.getOwnPropertyDescriptor,N=(o,e,t,i)=>{for(var r=i>1?void 0:i?gd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&fd(e,t,r),r};a.ScbCalendarCard=class extends y{constructor(){super(...arguments),this.variant="default",this.direction="horizontal",this.title="",this.subtitle="",this.supportingText="",this.cardHref="",this.cardHrefNav="",this.showMedia=null,this.mediaWidth="",this.mediaHeight="",this.mediaAspect="",this.width="",this.maxWidth="",this.minWidth="",this.height="",this.maxHeight="",this.minHeight="",this.sizing="stretch"}async firstUpdated(){a.ScbCalendarCard.__iconLoaded||(await Promise.resolve().then(()=>Z),a.ScbCalendarCard.__iconLoaded=!0),a.ScbCalendarCard.__rippleLoaded||(await Promise.resolve().then(()=>Ii),a.ScbCalendarCard.__rippleLoaded=!0),this.__applyInnerSizing()}render(){const e=this.variant?`${this.variant.toLowerCase()}`:"",t=this.direction?`${this.direction.toLowerCase()}`:"",i=this.cardHref?"clickable":"",r=1,s="Jan",n=this.mediaWidth&&this.mediaWidth.trim()!==""?this.mediaWidth:"",h=this.mediaHeight&&this.mediaHeight.trim()!==""?this.mediaHeight:"",p=this.mediaAspect&&this.mediaAspect.trim()!==""?this.mediaAspect:"",v=`${n?`inline-size:${n};`:""}${h?`block-size:${h};`:""}${p?`aspect-ratio:${p};`:""}`;return c`
3082
+ `}},us([l({type:Boolean,attribute:"show-all",reflect:!0})],a.SCBBreadcrumb.prototype,"showAll",2),a.SCBBreadcrumb=us([g("scb-breadcrumb")],a.SCBBreadcrumb);var fd=Object.defineProperty,gd=Object.getOwnPropertyDescriptor,N=(o,e,t,i)=>{for(var r=i>1?void 0:i?gd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&fd(e,t,r),r};a.ScbCalendarCard=class extends y{constructor(){super(...arguments),this.variant="default",this.direction="horizontal",this.title="",this.subtitle="",this.supportingText="",this.cardHref="",this.cardHrefNav="",this.showMedia=null,this.mediaWidth="",this.mediaHeight="",this.mediaAspect="",this.width="",this.maxWidth="",this.minWidth="",this.height="",this.maxHeight="",this.minHeight="",this.sizing="stretch"}async firstUpdated(){a.ScbCalendarCard.__iconLoaded||(await Promise.resolve().then(()=>Z),a.ScbCalendarCard.__iconLoaded=!0),a.ScbCalendarCard.__rippleLoaded||(await Promise.resolve().then(()=>Ti),a.ScbCalendarCard.__rippleLoaded=!0),this.__applyInnerSizing()}render(){const e=this.variant?`${this.variant.toLowerCase()}`:"",t=this.direction?`${this.direction.toLowerCase()}`:"",i=this.cardHref?"clickable":"",r=1,s="Jan",n=this.mediaWidth&&this.mediaWidth.trim()!==""?this.mediaWidth:"",h=this.mediaHeight&&this.mediaHeight.trim()!==""?this.mediaHeight:"",p=this.mediaAspect&&this.mediaAspect.trim()!==""?this.mediaAspect:"",v=`${n?`inline-size:${n};`:""}${h?`block-size:${h};`:""}${p?`aspect-ratio:${p};`:""}`;return c`
3061
3083
  <div
3062
3084
  class="calendar-card ${t} ${i} ${e}"
3063
3085
  role="${this.cardHref?"link":"group"}"
@@ -3291,7 +3313,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
3291
3313
  overflow: visible;
3292
3314
  text-overflow: clip;
3293
3315
  }
3294
- `,N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"variant",2),N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"direction",2),N([l({type:String})],a.ScbCalendarCard.prototype,"title",2),N([l({type:String})],a.ScbCalendarCard.prototype,"subtitle",2),N([l({type:String,attribute:"supporting-text"})],a.ScbCalendarCard.prototype,"supportingText",2),N([l({type:String,attribute:"card-href"})],a.ScbCalendarCard.prototype,"cardHref",2),N([l({type:String,attribute:"card-href-nav"})],a.ScbCalendarCard.prototype,"cardHrefNav",2),N([l({type:Boolean,reflect:!0,attribute:"show-media"})],a.ScbCalendarCard.prototype,"showMedia",2),N([l({type:String,attribute:"media-width"})],a.ScbCalendarCard.prototype,"mediaWidth",2),N([l({type:String,attribute:"media-height"})],a.ScbCalendarCard.prototype,"mediaHeight",2),N([l({type:String,attribute:"media-aspect"})],a.ScbCalendarCard.prototype,"mediaAspect",2),N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"width",2),N([l({type:String,reflect:!0,attribute:"max-width"})],a.ScbCalendarCard.prototype,"maxWidth",2),N([l({type:String,attribute:"min-width"})],a.ScbCalendarCard.prototype,"minWidth",2),N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"height",2),N([l({type:String,reflect:!0,attribute:"max-height"})],a.ScbCalendarCard.prototype,"maxHeight",2),N([l({type:String,attribute:"min-height"})],a.ScbCalendarCard.prototype,"minHeight",2),N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"sizing",2),a.ScbCalendarCard=N([g("scb-calendar-card")],a.ScbCalendarCard);var yd=Object.defineProperty,_d=Object.getOwnPropertyDescriptor,z=(o,e,t,i)=>{for(var r=i>1?void 0:i?_d(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&yd(e,t,r),r};a.ScbCard=class extends y{constructor(){super(...arguments),this.type="",this.variant="",this.direction="",this.mediaType="",this.mediaHref="",this.mediaAlt="",this.mediaSrcset="",this.mediaSizes="",this.mediaLoading="auto",this.mediaDecoding="async",this.mediaFetchPriority="auto",this.mediaFit="cover",this.mediaPosition="center",this.mediaWidth="",this.mediaHeight="",this.mediaAspect="",this.mediaPlaceholder=!1,this.cardHref="",this.title="",this.subtitle="",this.supportingText="",this.commentsText="",this.comments=0,this.likesText="",this.likes=0,this.sizing="stretch",this.width="",this.maxWidth="",this.height="",this.maxHeight="",this.__onImgLoad=e=>{const t=e.currentTarget.closest(".media");t&&t.classList.add("is-loaded")},this.__onKeyDown=e=>{(e.key==="Enter"||e.key===" ")&&this.cardHref&&(e.preventDefault(),window.open(this.cardHref,"_self"))},this.__handleHrefNavigation=e=>{this.cardHref&&(e.target.closest("a")||window.open(this.cardHref,"_self"))}}__calcAspectWH(e){const t=(e||"").trim();if(!t)return{w:640,h:360};const i=t.includes("/")?t.split("/"):t.includes(":")?t.split(":"):t.includes("x")?t.split("x"):null;if(i&&i.length===2){const s=Number(i[0]),n=Number(i[1]);if(s>0&&n>0)return{w:s,h:n}}const r=Number(t);return isFinite(r)&&r>0?{w:1e3,h:Math.round(1e3/r)}:{w:640,h:360}}__mediaTemplate(){if((this.mediaType||"").toLowerCase()==="avatar")return c`
3316
+ `,N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"variant",2),N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"direction",2),N([l({type:String})],a.ScbCalendarCard.prototype,"title",2),N([l({type:String})],a.ScbCalendarCard.prototype,"subtitle",2),N([l({type:String,attribute:"supporting-text"})],a.ScbCalendarCard.prototype,"supportingText",2),N([l({type:String,attribute:"card-href"})],a.ScbCalendarCard.prototype,"cardHref",2),N([l({type:String,attribute:"card-href-nav"})],a.ScbCalendarCard.prototype,"cardHrefNav",2),N([l({type:Boolean,reflect:!0,attribute:"show-media"})],a.ScbCalendarCard.prototype,"showMedia",2),N([l({type:String,attribute:"media-width"})],a.ScbCalendarCard.prototype,"mediaWidth",2),N([l({type:String,attribute:"media-height"})],a.ScbCalendarCard.prototype,"mediaHeight",2),N([l({type:String,attribute:"media-aspect"})],a.ScbCalendarCard.prototype,"mediaAspect",2),N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"width",2),N([l({type:String,reflect:!0,attribute:"max-width"})],a.ScbCalendarCard.prototype,"maxWidth",2),N([l({type:String,attribute:"min-width"})],a.ScbCalendarCard.prototype,"minWidth",2),N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"height",2),N([l({type:String,reflect:!0,attribute:"max-height"})],a.ScbCalendarCard.prototype,"maxHeight",2),N([l({type:String,attribute:"min-height"})],a.ScbCalendarCard.prototype,"minHeight",2),N([l({type:String,reflect:!0})],a.ScbCalendarCard.prototype,"sizing",2),a.ScbCalendarCard=N([g("scb-calendar-card")],a.ScbCalendarCard);var yd=Object.defineProperty,_d=Object.getOwnPropertyDescriptor,I=(o,e,t,i)=>{for(var r=i>1?void 0:i?_d(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&yd(e,t,r),r};a.ScbCard=class extends y{constructor(){super(...arguments),this.type="",this.variant="",this.direction="",this.mediaType="",this.mediaHref="",this.mediaAlt="",this.mediaSrcset="",this.mediaSizes="",this.mediaLoading="auto",this.mediaDecoding="async",this.mediaFetchPriority="auto",this.mediaFit="cover",this.mediaPosition="center",this.mediaWidth="",this.mediaHeight="",this.mediaAspect="",this.mediaPlaceholder=!1,this.cardHref="",this.title="",this.subtitle="",this.supportingText="",this.commentsText="",this.comments=0,this.likesText="",this.likes=0,this.sizing="stretch",this.width="",this.maxWidth="",this.height="",this.maxHeight="",this.__onImgLoad=e=>{const t=e.currentTarget.closest(".media");t&&t.classList.add("is-loaded")},this.__onKeyDown=e=>{(e.key==="Enter"||e.key===" ")&&this.cardHref&&(e.preventDefault(),window.open(this.cardHref,"_self"))},this.__handleHrefNavigation=e=>{this.cardHref&&(e.target.closest("a")||window.open(this.cardHref,"_self"))}}__calcAspectWH(e){const t=(e||"").trim();if(!t)return{w:640,h:360};const i=t.includes("/")?t.split("/"):t.includes(":")?t.split(":"):t.includes("x")?t.split("x"):null;if(i&&i.length===2){const s=Number(i[0]),n=Number(i[1]);if(s>0&&n>0)return{w:s,h:n}}const r=Number(t);return isFinite(r)&&r>0?{w:1e3,h:Math.round(1e3/r)}:{w:640,h:360}}__mediaTemplate(){if((this.mediaType||"").toLowerCase()==="avatar")return c`
3295
3317
  <div class="media">
3296
3318
  <slot name="media">
3297
3319
  <scb-avatar variant="icon" label="${this.title}" icon-name="person"></scb-avatar>
@@ -3399,7 +3421,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
3399
3421
  ${r?c`<div class="date">${r}</div>`:""}
3400
3422
  </div>
3401
3423
  </div>
3402
- `)}}updated(e){super.updated(e),e.has("width")&&(this.width?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),e.has("maxWidth")&&(this.maxWidth?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),e.has("height")&&(this.height?this.style.blockSize=this.height:this.style.removeProperty("block-size")),e.has("maxHeight")&&(this.maxHeight?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size")),e.has("type")&&(this.type==="list"?this.setAttribute("data-density","-2"):this.removeAttribute("data-density")),this.style.setProperty("--scb-card-media-fit",this.mediaFit||"cover"),this.style.setProperty("--scb-card-media-position",this.mediaPosition||"center")}async firstUpdated(){a.ScbCard.__iconLoaded||(await Promise.resolve().then(()=>Z),a.ScbCard.__iconLoaded=!0),a.ScbCard.__rippleLoaded||(await Promise.resolve().then(()=>Ii),a.ScbCard.__rippleLoaded=!0)}},a.ScbCard.__iconLoaded=!1,a.ScbCard.__rippleLoaded=!1,a.ScbCard.styles=m`
3424
+ `)}}updated(e){super.updated(e),e.has("width")&&(this.width?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),e.has("maxWidth")&&(this.maxWidth?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),e.has("height")&&(this.height?this.style.blockSize=this.height:this.style.removeProperty("block-size")),e.has("maxHeight")&&(this.maxHeight?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size")),e.has("type")&&(this.type==="list"?this.setAttribute("data-density","-2"):this.removeAttribute("data-density")),this.style.setProperty("--scb-card-media-fit",this.mediaFit||"cover"),this.style.setProperty("--scb-card-media-position",this.mediaPosition||"center")}async firstUpdated(){a.ScbCard.__iconLoaded||(await Promise.resolve().then(()=>Z),a.ScbCard.__iconLoaded=!0),a.ScbCard.__rippleLoaded||(await Promise.resolve().then(()=>Ti),a.ScbCard.__rippleLoaded=!0)}},a.ScbCard.__iconLoaded=!1,a.ScbCard.__rippleLoaded=!1,a.ScbCard.styles=m`
3403
3425
  :host {
3404
3426
  display: block;
3405
3427
  box-sizing: border-box;
@@ -3646,7 +3668,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
3646
3668
  .scb-card.filled .content.list ::slotted(scb-list) {
3647
3669
  --scb-list-bg: var(--md-sys-color-surface-dim);
3648
3670
  }
3649
- `,z([l({type:String})],a.ScbCard.prototype,"type",2),z([l({type:String})],a.ScbCard.prototype,"variant",2),z([l({type:String})],a.ScbCard.prototype,"direction",2),z([l({type:String,attribute:"media-type"})],a.ScbCard.prototype,"mediaType",2),z([l({type:String,attribute:"media-href"})],a.ScbCard.prototype,"mediaHref",2),z([l({type:String,attribute:"media-alt"})],a.ScbCard.prototype,"mediaAlt",2),z([l({type:String,attribute:"media-srcset"})],a.ScbCard.prototype,"mediaSrcset",2),z([l({type:String,attribute:"media-sizes"})],a.ScbCard.prototype,"mediaSizes",2),z([l({type:String,attribute:"media-loading"})],a.ScbCard.prototype,"mediaLoading",2),z([l({type:String,attribute:"media-decoding"})],a.ScbCard.prototype,"mediaDecoding",2),z([l({type:String,attribute:"media-fetchpriority"})],a.ScbCard.prototype,"mediaFetchPriority",2),z([l({type:String,attribute:"media-fit"})],a.ScbCard.prototype,"mediaFit",2),z([l({type:String,attribute:"media-position"})],a.ScbCard.prototype,"mediaPosition",2),z([l({type:String,attribute:"media-width"})],a.ScbCard.prototype,"mediaWidth",2),z([l({type:String,attribute:"media-height"})],a.ScbCard.prototype,"mediaHeight",2),z([l({type:String,attribute:"media-aspect"})],a.ScbCard.prototype,"mediaAspect",2),z([l({type:Boolean,attribute:"media-placeholder"})],a.ScbCard.prototype,"mediaPlaceholder",2),z([l({type:String,attribute:"card-href"})],a.ScbCard.prototype,"cardHref",2),z([l({type:String})],a.ScbCard.prototype,"title",2),z([l({type:String})],a.ScbCard.prototype,"subtitle",2),z([l({type:String,attribute:"supporting-text"})],a.ScbCard.prototype,"supportingText",2),z([l({type:Date,reflect:!0})],a.ScbCard.prototype,"date",2),z([l({type:String,attribute:"social-comments-text"})],a.ScbCard.prototype,"commentsText",2),z([l({type:Number,attribute:"social-comments",reflect:!0})],a.ScbCard.prototype,"comments",2),z([l({type:String,attribute:"social-likes-text"})],a.ScbCard.prototype,"likesText",2),z([l({type:Number,attribute:"social-likes",reflect:!0})],a.ScbCard.prototype,"likes",2),z([l({type:String,reflect:!0})],a.ScbCard.prototype,"sizing",2),z([l({type:String,reflect:!0})],a.ScbCard.prototype,"width",2),z([l({type:String,reflect:!0,attribute:"max-width"})],a.ScbCard.prototype,"maxWidth",2),z([l({type:String,reflect:!0})],a.ScbCard.prototype,"height",2),z([l({type:String,reflect:!0,attribute:"max-height"})],a.ScbCard.prototype,"maxHeight",2),a.ScbCard=z([g("scb-card")],a.ScbCard);var xd=Object.defineProperty,wd=Object.getOwnPropertyDescriptor,vs=o=>{throw TypeError(o)},fr=(o,e,t,i)=>{for(var r=i>1?void 0:i?wd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&xd(e,t,r),r},Sd=(o,e,t)=>e.has(o)||vs("Cannot "+t),Do=(o,e,t)=>(Sd(o,e,"read from private field"),t?t.call(o):e.get(o)),kd=(o,e,t)=>e.has(o)?vs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),di;a.ScbCheckboxGroup=class extends y{constructor(){super(...arguments),this.orientation="vertical",this.disabled=!1,this.spacing="group",kd(this,di,()=>{var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!e)return;const t=e.assignedElements({flatten:!0}).filter(r=>r.tagName.toLowerCase()==="scb-checkbox");for(const r of t)this.disabled?r.setAttribute("disabled",""):r.removeAttribute("disabled"),this.orientation==="horizontal"?r.setAttribute("orientation","horizontal"):r.removeAttribute("orientation"),this.spacing==="group"?r.style.setProperty("--scb-checkbox-gap","0"):r.style.removeProperty("--scb-checkbox-gap")})}render(){const e=this.orientation==="horizontal"?"row":"column";return c`
3671
+ `,I([l({type:String})],a.ScbCard.prototype,"type",2),I([l({type:String})],a.ScbCard.prototype,"variant",2),I([l({type:String})],a.ScbCard.prototype,"direction",2),I([l({type:String,attribute:"media-type"})],a.ScbCard.prototype,"mediaType",2),I([l({type:String,attribute:"media-href"})],a.ScbCard.prototype,"mediaHref",2),I([l({type:String,attribute:"media-alt"})],a.ScbCard.prototype,"mediaAlt",2),I([l({type:String,attribute:"media-srcset"})],a.ScbCard.prototype,"mediaSrcset",2),I([l({type:String,attribute:"media-sizes"})],a.ScbCard.prototype,"mediaSizes",2),I([l({type:String,attribute:"media-loading"})],a.ScbCard.prototype,"mediaLoading",2),I([l({type:String,attribute:"media-decoding"})],a.ScbCard.prototype,"mediaDecoding",2),I([l({type:String,attribute:"media-fetchpriority"})],a.ScbCard.prototype,"mediaFetchPriority",2),I([l({type:String,attribute:"media-fit"})],a.ScbCard.prototype,"mediaFit",2),I([l({type:String,attribute:"media-position"})],a.ScbCard.prototype,"mediaPosition",2),I([l({type:String,attribute:"media-width"})],a.ScbCard.prototype,"mediaWidth",2),I([l({type:String,attribute:"media-height"})],a.ScbCard.prototype,"mediaHeight",2),I([l({type:String,attribute:"media-aspect"})],a.ScbCard.prototype,"mediaAspect",2),I([l({type:Boolean,attribute:"media-placeholder"})],a.ScbCard.prototype,"mediaPlaceholder",2),I([l({type:String,attribute:"card-href"})],a.ScbCard.prototype,"cardHref",2),I([l({type:String})],a.ScbCard.prototype,"title",2),I([l({type:String})],a.ScbCard.prototype,"subtitle",2),I([l({type:String,attribute:"supporting-text"})],a.ScbCard.prototype,"supportingText",2),I([l({type:Date,reflect:!0})],a.ScbCard.prototype,"date",2),I([l({type:String,attribute:"social-comments-text"})],a.ScbCard.prototype,"commentsText",2),I([l({type:Number,attribute:"social-comments",reflect:!0})],a.ScbCard.prototype,"comments",2),I([l({type:String,attribute:"social-likes-text"})],a.ScbCard.prototype,"likesText",2),I([l({type:Number,attribute:"social-likes",reflect:!0})],a.ScbCard.prototype,"likes",2),I([l({type:String,reflect:!0})],a.ScbCard.prototype,"sizing",2),I([l({type:String,reflect:!0})],a.ScbCard.prototype,"width",2),I([l({type:String,reflect:!0,attribute:"max-width"})],a.ScbCard.prototype,"maxWidth",2),I([l({type:String,reflect:!0})],a.ScbCard.prototype,"height",2),I([l({type:String,reflect:!0,attribute:"max-height"})],a.ScbCard.prototype,"maxHeight",2),a.ScbCard=I([g("scb-card")],a.ScbCard);var xd=Object.defineProperty,wd=Object.getOwnPropertyDescriptor,vs=o=>{throw TypeError(o)},fr=(o,e,t,i)=>{for(var r=i>1?void 0:i?wd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&xd(e,t,r),r},Sd=(o,e,t)=>e.has(o)||vs("Cannot "+t),Do=(o,e,t)=>(Sd(o,e,"read from private field"),t?t.call(o):e.get(o)),kd=(o,e,t)=>e.has(o)?vs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),di;a.ScbCheckboxGroup=class extends y{constructor(){super(...arguments),this.orientation="vertical",this.disabled=!1,this.spacing="group",kd(this,di,()=>{var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!e)return;const t=e.assignedElements({flatten:!0}).filter(r=>r.tagName.toLowerCase()==="scb-checkbox");for(const r of t)this.disabled?r.setAttribute("disabled",""):r.removeAttribute("disabled"),this.orientation==="horizontal"?r.setAttribute("orientation","horizontal"):r.removeAttribute("orientation"),this.spacing==="group"?r.style.setProperty("--scb-checkbox-gap","0"):r.style.removeProperty("--scb-checkbox-gap")})}render(){const e=this.orientation==="horizontal"?"row":"column";return c`
3650
3672
  <div class="g" role="group" aria-disabled=${String(this.disabled)} style=${`--_dir:${e}`}>
3651
3673
  <slot @slotchange=${Do(this,di)}></slot>
3652
3674
  </div>
@@ -3747,7 +3769,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
3747
3769
  .lbl { color: var(--md-sys-color-on-surface); }
3748
3770
  .supporting-text { color: var(--md-sys-color-on-surface-variant); }
3749
3771
  }
3750
- `,bt([l({type:Boolean,reflect:!0})],a.ScbCheckbox.prototype,"disabled",2),bt([l({type:Boolean,reflect:!0})],a.ScbCheckbox.prototype,"indeterminate",2),bt([l({type:Boolean,reflect:!0})],a.ScbCheckbox.prototype,"checked",2),bt([l({type:String})],a.ScbCheckbox.prototype,"label",2),bt([l({type:String,attribute:"supporting-text"})],a.ScbCheckbox.prototype,"supportingText",2),bt([l({type:String,reflect:!0,attribute:"aria-label"})],a.ScbCheckbox.prototype,"ariaLabel",2),a.ScbCheckbox=bt([g("scb-checkbox")],a.ScbCheckbox);const bs=Object.freeze(Object.defineProperty({__proto__:null,get ScbCheckbox(){return a.ScbCheckbox}},Symbol.toStringTag,{value:"Module"}));var Ed=Object.defineProperty,Ad=Object.getOwnPropertyDescriptor,ze=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ad(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ed(e,t,r),r};a.ScbChip=class extends y{constructor(){super(...arguments),this.variant="assist",this.label="",this.icon="",this.disabled=!1,this.elevated=!1,this.removable=!1,this.selected=!1,this.href="",this.target="",this.__loadedVariants=new Set,this.__chipSetLoaded=!1,this.__iconLoaded=!1}updated(e){super.updated(e),(e.has("variant")||e.has("icon"))&&this.__ensureDepsLoaded()}firstUpdated(){this.__ensureDepsLoaded()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"assist":await Promise.resolve().then(()=>qn);break;case"filter":await Promise.resolve().then(()=>Kn);break}this.__loadedVariants.add(this.variant)}!this._insideChipSet&&!this.__chipSetLoaded&&(await Promise.resolve().then(()=>Un),this.__chipSetLoaded=!0),this.icon&&!this.__iconLoaded&&(await Promise.resolve().then(()=>Z),this.__iconLoaded=!0)}get _insideChipSet(){return!!this.closest("md-chip-set")}render(){const e=this._renderChip();return this._insideChipSet?e:c`<md-chip-set>${e}</md-chip-set>`}_renderChip(){const e=this.icon?c`<md-icon slot="icon">${this.icon}</md-icon>`:null;switch(this.variant){case"assist":{const t=this.target==="_blank"?"noopener noreferrer":void 0;return c`
3772
+ `,bt([l({type:Boolean,reflect:!0})],a.ScbCheckbox.prototype,"disabled",2),bt([l({type:Boolean,reflect:!0})],a.ScbCheckbox.prototype,"indeterminate",2),bt([l({type:Boolean,reflect:!0})],a.ScbCheckbox.prototype,"checked",2),bt([l({type:String})],a.ScbCheckbox.prototype,"label",2),bt([l({type:String,attribute:"supporting-text"})],a.ScbCheckbox.prototype,"supportingText",2),bt([l({type:String,reflect:!0,attribute:"aria-label"})],a.ScbCheckbox.prototype,"ariaLabel",2),a.ScbCheckbox=bt([g("scb-checkbox")],a.ScbCheckbox);const bs=Object.freeze(Object.defineProperty({__proto__:null,get ScbCheckbox(){return a.ScbCheckbox}},Symbol.toStringTag,{value:"Module"}));var Ed=Object.defineProperty,Ad=Object.getOwnPropertyDescriptor,Ie=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ad(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ed(e,t,r),r};a.ScbChip=class extends y{constructor(){super(...arguments),this.variant="assist",this.label="",this.icon="",this.disabled=!1,this.elevated=!1,this.removable=!1,this.selected=!1,this.href="",this.target="",this.__loadedVariants=new Set,this.__chipSetLoaded=!1,this.__iconLoaded=!1}updated(e){super.updated(e),(e.has("variant")||e.has("icon"))&&this.__ensureDepsLoaded()}firstUpdated(){this.__ensureDepsLoaded()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"assist":await Promise.resolve().then(()=>qn);break;case"filter":await Promise.resolve().then(()=>Kn);break}this.__loadedVariants.add(this.variant)}!this._insideChipSet&&!this.__chipSetLoaded&&(await Promise.resolve().then(()=>Un),this.__chipSetLoaded=!0),this.icon&&!this.__iconLoaded&&(await Promise.resolve().then(()=>Z),this.__iconLoaded=!0)}get _insideChipSet(){return!!this.closest("md-chip-set")}render(){const e=this._renderChip();return this._insideChipSet?e:c`<md-chip-set>${e}</md-chip-set>`}_renderChip(){const e=this.icon?c`<md-icon slot="icon">${this.icon}</md-icon>`:null;switch(this.variant){case"assist":{const t=this.target==="_blank"?"noopener noreferrer":void 0;return c`
3751
3773
  <md-assist-chip
3752
3774
  label=${this.label}
3753
3775
  ?disabled=${this.disabled}
@@ -3788,7 +3810,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
3788
3810
  color: var(--md-sys-color-on-surface);
3789
3811
  font-size: var(--md-sys-typescale-body-large-size);
3790
3812
  }
3791
- `,ze([l({type:String,reflect:!0})],a.ScbChip.prototype,"variant",2),ze([l({type:String})],a.ScbChip.prototype,"label",2),ze([l({type:String})],a.ScbChip.prototype,"icon",2),ze([l({type:Boolean,reflect:!0})],a.ScbChip.prototype,"disabled",2),ze([l({type:Boolean,reflect:!0})],a.ScbChip.prototype,"elevated",2),ze([l({type:Boolean,reflect:!0})],a.ScbChip.prototype,"removable",2),ze([l({type:Boolean,reflect:!0})],a.ScbChip.prototype,"selected",2),ze([l({type:String})],a.ScbChip.prototype,"href",2),ze([l({type:String})],a.ScbChip.prototype,"target",2),a.ScbChip=ze([g("scb-chip")],a.ScbChip);const Id=Object.freeze(Object.defineProperty({__proto__:null,get ScbChip(){return a.ScbChip}},Symbol.toStringTag,{value:"Module"}));var zd=Object.defineProperty,Td=Object.getOwnPropertyDescriptor,j=(o,e,t,i)=>{for(var r=i>1?void 0:i?Td(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&zd(e,t,r),r};a.ScbDialog=class extends y{constructor(){super(...arguments),this.open=!1,this.inSb=!1,this.scrimClose=!0,this.variant="basic",this.label="",this.icon="",this.supportingText="",this.okButton="OK",this.cancelButton="Avbryt",this.deleteButton="Delete",this.confirmButton="Ta bort",this.denyButton="Avbryt",this.resetButton="Återställ",this.submitButton="Spara",this.formId="",this.formAction="",this.formMethod="",this.__lastTriggerEl=null,this.__slotDeps={"SCB-TEXTFIELD":()=>Promise.resolve().then(()=>yp),"SCB-CHECKBOX":()=>Promise.resolve().then(()=>bs),"SCB-RADIO-BUTTON":()=>Promise.resolve().then(()=>jh),"SCB-SWITCH":()=>Promise.resolve().then(()=>Ls),"SCB-CHIP":()=>Promise.resolve().then(()=>Id)},this.__onDocumentClick=e=>{this.__getActionFromEvent(e)==="toggle"&&(this.__setOpen(!this.open),e.stopPropagation())},this.__onDocumentKeydown=e=>{this.open&&e.key==="Escape"&&(this.__fire("esc"),this.__setOpen(!1))},this.__onScrimClick=()=>{this.scrimClose&&(this.__fire("scrim"),this.__setOpen(!1))},this.__onOk=()=>{this.__fire("ok"),this.__setOpen(!1)},this.__onCancel=()=>{this.__fire("cancel"),this.__setOpen(!1)},this.__onConfirm=()=>{this.__fire("confirm"),this.__setOpen(!1)},this.__onDeny=()=>{this.__fire("deny"),this.__setOpen(!1)},this.__onReset=()=>{var t,i,r,s;(i=(t=this.shadowRoot)==null?void 0:t.querySelector("form"))==null||i.reset(),(((s=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:s.assignedElements({flatten:!0}))??[]).forEach(n=>{const h=n.tagName;h==="SCB-TEXTFIELD"&&(n.value=""),h==="SCB-CHECKBOX"&&(n.checked=!1),h==="SCB-RADIO-BUTTON"&&(n.checked=!1),h==="SCB-SWITCH"&&(n.selected=!1),h==="SCB-CHIP"&&(n.selected=!1)}),this.__fire("reset")},this.__onSubmit=()=>{var e,t;(t=(e=this.shadowRoot)==null?void 0:e.querySelector("form"))==null||t.requestSubmit(),this.__fire("submit"),this.__setOpen(!1)},this.__onKeydownTrap=e=>{if(!this.open||e.key!=="Tab")return;const t=Array.from(this.shadowRoot.querySelectorAll('button,[href],input,select,textarea,[tabindex]:not([tabindex="-1"])')).filter(s=>!s.hasAttribute("disabled"));if(!t.length)return;const i=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===i?(r.focus(),e.preventDefault()):!e.shiftKey&&document.activeElement===r&&(i.focus(),e.preventDefault())}}async firstUpdated(){await Promise.resolve().then(()=>Fc),await Promise.resolve().then(()=>ns),this.icon&&await Promise.resolve().then(()=>Z),await this.__ensureSlottedDeps()}async __ensureSlottedDeps(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!e)return;const t=async r=>{const s=new Set(r.map(n=>n.tagName));for(const n of s){const h=this.__slotDeps[n];h&&await h()}};await t(e.assignedElements({flatten:!0})),e.addEventListener("slotchange",async()=>t(e.assignedElements({flatten:!0})))}__getActionFromEvent(e){if(!this.id)return null;for(const t of e.composedPath())if(t instanceof Element){if(t.getAttribute("data-dialog-toggle")===this.id)return this.__lastTriggerEl=t,"toggle";if(t.getAttribute("aria-controls")===this.id)return this.__lastTriggerEl=t,"toggle"}return null}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.__onDocumentClick,!1),document.addEventListener("keydown",this.__onDocumentKeydown,!0),this.addEventListener("keydown",this.__onKeydownTrap)}disconnectedCallback(){document.removeEventListener("click",this.__onDocumentClick,!1),document.removeEventListener("keydown",this.__onDocumentKeydown,!0),this.removeEventListener("keydown",this.__onKeydownTrap),super.disconnectedCallback()}updated(e){var t,i;if(e.has("open")){const r=e.get("open");this.__updateTriggersExpanded(),this.open&&!r?this.updateComplete.then(()=>{var s,n,h;(h=(n=(s=this.shadowRoot)==null?void 0:s.querySelector('button,[href],input,select,textarea,[tabindex]:not([tabindex="-1"])'))==null?void 0:n.focus)==null||h.call(n)}):!this.open&&r&&((i=(t=this.__lastTriggerEl)==null?void 0:t.focus)==null||i.call(t)),this.__toggleScrollLock(this.open)}e.has("icon")&&this.icon&&Promise.resolve().then(()=>Z)}__updateTriggersExpanded(){this.id&&document.querySelectorAll(`[aria-controls="${this.id}"], [data-dialog-toggle="${this.id}"]`).forEach(e=>{e.hasAttribute("aria-controls")&&e.setAttribute("aria-expanded",String(this.open))})}__toggleScrollLock(e){if(this.inSb)return;const t=document.documentElement;t.style.overflow=e?"hidden":""}__setOpen(e){this.open=e,this.__fire(e?"open":"close")}__fire(e,t){this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0}))}__slotIsEmpty(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");return e?e.assignedElements({flatten:!0}).length===0:!0}renderHeader(e){const t=this.variant==="form"||this.variant==="floating";return c`
3813
+ `,Ie([l({type:String,reflect:!0})],a.ScbChip.prototype,"variant",2),Ie([l({type:String})],a.ScbChip.prototype,"label",2),Ie([l({type:String})],a.ScbChip.prototype,"icon",2),Ie([l({type:Boolean,reflect:!0})],a.ScbChip.prototype,"disabled",2),Ie([l({type:Boolean,reflect:!0})],a.ScbChip.prototype,"elevated",2),Ie([l({type:Boolean,reflect:!0})],a.ScbChip.prototype,"removable",2),Ie([l({type:Boolean,reflect:!0})],a.ScbChip.prototype,"selected",2),Ie([l({type:String})],a.ScbChip.prototype,"href",2),Ie([l({type:String})],a.ScbChip.prototype,"target",2),a.ScbChip=Ie([g("scb-chip")],a.ScbChip);const Td=Object.freeze(Object.defineProperty({__proto__:null,get ScbChip(){return a.ScbChip}},Symbol.toStringTag,{value:"Module"}));var Id=Object.defineProperty,zd=Object.getOwnPropertyDescriptor,j=(o,e,t,i)=>{for(var r=i>1?void 0:i?zd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Id(e,t,r),r};a.ScbDialog=class extends y{constructor(){super(...arguments),this.open=!1,this.inSb=!1,this.scrimClose=!0,this.variant="basic",this.label="",this.icon="",this.supportingText="",this.okButton="OK",this.cancelButton="Avbryt",this.deleteButton="Delete",this.confirmButton="Ta bort",this.denyButton="Avbryt",this.resetButton="Återställ",this.submitButton="Spara",this.formId="",this.formAction="",this.formMethod="",this.__lastTriggerEl=null,this.__slotDeps={"SCB-TEXTFIELD":()=>Promise.resolve().then(()=>yp),"SCB-CHECKBOX":()=>Promise.resolve().then(()=>bs),"SCB-RADIO-BUTTON":()=>Promise.resolve().then(()=>jh),"SCB-SWITCH":()=>Promise.resolve().then(()=>Ls),"SCB-CHIP":()=>Promise.resolve().then(()=>Td)},this.__onDocumentClick=e=>{this.__getActionFromEvent(e)==="toggle"&&(this.__setOpen(!this.open),e.stopPropagation())},this.__onDocumentKeydown=e=>{this.open&&e.key==="Escape"&&(this.__fire("esc"),this.__setOpen(!1))},this.__onScrimClick=()=>{this.scrimClose&&(this.__fire("scrim"),this.__setOpen(!1))},this.__onOk=()=>{this.__fire("ok"),this.__setOpen(!1)},this.__onCancel=()=>{this.__fire("cancel"),this.__setOpen(!1)},this.__onConfirm=()=>{this.__fire("confirm"),this.__setOpen(!1)},this.__onDeny=()=>{this.__fire("deny"),this.__setOpen(!1)},this.__onReset=()=>{var t,i,r,s;(i=(t=this.shadowRoot)==null?void 0:t.querySelector("form"))==null||i.reset(),(((s=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"))==null?void 0:s.assignedElements({flatten:!0}))??[]).forEach(n=>{const h=n.tagName;h==="SCB-TEXTFIELD"&&(n.value=""),h==="SCB-CHECKBOX"&&(n.checked=!1),h==="SCB-RADIO-BUTTON"&&(n.checked=!1),h==="SCB-SWITCH"&&(n.selected=!1),h==="SCB-CHIP"&&(n.selected=!1)}),this.__fire("reset")},this.__onSubmit=()=>{var e,t;(t=(e=this.shadowRoot)==null?void 0:e.querySelector("form"))==null||t.requestSubmit(),this.__fire("submit"),this.__setOpen(!1)},this.__onKeydownTrap=e=>{if(!this.open||e.key!=="Tab")return;const t=Array.from(this.shadowRoot.querySelectorAll('button,[href],input,select,textarea,[tabindex]:not([tabindex="-1"])')).filter(s=>!s.hasAttribute("disabled"));if(!t.length)return;const i=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===i?(r.focus(),e.preventDefault()):!e.shiftKey&&document.activeElement===r&&(i.focus(),e.preventDefault())}}async firstUpdated(){await Promise.resolve().then(()=>Fc),await Promise.resolve().then(()=>ns),this.icon&&await Promise.resolve().then(()=>Z),await this.__ensureSlottedDeps()}async __ensureSlottedDeps(){var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!e)return;const t=async r=>{const s=new Set(r.map(n=>n.tagName));for(const n of s){const h=this.__slotDeps[n];h&&await h()}};await t(e.assignedElements({flatten:!0})),e.addEventListener("slotchange",async()=>t(e.assignedElements({flatten:!0})))}__getActionFromEvent(e){if(!this.id)return null;for(const t of e.composedPath())if(t instanceof Element){if(t.getAttribute("data-dialog-toggle")===this.id)return this.__lastTriggerEl=t,"toggle";if(t.getAttribute("aria-controls")===this.id)return this.__lastTriggerEl=t,"toggle"}return null}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.__onDocumentClick,!1),document.addEventListener("keydown",this.__onDocumentKeydown,!0),this.addEventListener("keydown",this.__onKeydownTrap)}disconnectedCallback(){document.removeEventListener("click",this.__onDocumentClick,!1),document.removeEventListener("keydown",this.__onDocumentKeydown,!0),this.removeEventListener("keydown",this.__onKeydownTrap),super.disconnectedCallback()}updated(e){var t,i;if(e.has("open")){const r=e.get("open");this.__updateTriggersExpanded(),this.open&&!r?this.updateComplete.then(()=>{var s,n,h;(h=(n=(s=this.shadowRoot)==null?void 0:s.querySelector('button,[href],input,select,textarea,[tabindex]:not([tabindex="-1"])'))==null?void 0:n.focus)==null||h.call(n)}):!this.open&&r&&((i=(t=this.__lastTriggerEl)==null?void 0:t.focus)==null||i.call(t)),this.__toggleScrollLock(this.open)}e.has("icon")&&this.icon&&Promise.resolve().then(()=>Z)}__updateTriggersExpanded(){this.id&&document.querySelectorAll(`[aria-controls="${this.id}"], [data-dialog-toggle="${this.id}"]`).forEach(e=>{e.hasAttribute("aria-controls")&&e.setAttribute("aria-expanded",String(this.open))})}__toggleScrollLock(e){if(this.inSb)return;const t=document.documentElement;t.style.overflow=e?"hidden":""}__setOpen(e){this.open=e,this.__fire(e?"open":"close")}__fire(e,t){this.dispatchEvent(new CustomEvent(e,{detail:t,bubbles:!0,composed:!0}))}__slotIsEmpty(){var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");return e?e.assignedElements({flatten:!0}).length===0:!0}renderHeader(e){const t=this.variant==="form"||this.variant==="floating";return c`
3792
3814
  <div class="header">
3793
3815
  <div class="title">
3794
3816
  ${this.icon?c`<md-icon class="dialog-icon">${this.icon}</md-icon>`:u}
@@ -3990,7 +4012,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
3990
4012
  }
3991
4013
  :host([overlay][direction="vertical"][anchor="end"]) { right: calc(var(--scb-divider-gap) / -2); }
3992
4014
  :host([overlay][direction="vertical"][anchor="start"]){ left: calc(var(--scb-divider-gap) / -2); }
3993
- `,Ot([l({type:String,reflect:!0})],a.ScbDivider.prototype,"variant",2),Ot([l({type:String,reflect:!0})],a.ScbDivider.prototype,"direction",2),Ot([l({type:String,reflect:!0})],a.ScbDivider.prototype,"inset",2),Ot([l({type:Boolean,reflect:!0})],a.ScbDivider.prototype,"overlay",2),Ot([l({type:String,reflect:!0})],a.ScbDivider.prototype,"anchor",2),a.ScbDivider=Ot([g("scb-divider")],a.ScbDivider);var Pd=Object.defineProperty,Dd=Object.getOwnPropertyDescriptor,mt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Dd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Pd(e,t,r),r};a.ScbDrawerItem=class extends y{constructor(){super(...arguments),this.label="",this.selected=!1,this.leadingIcon="",this.itemHref="",this.hasSlotContent=!1,this.expanded=!1,this.__submenuId=`sub-${Math.random().toString(36).slice(2)}`,this.__focusId=`f-${Math.random().toString(36).slice(2)}`,this._toggleExpand=e=>{e&&e.stopPropagation(),this.hasSlotContent&&this.__setExpanded(!this.expanded)},this._onButtonClick=e=>{e.stopPropagation(),this._dispatchSelect(),this._toggleExpand()},this._onLinkClick=()=>{this._dispatchSelect()},this._onKeyDown=e=>{var r,s,n,h,p,v,f,b,_;const t=Array.from(((r=this.parentElement)==null?void 0:r.querySelectorAll("scb-drawer-item"))||[]),i=t.indexOf(this);switch(e.key){case"ArrowDown":{e.preventDefault(),(n=(s=(t[i+1]||t[0]).shadowRoot)==null?void 0:s.querySelector(".scb-drawer-label-text"))==null||n.focus();break}case"ArrowUp":{e.preventDefault(),(p=(h=(t[i-1]||t[t.length-1]).shadowRoot)==null?void 0:h.querySelector(".scb-drawer-label-text"))==null||p.focus();break}case"Home":{e.preventDefault(),(f=(v=t[0].shadowRoot)==null?void 0:v.querySelector(".scb-drawer-label-text"))==null||f.focus();break}case"End":{e.preventDefault(),(_=(b=t[t.length-1].shadowRoot)==null?void 0:b.querySelector(".scb-drawer-label-text"))==null||_.focus();break}}}}get __submenuEl(){return this.renderRoot.querySelector(`#${this.__submenuId}`)}async __ensureDepsLoaded(){a.ScbDrawerItem.__rippleLoaded||(await Promise.resolve().then(()=>Ii),a.ScbDrawerItem.__rippleLoaded=!0),a.ScbDrawerItem.__focusRingLoaded||(await Promise.resolve().then(()=>dn),a.ScbDrawerItem.__focusRingLoaded=!0),this.leadingIcon&&!a.ScbDrawerItem.__iconLoaded&&(await Promise.resolve().then(()=>Z),a.ScbDrawerItem.__iconLoaded=!0),this.hasSlotContent&&!a.ScbDrawerItem.__iconButtonLoaded&&(await Promise.resolve().then(()=>ns),a.ScbDrawerItem.__iconButtonLoaded=!0)}_onSlotChange(e){const i=e.target.assignedElements({flatten:!0});this.hasSlotContent=i.length>0&&i.every(r=>r.tagName==="SCB-SUB-DRAWER")}__setExpanded(e){this.hasSlotContent&&(this.expanded=e,this.dispatchEvent(new CustomEvent("scb-drawer-expand",{bubbles:!0,composed:!0,detail:{item:this,expanded:e}})))}_dispatchSelect(){this.dispatchEvent(new CustomEvent("scb-drawer-select",{bubbles:!0,composed:!0,detail:{item:this}}))}async firstUpdated(){const e=this.renderRoot.querySelector("slot");if(e){const t=e.assignedElements({flatten:!0});this.hasSlotContent=t.length>0&&t.every(i=>i.tagName==="SCB-SUB-DRAWER")}await this.__ensureDepsLoaded()}updated(e){e.has("leadingIcon")&&this.leadingIcon&&this.__ensureDepsLoaded(),e.has("hasSlotContent")&&this.hasSlotContent&&this.__ensureDepsLoaded(),e.has("expanded")&&this.__applyInert()}__applyInert(){const e=this.__submenuEl;e&&(this.expanded?(e.removeAttribute("inert"),e.setAttribute("aria-hidden","false")):(e.setAttribute("inert",""),e.setAttribute("aria-hidden","true")))}render(){const e=!!this.leadingIcon,t=!!this.itemHref,i=this.hasSlotContent;return c`
4015
+ `,Ot([l({type:String,reflect:!0})],a.ScbDivider.prototype,"variant",2),Ot([l({type:String,reflect:!0})],a.ScbDivider.prototype,"direction",2),Ot([l({type:String,reflect:!0})],a.ScbDivider.prototype,"inset",2),Ot([l({type:Boolean,reflect:!0})],a.ScbDivider.prototype,"overlay",2),Ot([l({type:String,reflect:!0})],a.ScbDivider.prototype,"anchor",2),a.ScbDivider=Ot([g("scb-divider")],a.ScbDivider);var Pd=Object.defineProperty,Dd=Object.getOwnPropertyDescriptor,mt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Dd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Pd(e,t,r),r};a.ScbDrawerItem=class extends y{constructor(){super(...arguments),this.label="",this.selected=!1,this.leadingIcon="",this.itemHref="",this.hasSlotContent=!1,this.expanded=!1,this.__submenuId=`sub-${Math.random().toString(36).slice(2)}`,this.__focusId=`f-${Math.random().toString(36).slice(2)}`,this._toggleExpand=e=>{e&&e.stopPropagation(),this.hasSlotContent&&this.__setExpanded(!this.expanded)},this._onButtonClick=e=>{e.stopPropagation(),this._dispatchSelect(),this._toggleExpand()},this._onLinkClick=()=>{this._dispatchSelect()},this._onKeyDown=e=>{var r,s,n,h,p,v,f,b,_;const t=Array.from(((r=this.parentElement)==null?void 0:r.querySelectorAll("scb-drawer-item"))||[]),i=t.indexOf(this);switch(e.key){case"ArrowDown":{e.preventDefault(),(n=(s=(t[i+1]||t[0]).shadowRoot)==null?void 0:s.querySelector(".scb-drawer-label-text"))==null||n.focus();break}case"ArrowUp":{e.preventDefault(),(p=(h=(t[i-1]||t[t.length-1]).shadowRoot)==null?void 0:h.querySelector(".scb-drawer-label-text"))==null||p.focus();break}case"Home":{e.preventDefault(),(f=(v=t[0].shadowRoot)==null?void 0:v.querySelector(".scb-drawer-label-text"))==null||f.focus();break}case"End":{e.preventDefault(),(_=(b=t[t.length-1].shadowRoot)==null?void 0:b.querySelector(".scb-drawer-label-text"))==null||_.focus();break}}}}get __submenuEl(){return this.renderRoot.querySelector(`#${this.__submenuId}`)}async __ensureDepsLoaded(){a.ScbDrawerItem.__rippleLoaded||(await Promise.resolve().then(()=>Ti),a.ScbDrawerItem.__rippleLoaded=!0),a.ScbDrawerItem.__focusRingLoaded||(await Promise.resolve().then(()=>dn),a.ScbDrawerItem.__focusRingLoaded=!0),this.leadingIcon&&!a.ScbDrawerItem.__iconLoaded&&(await Promise.resolve().then(()=>Z),a.ScbDrawerItem.__iconLoaded=!0),this.hasSlotContent&&!a.ScbDrawerItem.__iconButtonLoaded&&(await Promise.resolve().then(()=>ns),a.ScbDrawerItem.__iconButtonLoaded=!0)}_onSlotChange(e){const i=e.target.assignedElements({flatten:!0});this.hasSlotContent=i.length>0&&i.every(r=>r.tagName==="SCB-SUB-DRAWER")}__setExpanded(e){this.hasSlotContent&&(this.expanded=e,this.dispatchEvent(new CustomEvent("scb-drawer-expand",{bubbles:!0,composed:!0,detail:{item:this,expanded:e}})))}_dispatchSelect(){this.dispatchEvent(new CustomEvent("scb-drawer-select",{bubbles:!0,composed:!0,detail:{item:this}}))}async firstUpdated(){const e=this.renderRoot.querySelector("slot");if(e){const t=e.assignedElements({flatten:!0});this.hasSlotContent=t.length>0&&t.every(i=>i.tagName==="SCB-SUB-DRAWER")}await this.__ensureDepsLoaded()}updated(e){e.has("leadingIcon")&&this.leadingIcon&&this.__ensureDepsLoaded(),e.has("hasSlotContent")&&this.hasSlotContent&&this.__ensureDepsLoaded(),e.has("expanded")&&this.__applyInert()}__applyInert(){const e=this.__submenuEl;e&&(this.expanded?(e.removeAttribute("inert"),e.setAttribute("aria-hidden","false")):(e.setAttribute("inert",""),e.setAttribute("aria-hidden","true")))}render(){const e=!!this.leadingIcon,t=!!this.itemHref,i=this.hasSlotContent;return c`
3994
4016
  <div class="scb-drawer-item">
3995
4017
  <div class="scb-drawer-item-label" ?selected=${this.selected}>
3996
4018
  ${t?c`
@@ -4480,7 +4502,49 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
4480
4502
  }
4481
4503
  `,re([l({type:String})],a.ScbFactCard.prototype,"variant",2),re([l({type:String,attribute:"title"})],a.ScbFactCard.prototype,"title",2),re([l({type:String,attribute:"subtitle"})],a.ScbFactCard.prototype,"subtitle",2),re([l({type:String,attribute:"supporting-text"})],a.ScbFactCard.prototype,"supportingText",2),re([l({type:String})],a.ScbFactCard.prototype,"icon",2),re([l({type:Boolean,attribute:"show-close-button"})],a.ScbFactCard.prototype,"showCloseButton",2),re([l({type:Boolean,reflect:!0})],a.ScbFactCard.prototype,"open",2),re([l({type:String,reflect:!0})],a.ScbFactCard.prototype,"sizing",2),re([l({type:String,reflect:!0})],a.ScbFactCard.prototype,"width",2),re([l({type:String,reflect:!0,attribute:"max-width"})],a.ScbFactCard.prototype,"maxWidth",2),re([l({type:String,reflect:!0})],a.ScbFactCard.prototype,"height",2),re([l({type:String,reflect:!0,attribute:"max-height"})],a.ScbFactCard.prototype,"maxHeight",2),a.ScbFactCard=re([g("scb-fact-card")],a.ScbFactCard);var Xd=Object.defineProperty,Zd=Object.getOwnPropertyDescriptor,gs=(o,e,t,i)=>{for(var r=i>1?void 0:i?Zd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Xd(e,t,r),r};a.ScbFooterSection=class extends y{constructor(){super(...arguments),this.title=""}render(){return c`<slot></slot>`}},a.ScbFooterSection.styles=m`
4482
4504
  :host { display: none; }
4483
- `,gs([l({type:String,reflect:!0})],a.ScbFooterSection.prototype,"title",2),a.ScbFooterSection=gs([g("scb-footer-section")],a.ScbFooterSection);var Jd=Object.defineProperty,Qd=Object.getOwnPropertyDescriptor,ys=o=>{throw TypeError(o)},oe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Qd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Jd(e,t,r),r},eh=(o,e,t)=>e.has(o)||ys("Cannot "+t),th=(o,e,t)=>e.has(o)?ys("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Lt=(o,e,t)=>(eh(o,e,"access private method"),t),Qe,Ro,hi;a.ScbGrid=class extends y{constructor(){super(...arguments),th(this,Qe),this.colsCompact=4,this.colsMedium=8,this.colsExpanded=12,this.gap="",this.rowGap="",this.columnGap="",this.alignItems="stretch",this.justifyItems="stretch",this.paddingInline="",this.paddingBlock="",this.maxWidth="",this.autoRows=""}firstUpdated(){Lt(this,Qe,Ro).call(this)}updated(){Lt(this,Qe,Ro).call(this)}mapSpacingToken(e){if(!e)return;const t=String(e).trim();return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}parseGapShorthand(e){if(!e)return{};const t=e.trim().split(/\s+/);if(t.length===1){const i=this.mapSpacingToken(t[0]);return{row:i,col:i}}return{row:this.mapSpacingToken(t[0]),col:this.mapSpacingToken(t[1])}}render(){return c`<div class="grid"><slot></slot></div>`}},Qe=new WeakSet,Ro=function(){this.style.setProperty("--scb-grid-cols-compact",String(this.colsCompact)),this.style.setProperty("--scb-grid-cols-medium",String(this.colsMedium)),this.style.setProperty("--scb-grid-cols-expanded",String(this.colsExpanded));const o="var(--spacing-7, 24px)",e=this.parseGapShorthand(this.gap),t=this.mapSpacingToken(this.rowGap)??e.row??o,i=this.mapSpacingToken(this.columnGap)??e.col??o;this.style.setProperty("--scb-grid-row-gap",t),this.style.setProperty("--scb-grid-column-gap",i),this.style.setProperty("--scb-grid-gap",`${t} ${i}`),this.style.setProperty("--scb-grid-align-items",this.alignItems),this.style.setProperty("--scb-grid-justify-items",this.justifyItems);const r=this.mapSpacingToken(this.paddingInline),s=this.mapSpacingToken(this.paddingBlock);Lt(this,Qe,hi).call(this,"--scb-grid-max-width",this.maxWidth),Lt(this,Qe,hi).call(this,"--scb-grid-padding-inline",r??""),Lt(this,Qe,hi).call(this,"--scb-grid-padding-block",s??""),Lt(this,Qe,hi).call(this,"--scb-grid-auto-rows",this.autoRows)},hi=function(o,e){e?this.style.setProperty(o,e):this.style.removeProperty(o)},a.ScbGrid.styles=m`
4505
+ `,gs([l({type:String,reflect:!0})],a.ScbFooterSection.prototype,"title",2),a.ScbFooterSection=gs([g("scb-footer-section")],a.ScbFooterSection);var Jd=Object.defineProperty,Qd=Object.getOwnPropertyDescriptor,ys=o=>{throw TypeError(o)},pe=(o,e,t,i)=>{for(var r=i>1?void 0:i?Qd(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Jd(e,t,r),r},eh=(o,e,t)=>e.has(o)||ys("Cannot "+t),th=(o,e,t)=>e.has(o)?ys("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),ze=(o,e,t)=>(eh(o,e,"access private method"),t),ue,Ro,Fe;a.ScbGridItem=class extends y{constructor(){super(...arguments),th(this,ue),this.fit=!1}firstUpdated(){ze(this,ue,Ro).call(this)}updated(){ze(this,ue,Ro).call(this)}render(){return c`<slot></slot>`}},ue=new WeakSet,Ro=function(){ze(this,ue,Fe).call(this,"--col-span",this.hasAttribute("col-span")?String(this.colSpan):null),ze(this,ue,Fe).call(this,"--col-span-compact",this.hasAttribute("col-span-compact")?String(this.colSpanCompact):null),ze(this,ue,Fe).call(this,"--col-span-medium",this.hasAttribute("col-span-medium")?String(this.colSpanMedium):null),ze(this,ue,Fe).call(this,"--col-span-expanded",this.hasAttribute("col-span-expanded")?String(this.colSpanExpanded):null),ze(this,ue,Fe).call(this,"--row-rule",this.hasAttribute("row-span")?`span ${this.rowSpan}`:null),ze(this,ue,Fe).call(this,"--row-rule-compact",this.hasAttribute("row-span-compact")?`span ${this.rowSpanCompact}`:null),ze(this,ue,Fe).call(this,"--row-rule-medium",this.hasAttribute("row-span-medium")?`span ${this.rowSpanMedium}`:null),ze(this,ue,Fe).call(this,"--row-rule-expanded",this.hasAttribute("row-span-expanded")?`span ${this.rowSpanExpanded}`:null),this.align?(this.style.setProperty("--scb-grid-item-align",this.align),this.style.setProperty("align-self",this.align)):(this.style.removeProperty("--scb-grid-item-align"),this.style.removeProperty("align-self")),this.justify?(this.style.setProperty("--scb-grid-item-justify",this.justify),this.style.setProperty("justify-self",this.justify)):(this.style.removeProperty("--scb-grid-item-justify"),this.style.removeProperty("justify-self"))},Fe=function(o,e){e===null||e===""?this.style.removeProperty(o):this.style.setProperty(o,e)},a.ScbGridItem.styles=m`
4506
+ :host {
4507
+ box-sizing: border-box;
4508
+ display: block;
4509
+ align-self: var(--scb-grid-item-align, auto);
4510
+ justify-self: var(--scb-grid-item-justify, auto);
4511
+ block-size: auto;
4512
+ }
4513
+ :host([fit]) { block-size: 100%; }
4514
+ :host([fit]) ::slotted(*) { block-size: 100%; }
4515
+ `,pe([l({type:Number,attribute:"col-span",reflect:!0})],a.ScbGridItem.prototype,"colSpan",2),pe([l({type:Number,attribute:"col-span-compact",reflect:!0})],a.ScbGridItem.prototype,"colSpanCompact",2),pe([l({type:Number,attribute:"col-span-medium",reflect:!0})],a.ScbGridItem.prototype,"colSpanMedium",2),pe([l({type:Number,attribute:"col-span-expanded",reflect:!0})],a.ScbGridItem.prototype,"colSpanExpanded",2),pe([l({type:Number,attribute:"row-span",reflect:!0})],a.ScbGridItem.prototype,"rowSpan",2),pe([l({type:Number,attribute:"row-span-compact",reflect:!0})],a.ScbGridItem.prototype,"rowSpanCompact",2),pe([l({type:Number,attribute:"row-span-medium",reflect:!0})],a.ScbGridItem.prototype,"rowSpanMedium",2),pe([l({type:Number,attribute:"row-span-expanded",reflect:!0})],a.ScbGridItem.prototype,"rowSpanExpanded",2),pe([l({type:String,reflect:!0})],a.ScbGridItem.prototype,"align",2),pe([l({type:String,reflect:!0})],a.ScbGridItem.prototype,"justify",2),pe([l({type:Boolean,reflect:!0})],a.ScbGridItem.prototype,"fit",2),a.ScbGridItem=pe([g("scb-grid-item")],a.ScbGridItem);var ih=Object.defineProperty,rh=Object.getOwnPropertyDescriptor,_s=o=>{throw TypeError(o)},He=(o,e,t,i)=>{for(var r=i>1?void 0:i?rh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ih(e,t,r),r},oh=(o,e,t)=>e.has(o)||_s("Cannot "+t),ah=(o,e,t)=>e.has(o)?_s("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),xs=(o,e,t)=>(oh(o,e,"access private method"),t),yr,Bo;a.ScbStack=class extends y{constructor(){super(...arguments),ah(this,yr),this.direction="column",this.gap="",this.rowGap="",this.columnGap="",this.align="stretch",this.justify="start",this.wrap=!1,this.inline=!1}firstUpdated(){xs(this,yr,Bo).call(this)}updated(){xs(this,yr,Bo).call(this)}mapSpacingToken(e){if(!e)return;const t=String(e).trim();return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}parseGapShorthand(e){if(!e)return{};const t=e.trim().split(/\s+/);if(t.length===1){const i=this.mapSpacingToken(t[0]);return{row:i,col:i}}return{row:this.mapSpacingToken(t[0]),col:this.mapSpacingToken(t[1])}}render(){return c`<div class="base"><slot></slot></div>`}},yr=new WeakSet,Bo=function(){this.style.setProperty("--scb-stack-direction",this.direction);const o="var(--spacing-5, 16px)",e=this.parseGapShorthand(this.gap),t=this.mapSpacingToken(this.rowGap)??e.row??o,i=this.mapSpacingToken(this.columnGap)??e.col??o;this.style.setProperty("--scb-stack-gap",`${t}`),this.style.setProperty("--scb-stack-row-gap",t),this.style.setProperty("--scb-stack-column-gap",i);const r={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch",baseline:"baseline"},s={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly"};this.style.setProperty("--scb-stack-align",r[this.align]??"stretch"),this.style.setProperty("--scb-stack-justify",s[this.justify]??"flex-start"),this.style.setProperty("--scb-stack-wrap",this.wrap?"wrap":"nowrap")},a.ScbStack.styles=m`
4516
+ :host {
4517
+ box-sizing: border-box;
4518
+ display: block;
4519
+ width: auto;
4520
+ max-width: 100%;
4521
+ min-inline-size: 0;
4522
+ }
4523
+
4524
+ /* Inre flexlayout så att gap även fungerar för slottat innehåll */
4525
+ .base {
4526
+ display: var(--scb-stack-display, flex);
4527
+ flex-direction: var(--scb-stack-direction, column);
4528
+
4529
+ /* Longhands med fallback till --scb-stack-gap och token-default */
4530
+ row-gap: var(--scb-stack-row-gap, var(--scb-stack-gap, var(--spacing-5, 16px)));
4531
+ column-gap: var(--scb-stack-column-gap, var(--scb-stack-gap, var(--spacing-5, 16px)));
4532
+
4533
+ align-items: var(--scb-stack-align, stretch);
4534
+ justify-content: var(--scb-stack-justify, flex-start);
4535
+ flex-wrap: var(--scb-stack-wrap, nowrap);
4536
+ }
4537
+
4538
+ /* Gör att slotens tilldelade noder blir barn till .base */
4539
+ slot { display: contents; }
4540
+
4541
+ :host([inline]) .base { --scb-stack-display: inline-flex; }
4542
+
4543
+ /* Barnens flex-beteende i row-läge kan styras via variabeln och defaultar till att inte ta full bredd */
4544
+ :host([direction="row"]) ::slotted(*) {
4545
+ flex: var(--scb-stack-item-flex, 0 0 auto);
4546
+ }
4547
+ `,He([l({type:String,reflect:!0})],a.ScbStack.prototype,"direction",2),He([l({type:String,reflect:!0})],a.ScbStack.prototype,"gap",2),He([l({type:String,attribute:"row-gap",reflect:!0})],a.ScbStack.prototype,"rowGap",2),He([l({type:String,attribute:"column-gap",reflect:!0})],a.ScbStack.prototype,"columnGap",2),He([l({type:String,reflect:!0})],a.ScbStack.prototype,"align",2),He([l({type:String,reflect:!0})],a.ScbStack.prototype,"justify",2),He([l({type:Boolean,reflect:!0})],a.ScbStack.prototype,"wrap",2),He([l({type:Boolean,reflect:!0})],a.ScbStack.prototype,"inline",2),a.ScbStack=He([g("scb-stack")],a.ScbStack);var sh=Object.defineProperty,nh=Object.getOwnPropertyDescriptor,ws=o=>{throw TypeError(o)},oe=(o,e,t,i)=>{for(var r=i>1?void 0:i?nh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&sh(e,t,r),r},lh=(o,e,t)=>e.has(o)||ws("Cannot "+t),ch=(o,e,t)=>e.has(o)?ws("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Lt=(o,e,t)=>(lh(o,e,"access private method"),t),Qe,Mo,hi;a.ScbGrid=class extends y{constructor(){super(...arguments),ch(this,Qe),this.colsCompact=4,this.colsMedium=8,this.colsExpanded=12,this.gap="",this.rowGap="",this.columnGap="",this.alignItems="stretch",this.justifyItems="stretch",this.paddingInline="",this.paddingBlock="",this.maxWidth="",this.autoRows=""}firstUpdated(){Lt(this,Qe,Mo).call(this)}updated(){Lt(this,Qe,Mo).call(this)}mapSpacingToken(e){if(!e)return;const t=String(e).trim();return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}parseGapShorthand(e){if(!e)return{};const t=e.trim().split(/\s+/);if(t.length===1){const i=this.mapSpacingToken(t[0]);return{row:i,col:i}}return{row:this.mapSpacingToken(t[0]),col:this.mapSpacingToken(t[1])}}render(){return c`<div class="grid"><slot></slot></div>`}},Qe=new WeakSet,Mo=function(){this.style.setProperty("--scb-grid-cols-compact",String(this.colsCompact)),this.style.setProperty("--scb-grid-cols-medium",String(this.colsMedium)),this.style.setProperty("--scb-grid-cols-expanded",String(this.colsExpanded));const o="var(--spacing-7, 24px)",e=this.parseGapShorthand(this.gap),t=this.mapSpacingToken(this.rowGap)??e.row??o,i=this.mapSpacingToken(this.columnGap)??e.col??o;this.style.setProperty("--scb-grid-row-gap",t),this.style.setProperty("--scb-grid-column-gap",i),this.style.setProperty("--scb-grid-gap",`${t} ${i}`),this.style.setProperty("--scb-grid-align-items",this.alignItems),this.style.setProperty("--scb-grid-justify-items",this.justifyItems);const r=this.mapSpacingToken(this.paddingInline),s=this.mapSpacingToken(this.paddingBlock);Lt(this,Qe,hi).call(this,"--scb-grid-max-width",this.maxWidth),Lt(this,Qe,hi).call(this,"--scb-grid-padding-inline",r??""),Lt(this,Qe,hi).call(this,"--scb-grid-padding-block",s??""),Lt(this,Qe,hi).call(this,"--scb-grid-auto-rows",this.autoRows)},hi=function(o,e){e?this.style.setProperty(o,e):this.style.removeProperty(o)},a.ScbGrid.styles=m`
4484
4548
  :host {
4485
4549
  box-sizing: border-box;
4486
4550
  display: block;
@@ -4577,17 +4641,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
4577
4641
  }
4578
4642
  }
4579
4643
  }
4580
- `,oe([l({type:Number,attribute:"cols-compact",reflect:!0})],a.ScbGrid.prototype,"colsCompact",2),oe([l({type:Number,attribute:"cols-medium",reflect:!0})],a.ScbGrid.prototype,"colsMedium",2),oe([l({type:Number,attribute:"cols-expanded",reflect:!0})],a.ScbGrid.prototype,"colsExpanded",2),oe([l({type:String,reflect:!0})],a.ScbGrid.prototype,"gap",2),oe([l({type:String,attribute:"row-gap",reflect:!0})],a.ScbGrid.prototype,"rowGap",2),oe([l({type:String,attribute:"column-gap",reflect:!0})],a.ScbGrid.prototype,"columnGap",2),oe([l({type:String,attribute:"align-items",reflect:!0})],a.ScbGrid.prototype,"alignItems",2),oe([l({type:String,attribute:"justify-items",reflect:!0})],a.ScbGrid.prototype,"justifyItems",2),oe([l({type:String,attribute:"padding-inline",reflect:!0})],a.ScbGrid.prototype,"paddingInline",2),oe([l({type:String,attribute:"padding-block",reflect:!0})],a.ScbGrid.prototype,"paddingBlock",2),oe([l({type:String,attribute:"max-width",reflect:!0})],a.ScbGrid.prototype,"maxWidth",2),oe([l({type:String,attribute:"auto-rows",reflect:!0})],a.ScbGrid.prototype,"autoRows",2),a.ScbGrid=oe([g("scb-grid")],a.ScbGrid);var ih=Object.defineProperty,rh=Object.getOwnPropertyDescriptor,_s=o=>{throw TypeError(o)},pe=(o,e,t,i)=>{for(var r=i>1?void 0:i?rh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ih(e,t,r),r},oh=(o,e,t)=>e.has(o)||_s("Cannot "+t),ah=(o,e,t)=>e.has(o)?_s("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Te=(o,e,t)=>(oh(o,e,"access private method"),t),ue,Bo,Fe;a.ScbGridItem=class extends y{constructor(){super(...arguments),ah(this,ue),this.fit=!1}firstUpdated(){Te(this,ue,Bo).call(this)}updated(){Te(this,ue,Bo).call(this)}render(){return c`<slot></slot>`}},ue=new WeakSet,Bo=function(){Te(this,ue,Fe).call(this,"--col-span",this.hasAttribute("col-span")?String(this.colSpan):null),Te(this,ue,Fe).call(this,"--col-span-compact",this.hasAttribute("col-span-compact")?String(this.colSpanCompact):null),Te(this,ue,Fe).call(this,"--col-span-medium",this.hasAttribute("col-span-medium")?String(this.colSpanMedium):null),Te(this,ue,Fe).call(this,"--col-span-expanded",this.hasAttribute("col-span-expanded")?String(this.colSpanExpanded):null),Te(this,ue,Fe).call(this,"--row-rule",this.hasAttribute("row-span")?`span ${this.rowSpan}`:null),Te(this,ue,Fe).call(this,"--row-rule-compact",this.hasAttribute("row-span-compact")?`span ${this.rowSpanCompact}`:null),Te(this,ue,Fe).call(this,"--row-rule-medium",this.hasAttribute("row-span-medium")?`span ${this.rowSpanMedium}`:null),Te(this,ue,Fe).call(this,"--row-rule-expanded",this.hasAttribute("row-span-expanded")?`span ${this.rowSpanExpanded}`:null),this.align?(this.style.setProperty("--scb-grid-item-align",this.align),this.style.setProperty("align-self",this.align)):(this.style.removeProperty("--scb-grid-item-align"),this.style.removeProperty("align-self")),this.justify?(this.style.setProperty("--scb-grid-item-justify",this.justify),this.style.setProperty("justify-self",this.justify)):(this.style.removeProperty("--scb-grid-item-justify"),this.style.removeProperty("justify-self"))},Fe=function(o,e){e===null||e===""?this.style.removeProperty(o):this.style.setProperty(o,e)},a.ScbGridItem.styles=m`
4581
- :host {
4582
- box-sizing: border-box;
4583
- display: block;
4584
- align-self: var(--scb-grid-item-align, auto);
4585
- justify-self: var(--scb-grid-item-justify, auto);
4586
- block-size: auto;
4587
- }
4588
- :host([fit]) { block-size: 100%; }
4589
- :host([fit]) ::slotted(*) { block-size: 100%; }
4590
- `,pe([l({type:Number,attribute:"col-span",reflect:!0})],a.ScbGridItem.prototype,"colSpan",2),pe([l({type:Number,attribute:"col-span-compact",reflect:!0})],a.ScbGridItem.prototype,"colSpanCompact",2),pe([l({type:Number,attribute:"col-span-medium",reflect:!0})],a.ScbGridItem.prototype,"colSpanMedium",2),pe([l({type:Number,attribute:"col-span-expanded",reflect:!0})],a.ScbGridItem.prototype,"colSpanExpanded",2),pe([l({type:Number,attribute:"row-span",reflect:!0})],a.ScbGridItem.prototype,"rowSpan",2),pe([l({type:Number,attribute:"row-span-compact",reflect:!0})],a.ScbGridItem.prototype,"rowSpanCompact",2),pe([l({type:Number,attribute:"row-span-medium",reflect:!0})],a.ScbGridItem.prototype,"rowSpanMedium",2),pe([l({type:Number,attribute:"row-span-expanded",reflect:!0})],a.ScbGridItem.prototype,"rowSpanExpanded",2),pe([l({type:String,reflect:!0})],a.ScbGridItem.prototype,"align",2),pe([l({type:String,reflect:!0})],a.ScbGridItem.prototype,"justify",2),pe([l({type:Boolean,reflect:!0})],a.ScbGridItem.prototype,"fit",2),a.ScbGridItem=pe([g("scb-grid-item")],a.ScbGridItem);var sh=Object.defineProperty,nh=Object.getOwnPropertyDescriptor,xs=o=>{throw TypeError(o)},pi=(o,e,t,i)=>{for(var r=i>1?void 0:i?nh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&sh(e,t,r),r},Mo=(o,e,t)=>e.has(o)||xs("Cannot "+t),He=(o,e,t)=>(Mo(o,e,"read from private field"),t?t.call(o):e.get(o)),Pt=(o,e,t)=>e.has(o)?xs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),ft=(o,e,t,i)=>(Mo(o,e,"write to private field"),e.set(o,t),t),Ne=(o,e,t)=>(Mo(o,e,"access private method"),t),Dt,ui,Rt,vi,ve,ws,Fo,Ss,Ho,No,ks,$s,qo;a.ScbFooter=class extends y{constructor(){super(...arguments),Pt(this,ve),this.maxWidth="1440px",this.deferPaint=!1,this.sections=[],this.description="Statistikmyndigheten SCB förser samhället med statistik för beslutsfattande, debatt och forskning.",Pt(this,Dt,null),Pt(this,ui,""),Pt(this,Rt),Pt(this,vi,!1),Pt(this,No,8)}connectedCallback(){super.connectedCallback(),this.style.setProperty("--scb-footer-max-width",this.maxWidth),Ne(this,ve,Ho).call(this,!0),Ne(this,ve,ws).call(this)}updated(e){e.has("maxWidth")&&this.style.setProperty("--scb-footer-max-width",this.maxWidth)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=He(this,Rt))==null||e.disconnect()}render(){const e=He(this,ve,Ss);return c`
4644
+ `,oe([l({type:Number,attribute:"cols-compact",reflect:!0})],a.ScbGrid.prototype,"colsCompact",2),oe([l({type:Number,attribute:"cols-medium",reflect:!0})],a.ScbGrid.prototype,"colsMedium",2),oe([l({type:Number,attribute:"cols-expanded",reflect:!0})],a.ScbGrid.prototype,"colsExpanded",2),oe([l({type:String,reflect:!0})],a.ScbGrid.prototype,"gap",2),oe([l({type:String,attribute:"row-gap",reflect:!0})],a.ScbGrid.prototype,"rowGap",2),oe([l({type:String,attribute:"column-gap",reflect:!0})],a.ScbGrid.prototype,"columnGap",2),oe([l({type:String,attribute:"align-items",reflect:!0})],a.ScbGrid.prototype,"alignItems",2),oe([l({type:String,attribute:"justify-items",reflect:!0})],a.ScbGrid.prototype,"justifyItems",2),oe([l({type:String,attribute:"padding-inline",reflect:!0})],a.ScbGrid.prototype,"paddingInline",2),oe([l({type:String,attribute:"padding-block",reflect:!0})],a.ScbGrid.prototype,"paddingBlock",2),oe([l({type:String,attribute:"max-width",reflect:!0})],a.ScbGrid.prototype,"maxWidth",2),oe([l({type:String,attribute:"auto-rows",reflect:!0})],a.ScbGrid.prototype,"autoRows",2),a.ScbGrid=oe([g("scb-grid")],a.ScbGrid);var dh=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,Ss=o=>{throw TypeError(o)},pi=(o,e,t,i)=>{for(var r=i>1?void 0:i?hh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&dh(e,t,r),r},Fo=(o,e,t)=>e.has(o)||Ss("Cannot "+t),Ne=(o,e,t)=>(Fo(o,e,"read from private field"),t?t.call(o):e.get(o)),Pt=(o,e,t)=>e.has(o)?Ss("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),ft=(o,e,t,i)=>(Fo(o,e,"write to private field"),e.set(o,t),t),qe=(o,e,t)=>(Fo(o,e,"access private method"),t),Dt,ui,Rt,vi,ve,ks,Ho,$s,No,qo,Cs,Es,Vo;a.ScbFooter=class extends y{constructor(){super(...arguments),Pt(this,ve),this.maxWidth="1440px",this.deferPaint=!1,this.sections=[],this.description="Statistikmyndigheten SCB förser samhället med statistik för beslutsfattande, debatt och forskning.",Pt(this,Dt,null),Pt(this,ui,""),Pt(this,Rt),Pt(this,vi,!1),Pt(this,qo,8)}connectedCallback(){super.connectedCallback(),this.style.setProperty("--scb-footer-max-width",this.maxWidth),qe(this,ve,No).call(this,!0),qe(this,ve,ks).call(this)}updated(e){e.has("maxWidth")&&this.style.setProperty("--scb-footer-max-width",this.maxWidth)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=Ne(this,Rt))==null||e.disconnect()}render(){const e=Ne(this,ve,$s);return c`
4591
4645
  <footer class="outer" role="contentinfo">
4592
4646
  <nav aria-label="Sidfot med länkar">
4593
4647
  <scb-grid
@@ -4597,7 +4651,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
4597
4651
  padding-block="0"
4598
4652
  .maxWidth=${this.maxWidth}
4599
4653
  >
4600
- ${Ne(this,ve,ks).call(this,e)}
4654
+ ${qe(this,ve,Cs).call(this,e)}
4601
4655
  </scb-grid>
4602
4656
  </nav>
4603
4657
 
@@ -4616,25 +4670,25 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
4616
4670
  </div>
4617
4671
  </div>
4618
4672
  </footer>
4619
- `}},Dt=new WeakMap,ui=new WeakMap,Rt=new WeakMap,vi=new WeakMap,ve=new WeakSet,ws=function(){var o;(o=He(this,Rt))==null||o.disconnect(),ft(this,Rt,new MutationObserver(e=>{for(const t of e){if(t.type==="childList"){const i=[...t.addedNodes].some(s=>s.tagName==="SCB-FOOTER-SECTION"||s.tagName==="SCB-LINK"),r=[...t.removedNodes].some(s=>s.tagName==="SCB-FOOTER-SECTION"||s.tagName==="SCB-LINK");if(i||r){Ne(this,ve,Fo).call(this);return}}if(t.type==="attributes"&&(t.target.tagName==="SCB-FOOTER-SECTION"||t.target.tagName==="SCB-LINK")){Ne(this,ve,Fo).call(this);return}}})),He(this,Rt).observe(this,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["title","href","target"]})},Fo=function(){He(this,vi)||(ft(this,vi,!0),queueMicrotask(()=>{ft(this,vi,!1),Ne(this,ve,Ho).call(this,!1)}))},Ss=function(){return He(this,Dt)??this.sections??[]},Ho=function(o=!1){const e=Array.from(this.querySelectorAll("scb-footer-section"));if(!e.length){He(this,Dt)!==null&&(ft(this,Dt,null),ft(this,ui,""),o||this.requestUpdate());return}const t=e.map(r=>{const s=(r.getAttribute("title")||"").trim(),n=Array.from(r.querySelectorAll("scb-link")).map(h=>{const p=(h.getAttribute("href")||"").trim(),v=h.getAttribute("target"),b={label:(h.textContent||"").trim(),href:p};return v&&(b.target=v),b});return{title:s,links:n}}),i=JSON.stringify(t);i!==He(this,ui)&&(ft(this,ui,i),ft(this,Dt,t),o||this.requestUpdate())},No=new WeakMap,ks=function(o){const e=[],i=o.length;if(i>0&&i<4)return e.push(c`
4673
+ `}},Dt=new WeakMap,ui=new WeakMap,Rt=new WeakMap,vi=new WeakMap,ve=new WeakSet,ks=function(){var o;(o=Ne(this,Rt))==null||o.disconnect(),ft(this,Rt,new MutationObserver(e=>{for(const t of e){if(t.type==="childList"){const i=[...t.addedNodes].some(s=>s.tagName==="SCB-FOOTER-SECTION"||s.tagName==="SCB-LINK"),r=[...t.removedNodes].some(s=>s.tagName==="SCB-FOOTER-SECTION"||s.tagName==="SCB-LINK");if(i||r){qe(this,ve,Ho).call(this);return}}if(t.type==="attributes"&&(t.target.tagName==="SCB-FOOTER-SECTION"||t.target.tagName==="SCB-LINK")){qe(this,ve,Ho).call(this);return}}})),Ne(this,Rt).observe(this,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["title","href","target"]})},Ho=function(){Ne(this,vi)||(ft(this,vi,!0),queueMicrotask(()=>{ft(this,vi,!1),qe(this,ve,No).call(this,!1)}))},$s=function(){return Ne(this,Dt)??this.sections??[]},No=function(o=!1){const e=Array.from(this.querySelectorAll("scb-footer-section"));if(!e.length){Ne(this,Dt)!==null&&(ft(this,Dt,null),ft(this,ui,""),o||this.requestUpdate());return}const t=e.map(r=>{const s=(r.getAttribute("title")||"").trim(),n=Array.from(r.querySelectorAll("scb-link")).map(h=>{const p=(h.getAttribute("href")||"").trim(),v=h.getAttribute("target"),b={label:(h.textContent||"").trim(),href:p};return v&&(b.target=v),b});return{title:s,links:n}}),i=JSON.stringify(t);i!==Ne(this,ui)&&(ft(this,ui,i),ft(this,Dt,t),o||this.requestUpdate())},qo=new WeakMap,Cs=function(o){const e=[],i=o.length;if(i>0&&i<4)return e.push(c`
4620
4674
  <scb-grid-item
4621
4675
  col-span-compact="4"
4622
4676
  col-span-medium="8"
4623
- col-span-expanded="${He(this,No)}"
4677
+ col-span-expanded="${Ne(this,qo)}"
4624
4678
  >
4625
4679
  <div class="center-row">
4626
- ${o.map((r,s)=>Ne(this,ve,qo).call(this,r,s,!0))}
4680
+ ${o.map((r,s)=>qe(this,ve,Vo).call(this,r,s,!0))}
4627
4681
  </div>
4628
4682
  </scb-grid-item>
4629
- `),e;for(let r=0;r<i;r++)e.push(Ne(this,ve,$s).call(this,o[r],r));return e},$s=function(o,e){return c`
4683
+ `),e;for(let r=0;r<i;r++)e.push(qe(this,ve,Es).call(this,o[r],r));return e},Es=function(o,e){return c`
4630
4684
  <scb-grid-item
4631
4685
  col-span-compact="4"
4632
4686
  col-span-medium="4"
4633
4687
  col-span-expanded="2"
4634
4688
  >
4635
- ${Ne(this,ve,qo).call(this,o,e,!1)}
4689
+ ${qe(this,ve,Vo).call(this,o,e,!1)}
4636
4690
  </scb-grid-item>
4637
- `},qo=function(o,e,t){return c`
4691
+ `},Vo=function(o,e,t){return c`
4638
4692
  <section class="group ${t?"group--centered":""}" aria-labelledby=${`scb-footer-sec-${e}`}>
4639
4693
  <h3 id=${`scb-footer-sec-${e}`} class="title">${o.title}</h3>
4640
4694
  <ul>
@@ -4794,39 +4848,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
4794
4848
 
4795
4849
  .spacer { display: none; }
4796
4850
  @media (min-width: 840px) { .spacer { display: block; } }
4797
- `,pi([l({type:String,attribute:"max-width",reflect:!0,converter:{fromAttribute:o=>{if(o==null)return"1440px";const e=o.trim();return e===""?"1440px":/^\d+$/.test(e)?`${e}px`:e}}})],a.ScbFooter.prototype,"maxWidth",2),pi([l({type:Boolean,reflect:!0,attribute:"defer-paint"})],a.ScbFooter.prototype,"deferPaint",2),pi([l({type:Array})],a.ScbFooter.prototype,"sections",2),pi([l({type:String})],a.ScbFooter.prototype,"description",2),a.ScbFooter=pi([g("scb-footer")],a.ScbFooter);var lh=Object.defineProperty,ch=Object.getOwnPropertyDescriptor,Cs=o=>{throw TypeError(o)},qe=(o,e,t,i)=>{for(var r=i>1?void 0:i?ch(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&lh(e,t,r),r},dh=(o,e,t)=>e.has(o)||Cs("Cannot "+t),hh=(o,e,t)=>e.has(o)?Cs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),Es=(o,e,t)=>(dh(o,e,"access private method"),t),yr,Vo;a.ScbStack=class extends y{constructor(){super(...arguments),hh(this,yr),this.direction="column",this.gap="",this.rowGap="",this.columnGap="",this.align="stretch",this.justify="start",this.wrap=!1,this.inline=!1}firstUpdated(){Es(this,yr,Vo).call(this)}updated(){Es(this,yr,Vo).call(this)}mapSpacingToken(e){if(!e)return;const t=String(e).trim();return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}parseGapShorthand(e){if(!e)return{};const t=e.trim().split(/\s+/);if(t.length===1){const i=this.mapSpacingToken(t[0]);return{row:i,col:i}}return{row:this.mapSpacingToken(t[0]),col:this.mapSpacingToken(t[1])}}render(){return c`<div class="base"><slot></slot></div>`}},yr=new WeakSet,Vo=function(){this.style.setProperty("--scb-stack-direction",this.direction);const o="var(--spacing-5, 16px)",e=this.parseGapShorthand(this.gap),t=this.mapSpacingToken(this.rowGap)??e.row??o,i=this.mapSpacingToken(this.columnGap)??e.col??o;this.style.setProperty("--scb-stack-gap",`${t}`),this.style.setProperty("--scb-stack-row-gap",t),this.style.setProperty("--scb-stack-column-gap",i);const r={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch",baseline:"baseline"},s={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly"};this.style.setProperty("--scb-stack-align",r[this.align]??"stretch"),this.style.setProperty("--scb-stack-justify",s[this.justify]??"flex-start"),this.style.setProperty("--scb-stack-wrap",this.wrap?"wrap":"nowrap")},a.ScbStack.styles=m`
4798
- :host {
4799
- box-sizing: border-box;
4800
- display: block;
4801
- width: auto;
4802
- max-width: 100%;
4803
- min-inline-size: 0;
4804
- }
4805
-
4806
- /* Inre flexlayout så att gap även fungerar för slottat innehåll */
4807
- .base {
4808
- display: var(--scb-stack-display, flex);
4809
- flex-direction: var(--scb-stack-direction, column);
4810
-
4811
- /* Longhands med fallback till --scb-stack-gap och token-default */
4812
- row-gap: var(--scb-stack-row-gap, var(--scb-stack-gap, var(--spacing-5, 16px)));
4813
- column-gap: var(--scb-stack-column-gap, var(--scb-stack-gap, var(--spacing-5, 16px)));
4814
-
4815
- align-items: var(--scb-stack-align, stretch);
4816
- justify-content: var(--scb-stack-justify, flex-start);
4817
- flex-wrap: var(--scb-stack-wrap, nowrap);
4818
- }
4819
-
4820
- /* Gör att slotens tilldelade noder blir barn till .base */
4821
- slot { display: contents; }
4822
-
4823
- :host([inline]) .base { --scb-stack-display: inline-flex; }
4824
-
4825
- /* Barnens flex-beteende i row-läge kan styras via variabeln och defaultar till att inte ta full bredd */
4826
- :host([direction="row"]) ::slotted(*) {
4827
- flex: var(--scb-stack-item-flex, 0 0 auto);
4828
- }
4829
- `,qe([l({type:String,reflect:!0})],a.ScbStack.prototype,"direction",2),qe([l({type:String,reflect:!0})],a.ScbStack.prototype,"gap",2),qe([l({type:String,attribute:"row-gap",reflect:!0})],a.ScbStack.prototype,"rowGap",2),qe([l({type:String,attribute:"column-gap",reflect:!0})],a.ScbStack.prototype,"columnGap",2),qe([l({type:String,reflect:!0})],a.ScbStack.prototype,"align",2),qe([l({type:String,reflect:!0})],a.ScbStack.prototype,"justify",2),qe([l({type:Boolean,reflect:!0})],a.ScbStack.prototype,"wrap",2),qe([l({type:Boolean,reflect:!0})],a.ScbStack.prototype,"inline",2),a.ScbStack=qe([g("scb-stack")],a.ScbStack);var ph=Object.defineProperty,uh=Object.getOwnPropertyDescriptor,Uo=(o,e,t,i)=>{for(var r=i>1?void 0:i?uh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ph(e,t,r),r};a.ScbHeaderDrawerGroup=class extends y{constructor(){super(...arguments),this.label=""}render(){return c`<slot></slot>`}},a.ScbHeaderDrawerGroup.styles=m`:host{display:none !important}`,Uo([l({type:String})],a.ScbHeaderDrawerGroup.prototype,"label",2),Uo([l({type:String})],a.ScbHeaderDrawerGroup.prototype,"icon",2),a.ScbHeaderDrawerGroup=Uo([g("scb-header-drawer-group")],a.ScbHeaderDrawerGroup);var vh=Object.defineProperty,bh=Object.getOwnPropertyDescriptor,_r=(o,e,t,i)=>{for(var r=i>1?void 0:i?bh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&vh(e,t,r),r};a.ScbHeaderDrawerItem=class extends y{constructor(){super(...arguments),this.label="",this.href="#"}render(){return c`<slot></slot>`}},a.ScbHeaderDrawerItem.styles=m`:host{display:none !important}`,_r([l({type:String})],a.ScbHeaderDrawerItem.prototype,"label",2),_r([l({type:String})],a.ScbHeaderDrawerItem.prototype,"href",2),_r([l({type:String})],a.ScbHeaderDrawerItem.prototype,"icon",2),a.ScbHeaderDrawerItem=_r([g("scb-header-drawer-item")],a.ScbHeaderDrawerItem);var mh=Object.defineProperty,fh=Object.getOwnPropertyDescriptor,jo=(o,e,t,i)=>{for(var r=i>1?void 0:i?fh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&mh(e,t,r),r};a.ScbHeaderTab=class extends y{constructor(){super(...arguments),this.label="",this.href="#"}render(){return c`<slot></slot>`}},a.ScbHeaderTab.styles=m`:host{display:none !important}`,jo([l({type:String})],a.ScbHeaderTab.prototype,"label",2),jo([l({type:String})],a.ScbHeaderTab.prototype,"href",2),a.ScbHeaderTab=jo([g("scb-header-tab")],a.ScbHeaderTab);var gh=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,xr=(o,e,t,i)=>{for(var r=i>1?void 0:i?yh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&gh(e,t,r),r};a.ScbHeaderUtility=class extends y{constructor(){super(...arguments),this.label="",this.href="#"}render(){return c`<slot></slot>`}},a.ScbHeaderUtility.styles=m`:host{display:none !important}`,xr([l({type:String})],a.ScbHeaderUtility.prototype,"label",2),xr([l({type:String})],a.ScbHeaderUtility.prototype,"href",2),xr([l({type:String})],a.ScbHeaderUtility.prototype,"target",2),a.ScbHeaderUtility=xr([g("scb-header-utility")],a.ScbHeaderUtility);var _h=Object.defineProperty,xh=Object.getOwnPropertyDescriptor,O=(o,e,t,i)=>{for(var r=i>1?void 0:i?xh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&_h(e,t,r),r};const Wo={fromAttribute:o=>o==null?!0:!/^(false|0|off|no)$/i.test(o),toAttribute:o=>String(!!o)};a.ScbHeader=class extends y{constructor(){super(...arguments),this.maxWidth="1440px",this.logoText="",this.logoHref="/",this.banner=!1,this.tabs=[],this.activeTab=0,this.utilityItems=[],this.showDrawer=!0,this.showSearch=!0,this.includeUtilityInDrawer=!1,this.searchText="",this._drawerId="main-drawer",this._drawerMounted=!1,this._drawerExpanded=!1,this._searchId="header-search",this._slotTabs=[],this._slotUtils=[],this._slotMenu=[],this._measureScheduled=!1,this._scheduleMeasure=()=>{this._measureScheduled||(this._measureScheduled=!0,requestAnimationFrame(()=>{this._measureScheduled=!1,this._measure()}))},this._onWindowResize=()=>{this._scheduleMeasure()},this._onDrawerSelect=e=>{this.dispatchEvent(new CustomEvent("drawer-select",{detail:e.detail,bubbles:!0,composed:!0})),this._closeDrawerNow()},this._collapsed=!1,this._unlockAtWidth=0,this._hideLogoText=!1,this._logoTextUnlockAt=0,this._harvestPending=!1,this.__drawerLoaded=!1,this.__tabsLoaded=!1,this.__searchLoaded=!1,this._harvest=()=>{const e=this._slotEl;if(!e)return;const t=e.assignedElements({flatten:!0}),i=[],r=[],s=[],n=h=>({label:h.getAttribute("label")??"",href:h.getAttribute("href")??void 0,icon:h.getAttribute("icon")??void 0});for(const h of t){const p=h.tagName.toLowerCase();if(p==="scb-header-tab"){i.push({label:h.getAttribute("label")??"",href:h.getAttribute("href")??"#"});continue}if(p==="scb-header-utility"){r.push({label:h.getAttribute("label")??"",href:h.getAttribute("href")??"#",target:h.getAttribute("target")??void 0});continue}if(p==="scb-header-drawer-group"){const v={label:h.getAttribute("label")??"",icon:h.getAttribute("icon")??void 0,children:[]};h.querySelectorAll("scb-header-drawer-item").forEach(b=>v.children.push(n(b))),s.push(v);continue}p==="scb-header-drawer-item"&&s.push(n(h))}this._slotTabs=i,this._slotUtils=r,this._slotMenu=s,queueMicrotask(()=>{this.updateComplete.then(()=>{this._applyActiveToTabs(),this._scheduleMeasure()})})},this._measure=()=>{var b,_,x;const e=this._top,t=this._logoGroup;if(!e||!t)return;const i=window.innerWidth,r=e.clientWidth,s=this._overflows(this._util),n=this._overflows(this._tabsEl),h=i<this.BP_MD||s||n;this._collapsed?!h&&r>=this._unlockAtWidth&&this._setCollapsed(!1):h&&(this._unlockAtWidth=r+this._HYST,this._setCollapsed(!0));let p=!1;if(this.showSearch&&i>=this.BP_SM&&i<this.BP_MD&&this._searchWrap){const S=getComputedStyle(this._searchWrap),C=Math.max(this._num(S.minWidth,this._tokenPx("--scb-header-search-min",320)),this._tokenPx("--scb-header-search-min",320)),E=this._num(getComputedStyle(e).gap,this._tokenPx("--spacing-7",24)),A=this.showDrawer&&(i<this.BP_MD||this._collapsed)?((b=this._menuBtn)==null?void 0:b.getBoundingClientRect().width)||this._tokenPx("--icon-size-large",48):0;p=t.getBoundingClientRect().width+E+C+E+A+8>r+.5}this._setHideSearch(p);let v=!1;if(this.showDrawer&&(i<this.BP_MD||this._collapsed)&&!this._visible(this._util)&&!this._visible(this._searchWrap)){const S=this._num(getComputedStyle(e).gap,this._tokenPx("--spacing-7",24)),C=((_=this._menuBtn)==null?void 0:_.getBoundingClientRect().width)||this._tokenPx("--icon-size-large",48),E=(((x=this._logoGroup)==null?void 0:x.getBoundingClientRect().width)||0)+S+C;this._hideLogoText?v=!(r>=this._logoTextUnlockAt):E>r+.5&&(v=!0,this._logoTextUnlockAt=r+this._HYST)}else v=!1,this._logoTextUnlockAt=0;this._setHideLogoText(v)},this._onMenuClick=async e=>{e.preventDefault(),e.stopPropagation(),this.showDrawer&&(this.dispatchEvent(new CustomEvent("menu-click",{bubbles:!0,composed:!0})),await this._ensureDrawerMounted(),await a.ScbHeader._nextFrame(),await a.ScbHeader._nextFrame(),this._openDrawerNow())},this._onSearchClick=e=>{var r;const t=this._searchEl;if(t!=null&&t.submit&&typeof t.submit=="function"){t.submit();return}const i=(t==null?void 0:t.value)??"";this.searchText=i,this.dispatchEvent(new CustomEvent("search-click",{detail:{value:i},bubbles:!0,composed:!0})),(r=t==null?void 0:t.focus)==null||r.call(t)},this._onTabsChange=e=>{var n,h,p;const t=e,i=((n=t==null?void 0:t.detail)==null?void 0:n.activeTabIndex)??((h=e.target)==null?void 0:h.activeTabIndex)??0;this.activeTab=i;const s=((p=(this._slotTabs.length?this._slotTabs:this.tabs)[i])==null?void 0:p.href)??"";this.dispatchEvent(new CustomEvent("tab-change",{detail:{index:i,href:s},bubbles:!0,composed:!0}))},this._onSearchInput=e=>{var t;this.searchText=((t=e.detail)==null?void 0:t.value)??"",this.dispatchEvent(new CustomEvent("search-input",{detail:{value:this.searchText},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("search-text-change",{detail:{value:this.searchText},bubbles:!0,composed:!0}))},this._onSearchSubmit=e=>{var t,i;this.searchText=((t=e.detail)==null?void 0:t.value)??"",this.dispatchEvent(new CustomEvent("search-change",{detail:{value:this.searchText,active:(i=e.detail)==null?void 0:i.active},bubbles:!0,composed:!0}))},this._onSearchClear=()=>{this.searchText="",this.dispatchEvent(new CustomEvent("search-text-change",{detail:{value:""},bubbles:!0,composed:!0}))}}get _HYST(){return this._tokenPx("--spacing-11",64)}get BP_SM(){return this._tokenPx("--bp-sm",a.ScbHeader.BP_SM_DEFAULT)}get BP_MD(){return this._tokenPx("--bp-md",a.ScbHeader.BP_MD_DEFAULT)}_scheduleHarvest(){this._harvestPending||(this._harvestPending=!0,queueMicrotask(()=>{this._harvestPending=!1,this._harvest()}))}async __ensureDrawer(){if(!this.__drawerLoaded)return this.__ensureDrawerPromise??(this.__ensureDrawerPromise=(async()=>{await Promise.resolve().then(()=>qd),this.__drawerLoaded=!0})()),this.__ensureDrawerPromise}async __ensureTabs(){if(!this.__tabsLoaded)return this.__ensureTabsPromise??(this.__ensureTabsPromise=(async()=>{await Promise.all([Promise.resolve().then(()=>mp),Promise.resolve().then(()=>up)]),this.__tabsLoaded=!0})()),this.__ensureTabsPromise}async __ensureSearch(){if(!this.__searchLoaded)return this.__ensureSearchPromise??(this.__ensureSearchPromise=(async()=>{await Promise.resolve().then(()=>td),this.__searchLoaded=!0})()),this.__ensureSearchPromise}get _slotEl(){var e;return((e=this.shadowRoot)==null?void 0:e.querySelector("slot#data-slot"))??null}get _top(){return this.renderRoot.querySelector(".top-row")}get _util(){return this.renderRoot.querySelector(".utility")}get _tabsEl(){return this.renderRoot.querySelector("scb-tabs")}get _logoGroup(){return this.renderRoot.querySelector(".logo-wrap")||this.renderRoot.querySelector(".logo-group")}get _searchWrap(){return this.renderRoot.querySelector(".search")}get _menuBtn(){return this.renderRoot.querySelector(".menu-trigger")}get _searchEl(){return this.renderRoot.querySelector(`#${this._searchId}`)}_attachSlotObservers(){var t;(t=this._slotMo)==null||t.disconnect();const e=new MutationObserver(i=>{this._scheduleHarvest()});this._slotMo=e,e.observe(this,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["label","href","icon","target"]})}_setCollapsed(e){this._collapsed!==e&&(this._collapsed=e,e?this.setAttribute("data-collapsed",""):this.removeAttribute("data-collapsed"))}_setHideSearch(e){e?this.setAttribute("data-hide-search",""):this.removeAttribute("data-hide-search")}_setHideLogoText(e){this._hideLogoText!==e&&(this._hideLogoText=e,e?this.setAttribute("data-hide-logo-text",""):this.removeAttribute("data-hide-logo-text"))}_num(e,t){const i=Number.parseFloat(String(e??"").trim());return Number.isFinite(i)?i:t}_tokenPx(e,t){const i=getComputedStyle(this);return this._num(i.getPropertyValue(e),t)}_visible(e){return e?getComputedStyle(e).display!=="none":!1}_overflows(e){return!e||!this._visible(e)?!1:e.scrollWidth>e.clientWidth+1}firstUpdated(){this.updateComplete.then(()=>{this._harvest(),this._attachSlotObservers()});const e=this._top;e&&(this._ro=new ResizeObserver(()=>this._scheduleMeasure()),this._ro.observe(e)),window.addEventListener("resize",this._onWindowResize,{passive:!0});const t=this._menuBtn,i=()=>this._ensureDrawerMounted();t==null||t.addEventListener("pointerenter",i,{once:!0}),t==null||t.addEventListener("focusin",i,{once:!0}),t==null||t.addEventListener("touchstart",i,{once:!0,passive:!0});const r=s=>"requestIdleCallback"in window?window.requestIdleCallback(s,{timeout:1500}):setTimeout(s,600);this.showDrawer&&r(()=>{this.__ensureDrawer()}),this._collapsed||r(()=>{this.__ensureTabs()}),this.showSearch&&r(()=>{this.__ensureSearch()})}updated(e){e.has("searchMax")&&this.style.setProperty("--scb-header-search-max",this.searchMax??"480px"),e.has("searchMin")&&this.style.setProperty("--scb-header-search-min",this.searchMin??"320px"),e.has("searchHeight")&&(this.searchHeight&&this.searchHeight.trim()?this.style.setProperty("--scb-search-height",this.searchHeight.trim()):this.style.removeProperty("--scb-search-height")),(e.has("utilityItems")||e.has("tabs")||e.has("logoText")||e.has("activeTab")||e.has("_slotTabs")||e.has("_slotUtils")||e.has("_slotMenu")||e.has("showDrawer")||e.has("showSearch")||e.has("searchMax")||e.has("searchMin"))&&this.updateComplete.then(()=>{this._scheduleMeasure(),this._applyActiveToTabs()}),e.has("showSearch")&&this.showSearch&&!this.__searchLoaded&&this.__ensureSearch()}disconnectedCallback(){var e,t;(e=this._ro)==null||e.disconnect(),(t=this._slotMo)==null||t.disconnect(),window.removeEventListener("resize",this._onWindowResize),super.disconnectedCallback()}async _ensureDrawerMounted(){this._drawerMounted||(await this.__ensureDrawer(),this._drawerMounted=!0,await this.updateComplete)}_openDrawerNow(){var t,i;const e=this.renderRoot.querySelector(`#${this._drawerId}`);e&&(e.open=!0,e.setAttribute("open",""),(t=e.show)==null||t.call(e),(i=e.openDrawer)==null||i.call(e),this._drawerExpanded=!0,this._syncMenuBtnAria(),this.dispatchEvent(new CustomEvent("drawer-open",{bubbles:!0,composed:!0})))}_closeDrawerNow(){const e=this.renderRoot.querySelector(`#${this._drawerId}`);e&&(e.open=!1),this._drawerExpanded=!1,this._syncMenuBtnAria(),this.dispatchEvent(new CustomEvent("drawer-close",{bubbles:!0,composed:!0}))}_syncMenuBtnAria(){const e=this.renderRoot.querySelector(".menu-trigger");e&&e.setAttribute("aria-expanded",String(this._drawerExpanded))}_applyActiveToTabs(){const e=this._tabsEl;if(!e)return;e.activeTabIndex=this.activeTab,e.querySelectorAll("scb-secondary-tab").forEach((i,r)=>{i.selected=r===this.activeTab})}_renderDrawerNodes(e){return!e||e.length===0?c``:c`${e.map(t=>{const i=Array.isArray(t.children)&&t.children.length>0;return c`
4851
+ `,pi([l({type:String,attribute:"max-width",reflect:!0,converter:{fromAttribute:o=>{if(o==null)return"1440px";const e=o.trim();return e===""?"1440px":/^\d+$/.test(e)?`${e}px`:e}}})],a.ScbFooter.prototype,"maxWidth",2),pi([l({type:Boolean,reflect:!0,attribute:"defer-paint"})],a.ScbFooter.prototype,"deferPaint",2),pi([l({type:Array})],a.ScbFooter.prototype,"sections",2),pi([l({type:String})],a.ScbFooter.prototype,"description",2),a.ScbFooter=pi([g("scb-footer")],a.ScbFooter);var ph=Object.defineProperty,uh=Object.getOwnPropertyDescriptor,Uo=(o,e,t,i)=>{for(var r=i>1?void 0:i?uh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&ph(e,t,r),r};a.ScbHeaderDrawerGroup=class extends y{constructor(){super(...arguments),this.label=""}render(){return c`<slot></slot>`}},a.ScbHeaderDrawerGroup.styles=m`:host{display:none !important}`,Uo([l({type:String})],a.ScbHeaderDrawerGroup.prototype,"label",2),Uo([l({type:String})],a.ScbHeaderDrawerGroup.prototype,"icon",2),a.ScbHeaderDrawerGroup=Uo([g("scb-header-drawer-group")],a.ScbHeaderDrawerGroup);var vh=Object.defineProperty,bh=Object.getOwnPropertyDescriptor,_r=(o,e,t,i)=>{for(var r=i>1?void 0:i?bh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&vh(e,t,r),r};a.ScbHeaderDrawerItem=class extends y{constructor(){super(...arguments),this.label="",this.href="#"}render(){return c`<slot></slot>`}},a.ScbHeaderDrawerItem.styles=m`:host{display:none !important}`,_r([l({type:String})],a.ScbHeaderDrawerItem.prototype,"label",2),_r([l({type:String})],a.ScbHeaderDrawerItem.prototype,"href",2),_r([l({type:String})],a.ScbHeaderDrawerItem.prototype,"icon",2),a.ScbHeaderDrawerItem=_r([g("scb-header-drawer-item")],a.ScbHeaderDrawerItem);var mh=Object.defineProperty,fh=Object.getOwnPropertyDescriptor,jo=(o,e,t,i)=>{for(var r=i>1?void 0:i?fh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&mh(e,t,r),r};a.ScbHeaderTab=class extends y{constructor(){super(...arguments),this.label="",this.href="#"}render(){return c`<slot></slot>`}},a.ScbHeaderTab.styles=m`:host{display:none !important}`,jo([l({type:String})],a.ScbHeaderTab.prototype,"label",2),jo([l({type:String})],a.ScbHeaderTab.prototype,"href",2),a.ScbHeaderTab=jo([g("scb-header-tab")],a.ScbHeaderTab);var gh=Object.defineProperty,yh=Object.getOwnPropertyDescriptor,xr=(o,e,t,i)=>{for(var r=i>1?void 0:i?yh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&gh(e,t,r),r};a.ScbHeaderUtility=class extends y{constructor(){super(...arguments),this.label="",this.href="#"}render(){return c`<slot></slot>`}},a.ScbHeaderUtility.styles=m`:host{display:none !important}`,xr([l({type:String})],a.ScbHeaderUtility.prototype,"label",2),xr([l({type:String})],a.ScbHeaderUtility.prototype,"href",2),xr([l({type:String})],a.ScbHeaderUtility.prototype,"target",2),a.ScbHeaderUtility=xr([g("scb-header-utility")],a.ScbHeaderUtility);var _h=Object.defineProperty,xh=Object.getOwnPropertyDescriptor,O=(o,e,t,i)=>{for(var r=i>1?void 0:i?xh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&_h(e,t,r),r};const Wo={fromAttribute:o=>o==null?!0:!/^(false|0|off|no)$/i.test(o),toAttribute:o=>String(!!o)};a.ScbHeader=class extends y{constructor(){super(...arguments),this.maxWidth="1440px",this.logoText="",this.logoHref="/",this.banner=!1,this.tabs=[],this.activeTab=0,this.utilityItems=[],this.showDrawer=!0,this.showSearch=!0,this.includeUtilityInDrawer=!1,this.searchText="",this._drawerId="main-drawer",this._drawerMounted=!1,this._drawerExpanded=!1,this._searchId="header-search",this._slotTabs=[],this._slotUtils=[],this._slotMenu=[],this._measureScheduled=!1,this._scheduleMeasure=()=>{this._measureScheduled||(this._measureScheduled=!0,requestAnimationFrame(()=>{this._measureScheduled=!1,this._measure()}))},this._onWindowResize=()=>{this._scheduleMeasure()},this._onDrawerSelect=e=>{this.dispatchEvent(new CustomEvent("drawer-select",{detail:e.detail,bubbles:!0,composed:!0})),this._closeDrawerNow()},this._collapsed=!1,this._unlockAtWidth=0,this._hideLogoText=!1,this._logoTextUnlockAt=0,this._harvestPending=!1,this.__drawerLoaded=!1,this.__tabsLoaded=!1,this.__searchLoaded=!1,this._harvest=()=>{const e=this._slotEl;if(!e)return;const t=e.assignedElements({flatten:!0}),i=[],r=[],s=[],n=h=>({label:h.getAttribute("label")??"",href:h.getAttribute("href")??void 0,icon:h.getAttribute("icon")??void 0});for(const h of t){const p=h.tagName.toLowerCase();if(p==="scb-header-tab"){i.push({label:h.getAttribute("label")??"",href:h.getAttribute("href")??"#"});continue}if(p==="scb-header-utility"){r.push({label:h.getAttribute("label")??"",href:h.getAttribute("href")??"#",target:h.getAttribute("target")??void 0});continue}if(p==="scb-header-drawer-group"){const v={label:h.getAttribute("label")??"",icon:h.getAttribute("icon")??void 0,children:[]};h.querySelectorAll("scb-header-drawer-item").forEach(b=>v.children.push(n(b))),s.push(v);continue}p==="scb-header-drawer-item"&&s.push(n(h))}this._slotTabs=i,this._slotUtils=r,this._slotMenu=s,queueMicrotask(()=>{this.updateComplete.then(()=>{this._applyActiveToTabs(),this._scheduleMeasure()})})},this._measure=()=>{var b,_,x;const e=this._top,t=this._logoGroup;if(!e||!t)return;const i=window.innerWidth,r=e.clientWidth,s=this._overflows(this._util),n=this._overflows(this._tabsEl),h=i<this.BP_MD||s||n;this._collapsed?!h&&r>=this._unlockAtWidth&&this._setCollapsed(!1):h&&(this._unlockAtWidth=r+this._HYST,this._setCollapsed(!0));let p=!1;if(this.showSearch&&i>=this.BP_SM&&i<this.BP_MD&&this._searchWrap){const S=getComputedStyle(this._searchWrap),C=Math.max(this._num(S.minWidth,this._tokenPx("--scb-header-search-min",320)),this._tokenPx("--scb-header-search-min",320)),E=this._num(getComputedStyle(e).gap,this._tokenPx("--spacing-7",24)),A=this.showDrawer&&(i<this.BP_MD||this._collapsed)?((b=this._menuBtn)==null?void 0:b.getBoundingClientRect().width)||this._tokenPx("--icon-size-large",48):0;p=t.getBoundingClientRect().width+E+C+E+A+8>r+.5}this._setHideSearch(p);let v=!1;if(this.showDrawer&&(i<this.BP_MD||this._collapsed)&&!this._visible(this._util)&&!this._visible(this._searchWrap)){const S=this._num(getComputedStyle(e).gap,this._tokenPx("--spacing-7",24)),C=((_=this._menuBtn)==null?void 0:_.getBoundingClientRect().width)||this._tokenPx("--icon-size-large",48),E=(((x=this._logoGroup)==null?void 0:x.getBoundingClientRect().width)||0)+S+C;this._hideLogoText?v=!(r>=this._logoTextUnlockAt):E>r+.5&&(v=!0,this._logoTextUnlockAt=r+this._HYST)}else v=!1,this._logoTextUnlockAt=0;this._setHideLogoText(v)},this._onMenuClick=async e=>{e.preventDefault(),e.stopPropagation(),this.showDrawer&&(this.dispatchEvent(new CustomEvent("menu-click",{bubbles:!0,composed:!0})),await this._ensureDrawerMounted(),await a.ScbHeader._nextFrame(),await a.ScbHeader._nextFrame(),this._openDrawerNow())},this._onSearchClick=e=>{var r;const t=this._searchEl;if(t!=null&&t.submit&&typeof t.submit=="function"){t.submit();return}const i=(t==null?void 0:t.value)??"";this.searchText=i,this.dispatchEvent(new CustomEvent("search-click",{detail:{value:i},bubbles:!0,composed:!0})),(r=t==null?void 0:t.focus)==null||r.call(t)},this._onTabsChange=e=>{var n,h,p;const t=e,i=((n=t==null?void 0:t.detail)==null?void 0:n.activeTabIndex)??((h=e.target)==null?void 0:h.activeTabIndex)??0;this.activeTab=i;const s=((p=(this._slotTabs.length?this._slotTabs:this.tabs)[i])==null?void 0:p.href)??"";this.dispatchEvent(new CustomEvent("tab-change",{detail:{index:i,href:s},bubbles:!0,composed:!0}))},this._onSearchInput=e=>{var t;this.searchText=((t=e.detail)==null?void 0:t.value)??"",this.dispatchEvent(new CustomEvent("search-input",{detail:{value:this.searchText},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("search-text-change",{detail:{value:this.searchText},bubbles:!0,composed:!0}))},this._onSearchSubmit=e=>{var t,i;this.searchText=((t=e.detail)==null?void 0:t.value)??"",this.dispatchEvent(new CustomEvent("search-change",{detail:{value:this.searchText,active:(i=e.detail)==null?void 0:i.active},bubbles:!0,composed:!0}))},this._onSearchClear=()=>{this.searchText="",this.dispatchEvent(new CustomEvent("search-text-change",{detail:{value:""},bubbles:!0,composed:!0}))}}get _HYST(){return this._tokenPx("--spacing-11",64)}get BP_SM(){return this._tokenPx("--bp-sm",a.ScbHeader.BP_SM_DEFAULT)}get BP_MD(){return this._tokenPx("--bp-md",a.ScbHeader.BP_MD_DEFAULT)}_scheduleHarvest(){this._harvestPending||(this._harvestPending=!0,queueMicrotask(()=>{this._harvestPending=!1,this._harvest()}))}async __ensureDrawer(){if(!this.__drawerLoaded)return this.__ensureDrawerPromise??(this.__ensureDrawerPromise=(async()=>{await Promise.resolve().then(()=>qd),this.__drawerLoaded=!0})()),this.__ensureDrawerPromise}async __ensureTabs(){if(!this.__tabsLoaded)return this.__ensureTabsPromise??(this.__ensureTabsPromise=(async()=>{await Promise.all([Promise.resolve().then(()=>mp),Promise.resolve().then(()=>up)]),this.__tabsLoaded=!0})()),this.__ensureTabsPromise}async __ensureSearch(){if(!this.__searchLoaded)return this.__ensureSearchPromise??(this.__ensureSearchPromise=(async()=>{await Promise.resolve().then(()=>td),this.__searchLoaded=!0})()),this.__ensureSearchPromise}get _slotEl(){var e;return((e=this.shadowRoot)==null?void 0:e.querySelector("slot#data-slot"))??null}get _top(){return this.renderRoot.querySelector(".top-row")}get _util(){return this.renderRoot.querySelector(".utility")}get _tabsEl(){return this.renderRoot.querySelector("scb-tabs")}get _logoGroup(){return this.renderRoot.querySelector(".logo-wrap")||this.renderRoot.querySelector(".logo-group")}get _searchWrap(){return this.renderRoot.querySelector(".search")}get _menuBtn(){return this.renderRoot.querySelector(".menu-trigger")}get _searchEl(){return this.renderRoot.querySelector(`#${this._searchId}`)}_attachSlotObservers(){var t;(t=this._slotMo)==null||t.disconnect();const e=new MutationObserver(i=>{this._scheduleHarvest()});this._slotMo=e,e.observe(this,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["label","href","icon","target"]})}_setCollapsed(e){this._collapsed!==e&&(this._collapsed=e,e?this.setAttribute("data-collapsed",""):this.removeAttribute("data-collapsed"))}_setHideSearch(e){e?this.setAttribute("data-hide-search",""):this.removeAttribute("data-hide-search")}_setHideLogoText(e){this._hideLogoText!==e&&(this._hideLogoText=e,e?this.setAttribute("data-hide-logo-text",""):this.removeAttribute("data-hide-logo-text"))}_num(e,t){const i=Number.parseFloat(String(e??"").trim());return Number.isFinite(i)?i:t}_tokenPx(e,t){const i=getComputedStyle(this);return this._num(i.getPropertyValue(e),t)}_visible(e){return e?getComputedStyle(e).display!=="none":!1}_overflows(e){return!e||!this._visible(e)?!1:e.scrollWidth>e.clientWidth+1}firstUpdated(){this.updateComplete.then(()=>{this._harvest(),this._attachSlotObservers()});const e=this._top;e&&(this._ro=new ResizeObserver(()=>this._scheduleMeasure()),this._ro.observe(e)),window.addEventListener("resize",this._onWindowResize,{passive:!0});const t=this._menuBtn,i=()=>this._ensureDrawerMounted();t==null||t.addEventListener("pointerenter",i,{once:!0}),t==null||t.addEventListener("focusin",i,{once:!0}),t==null||t.addEventListener("touchstart",i,{once:!0,passive:!0});const r=s=>"requestIdleCallback"in window?window.requestIdleCallback(s,{timeout:1500}):setTimeout(s,600);this.showDrawer&&r(()=>{this.__ensureDrawer()}),this._collapsed||r(()=>{this.__ensureTabs()}),this.showSearch&&r(()=>{this.__ensureSearch()})}updated(e){e.has("searchMax")&&this.style.setProperty("--scb-header-search-max",this.searchMax??"480px"),e.has("searchMin")&&this.style.setProperty("--scb-header-search-min",this.searchMin??"320px"),e.has("searchHeight")&&(this.searchHeight&&this.searchHeight.trim()?this.style.setProperty("--scb-search-height",this.searchHeight.trim()):this.style.removeProperty("--scb-search-height")),(e.has("utilityItems")||e.has("tabs")||e.has("logoText")||e.has("activeTab")||e.has("_slotTabs")||e.has("_slotUtils")||e.has("_slotMenu")||e.has("showDrawer")||e.has("showSearch")||e.has("searchMax")||e.has("searchMin"))&&this.updateComplete.then(()=>{this._scheduleMeasure(),this._applyActiveToTabs()}),e.has("showSearch")&&this.showSearch&&!this.__searchLoaded&&this.__ensureSearch()}disconnectedCallback(){var e,t;(e=this._ro)==null||e.disconnect(),(t=this._slotMo)==null||t.disconnect(),window.removeEventListener("resize",this._onWindowResize),super.disconnectedCallback()}async _ensureDrawerMounted(){this._drawerMounted||(await this.__ensureDrawer(),this._drawerMounted=!0,await this.updateComplete)}_openDrawerNow(){var t,i;const e=this.renderRoot.querySelector(`#${this._drawerId}`);e&&(e.open=!0,e.setAttribute("open",""),(t=e.show)==null||t.call(e),(i=e.openDrawer)==null||i.call(e),this._drawerExpanded=!0,this._syncMenuBtnAria(),this.dispatchEvent(new CustomEvent("drawer-open",{bubbles:!0,composed:!0})))}_closeDrawerNow(){const e=this.renderRoot.querySelector(`#${this._drawerId}`);e&&(e.open=!1),this._drawerExpanded=!1,this._syncMenuBtnAria(),this.dispatchEvent(new CustomEvent("drawer-close",{bubbles:!0,composed:!0}))}_syncMenuBtnAria(){const e=this.renderRoot.querySelector(".menu-trigger");e&&e.setAttribute("aria-expanded",String(this._drawerExpanded))}_applyActiveToTabs(){const e=this._tabsEl;if(!e)return;e.activeTabIndex=this.activeTab,e.querySelectorAll("scb-secondary-tab").forEach((i,r)=>{i.selected=r===this.activeTab})}_renderDrawerNodes(e){return!e||e.length===0?c``:c`${e.map(t=>{const i=Array.isArray(t.children)&&t.children.length>0;return c`
4830
4852
  <scb-drawer-item
4831
4853
  label=${t.label}
4832
4854
  ?selected=${!1}
@@ -5437,7 +5459,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
5437
5459
  :host li:focus {
5438
5460
  outline: none;
5439
5461
  }
5440
- `,et([l({type:String})],a.ScbMenuItem.prototype,"label",2),et([l({type:Boolean})],a.ScbMenuItem.prototype,"hasSubMenu",2),et([l({type:Boolean})],a.ScbMenuItem.prototype,"openLeft",2),et([l({type:Boolean})],a.ScbMenuItem.prototype,"divider",2),et([l({type:String,attribute:"leading-icon"})],a.ScbMenuItem.prototype,"leadingIcon",2),et([l({type:String,attribute:"trailing-icon"})],a.ScbMenuItem.prototype,"trailingIcon",2),et([l({type:String,attribute:"item-href"})],a.ScbMenuItem.prototype,"itemHref",2),a.ScbMenuItem=et([g("scb-menu-item")],a.ScbMenuItem);var Ah=Object.defineProperty,Ih=Object.getOwnPropertyDescriptor,As=(o,e,t,i)=>{for(var r=i>1?void 0:i?Ih(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ah(e,t,r),r};a.ScbSubMenu=class extends y{constructor(){super(...arguments),this.open=!1,this._show=()=>{this.setAttribute("open",""),this.open=!0},this._hide=e=>{this.removeAttribute("open"),this.open=!1,e&&e.stopPropagation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("show-submenu",this._show),this.addEventListener("hide-submenu",this._hide)}disconnectedCallback(){this.removeEventListener("show-submenu",this._show),this.removeEventListener("hide-submenu",this._hide),super.disconnectedCallback()}firstUpdated(){let e=0,t=this.parentElement;for(;t;)t.tagName==="SCB-SUB-MENU"&&e++,t=t.parentElement;e%2===1?this.setAttribute("open-left",""):this.removeAttribute("open-left")}render(){return c`
5462
+ `,et([l({type:String})],a.ScbMenuItem.prototype,"label",2),et([l({type:Boolean})],a.ScbMenuItem.prototype,"hasSubMenu",2),et([l({type:Boolean})],a.ScbMenuItem.prototype,"openLeft",2),et([l({type:Boolean})],a.ScbMenuItem.prototype,"divider",2),et([l({type:String,attribute:"leading-icon"})],a.ScbMenuItem.prototype,"leadingIcon",2),et([l({type:String,attribute:"trailing-icon"})],a.ScbMenuItem.prototype,"trailingIcon",2),et([l({type:String,attribute:"item-href"})],a.ScbMenuItem.prototype,"itemHref",2),a.ScbMenuItem=et([g("scb-menu-item")],a.ScbMenuItem);var Ah=Object.defineProperty,Th=Object.getOwnPropertyDescriptor,As=(o,e,t,i)=>{for(var r=i>1?void 0:i?Th(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ah(e,t,r),r};a.ScbSubMenu=class extends y{constructor(){super(...arguments),this.open=!1,this._show=()=>{this.setAttribute("open",""),this.open=!0},this._hide=e=>{this.removeAttribute("open"),this.open=!1,e&&e.stopPropagation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("show-submenu",this._show),this.addEventListener("hide-submenu",this._hide)}disconnectedCallback(){this.removeEventListener("show-submenu",this._show),this.removeEventListener("hide-submenu",this._hide),super.disconnectedCallback()}firstUpdated(){let e=0,t=this.parentElement;for(;t;)t.tagName==="SCB-SUB-MENU"&&e++,t=t.parentElement;e%2===1?this.setAttribute("open-left",""):this.removeAttribute("open-left")}render(){return c`
5441
5463
  <div role="menu" class="submenu${this.open?" open":""}">
5442
5464
  <slot></slot>
5443
5465
  </div>
@@ -5469,7 +5491,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
5469
5491
  .submenu.open {
5470
5492
  display: block;
5471
5493
  }
5472
- `,As([l({type:Boolean,reflect:!0})],a.ScbSubMenu.prototype,"open",2),a.ScbSubMenu=As([g("scb-sub-menu")],a.ScbSubMenu);var zh=Object.defineProperty,Th=Object.getOwnPropertyDescriptor,Ko=(o,e,t,i)=>{for(var r=i>1?void 0:i?Th(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&zh(e,t,r),r};a.ScbMenu=class extends y{constructor(){super(...arguments),this.open=!1,this.inSb=!1,this.__lastTriggerEl=null,this.__onDocumentClick=e=>{if(!this.inSb&&this.open&&!this.isClickInScbMenu(e)){this.__setOpen(!1);return}const t=this.__getActionFromEvent(e);if(t){t==="open"&&(this.__setOpen(!0),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))),t==="close"&&(this.__setOpen(!1),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))),t==="toggle"&&(this.__setOpen(!this.open),this.dispatchEvent(new CustomEvent("toggle",{bubbles:!0,composed:!0}))),e.stopPropagation();return}},this.__onDocumentKeydown=e=>{if(this.open&&e.key==="Escape"){this.__setOpen(!1);return}}}render(){return c`
5494
+ `,As([l({type:Boolean,reflect:!0})],a.ScbSubMenu.prototype,"open",2),a.ScbSubMenu=As([g("scb-sub-menu")],a.ScbSubMenu);var Ih=Object.defineProperty,zh=Object.getOwnPropertyDescriptor,Ko=(o,e,t,i)=>{for(var r=i>1?void 0:i?zh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Ih(e,t,r),r};a.ScbMenu=class extends y{constructor(){super(...arguments),this.open=!1,this.inSb=!1,this.__lastTriggerEl=null,this.__onDocumentClick=e=>{if(!this.inSb&&this.open&&!this.isClickInScbMenu(e)){this.__setOpen(!1);return}const t=this.__getActionFromEvent(e);if(t){t==="open"&&(this.__setOpen(!0),this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0}))),t==="close"&&(this.__setOpen(!1),this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))),t==="toggle"&&(this.__setOpen(!this.open),this.dispatchEvent(new CustomEvent("toggle",{bubbles:!0,composed:!0}))),e.stopPropagation();return}},this.__onDocumentKeydown=e=>{if(this.open&&e.key==="Escape"){this.__setOpen(!1);return}}}render(){return c`
5473
5495
  <div
5474
5496
  role="menu"
5475
5497
  class="scb-menu-panel${this.open?" open":""}"
@@ -6058,7 +6080,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
6058
6080
  50% { margin-left: 30%; width: 60%; }
6059
6081
  100% { margin-left: 100%; width: 40%; }
6060
6082
  }
6061
- `],bi([l({type:String})],a.ScbProgressIndicator.prototype,"id",2),bi([l({type:String,reflect:!0})],a.ScbProgressIndicator.prototype,"type",2),bi([l({type:Number,reflect:!0})],a.ScbProgressIndicator.prototype,"progress",2),bi([l({type:Boolean,attribute:"is-static"})],a.ScbProgressIndicator.prototype,"isStatic",2),a.ScbProgressIndicator=bi([g("scb-progress-indicator")],a.ScbProgressIndicator);var Hh=Object.defineProperty,Nh=Object.getOwnPropertyDescriptor,Is=o=>{throw TypeError(o)},Bt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Nh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Hh(e,t,r),r},qh=(o,e,t)=>e.has(o)||Is("Cannot "+t),mi=(o,e,t)=>(qh(o,e,"read from private field"),t?t.call(o):e.get(o)),zs=(o,e,t)=>e.has(o)?Is("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),fi,wr;a.ScbRadioGroup=class extends y{constructor(){super(...arguments),this.name="",this.orientation="vertical",this.disabled=!1,this.ariaLabel=null,this.spacing="item",zs(this,fi,()=>{var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!e)return;const t=e.assignedElements({flatten:!0}).filter(r=>r.tagName.toLowerCase()==="scb-radio-button");for(const r of t)this.name&&r.setAttribute("name",this.name),this.disabled?r.setAttribute("disabled",""):r.removeAttribute("disabled"),this.orientation==="horizontal"?r.setAttribute("orientation","horizontal"):r.removeAttribute("orientation"),this.spacing==="group"?r.style.setProperty("--scb-radio-gap","0"):r.style.removeProperty("--scb-radio-gap")}),zs(this,wr,e=>{var r,s;const t=e.composedPath().find(n=>{var h;return((h=n==null?void 0:n.tagName)==null?void 0:h.toLowerCase())==="scb-radio-button"}),i=(t==null?void 0:t.value)??((r=t==null?void 0:t.getAttribute)==null?void 0:r.call(t,"value"))??((s=e.target)==null?void 0:s.value)??"";this.dispatchEvent(new CustomEvent("scb-change",{detail:{value:String(i??""),originalIsTrusted:(e==null?void 0:e.isTrusted)===!0},bubbles:!0,composed:!0}))})}render(){const e=this.orientation==="horizontal"?"row":"column";return c`
6083
+ `],bi([l({type:String})],a.ScbProgressIndicator.prototype,"id",2),bi([l({type:String,reflect:!0})],a.ScbProgressIndicator.prototype,"type",2),bi([l({type:Number,reflect:!0})],a.ScbProgressIndicator.prototype,"progress",2),bi([l({type:Boolean,attribute:"is-static"})],a.ScbProgressIndicator.prototype,"isStatic",2),a.ScbProgressIndicator=bi([g("scb-progress-indicator")],a.ScbProgressIndicator);var Hh=Object.defineProperty,Nh=Object.getOwnPropertyDescriptor,Ts=o=>{throw TypeError(o)},Bt=(o,e,t,i)=>{for(var r=i>1?void 0:i?Nh(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&Hh(e,t,r),r},qh=(o,e,t)=>e.has(o)||Ts("Cannot "+t),mi=(o,e,t)=>(qh(o,e,"read from private field"),t?t.call(o):e.get(o)),Is=(o,e,t)=>e.has(o)?Ts("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),fi,wr;a.ScbRadioGroup=class extends y{constructor(){super(...arguments),this.name="",this.orientation="vertical",this.disabled=!1,this.ariaLabel=null,this.spacing="item",Is(this,fi,()=>{var i;const e=(i=this.shadowRoot)==null?void 0:i.querySelector("slot");if(!e)return;const t=e.assignedElements({flatten:!0}).filter(r=>r.tagName.toLowerCase()==="scb-radio-button");for(const r of t)this.name&&r.setAttribute("name",this.name),this.disabled?r.setAttribute("disabled",""):r.removeAttribute("disabled"),this.orientation==="horizontal"?r.setAttribute("orientation","horizontal"):r.removeAttribute("orientation"),this.spacing==="group"?r.style.setProperty("--scb-radio-gap","0"):r.style.removeProperty("--scb-radio-gap")}),Is(this,wr,e=>{var r,s;const t=e.composedPath().find(n=>{var h;return((h=n==null?void 0:n.tagName)==null?void 0:h.toLowerCase())==="scb-radio-button"}),i=(t==null?void 0:t.value)??((r=t==null?void 0:t.getAttribute)==null?void 0:r.call(t,"value"))??((s=e.target)==null?void 0:s.value)??"";this.dispatchEvent(new CustomEvent("scb-change",{detail:{value:String(i??""),originalIsTrusted:(e==null?void 0:e.isTrusted)===!0},bubbles:!0,composed:!0}))})}render(){const e=this.orientation==="horizontal"?"row":"column";return c`
6062
6084
  <div
6063
6085
  class="g"
6064
6086
  role="radiogroup"
@@ -6676,7 +6698,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
6676
6698
  ::slotted(scb-step[symbol-variant="marker"]:not(:first-child))::before {
6677
6699
  top: 20px;
6678
6700
  }
6679
- `,_t([l({type:String,reflect:!0})],a.ScbStepper.prototype,"type",2),_t([l({type:String,reflect:!0})],a.ScbStepper.prototype,"label",2),_t([l({type:Boolean,reflect:!0,attribute:"change-on-completed"})],a.ScbStepper.prototype,"changeOnCompleted",2),_t([l({type:String})],a.ScbStepper.prototype,"variant",2),_t([l({type:String,reflect:!0,attribute:"symbol-variant"})],a.ScbStepper.prototype,"symbolVariant",2),_t([w()],a.ScbStepper.prototype,"activeIndex",2),a.ScbStepper=_t([g("scb-stepper")],a.ScbStepper);var op=Object.defineProperty,ap=Object.getOwnPropertyDescriptor,Ts=o=>{throw TypeError(o)},xt=(o,e,t,i)=>{for(var r=i>1?void 0:i?ap(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&op(e,t,r),r},Os=(o,e,t)=>e.has(o)||Ts("Cannot "+t),sp=(o,e,t)=>(Os(o,e,"read from private field"),e.get(o)),np=(o,e,t)=>e.has(o)?Ts("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),lp=(o,e,t,i)=>(Os(o,e,"write to private field"),e.set(o,t),t),kr;a.ScbSwitch=class extends y{constructor(){super(...arguments),this.label="",this.ariaLabel="",this.icons=!1,this.selected=!1,this.disabled=!1,this.fullWidth=!1,np(this,kr,!1)}updated(){this.toggleAttribute("aria-disabled",this.disabled)}async firstUpdated(){var t;sp(this,kr)||(await Promise.resolve().then(()=>bc),lp(this,kr,!0));const e=(t=this.shadowRoot)==null?void 0:t.querySelector("md-switch");e==null||e.addEventListener("change",i=>{this.selected=i.target.selected,this.dispatchEvent(new CustomEvent("change",{detail:{selected:this.selected},bubbles:!0,composed:!0}))})}render(){const e=this.label.trim().length>0,t=e?u:this.ariaLabel||u,i=c`
6701
+ `,_t([l({type:String,reflect:!0})],a.ScbStepper.prototype,"type",2),_t([l({type:String,reflect:!0})],a.ScbStepper.prototype,"label",2),_t([l({type:Boolean,reflect:!0,attribute:"change-on-completed"})],a.ScbStepper.prototype,"changeOnCompleted",2),_t([l({type:String})],a.ScbStepper.prototype,"variant",2),_t([l({type:String,reflect:!0,attribute:"symbol-variant"})],a.ScbStepper.prototype,"symbolVariant",2),_t([w()],a.ScbStepper.prototype,"activeIndex",2),a.ScbStepper=_t([g("scb-stepper")],a.ScbStepper);var op=Object.defineProperty,ap=Object.getOwnPropertyDescriptor,zs=o=>{throw TypeError(o)},xt=(o,e,t,i)=>{for(var r=i>1?void 0:i?ap(e,t):e,s=o.length-1,n;s>=0;s--)(n=o[s])&&(r=(i?n(e,t,r):n(r))||r);return i&&r&&op(e,t,r),r},Os=(o,e,t)=>e.has(o)||zs("Cannot "+t),sp=(o,e,t)=>(Os(o,e,"read from private field"),e.get(o)),np=(o,e,t)=>e.has(o)?zs("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),lp=(o,e,t,i)=>(Os(o,e,"write to private field"),e.set(o,t),t),kr;a.ScbSwitch=class extends y{constructor(){super(...arguments),this.label="",this.ariaLabel="",this.icons=!1,this.selected=!1,this.disabled=!1,this.fullWidth=!1,np(this,kr,!1)}updated(){this.toggleAttribute("aria-disabled",this.disabled)}async firstUpdated(){var t;sp(this,kr)||(await Promise.resolve().then(()=>bc),lp(this,kr,!0));const e=(t=this.shadowRoot)==null?void 0:t.querySelector("md-switch");e==null||e.addEventListener("change",i=>{this.selected=i.target.selected,this.dispatchEvent(new CustomEvent("change",{detail:{selected:this.selected},bubbles:!0,composed:!0}))})}render(){const e=this.label.trim().length>0,t=e?u:this.ariaLabel||u,i=c`
6680
6702
  <md-switch
6681
6703
  ?icons=${this.icons}
6682
6704
  ?selected=${this.selected}
@@ -6808,6 +6830,7 @@ var ScbWcTest=function(a){"use strict";var Rs;function d(o,e,t,i){var r=argument
6808
6830
  --scb-textfield-tel-max-width:400px;
6809
6831
  --scb-textfield-url-max-width:400px;
6810
6832
  --scb-textfield-textarea-max-width:600px;
6833
+ font-family: var(--brand-font);
6811
6834
  }
6812
6835
  :host([type="number"]) {
6813
6836
  --scb-textfield-max-width: var(--scb-textfield-number-max-width);