@fluid-topics/ft-switch 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/build/ft-switch.min.js +156 -152
  2. package/package.json +7 -7
@@ -12,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){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(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let p=e.call(i,t);p||(p=h(t),o.call(i,t,p)),this===window.customElements&&(a.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),y(t,c,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){u.push(this),i.upgrade.apply(i,arguments),u.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let i=this._awaitingUpgrade.get(o);i||this._awaitingUpgrade.set(o,i=new Set),e?i.add(t):i.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),r.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!c(o)){const t=u[u.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},h=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const i=p(e)||window.customElements,r=i._getDefinition(o);return r?y(e,r):n.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,o,e)=>{if(0===o.size||void 0===e)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r),e.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i),e.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else n.call(this,r,i)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),r.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=g.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let u=[document];const b=(t,o,e=void 0)=>{const i=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){u.push(this);const t=i.apply(e||this,arguments);return void 0!==t&&s.set(t,this),u.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){u.push(this),e.set.call(this,t),u.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const i=o.call(this,...e);return t.set(i,this),i},e.forEach((o=>{const e=window.ElementInternals.prototype,i=e[o];e[o]=function(...o){const e=t.get(this);if(!0===r.get(e).formAssociated)return i?.call(this,...o);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i 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 o=new Map;t.forEach(((t,e)=>{const i=t.getAttribute("name"),r=o.get(i)||[];this[+e]=t,r.push(t),o.set(i,r)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(Ki){const t=window.customElements.define;window.customElements.define=(o,e,i)=>{if(null!==e)try{t.bind(window.customElements)(o,e,i)}catch(t){console.info(o,e,i,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){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(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);f(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let p=e.call(i,t);p||(p=h(t),o.call(i,t,p)),this===window.customElements&&(a.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),y(t,c,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){u.push(this),i.upgrade.apply(i,arguments),u.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let i=this._awaitingUpgrade.get(o);i||this._awaitingUpgrade.set(o,i=new Set),e?i.add(t):i.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),r.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!c(o)){const t=u[u.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),c(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},h=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const i=p(e)||window.customElements,r=i._getDefinition(o);return r?y(e,r):n.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,o,e)=>{if(0===o.size||void 0===e)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r),e.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i),e.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else n.call(this,r,i)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),r.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=g.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let u=[document];const b=(t,o,e=void 0)=>{const i=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){u.push(this);const t=i.apply(e||this,arguments);return void 0!==t&&s.set(t,this),u.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){u.push(this),e.set.call(this,t),u.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const i=o.call(this,...e);return t.set(i,this),i},e.forEach((o=>{const e=window.ElementInternals.prototype,i=e[o];e[o]=function(...o){const e=t.get(this);if(!0===r.get(e).formAssociated)return i?.call(this,...o);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i 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 o=new Map;t.forEach(((t,e)=>{const i=t.getAttribute("name"),r=o.get(i)||[];this[+e]=t,r.push(t),o.set(i,r)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(Zi){const t=window.customElements.define;window.customElements.define=(o,e,i)=>{if(null!==e)try{t.bind(window.customElements)(o,e,i)}catch(t){console.info(o,e,i,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -82,7 +82,11 @@ class uo extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
82
82
  * @license
83
83
  * Copyright 2019 Google LLC
84
84
  * SPDX-License-Identifier: BSD-3-Clause
85
- */class $o extends uo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Ro?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=Co.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Eo,Uo=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Io=Symbol("constructorPrototype"),ko=Symbol("constructorName"),Wo=Symbol("exportpartsDebouncer");class Lo extends $o{constructor(){super(),this[Eo]=new o(5),this[ko]=this.constructor.name,this[Io]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ko]&&Object.setPrototypeOf(this,this[Io])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Wo].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],e=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>l.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}Eo=Wo,Uo([C()],Lo.prototype,"exportpartsPrefix",void 0),Uo([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!U(t,o),...null!=o?o:{}})}([])],Lo.prototype,"exportpartsPrefixes",void 0),Uo([C()],Lo.prototype,"customStylesheet",void 0),bt`
85
+ */class $o extends uo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Ro?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=Co.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Eo,Uo=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Io=Symbol("constructorPrototype"),ko=Symbol("constructorName"),Wo=Symbol("exportpartsDebouncer");class Lo extends $o{constructor(){super(),this[Eo]=new o(5),this[ko]=this.constructor.name,this[Io]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ko]&&Object.setPrototypeOf(this,this[Io])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Wo].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],e=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>l.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}Eo=Wo,Uo([C()],Lo.prototype,"exportpartsPrefix",void 0),Uo([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!U(t,o),...null!=o?o:{}})}([])],Lo.prototype,"exportpartsPrefixes",void 0),Uo([C()],Lo.prototype,"customStylesheet",void 0);const Ko=xo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");bt`
86
+ .highlight-html-match {
87
+ background: ${Ko};
88
+ }
89
+ `,bt`
86
90
  .ft-no-text-select {
87
91
  -webkit-touch-callout: none;
88
92
  -webkit-user-select: none;
@@ -103,7 +107,7 @@ class uo extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
103
107
  -webkit-hyphens: auto;
104
108
  hyphens: auto
105
109
  }
106
- `;const Ko=bt`
110
+ `;const Zo=bt`
107
111
  .ft-safari-ellipsis-fix {
108
112
  margin-right: 0;
109
113
 
@@ -114,17 +118,17 @@ class uo extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
114
118
  display: inline-block;
115
119
  width: 0;
116
120
  }
117
- `;var Zo,zo,Fo;window.ftReduxStores||(window.ftReduxStores={});const Ao=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Fo=null===(zo=null===(Zo=window.safari)||void 0===Zo?void 0:Zo.pushNotification)||void 0===zo?void 0:zo.toString())&&void 0!==Fo?Fo:""),Mo=1,Do=2,Bo=t=>(...o)=>({_$litDirective$:t,values:o});
121
+ `;var zo,Fo,Ao;window.ftReduxStores||(window.ftReduxStores={});const Mo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ao=null===(Fo=null===(zo=window.safari)||void 0===zo?void 0:zo.pushNotification)||void 0===Fo?void 0:Fo.toString())&&void 0!==Ao?Ao:""),Do=1,Bo=2,Po=t=>(...o)=>({_$litDirective$:t,values:o});
118
122
  /**
119
123
  * @license
120
124
  * Copyright 2017 Google LLC
121
125
  * SPDX-License-Identifier: BSD-3-Clause
122
- */let Po=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};
126
+ */let Ho=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};
123
127
  /**
124
128
  * @license
125
129
  * Copyright 2018 Google LLC
126
130
  * SPDX-License-Identifier: BSD-3-Clause
127
- */const Ho=Bo(class extends Po{constructor(t){if(super(t),t.type!==Mo||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const i=!!o[t];i===this.it.has(t)||this.st?.has(t)||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return q}}),jo=xo.extend("--ft-ripple-color","",So.colorContent),_o={color:jo,backgroundColor:xo.extend("--ft-ripple-background-color","",jo),opacityContentOnSurfacePressed:xo.external(So.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xo.external(So.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xo.external(So.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xo.external(So.opacityContentOnSurfaceSelected,"Design system"),borderRadius:xo.create("--ft-ripple-border-radius","","SIZE","0px")},To=xo.extend("--ft-ripple-color","",So.colorPrimary),Go=To,Yo=xo.extend("--ft-ripple-background-color","",To),Vo=xo.extend("--ft-ripple-color","",So.colorSecondary),Jo=Vo,qo=xo.extend("--ft-ripple-background-color","",Vo),Xo=bt`
131
+ */const jo=Po(class extends Ho{constructor(t){if(super(t),t.type!==Do||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const i=!!o[t];i===this.it.has(t)||this.st?.has(t)||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return q}}),_o=xo.extend("--ft-ripple-color","",So.colorContent),To={color:_o,backgroundColor:xo.extend("--ft-ripple-background-color","",_o),opacityContentOnSurfacePressed:xo.external(So.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xo.external(So.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xo.external(So.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xo.external(So.opacityContentOnSurfaceSelected,"Design system"),borderRadius:xo.create("--ft-ripple-border-radius","","SIZE","0px")},Go=xo.extend("--ft-ripple-color","",So.colorPrimary),Yo=Go,Vo=xo.extend("--ft-ripple-background-color","",Go),Jo=xo.extend("--ft-ripple-color","",So.colorSecondary),qo=Jo,Xo=xo.extend("--ft-ripple-background-color","",Jo),Qo=bt`
128
132
  :host {
129
133
  display: contents;
130
134
  }
@@ -137,7 +141,7 @@ class uo extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
137
141
 
138
142
  .ft-ripple:not(.ft-ripple--unbounded) {
139
143
  overflow: hidden;
140
- border-radius: ${_o.borderRadius};
144
+ border-radius: ${To.borderRadius};
141
145
  }
142
146
 
143
147
  .ft-ripple .ft-ripple--background,
@@ -171,27 +175,27 @@ class uo extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
171
175
  }
172
176
 
173
177
  .ft-ripple .ft-ripple--background {
174
- background-color: ${_o.backgroundColor};
178
+ background-color: ${To.backgroundColor};
175
179
  }
176
180
 
177
181
  .ft-ripple .ft-ripple--effect {
178
- background-color: ${_o.color};
182
+ background-color: ${To.color};
179
183
  }
180
184
 
181
185
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
182
- background-color: ${qo};
186
+ background-color: ${Xo};
183
187
  }
184
188
 
185
189
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
186
- background-color: ${Jo};
190
+ background-color: ${qo};
187
191
  }
188
192
 
189
193
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
190
- background-color: ${Yo};
194
+ background-color: ${Vo};
191
195
  }
192
196
 
193
197
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
194
- background-color: ${Go};
198
+ background-color: ${Yo};
195
199
  }
196
200
 
197
201
  .ft-ripple .ft-ripple--background {
@@ -221,134 +225,134 @@ class uo extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
221
225
  }
222
226
 
223
227
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
224
- opacity: ${_o.opacityContentOnSurfaceHover};
228
+ opacity: ${To.opacityContentOnSurfaceHover};
225
229
  }
226
230
 
227
231
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
228
- opacity: ${_o.opacityContentOnSurfaceSelected};
232
+ opacity: ${To.opacityContentOnSurfaceSelected};
229
233
  }
230
234
 
231
235
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
232
- opacity: ${_o.opacityContentOnSurfaceFocused};
236
+ opacity: ${To.opacityContentOnSurfaceFocused};
233
237
  }
234
238
 
235
239
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
236
- opacity: ${_o.opacityContentOnSurfacePressed};
240
+ opacity: ${To.opacityContentOnSurfacePressed};
237
241
  transform: translate(-50%, -50%) scale(1);
238
242
  }
239
- `;var Qo=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class te extends Lo{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new o(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o(10),this.moveRipple=t=>{var o,e;let{x:i,y:r}=this.getCoordinates(t),n=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-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.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Qt`
243
+ `;var te=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class oe extends Lo{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new o(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o(10),this.moveRipple=t=>{var o,e;let{x:i,y:r}=this.getCoordinates(t),n=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-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.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Qt`
240
244
  <style>
241
245
  .ft-ripple .ft-ripple--effect {
242
246
  left: ${this.originX}px;
243
247
  top: ${this.originY}px;
244
248
  }
245
249
  </style>
246
- <div class="${Ho(t)}">
250
+ <div class="${jo(t)}">
247
251
  <div class="ft-ripple--background"></div>
248
252
  <div class="ft-ripple--effect"></div>
249
253
  </div>
250
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),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",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}te.elementDefinitions={},te.styles=Xo,Qo([C({type:Boolean})],te.prototype,"primary",void 0),Qo([C({type:Boolean})],te.prototype,"secondary",void 0),Qo([C({type:Boolean})],te.prototype,"unbounded",void 0),Qo([C({type:Boolean})],te.prototype,"activated",void 0),Qo([C({type:Boolean})],te.prototype,"selected",void 0),Qo([C({type:Boolean})],te.prototype,"disabled",void 0),Qo([R()],te.prototype,"hovered",void 0),Qo([R()],te.prototype,"focused",void 0),Qo([R()],te.prototype,"pressed",void 0),Qo([R()],te.prototype,"rippling",void 0),Qo([R()],te.prototype,"originX",void 0),Qo([R()],te.prototype,"originY",void 0),Qo([E(".ft-ripple")],te.prototype,"ripple",void 0),Qo([E(".ft-ripple--effect")],te.prototype,"rippleEffect",void 0),I("ft-ripple")(te);
254
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),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",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}oe.elementDefinitions={},oe.styles=Qo,te([C({type:Boolean})],oe.prototype,"primary",void 0),te([C({type:Boolean})],oe.prototype,"secondary",void 0),te([C({type:Boolean})],oe.prototype,"unbounded",void 0),te([C({type:Boolean})],oe.prototype,"activated",void 0),te([C({type:Boolean})],oe.prototype,"selected",void 0),te([C({type:Boolean})],oe.prototype,"disabled",void 0),te([R()],oe.prototype,"hovered",void 0),te([R()],oe.prototype,"focused",void 0),te([R()],oe.prototype,"pressed",void 0),te([R()],oe.prototype,"rippling",void 0),te([R()],oe.prototype,"originX",void 0),te([R()],oe.prototype,"originY",void 0),te([E(".ft-ripple")],oe.prototype,"ripple",void 0),te([E(".ft-ripple--effect")],oe.prototype,"rippleEffect",void 0),I("ft-ripple")(oe);
251
255
  /**
252
256
  * @license
253
257
  * Copyright 2020 Google LLC
254
258
  * SPDX-License-Identifier: BSD-3-Clause
255
259
  */
256
- const oe=Symbol.for(""),ee=t=>{if(t?.r===oe)return t?._$litStatic$},ie=t=>({_$litStatic$:t,r:oe}),re=new Map,ne=(t=>(o,...e)=>{const i=e.length;let r,n;const a=[],s=[];let l,c=0,p=!1;for(;c<i;){for(l=o[c];c<i&&void 0!==(n=e[c],r=ee(n));)l+=r+o[++c],p=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(o[i]),p){const t=a.join("$$lit$$");void 0===(o=re.get(t))&&(a.raw=a,re.set(t,o=a)),e=s}return t(o,...e)})(J);var ae;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(ae||(ae={}));const se=xo.extend("--ft-typography-font-family","",So.titleFont),le=xo.extend("--ft-typography-font-family","",So.contentFont),ce={fontFamily:le,fontSize:xo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:xo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:xo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:xo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:xo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},pe=xo.extend("--ft-typography-title-font-family","",se),he=xo.extend("--ft-typography-title-font-size","",ce.fontSize,"20px"),fe=xo.extend("--ft-typography-title-font-weight","",ce.fontWeight,"normal"),de=xo.extend("--ft-typography-title-letter-spacing","",ce.letterSpacing,"0.15px"),ye=xo.extend("--ft-typography-title-line-height","",ce.lineHeight,"1.2"),ge=xo.extend("--ft-typography-title-text-transform","",ce.textTransform,"inherit"),ue=xo.extend("--ft-typography-title-dense-font-family","",se),be=xo.extend("--ft-typography-title-dense-font-size","",ce.fontSize,"14px"),me=xo.extend("--ft-typography-title-dense-font-weight","",ce.fontWeight,"normal"),xe=xo.extend("--ft-typography-title-dense-letter-spacing","",ce.letterSpacing,"0.105px"),Oe=xo.extend("--ft-typography-title-dense-line-height","",ce.lineHeight,"1.7"),ve=xo.extend("--ft-typography-title-dense-text-transform","",ce.textTransform,"inherit"),Ne=xo.extend("--ft-typography-subtitle1-font-family","",le),we=xo.extend("--ft-typography-subtitle1-font-size","",ce.fontSize,"16px"),Se=xo.extend("--ft-typography-subtitle1-font-weight","",ce.fontWeight,"600"),Ce=xo.extend("--ft-typography-subtitle1-letter-spacing","",ce.letterSpacing,"0.144px"),Re=xo.extend("--ft-typography-subtitle1-line-height","",ce.lineHeight,"1.5"),$e=xo.extend("--ft-typography-subtitle1-text-transform","",ce.textTransform,"inherit"),Ee=xo.extend("--ft-typography-subtitle2-font-family","",le),Ue=xo.extend("--ft-typography-subtitle2-font-size","",ce.fontSize,"14px"),Ie=xo.extend("--ft-typography-subtitle2-font-weight","",ce.fontWeight,"normal"),ke=xo.extend("--ft-typography-subtitle2-letter-spacing","",ce.letterSpacing,"0.098px"),We=xo.extend("--ft-typography-subtitle2-line-height","",ce.lineHeight,"1.7"),Le=xo.extend("--ft-typography-subtitle2-text-transform","",ce.textTransform,"inherit"),Ke=xo.extend("--ft-typography-body1-font-family","",le),Ze=xo.extend("--ft-typography-body1-font-size","",ce.fontSize,"16px"),ze=xo.extend("--ft-typography-body1-font-weight","",ce.fontWeight,"normal"),Fe=xo.extend("--ft-typography-body1-letter-spacing","",ce.letterSpacing,"0.496px"),Ae=xo.extend("--ft-typography-body1-line-height","",ce.lineHeight,"1.5"),Me=xo.extend("--ft-typography-body1-text-transform","",ce.textTransform,"inherit"),De=xo.extend("--ft-typography-body2-font-family","",le),Be=xo.extend("--ft-typography-body2-font-size","",ce.fontSize,"14px"),Pe=xo.extend("--ft-typography-body2-font-weight","",ce.fontWeight,"normal"),He=xo.extend("--ft-typography-body2-letter-spacing","",ce.letterSpacing,"0.252px"),je=xo.extend("--ft-typography-body2-line-height","",ce.lineHeight,"1.4"),_e=xo.extend("--ft-typography-body2-text-transform","",ce.textTransform,"inherit"),Te=xo.extend("--ft-typography-caption-font-family","",le),Ge=xo.extend("--ft-typography-caption-font-size","",ce.fontSize,"12px"),Ye=xo.extend("--ft-typography-caption-font-weight","",ce.fontWeight,"normal"),Ve=xo.extend("--ft-typography-caption-letter-spacing","",ce.letterSpacing,"0.396px"),Je=xo.extend("--ft-typography-caption-line-height","",ce.lineHeight,"1.33"),qe=xo.extend("--ft-typography-caption-text-transform","",ce.textTransform,"inherit"),Xe=xo.extend("--ft-typography-breadcrumb-font-family","",le),Qe=xo.extend("--ft-typography-breadcrumb-font-size","",ce.fontSize,"10px"),ti=xo.extend("--ft-typography-breadcrumb-font-weight","",ce.fontWeight,"normal"),oi=xo.extend("--ft-typography-breadcrumb-letter-spacing","",ce.letterSpacing,"0.33px"),ei=xo.extend("--ft-typography-breadcrumb-line-height","",ce.lineHeight,"1.6"),ii=xo.extend("--ft-typography-breadcrumb-text-transform","",ce.textTransform,"inherit"),ri=xo.extend("--ft-typography-overline-font-family","",le),ni=xo.extend("--ft-typography-overline-font-size","",ce.fontSize,"10px"),ai=xo.extend("--ft-typography-overline-font-weight","",ce.fontWeight,"normal"),si=xo.extend("--ft-typography-overline-letter-spacing","",ce.letterSpacing,"1.5px"),li=xo.extend("--ft-typography-overline-line-height","",ce.lineHeight,"1.6"),ci=xo.extend("--ft-typography-overline-text-transform","",ce.textTransform,"uppercase"),pi={fontFamily:xo.extend("--ft-typography-button-font-family","",le),fontSize:xo.extend("--ft-typography-button-font-size","",ce.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-button-font-weight","",ce.fontWeight,"600"),letterSpacing:xo.extend("--ft-typography-button-letter-spacing","",ce.letterSpacing,"1.246px"),lineHeight:xo.extend("--ft-typography-button-line-height","",ce.lineHeight,"1.15"),textTransform:xo.extend("--ft-typography-button-text-transform","",ce.textTransform,"uppercase")},hi=bt`
260
+ const ee=Symbol.for(""),ie=t=>{if(t?.r===ee)return t?._$litStatic$},re=t=>({_$litStatic$:t,r:ee}),ne=new Map,ae=(t=>(o,...e)=>{const i=e.length;let r,n;const a=[],s=[];let l,c=0,p=!1;for(;c<i;){for(l=o[c];c<i&&void 0!==(n=e[c],r=ie(n));)l+=r+o[++c],p=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(o[i]),p){const t=a.join("$$lit$$");void 0===(o=ne.get(t))&&(a.raw=a,ne.set(t,o=a)),e=s}return t(o,...e)})(J);var se;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(se||(se={}));const le=xo.extend("--ft-typography-font-family","",So.titleFont),ce=xo.extend("--ft-typography-font-family","",So.contentFont),pe={fontFamily:ce,fontSize:xo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:xo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:xo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:xo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:xo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},he=xo.extend("--ft-typography-title-font-family","",le),fe=xo.extend("--ft-typography-title-font-size","",pe.fontSize,"20px"),de=xo.extend("--ft-typography-title-font-weight","",pe.fontWeight,"normal"),ye=xo.extend("--ft-typography-title-letter-spacing","",pe.letterSpacing,"0.15px"),ge=xo.extend("--ft-typography-title-line-height","",pe.lineHeight,"1.2"),ue=xo.extend("--ft-typography-title-text-transform","",pe.textTransform,"inherit"),be=xo.extend("--ft-typography-title-dense-font-family","",le),me=xo.extend("--ft-typography-title-dense-font-size","",pe.fontSize,"14px"),xe=xo.extend("--ft-typography-title-dense-font-weight","",pe.fontWeight,"normal"),Oe=xo.extend("--ft-typography-title-dense-letter-spacing","",pe.letterSpacing,"0.105px"),ve=xo.extend("--ft-typography-title-dense-line-height","",pe.lineHeight,"1.7"),Ne=xo.extend("--ft-typography-title-dense-text-transform","",pe.textTransform,"inherit"),we=xo.extend("--ft-typography-subtitle1-font-family","",ce),Se=xo.extend("--ft-typography-subtitle1-font-size","",pe.fontSize,"16px"),Ce=xo.extend("--ft-typography-subtitle1-font-weight","",pe.fontWeight,"600"),Re=xo.extend("--ft-typography-subtitle1-letter-spacing","",pe.letterSpacing,"0.144px"),$e=xo.extend("--ft-typography-subtitle1-line-height","",pe.lineHeight,"1.5"),Ee=xo.extend("--ft-typography-subtitle1-text-transform","",pe.textTransform,"inherit"),Ue=xo.extend("--ft-typography-subtitle2-font-family","",ce),Ie=xo.extend("--ft-typography-subtitle2-font-size","",pe.fontSize,"14px"),ke=xo.extend("--ft-typography-subtitle2-font-weight","",pe.fontWeight,"normal"),We=xo.extend("--ft-typography-subtitle2-letter-spacing","",pe.letterSpacing,"0.098px"),Le=xo.extend("--ft-typography-subtitle2-line-height","",pe.lineHeight,"1.7"),Ke=xo.extend("--ft-typography-subtitle2-text-transform","",pe.textTransform,"inherit"),Ze=xo.extend("--ft-typography-body1-font-family","",ce),ze=xo.extend("--ft-typography-body1-font-size","",pe.fontSize,"16px"),Fe=xo.extend("--ft-typography-body1-font-weight","",pe.fontWeight,"normal"),Ae=xo.extend("--ft-typography-body1-letter-spacing","",pe.letterSpacing,"0.496px"),Me=xo.extend("--ft-typography-body1-line-height","",pe.lineHeight,"1.5"),De=xo.extend("--ft-typography-body1-text-transform","",pe.textTransform,"inherit"),Be=xo.extend("--ft-typography-body2-font-family","",ce),Pe=xo.extend("--ft-typography-body2-font-size","",pe.fontSize,"14px"),He=xo.extend("--ft-typography-body2-font-weight","",pe.fontWeight,"normal"),je=xo.extend("--ft-typography-body2-letter-spacing","",pe.letterSpacing,"0.252px"),_e=xo.extend("--ft-typography-body2-line-height","",pe.lineHeight,"1.4"),Te=xo.extend("--ft-typography-body2-text-transform","",pe.textTransform,"inherit"),Ge=xo.extend("--ft-typography-caption-font-family","",ce),Ye=xo.extend("--ft-typography-caption-font-size","",pe.fontSize,"12px"),Ve=xo.extend("--ft-typography-caption-font-weight","",pe.fontWeight,"normal"),Je=xo.extend("--ft-typography-caption-letter-spacing","",pe.letterSpacing,"0.396px"),qe=xo.extend("--ft-typography-caption-line-height","",pe.lineHeight,"1.33"),Xe=xo.extend("--ft-typography-caption-text-transform","",pe.textTransform,"inherit"),Qe=xo.extend("--ft-typography-breadcrumb-font-family","",ce),ti=xo.extend("--ft-typography-breadcrumb-font-size","",pe.fontSize,"10px"),oi=xo.extend("--ft-typography-breadcrumb-font-weight","",pe.fontWeight,"normal"),ei=xo.extend("--ft-typography-breadcrumb-letter-spacing","",pe.letterSpacing,"0.33px"),ii=xo.extend("--ft-typography-breadcrumb-line-height","",pe.lineHeight,"1.6"),ri=xo.extend("--ft-typography-breadcrumb-text-transform","",pe.textTransform,"inherit"),ni=xo.extend("--ft-typography-overline-font-family","",ce),ai=xo.extend("--ft-typography-overline-font-size","",pe.fontSize,"10px"),si=xo.extend("--ft-typography-overline-font-weight","",pe.fontWeight,"normal"),li=xo.extend("--ft-typography-overline-letter-spacing","",pe.letterSpacing,"1.5px"),ci=xo.extend("--ft-typography-overline-line-height","",pe.lineHeight,"1.6"),pi=xo.extend("--ft-typography-overline-text-transform","",pe.textTransform,"uppercase"),hi={fontFamily:xo.extend("--ft-typography-button-font-family","",ce),fontSize:xo.extend("--ft-typography-button-font-size","",pe.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-button-font-weight","",pe.fontWeight,"600"),letterSpacing:xo.extend("--ft-typography-button-letter-spacing","",pe.letterSpacing,"1.246px"),lineHeight:xo.extend("--ft-typography-button-line-height","",pe.lineHeight,"1.15"),textTransform:xo.extend("--ft-typography-button-text-transform","",pe.textTransform,"uppercase")},fi=bt`
257
261
  .ft-typography--title {
258
- font-family: ${pe};
259
- font-size: ${he};
260
- font-weight: ${fe};
261
- letter-spacing: ${de};
262
- line-height: ${ye};
263
- text-transform: ${ge};
264
- }
265
- `,fi=bt`
266
- .ft-typography--title-dense {
267
- font-family: ${ue};
268
- font-size: ${be};
269
- font-weight: ${me};
270
- letter-spacing: ${xe};
271
- line-height: ${Oe};
272
- text-transform: ${ve};
262
+ font-family: ${he};
263
+ font-size: ${fe};
264
+ font-weight: ${de};
265
+ letter-spacing: ${ye};
266
+ line-height: ${ge};
267
+ text-transform: ${ue};
273
268
  }
274
269
  `,di=bt`
275
- .ft-typography--subtitle1 {
276
- font-family: ${Ne};
277
- font-size: ${we};
278
- font-weight: ${Se};
279
- letter-spacing: ${Ce};
280
- line-height: ${Re};
281
- text-transform: ${$e};
270
+ .ft-typography--title-dense {
271
+ font-family: ${be};
272
+ font-size: ${me};
273
+ font-weight: ${xe};
274
+ letter-spacing: ${Oe};
275
+ line-height: ${ve};
276
+ text-transform: ${Ne};
282
277
  }
283
278
  `,yi=bt`
284
- .ft-typography--subtitle2 {
285
- font-family: ${Ee};
286
- font-size: ${Ue};
287
- font-weight: ${Ie};
288
- letter-spacing: ${ke};
289
- line-height: ${We};
290
- text-transform: ${Le};
279
+ .ft-typography--subtitle1 {
280
+ font-family: ${we};
281
+ font-size: ${Se};
282
+ font-weight: ${Ce};
283
+ letter-spacing: ${Re};
284
+ line-height: ${$e};
285
+ text-transform: ${Ee};
291
286
  }
292
-
293
287
  `,gi=bt`
294
- .ft-typography--body1 {
295
- font-family: ${Ke};
296
- font-size: ${Ze};
297
- font-weight: ${ze};
298
- letter-spacing: ${Fe};
299
- line-height: ${Ae};
300
- text-transform: ${Me};
288
+ .ft-typography--subtitle2 {
289
+ font-family: ${Ue};
290
+ font-size: ${Ie};
291
+ font-weight: ${ke};
292
+ letter-spacing: ${We};
293
+ line-height: ${Le};
294
+ text-transform: ${Ke};
301
295
  }
296
+
302
297
  `,ui=bt`
303
- .ft-typography--body2 {
304
- font-family: ${De};
305
- font-size: ${Be};
306
- font-weight: ${Pe};
307
- letter-spacing: ${He};
308
- line-height: ${je};
309
- text-transform: ${_e};
298
+ .ft-typography--body1 {
299
+ font-family: ${Ze};
300
+ font-size: ${ze};
301
+ font-weight: ${Fe};
302
+ letter-spacing: ${Ae};
303
+ line-height: ${Me};
304
+ text-transform: ${De};
310
305
  }
311
306
  `,bi=bt`
312
- .ft-typography--caption {
313
- font-family: ${Te};
314
- font-size: ${Ge};
315
- font-weight: ${Ye};
316
- letter-spacing: ${Ve};
317
- line-height: ${Je};
318
- text-transform: ${qe};
307
+ .ft-typography--body2 {
308
+ font-family: ${Be};
309
+ font-size: ${Pe};
310
+ font-weight: ${He};
311
+ letter-spacing: ${je};
312
+ line-height: ${_e};
313
+ text-transform: ${Te};
319
314
  }
320
315
  `,mi=bt`
321
- .ft-typography--breadcrumb {
322
- font-family: ${Xe};
323
- font-size: ${Qe};
324
- font-weight: ${ti};
325
- letter-spacing: ${oi};
326
- line-height: ${ei};
327
- text-transform: ${ii};
316
+ .ft-typography--caption {
317
+ font-family: ${Ge};
318
+ font-size: ${Ye};
319
+ font-weight: ${Ve};
320
+ letter-spacing: ${Je};
321
+ line-height: ${qe};
322
+ text-transform: ${Xe};
328
323
  }
329
324
  `,xi=bt`
330
- .ft-typography--overline {
331
- font-family: ${ri};
332
- font-size: ${ni};
333
- font-weight: ${ai};
334
- letter-spacing: ${si};
335
- line-height: ${li};
336
- text-transform: ${ci};
325
+ .ft-typography--breadcrumb {
326
+ font-family: ${Qe};
327
+ font-size: ${ti};
328
+ font-weight: ${oi};
329
+ letter-spacing: ${ei};
330
+ line-height: ${ii};
331
+ text-transform: ${ri};
337
332
  }
338
333
  `,Oi=bt`
339
- .ft-typography--button {
340
- font-family: ${pi.fontFamily};
341
- font-size: ${pi.fontSize};
342
- font-weight: ${pi.fontWeight};
343
- letter-spacing: ${pi.letterSpacing};
344
- line-height: ${pi.lineHeight};
345
- text-transform: ${pi.textTransform};
334
+ .ft-typography--overline {
335
+ font-family: ${ni};
336
+ font-size: ${ai};
337
+ font-weight: ${si};
338
+ letter-spacing: ${li};
339
+ line-height: ${ci};
340
+ text-transform: ${pi};
346
341
  }
347
342
  `,vi=bt`
343
+ .ft-typography--button {
344
+ font-family: ${hi.fontFamily};
345
+ font-size: ${hi.fontSize};
346
+ font-weight: ${hi.fontWeight};
347
+ letter-spacing: ${hi.letterSpacing};
348
+ line-height: ${hi.lineHeight};
349
+ text-transform: ${hi.textTransform};
350
+ }
351
+ `,Ni=bt`
348
352
  .ft-typography {
349
353
  vertical-align: inherit;
350
354
  }
351
- `,Ni=[Object.keys(No).map((t=>function(t){const o=No[t];return bt`
355
+ `,wi=[Object.keys(No).map((t=>function(t){const o=No[t];return bt`
352
356
  .ft-typography--${ut(t)} {
353
357
  font-family: ${o.fontFamily};
354
358
  font-size: ${o.fontSize};
@@ -357,14 +361,14 @@ const oe=Symbol.for(""),ee=t=>{if(t?.r===oe)return t?._$litStatic$},ie=t=>({_$li
357
361
  line-height: ${o.lineHeight};
358
362
  text-transform: ${o.textCase};
359
363
  }
360
- `}(t)))];var wi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Si extends Lo{constructor(){super(...arguments),this.variant=ae.body1}render(){return this.element?ne`
361
- <${ie(this.element)}
364
+ `}(t)))];var Si=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ci extends Lo{constructor(){super(...arguments),this.variant=se.body1}render(){return this.element?ae`
365
+ <${re(this.element)}
362
366
  class="ft-typography ft-typography--${this.variant}">
363
367
  <slot></slot>
364
- </${ie(this.element)}>
365
- `:ne`
368
+ </${re(this.element)}>
369
+ `:ae`
366
370
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
367
- `}}Si.styles=[hi,fi,di,yi,gi,ui,bi,mi,xi,Oi,vi,...Ni],wi([C()],Si.prototype,"element",void 0),wi([C()],Si.prototype,"variant",void 0),I("ft-typography")(Si);const Ci=xo.create("--ft-tooltip-distance","","SIZE","4px"),Ri=xo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),$i=xo.create("--ft-tooltip-background-color","","COLOR","#666666"),Ei=xo.create("--ft-tooltip-z-index","","NUMBER","100"),Ui=xo.external(So.borderRadiusS,"Design system"),Ii=xo.create("--ft-tooltip-max-width","","SIZE","150px"),ki=bt`
371
+ `}}Ci.styles=[fi,di,yi,gi,ui,bi,mi,xi,Oi,vi,Ni,...wi],Si([C()],Ci.prototype,"element",void 0),Si([C()],Ci.prototype,"variant",void 0),I("ft-typography")(Ci);const Ri=xo.create("--ft-tooltip-distance","","SIZE","4px"),$i=xo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Ei=xo.create("--ft-tooltip-background-color","","COLOR","#666666"),Ui=xo.create("--ft-tooltip-z-index","","NUMBER","100"),Ii=xo.external(So.borderRadiusS,"Design system"),ki=xo.create("--ft-tooltip-max-width","","SIZE","150px"),Wi=bt`
368
372
  .ft-tooltip--container {
369
373
  display: block;
370
374
  }
@@ -379,21 +383,21 @@ const oe=Symbol.for(""),ee=t=>{if(t?.r===oe)return t?._$litStatic$},ie=t=>({_$li
379
383
  box-sizing: border-box;
380
384
  overflow: hidden;
381
385
  width: max-content;
382
- max-width: ${Ii};
386
+ max-width: ${ki};
383
387
  text-align: center;
384
- padding: ${Ci};
385
- z-index: ${Ei};
388
+ padding: ${Ri};
389
+ z-index: ${Ui};
386
390
  }
387
391
 
388
392
  .ft-tooltip--content {
389
393
  padding: 4px 8px;
390
- border-radius: ${Ui};
391
- background-color: ${$i};
392
- color: ${Ri};
394
+ border-radius: ${Ii};
395
+ background-color: ${Ei};
396
+ color: ${$i};
393
397
  position: relative;
394
398
  word-break: break-word;
395
399
  }
396
- `;var Wi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Li extends Lo{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 o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Qt`
400
+ `;var Li=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ki extends Lo{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 o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Qt`
397
401
  <div part="container"
398
402
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
399
403
  @mouseenter=${this.onHover}
@@ -411,13 +415,13 @@ const oe=Symbol.for(""),ee=t=>{if(t?.r===oe)return t?._$litStatic$},ie=t=>({_$li
411
415
  </div>
412
416
  </div>
413
417
  </div>
414
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&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 o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,p=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let h=-l.y,f=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(h,f))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${Ii})`}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())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}Li.elementDefinitions={"ft-typography":Si},Li.styles=ki,Wi([C()],Li.prototype,"text",void 0),Wi([C({type:Boolean})],Li.prototype,"manual",void 0),Wi([C({type:Boolean})],Li.prototype,"inline",void 0),Wi([C({type:Number})],Li.prototype,"delay",void 0),Wi([C()],Li.prototype,"position",void 0),Wi([function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return $(0,0,{get(){const o=this.renderRoot?.querySelector(r);return o?.assignedNodes(t)??[]}})}}()],Li.prototype,"slotNodes",void 0),Wi([E(".ft-tooltip--container")],Li.prototype,"container",void 0),Wi([E(".ft-tooltip")],Li.prototype,"tooltip",void 0),Wi([E(".ft-tooltip--content")],Li.prototype,"tooltipContent",void 0),Wi([R()],Li.prototype,"visible",void 0),I("ft-tooltip")(Li);
418
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&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 o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,p=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let h=-l.y,f=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(h,f))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${ki})`}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())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}Ki.elementDefinitions={"ft-typography":Ci},Ki.styles=Wi,Li([C()],Ki.prototype,"text",void 0),Li([C({type:Boolean})],Ki.prototype,"manual",void 0),Li([C({type:Boolean})],Ki.prototype,"inline",void 0),Li([C({type:Number})],Ki.prototype,"delay",void 0),Li([C()],Ki.prototype,"position",void 0),Li([function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return $(0,0,{get(){const o=this.renderRoot?.querySelector(r);return o?.assignedNodes(t)??[]}})}}()],Ki.prototype,"slotNodes",void 0),Li([E(".ft-tooltip--container")],Ki.prototype,"container",void 0),Li([E(".ft-tooltip")],Ki.prototype,"tooltip",void 0),Li([E(".ft-tooltip--content")],Ki.prototype,"tooltipContent",void 0),Li([R()],Ki.prototype,"visible",void 0),I("ft-tooltip")(Ki);
415
419
  /**
416
420
  * @license
417
421
  * Copyright 2017 Google LLC
418
422
  * SPDX-License-Identifier: BSD-3-Clause
419
423
  */
420
- class Ki extends Po{constructor(t){if(super(t),this.et=X,t.type!==Do)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===X||null==t)return this.vt=void 0,this.et=t;if(t===q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}}Ki.directiveName="unsafeHTML",Ki.resultType=1;const Zi=Bo(Ki);var zi,Fi;!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.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",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.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",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.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",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;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(zi||(zi={})),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;"}(Fi||(Fi={})),new Map([...["abw"].map((t=>[t,Fi.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,Fi.AUDIO])),...["avi"].map((t=>[t,Fi.AVI])),...["chm","xhs"].map((t=>[t,Fi.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,Fi.CODE])),...["csv"].map((t=>[t,Fi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Fi.DITA])),...["epub"].map((t=>[t,Fi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Fi.EXCEL])),...["flac"].map((t=>[t,Fi.FLAC])),...["gif"].map((t=>[t,Fi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Fi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Fi.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,Fi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Fi.JPEG])),...["json"].map((t=>[t,Fi.JSON])),...["m4a","m4p"].map((t=>[t,Fi.M4A])),...["mov","qt"].map((t=>[t,Fi.MOV])),...["mp3"].map((t=>[t,Fi.MP3])),...["mp4","m4v"].map((t=>[t,Fi.MP4])),...["ogg","oga"].map((t=>[t,Fi.OGG])),...["pdf","ps"].map((t=>[t,Fi.PDF])),...["png"].map((t=>[t,Fi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Fi.POWERPOINT])),...["rar"].map((t=>[t,Fi.RAR])),...["stp"].map((t=>[t,Fi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Fi.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,Fi.VIDEO])),...["wav"].map((t=>[t,Fi.WAV])),...["wma"].map((t=>[t,Fi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Fi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Fi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Fi.YAML])),...["zip"].map((t=>[t,Fi.ZIP]))]);const Ai={size:xo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:xo.extend("--ft-icon-fluid-topics-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:xo.extend("--ft-icon-file-format-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:xo.extend("--ft-icon-material-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:xo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Mi=bt`
424
+ class Zi extends Ho{constructor(t){if(super(t),this.et=X,t.type!==Bo)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===X||null==t)return this.vt=void 0,this.et=t;if(t===q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}}Zi.directiveName="unsafeHTML",Zi.resultType=1;const zi=Po(Zi);var Fi,Ai;!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.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",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.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",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.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",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;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Fi||(Fi={})),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;"}(Ai||(Ai={})),new Map([...["abw"].map((t=>[t,Ai.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,Ai.AUDIO])),...["avi"].map((t=>[t,Ai.AVI])),...["chm","xhs"].map((t=>[t,Ai.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,Ai.CODE])),...["csv"].map((t=>[t,Ai.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ai.DITA])),...["epub"].map((t=>[t,Ai.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ai.EXCEL])),...["flac"].map((t=>[t,Ai.FLAC])),...["gif"].map((t=>[t,Ai.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ai.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ai.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,Ai.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ai.JPEG])),...["json"].map((t=>[t,Ai.JSON])),...["m4a","m4p"].map((t=>[t,Ai.M4A])),...["mov","qt"].map((t=>[t,Ai.MOV])),...["mp3"].map((t=>[t,Ai.MP3])),...["mp4","m4v"].map((t=>[t,Ai.MP4])),...["ogg","oga"].map((t=>[t,Ai.OGG])),...["pdf","ps"].map((t=>[t,Ai.PDF])),...["png"].map((t=>[t,Ai.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ai.POWERPOINT])),...["rar"].map((t=>[t,Ai.RAR])),...["stp"].map((t=>[t,Ai.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ai.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,Ai.VIDEO])),...["wav"].map((t=>[t,Ai.WAV])),...["wma"].map((t=>[t,Ai.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ai.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ai.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ai.YAML])),...["zip"].map((t=>[t,Ai.ZIP]))]);const Mi={size:xo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:xo.extend("--ft-icon-fluid-topics-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:xo.extend("--ft-icon-file-format-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:xo.extend("--ft-icon-material-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:xo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Di=bt`
421
425
  :host, i.ft-icon {
422
426
  display: inline-flex;
423
427
  align-items: center;
@@ -426,14 +430,14 @@ class Ki extends Po{constructor(t){if(super(t),this.et=X,t.type!==Do)throw Error
426
430
  }
427
431
 
428
432
  :host {
429
- width: ${Ai.size};
430
- height: ${Ai.size};
433
+ width: ${Mi.size};
434
+ height: ${Mi.size};
431
435
  }
432
436
 
433
437
  i.ft-icon {
434
438
  width: 100%;
435
439
  height: 100%;
436
- font-size: ${Ai.size};
440
+ font-size: ${Mi.size};
437
441
  line-height: 1;
438
442
  font-weight: normal;
439
443
  text-transform: none;
@@ -444,33 +448,33 @@ class Ki extends Po{constructor(t){if(super(t),this.et=X,t.type!==Do)throw Error
444
448
  text-rendering: auto;
445
449
  -webkit-font-smoothing: antialiased;
446
450
  -moz-osx-font-smoothing: grayscale;
447
- vertical-align: ${Ai.verticalAlign};
451
+ vertical-align: ${Mi.verticalAlign};
448
452
  }
449
453
 
450
454
  i.ft-icon.ft-icon--fluid-topics {
451
- font-family: ${Ai.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
455
+ font-family: ${Mi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
452
456
 
453
457
  /* Ugly fix because font is broken */
454
- font-size: calc(0.75 * ${Ai.size});
455
- line-height: ${Ai.size};
458
+ font-size: calc(0.75 * ${Mi.size});
459
+ line-height: ${Mi.size};
456
460
  position: relative;
457
461
  top: -4%;
458
462
  justify-content: center;
459
463
  }
460
464
 
461
465
  .ft-icon--file-format {
462
- font-family: ${Ai.fileFormatFontFamily}, ft-mime, sans-serif;
466
+ font-family: ${Mi.fileFormatFontFamily}, ft-mime, sans-serif;
463
467
  }
464
468
 
465
469
  .ft-icon--material {
466
- font-family: ${Ai.materialFontFamily}, "Material Icons", sans-serif;
470
+ font-family: ${Mi.materialFontFamily}, "Material Icons", sans-serif;
467
471
  }
468
- `;var Di;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Di||(Di={}));var Bi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Pi extends Lo{constructor(){super(...arguments),this.resolvedIcon=oo}render(){const t=this.variant&&Object.values(Di).includes(this.variant)?this.variant:Di.fluid_topics,o=t!==Di.material||!!this.value;return Qt`
472
+ `;var Bi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Bi||(Bi={}));var Pi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Hi extends Lo{constructor(){super(...arguments),this.resolvedIcon=oo}render(){const t=this.variant&&Object.values(Bi).includes(this.variant)?this.variant:Bi.fluid_topics,o=t!==Bi.material||!!this.value;return Qt`
469
473
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
470
- ${Zi(this.resolvedIcon)}
474
+ ${zi(this.resolvedIcon)}
471
475
  <slot ?hidden=${o}></slot>
472
476
  </i>
473
- `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case Di.file_format:this.resolvedIcon=null!==(t=Fi[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case Di.material:this.resolvedIcon=this.value||oo;break;default:this.resolvedIcon=null!==(o=zi[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Pi.elementDefinitions={},Pi.styles=Mi,Bi([C()],Pi.prototype,"variant",void 0),Bi([C()],Pi.prototype,"value",void 0),Bi([R()],Pi.prototype,"resolvedIcon",void 0),Bi([E("slot")],Pi.prototype,"slottedContent",void 0),I("ft-icon")(Pi);const Hi={textColor:xo.extend("--ft-switch-text-color","",So.colorOnSurfaceHigh),backgroundColor:xo.extend("--ft-switch-background-color","",So.colorSurface),selectedTextColor:xo.extend("--ft-switch-selected-text-color","",So.colorPrimary),selectedBackgroundColor:xo.extend("--ft-switch-selected-background-color","",So.colorPrimary),borderColor:xo.extend("--ft-switch-border-color","",So.colorOutline),borderRadius:xo.extend("--ft-switch-border-radius","",So.borderRadiusL),fontSize:xo.extend("--ft-switch-font-size","",pi.fontSize),iconSize:xo.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:xo.extend("--ft-switch-text-color","",So.colorOnSurfaceMedium),rippleColor:xo.extend("--ft-switch-ripple-color","",So.colorPrimary),outlineColor:xo.extend("--ft-switch-outline-color","",So.colorPrimary)},ji={borderRadiusLeft:xo.extend("--ft-switch-option-border-radius-left","",So.borderRadiusL),borderRadiusRight:xo.extend("--ft-switch-option-border-radius-right","",So.borderRadiusL),borderWidthLeft:xo.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:xo.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:xo.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},_i=bt`
477
+ `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let e=this.value||this.textContent;switch(this.variant){case Bi.file_format:this.resolvedIcon=null!==(t=Ai[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case Bi.material:this.resolvedIcon=this.value||oo;break;default:this.resolvedIcon=null!==(o=Fi[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Hi.elementDefinitions={},Hi.styles=Di,Pi([C()],Hi.prototype,"variant",void 0),Pi([C()],Hi.prototype,"value",void 0),Pi([R()],Hi.prototype,"resolvedIcon",void 0),Pi([E("slot")],Hi.prototype,"slottedContent",void 0),I("ft-icon")(Hi);const ji={textColor:xo.extend("--ft-switch-text-color","",So.colorOnSurfaceHigh),backgroundColor:xo.extend("--ft-switch-background-color","",So.colorSurface),selectedTextColor:xo.extend("--ft-switch-selected-text-color","",So.colorPrimary),selectedBackgroundColor:xo.extend("--ft-switch-selected-background-color","",So.colorPrimary),borderColor:xo.extend("--ft-switch-border-color","",So.colorOutline),borderRadius:xo.extend("--ft-switch-border-radius","",So.borderRadiusL),fontSize:xo.extend("--ft-switch-font-size","",hi.fontSize),iconSize:xo.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:xo.extend("--ft-switch-text-color","",So.colorOnSurfaceMedium),rippleColor:xo.extend("--ft-switch-ripple-color","",So.colorPrimary),outlineColor:xo.extend("--ft-switch-outline-color","",So.colorPrimary)},_i={borderRadiusLeft:xo.extend("--ft-switch-option-border-radius-left","",So.borderRadiusL),borderRadiusRight:xo.extend("--ft-switch-option-border-radius-right","",So.borderRadiusL),borderWidthLeft:xo.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:xo.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:xo.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Ti=bt`
474
478
  .ft-switch-option {
475
479
  position: relative;
476
480
  display: inline-block;
@@ -484,20 +488,20 @@ class Ki extends Po{constructor(t){if(super(t),this.et=X,t.type!==Do)throw Error
484
488
  }
485
489
 
486
490
  .ft-switch-option--content {
487
- --ft-switch-option-internal-line-height: calc(${Hi.fontSize} + 2px);
488
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Hi.iconSize});
491
+ --ft-switch-option-internal-line-height: calc(${ji.fontSize} + 2px);
492
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${ji.iconSize});
489
493
 
490
494
  border-style: solid;
491
- border-color: ${Hi.borderColor};
492
- border-width: ${ji.borderWidthVertical} ${ji.borderWidthRight} ${ji.borderWidthVertical} ${ji.borderWidthLeft};
493
- border-radius: ${ji.borderRadiusLeft} ${ji.borderRadiusRight} ${ji.borderRadiusRight} ${ji.borderRadiusLeft};
495
+ border-color: ${ji.borderColor};
496
+ border-width: ${_i.borderWidthVertical} ${_i.borderWidthRight} ${_i.borderWidthVertical} ${_i.borderWidthLeft};
497
+ border-radius: ${_i.borderRadiusLeft} ${_i.borderRadiusRight} ${_i.borderRadiusRight} ${_i.borderRadiusLeft};
494
498
  display: flex;
495
499
  align-items: center;
496
500
  justify-content: center;
497
501
  overflow: hidden;
498
- ${Oo(Ai.size,Hi.iconSize)};
502
+ ${Oo(Mi.size,ji.iconSize)};
499
503
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
500
- background-color: ${Hi.backgroundColor};
504
+ background-color: ${ji.backgroundColor};
501
505
  -webkit-mask-image: radial-gradient(white, black);
502
506
  }
503
507
 
@@ -506,8 +510,8 @@ class Ki extends Po{constructor(t){if(super(t),this.et=X,t.type!==Do)throw Error
506
510
  }
507
511
 
508
512
  .ft-switch-option--selected .ft-switch-option--content:before {
509
- background-color: ${Hi.selectedBackgroundColor};
510
- border-radius: ${ji.borderRadiusLeft} ${ji.borderRadiusRight} ${ji.borderRadiusRight} ${ji.borderRadiusLeft};
513
+ background-color: ${ji.selectedBackgroundColor};
514
+ border-radius: ${_i.borderRadiusLeft} ${_i.borderRadiusRight} ${_i.borderRadiusRight} ${_i.borderRadiusLeft};
511
515
  position: absolute;
512
516
  inset: 0;
513
517
  content: "";
@@ -516,18 +520,18 @@ class Ki extends Po{constructor(t){if(super(t),this.et=X,t.type!==Do)throw Error
516
520
  }
517
521
 
518
522
  .ft-switch-option--label {
519
- color: ${Hi.textColor};
523
+ color: ${ji.textColor};
520
524
  overflow: hidden;
521
525
  white-space: nowrap;
522
526
  text-overflow: ellipsis;
523
527
  display: block;
524
528
  margin: 0 8px;
525
- ${Oo(pi.fontSize,Hi.fontSize)};
526
- ${Oo(pi.lineHeight,"var(--ft-switch-option-internal-content-height)")}
529
+ ${Oo(hi.fontSize,ji.fontSize)};
530
+ ${Oo(hi.lineHeight,"var(--ft-switch-option-internal-content-height)")}
527
531
  }
528
532
 
529
533
  .ft-switch-option--selected .ft-switch-option--label {
530
- color: ${Hi.selectedTextColor};
534
+ color: ${ji.selectedTextColor};
531
535
  }
532
536
 
533
537
  .ft-switch-option--label[hidden] {
@@ -535,7 +539,7 @@ class Ki extends Po{constructor(t){if(super(t),this.et=X,t.type!==Do)throw Error
535
539
  }
536
540
 
537
541
  .ft-switch-option--ripple {
538
- ${Oo(_o.color,Hi.rippleColor)};
542
+ ${Oo(To.color,ji.rippleColor)};
539
543
  }
540
544
 
541
545
  ft-icon, ft-ripple, ft-typography {
@@ -548,20 +552,20 @@ class Ki extends Po{constructor(t){if(super(t),this.et=X,t.type!==Do)throw Error
548
552
 
549
553
  ft-icon {
550
554
  flex-shrink: 0;
551
- color: ${Hi.iconColor};
555
+ color: ${ji.iconColor};
552
556
  }
553
557
 
554
558
  .ft-switch-option--selected ft-icon {
555
- color: ${Hi.selectedTextColor};
559
+ color: ${ji.selectedTextColor};
556
560
  }
557
- `;var Ti=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Gi extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class Yi extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class Vi extends Lo{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new Yi(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(Qt`
558
- <label part="label" for="input" class=${Ho(t)}
561
+ `;var Gi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Yi extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class Vi extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class Ji extends Lo{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new Vi(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(Qt`
562
+ <label part="label" for="input" class=${jo(t)}
559
563
  @click=${this.onChange}>
560
564
  <div class="ft-switch-option--content">
561
565
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
562
566
  <ft-typography part="text"
563
567
  variant="button"
564
- class="ft-switch-option--label ${Ao?"ft-safari-ellipsis-fix":""}"
568
+ class="ft-switch-option--label ${Mo?"ft-safari-ellipsis-fix":""}"
565
569
  ?hidden=${!this.hasTextContent()}>
566
570
  <slot @slotchange=${this.onSlotchange}></slot>
567
571
  </ft-typography>
@@ -576,23 +580,23 @@ class Ki extends Po{constructor(t){if(super(t),this.et=X,t.type!==Do)throw Error
576
580
  position="${this.tooltipPosition}">
577
581
  ${t}
578
582
  </ft-tooltip>
579
- `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new Gi(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?Qt`
583
+ `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new Yi(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?Qt`
580
584
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
581
- `:oo}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Vi.elementDefinitions={"ft-ripple":te,"ft-typography":Si,"ft-tooltip":Li,"ft-icon":Pi},Vi.styles=[Ko,_i],Ti([C()],Vi.prototype,"value",void 0),Ti([C()],Vi.prototype,"icon",void 0),Ti([C()],Vi.prototype,"iconVariant",void 0),Ti([C()],Vi.prototype,"label",void 0),Ti([C()],Vi.prototype,"tooltipPosition",void 0),Ti([C({type:Boolean,reflect:!0})],Vi.prototype,"selected",void 0),Ti([C({type:Boolean})],Vi.prototype,"trailingIcon",void 0),Ti([C({type:Boolean})],Vi.prototype,"unselectable",void 0),Ti([E(".ft-switch-option--content slot")],Vi.prototype,"slottedContent",void 0),Ti([E(".ft-switch-option--input")],Vi.prototype,"input",void 0);var Ji=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class qi extends CustomEvent{constructor(t){super("change",{detail:t})}}class Xi extends Lo{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}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return Qt`
582
- <div @keydown=${this.onKeyDown} tabindex="0" class="${Ho(t)}">
585
+ `:oo}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Ji.elementDefinitions={"ft-ripple":oe,"ft-typography":Ci,"ft-tooltip":Ki,"ft-icon":Hi},Ji.styles=[Zo,Ti],Gi([C()],Ji.prototype,"value",void 0),Gi([C()],Ji.prototype,"icon",void 0),Gi([C()],Ji.prototype,"iconVariant",void 0),Gi([C()],Ji.prototype,"label",void 0),Gi([C()],Ji.prototype,"tooltipPosition",void 0),Gi([C({type:Boolean,reflect:!0})],Ji.prototype,"selected",void 0),Gi([C({type:Boolean})],Ji.prototype,"trailingIcon",void 0),Gi([C({type:Boolean})],Ji.prototype,"unselectable",void 0),Gi([E(".ft-switch-option--content slot")],Ji.prototype,"slottedContent",void 0),Gi([E(".ft-switch-option--input")],Ji.prototype,"input",void 0);var qi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Xi extends CustomEvent{constructor(t){super("change",{detail:t})}}class Qi extends Lo{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}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return Qt`
586
+ <div @keydown=${this.onKeyDown} tabindex="0" class="${jo(t)}">
583
587
  <slot @slotchange=${this.onSlotchange}
584
588
  @option-change=${this.onOptionChangeByScript}
585
589
  @option-change-by-user=${this.onOptionChangeByUser}
586
590
  ></slot>
587
591
  </div>
588
- `}onKeyDown(t){let o;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(o=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(o=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=o&&(t.preventDefault(),this.options[this.fixIndex(o)].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 Vi&&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)}onOptionChangeByScript(t){t.stopPropagation();let o=t.target;this.onOptionChange(o)}onOptionChangeByUser(t){var o;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new qi(null===(o=this.selectedOption)||void 0===o?void 0:o.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}Xi.elementDefinitions={},Xi.styles=bt`
592
+ `}onKeyDown(t){let o;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(o=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(o=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=o&&(t.preventDefault(),this.options[this.fixIndex(o)].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 Ji&&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)}onOptionChangeByScript(t){t.stopPropagation();let o=t.target;this.onOptionChange(o)}onOptionChangeByUser(t){var o;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new Xi(null===(o=this.selectedOption)||void 0===o?void 0:o.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}Qi.elementDefinitions={},Qi.styles=bt`
589
593
  :host {
590
594
  display: inline-block;
591
595
  }
592
596
 
593
597
  .ft-switch {
594
- border-radius: ${Hi.borderRadius};
595
- outline-color: ${Hi.outlineColor};
598
+ border-radius: ${ji.borderRadius};
599
+ outline-color: ${ji.outlineColor};
596
600
  }
597
601
 
598
602
  .ft-switch slot {
@@ -601,22 +605,22 @@ class Ki extends Po{constructor(t){if(super(t),this.et=X,t.type!==Do)throw Error
601
605
  }
602
606
 
603
607
  .ft-switch slot::slotted(ft-switch-option) {
604
- ${Oo(ji.borderRadiusLeft,"0")};
605
- ${Oo(ji.borderRadiusRight,"0")};
606
- ${Oo(ji.borderWidthLeft,"0")};
608
+ ${Oo(_i.borderRadiusLeft,"0")};
609
+ ${Oo(_i.borderRadiusRight,"0")};
610
+ ${Oo(_i.borderWidthLeft,"0")};
607
611
  }
608
612
 
609
613
  .ft-switch slot::slotted(ft-switch-option:first-child) {
610
- ${Oo(ji.borderRadiusLeft,Hi.borderRadius)};
611
- ${Oo(ji.borderWidthLeft,"1px")};
614
+ ${Oo(_i.borderRadiusLeft,ji.borderRadius)};
615
+ ${Oo(_i.borderWidthLeft,"1px")};
612
616
  }
613
617
 
614
618
  .ft-switch slot::slotted(ft-switch-option:last-child) {
615
- ${Oo(ji.borderRadiusRight,Hi.borderRadius)};
619
+ ${Oo(_i.borderRadiusRight,ji.borderRadius)};
616
620
  }
617
621
 
618
622
  .ft-switch--dense slot::slotted(ft-switch-option) {
619
623
  --ft-switch-internal-vertical-padding: 2px;
620
624
  --ft-switch-internal-horizontal-padding: 4px;
621
625
  }
622
- `,Ji([C({type:Boolean})],Xi.prototype,"dense",void 0),Ji([C({type:Boolean})],Xi.prototype,"unselectable",void 0),Ji([E(".ft-switch slot")],Xi.prototype,"slottedContent",void 0),Ji([R()],Xi.prototype,"selectedOption",void 0),Ji([E(".ft-switch")],Xi.prototype,"ftSwitchDiv",void 0),I("ft-switch")(Xi),I("ft-switch-option")(Vi),t.FtSwitch=Xi,t.FtSwitchChange=qi,t.FtSwitchCssVariables=Hi,t.FtSwitchOption=Vi,t.FtSwitchOptionCssVariables=ji,t.SwitchOptionChange=Yi,t.SwitchOptionChangeByUser=Gi,t.optionStyles=_i}({});
626
+ `,qi([C({type:Boolean})],Qi.prototype,"dense",void 0),qi([C({type:Boolean})],Qi.prototype,"unselectable",void 0),qi([E(".ft-switch slot")],Qi.prototype,"slottedContent",void 0),qi([R()],Qi.prototype,"selectedOption",void 0),qi([E(".ft-switch")],Qi.prototype,"ftSwitchDiv",void 0),I("ft-switch")(Qi),I("ft-switch-option")(Ji),t.FtSwitch=Qi,t.FtSwitchChange=Xi,t.FtSwitchCssVariables=ji,t.FtSwitchOption=Ji,t.FtSwitchOptionCssVariables=_i,t.SwitchOptionChange=Vi,t.SwitchOptionChangeByUser=Yi,t.optionStyles=Ti}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-switch",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
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": "1.1.0",
23
- "@fluid-topics/ft-ripple": "1.1.0",
24
- "@fluid-topics/ft-tooltip": "1.1.0",
25
- "@fluid-topics/ft-typography": "1.1.0",
26
- "@fluid-topics/ft-wc-utils": "1.1.0",
22
+ "@fluid-topics/ft-icon": "1.1.2",
23
+ "@fluid-topics/ft-ripple": "1.1.2",
24
+ "@fluid-topics/ft-tooltip": "1.1.2",
25
+ "@fluid-topics/ft-typography": "1.1.2",
26
+ "@fluid-topics/ft-wc-utils": "1.1.2",
27
27
  "lit": "3.1.0"
28
28
  },
29
- "gitHead": "3f2a051fc84a0e27b942f311efee39954f6d2883"
29
+ "gitHead": "53ce99f657872582bca43cbb7ad691b239b22823"
30
30
  }