@fluid-topics/ft-switch 0.3.57 → 0.3.60

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.
@@ -309,12 +309,12 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
309
309
  .ft-icon--material {
310
310
  font-family: ${Ii.materialFontFamily}, "Material Icons", sans-serif;
311
311
  }
312
- `;var Fi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Fi||(Fi={}));var Bi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ri extends i.FtLitElement{constructor(){super(...arguments),this.variant=Fi.fluid_topics,this.resolvedIcon=e.nothing}render(){const t="material"!==this.variant||this.value;return e.html`
313
- <i class="ft-icon ${"ft-icon--"+this.variant}">
312
+ `;var Fi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Fi||(Fi={}));var Bi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ri extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){var t;const i=null!==(t=this.variant)&&void 0!==t?t:Fi.fluid_topics,o="material"!==i||this.value;return e.html`
313
+ <i class="ft-icon ${"ft-icon--"+i}">
314
314
  ${n.unsafeHTML(this.resolvedIcon)}
315
- <slot ?hidden=${t}></slot>
315
+ <slot ?hidden=${o}></slot>
316
316
  </i>
317
- `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Fi.file_format:this.resolvedIcon=null!==(t=Ni[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Fi.fluid_topics:this.resolvedIcon=null!==(i=ji[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o;break;default:this.resolvedIcon=this.value||e.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ri.elementDefinitions={},Ri.styles=_i,Bi([o.property()],Ri.prototype,"variant",void 0),Bi([o.property()],Ri.prototype,"value",void 0),Bi([o.state()],Ri.prototype,"resolvedIcon",void 0),Bi([o.query("slot")],Ri.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Ri);const Ti={textColor:i.FtCssVariableFactory.extend("--ft-switch-text-color",i.designSystemVariables.colorOnSurfaceHigh),backgroundColor:i.FtCssVariableFactory.extend("--ft-switch-background-color",i.designSystemVariables.colorSurface),selectedTextColor:i.FtCssVariableFactory.extend("--ft-switch-selected-text-color",i.designSystemVariables.colorPrimary),selectedBackgroundColor:i.FtCssVariableFactory.extend("--ft-switch-selected-background-color",i.designSystemVariables.colorPrimary),borderColor:i.FtCssVariableFactory.extend("--ft-switch-border-color",i.designSystemVariables.colorOutline),borderRadius:i.FtCssVariableFactory.extend("--ft-switch-border-radius",i.designSystemVariables.borderRadiusL),fontSize:i.FtCssVariableFactory.extend("--ft-switch-font-size",li.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-switch-icon-size","SIZE","24px"),iconColor:i.FtCssVariableFactory.extend("--ft-switch-text-color",i.designSystemVariables.colorOnSurfaceMedium),rippleColor:i.FtCssVariableFactory.extend("--ft-switch-ripple-color",i.designSystemVariables.colorPrimary),outlineColor:i.FtCssVariableFactory.extend("--ft-switch-outline-color",i.designSystemVariables.colorPrimary)},Ui={borderRadiusLeft:i.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left",i.designSystemVariables.borderRadiusL),borderRadiusRight:i.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right",i.designSystemVariables.borderRadiusL),borderWidthLeft:i.FtCssVariableFactory.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:i.FtCssVariableFactory.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:i.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","SIZE","1px")},Mi=e.css`
317
+ `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Fi.file_format:this.resolvedIcon=null!==(t=Ni[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Fi.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=ji[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ri.elementDefinitions={},Ri.styles=_i,Bi([o.property()],Ri.prototype,"variant",void 0),Bi([o.property()],Ri.prototype,"value",void 0),Bi([o.state()],Ri.prototype,"resolvedIcon",void 0),Bi([o.query("slot")],Ri.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Ri);const Ti={textColor:i.FtCssVariableFactory.extend("--ft-switch-text-color",i.designSystemVariables.colorOnSurfaceHigh),backgroundColor:i.FtCssVariableFactory.extend("--ft-switch-background-color",i.designSystemVariables.colorSurface),selectedTextColor:i.FtCssVariableFactory.extend("--ft-switch-selected-text-color",i.designSystemVariables.colorPrimary),selectedBackgroundColor:i.FtCssVariableFactory.extend("--ft-switch-selected-background-color",i.designSystemVariables.colorPrimary),borderColor:i.FtCssVariableFactory.extend("--ft-switch-border-color",i.designSystemVariables.colorOutline),borderRadius:i.FtCssVariableFactory.extend("--ft-switch-border-radius",i.designSystemVariables.borderRadiusL),fontSize:i.FtCssVariableFactory.extend("--ft-switch-font-size",li.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-switch-icon-size","SIZE","24px"),iconColor:i.FtCssVariableFactory.extend("--ft-switch-text-color",i.designSystemVariables.colorOnSurfaceMedium),rippleColor:i.FtCssVariableFactory.extend("--ft-switch-ripple-color",i.designSystemVariables.colorPrimary),outlineColor:i.FtCssVariableFactory.extend("--ft-switch-outline-color",i.designSystemVariables.colorPrimary)},Ui={borderRadiusLeft:i.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left",i.designSystemVariables.borderRadiusL),borderRadiusRight:i.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right",i.designSystemVariables.borderRadiusL),borderWidthLeft:i.FtCssVariableFactory.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:i.FtCssVariableFactory.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:i.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","SIZE","1px")},Mi=e.css`
318
318
  .ft-switch-option {
319
319
  position: relative;
320
320
  display: inline-block;
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){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(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);f(s,a,l);const h={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,h),this._definitionsByClass.set(s,h);let c=e.call(o,t);c||(c=p(t),i.call(o,t,c)),this===window.customElements&&(r.set(s,h),h.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.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,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=a;if(i)return a=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),s.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let i=t.getRootNode();if(!h(i)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=l.get(i)?.getRootNode()||document)}return i.customElements},p=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=c(e)||window.customElements,s=o._getDefinition(i);return s?u(e,s):n.set(e,o),e}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(i.has(n)){const t=this.getAttribute(n);o.call(this,n,s),e.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);s.call(this,o),e.call(this,o,t,null)}else s.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),s.set(t,i),a=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=y.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let v=[document];const x=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){v.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&l.set(t,this),v.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const g=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){v.push(this),e.set.call(this,t),v.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==s.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),s=i.get(o)||[];this[+e]=t,s.push(t),i.set(o,s)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=s.get(e);t&&!0!==t.formAssociated||i.push(e)}return new n(i)}})}}try{window.customElements.define("custom-element",null)}catch(xe){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.info(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){return this.callbacks=[t],this.debounce(i)}queue(t,i){return this.callbacks.push(t),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,i)=>{this.resolvePromise=t,this.rejectPromise=i}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,i;const e=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,s=null!==(i=this.resolvePromise)&&void 0!==i?i:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void o(t)}s(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){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(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);f(s,a,l);const h={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,h),this._definitionsByClass.set(s,h);let c=e.call(o,t);c||(c=p(t),i.call(o,t,c)),this===window.customElements&&(r.set(s,h),h.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.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,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=a;if(i)return a=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),s.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let i=t.getRootNode();if(!h(i)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=l.get(i)?.getRootNode()||document)}return i.customElements},p=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=c(e)||window.customElements,s=o._getDefinition(i);return s?u(e,s):n.set(e,o),e}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(i.has(n)){const t=this.getAttribute(n);o.call(this,n,s),e.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);s.call(this,o),e.call(this,o,t,null)}else s.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),s.set(t,i),a=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=y.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let v=[document];const x=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){v.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&l.set(t,this),v.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const g=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){v.push(this),e.set.call(this,t),v.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==s.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),s=i.get(o)||[];this[+e]=t,s.push(t),i.set(o,s)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=s.get(e);t&&!0!==t.formAssociated||i.push(e)}return new n(i)}})}}try{window.customElements.define("custom-element",null)}catch(ge){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.info(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){return this.callbacks=[t],this.debounce(i)}queue(t,i){return this.callbacks.push(t),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,i)=>{this.resolvePromise=t,this.rejectPromise=i}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,i;const e=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,s=null!==(i=this.resolvePromise)&&void 0!==i?i:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void o(t)}s(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -39,40 +39,40 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.cust
39
39
  * @license
40
40
  * Copyright 2021 Google LLC
41
41
  * SPDX-License-Identifier: BSD-3-Clause
42
- */var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prototype.assignedElements)?(t,i)=>t.assignedElements(i):(t,i)=>t.assignedNodes(i).filter((t=>t.nodeType===Node.ELEMENT_NODE));const h=t=>i=>{window.customElements.get(t)||window.customElements.define(t,i)};
42
+ */var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prototype.assignedElements)?(t,i)=>t.assignedElements(i):(t,i)=>t.assignedNodes(i).filter((t=>t.nodeType===Node.ELEMENT_NODE));function h(t,i){try{return function(t,i){if(t===i)return!0;if(t&&i&&"object"==typeof t&&"object"==typeof i){if(t.constructor!==i.constructor)return!1;var e,o,s;if(Array.isArray(t)){if((e=t.length)!=i.length)return!1;for(o=e;0!=o--;)if(!h(t[o],i[o]))return!1;return!0}if(t instanceof Map&&i instanceof Map){if(t.size!==i.size)return!1;for(o of t.entries())if(!i.has(o[0]))return!1;for(o of t.entries())if(!h(o[1],i.get(o[0])))return!1;return!0}if(t instanceof Set&&i instanceof Set){if(t.size!==i.size)return!1;for(o of t.entries())if(!i.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if((e=(s=Object.keys(t)).length)!==Object.keys(i).length)return!1;for(o=e;0!=o--;)if(!Object.prototype.hasOwnProperty.call(i,s[o]))return!1;for(o=e;0!=o--;){var n=s[o];if(!h(t[n],i[n]))return!1}return!0}return t!=t&&i!=i}(t,i)}catch(t){return!1}}const c=t=>i=>{window.customElements.get(t)||window.customElements.define(t,i)};
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2019 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const c=window,p=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,f=Symbol(),d=new WeakMap;class u{constructor(t,i,e){if(this._$cssResult$=!0,e!==f)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(p&&void 0===t){const e=void 0!==i&&1===i.length;e&&(t=d.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&d.set(i,t))}return t}toString(){return this.cssText}}const y=t=>new u("string"==typeof t?t:t+"",void 0,f),v=(t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,e,o)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[o+1]),t[0]);return new u(e,t,f)},x=(t,i)=>{p?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=c.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},g=p?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return y(i)})(t):t
48
+ const p=window,f=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),u=new WeakMap;class y{constructor(t,i,e){if(this._$cssResult$=!0,e!==d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(f&&void 0===t){const e=void 0!==i&&1===i.length;e&&(t=u.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&u.set(i,t))}return t}toString(){return this.cssText}}const v=t=>new y("string"==typeof t?t:t+"",void 0,d),x=(t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,e,o)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+t[o+1]),t[0]);return new y(e,t,d)},g=(t,i)=>{f?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((i=>{const e=document.createElement("style"),o=p.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}))},b=f?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const e of t.cssRules)i+=e.cssText;return v(i)})(t):t
49
49
  /**
50
50
  * @license
51
51
  * Copyright 2017 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
53
- */;var b;const m=window,w=m.trustedTypes,$=w?w.emptyScript:"",O=m.reactiveElementPolyfillSupport,S={toAttribute(t,i){switch(i){case Boolean:t=t?$:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){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}},k=(t,i)=>i!==t&&(i==i||t==t),C={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:k};class N extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var i;null!==(i=this.h)&&void 0!==i||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const o=this._$Ep(e,i);void 0!==o&&(this._$Ev.set(o,e),t.push(o))})),t}static createProperty(t,i=C){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,i);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(o){const s=this[t];this[i]=o,this.requestUpdate(t,s,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||C}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(g(t))}else void 0!==t&&i.push(g(t));return i}static _$Ep(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,e;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return x(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$EO(t,i,e=C){var o;const s=this.constructor._$Ep(t,e);if(void 0!==s&&!0===e.reflect){const n=(void 0!==(null===(o=e.converter)||void 0===o?void 0:o.toAttribute)?e.converter:S).toAttribute(i,e.type);this._$El=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(t,i){var e;const o=this.constructor,s=o._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=o.getPropertyOptions(s),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(e=t.converter)||void 0===e?void 0:e.fromAttribute)?t.converter:S;this._$El=s,this[s]=n.fromAttribute(i,t.type),this._$El=null}}requestUpdate(t,i,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||k)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$Ek()}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
53
+ */;var m;const w=window,$=w.trustedTypes,O=$?$.emptyScript:"",S=w.reactiveElementPolyfillSupport,k={toAttribute(t,i){switch(i){case Boolean:t=t?O:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let e=t;switch(i){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}},C=(t,i)=>i!==t&&(i==i||t==t),N={attribute:!0,type:String,converter:k,reflect:!1,hasChanged:C};class E extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var i;null!==(i=this.h)&&void 0!==i||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,e)=>{const o=this._$Ep(e,i);void 0!==o&&(this._$Ev.set(o,e),t.push(o))})),t}static createProperty(t,i=N){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const e="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,e,i);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,i,e){return{get(){return this[i]},set(o){const s=this[t];this[i]=o,this.requestUpdate(t,s,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||N}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const e of i)this.createProperty(e,t[e])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)i.unshift(b(t))}else void 0!==t&&i.push(b(t));return i}static _$Ep(t,i){const e=i.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,e;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(e=t.hostConnected)||void 0===e||e.call(t))}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return g(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,e){this._$AK(t,e)}_$EO(t,i,e=N){var o;const s=this.constructor._$Ep(t,e);if(void 0!==s&&!0===e.reflect){const n=(void 0!==(null===(o=e.converter)||void 0===o?void 0:o.toAttribute)?e.converter:k).toAttribute(i,e.type);this._$El=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(t,i){var e;const o=this.constructor,s=o._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=o.getPropertyOptions(s),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(e=t.converter)||void 0===e?void 0:e.fromAttribute)?t.converter:k;this._$El=s,this[s]=n.fromAttribute(i,t.type),this._$El=null}}requestUpdate(t,i,e){let o=!0;void 0!==t&&(((e=e||this.constructor.getPropertyOptions(t)).hasChanged||C)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===e.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,e))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const e=this._$AL;try{i=this.shouldUpdate(e),i?(this.willUpdate(e),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(e)):this._$Ek()}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(e)}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
54
54
  /**
55
55
  * @license
56
56
  * Copyright 2017 Google LLC
57
57
  * SPDX-License-Identifier: BSD-3-Clause
58
58
  */
59
- var E;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==O||O({ReactiveElement:N}),(null!==(b=m.reactiveElementVersions)&&void 0!==b?b:m.reactiveElementVersions=[]).push("1.4.1");const R=window,M=R.trustedTypes,U=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,F=`lit$${(Math.random()+"").slice(9)}$`,z="?"+F,j=`<${z}>`,A=document,L=(t="")=>A.createComment(t),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,W=/>/g,D=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),I=/'/g,H=/"/g,K=/^(?:script|style|textarea|title)$/i,Z=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),V=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),q=new WeakMap,X=A.createTreeWalker(A,129,null,!1),Y=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=P;for(let i=0;i<e;i++){const e=t[i];let l,a,h=-1,c=0;for(;c<e.length&&(r.lastIndex=c,a=r.exec(e),null!==a);)c=r.lastIndex,r===P?"!--"===a[1]?r=_:void 0!==a[1]?r=W:void 0!==a[2]?(K.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=D):void 0!==a[3]&&(r=D):r===D?">"===a[0]?(r=null!=s?s:P,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?D:'"'===a[3]?H:I):r===H||r===I?r=D:r===_||r===W?r=P:(r=D,s=void 0);const p=r===D&&t[i+1].startsWith("/>")?" ":"";n+=r===P?e+j:h>=0?(o.push(l),e.slice(0,h)+"$lit$"+e.slice(h)+F+p):e+F+(-2===h?(o.push(void 0),i):p)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==U?U.createHTML(l):l,o]};class G{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,h]=Y(t,i);if(this.el=G.createElement(a,e),X.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=X.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(F)){const e=h[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(F),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?ot:"?"===i[1]?nt:"@"===i[1]?rt:et})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(K.test(o.tagName)){const t=o.textContent.split(F),i=t.length-1;if(i>0){o.textContent=M?M.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],L()),X.nextNode(),l.push({type:2,index:++s});o.append(t[i],L())}}}else if(8===o.nodeType)if(o.data===z)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(F,t+1));)l.push({type:7,index:s}),t+=F.length-1}s++}}static createElement(t,i){const e=A.createElement("template");return e.innerHTML=t,e}}function Q(t,i,e=t,o){var s,n,r,l;if(i===V)return i;let a=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const h=B(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=Q(t,a._$AS(t,i.values),a,o)),i}class tt{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:A).importNode(e,!0);X.currentNode=s;let n=X.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new it(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new lt(n,this,t)),this.u.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=X.nextNode(),r++)}return s}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class it{constructor(t,i,e,o){var s;this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Q(this,t,i),B(t)?t===J||null==t||""===t?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==V&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>T(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==J&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=G.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.p(e);else{const t=new tt(s,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=q.get(t.strings);return void 0===i&&q.set(t.strings,i=new G(t)),i}k(t){T(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new it(this.O(L()),this.O(L()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class et{constructor(t,i,e,o,s){this.type=1,this._$AH=J,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=J}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=Q(this,t,i,0),n=!B(t)||t!==this._$AH&&t!==V,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=Q(this,o[e+r],i,r),l===V&&(l=this._$AH[r]),n||(n=!B(l)||l!==this._$AH[r]),l===J?t=J:t!==J&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ot extends et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===J?void 0:t}}const st=M?M.emptyScript:"";class nt extends et{constructor(){super(...arguments),this.type=4}j(t){t&&t!==J?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class rt extends et{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=Q(this,t,i,0))&&void 0!==e?e:J)===V)return;const o=this._$AH,s=t===J&&o!==J||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==J&&(o===J||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class lt{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){Q(this,t)}}const at=R.litHtmlPolyfillSupport;null==at||at(G,it),(null!==(E=R.litHtmlVersions)&&void 0!==E?E:R.litHtmlVersions=[]).push("2.4.0");
59
+ var R;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:E}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.4.1");const M=window,U=M.trustedTypes,j=U?U.createPolicy("lit-html",{createHTML:t=>t}):void 0,F=`lit$${(Math.random()+"").slice(9)}$`,z="?"+F,A=`<${z}>`,L=document,B=(t="")=>L.createComment(t),T=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,D=/>/g,I=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),H=/'/g,K=/"/g,Z=/^(?:script|style|textarea|title)$/i,V=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),J=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),X=new WeakMap,Y=L.createTreeWalker(L,129,null,!1),G=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=_;for(let i=0;i<e;i++){const e=t[i];let l,a,h=-1,c=0;for(;c<e.length&&(r.lastIndex=c,a=r.exec(e),null!==a);)c=r.lastIndex,r===_?"!--"===a[1]?r=W:void 0!==a[1]?r=D:void 0!==a[2]?(Z.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=I):void 0!==a[3]&&(r=I):r===I?">"===a[0]?(r=null!=s?s:_,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?I:'"'===a[3]?K:H):r===K||r===H?r=I:r===W||r===D?r=_:(r=I,s=void 0);const p=r===I&&t[i+1].startsWith("/>")?" ":"";n+=r===_?e+A:h>=0?(o.push(l),e.slice(0,h)+"$lit$"+e.slice(h)+F+p):e+F+(-2===h?(o.push(void 0),i):p)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==j?j.createHTML(l):l,o]};class Q{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,h]=G(t,i);if(this.el=Q.createElement(a,e),Y.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Y.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(F)){const e=h[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(F),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?st:"?"===i[1]?rt:"@"===i[1]?lt:ot})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(Z.test(o.tagName)){const t=o.textContent.split(F),i=t.length-1;if(i>0){o.textContent=U?U.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],B()),Y.nextNode(),l.push({type:2,index:++s});o.append(t[i],B())}}}else if(8===o.nodeType)if(o.data===z)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(F,t+1));)l.push({type:7,index:s}),t+=F.length-1}s++}}static createElement(t,i){const e=L.createElement("template");return e.innerHTML=t,e}}function tt(t,i,e=t,o){var s,n,r,l;if(i===J)return i;let a=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const h=T(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=tt(t,a._$AS(t,i.values),a,o)),i}class it{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:L).importNode(e,!0);Y.currentNode=s;let n=Y.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new et(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new at(n,this,t)),this.u.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=Y.nextNode(),r++)}return s}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class et{constructor(t,i,e,o){var s;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=tt(this,t,i),T(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==J&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==q&&T(this._$AH)?this._$AA.nextSibling.data=t:this.T(L.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Q.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.p(e);else{const t=new it(s,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=X.get(t.strings);return void 0===i&&X.set(t.strings,i=new Q(t)),i}k(t){P(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new et(this.O(B()),this.O(B()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class ot{constructor(t,i,e,o,s){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=tt(this,t,i,0),n=!T(t)||t!==this._$AH&&t!==J,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=tt(this,o[e+r],i,r),l===J&&(l=this._$AH[r]),n||(n=!T(l)||l!==this._$AH[r]),l===q?t=q:t!==q&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class st extends ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const nt=U?U.emptyScript:"";class rt extends ot{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,nt):this.element.removeAttribute(this.name)}}class lt extends ot{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=tt(this,t,i,0))&&void 0!==e?e:q)===J)return;const o=this._$AH,s=t===q&&o!==q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==q&&(o===q||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class at{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){tt(this,t)}}const ht=M.litHtmlPolyfillSupport;null==ht||ht(Q,et),(null!==(R=M.litHtmlVersions)&&void 0!==R?R:M.litHtmlVersions=[]).push("2.4.0");
60
60
  /**
61
61
  * @license
62
62
  * Copyright 2017 Google LLC
63
63
  * SPDX-License-Identifier: BSD-3-Clause
64
64
  */
65
- var ht,ct;class pt extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,i,e)=>{var o,s;const n=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==e?void 0:e.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new it(i.insertBefore(L(),t),t,void 0,null!=e?e:{})}return r._$AI(t),r})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return V}}pt.finalized=!0,pt._$litElement$=!0,null===(ht=globalThis.litElementHydrateSupport)||void 0===ht||ht.call(globalThis,{LitElement:pt});const ft=globalThis.litElementPolyfillSupport;null==ft||ft({LitElement:pt}),(null!==(ct=globalThis.litElementVersions)&&void 0!==ct?ct:globalThis.litElementVersions=[]).push("3.2.2");class dt{static create(t,i,e){let o=t=>y(null!=t?t:e),s=v`var(${y(t)}, ${o(e)})`;return s.name=t,s.category=i,s.defaultValue=e,s.defaultCssValue=o,s.get=i=>v`var(${y(t)}, ${o(i)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>e,s}static extend(t,i,e){let o=t=>i.get(null!=t?t:e),s=v`var(${y(t)}, ${o(e)})`;return s.name=t,s.category=i.category,s.fallbackVariable=i,s.defaultValue=e,s.defaultCssValue=o,s.get=i=>v`var(${y(t)}, ${o(i)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>e,s}static external(t,i){let e=i=>t.fallbackVariable?t.fallbackVariable.get(null!=i?i:t.defaultValue):y(null!=i?i:t.defaultValue),o=v`var(${y(t.name)}, ${e(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=i,o.defaultCssValue=e,o.get=i=>v`var(${y(t.name)}, ${e(i)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var i,e;return null!==(i=t.defaultValue)&&void 0!==i?i:null===(e=t.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()},o}}function ut(t,i){return y(`${t.name}: ${i}`)}const yt={colorPrimary:dt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:dt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:dt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:dt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:dt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:dt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:dt.create("--ft-color-error","COLOR","#B00020"),colorOutline:dt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:dt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:dt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:dt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:dt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:dt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:dt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:dt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:dt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:dt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:dt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:dt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:dt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:dt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:dt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:dt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:dt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:dt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:dt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:dt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:dt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:dt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:dt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:dt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:dt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:dt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:dt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:dt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:dt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:dt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:dt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:dt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:dt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:dt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:dt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:dt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:dt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:dt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:dt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:dt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:dt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:dt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:dt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:dt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:dt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:dt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:dt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:dt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:dt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:dt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:dt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:dt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:dt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:dt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:dt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
65
+ var ct,pt;class ft extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;const e=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=e.firstChild),e}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,i,e)=>{var o,s;const n=null!==(o=null==e?void 0:e.renderBefore)&&void 0!==o?o:i;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==e?void 0:e.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new et(i.insertBefore(B(),t),t,void 0,null!=e?e:{})}return r._$AI(t),r})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return J}}ft.finalized=!0,ft._$litElement$=!0,null===(ct=globalThis.litElementHydrateSupport)||void 0===ct||ct.call(globalThis,{LitElement:ft});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:ft}),(null!==(pt=globalThis.litElementVersions)&&void 0!==pt?pt:globalThis.litElementVersions=[]).push("3.2.2");class ut{static create(t,i,e){let o=t=>v(null!=t?t:e),s=x`var(${v(t)}, ${o(e)})`;return s.name=t,s.category=i,s.defaultValue=e,s.defaultCssValue=o,s.get=i=>x`var(${v(t)}, ${o(i)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>e,s}static extend(t,i,e){let o=t=>i.get(null!=t?t:e),s=x`var(${v(t)}, ${o(e)})`;return s.name=t,s.category=i.category,s.fallbackVariable=i,s.defaultValue=e,s.defaultCssValue=o,s.get=i=>x`var(${v(t)}, ${o(i)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>e,s}static external(t,i){let e=i=>t.fallbackVariable?t.fallbackVariable.get(null!=i?i:t.defaultValue):v(null!=i?i:t.defaultValue),o=x`var(${v(t.name)}, ${e(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=i,o.defaultCssValue=e,o.get=i=>x`var(${v(t.name)}, ${e(i)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var i,e;return null!==(i=t.defaultValue)&&void 0!==i?i:null===(e=t.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()},o}}function yt(t,i){return v(`${t.name}: ${i}`)}const vt={colorPrimary:ut.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ut.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ut.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ut.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ut.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ut.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ut.create("--ft-color-error","COLOR","#B00020"),colorOutline:ut.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ut.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ut.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ut.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ut.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ut.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ut.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ut.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ut.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ut.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ut.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ut.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ut.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ut.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ut.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ut.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ut.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ut.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ut.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ut.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ut.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ut.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ut.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ut.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ut.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ut.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ut.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ut.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ut.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ut.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ut.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ut.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ut.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ut.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ut.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ut.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ut.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ut.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:ut.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:ut.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:ut.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:ut.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:ut.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:ut.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:ut.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:ut.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:ut.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:ut.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ut.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ut.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ut.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ut.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ut.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ut.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ut.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
66
66
  /**
67
67
  * @license
68
68
  * Copyright 2021 Google LLC
69
69
  * SPDX-License-Identifier: BSD-3-Clause
70
- */var vt=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class xt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:o}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return x(s,this.constructor.elementStyles),s}}}(pt)){constructor(){super(),this.exportpartsDebouncer=new i(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),Z`
71
- ${t.map((t=>Z`
70
+ */var xt=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class gt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:o}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return g(s,this.constructor.elementStyles),s}}}(ft)){constructor(){super(),this.exportpartsDebouncer=new i(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),V`
71
+ ${t.map((t=>V`
72
72
  <style>${t}</style>
73
73
  `))}
74
74
  ${this.getTemplate()}
75
- `}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var i,e;if((null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.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.exportpartsDebouncer.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 i,e,o,s,n,r;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],e=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...i,...e).filter(l).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>a.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}vt([o()],xt.prototype,"exportpartsPrefix",void 0),vt([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},...null!=i?i:{}})}([])],xt.prototype,"exportpartsPrefixes",void 0),vt([o()],xt.prototype,"customStylesheet",void 0),v`
75
+ `}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var i,e;if((null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.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.exportpartsDebouncer.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 i,e,o,s,n,r;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],e=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...i,...e).filter(l).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>a.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}xt([o()],gt.prototype,"exportpartsPrefix",void 0),xt([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({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,i)=>!h(t,i),...null!=i?i:{}})}([])],gt.prototype,"exportpartsPrefixes",void 0),xt([o()],gt.prototype,"customStylesheet",void 0),x`
76
76
  .ft-no-text-select {
77
77
  -webkit-touch-callout: none;
78
78
  -webkit-user-select: none;
@@ -81,7 +81,7 @@ var ht,ct;class pt extends N{constructor(){super(...arguments),this.renderOption
81
81
  -ms-user-select: none;
82
82
  user-select: none;
83
83
  }
84
- `,v`
84
+ `,x`
85
85
  .ft-word-wrap {
86
86
  white-space: normal;
87
87
  word-wrap: break-word;
@@ -93,7 +93,7 @@ var ht,ct;class pt extends N{constructor(){super(...arguments),this.renderOption
93
93
  -webkit-hyphens: auto;
94
94
  hyphens: auto
95
95
  }
96
- `;const gt=v`
96
+ `;const bt=x`
97
97
  .ft-safari-ellipsis-fix {
98
98
  margin-right: 0;
99
99
 
@@ -104,17 +104,17 @@ var ht,ct;class pt extends N{constructor(){super(...arguments),this.renderOption
104
104
  display: inline-block;
105
105
  width: 0;
106
106
  }
107
- `;var bt,mt,wt;const $t=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(wt=null===(mt=null===(bt=window.safari)||void 0===bt?void 0:bt.pushNotification)||void 0===mt?void 0:mt.toString())&&void 0!==wt?wt:""),Ot=1,St=2,kt=t=>(...i)=>({_$litDirective$:t,values:i});
107
+ `;var mt,wt,$t;const Ot=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==($t=null===(wt=null===(mt=window.safari)||void 0===mt?void 0:mt.pushNotification)||void 0===wt?void 0:wt.toString())&&void 0!==$t?$t:""),St=1,kt=2,Ct=t=>(...i)=>({_$litDirective$:t,values:i});
108
108
  /**
109
109
  * @license
110
110
  * Copyright 2017 Google LLC
111
111
  * SPDX-License-Identifier: BSD-3-Clause
112
- */class Ct{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
112
+ */class Nt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
113
113
  /**
114
114
  * @license
115
115
  * Copyright 2018 Google LLC
116
116
  * SPDX-License-Identifier: BSD-3-Clause
117
- */const Nt=kt(class extends Ct{constructor(t){var i;if(super(t),t.type!==Ot||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.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((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.nt.add(t);return this.render(i)}const s=t.element.classList;this.nt.forEach((t=>{t in i||(s.remove(t),this.nt.delete(t))}));for(const t in i){const e=!!i[t];e===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return V}}),Et=dt.extend("--ft-ripple-color",yt.colorContent),Rt={color:Et,backgroundColor:dt.extend("--ft-ripple-background-color",Et),opacityContentOnSurfacePressed:dt.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:dt.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:dt.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:dt.external(yt.opacityContentOnSurfaceSelected,"Design system")},Mt=dt.extend("--ft-ripple-color",yt.colorPrimary),Ut=Mt,Ft=dt.extend("--ft-ripple-background-color",Mt),zt=dt.extend("--ft-ripple-color",yt.colorSecondary),jt=zt,At=dt.extend("--ft-ripple-background-color",zt),Lt=v`
117
+ */const Et=Ct(class extends Nt{constructor(t){var i;if(super(t),t.type!==St||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.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((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.nt.add(t);return this.render(i)}const s=t.element.classList;this.nt.forEach((t=>{t in i||(s.remove(t),this.nt.delete(t))}));for(const t in i){const e=!!i[t];e===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return J}}),Rt=ut.extend("--ft-ripple-color",vt.colorContent),Mt={color:Rt,backgroundColor:ut.extend("--ft-ripple-background-color",Rt),opacityContentOnSurfacePressed:ut.external(vt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ut.external(vt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ut.external(vt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ut.external(vt.opacityContentOnSurfaceSelected,"Design system")},Ut=ut.extend("--ft-ripple-color",vt.colorPrimary),jt=Ut,Ft=ut.extend("--ft-ripple-background-color",Ut),zt=ut.extend("--ft-ripple-color",vt.colorSecondary),At=zt,Lt=ut.extend("--ft-ripple-background-color",zt),Bt=x`
118
118
  :host {
119
119
  display: contents;
120
120
  }
@@ -136,19 +136,19 @@ var ht,ct;class pt extends N{constructor(){super(...arguments),this.renderOption
136
136
  }
137
137
 
138
138
  .ft-ripple .ft-ripple--background {
139
- background-color: ${Rt.backgroundColor};
139
+ background-color: ${Mt.backgroundColor};
140
140
  }
141
141
 
142
142
  .ft-ripple .ft-ripple--effect {
143
- background-color: ${Rt.color};
143
+ background-color: ${Mt.color};
144
144
  }
145
145
 
146
146
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
147
- background-color: ${At};
147
+ background-color: ${Lt};
148
148
  }
149
149
 
150
150
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
151
- background-color: ${jt};
151
+ background-color: ${At};
152
152
  }
153
153
 
154
154
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
@@ -156,7 +156,7 @@ var ht,ct;class pt extends N{constructor(){super(...arguments),this.renderOption
156
156
  }
157
157
 
158
158
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
159
- background-color: ${Ut};
159
+ background-color: ${jt};
160
160
  }
161
161
 
162
162
  .ft-ripple .ft-ripple--background {
@@ -188,22 +188,22 @@ var ht,ct;class pt extends N{constructor(){super(...arguments),this.renderOption
188
188
  }
189
189
 
190
190
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
191
- opacity: ${Rt.opacityContentOnSurfaceHover};
191
+ opacity: ${Mt.opacityContentOnSurfaceHover};
192
192
  }
193
193
 
194
194
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
195
- opacity: ${Rt.opacityContentOnSurfaceSelected};
195
+ opacity: ${Mt.opacityContentOnSurfaceSelected};
196
196
  }
197
197
 
198
198
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
199
- opacity: ${Rt.opacityContentOnSurfaceFocused};
199
+ opacity: ${Mt.opacityContentOnSurfaceFocused};
200
200
  }
201
201
 
202
202
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
203
- opacity: ${Rt.opacityContentOnSurfacePressed};
203
+ opacity: ${Mt.opacityContentOnSurfacePressed};
204
204
  transform: translate(-50%, -50%) scale(1);
205
205
  }
206
- `;var Bt=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Tt extends xt{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.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i(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 i(10),this.moveRipple=t=>{var i,e;let{x:o,y:s}=this.getCoordinates(t),n=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.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.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 Z`
206
+ `;var Tt=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Pt extends gt{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.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i(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 i(10),this.moveRipple=t=>{var i,e;let{x:o,y:s}=this.getCoordinates(t),n=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.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.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 V`
207
207
  <style>
208
208
  .ft-ripple .ft-ripple--effect,
209
209
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -216,119 +216,119 @@ var ht,ct;class pt extends N{constructor(){super(...arguments),this.renderOption
216
216
  top: ${this.originY}px;
217
217
  }
218
218
  </style>
219
- <div class="${Nt(t)}">
219
+ <div class="${Et(t)}">
220
220
  <div class="ft-ripple--background"></div>
221
221
  <div class="ft-ripple--effect"></div>
222
222
  </div>
223
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),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",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),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 i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Tt.elementDefinitions={},Tt.styles=Lt,Bt([o({type:Boolean})],Tt.prototype,"primary",void 0),Bt([o({type:Boolean})],Tt.prototype,"secondary",void 0),Bt([o({type:Boolean})],Tt.prototype,"unbounded",void 0),Bt([o({type:Boolean})],Tt.prototype,"activated",void 0),Bt([o({type:Boolean})],Tt.prototype,"selected",void 0),Bt([o({type:Boolean})],Tt.prototype,"disabled",void 0),Bt([s()],Tt.prototype,"hovered",void 0),Bt([s()],Tt.prototype,"focused",void 0),Bt([s()],Tt.prototype,"pressed",void 0),Bt([s()],Tt.prototype,"rippling",void 0),Bt([s()],Tt.prototype,"rippleSize",void 0),Bt([s()],Tt.prototype,"originX",void 0),Bt([s()],Tt.prototype,"originY",void 0),Bt([r(".ft-ripple")],Tt.prototype,"ripple",void 0),Bt([r(".ft-ripple--effect")],Tt.prototype,"rippleEffect",void 0),h("ft-ripple")(Tt);
223
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),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",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),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 i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Pt.elementDefinitions={},Pt.styles=Bt,Tt([o({type:Boolean})],Pt.prototype,"primary",void 0),Tt([o({type:Boolean})],Pt.prototype,"secondary",void 0),Tt([o({type:Boolean})],Pt.prototype,"unbounded",void 0),Tt([o({type:Boolean})],Pt.prototype,"activated",void 0),Tt([o({type:Boolean})],Pt.prototype,"selected",void 0),Tt([o({type:Boolean})],Pt.prototype,"disabled",void 0),Tt([s()],Pt.prototype,"hovered",void 0),Tt([s()],Pt.prototype,"focused",void 0),Tt([s()],Pt.prototype,"pressed",void 0),Tt([s()],Pt.prototype,"rippling",void 0),Tt([s()],Pt.prototype,"rippleSize",void 0),Tt([s()],Pt.prototype,"originX",void 0),Tt([s()],Pt.prototype,"originY",void 0),Tt([r(".ft-ripple")],Pt.prototype,"ripple",void 0),Tt([r(".ft-ripple--effect")],Pt.prototype,"rippleEffect",void 0),c("ft-ripple")(Pt);
224
224
  /**
225
225
  * @license
226
226
  * Copyright 2020 Google LLC
227
227
  * SPDX-License-Identifier: BSD-3-Clause
228
228
  */
229
- const Pt=Symbol.for(""),_t=t=>{if((null==t?void 0:t.r)===Pt)return null==t?void 0:t._$litStatic$},Wt=t=>({_$litStatic$:t,r:Pt}),Dt=new Map,It=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],l=[];let a,h=0,c=!1;for(;h<o;){for(a=i[h];h<o&&void 0!==(n=e[h],s=_t(n));)a+=s+i[++h],c=!0;l.push(n),r.push(a),h++}if(h===o&&r.push(i[o]),c){const t=r.join("$$lit$$");void 0===(i=Dt.get(t))&&(r.raw=r,Dt.set(t,i=r)),e=l}return t(i,...e)})(Z);var Ht;!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"}(Ht||(Ht={}));const Kt=dt.extend("--ft-typography-font-family",yt.titleFont),Zt=dt.extend("--ft-typography-font-family",yt.contentFont),Vt={fontFamily:Zt,fontSize:dt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:dt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:dt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:dt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:dt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Jt=dt.extend("--ft-typography-title-font-family",Kt),qt=dt.extend("--ft-typography-title-font-size",Vt.fontSize,"20px"),Xt=dt.extend("--ft-typography-title-font-weight",Vt.fontWeight,"normal"),Yt=dt.extend("--ft-typography-title-letter-spacing",Vt.letterSpacing,"0.15px"),Gt=dt.extend("--ft-typography-title-line-height",Vt.lineHeight,"1.2"),Qt=dt.extend("--ft-typography-title-text-transform",Vt.textTransform,"inherit"),ti=dt.extend("--ft-typography-title-dense-font-family",Kt),ii=dt.extend("--ft-typography-title-dense-font-size",Vt.fontSize,"14px"),ei=dt.extend("--ft-typography-title-dense-font-weight",Vt.fontWeight,"normal"),oi=dt.extend("--ft-typography-title-dense-letter-spacing",Vt.letterSpacing,"0.105px"),si=dt.extend("--ft-typography-title-dense-line-height",Vt.lineHeight,"1.7"),ni=dt.extend("--ft-typography-title-dense-text-transform",Vt.textTransform,"inherit"),ri=dt.extend("--ft-typography-subtitle1-font-family",Zt),li=dt.extend("--ft-typography-subtitle1-font-size",Vt.fontSize,"16px"),ai=dt.extend("--ft-typography-subtitle1-font-weight",Vt.fontWeight,"600"),hi=dt.extend("--ft-typography-subtitle1-letter-spacing",Vt.letterSpacing,"0.144px"),ci=dt.extend("--ft-typography-subtitle1-line-height",Vt.lineHeight,"1.5"),pi=dt.extend("--ft-typography-subtitle1-text-transform",Vt.textTransform,"inherit"),fi=dt.extend("--ft-typography-subtitle2-font-family",Zt),di=dt.extend("--ft-typography-subtitle2-font-size",Vt.fontSize,"14px"),ui=dt.extend("--ft-typography-subtitle2-font-weight",Vt.fontWeight,"normal"),yi=dt.extend("--ft-typography-subtitle2-letter-spacing",Vt.letterSpacing,"0.098px"),vi=dt.extend("--ft-typography-subtitle2-line-height",Vt.lineHeight,"1.7"),xi=dt.extend("--ft-typography-subtitle2-text-transform",Vt.textTransform,"inherit"),gi=dt.extend("--ft-typography-body1-font-family",Zt),bi=dt.extend("--ft-typography-body1-font-size",Vt.fontSize,"16px"),mi=dt.extend("--ft-typography-body1-font-weight",Vt.fontWeight,"normal"),wi=dt.extend("--ft-typography-body1-letter-spacing",Vt.letterSpacing,"0.496px"),$i=dt.extend("--ft-typography-body1-line-height",Vt.lineHeight,"1.5"),Oi=dt.extend("--ft-typography-body1-text-transform",Vt.textTransform,"inherit"),Si=dt.extend("--ft-typography-body2-font-family",Zt),ki=dt.extend("--ft-typography-body2-font-size",Vt.fontSize,"14px"),Ci=dt.extend("--ft-typography-body2-font-weight",Vt.fontWeight,"normal"),Ni=dt.extend("--ft-typography-body2-letter-spacing",Vt.letterSpacing,"0.252px"),Ei=dt.extend("--ft-typography-body2-line-height",Vt.lineHeight,"1.4"),Ri=dt.extend("--ft-typography-body2-text-transform",Vt.textTransform,"inherit"),Mi=dt.extend("--ft-typography-caption-font-family",Zt),Ui=dt.extend("--ft-typography-caption-font-size",Vt.fontSize,"12px"),Fi=dt.extend("--ft-typography-caption-font-weight",Vt.fontWeight,"normal"),zi=dt.extend("--ft-typography-caption-letter-spacing",Vt.letterSpacing,"0.396px"),ji=dt.extend("--ft-typography-caption-line-height",Vt.lineHeight,"1.33"),Ai=dt.extend("--ft-typography-caption-text-transform",Vt.textTransform,"inherit"),Li=dt.extend("--ft-typography-breadcrumb-font-family",Zt),Bi=dt.extend("--ft-typography-breadcrumb-font-size",Vt.fontSize,"10px"),Ti=dt.extend("--ft-typography-breadcrumb-font-weight",Vt.fontWeight,"normal"),Pi=dt.extend("--ft-typography-breadcrumb-letter-spacing",Vt.letterSpacing,"0.33px"),_i=dt.extend("--ft-typography-breadcrumb-line-height",Vt.lineHeight,"1.6"),Wi=dt.extend("--ft-typography-breadcrumb-text-transform",Vt.textTransform,"inherit"),Di=dt.extend("--ft-typography-overline-font-family",Zt),Ii=dt.extend("--ft-typography-overline-font-size",Vt.fontSize,"10px"),Hi=dt.extend("--ft-typography-overline-font-weight",Vt.fontWeight,"normal"),Ki=dt.extend("--ft-typography-overline-letter-spacing",Vt.letterSpacing,"1.5px"),Zi=dt.extend("--ft-typography-overline-line-height",Vt.lineHeight,"1.6"),Vi=dt.extend("--ft-typography-overline-text-transform",Vt.textTransform,"uppercase"),Ji={fontFamily:dt.extend("--ft-typography-button-font-family",Zt),fontSize:dt.extend("--ft-typography-button-font-size",Vt.fontSize,"14px"),fontWeight:dt.extend("--ft-typography-button-font-weight",Vt.fontWeight,"600"),letterSpacing:dt.extend("--ft-typography-button-letter-spacing",Vt.letterSpacing,"1.246px"),lineHeight:dt.extend("--ft-typography-button-line-height",Vt.lineHeight,"1.15"),textTransform:dt.extend("--ft-typography-button-text-transform",Vt.textTransform,"uppercase")},qi=v`
229
+ const _t=Symbol.for(""),Wt=t=>{if((null==t?void 0:t.r)===_t)return null==t?void 0:t._$litStatic$},Dt=t=>({_$litStatic$:t,r:_t}),It=new Map,Ht=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],l=[];let a,h=0,c=!1;for(;h<o;){for(a=i[h];h<o&&void 0!==(n=e[h],s=Wt(n));)a+=s+i[++h],c=!0;l.push(n),r.push(a),h++}if(h===o&&r.push(i[o]),c){const t=r.join("$$lit$$");void 0===(i=It.get(t))&&(r.raw=r,It.set(t,i=r)),e=l}return t(i,...e)})(V);var Kt;!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"}(Kt||(Kt={}));const Zt=ut.extend("--ft-typography-font-family",vt.titleFont),Vt=ut.extend("--ft-typography-font-family",vt.contentFont),Jt={fontFamily:Vt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},qt=ut.extend("--ft-typography-title-font-family",Zt),Xt=ut.extend("--ft-typography-title-font-size",Jt.fontSize,"20px"),Yt=ut.extend("--ft-typography-title-font-weight",Jt.fontWeight,"normal"),Gt=ut.extend("--ft-typography-title-letter-spacing",Jt.letterSpacing,"0.15px"),Qt=ut.extend("--ft-typography-title-line-height",Jt.lineHeight,"1.2"),ti=ut.extend("--ft-typography-title-text-transform",Jt.textTransform,"inherit"),ii=ut.extend("--ft-typography-title-dense-font-family",Zt),ei=ut.extend("--ft-typography-title-dense-font-size",Jt.fontSize,"14px"),oi=ut.extend("--ft-typography-title-dense-font-weight",Jt.fontWeight,"normal"),si=ut.extend("--ft-typography-title-dense-letter-spacing",Jt.letterSpacing,"0.105px"),ni=ut.extend("--ft-typography-title-dense-line-height",Jt.lineHeight,"1.7"),ri=ut.extend("--ft-typography-title-dense-text-transform",Jt.textTransform,"inherit"),li=ut.extend("--ft-typography-subtitle1-font-family",Vt),ai=ut.extend("--ft-typography-subtitle1-font-size",Jt.fontSize,"16px"),hi=ut.extend("--ft-typography-subtitle1-font-weight",Jt.fontWeight,"600"),ci=ut.extend("--ft-typography-subtitle1-letter-spacing",Jt.letterSpacing,"0.144px"),pi=ut.extend("--ft-typography-subtitle1-line-height",Jt.lineHeight,"1.5"),fi=ut.extend("--ft-typography-subtitle1-text-transform",Jt.textTransform,"inherit"),di=ut.extend("--ft-typography-subtitle2-font-family",Vt),ui=ut.extend("--ft-typography-subtitle2-font-size",Jt.fontSize,"14px"),yi=ut.extend("--ft-typography-subtitle2-font-weight",Jt.fontWeight,"normal"),vi=ut.extend("--ft-typography-subtitle2-letter-spacing",Jt.letterSpacing,"0.098px"),xi=ut.extend("--ft-typography-subtitle2-line-height",Jt.lineHeight,"1.7"),gi=ut.extend("--ft-typography-subtitle2-text-transform",Jt.textTransform,"inherit"),bi=ut.extend("--ft-typography-body1-font-family",Vt),mi=ut.extend("--ft-typography-body1-font-size",Jt.fontSize,"16px"),wi=ut.extend("--ft-typography-body1-font-weight",Jt.fontWeight,"normal"),$i=ut.extend("--ft-typography-body1-letter-spacing",Jt.letterSpacing,"0.496px"),Oi=ut.extend("--ft-typography-body1-line-height",Jt.lineHeight,"1.5"),Si=ut.extend("--ft-typography-body1-text-transform",Jt.textTransform,"inherit"),ki=ut.extend("--ft-typography-body2-font-family",Vt),Ci=ut.extend("--ft-typography-body2-font-size",Jt.fontSize,"14px"),Ni=ut.extend("--ft-typography-body2-font-weight",Jt.fontWeight,"normal"),Ei=ut.extend("--ft-typography-body2-letter-spacing",Jt.letterSpacing,"0.252px"),Ri=ut.extend("--ft-typography-body2-line-height",Jt.lineHeight,"1.4"),Mi=ut.extend("--ft-typography-body2-text-transform",Jt.textTransform,"inherit"),Ui=ut.extend("--ft-typography-caption-font-family",Vt),ji=ut.extend("--ft-typography-caption-font-size",Jt.fontSize,"12px"),Fi=ut.extend("--ft-typography-caption-font-weight",Jt.fontWeight,"normal"),zi=ut.extend("--ft-typography-caption-letter-spacing",Jt.letterSpacing,"0.396px"),Ai=ut.extend("--ft-typography-caption-line-height",Jt.lineHeight,"1.33"),Li=ut.extend("--ft-typography-caption-text-transform",Jt.textTransform,"inherit"),Bi=ut.extend("--ft-typography-breadcrumb-font-family",Vt),Ti=ut.extend("--ft-typography-breadcrumb-font-size",Jt.fontSize,"10px"),Pi=ut.extend("--ft-typography-breadcrumb-font-weight",Jt.fontWeight,"normal"),_i=ut.extend("--ft-typography-breadcrumb-letter-spacing",Jt.letterSpacing,"0.33px"),Wi=ut.extend("--ft-typography-breadcrumb-line-height",Jt.lineHeight,"1.6"),Di=ut.extend("--ft-typography-breadcrumb-text-transform",Jt.textTransform,"inherit"),Ii=ut.extend("--ft-typography-overline-font-family",Vt),Hi=ut.extend("--ft-typography-overline-font-size",Jt.fontSize,"10px"),Ki=ut.extend("--ft-typography-overline-font-weight",Jt.fontWeight,"normal"),Zi=ut.extend("--ft-typography-overline-letter-spacing",Jt.letterSpacing,"1.5px"),Vi=ut.extend("--ft-typography-overline-line-height",Jt.lineHeight,"1.6"),Ji=ut.extend("--ft-typography-overline-text-transform",Jt.textTransform,"uppercase"),qi={fontFamily:ut.extend("--ft-typography-button-font-family",Vt),fontSize:ut.extend("--ft-typography-button-font-size",Jt.fontSize,"14px"),fontWeight:ut.extend("--ft-typography-button-font-weight",Jt.fontWeight,"600"),letterSpacing:ut.extend("--ft-typography-button-letter-spacing",Jt.letterSpacing,"1.246px"),lineHeight:ut.extend("--ft-typography-button-line-height",Jt.lineHeight,"1.15"),textTransform:ut.extend("--ft-typography-button-text-transform",Jt.textTransform,"uppercase")},Xi=x`
230
230
  .ft-typography--title {
231
- font-family: ${Jt};
232
- font-size: ${qt};
233
- font-weight: ${Xt};
234
- letter-spacing: ${Yt};
235
- line-height: ${Gt};
236
- text-transform: ${Qt};
237
- }
238
- `,Xi=v`
231
+ font-family: ${qt};
232
+ font-size: ${Xt};
233
+ font-weight: ${Yt};
234
+ letter-spacing: ${Gt};
235
+ line-height: ${Qt};
236
+ text-transform: ${ti};
237
+ }
238
+ `,Yi=x`
239
239
  .ft-typography--title-dense {
240
- font-family: ${ti};
241
- font-size: ${ii};
242
- font-weight: ${ei};
243
- letter-spacing: ${oi};
244
- line-height: ${si};
245
- text-transform: ${ni};
246
- }
247
- `,Yi=v`
240
+ font-family: ${ii};
241
+ font-size: ${ei};
242
+ font-weight: ${oi};
243
+ letter-spacing: ${si};
244
+ line-height: ${ni};
245
+ text-transform: ${ri};
246
+ }
247
+ `,Gi=x`
248
248
  .ft-typography--subtitle1 {
249
- font-family: ${ri};
250
- font-size: ${li};
251
- font-weight: ${ai};
252
- letter-spacing: ${hi};
253
- line-height: ${ci};
254
- text-transform: ${pi};
255
- }
256
- `,Gi=v`
249
+ font-family: ${li};
250
+ font-size: ${ai};
251
+ font-weight: ${hi};
252
+ letter-spacing: ${ci};
253
+ line-height: ${pi};
254
+ text-transform: ${fi};
255
+ }
256
+ `,Qi=x`
257
257
  .ft-typography--subtitle2 {
258
- font-family: ${fi};
259
- font-size: ${di};
260
- font-weight: ${ui};
261
- letter-spacing: ${yi};
262
- line-height: ${vi};
263
- text-transform: ${xi};
258
+ font-family: ${di};
259
+ font-size: ${ui};
260
+ font-weight: ${yi};
261
+ letter-spacing: ${vi};
262
+ line-height: ${xi};
263
+ text-transform: ${gi};
264
264
  }
265
265
 
266
- `,Qi=v`
266
+ `,te=x`
267
267
  .ft-typography--body1 {
268
- font-family: ${gi};
269
- font-size: ${bi};
270
- font-weight: ${mi};
271
- letter-spacing: ${wi};
272
- line-height: ${$i};
273
- text-transform: ${Oi};
274
- }
275
- `,te=v`
268
+ font-family: ${bi};
269
+ font-size: ${mi};
270
+ font-weight: ${wi};
271
+ letter-spacing: ${$i};
272
+ line-height: ${Oi};
273
+ text-transform: ${Si};
274
+ }
275
+ `,ie=x`
276
276
  .ft-typography--body2 {
277
- font-family: ${Si};
278
- font-size: ${ki};
279
- font-weight: ${Ci};
280
- letter-spacing: ${Ni};
281
- line-height: ${Ei};
282
- text-transform: ${Ri};
283
- }
284
- `,ie=v`
277
+ font-family: ${ki};
278
+ font-size: ${Ci};
279
+ font-weight: ${Ni};
280
+ letter-spacing: ${Ei};
281
+ line-height: ${Ri};
282
+ text-transform: ${Mi};
283
+ }
284
+ `,ee=x`
285
285
  .ft-typography--caption {
286
- font-family: ${Mi};
287
- font-size: ${Ui};
286
+ font-family: ${Ui};
287
+ font-size: ${ji};
288
288
  font-weight: ${Fi};
289
289
  letter-spacing: ${zi};
290
- line-height: ${ji};
291
- text-transform: ${Ai};
290
+ line-height: ${Ai};
291
+ text-transform: ${Li};
292
292
  }
293
- `,ee=v`
293
+ `,oe=x`
294
294
  .ft-typography--breadcrumb {
295
- font-family: ${Li};
296
- font-size: ${Bi};
297
- font-weight: ${Ti};
298
- letter-spacing: ${Pi};
299
- line-height: ${_i};
300
- text-transform: ${Wi};
301
- }
302
- `,oe=v`
295
+ font-family: ${Bi};
296
+ font-size: ${Ti};
297
+ font-weight: ${Pi};
298
+ letter-spacing: ${_i};
299
+ line-height: ${Wi};
300
+ text-transform: ${Di};
301
+ }
302
+ `,se=x`
303
303
  .ft-typography--overline {
304
- font-family: ${Di};
305
- font-size: ${Ii};
306
- font-weight: ${Hi};
307
- letter-spacing: ${Ki};
308
- line-height: ${Zi};
309
- text-transform: ${Vi};
310
- }
311
- `,se=v`
304
+ font-family: ${Ii};
305
+ font-size: ${Hi};
306
+ font-weight: ${Ki};
307
+ letter-spacing: ${Zi};
308
+ line-height: ${Vi};
309
+ text-transform: ${Ji};
310
+ }
311
+ `,ne=x`
312
312
  .ft-typography--button {
313
- font-family: ${Ji.fontFamily};
314
- font-size: ${Ji.fontSize};
315
- font-weight: ${Ji.fontWeight};
316
- letter-spacing: ${Ji.letterSpacing};
317
- line-height: ${Ji.lineHeight};
318
- text-transform: ${Ji.textTransform};
319
- }
320
- `,ne=v`
313
+ font-family: ${qi.fontFamily};
314
+ font-size: ${qi.fontSize};
315
+ font-weight: ${qi.fontWeight};
316
+ letter-spacing: ${qi.letterSpacing};
317
+ line-height: ${qi.lineHeight};
318
+ text-transform: ${qi.textTransform};
319
+ }
320
+ `,re=x`
321
321
  .ft-typography {
322
322
  vertical-align: inherit;
323
323
  }
324
- `;var re=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class le extends xt{constructor(){super(...arguments),this.variant=Ht.body1}render(){return this.element?It`
325
- <${Wt(this.element)}
324
+ `;var le=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class ae extends gt{constructor(){super(...arguments),this.variant=Kt.body1}render(){return this.element?Ht`
325
+ <${Dt(this.element)}
326
326
  class="ft-typography ft-typography--${this.variant}">
327
327
  <slot></slot>
328
- </${Wt(this.element)}>
329
- `:It`
328
+ </${Dt(this.element)}>
329
+ `:Ht`
330
330
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
331
- `}}le.styles=[qi,Xi,Yi,Gi,Qi,te,ie,ee,oe,se,ne],re([o()],le.prototype,"element",void 0),re([o()],le.prototype,"variant",void 0),h("ft-typography")(le);const ae=dt.create("--ft-tooltip-distance","SIZE","4px"),he=dt.create("--ft-tooltip-color","COLOR","#FFFFFF"),ce=dt.create("--ft-tooltip-background-color","COLOR","#666666"),pe=dt.create("--ft-tooltip-z-index","NUMBER","1"),fe=dt.external(yt.borderRadiusS,"Design system"),de=dt.create("--ft-tooltip-max-width","SIZE","150px"),ue=v`
331
+ `}}ae.styles=[Xi,Yi,Gi,Qi,te,ie,ee,oe,se,ne,re],le([o()],ae.prototype,"element",void 0),le([o()],ae.prototype,"variant",void 0),c("ft-typography")(ae);const he=ut.create("--ft-tooltip-distance","SIZE","4px"),ce=ut.create("--ft-tooltip-color","COLOR","#FFFFFF"),pe=ut.create("--ft-tooltip-background-color","COLOR","#666666"),fe=ut.create("--ft-tooltip-z-index","NUMBER","1"),de=ut.external(vt.borderRadiusS,"Design system"),ue=ut.create("--ft-tooltip-max-width","SIZE","150px"),ye=x`
332
332
  .ft-tooltip--container {
333
333
  display: block;
334
334
  position: relative;
@@ -344,23 +344,23 @@ const Pt=Symbol.for(""),_t=t=>{if((null==t?void 0:t.r)===Pt)return null==t?void
344
344
  box-sizing: border-box;
345
345
  overflow: hidden;
346
346
  width: max-content;
347
- max-width: ${de};
347
+ max-width: ${ue};
348
348
  text-align: center;
349
- padding: ${ae};
350
- z-index: ${pe};
349
+ padding: ${he};
350
+ z-index: ${fe};
351
351
  }
352
352
 
353
353
  .ft-tooltip--content {
354
354
  padding: 4px 8px;
355
- border-radius: ${fe};
356
- background-color: ${ce};
357
- color: ${he};
355
+ border-radius: ${de};
356
+ background-color: ${pe};
357
+ color: ${ce};
358
358
  top: -500px;
359
359
  left: -500px;
360
360
  position: relative;
361
361
  word-break: break-word;
362
362
  }
363
- `;var ye=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class ve extends xt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i,this.revealDebouncer=new i}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Z`
363
+ `;var ve=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class xe extends gt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i,this.revealDebouncer=new i}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return V`
364
364
  <div part="container"
365
365
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
366
366
  @mouseenter=${this.onHover}
@@ -378,19 +378,19 @@ const Pt=Symbol.for(""),_t=t=>{if((null==t?void 0:t.r)===Pt)return null==t?void
378
378
  </div>
379
379
  </div>
380
380
  </div>
381
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=i.height,s=o;break;case"left":n=e,s=-this.tooltip.clientWidth;break;case"right":n=e,s=i.width}i.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${i.width}px, ${de})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}ve.elementDefinitions={"ft-typography":le},ve.styles=ue,ye([o()],ve.prototype,"text",void 0),ye([o({type:Boolean})],ve.prototype,"manual",void 0),ye([o({type:Boolean})],ve.prototype,"inline",void 0),ye([o({type:Number})],ve.prototype,"delay",void 0),ye([o()],ve.prototype,"position",void 0),ye([
381
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=i.height,s=o;break;case"left":n=e,s=-this.tooltip.clientWidth;break;case"right":n=e,s=i.width}i.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${i.width}px, ${ue})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}xe.elementDefinitions={"ft-typography":ae},xe.styles=ye,ve([o()],xe.prototype,"text",void 0),ve([o({type:Boolean})],xe.prototype,"manual",void 0),ve([o({type:Boolean})],xe.prototype,"inline",void 0),ve([o({type:Number})],xe.prototype,"delay",void 0),ve([o()],xe.prototype,"position",void 0),ve([
382
382
  /**
383
383
  * @license
384
384
  * Copyright 2017 Google LLC
385
385
  * SPDX-License-Identifier: BSD-3-Clause
386
386
  */
387
- function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return n({descriptor:o=>({get(){var o;const s="slot"+(i?`[name=${i}]`:":not([name])"),n=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),r=null!=n?a(n,t):[];return e?r.filter((t=>t.matches(e))):r},enumerable:!0,configurable:!0})})}({slot:s,flatten:i,selector:e}):n({descriptor:t=>({get(){var t,i;const e="slot"+(s?`[name=${s}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==n?void 0:n.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],ve.prototype,"slotNodes",void 0),ye([r(".ft-tooltip--container")],ve.prototype,"container",void 0),ye([r("slot")],ve.prototype,"target",void 0),ye([r(".ft-tooltip")],ve.prototype,"tooltip",void 0),ye([r(".ft-tooltip--content")],ve.prototype,"tooltipContent",void 0),ye([s()],ve.prototype,"visible",void 0),h("ft-tooltip")(ve);
387
+ function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return n({descriptor:o=>({get(){var o;const s="slot"+(i?`[name=${i}]`:":not([name])"),n=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),r=null!=n?a(n,t):[];return e?r.filter((t=>t.matches(e))):r},enumerable:!0,configurable:!0})})}({slot:s,flatten:i,selector:e}):n({descriptor:t=>({get(){var t,i;const e="slot"+(s?`[name=${s}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==n?void 0:n.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],xe.prototype,"slotNodes",void 0),ve([r(".ft-tooltip--container")],xe.prototype,"container",void 0),ve([r("slot")],xe.prototype,"target",void 0),ve([r(".ft-tooltip")],xe.prototype,"tooltip",void 0),ve([r(".ft-tooltip--content")],xe.prototype,"tooltipContent",void 0),ve([s()],xe.prototype,"visible",void 0),c("ft-tooltip")(xe);
388
388
  /**
389
389
  * @license
390
390
  * Copyright 2017 Google LLC
391
391
  * SPDX-License-Identifier: BSD-3-Clause
392
392
  */
393
- class xe extends Ct{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===J||null==t)return this._t=void 0,this.it=t;if(t===V)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}xe.directiveName="unsafeHTML",xe.resultType=1;const ge=kt(xe);var be,me;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}(be||(be={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(me||(me={})),new Map([...["abw"].map((t=>[t,me.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,me.AUDIO])),...["avi"].map((t=>[t,me.AVI])),...["chm","xhs"].map((t=>[t,me.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,me.CODE])),...["csv"].map((t=>[t,me.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,me.DITA])),...["epub"].map((t=>[t,me.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,me.EXCEL])),...["flac"].map((t=>[t,me.FLAC])),...["gif"].map((t=>[t,me.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,me.GZIP])),...["html","htm","xhtml"].map((t=>[t,me.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,me.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,me.JPEG])),...["json"].map((t=>[t,me.JSON])),...["m4a","m4p"].map((t=>[t,me.M4A])),...["mov","qt"].map((t=>[t,me.MOV])),...["mp3"].map((t=>[t,me.MP3])),...["mp4","m4v"].map((t=>[t,me.MP4])),...["ogg","oga"].map((t=>[t,me.OGG])),...["pdf","ps"].map((t=>[t,me.PDF])),...["png"].map((t=>[t,me.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,me.POWERPOINT])),...["rar"].map((t=>[t,me.RAR])),...["stp"].map((t=>[t,me.STP])),...["txt","rtf","md","mdown"].map((t=>[t,me.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,me.VIDEO])),...["wav"].map((t=>[t,me.WAV])),...["wma"].map((t=>[t,me.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,me.WORD])),...["xml","xsl","rdf"].map((t=>[t,me.XML])),...["yaml","yml","x-yaml"].map((t=>[t,me.YAML])),...["zip"].map((t=>[t,me.ZIP]))]);const we={size:dt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:dt.extend("--ft-icon-fluid-topics-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:dt.extend("--ft-icon-file-format-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:dt.extend("--ft-icon-material-font-family",dt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:dt.create("--ft-icon-vertical-align","UNKNOWN","unset")},$e=v`
393
+ class ge extends Nt{constructor(t){if(super(t),this.it=q,t.type!==kt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===q||null==t)return this._t=void 0,this.it=t;if(t===J)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}ge.directiveName="unsafeHTML",ge.resultType=1;const be=Ct(ge);var me,we;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}(me||(me={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(we||(we={})),new Map([...["abw"].map((t=>[t,we.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,we.AUDIO])),...["avi"].map((t=>[t,we.AVI])),...["chm","xhs"].map((t=>[t,we.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,we.CODE])),...["csv"].map((t=>[t,we.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,we.DITA])),...["epub"].map((t=>[t,we.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,we.EXCEL])),...["flac"].map((t=>[t,we.FLAC])),...["gif"].map((t=>[t,we.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,we.GZIP])),...["html","htm","xhtml"].map((t=>[t,we.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,we.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,we.JPEG])),...["json"].map((t=>[t,we.JSON])),...["m4a","m4p"].map((t=>[t,we.M4A])),...["mov","qt"].map((t=>[t,we.MOV])),...["mp3"].map((t=>[t,we.MP3])),...["mp4","m4v"].map((t=>[t,we.MP4])),...["ogg","oga"].map((t=>[t,we.OGG])),...["pdf","ps"].map((t=>[t,we.PDF])),...["png"].map((t=>[t,we.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,we.POWERPOINT])),...["rar"].map((t=>[t,we.RAR])),...["stp"].map((t=>[t,we.STP])),...["txt","rtf","md","mdown"].map((t=>[t,we.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,we.VIDEO])),...["wav"].map((t=>[t,we.WAV])),...["wma"].map((t=>[t,we.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,we.WORD])),...["xml","xsl","rdf"].map((t=>[t,we.XML])),...["yaml","yml","x-yaml"].map((t=>[t,we.YAML])),...["zip"].map((t=>[t,we.ZIP]))]);const $e={size:ut.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ut.extend("--ft-icon-fluid-topics-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ut.extend("--ft-icon-file-format-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ut.extend("--ft-icon-material-font-family",ut.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ut.create("--ft-icon-vertical-align","UNKNOWN","unset")},Oe=x`
394
394
  :host, i.ft-icon {
395
395
  display: inline-flex;
396
396
  align-items: center;
@@ -399,14 +399,14 @@ class xe extends Ct{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
399
399
  }
400
400
 
401
401
  :host {
402
- width: ${we.size};
403
- height: ${we.size};
402
+ width: ${$e.size};
403
+ height: ${$e.size};
404
404
  }
405
405
 
406
406
  i.ft-icon {
407
407
  width: 100%;
408
408
  height: 100%;
409
- font-size: ${we.size};
409
+ font-size: ${$e.size};
410
410
  line-height: 1;
411
411
  font-weight: normal;
412
412
  text-transform: none;
@@ -417,32 +417,32 @@ class xe extends Ct{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
417
417
  text-rendering: auto;
418
418
  -webkit-font-smoothing: antialiased;
419
419
  -moz-osx-font-smoothing: grayscale;
420
- vertical-align: ${we.verticalAlign};
420
+ vertical-align: ${$e.verticalAlign};
421
421
  }
422
422
 
423
423
  i.ft-icon.ft-icon--fluid-topics {
424
- font-family: ${we.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
424
+ font-family: ${$e.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
425
425
 
426
426
  /* Ugly fix because font is broken */
427
- font-size: calc(0.9 * ${we.size});
427
+ font-size: calc(0.9 * ${$e.size});
428
428
  position: relative;
429
429
  top: -5%;
430
430
  justify-content: center;
431
431
  }
432
432
 
433
433
  .ft-icon--file-format {
434
- font-family: ${we.fileFormatFontFamily}, ft-mime, sans-serif;
434
+ font-family: ${$e.fileFormatFontFamily}, ft-mime, sans-serif;
435
435
  }
436
436
 
437
437
  .ft-icon--material {
438
- font-family: ${we.materialFontFamily}, "Material Icons", sans-serif;
438
+ font-family: ${$e.materialFontFamily}, "Material Icons", sans-serif;
439
439
  }
440
- `;var Oe;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Oe||(Oe={}));var Se=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class ke extends xt{constructor(){super(...arguments),this.variant=Oe.fluid_topics,this.resolvedIcon=J}render(){const t="material"!==this.variant||this.value;return Z`
441
- <i class="ft-icon ${"ft-icon--"+this.variant}">
442
- ${ge(this.resolvedIcon)}
443
- <slot ?hidden=${t}></slot>
440
+ `;var Se;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Se||(Se={}));var ke=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ce extends gt{constructor(){super(...arguments),this.resolvedIcon=q}render(){var t;const i=null!==(t=this.variant)&&void 0!==t?t:Se.fluid_topics,e="material"!==i||this.value;return V`
441
+ <i class="ft-icon ${"ft-icon--"+i}">
442
+ ${be(this.resolvedIcon)}
443
+ <slot ?hidden=${e}></slot>
444
444
  </i>
445
- `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case Oe.file_format:this.resolvedIcon=null!==(t=me[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case Oe.fluid_topics:this.resolvedIcon=null!==(i=be[e.replace("-","_").toUpperCase()])&&void 0!==i?i:e;break;default:this.resolvedIcon=this.value||J}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ke.elementDefinitions={},ke.styles=$e,Se([o()],ke.prototype,"variant",void 0),Se([o()],ke.prototype,"value",void 0),Se([s()],ke.prototype,"resolvedIcon",void 0),Se([r("slot")],ke.prototype,"slottedContent",void 0),h("ft-icon")(ke);const Ce={textColor:dt.extend("--ft-switch-text-color",yt.colorOnSurfaceHigh),backgroundColor:dt.extend("--ft-switch-background-color",yt.colorSurface),selectedTextColor:dt.extend("--ft-switch-selected-text-color",yt.colorPrimary),selectedBackgroundColor:dt.extend("--ft-switch-selected-background-color",yt.colorPrimary),borderColor:dt.extend("--ft-switch-border-color",yt.colorOutline),borderRadius:dt.extend("--ft-switch-border-radius",yt.borderRadiusL),fontSize:dt.extend("--ft-switch-font-size",Ji.fontSize),iconSize:dt.create("--ft-switch-icon-size","SIZE","24px"),iconColor:dt.extend("--ft-switch-text-color",yt.colorOnSurfaceMedium),rippleColor:dt.extend("--ft-switch-ripple-color",yt.colorPrimary),outlineColor:dt.extend("--ft-switch-outline-color",yt.colorPrimary)},Ne={borderRadiusLeft:dt.extend("--ft-switch-option-border-radius-left",yt.borderRadiusL),borderRadiusRight:dt.extend("--ft-switch-option-border-radius-right",yt.borderRadiusL),borderWidthLeft:dt.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:dt.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:dt.create("--ft-switch-option-border-width-vertical","SIZE","1px")},Ee=v`
445
+ `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case Se.file_format:this.resolvedIcon=null!==(t=we[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case Se.material:this.resolvedIcon=this.value||q;break;default:this.resolvedIcon=null!==(i=me[e.replace("-","_").toUpperCase()])&&void 0!==i?i:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ce.elementDefinitions={},Ce.styles=Oe,ke([o()],Ce.prototype,"variant",void 0),ke([o()],Ce.prototype,"value",void 0),ke([s()],Ce.prototype,"resolvedIcon",void 0),ke([r("slot")],Ce.prototype,"slottedContent",void 0),c("ft-icon")(Ce);const Ne={textColor:ut.extend("--ft-switch-text-color",vt.colorOnSurfaceHigh),backgroundColor:ut.extend("--ft-switch-background-color",vt.colorSurface),selectedTextColor:ut.extend("--ft-switch-selected-text-color",vt.colorPrimary),selectedBackgroundColor:ut.extend("--ft-switch-selected-background-color",vt.colorPrimary),borderColor:ut.extend("--ft-switch-border-color",vt.colorOutline),borderRadius:ut.extend("--ft-switch-border-radius",vt.borderRadiusL),fontSize:ut.extend("--ft-switch-font-size",qi.fontSize),iconSize:ut.create("--ft-switch-icon-size","SIZE","24px"),iconColor:ut.extend("--ft-switch-text-color",vt.colorOnSurfaceMedium),rippleColor:ut.extend("--ft-switch-ripple-color",vt.colorPrimary),outlineColor:ut.extend("--ft-switch-outline-color",vt.colorPrimary)},Ee={borderRadiusLeft:ut.extend("--ft-switch-option-border-radius-left",vt.borderRadiusL),borderRadiusRight:ut.extend("--ft-switch-option-border-radius-right",vt.borderRadiusL),borderWidthLeft:ut.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:ut.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:ut.create("--ft-switch-option-border-width-vertical","SIZE","1px")},Re=x`
446
446
  .ft-switch-option {
447
447
  position: relative;
448
448
  display: inline-block;
@@ -456,20 +456,20 @@ class xe extends Ct{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
456
456
  }
457
457
 
458
458
  .ft-switch-option--content {
459
- --ft-switch-option-internal-line-height: calc(${Ce.fontSize} + 2px);
460
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Ce.iconSize});
459
+ --ft-switch-option-internal-line-height: calc(${Ne.fontSize} + 2px);
460
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Ne.iconSize});
461
461
 
462
462
  border-style: solid;
463
- border-color: ${Ce.borderColor};
464
- border-width: ${Ne.borderWidthVertical} ${Ne.borderWidthRight} ${Ne.borderWidthVertical} ${Ne.borderWidthLeft};
465
- border-radius: ${Ne.borderRadiusLeft} ${Ne.borderRadiusRight} ${Ne.borderRadiusRight} ${Ne.borderRadiusLeft};
463
+ border-color: ${Ne.borderColor};
464
+ border-width: ${Ee.borderWidthVertical} ${Ee.borderWidthRight} ${Ee.borderWidthVertical} ${Ee.borderWidthLeft};
465
+ border-radius: ${Ee.borderRadiusLeft} ${Ee.borderRadiusRight} ${Ee.borderRadiusRight} ${Ee.borderRadiusLeft};
466
466
  display: flex;
467
467
  align-items: center;
468
468
  justify-content: center;
469
469
  overflow: hidden;
470
- ${ut(we.size,Ce.iconSize)};
470
+ ${yt($e.size,Ne.iconSize)};
471
471
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
472
- background-color: ${Ce.backgroundColor};
472
+ background-color: ${Ne.backgroundColor};
473
473
  -webkit-mask-image: radial-gradient(white, black);
474
474
  }
475
475
 
@@ -478,28 +478,28 @@ class xe extends Ct{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
478
478
  }
479
479
 
480
480
  .ft-switch-option--input:checked + .ft-switch-option--content:before {
481
- background-color: ${Ce.selectedBackgroundColor};
482
- border-radius: ${Ne.borderRadiusLeft} ${Ne.borderRadiusRight} ${Ne.borderRadiusRight} ${Ne.borderRadiusLeft};
481
+ background-color: ${Ne.selectedBackgroundColor};
482
+ border-radius: ${Ee.borderRadiusLeft} ${Ee.borderRadiusRight} ${Ee.borderRadiusRight} ${Ee.borderRadiusLeft};
483
483
  position: absolute;
484
484
  inset: 0;
485
485
  content: "";
486
486
  z-index: 1;
487
- opacity: ${yt.opacityPrimaryOnSurfaceSelected};
487
+ opacity: ${vt.opacityPrimaryOnSurfaceSelected};
488
488
  }
489
489
 
490
490
  .ft-switch-option--label {
491
- color: ${Ce.textColor};
491
+ color: ${Ne.textColor};
492
492
  overflow: hidden;
493
493
  white-space: nowrap;
494
494
  text-overflow: ellipsis;
495
495
  display: block;
496
496
  margin: 0 8px;
497
- ${ut(Ji.fontSize,Ce.fontSize)};
498
- ${ut(Ji.lineHeight,"var(--ft-switch-option-internal-content-height)")}
497
+ ${yt(qi.fontSize,Ne.fontSize)};
498
+ ${yt(qi.lineHeight,"var(--ft-switch-option-internal-content-height)")}
499
499
  }
500
500
 
501
501
  .ft-switch-option--input:checked + .ft-switch-option--content .ft-switch-option--label {
502
- color: ${Ce.selectedTextColor};
502
+ color: ${Ne.selectedTextColor};
503
503
  }
504
504
 
505
505
  .ft-switch-option--label[hidden] {
@@ -507,7 +507,7 @@ class xe extends Ct{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
507
507
  }
508
508
 
509
509
  .ft-switch-option--ripple {
510
- ${ut(Rt.color,Ce.rippleColor)};
510
+ ${yt(Mt.color,Ne.rippleColor)};
511
511
  }
512
512
 
513
513
  ft-icon, ft-ripple, ft-typography {
@@ -520,14 +520,14 @@ class xe extends Ct{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
520
520
 
521
521
  ft-icon {
522
522
  flex-shrink: 0;
523
- color: ${Ce.iconColor};
523
+ color: ${Ne.iconColor};
524
524
  }
525
525
 
526
526
  .ft-switch-option--input:checked + .ft-switch-option--content ft-icon {
527
- color: ${Ce.selectedTextColor};
527
+ color: ${Ne.selectedTextColor};
528
528
  }
529
- `;var Re=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Me extends CustomEvent{constructor(){super("option-change",{bubbles:!0,composed:!0})}}class Ue extends xt{constructor(){super(...arguments),this.value="",this.iconVariant=Oe.material,this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new Me)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(Z`
530
- <label part="label" for="input" class=${Nt(t)}
529
+ `;var Me=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ue extends CustomEvent{constructor(){super("option-change",{bubbles:!0,composed:!0})}}class je extends gt{constructor(){super(...arguments),this.value="",this.iconVariant=Se.material,this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new Ue)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(V`
530
+ <label part="label" for="input" class=${Et(t)}
531
531
  @click=${this.onChange}>
532
532
  <input id="input" type="radio" class="ft-switch-option--input"
533
533
  .checked=${this.selected}>
@@ -535,34 +535,34 @@ class xe extends Ct{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
535
535
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
536
536
  <ft-typography part="text"
537
537
  variant="button"
538
- class="ft-switch-option--label ${$t?"ft-safari-ellipsis-fix":""}"
538
+ class="ft-switch-option--label ${Ot?"ft-safari-ellipsis-fix":""}"
539
539
  ?hidden=${!this.hasTextContent()}>
540
540
  <slot @slotchange=${this.onSlotchange}></slot>
541
541
  </ft-typography>
542
542
  ${this.resolveIcon()}
543
543
  </div>
544
544
  </label>
545
- `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:Z`
545
+ `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:V`
546
546
  <ft-tooltip part="tooltip"
547
547
  text="${this.getLabel()}"
548
548
  position="${this.tooltipPosition}">
549
549
  ${t}
550
550
  </ft-tooltip>
551
- `}onChange(){this.selected=!this.unselectable||!this.selected}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?Z`
551
+ `}onChange(){this.selected=!this.unselectable||!this.selected}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?V`
552
552
  <ft-icon part="icon" .variant=${this.iconVariant} value=${this.icon}></ft-icon>
553
- `:J}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Ue.elementDefinitions={"ft-ripple":Tt,"ft-typography":le,"ft-tooltip":ve,"ft-icon":ke},Ue.styles=[gt,Ee],Re([o()],Ue.prototype,"value",void 0),Re([o()],Ue.prototype,"icon",void 0),Re([o()],Ue.prototype,"iconVariant",void 0),Re([o()],Ue.prototype,"label",void 0),Re([o()],Ue.prototype,"tooltipPosition",void 0),Re([o({type:Boolean,reflect:!0})],Ue.prototype,"selected",void 0),Re([o({type:Boolean})],Ue.prototype,"trailingIcon",void 0),Re([o({type:Boolean})],Ue.prototype,"unselectable",void 0),Re([r(".ft-switch-option--content slot")],Ue.prototype,"slottedContent",void 0),Re([r(".ft-switch-option--input")],Ue.prototype,"input",void 0);var Fe=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class ze extends CustomEvent{constructor(t){super("change",{detail:t})}}class je extends xt{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}updated(t){var i;super.updated(t),t.has("selectedOption")&&(this.updateOptions(),this.dispatchEvent(new ze(null===(i=this.selectedOption)||void 0===i?void 0:i.value))),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return Z`
554
- <div @keydown=${this.onKeyDown} tabindex="0" class="${Nt(t)}">
553
+ `:q}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}je.elementDefinitions={"ft-ripple":Pt,"ft-typography":ae,"ft-tooltip":xe,"ft-icon":Ce},je.styles=[bt,Re],Me([o()],je.prototype,"value",void 0),Me([o()],je.prototype,"icon",void 0),Me([o()],je.prototype,"iconVariant",void 0),Me([o()],je.prototype,"label",void 0),Me([o()],je.prototype,"tooltipPosition",void 0),Me([o({type:Boolean,reflect:!0})],je.prototype,"selected",void 0),Me([o({type:Boolean})],je.prototype,"trailingIcon",void 0),Me([o({type:Boolean})],je.prototype,"unselectable",void 0),Me([r(".ft-switch-option--content slot")],je.prototype,"slottedContent",void 0),Me([r(".ft-switch-option--input")],je.prototype,"input",void 0);var Fe=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class ze extends CustomEvent{constructor(t){super("change",{detail:t})}}class Ae extends gt{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}updated(t){var i;super.updated(t),t.has("selectedOption")&&(this.updateOptions(),this.dispatchEvent(new ze(null===(i=this.selectedOption)||void 0===i?void 0:i.value))),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return V`
554
+ <div @keydown=${this.onKeyDown} tabindex="0" class="${Et(t)}">
555
555
  <slot @slotchange=${this.onSlotchange}
556
556
  @option-change=${this.onOptionChange}></slot>
557
557
  </div>
558
- `}onKeyDown(t){let i;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(i=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(i=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=i&&(t.preventDefault(),this.options[this.fixIndex(i)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof Ue&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChange(t){t.stopPropagation();let i=t.target;i.selected?this.selectedOption=i:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t==this.selectedOption}))}}je.elementDefinitions={},je.styles=v`
558
+ `}onKeyDown(t){let i;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(i=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(i=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=i&&(t.preventDefault(),this.options[this.fixIndex(i)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof je&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChange(t){t.stopPropagation();let i=t.target;i.selected?this.selectedOption=i:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t==this.selectedOption}))}}Ae.elementDefinitions={},Ae.styles=x`
559
559
  :host {
560
560
  display: inline-block;
561
561
  }
562
562
 
563
563
  .ft-switch {
564
- border-radius: ${Ce.borderRadius};
565
- outline-color: ${Ce.outlineColor};
564
+ border-radius: ${Ne.borderRadius};
565
+ outline-color: ${Ne.outlineColor};
566
566
  }
567
567
 
568
568
  .ft-switch slot {
@@ -571,22 +571,22 @@ class xe extends Ct{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error
571
571
  }
572
572
 
573
573
  .ft-switch slot::slotted(ft-switch-option) {
574
- ${ut(Ne.borderRadiusLeft,"0")};
575
- ${ut(Ne.borderRadiusRight,"0")};
576
- ${ut(Ne.borderWidthLeft,"0")};
574
+ ${yt(Ee.borderRadiusLeft,"0")};
575
+ ${yt(Ee.borderRadiusRight,"0")};
576
+ ${yt(Ee.borderWidthLeft,"0")};
577
577
  }
578
578
 
579
579
  .ft-switch slot::slotted(ft-switch-option:first-child) {
580
- ${ut(Ne.borderRadiusLeft,Ce.borderRadius)};
581
- ${ut(Ne.borderWidthLeft,"1px")};
580
+ ${yt(Ee.borderRadiusLeft,Ne.borderRadius)};
581
+ ${yt(Ee.borderWidthLeft,"1px")};
582
582
  }
583
583
 
584
584
  .ft-switch slot::slotted(ft-switch-option:last-child) {
585
- ${ut(Ne.borderRadiusRight,Ce.borderRadius)};
585
+ ${yt(Ee.borderRadiusRight,Ne.borderRadius)};
586
586
  }
587
587
 
588
588
  .ft-switch--dense slot::slotted(ft-switch-option) {
589
589
  --ft-switch-internal-vertical-padding: 2px;
590
590
  --ft-switch-internal-horizontal-padding: 4px;
591
591
  }
592
- `,Fe([o({type:Boolean})],je.prototype,"dense",void 0),Fe([o({type:Boolean})],je.prototype,"unselectable",void 0),Fe([r(".ft-switch slot")],je.prototype,"slottedContent",void 0),Fe([s()],je.prototype,"selectedOption",void 0),Fe([r(".ft-switch")],je.prototype,"ftSwitchDiv",void 0),h("ft-switch")(je),h("ft-switch-option")(Ue),t.FtSwitch=je,t.FtSwitchChange=ze,t.FtSwitchCssVariables=Ce,t.FtSwitchOption=Ue,t.FtSwitchOptionCssVariables=Ne,t.SwitchOptionChange=Me,t.optionStyles=Ee,Object.defineProperty(t,"i",{value:!0})}({});
592
+ `,Fe([o({type:Boolean})],Ae.prototype,"dense",void 0),Fe([o({type:Boolean})],Ae.prototype,"unselectable",void 0),Fe([r(".ft-switch slot")],Ae.prototype,"slottedContent",void 0),Fe([s()],Ae.prototype,"selectedOption",void 0),Fe([r(".ft-switch")],Ae.prototype,"ftSwitchDiv",void 0),c("ft-switch")(Ae),c("ft-switch-option")(je),t.FtSwitch=Ae,t.FtSwitchChange=ze,t.FtSwitchCssVariables=Ne,t.FtSwitchOption=je,t.FtSwitchOptionCssVariables=Ee,t.SwitchOptionChange=Ue,t.optionStyles=Re,Object.defineProperty(t,"i",{value:!0})}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-switch",
3
- "version": "0.3.57",
3
+ "version": "0.3.60",
4
4
  "description": "two-state",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-icon": "0.3.57",
23
- "@fluid-topics/ft-ripple": "0.3.57",
24
- "@fluid-topics/ft-tooltip": "0.3.57",
25
- "@fluid-topics/ft-typography": "0.3.57",
26
- "@fluid-topics/ft-wc-utils": "0.3.57",
22
+ "@fluid-topics/ft-icon": "0.3.60",
23
+ "@fluid-topics/ft-ripple": "0.3.60",
24
+ "@fluid-topics/ft-tooltip": "0.3.60",
25
+ "@fluid-topics/ft-typography": "0.3.60",
26
+ "@fluid-topics/ft-wc-utils": "0.3.60",
27
27
  "lit": "2.2.8"
28
28
  },
29
- "gitHead": "1c7db3887ac108c59c27a6b4af04dd6f1ecd061b"
29
+ "gitHead": "43e7dcf7c9d88ea2c23f4425629f013d704c5111"
30
30
  }