@fluid-topics/ft-radio 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/build/ft-radio.min.js +120 -116
  2. package/package.json +5 -5
@@ -12,43 +12,43 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(n.set(i,l),l.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)a.delete(t),y(t,l,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){u.push(this),r.upgrade.apply(r,arguments),u.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=c;if(o)return c=void 0,o;const e=n.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!l(o)){const t=u[u.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),l(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=p(e)||window.customElements,i=r._getDefinition(o);return i?y(e,i):a.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const a=t.toLowerCase();if(o.has(a)){const t=this.getAttribute(a);r.call(this,a,i),e.call(this,a,t,i)}else r.call(this,a,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const a=t.prototype.toggleAttribute;a&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);a.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else a.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),c=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=g.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let u=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){u.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),u.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){u.push(this),e.set.call(this,t),u.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class a{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new a(o)}})}}try{window.customElements.define("custom-element",null)}catch(oe){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(n.set(i,l),l.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)a.delete(t),y(t,l,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){u.push(this),r.upgrade.apply(r,arguments),u.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=c;if(o)return c=void 0,o;const e=n.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!l(o)){const t=u[u.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),l(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=p(e)||window.customElements,i=r._getDefinition(o);return i?y(e,i):a.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const a=t.toLowerCase();if(o.has(a)){const t=this.getAttribute(a);r.call(this,a,i),e.call(this,a,t,i)}else r.call(this,a,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const a=t.prototype.toggleAttribute;a&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);a.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else a.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),c=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=g.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let u=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){u.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),u.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){u.push(this),e.set.call(this,t),u.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class a{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new a(o)}})}}try{window.customElements.define("custom-element",null)}catch(ee){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
19
19
  * SPDX-License-Identifier: BSD-3-Clause
20
- */const e=globalThis,r=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),a=new WeakMap;const n=t=>new class{constructor(t,o,e){if(this._$cssResult$=!0,e!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const o=this.t;if(r&&void 0===t){const e=void 0!==o&&1===o.length;e&&(t=a.get(o)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&a.set(o,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,i),s=r?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let o="";for(const e of t.cssRules)o+=e.cssText;return n(o)})(t):t
20
+ */const o=globalThis,e=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),i=new WeakMap;const a=t=>new class{constructor(t,o,e){if(this._$cssResult$=!0,e!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const o=this.t;if(e&&void 0===t){const e=void 0!==o&&1===o.length;e&&(t=i.get(o)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&i.set(o,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,r),n=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let o="";for(const e of t.cssRules)o+=e.cssText;return a(o)})(t):t
21
21
  /**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */,{is:c,defineProperty:l,getOwnPropertyDescriptor:p,getOwnPropertyNames:f,getOwnPropertySymbols:h,getPrototypeOf:d}=Object,y=globalThis,g=y.trustedTypes,u=g?g.emptyScript:"",b=y.reactiveElementPolyfillSupport,m=(t,o)=>t,O={toAttribute(t,o){switch(o){case Boolean:t=t?u:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},N=(t,o)=>!c(t,o),S={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:N};Symbol.metadata??=Symbol("metadata"),y.litPropertyMetadata??=new WeakMap;let x=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=S){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){const e=Symbol(),r=this.getPropertyDescriptor(t,e,o);void 0!==r&&l(this.prototype,t,r)}}static getPropertyDescriptor(t,o,e){const{get:r,set:i}=p(this.prototype,t)??{get(){return this[o]},set(t){this[o]=t}};return{get(){return r?.call(this)},set(o){const a=r?.call(this);i.call(this,o),this.requestUpdate(t,a,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??S}static _$Ei(){if(this.hasOwnProperty(m("elementProperties")))return;const t=d(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(m("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(m("properties"))){const t=this.properties,o=[...f(t),...h(t)];for(const e of o)this.createProperty(e,t[e])}const t=this[Symbol.metadata];if(null!==t){const o=litPropertyMetadata.get(t);if(void 0!==o)for(const[t,e]of o)this.elementProperties.set(t,e)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const e=this._$Eu(t,o);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(s(t))}else void 0!==t&&o.push(s(t));return o}static _$Eu(t,o){const e=o.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,o=this.constructor.elementProperties;for(const e of o.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{if(r)t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const r of o){const o=document.createElement("style"),i=e.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=r.cssText,t.appendChild(o)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o){const e=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,e);if(void 0!==r&&!0===e.reflect){const i=(void 0!==e.converter?.toAttribute?e.converter:O).toAttribute(o,e.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,o){const e=this.constructor,r=e._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=e.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:O;this._$Em=r,this[r]=i.fromAttribute(o,t.type),this._$Em=null}}requestUpdate(t,o,e,r=!1,i){if(void 0!==t){if(e??=this.constructor.getPropertyOptions(t),!(e.hasChanged??N)(r?i:this[t],o))return;this.C(t,o,e)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,o,e){this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,o]of this._$Ep)this[t]=o;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[o,e]of t)!0!==e.wrapped||this._$AL.has(o)||void 0===this[o]||this.C(o,this[o],e)}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(o)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};x.elementStyles=[],x.shadowRootOptions={mode:"open"},x[m("elementProperties")]=new Map,x[m("finalized")]=new Map,b?.({ReactiveElement:x}),(y.reactiveElementVersions??=[]).push("2.0.2");
25
+ */,{is:s,defineProperty:c,getOwnPropertyDescriptor:l,getOwnPropertyNames:p,getOwnPropertySymbols:f,getPrototypeOf:h}=Object,d=globalThis,y=d.trustedTypes,g=y?y.emptyScript:"",u=d.reactiveElementPolyfillSupport,b=(t,o)=>t,m={toAttribute(t,o){switch(o){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},O=(t,o)=>!s(t,o),N={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:O};Symbol.metadata??=Symbol("metadata"),d.litPropertyMetadata??=new WeakMap;let S=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=N){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){const e=Symbol(),r=this.getPropertyDescriptor(t,e,o);void 0!==r&&c(this.prototype,t,r)}}static getPropertyDescriptor(t,o,e){const{get:r,set:i}=l(this.prototype,t)??{get(){return this[o]},set(t){this[o]=t}};return{get(){return r?.call(this)},set(o){const a=r?.call(this);i.call(this,o),this.requestUpdate(t,a,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??N}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=h(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,o=[...p(t),...f(t)];for(const e of o)this.createProperty(e,t[e])}const t=this[Symbol.metadata];if(null!==t){const o=litPropertyMetadata.get(t);if(void 0!==o)for(const[t,e]of o)this.elementProperties.set(t,e)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const e=this._$Eu(t,o);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(n(t))}else void 0!==t&&o.push(n(t));return o}static _$Eu(t,o){const e=o.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,o=this.constructor.elementProperties;for(const e of o.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,r)=>{if(e)t.adoptedStyleSheets=r.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of r){const r=document.createElement("style"),i=o.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=e.cssText,t.appendChild(r)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o){const e=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,e);if(void 0!==r&&!0===e.reflect){const i=(void 0!==e.converter?.toAttribute?e.converter:m).toAttribute(o,e.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,o){const e=this.constructor,r=e._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=e.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=r,this[r]=i.fromAttribute(o,t.type),this._$Em=null}}requestUpdate(t,o,e,r=!1,i){if(void 0!==t){if(e??=this.constructor.getPropertyOptions(t),!(e.hasChanged??O)(r?i:this[t],o))return;this.C(t,o,e)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,o,e){this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,o]of this._$Ep)this[t]=o;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[o,e]of t)!0!==e.wrapped||this._$AL.has(o)||void 0===this[o]||this.C(o,this[o],e)}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(o)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[b("elementProperties")]=new Map,S[b("finalized")]=new Map,u?.({ReactiveElement:S}),(d.reactiveElementVersions??=[]).push("2.0.2");
26
26
  /**
27
27
  * @license
28
28
  * Copyright 2017 Google LLC
29
29
  * SPDX-License-Identifier: BSD-3-Clause
30
30
  */
31
- const v={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:N},w=(t=v,o,e)=>{const{kind:r,metadata:i}=e;let a=globalThis.litPropertyMetadata.get(i);if(void 0===a&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(e.name,t),"accessor"===r){const{name:r}=e;return{set(e){const i=o.get.call(this);o.set.call(this,e),this.requestUpdate(r,i,t)},init(o){return void 0!==o&&this.C(r,void 0,t),o}}}if("setter"===r){const{name:r}=e;return function(e){const i=this[r];o.call(this,e),this.requestUpdate(r,i,t)}}throw Error("Unsupported decorator location: "+r)};function C(t){return(o,e)=>"object"==typeof e?w(t,o,e):((t,o,e)=>{const r=o.hasOwnProperty(e);return o.constructor.createProperty(e,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(o,e):void 0})(t,o,e)
31
+ const x={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:O},v=(t=x,o,e)=>{const{kind:r,metadata:i}=e;let a=globalThis.litPropertyMetadata.get(i);if(void 0===a&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(e.name,t),"accessor"===r){const{name:r}=e;return{set(e){const i=o.get.call(this);o.set.call(this,e),this.requestUpdate(r,i,t)},init(o){return void 0!==o&&this.C(r,void 0,t),o}}}if("setter"===r){const{name:r}=e;return function(e){const i=this[r];o.call(this,e),this.requestUpdate(r,i,t)}}throw Error("Unsupported decorator location: "+r)};function w(t){return(o,e)=>"object"==typeof e?v(t,o,e):((t,o,e)=>{const r=o.hasOwnProperty(e);return o.constructor.createProperty(e,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(o,e):void 0})(t,o,e)
32
32
  /**
33
33
  * @license
34
34
  * Copyright 2017 Google LLC
35
35
  * SPDX-License-Identifier: BSD-3-Clause
36
- */}function R(t){return C({...t,state:!0,attribute:!1})}
36
+ */}function C(t){return w({...t,state:!0,attribute:!1})}
37
37
  /**
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */const U=(t,o,e)=>(e.configurable=!0,e.enumerable=!0,e)
41
+ */const R=(t,o,e)=>(e.configurable=!0,e.enumerable=!0,e)
42
42
  /**
43
43
  * @license
44
44
  * Copyright 2017 Google LLC
45
45
  * SPDX-License-Identifier: BSD-3-Clause
46
- */;function E(t,o){return(e,r,i)=>{const a=o=>o.renderRoot?.querySelector(t)??null;if(o){const{get:t,set:o}="object"==typeof r?e:i??(()=>{const t=Symbol();return{get(){return this[t]},set(o){this[t]=o}}})();return U(0,0,{get(){let e=t.call(this);return void 0===e&&(e=a(this),(null!==e||this.hasUpdated)&&o.call(this,e)),e}})}return U(0,0,{get(){return a(this)}})}}
46
+ */;function E(t,o){return(e,r,i)=>{const a=o=>o.renderRoot?.querySelector(t)??null;if(o){const{get:t,set:o}="object"==typeof r?e:i??(()=>{const t=Symbol();return{get(){return this[t]},set(o){this[t]=o}}})();return R(0,0,{get(){let e=t.call(this);return void 0===e&&(e=a(this),(null!==e||this.hasUpdated)&&o.call(this,e)),e}})}return R(0,0,{get(){return a(this)}})}}
47
47
  /**
48
48
  * @license
49
49
  * Copyright 2021 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
- */function I(t,o){try{return function(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var e,r,i;if(Array.isArray(t)){if((e=t.length)!=o.length)return!1;for(r=e;0!=r--;)if(!I(t[r],o[r]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;for(r of t.entries())if(!I(r[1],o.get(r[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if((e=(i=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(r=e;0!=r--;)if(!Object.prototype.hasOwnProperty.call(o,i[r]))return!1;for(r=e;0!=r--;){var a=i[r];if(!I(t[a],o[a]))return!1}return!0}return t!=t&&o!=o}(t,o)}catch(t){return!1}}const W=t=>o=>{window.customElements.get(t)||window.customElements.define(t,o)};
51
+ */class U{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}function I(t,o){try{return function(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var e,r,i;if(Array.isArray(t)){if((e=t.length)!=o.length)return!1;for(r=e;0!=r--;)if(!I(t[r],o[r]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;for(r of t.entries())if(!I(r[1],o.get(r[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if((e=(i=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(r=e;0!=r--;)if(!Object.prototype.hasOwnProperty.call(o,i[r]))return!1;for(r=e;0!=r--;){var a=i[r];if(!I(t[a],o[a]))return!1}return!0}return t!=t&&o!=o}(t,o)}catch(t){return!1}}const W=t=>o=>{window.customElements.get(t)||window.customElements.define(t,o)};
52
52
  /**
53
53
  * @license
54
54
  * Copyright 2017 Google LLC
@@ -65,7 +65,7 @@ const ft=globalThis,ht=ft.ShadowRoot&&(void 0===ft.ShadyCSS||ft.ShadyCSS.nativeS
65
65
  * @license
66
66
  * Copyright 2017 Google LLC
67
67
  * SPDX-License-Identifier: BSD-3-Clause
68
- */,{is:Ot,defineProperty:Nt,getOwnPropertyDescriptor:St,getOwnPropertyNames:xt,getOwnPropertySymbols:vt,getPrototypeOf:wt}=Object,Ct=globalThis,Rt=Ct.trustedTypes,Ut=Rt?Rt.emptyScript:"",Et=Ct.reactiveElementPolyfillSupport,It=(t,o)=>t,Wt={toAttribute(t,o){switch(o){case Boolean:t=t?Ut:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},$t=(t,o)=>!Ot(t,o),kt={attribute:!0,type:String,converter:Wt,reflect:!1,hasChanged:$t};Symbol.metadata??=Symbol("metadata"),Ct.litPropertyMetadata??=new WeakMap;class Lt extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=kt){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){const e=Symbol(),r=this.getPropertyDescriptor(t,e,o);void 0!==r&&Nt(this.prototype,t,r)}}static getPropertyDescriptor(t,o,e){const{get:r,set:i}=St(this.prototype,t)??{get(){return this[o]},set(t){this[o]=t}};return{get(){return r?.call(this)},set(o){const a=r?.call(this);i.call(this,o),this.requestUpdate(t,a,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??kt}static _$Ei(){if(this.hasOwnProperty(It("elementProperties")))return;const t=wt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(It("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(It("properties"))){const t=this.properties,o=[...xt(t),...vt(t)];for(const e of o)this.createProperty(e,t[e])}const t=this[Symbol.metadata];if(null!==t){const o=litPropertyMetadata.get(t);if(void 0!==o)for(const[t,e]of o)this.elementProperties.set(t,e)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const e=this._$Eu(t,o);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(mt(t))}else void 0!==t&&o.push(mt(t));return o}static _$Eu(t,o){const e=o.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,o=this.constructor.elementProperties;for(const e of o.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{if(ht)t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),r=ft.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o){const e=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,e);if(void 0!==r&&!0===e.reflect){const i=(void 0!==e.converter?.toAttribute?e.converter:Wt).toAttribute(o,e.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,o){const e=this.constructor,r=e._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=e.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Wt;this._$Em=r,this[r]=i.fromAttribute(o,t.type),this._$Em=null}}requestUpdate(t,o,e,r=!1,i){if(void 0!==t){if(e??=this.constructor.getPropertyOptions(t),!(e.hasChanged??$t)(r?i:this[t],o))return;this.C(t,o,e)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,o,e){this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,o]of this._$Ep)this[t]=o;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[o,e]of t)!0!==e.wrapped||this._$AL.has(o)||void 0===this[o]||this.C(o,this[o],e)}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(o)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}}Lt.elementStyles=[],Lt.shadowRootOptions={mode:"open"},Lt[It("elementProperties")]=new Map,Lt[It("finalized")]=new Map,Et?.({ReactiveElement:Lt}),(Ct.reactiveElementVersions??=[]).push("2.0.2");
68
+ */,{is:Ot,defineProperty:Nt,getOwnPropertyDescriptor:St,getOwnPropertyNames:xt,getOwnPropertySymbols:vt,getPrototypeOf:wt}=Object,Ct=globalThis,Rt=Ct.trustedTypes,Et=Rt?Rt.emptyScript:"",Ut=Ct.reactiveElementPolyfillSupport,It=(t,o)=>t,Wt={toAttribute(t,o){switch(o){case Boolean:t=t?Et:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},$t=(t,o)=>!Ot(t,o),kt={attribute:!0,type:String,converter:Wt,reflect:!1,hasChanged:$t};Symbol.metadata??=Symbol("metadata"),Ct.litPropertyMetadata??=new WeakMap;class Lt extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=kt){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){const e=Symbol(),r=this.getPropertyDescriptor(t,e,o);void 0!==r&&Nt(this.prototype,t,r)}}static getPropertyDescriptor(t,o,e){const{get:r,set:i}=St(this.prototype,t)??{get(){return this[o]},set(t){this[o]=t}};return{get(){return r?.call(this)},set(o){const a=r?.call(this);i.call(this,o),this.requestUpdate(t,a,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??kt}static _$Ei(){if(this.hasOwnProperty(It("elementProperties")))return;const t=wt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(It("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(It("properties"))){const t=this.properties,o=[...xt(t),...vt(t)];for(const e of o)this.createProperty(e,t[e])}const t=this[Symbol.metadata];if(null!==t){const o=litPropertyMetadata.get(t);if(void 0!==o)for(const[t,e]of o)this.elementProperties.set(t,e)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const e=this._$Eu(t,o);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(mt(t))}else void 0!==t&&o.push(mt(t));return o}static _$Eu(t,o){const e=o.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,o=this.constructor.elementProperties;for(const e of o.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{if(ht)t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),r=ft.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o){const e=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,e);if(void 0!==r&&!0===e.reflect){const i=(void 0!==e.converter?.toAttribute?e.converter:Wt).toAttribute(o,e.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,o){const e=this.constructor,r=e._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=e.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Wt;this._$Em=r,this[r]=i.fromAttribute(o,t.type),this._$Em=null}}requestUpdate(t,o,e,r=!1,i){if(void 0!==t){if(e??=this.constructor.getPropertyOptions(t),!(e.hasChanged??$t)(r?i:this[t],o))return;this.C(t,o,e)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,o,e){this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,o]of this._$Ep)this[t]=o;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[o,e]of t)!0!==e.wrapped||this._$AL.has(o)||void 0===this[o]||this.C(o,this[o],e)}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(o)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}}Lt.elementStyles=[],Lt.shadowRootOptions={mode:"open"},Lt[It("elementProperties")]=new Map,Lt[It("finalized")]=new Map,Ut?.({ReactiveElement:Lt}),(Ct.reactiveElementVersions??=[]).push("2.0.2");
69
69
  /**
70
70
  * @license
71
71
  * Copyright 2017 Google LLC
@@ -82,7 +82,11 @@ class uo extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
82
82
  * @license
83
83
  * Copyright 2019 Google LLC
84
84
  * SPDX-License-Identifier: BSD-3-Clause
85
- */class Ro extends uo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Co?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=wo.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Uo,Eo=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const Io=Symbol("constructorPrototype"),Wo=Symbol("constructorName"),$o=Symbol("exportpartsDebouncer");class ko extends Ro{constructor(){super(),this[Uo]=new o(5),this[Wo]=this.constructor.name,this[Io]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Wo]&&Object.setPrototypeOf(this,this[Io])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[$o].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,r,i,a,n;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=null!==(n=null===(a=t.getAttribute("exportparts"))||void 0===a?void 0:a.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const p=[...l.values()].flatMap((t=>c.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}var Lo,Ko;Uo=$o,Eo([C()],ko.prototype,"exportpartsPrefix",void 0),Eo([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!I(t,o),...null!=o?o:{}})}([])],ko.prototype,"exportpartsPrefixes",void 0),Eo([C()],ko.prototype,"customStylesheet",void 0),bt`
85
+ */class Ro extends uo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Co?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=wo.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Eo,Uo=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const Io=Symbol("constructorPrototype"),Wo=Symbol("constructorName"),$o=Symbol("exportpartsDebouncer");class ko extends Ro{constructor(){super(),this[Eo]=new U(5),this[Wo]=this.constructor.name,this[Io]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Wo]&&Object.setPrototypeOf(this,this[Io])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[$o].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,r,i,a,n;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=null!==(n=null===(a=t.getAttribute("exportparts"))||void 0===a?void 0:a.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const p=[...l.values()].flatMap((t=>c.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}Eo=$o,Uo([w()],ko.prototype,"exportpartsPrefix",void 0),Uo([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return w({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!I(t,o),...null!=o?o:{}})}([])],ko.prototype,"exportpartsPrefixes",void 0),Uo([w()],ko.prototype,"customStylesheet",void 0);const Lo=Oo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");var Ko,Zo;bt`
86
+ .highlight-html-match {
87
+ background: ${Lo};
88
+ }
89
+ `,bt`
86
90
  .ft-no-text-select {
87
91
  -webkit-touch-callout: none;
88
92
  -webkit-user-select: none;
@@ -114,18 +118,18 @@ class uo extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
114
118
  display: inline-block;
115
119
  width: 0;
116
120
  }
117
- `,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Ko=null===(Lo=window.safari)||void 0===Lo?void 0:Lo.pushNotification)||void 0===Ko||Ko.toString());
121
+ `,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Zo=null===(Ko=window.safari)||void 0===Ko?void 0:Ko.pushNotification)||void 0===Zo||Zo.toString());
118
122
  /**
119
123
  * @license
120
124
  * Copyright 2017 Google LLC
121
125
  * SPDX-License-Identifier: BSD-3-Clause
122
126
  */
123
- const Zo=1;let Fo=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};
127
+ const Fo=1;let zo=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};
124
128
  /**
125
129
  * @license
126
130
  * Copyright 2018 Google LLC
127
131
  * SPDX-License-Identifier: BSD-3-Clause
128
- */const zo=(t=>(...o)=>({_$litDirective$:t,values:o}))(class extends Fo{constructor(t){if(super(t),t.type!==Zo||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const r=!!o[t];r===this.it.has(t)||this.st?.has(t)||(r?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return X}}),Ao=Oo.extend("--ft-ripple-color","",vo.colorContent),Do=Ao,Mo=Oo.extend("--ft-ripple-background-color","",Ao),Bo=Oo.external(vo.opacityContentOnSurfacePressed,"Design system"),Po=Oo.external(vo.opacityContentOnSurfaceHover,"Design system"),Ho=Oo.external(vo.opacityContentOnSurfaceFocused,"Design system"),_o=Oo.external(vo.opacityContentOnSurfaceSelected,"Design system"),jo=Oo.create("--ft-ripple-border-radius","","SIZE","0px"),To=Oo.extend("--ft-ripple-color","",vo.colorPrimary),Go=To,Yo=Oo.extend("--ft-ripple-background-color","",To),Vo=Oo.extend("--ft-ripple-color","",vo.colorSecondary),Jo=Vo,Xo=Oo.extend("--ft-ripple-background-color","",Vo),qo=bt`
132
+ */const Ao=(t=>(...o)=>({_$litDirective$:t,values:o}))(class extends zo{constructor(t){if(super(t),t.type!==Fo||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const r=!!o[t];r===this.it.has(t)||this.st?.has(t)||(r?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return X}}),Do=Oo.extend("--ft-ripple-color","",vo.colorContent),Mo=Do,Bo=Oo.extend("--ft-ripple-background-color","",Do),Po=Oo.external(vo.opacityContentOnSurfacePressed,"Design system"),Ho=Oo.external(vo.opacityContentOnSurfaceHover,"Design system"),_o=Oo.external(vo.opacityContentOnSurfaceFocused,"Design system"),jo=Oo.external(vo.opacityContentOnSurfaceSelected,"Design system"),To=Oo.create("--ft-ripple-border-radius","","SIZE","0px"),Go=Oo.extend("--ft-ripple-color","",vo.colorPrimary),Yo=Go,Vo=Oo.extend("--ft-ripple-background-color","",Go),Jo=Oo.extend("--ft-ripple-color","",vo.colorSecondary),Xo=Jo,qo=Oo.extend("--ft-ripple-background-color","",Jo),Qo=bt`
129
133
  :host {
130
134
  display: contents;
131
135
  }
@@ -138,7 +142,7 @@ const Zo=1;let Fo=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,
138
142
 
139
143
  .ft-ripple:not(.ft-ripple--unbounded) {
140
144
  overflow: hidden;
141
- border-radius: ${jo};
145
+ border-radius: ${To};
142
146
  }
143
147
 
144
148
  .ft-ripple .ft-ripple--background,
@@ -172,27 +176,27 @@ const Zo=1;let Fo=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,
172
176
  }
173
177
 
174
178
  .ft-ripple .ft-ripple--background {
175
- background-color: ${Mo};
179
+ background-color: ${Bo};
176
180
  }
177
181
 
178
182
  .ft-ripple .ft-ripple--effect {
179
- background-color: ${Do};
183
+ background-color: ${Mo};
180
184
  }
181
185
 
182
186
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
183
- background-color: ${Xo};
187
+ background-color: ${qo};
184
188
  }
185
189
 
186
190
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
187
- background-color: ${Jo};
191
+ background-color: ${Xo};
188
192
  }
189
193
 
190
194
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
191
- background-color: ${Yo};
195
+ background-color: ${Vo};
192
196
  }
193
197
 
194
198
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
195
- background-color: ${Go};
199
+ background-color: ${Yo};
196
200
  }
197
201
 
198
202
  .ft-ripple .ft-ripple--background {
@@ -222,130 +226,130 @@ const Zo=1;let Fo=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,
222
226
  }
223
227
 
224
228
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
225
- opacity: ${Po};
229
+ opacity: ${Ho};
226
230
  }
227
231
 
228
232
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
229
- opacity: ${_o};
233
+ opacity: ${jo};
230
234
  }
231
235
 
232
236
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
233
- opacity: ${Ho};
237
+ opacity: ${_o};
234
238
  }
235
239
 
236
240
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
237
- opacity: ${Bo};
241
+ opacity: ${Po};
238
242
  transform: translate(-50%, -50%) scale(1);
239
243
  }
240
- `;var Qo=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class te extends ko{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new o(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o(10),this.moveRipple=t=>{var o,e;let{x:r,y:i}=this.getCoordinates(t),a=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-a.x:a.width/2),this.originY=Math.round(null!=i?i-a.y:a.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Qt`
244
+ `;var te=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class oe extends ko{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new U(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new U(10),this.moveRipple=t=>{var o,e;let{x:r,y:i}=this.getCoordinates(t),a=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-a.x:a.width/2),this.originY=Math.round(null!=i?i-a.y:a.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Qt`
241
245
  <style>
242
246
  .ft-ripple .ft-ripple--effect {
243
247
  left: ${this.originX}px;
244
248
  top: ${this.originY}px;
245
249
  }
246
250
  </style>
247
- <div class="${zo(t)}">
251
+ <div class="${Ao(t)}">
248
252
  <div class="ft-ripple--background"></div>
249
253
  <div class="ft-ripple--effect"></div>
250
254
  </div>
251
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),r=o("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",r),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",i),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",r),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",i),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let r,i;return null!=o.x?({x:r,y:i}=o):null!=e.touches&&(r=e.touches[0].clientX,i=e.touches[0].clientY),{x:r,y:i}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}te.elementDefinitions={},te.styles=qo,Qo([C({type:Boolean})],te.prototype,"primary",void 0),Qo([C({type:Boolean})],te.prototype,"secondary",void 0),Qo([C({type:Boolean})],te.prototype,"unbounded",void 0),Qo([C({type:Boolean})],te.prototype,"activated",void 0),Qo([C({type:Boolean})],te.prototype,"selected",void 0),Qo([C({type:Boolean})],te.prototype,"disabled",void 0),Qo([R()],te.prototype,"hovered",void 0),Qo([R()],te.prototype,"focused",void 0),Qo([R()],te.prototype,"pressed",void 0),Qo([R()],te.prototype,"rippling",void 0),Qo([R()],te.prototype,"originX",void 0),Qo([R()],te.prototype,"originY",void 0),Qo([E(".ft-ripple")],te.prototype,"ripple",void 0),Qo([E(".ft-ripple--effect")],te.prototype,"rippleEffect",void 0),W("ft-ripple")(te);
255
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),r=o("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",r),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",i),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",r),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",i),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let r,i;return null!=o.x?({x:r,y:i}=o):null!=e.touches&&(r=e.touches[0].clientX,i=e.touches[0].clientY),{x:r,y:i}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}oe.elementDefinitions={},oe.styles=Qo,te([w({type:Boolean})],oe.prototype,"primary",void 0),te([w({type:Boolean})],oe.prototype,"secondary",void 0),te([w({type:Boolean})],oe.prototype,"unbounded",void 0),te([w({type:Boolean})],oe.prototype,"activated",void 0),te([w({type:Boolean})],oe.prototype,"selected",void 0),te([w({type:Boolean})],oe.prototype,"disabled",void 0),te([C()],oe.prototype,"hovered",void 0),te([C()],oe.prototype,"focused",void 0),te([C()],oe.prototype,"pressed",void 0),te([C()],oe.prototype,"rippling",void 0),te([C()],oe.prototype,"originX",void 0),te([C()],oe.prototype,"originY",void 0),te([E(".ft-ripple")],oe.prototype,"ripple",void 0),te([E(".ft-ripple--effect")],oe.prototype,"rippleEffect",void 0),W("ft-ripple")(oe);
252
256
  /**
253
257
  * @license
254
258
  * Copyright 2020 Google LLC
255
259
  * SPDX-License-Identifier: BSD-3-Clause
256
260
  */
257
- const oe=Symbol.for(""),ee=t=>{if(t?.r===oe)return t?._$litStatic$},re=t=>({_$litStatic$:t,r:oe}),ie=new Map,ae=(t=>(o,...e)=>{const r=e.length;let i,a;const n=[],s=[];let c,l=0,p=!1;for(;l<r;){for(c=o[l];l<r&&void 0!==(a=e[l],i=ee(a));)c+=i+o[++l],p=!0;l!==r&&s.push(a),n.push(c),l++}if(l===r&&n.push(o[r]),p){const t=n.join("$$lit$$");void 0===(o=ie.get(t))&&(n.raw=n,ie.set(t,o=n)),e=s}return t(o,...e)})(J);var ne;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(ne||(ne={}));const se=Oo.extend("--ft-typography-font-family","",vo.titleFont),ce=Oo.extend("--ft-typography-font-family","",vo.contentFont),le={fontFamily:ce,fontSize:Oo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Oo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Oo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Oo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Oo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},pe=Oo.extend("--ft-typography-title-font-family","",se),fe=Oo.extend("--ft-typography-title-font-size","",le.fontSize,"20px"),he=Oo.extend("--ft-typography-title-font-weight","",le.fontWeight,"normal"),de=Oo.extend("--ft-typography-title-letter-spacing","",le.letterSpacing,"0.15px"),ye=Oo.extend("--ft-typography-title-line-height","",le.lineHeight,"1.2"),ge=Oo.extend("--ft-typography-title-text-transform","",le.textTransform,"inherit"),ue=Oo.extend("--ft-typography-title-dense-font-family","",se),be=Oo.extend("--ft-typography-title-dense-font-size","",le.fontSize,"14px"),me=Oo.extend("--ft-typography-title-dense-font-weight","",le.fontWeight,"normal"),Oe=Oo.extend("--ft-typography-title-dense-letter-spacing","",le.letterSpacing,"0.105px"),Ne=Oo.extend("--ft-typography-title-dense-line-height","",le.lineHeight,"1.7"),Se=Oo.extend("--ft-typography-title-dense-text-transform","",le.textTransform,"inherit"),xe=Oo.extend("--ft-typography-subtitle1-font-family","",ce),ve=Oo.extend("--ft-typography-subtitle1-font-size","",le.fontSize,"16px"),we=Oo.extend("--ft-typography-subtitle1-font-weight","",le.fontWeight,"600"),Ce=Oo.extend("--ft-typography-subtitle1-letter-spacing","",le.letterSpacing,"0.144px"),Re=Oo.extend("--ft-typography-subtitle1-line-height","",le.lineHeight,"1.5"),Ue=Oo.extend("--ft-typography-subtitle1-text-transform","",le.textTransform,"inherit"),Ee=Oo.extend("--ft-typography-subtitle2-font-family","",ce),Ie=Oo.extend("--ft-typography-subtitle2-font-size","",le.fontSize,"14px"),We=Oo.extend("--ft-typography-subtitle2-font-weight","",le.fontWeight,"normal"),$e=Oo.extend("--ft-typography-subtitle2-letter-spacing","",le.letterSpacing,"0.098px"),ke=Oo.extend("--ft-typography-subtitle2-line-height","",le.lineHeight,"1.7"),Le=Oo.extend("--ft-typography-subtitle2-text-transform","",le.textTransform,"inherit"),Ke=Oo.extend("--ft-typography-body1-font-family","",ce),Ze=Oo.extend("--ft-typography-body1-font-size","",le.fontSize,"16px"),Fe=Oo.extend("--ft-typography-body1-font-weight","",le.fontWeight,"normal"),ze=Oo.extend("--ft-typography-body1-letter-spacing","",le.letterSpacing,"0.496px"),Ae=Oo.extend("--ft-typography-body1-line-height","",le.lineHeight,"1.5"),De=Oo.extend("--ft-typography-body1-text-transform","",le.textTransform,"inherit"),Me=Oo.extend("--ft-typography-body2-font-family","",ce),Be=Oo.extend("--ft-typography-body2-font-size","",le.fontSize,"14px"),Pe=Oo.extend("--ft-typography-body2-font-weight","",le.fontWeight,"normal"),He=Oo.extend("--ft-typography-body2-letter-spacing","",le.letterSpacing,"0.252px"),_e=Oo.extend("--ft-typography-body2-line-height","",le.lineHeight,"1.4"),je=Oo.extend("--ft-typography-body2-text-transform","",le.textTransform,"inherit"),Te=Oo.extend("--ft-typography-caption-font-family","",ce),Ge=Oo.extend("--ft-typography-caption-font-size","",le.fontSize,"12px"),Ye=Oo.extend("--ft-typography-caption-font-weight","",le.fontWeight,"normal"),Ve=Oo.extend("--ft-typography-caption-letter-spacing","",le.letterSpacing,"0.396px"),Je=Oo.extend("--ft-typography-caption-line-height","",le.lineHeight,"1.33"),Xe=Oo.extend("--ft-typography-caption-text-transform","",le.textTransform,"inherit"),qe=Oo.extend("--ft-typography-breadcrumb-font-family","",ce),Qe=Oo.extend("--ft-typography-breadcrumb-font-size","",le.fontSize,"10px"),tr=Oo.extend("--ft-typography-breadcrumb-font-weight","",le.fontWeight,"normal"),or=Oo.extend("--ft-typography-breadcrumb-letter-spacing","",le.letterSpacing,"0.33px"),er=Oo.extend("--ft-typography-breadcrumb-line-height","",le.lineHeight,"1.6"),rr=Oo.extend("--ft-typography-breadcrumb-text-transform","",le.textTransform,"inherit"),ir=Oo.extend("--ft-typography-overline-font-family","",ce),ar=Oo.extend("--ft-typography-overline-font-size","",le.fontSize,"10px"),nr=Oo.extend("--ft-typography-overline-font-weight","",le.fontWeight,"normal"),sr=Oo.extend("--ft-typography-overline-letter-spacing","",le.letterSpacing,"1.5px"),cr=Oo.extend("--ft-typography-overline-line-height","",le.lineHeight,"1.6"),lr=Oo.extend("--ft-typography-overline-text-transform","",le.textTransform,"uppercase"),pr=Oo.extend("--ft-typography-button-font-family","",ce),fr=Oo.extend("--ft-typography-button-font-size","",le.fontSize,"14px"),hr=Oo.extend("--ft-typography-button-font-weight","",le.fontWeight,"600"),dr=Oo.extend("--ft-typography-button-letter-spacing","",le.letterSpacing,"1.246px"),yr=Oo.extend("--ft-typography-button-line-height","",le.lineHeight,"1.15"),gr=Oo.extend("--ft-typography-button-text-transform","",le.textTransform,"uppercase"),ur=bt`
261
+ const ee=Symbol.for(""),re=t=>{if(t?.r===ee)return t?._$litStatic$},ie=t=>({_$litStatic$:t,r:ee}),ae=new Map,ne=(t=>(o,...e)=>{const r=e.length;let i,a;const n=[],s=[];let c,l=0,p=!1;for(;l<r;){for(c=o[l];l<r&&void 0!==(a=e[l],i=re(a));)c+=i+o[++l],p=!0;l!==r&&s.push(a),n.push(c),l++}if(l===r&&n.push(o[r]),p){const t=n.join("$$lit$$");void 0===(o=ae.get(t))&&(n.raw=n,ae.set(t,o=n)),e=s}return t(o,...e)})(J);var se;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(se||(se={}));const ce=Oo.extend("--ft-typography-font-family","",vo.titleFont),le=Oo.extend("--ft-typography-font-family","",vo.contentFont),pe={fontFamily:le,fontSize:Oo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Oo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Oo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Oo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Oo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},fe=Oo.extend("--ft-typography-title-font-family","",ce),he=Oo.extend("--ft-typography-title-font-size","",pe.fontSize,"20px"),de=Oo.extend("--ft-typography-title-font-weight","",pe.fontWeight,"normal"),ye=Oo.extend("--ft-typography-title-letter-spacing","",pe.letterSpacing,"0.15px"),ge=Oo.extend("--ft-typography-title-line-height","",pe.lineHeight,"1.2"),ue=Oo.extend("--ft-typography-title-text-transform","",pe.textTransform,"inherit"),be=Oo.extend("--ft-typography-title-dense-font-family","",ce),me=Oo.extend("--ft-typography-title-dense-font-size","",pe.fontSize,"14px"),Oe=Oo.extend("--ft-typography-title-dense-font-weight","",pe.fontWeight,"normal"),Ne=Oo.extend("--ft-typography-title-dense-letter-spacing","",pe.letterSpacing,"0.105px"),Se=Oo.extend("--ft-typography-title-dense-line-height","",pe.lineHeight,"1.7"),xe=Oo.extend("--ft-typography-title-dense-text-transform","",pe.textTransform,"inherit"),ve=Oo.extend("--ft-typography-subtitle1-font-family","",le),we=Oo.extend("--ft-typography-subtitle1-font-size","",pe.fontSize,"16px"),Ce=Oo.extend("--ft-typography-subtitle1-font-weight","",pe.fontWeight,"600"),Re=Oo.extend("--ft-typography-subtitle1-letter-spacing","",pe.letterSpacing,"0.144px"),Ee=Oo.extend("--ft-typography-subtitle1-line-height","",pe.lineHeight,"1.5"),Ue=Oo.extend("--ft-typography-subtitle1-text-transform","",pe.textTransform,"inherit"),Ie=Oo.extend("--ft-typography-subtitle2-font-family","",le),We=Oo.extend("--ft-typography-subtitle2-font-size","",pe.fontSize,"14px"),$e=Oo.extend("--ft-typography-subtitle2-font-weight","",pe.fontWeight,"normal"),ke=Oo.extend("--ft-typography-subtitle2-letter-spacing","",pe.letterSpacing,"0.098px"),Le=Oo.extend("--ft-typography-subtitle2-line-height","",pe.lineHeight,"1.7"),Ke=Oo.extend("--ft-typography-subtitle2-text-transform","",pe.textTransform,"inherit"),Ze=Oo.extend("--ft-typography-body1-font-family","",le),Fe=Oo.extend("--ft-typography-body1-font-size","",pe.fontSize,"16px"),ze=Oo.extend("--ft-typography-body1-font-weight","",pe.fontWeight,"normal"),Ae=Oo.extend("--ft-typography-body1-letter-spacing","",pe.letterSpacing,"0.496px"),De=Oo.extend("--ft-typography-body1-line-height","",pe.lineHeight,"1.5"),Me=Oo.extend("--ft-typography-body1-text-transform","",pe.textTransform,"inherit"),Be=Oo.extend("--ft-typography-body2-font-family","",le),Pe=Oo.extend("--ft-typography-body2-font-size","",pe.fontSize,"14px"),He=Oo.extend("--ft-typography-body2-font-weight","",pe.fontWeight,"normal"),_e=Oo.extend("--ft-typography-body2-letter-spacing","",pe.letterSpacing,"0.252px"),je=Oo.extend("--ft-typography-body2-line-height","",pe.lineHeight,"1.4"),Te=Oo.extend("--ft-typography-body2-text-transform","",pe.textTransform,"inherit"),Ge=Oo.extend("--ft-typography-caption-font-family","",le),Ye=Oo.extend("--ft-typography-caption-font-size","",pe.fontSize,"12px"),Ve=Oo.extend("--ft-typography-caption-font-weight","",pe.fontWeight,"normal"),Je=Oo.extend("--ft-typography-caption-letter-spacing","",pe.letterSpacing,"0.396px"),Xe=Oo.extend("--ft-typography-caption-line-height","",pe.lineHeight,"1.33"),qe=Oo.extend("--ft-typography-caption-text-transform","",pe.textTransform,"inherit"),Qe=Oo.extend("--ft-typography-breadcrumb-font-family","",le),tr=Oo.extend("--ft-typography-breadcrumb-font-size","",pe.fontSize,"10px"),or=Oo.extend("--ft-typography-breadcrumb-font-weight","",pe.fontWeight,"normal"),er=Oo.extend("--ft-typography-breadcrumb-letter-spacing","",pe.letterSpacing,"0.33px"),rr=Oo.extend("--ft-typography-breadcrumb-line-height","",pe.lineHeight,"1.6"),ir=Oo.extend("--ft-typography-breadcrumb-text-transform","",pe.textTransform,"inherit"),ar=Oo.extend("--ft-typography-overline-font-family","",le),nr=Oo.extend("--ft-typography-overline-font-size","",pe.fontSize,"10px"),sr=Oo.extend("--ft-typography-overline-font-weight","",pe.fontWeight,"normal"),cr=Oo.extend("--ft-typography-overline-letter-spacing","",pe.letterSpacing,"1.5px"),lr=Oo.extend("--ft-typography-overline-line-height","",pe.lineHeight,"1.6"),pr=Oo.extend("--ft-typography-overline-text-transform","",pe.textTransform,"uppercase"),fr=Oo.extend("--ft-typography-button-font-family","",le),hr=Oo.extend("--ft-typography-button-font-size","",pe.fontSize,"14px"),dr=Oo.extend("--ft-typography-button-font-weight","",pe.fontWeight,"600"),yr=Oo.extend("--ft-typography-button-letter-spacing","",pe.letterSpacing,"1.246px"),gr=Oo.extend("--ft-typography-button-line-height","",pe.lineHeight,"1.15"),ur=Oo.extend("--ft-typography-button-text-transform","",pe.textTransform,"uppercase"),br=bt`
258
262
  .ft-typography--title {
259
- font-family: ${pe};
260
- font-size: ${fe};
261
- font-weight: ${he};
262
- letter-spacing: ${de};
263
- line-height: ${ye};
264
- text-transform: ${ge};
265
- }
266
- `,br=bt`
267
- .ft-typography--title-dense {
268
- font-family: ${ue};
269
- font-size: ${be};
270
- font-weight: ${me};
271
- letter-spacing: ${Oe};
272
- line-height: ${Ne};
273
- text-transform: ${Se};
263
+ font-family: ${fe};
264
+ font-size: ${he};
265
+ font-weight: ${de};
266
+ letter-spacing: ${ye};
267
+ line-height: ${ge};
268
+ text-transform: ${ue};
274
269
  }
275
270
  `,mr=bt`
271
+ .ft-typography--title-dense {
272
+ font-family: ${be};
273
+ font-size: ${me};
274
+ font-weight: ${Oe};
275
+ letter-spacing: ${Ne};
276
+ line-height: ${Se};
277
+ text-transform: ${xe};
278
+ }
279
+ `,Or=bt`
276
280
  .ft-typography--subtitle1 {
277
- font-family: ${xe};
278
- font-size: ${ve};
279
- font-weight: ${we};
280
- letter-spacing: ${Ce};
281
- line-height: ${Re};
281
+ font-family: ${ve};
282
+ font-size: ${we};
283
+ font-weight: ${Ce};
284
+ letter-spacing: ${Re};
285
+ line-height: ${Ee};
282
286
  text-transform: ${Ue};
283
287
  }
284
- `,Or=bt`
288
+ `,Nr=bt`
285
289
  .ft-typography--subtitle2 {
286
- font-family: ${Ee};
287
- font-size: ${Ie};
288
- font-weight: ${We};
289
- letter-spacing: ${$e};
290
- line-height: ${ke};
291
- text-transform: ${Le};
290
+ font-family: ${Ie};
291
+ font-size: ${We};
292
+ font-weight: ${$e};
293
+ letter-spacing: ${ke};
294
+ line-height: ${Le};
295
+ text-transform: ${Ke};
292
296
  }
293
297
 
294
- `,Nr=bt`
295
- .ft-typography--body1 {
296
- font-family: ${Ke};
297
- font-size: ${Ze};
298
- font-weight: ${Fe};
299
- letter-spacing: ${ze};
300
- line-height: ${Ae};
301
- text-transform: ${De};
302
- }
303
298
  `,Sr=bt`
304
- .ft-typography--body2 {
305
- font-family: ${Me};
306
- font-size: ${Be};
307
- font-weight: ${Pe};
308
- letter-spacing: ${He};
309
- line-height: ${_e};
310
- text-transform: ${je};
299
+ .ft-typography--body1 {
300
+ font-family: ${Ze};
301
+ font-size: ${Fe};
302
+ font-weight: ${ze};
303
+ letter-spacing: ${Ae};
304
+ line-height: ${De};
305
+ text-transform: ${Me};
311
306
  }
312
307
  `,xr=bt`
313
- .ft-typography--caption {
314
- font-family: ${Te};
315
- font-size: ${Ge};
316
- font-weight: ${Ye};
317
- letter-spacing: ${Ve};
318
- line-height: ${Je};
319
- text-transform: ${Xe};
308
+ .ft-typography--body2 {
309
+ font-family: ${Be};
310
+ font-size: ${Pe};
311
+ font-weight: ${He};
312
+ letter-spacing: ${_e};
313
+ line-height: ${je};
314
+ text-transform: ${Te};
320
315
  }
321
316
  `,vr=bt`
322
- .ft-typography--breadcrumb {
323
- font-family: ${qe};
324
- font-size: ${Qe};
325
- font-weight: ${tr};
326
- letter-spacing: ${or};
327
- line-height: ${er};
328
- text-transform: ${rr};
317
+ .ft-typography--caption {
318
+ font-family: ${Ge};
319
+ font-size: ${Ye};
320
+ font-weight: ${Ve};
321
+ letter-spacing: ${Je};
322
+ line-height: ${Xe};
323
+ text-transform: ${qe};
329
324
  }
330
325
  `,wr=bt`
331
- .ft-typography--overline {
332
- font-family: ${ir};
333
- font-size: ${ar};
334
- font-weight: ${nr};
335
- letter-spacing: ${sr};
336
- line-height: ${cr};
337
- text-transform: ${lr};
326
+ .ft-typography--breadcrumb {
327
+ font-family: ${Qe};
328
+ font-size: ${tr};
329
+ font-weight: ${or};
330
+ letter-spacing: ${er};
331
+ line-height: ${rr};
332
+ text-transform: ${ir};
338
333
  }
339
334
  `,Cr=bt`
340
- .ft-typography--button {
341
- font-family: ${pr};
342
- font-size: ${fr};
343
- font-weight: ${hr};
344
- letter-spacing: ${dr};
345
- line-height: ${yr};
346
- text-transform: ${gr};
335
+ .ft-typography--overline {
336
+ font-family: ${ar};
337
+ font-size: ${nr};
338
+ font-weight: ${sr};
339
+ letter-spacing: ${cr};
340
+ line-height: ${lr};
341
+ text-transform: ${pr};
347
342
  }
348
343
  `,Rr=bt`
344
+ .ft-typography--button {
345
+ font-family: ${fr};
346
+ font-size: ${hr};
347
+ font-weight: ${dr};
348
+ letter-spacing: ${yr};
349
+ line-height: ${gr};
350
+ text-transform: ${ur};
351
+ }
352
+ `,Er=bt`
349
353
  .ft-typography {
350
354
  vertical-align: inherit;
351
355
  }
@@ -358,21 +362,21 @@ const oe=Symbol.for(""),ee=t=>{if(t?.r===oe)return t?._$litStatic$},re=t=>({_$li
358
362
  line-height: ${o.lineHeight};
359
363
  text-transform: ${o.textCase};
360
364
  }
361
- `}(t)))];var Er=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Ir extends ko{constructor(){super(...arguments),this.variant=ne.body1}render(){return this.element?ae`
362
- <${re(this.element)}
365
+ `}(t)))];var Ir=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Wr extends ko{constructor(){super(...arguments),this.variant=se.body1}render(){return this.element?ne`
366
+ <${ie(this.element)}
363
367
  class="ft-typography ft-typography--${this.variant}">
364
368
  <slot></slot>
365
- </${re(this.element)}>
366
- `:ae`
369
+ </${ie(this.element)}>
370
+ `:ne`
367
371
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
368
- `}}Ir.styles=[ur,br,mr,Or,Nr,Sr,xr,vr,wr,Cr,Rr,...Ur],Er([C()],Ir.prototype,"element",void 0),Er([C()],Ir.prototype,"variant",void 0),W("ft-typography")(Ir);const Wr={textColor:Oo.extend("--ft-radio-text-color","",vo.colorOnSurfaceHigh),colorPrimary:Oo.external(vo.colorPrimary,"Design system"),colorOnPrimary:Oo.external(vo.colorOnPrimary,"Design system"),borderColor:Oo.extend("--ft-radio-border-color","",vo.colorOnSurfaceMedium),colorOnSurfaceDisabled:Oo.external(vo.colorOnSurfaceDisabled,"Design system")},$r=bt`
372
+ `}}Wr.styles=[br,mr,Or,Nr,Sr,xr,vr,wr,Cr,Rr,Er,...Ur],Ir([w()],Wr.prototype,"element",void 0),Ir([w()],Wr.prototype,"variant",void 0),W("ft-typography")(Wr);const $r={textColor:Oo.extend("--ft-radio-text-color","",vo.colorOnSurfaceHigh),colorPrimary:Oo.external(vo.colorPrimary,"Design system"),colorOnPrimary:Oo.external(vo.colorOnPrimary,"Design system"),borderColor:Oo.extend("--ft-radio-border-color","",vo.colorOnSurfaceMedium),colorOnSurfaceDisabled:Oo.external(vo.colorOnSurfaceDisabled,"Design system")},kr=bt`
369
373
  * {
370
374
  box-sizing: border-box;
371
375
  }
372
376
 
373
377
  .ft-radio {
374
378
  box-sizing: border-box;
375
- color: ${Wr.textColor};
379
+ color: ${$r.textColor};
376
380
 
377
381
  display: inline-flex;
378
382
  align-items: center;
@@ -380,7 +384,7 @@ const oe=Symbol.for(""),ee=t=>{if(t?.r===oe)return t?._$litStatic$},re=t=>({_$li
380
384
  }
381
385
 
382
386
  .ft-radio--disabled {
383
- color: ${Wr.colorOnSurfaceDisabled};
387
+ color: ${$r.colorOnSurfaceDisabled};
384
388
  }
385
389
 
386
390
  input {
@@ -403,7 +407,7 @@ const oe=Symbol.for(""),ee=t=>{if(t?.r===oe)return t?._$litStatic$},re=t=>({_$li
403
407
  }
404
408
 
405
409
  .ft-radio--box {
406
- border: 2px solid ${Wr.borderColor};
410
+ border: 2px solid ${$r.borderColor};
407
411
  border-radius: 50%;
408
412
 
409
413
  display: flex;
@@ -416,7 +420,7 @@ const oe=Symbol.for(""),ee=t=>{if(t?.r===oe)return t?._$litStatic$},re=t=>({_$li
416
420
 
417
421
  .ft-radio--box:after {
418
422
  content: " ";
419
- background-color: ${Wr.colorPrimary};
423
+ background-color: ${$r.colorPrimary};
420
424
 
421
425
  border-radius: 50%;
422
426
 
@@ -428,7 +432,7 @@ const oe=Symbol.for(""),ee=t=>{if(t?.r===oe)return t?._$litStatic$},re=t=>({_$li
428
432
  }
429
433
 
430
434
  .ft-radio--checked .ft-radio--box {
431
- border-color: ${Wr.colorPrimary};
435
+ border-color: ${$r.colorPrimary};
432
436
  }
433
437
 
434
438
 
@@ -437,15 +441,15 @@ const oe=Symbol.for(""),ee=t=>{if(t?.r===oe)return t?._$litStatic$},re=t=>({_$li
437
441
  }
438
442
 
439
443
  .ft-radio--disabled .ft-radio--box {
440
- border-color: ${Wr.colorOnSurfaceDisabled};
444
+ border-color: ${$r.colorOnSurfaceDisabled};
441
445
  background-color: transparent;
442
446
  }
443
447
 
444
448
  .ft-radio--disabled .ft-radio--box:after {
445
- background-color: ${Wr.colorOnSurfaceDisabled};
449
+ background-color: ${$r.colorOnSurfaceDisabled};
446
450
  }
447
- `;var kr=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Lr extends CustomEvent{constructor(t,o){super("change",{detail:{value:t,checked:o},bubbles:!0,composed:!0})}}class Kr extends ko{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return Qt`
448
- <div class="${zo(t)}">
451
+ `;var Lr=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Kr extends CustomEvent{constructor(t,o){super("change",{detail:{value:t,checked:o},bubbles:!0,composed:!0})}}class Zr extends ko{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return Qt`
452
+ <div class="${Ao(t)}">
449
453
  <div class="ft-radio--box-container">
450
454
  <ft-ripple
451
455
  ?disabled=${this.disabled}
@@ -469,13 +473,13 @@ const oe=Symbol.for(""),ee=t=>{if(t?.r===oe)return t?._$litStatic$},re=t=>({_$li
469
473
  </ft-typography>
470
474
  </label>
471
475
  </div>
472
- `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Lr(this.value,this.checked))}contentAvailableCallback(t){var o;super.contentAvailableCallback(t),null===(o=this.ripple)||void 0===o||o.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Lr(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Kr.elementDefinitions={"ft-ripple":te,"ft-typography":Ir},Kr.styles=$r,kr([C()],Kr.prototype,"value",void 0),kr([C()],Kr.prototype,"name",void 0),kr([C({type:Boolean,reflect:!0})],Kr.prototype,"checked",void 0),kr([C({type:Boolean})],Kr.prototype,"disabled",void 0),kr([E(".ft-radio")],Kr.prototype,"container",void 0),kr([E("ft-ripple")],Kr.prototype,"ripple",void 0),kr([E("input")],Kr.prototype,"input",void 0);const Zr=bt`
476
+ `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Kr(this.value,this.checked))}contentAvailableCallback(t){var o;super.contentAvailableCallback(t),null===(o=this.ripple)||void 0===o||o.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Kr(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Zr.elementDefinitions={"ft-ripple":oe,"ft-typography":Wr},Zr.styles=kr,Lr([w()],Zr.prototype,"value",void 0),Lr([w()],Zr.prototype,"name",void 0),Lr([w({type:Boolean,reflect:!0})],Zr.prototype,"checked",void 0),Lr([w({type:Boolean})],Zr.prototype,"disabled",void 0),Lr([E(".ft-radio")],Zr.prototype,"container",void 0),Lr([E("ft-ripple")],Zr.prototype,"ripple",void 0),Lr([E("input")],Zr.prototype,"input",void 0);const Fr=bt`
473
477
  :host {
474
478
  display: contents;
475
479
  }
476
- `;var Fr=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class zr extends ko{constructor(){super(...arguments),this.name=""}render(){return Qt`
480
+ `;var zr=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Ar extends ko{constructor(){super(...arguments),this.name=""}render(){return Qt`
477
481
  <slot @slotchange=${this.onSlotChange}
478
482
  @change=${this.onChange}
479
483
  @keydown=${this.onKeyDown}
480
484
  ></slot>
481
- `}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((o=>o.checked=t.detail.value===o.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let o=this.findFtRadio(t),e=this.radioButtons.indexOf(o)-1;this.radioButtons[e<0?this.radioButtons.length-1:e].select();break}case"ArrowDown":case"ArrowRight":{let o=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[o>this.radioButtons.length-1?0:o].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}zr.elementDefinitions={},zr.styles=Zr,Fr([C()],zr.prototype,"name",void 0),Fr([function(t){return(o,e)=>{const{slot:r,selector:i}=t??{},a="slot"+(r?`[name=${r}]`:":not([name])");return U(0,0,{get(){const o=this.renderRoot?.querySelector(a),e=o?.assignedElements(t)??[];return void 0===i?e:e.filter((t=>t.matches(i)))}})}}()],zr.prototype,"radioButtons",void 0),W("ft-radio")(Kr),W("ft-radio-group")(zr),t.FtRadio=Kr,t.FtRadioChangeEvent=Lr,t.FtRadioCssVariables=Wr,t.FtRadioGroup=zr,t.FtRadioGroupCssVariables={},t.groupStyles=Zr,t.styles=$r}({});
485
+ `}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((o=>o.checked=t.detail.value===o.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let o=this.findFtRadio(t),e=this.radioButtons.indexOf(o)-1;this.radioButtons[e<0?this.radioButtons.length-1:e].select();break}case"ArrowDown":case"ArrowRight":{let o=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[o>this.radioButtons.length-1?0:o].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}Ar.elementDefinitions={},Ar.styles=Fr,zr([w()],Ar.prototype,"name",void 0),zr([function(t){return(o,e)=>{const{slot:r,selector:i}=t??{},a="slot"+(r?`[name=${r}]`:":not([name])");return R(0,0,{get(){const o=this.renderRoot?.querySelector(a),e=o?.assignedElements(t)??[];return void 0===i?e:e.filter((t=>t.matches(i)))}})}}()],Ar.prototype,"radioButtons",void 0),W("ft-radio")(Zr),W("ft-radio-group")(Ar),t.FtRadio=Zr,t.FtRadioChangeEvent=Kr,t.FtRadioCssVariables=$r,t.FtRadioGroup=Ar,t.FtRadioGroupCssVariables={},t.groupStyles=Fr,t.styles=kr}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-radio",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "A radio component",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,10 +19,10 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-ripple": "1.1.1",
23
- "@fluid-topics/ft-typography": "1.1.1",
24
- "@fluid-topics/ft-wc-utils": "1.1.1",
22
+ "@fluid-topics/ft-ripple": "1.1.3",
23
+ "@fluid-topics/ft-typography": "1.1.3",
24
+ "@fluid-topics/ft-wc-utils": "1.1.3",
25
25
  "lit": "3.1.0"
26
26
  },
27
- "gitHead": "ceae4aed142c27cbf6034f45bb6e3f562163cc15"
27
+ "gitHead": "0d44a470e710f185c37e42ee87be4481a3bdf793"
28
28
  }