@fluid-topics/ft-tabs 1.1.1 → 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-tabs.min.js +136 -132
  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,a=new WeakMap,n=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||[]);h(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=f(t),o.call(i,t,p)),this===window.customElements&&(n.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)a.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=n.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),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},f=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):a.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):a.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)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const a=t.toLowerCase();if(o.has(a)){const t=this.getAttribute(a);i.call(this,a,r),e.call(this,a,t,r)}else i.call(this,a,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 a=t.prototype.toggleAttribute;a&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);a.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else a.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 a{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 n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new a(o)}})}}try{window.customElements.define("custom-element",null)}catch(Yi){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,a=new WeakMap,n=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||[]);h(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=f(t),o.call(i,t,p)),this===window.customElements&&(n.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)a.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=n.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),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},f=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):a.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):a.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)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const a=t.toLowerCase();if(o.has(a)){const t=this.getAttribute(a);i.call(this,a,r),e.call(this,a,t,r)}else i.call(this,a,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 a=t.prototype.toggleAttribute;a&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);a.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else a.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 a{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 n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new a(o)}})}}try{window.customElements.define("custom-element",null)}catch(Vi){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 @@ let Oo=class extends Ft{constructor(){super(...arguments),this.renderOptions={ho
82
82
  * @license
83
83
  * Copyright 2019 Google LLC
84
84
  * SPDX-License-Identifier: BSD-3-Clause
85
- */const Io=window,ko=Io.ShadowRoot&&(void 0===Io.ShadyCSS||Io.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Wo extends Oo{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)=>{ko?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=Io.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Lo,Ko=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const Zo=Symbol("constructorPrototype"),zo=Symbol("constructorName"),Fo=Symbol("exportpartsDebouncer");class Mo extends Wo{constructor(){super(),this[Lo]=new o(5),this[zo]=this.constructor.name,this[Zo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[zo]&&Object.setPrototypeOf(this,this[Zo])}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[Fo].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,a,n;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!==(n=null===(a=t.getAttribute("exportparts"))||void 0===a?void 0:a.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>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(", "))}}var Do,Ao;Lo=Fo,Ko([C()],Mo.prototype,"exportpartsPrefix",void 0),Ko([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)=>!$(t,o),...null!=o?o:{}})}([])],Mo.prototype,"exportpartsPrefixes",void 0),Ko([C()],Mo.prototype,"customStylesheet",void 0),vt`
85
+ */const Io=window,ko=Io.ShadowRoot&&(void 0===Io.ShadyCSS||Io.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Wo extends Oo{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)=>{ko?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=Io.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Lo,Ko=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const Zo=Symbol("constructorPrototype"),zo=Symbol("constructorName"),Fo=Symbol("exportpartsDebouncer");class Mo extends Wo{constructor(){super(),this[Lo]=new o(5),this[zo]=this.constructor.name,this[Zo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[zo]&&Object.setPrototypeOf(this,this[Zo])}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[Fo].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,a,n;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!==(n=null===(a=t.getAttribute("exportparts"))||void 0===a?void 0:a.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>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(", "))}}Lo=Fo,Ko([C()],Mo.prototype,"exportpartsPrefix",void 0),Ko([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)=>!$(t,o),...null!=o?o:{}})}([])],Mo.prototype,"exportpartsPrefixes",void 0),Ko([C()],Mo.prototype,"customStylesheet",void 0);const Do=So.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");var Ao,Bo;vt`
86
+ .highlight-html-match {
87
+ background: ${Do};
88
+ }
89
+ `,vt`
86
90
  .ft-no-text-select {
87
91
  -webkit-touch-callout: none;
88
92
  -webkit-user-select: none;
@@ -114,25 +118,25 @@ let Oo=class extends Ft{constructor(){super(...arguments),this.renderOptions={ho
114
118
  display: inline-block;
115
119
  width: 0;
116
120
  }
117
- `,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Ao=null===(Do=window.safari)||void 0===Do?void 0:Do.pushNotification)||void 0===Ao||Ao.toString());var Bo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Po extends Mo{constructor(){super(...arguments),this.label="",this.icon="",this.active=!1,this.disabled=!1,this.uniqueId=(""+Math.floor(1e5*Math.random())).padStart(5,"0")}render(){return io`
121
+ `,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Bo=null===(Ao=window.safari)||void 0===Ao?void 0:Ao.pushNotification)||void 0===Bo||Bo.toString());var Po=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class jo extends Mo{constructor(){super(...arguments),this.label="",this.icon="",this.active=!1,this.disabled=!1,this.uniqueId=(""+Math.floor(1e5*Math.random())).padStart(5,"0")}render(){return io`
118
122
  <style>
119
123
  :host {
120
124
  display: ${Ot(this.active?"block":"none")};
121
125
  }
122
126
  </style>
123
127
  <slot></slot>
124
- `}update(t){super.update(t),this.id||(this.id="tab-"+this.uniqueId),this.ariaLabelledBy=this.id+"-control"}updated(t){super.updated(t),this.dispatchEvent(new Event("updated"))}}Po.elementDefinitions={},Bo([C({type:String})],Po.prototype,"label",void 0),Bo([C({type:String})],Po.prototype,"icon",void 0),Bo([C()],Po.prototype,"iconVariant",void 0),Bo([C({type:Boolean,reflect:!0})],Po.prototype,"active",void 0),Bo([C({type:Boolean})],Po.prototype,"disabled",void 0),Bo([C({reflect:!0})],Po.prototype,"id",void 0),Bo([C()],Po.prototype,"color",void 0),Bo([C()],Po.prototype,"rippleColor",void 0),Bo([C({reflect:!0,attribute:"aria-labelledby"})],Po.prototype,"ariaLabelledBy",void 0);
128
+ `}update(t){super.update(t),this.id||(this.id="tab-"+this.uniqueId),this.ariaLabelledBy=this.id+"-control"}updated(t){super.updated(t),this.dispatchEvent(new Event("updated"))}}jo.elementDefinitions={},Po([C({type:String})],jo.prototype,"label",void 0),Po([C({type:String})],jo.prototype,"icon",void 0),Po([C()],jo.prototype,"iconVariant",void 0),Po([C({type:Boolean,reflect:!0})],jo.prototype,"active",void 0),Po([C({type:Boolean})],jo.prototype,"disabled",void 0),Po([C({reflect:!0})],jo.prototype,"id",void 0),Po([C()],jo.prototype,"color",void 0),Po([C()],jo.prototype,"rippleColor",void 0),Po([C({reflect:!0,attribute:"aria-labelledby"})],jo.prototype,"ariaLabelledBy",void 0);
125
129
  /**
126
130
  * @license
127
131
  * Copyright 2017 Google LLC
128
132
  * SPDX-License-Identifier: BSD-3-Clause
129
133
  */
130
- const jo=1,Ho=2,_o=t=>(...o)=>({_$litDirective$:t,values:o});let To=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)}};
134
+ const Ho=1,_o=2,To=t=>(...o)=>({_$litDirective$:t,values:o});let Go=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)}};
131
135
  /**
132
136
  * @license
133
137
  * Copyright 2020 Google LLC
134
138
  * SPDX-License-Identifier: BSD-3-Clause
135
- */const{D:Go}=dt,Yo=()=>document.createComment(""),Vo=(t,o,e)=>{const i=t._$AA.parentNode,r=void 0===o?t._$AB:o._$AA;if(void 0===e){const o=i.insertBefore(Yo(),r),a=i.insertBefore(Yo(),r);e=new Go(o,a,t,t.options)}else{const o=e._$AB.nextSibling,a=e._$AM,n=a!==t;if(n){let o;e._$AQ?.(t),e._$AM=t,void 0!==e._$AP&&(o=t._$AU)!==a._$AU&&e._$AP(o)}if(o!==r||n){let t=e._$AA;for(;t!==o;){const o=t.nextSibling;i.insertBefore(t,r),t=o}}}return e},Jo=(t,o,e=t)=>(t._$AI(o,e),t),qo={},Xo=t=>{t._$AP?.(!1,!0);let o=t._$AA;const e=t._$AB.nextSibling;for(;o!==e;){const t=o.nextSibling;o.remove(),o=t}},Qo=(t,o,e)=>{const i=new Map;for(let r=o;r<=e;r++)i.set(t[r],r);return i},te=_o(class extends To{constructor(t){if(super(t),t.type!==Ho)throw Error("repeat() can only be used in text expressions")}ht(t,o,e){let i;void 0===e?e=o:void 0!==o&&(i=o);const r=[],a=[];let n=0;for(const o of t)r[n]=i?i(o,n):n,a[n]=e(o,n),n++;return{values:a,keys:r}}render(t,o,e){return this.ht(t,o,e).values}update(t,[o,e,i]){const r=(t=>t._$AH)(t),{values:a,keys:n}=this.ht(o,e,i);if(!Array.isArray(r))return this.dt=n,a;const s=this.dt??=[],l=[];let c,p,f=0,h=r.length-1,d=0,y=a.length-1;for(;f<=h&&d<=y;)if(null===r[f])f++;else if(null===r[h])h--;else if(s[f]===n[d])l[d]=Jo(r[f],a[d]),f++,d++;else if(s[h]===n[y])l[y]=Jo(r[h],a[y]),h--,y--;else if(s[f]===n[y])l[y]=Jo(r[f],a[y]),Vo(t,l[y+1],r[f]),f++,y--;else if(s[h]===n[d])l[d]=Jo(r[h],a[d]),Vo(t,r[f],r[h]),h--,d++;else if(void 0===c&&(c=Qo(n,d,y),p=Qo(s,f,h)),c.has(s[f]))if(c.has(s[h])){const o=p.get(n[d]),e=void 0!==o?r[o]:null;if(null===e){const o=Vo(t,r[f]);Jo(o,a[d]),l[d]=o}else l[d]=Jo(e,a[d]),Vo(t,r[f],e),r[o]=null;d++}else Xo(r[h]),h--;else Xo(r[f]),f++;for(;d<=y;){const o=Vo(t,l[y+1]);Jo(o,a[d]),l[d++]=o}for(;f<=h;){const t=r[f++];null!==t&&Xo(t)}return this.dt=n,((t,o=qo)=>{t._$AH=o})(t,l),X}}),oe=_o(class extends To{constructor(t){if(super(t),t.type!==jo||"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 X}}),ee=So.extend("--ft-ripple-color","",Eo.colorContent),ie=ee,re=So.extend("--ft-ripple-background-color","",ee),ae=So.external(Eo.opacityContentOnSurfacePressed,"Design system"),ne=So.external(Eo.opacityContentOnSurfaceHover,"Design system"),se=So.external(Eo.opacityContentOnSurfaceFocused,"Design system"),le=So.external(Eo.opacityContentOnSurfaceSelected,"Design system"),ce=So.create("--ft-ripple-border-radius","","SIZE","0px"),pe=So.extend("--ft-ripple-color","",Eo.colorPrimary),fe=pe,he=So.extend("--ft-ripple-background-color","",pe),de=So.extend("--ft-ripple-color","",Eo.colorSecondary),ye=de,ge=So.extend("--ft-ripple-background-color","",de),ue=vt`
139
+ */const{D:Yo}=dt,Vo=()=>document.createComment(""),Jo=(t,o,e)=>{const i=t._$AA.parentNode,r=void 0===o?t._$AB:o._$AA;if(void 0===e){const o=i.insertBefore(Vo(),r),a=i.insertBefore(Vo(),r);e=new Yo(o,a,t,t.options)}else{const o=e._$AB.nextSibling,a=e._$AM,n=a!==t;if(n){let o;e._$AQ?.(t),e._$AM=t,void 0!==e._$AP&&(o=t._$AU)!==a._$AU&&e._$AP(o)}if(o!==r||n){let t=e._$AA;for(;t!==o;){const o=t.nextSibling;i.insertBefore(t,r),t=o}}}return e},qo=(t,o,e=t)=>(t._$AI(o,e),t),Xo={},Qo=t=>{t._$AP?.(!1,!0);let o=t._$AA;const e=t._$AB.nextSibling;for(;o!==e;){const t=o.nextSibling;o.remove(),o=t}},te=(t,o,e)=>{const i=new Map;for(let r=o;r<=e;r++)i.set(t[r],r);return i},oe=To(class extends Go{constructor(t){if(super(t),t.type!==_o)throw Error("repeat() can only be used in text expressions")}ht(t,o,e){let i;void 0===e?e=o:void 0!==o&&(i=o);const r=[],a=[];let n=0;for(const o of t)r[n]=i?i(o,n):n,a[n]=e(o,n),n++;return{values:a,keys:r}}render(t,o,e){return this.ht(t,o,e).values}update(t,[o,e,i]){const r=(t=>t._$AH)(t),{values:a,keys:n}=this.ht(o,e,i);if(!Array.isArray(r))return this.dt=n,a;const s=this.dt??=[],l=[];let c,p,f=0,h=r.length-1,d=0,y=a.length-1;for(;f<=h&&d<=y;)if(null===r[f])f++;else if(null===r[h])h--;else if(s[f]===n[d])l[d]=qo(r[f],a[d]),f++,d++;else if(s[h]===n[y])l[y]=qo(r[h],a[y]),h--,y--;else if(s[f]===n[y])l[y]=qo(r[f],a[y]),Jo(t,l[y+1],r[f]),f++,y--;else if(s[h]===n[d])l[d]=qo(r[h],a[d]),Jo(t,r[f],r[h]),h--,d++;else if(void 0===c&&(c=te(n,d,y),p=te(s,f,h)),c.has(s[f]))if(c.has(s[h])){const o=p.get(n[d]),e=void 0!==o?r[o]:null;if(null===e){const o=Jo(t,r[f]);qo(o,a[d]),l[d]=o}else l[d]=qo(e,a[d]),Jo(t,r[f],e),r[o]=null;d++}else Qo(r[h]),h--;else Qo(r[f]),f++;for(;d<=y;){const o=Jo(t,l[y+1]);qo(o,a[d]),l[d++]=o}for(;f<=h;){const t=r[f++];null!==t&&Qo(t)}return this.dt=n,((t,o=Xo)=>{t._$AH=o})(t,l),X}}),ee=To(class extends Go{constructor(t){if(super(t),t.type!==Ho||"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 X}}),ie=So.extend("--ft-ripple-color","",Eo.colorContent),re=ie,ae=So.extend("--ft-ripple-background-color","",ie),ne=So.external(Eo.opacityContentOnSurfacePressed,"Design system"),se=So.external(Eo.opacityContentOnSurfaceHover,"Design system"),le=So.external(Eo.opacityContentOnSurfaceFocused,"Design system"),ce=So.external(Eo.opacityContentOnSurfaceSelected,"Design system"),pe=So.create("--ft-ripple-border-radius","","SIZE","0px"),fe=So.extend("--ft-ripple-color","",Eo.colorPrimary),he=fe,de=So.extend("--ft-ripple-background-color","",fe),ye=So.extend("--ft-ripple-color","",Eo.colorSecondary),ge=ye,ue=So.extend("--ft-ripple-background-color","",ye),be=vt`
136
140
  :host {
137
141
  display: contents;
138
142
  }
@@ -145,7 +149,7 @@ const jo=1,Ho=2,_o=t=>(...o)=>({_$litDirective$:t,values:o});let To=class{constr
145
149
 
146
150
  .ft-ripple:not(.ft-ripple--unbounded) {
147
151
  overflow: hidden;
148
- border-radius: ${ce};
152
+ border-radius: ${pe};
149
153
  }
150
154
 
151
155
  .ft-ripple .ft-ripple--background,
@@ -179,27 +183,27 @@ const jo=1,Ho=2,_o=t=>(...o)=>({_$litDirective$:t,values:o});let To=class{constr
179
183
  }
180
184
 
181
185
  .ft-ripple .ft-ripple--background {
182
- background-color: ${re};
186
+ background-color: ${ae};
183
187
  }
184
188
 
185
189
  .ft-ripple .ft-ripple--effect {
186
- background-color: ${ie};
190
+ background-color: ${re};
187
191
  }
188
192
 
189
193
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
190
- background-color: ${ge};
194
+ background-color: ${ue};
191
195
  }
192
196
 
193
197
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
194
- background-color: ${ye};
198
+ background-color: ${ge};
195
199
  }
196
200
 
197
201
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
198
- background-color: ${he};
202
+ background-color: ${de};
199
203
  }
200
204
 
201
205
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
202
- background-color: ${fe};
206
+ background-color: ${he};
203
207
  }
204
208
 
205
209
  .ft-ripple .ft-ripple--background {
@@ -229,19 +233,19 @@ const jo=1,Ho=2,_o=t=>(...o)=>({_$litDirective$:t,values:o});let To=class{constr
229
233
  }
230
234
 
231
235
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
232
- opacity: ${ne};
236
+ opacity: ${se};
233
237
  }
234
238
 
235
239
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
236
- opacity: ${le};
240
+ opacity: ${ce};
237
241
  }
238
242
 
239
243
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
240
- opacity: ${se};
244
+ opacity: ${le};
241
245
  }
242
246
 
243
247
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
244
- opacity: ${ae};
248
+ opacity: ${ne};
245
249
  transform: translate(-50%, -50%) scale(1);
246
250
  }
247
251
  `;
@@ -249,119 +253,119 @@ const jo=1,Ho=2,_o=t=>(...o)=>({_$litDirective$:t,values:o});let To=class{constr
249
253
  * @license
250
254
  * Copyright 2017 Google LLC
251
255
  * SPDX-License-Identifier: BSD-3-Clause
252
- */var be=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class me extends Mo{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),a=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-a.x:a.width/2),this.originY=Math.round(null!=r?r-a.y:a.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return io`
256
+ */var me=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class xe extends Mo{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),a=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-a.x:a.width/2),this.originY=Math.round(null!=r?r-a.y:a.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return io`
253
257
  <style>
254
258
  .ft-ripple .ft-ripple--effect {
255
259
  left: ${this.originX}px;
256
260
  top: ${this.originY}px;
257
261
  }
258
262
  </style>
259
- <div class="${oe(t)}">
263
+ <div class="${ee(t)}">
260
264
  <div class="ft-ripple--background"></div>
261
265
  <div class="ft-ripple--effect"></div>
262
266
  </div>
263
- `}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()}}me.elementDefinitions={},me.styles=ue,be([C({type:Boolean})],me.prototype,"primary",void 0),be([C({type:Boolean})],me.prototype,"secondary",void 0),be([C({type:Boolean})],me.prototype,"unbounded",void 0),be([C({type:Boolean})],me.prototype,"activated",void 0),be([C({type:Boolean})],me.prototype,"selected",void 0),be([C({type:Boolean})],me.prototype,"disabled",void 0),be([R()],me.prototype,"hovered",void 0),be([R()],me.prototype,"focused",void 0),be([R()],me.prototype,"pressed",void 0),be([R()],me.prototype,"rippling",void 0),be([R()],me.prototype,"originX",void 0),be([R()],me.prototype,"originY",void 0),be([U(".ft-ripple")],me.prototype,"ripple",void 0),be([U(".ft-ripple--effect")],me.prototype,"rippleEffect",void 0),I("ft-ripple")(me);
267
+ `}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()}}xe.elementDefinitions={},xe.styles=be,me([C({type:Boolean})],xe.prototype,"primary",void 0),me([C({type:Boolean})],xe.prototype,"secondary",void 0),me([C({type:Boolean})],xe.prototype,"unbounded",void 0),me([C({type:Boolean})],xe.prototype,"activated",void 0),me([C({type:Boolean})],xe.prototype,"selected",void 0),me([C({type:Boolean})],xe.prototype,"disabled",void 0),me([R()],xe.prototype,"hovered",void 0),me([R()],xe.prototype,"focused",void 0),me([R()],xe.prototype,"pressed",void 0),me([R()],xe.prototype,"rippling",void 0),me([R()],xe.prototype,"originX",void 0),me([R()],xe.prototype,"originY",void 0),me([U(".ft-ripple")],xe.prototype,"ripple",void 0),me([U(".ft-ripple--effect")],xe.prototype,"rippleEffect",void 0),I("ft-ripple")(xe);
264
268
  /**
265
269
  * @license
266
270
  * Copyright 2020 Google LLC
267
271
  * SPDX-License-Identifier: BSD-3-Clause
268
272
  */
269
- const xe=Symbol.for(""),Oe=t=>{if(t?.r===xe)return t?._$litStatic$},ve=t=>({_$litStatic$:t,r:xe}),Ne=new Map,Se=(t=>(o,...e)=>{const i=e.length;let r,a;const n=[],s=[];let l,c=0,p=!1;for(;c<i;){for(l=o[c];c<i&&void 0!==(a=e[c],r=Oe(a));)l+=r+o[++c],p=!0;c!==i&&s.push(a),n.push(l),c++}if(c===i&&n.push(o[i]),p){const t=n.join("$$lit$$");void 0===(o=Ne.get(t))&&(n.raw=n,Ne.set(t,o=n)),e=s}return t(o,...e)})(q);var we;!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"}(we||(we={}));const Ce=So.extend("--ft-typography-font-family","",Eo.titleFont),Re=So.extend("--ft-typography-font-family","",Eo.contentFont),Ee={fontFamily:Re,fontSize:So.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:So.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:So.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:So.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:So.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ue=So.extend("--ft-typography-title-font-family","",Ce),$e=So.extend("--ft-typography-title-font-size","",Ee.fontSize,"20px"),Ie=So.extend("--ft-typography-title-font-weight","",Ee.fontWeight,"normal"),ke=So.extend("--ft-typography-title-letter-spacing","",Ee.letterSpacing,"0.15px"),We=So.extend("--ft-typography-title-line-height","",Ee.lineHeight,"1.2"),Le=So.extend("--ft-typography-title-text-transform","",Ee.textTransform,"inherit"),Ke=So.extend("--ft-typography-title-dense-font-family","",Ce),Ze=So.extend("--ft-typography-title-dense-font-size","",Ee.fontSize,"14px"),ze=So.extend("--ft-typography-title-dense-font-weight","",Ee.fontWeight,"normal"),Fe=So.extend("--ft-typography-title-dense-letter-spacing","",Ee.letterSpacing,"0.105px"),Me=So.extend("--ft-typography-title-dense-line-height","",Ee.lineHeight,"1.7"),De=So.extend("--ft-typography-title-dense-text-transform","",Ee.textTransform,"inherit"),Ae=So.extend("--ft-typography-subtitle1-font-family","",Re),Be=So.extend("--ft-typography-subtitle1-font-size","",Ee.fontSize,"16px"),Pe=So.extend("--ft-typography-subtitle1-font-weight","",Ee.fontWeight,"600"),je=So.extend("--ft-typography-subtitle1-letter-spacing","",Ee.letterSpacing,"0.144px"),He=So.extend("--ft-typography-subtitle1-line-height","",Ee.lineHeight,"1.5"),_e=So.extend("--ft-typography-subtitle1-text-transform","",Ee.textTransform,"inherit"),Te=So.extend("--ft-typography-subtitle2-font-family","",Re),Ge=So.extend("--ft-typography-subtitle2-font-size","",Ee.fontSize,"14px"),Ye=So.extend("--ft-typography-subtitle2-font-weight","",Ee.fontWeight,"normal"),Ve=So.extend("--ft-typography-subtitle2-letter-spacing","",Ee.letterSpacing,"0.098px"),Je=So.extend("--ft-typography-subtitle2-line-height","",Ee.lineHeight,"1.7"),qe=So.extend("--ft-typography-subtitle2-text-transform","",Ee.textTransform,"inherit"),Xe=So.extend("--ft-typography-body1-font-family","",Re),Qe=So.extend("--ft-typography-body1-font-size","",Ee.fontSize,"16px"),ti=So.extend("--ft-typography-body1-font-weight","",Ee.fontWeight,"normal"),oi=So.extend("--ft-typography-body1-letter-spacing","",Ee.letterSpacing,"0.496px"),ei=So.extend("--ft-typography-body1-line-height","",Ee.lineHeight,"1.5"),ii=So.extend("--ft-typography-body1-text-transform","",Ee.textTransform,"inherit"),ri=So.extend("--ft-typography-body2-font-family","",Re),ai=So.extend("--ft-typography-body2-font-size","",Ee.fontSize,"14px"),ni=So.extend("--ft-typography-body2-font-weight","",Ee.fontWeight,"normal"),si=So.extend("--ft-typography-body2-letter-spacing","",Ee.letterSpacing,"0.252px"),li=So.extend("--ft-typography-body2-line-height","",Ee.lineHeight,"1.4"),ci=So.extend("--ft-typography-body2-text-transform","",Ee.textTransform,"inherit"),pi=So.extend("--ft-typography-caption-font-family","",Re),fi=So.extend("--ft-typography-caption-font-size","",Ee.fontSize,"12px"),hi=So.extend("--ft-typography-caption-font-weight","",Ee.fontWeight,"normal"),di=So.extend("--ft-typography-caption-letter-spacing","",Ee.letterSpacing,"0.396px"),yi=So.extend("--ft-typography-caption-line-height","",Ee.lineHeight,"1.33"),gi=So.extend("--ft-typography-caption-text-transform","",Ee.textTransform,"inherit"),ui=So.extend("--ft-typography-breadcrumb-font-family","",Re),bi=So.extend("--ft-typography-breadcrumb-font-size","",Ee.fontSize,"10px"),mi=So.extend("--ft-typography-breadcrumb-font-weight","",Ee.fontWeight,"normal"),xi=So.extend("--ft-typography-breadcrumb-letter-spacing","",Ee.letterSpacing,"0.33px"),Oi=So.extend("--ft-typography-breadcrumb-line-height","",Ee.lineHeight,"1.6"),vi=So.extend("--ft-typography-breadcrumb-text-transform","",Ee.textTransform,"inherit"),Ni=So.extend("--ft-typography-overline-font-family","",Re),Si=So.extend("--ft-typography-overline-font-size","",Ee.fontSize,"10px"),wi=So.extend("--ft-typography-overline-font-weight","",Ee.fontWeight,"normal"),Ci=So.extend("--ft-typography-overline-letter-spacing","",Ee.letterSpacing,"1.5px"),Ri=So.extend("--ft-typography-overline-line-height","",Ee.lineHeight,"1.6"),Ei=So.extend("--ft-typography-overline-text-transform","",Ee.textTransform,"uppercase"),Ui=So.extend("--ft-typography-button-font-family","",Re),$i=So.extend("--ft-typography-button-font-size","",Ee.fontSize,"14px"),Ii=So.extend("--ft-typography-button-font-weight","",Ee.fontWeight,"600"),ki=So.extend("--ft-typography-button-letter-spacing","",Ee.letterSpacing,"1.246px"),Wi=So.extend("--ft-typography-button-line-height","",Ee.lineHeight,"1.15"),Li=So.extend("--ft-typography-button-text-transform","",Ee.textTransform,"uppercase"),Ki=vt`
273
+ const Oe=Symbol.for(""),ve=t=>{if(t?.r===Oe)return t?._$litStatic$},Ne=t=>({_$litStatic$:t,r:Oe}),Se=new Map,we=(t=>(o,...e)=>{const i=e.length;let r,a;const n=[],s=[];let l,c=0,p=!1;for(;c<i;){for(l=o[c];c<i&&void 0!==(a=e[c],r=ve(a));)l+=r+o[++c],p=!0;c!==i&&s.push(a),n.push(l),c++}if(c===i&&n.push(o[i]),p){const t=n.join("$$lit$$");void 0===(o=Se.get(t))&&(n.raw=n,Se.set(t,o=n)),e=s}return t(o,...e)})(q);var Ce;!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"}(Ce||(Ce={}));const Re=So.extend("--ft-typography-font-family","",Eo.titleFont),Ee=So.extend("--ft-typography-font-family","",Eo.contentFont),Ue={fontFamily:Ee,fontSize:So.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:So.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:So.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:So.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:So.create("--ft-typography-text-transform","","UNKNOWN","inherit")},$e=So.extend("--ft-typography-title-font-family","",Re),Ie=So.extend("--ft-typography-title-font-size","",Ue.fontSize,"20px"),ke=So.extend("--ft-typography-title-font-weight","",Ue.fontWeight,"normal"),We=So.extend("--ft-typography-title-letter-spacing","",Ue.letterSpacing,"0.15px"),Le=So.extend("--ft-typography-title-line-height","",Ue.lineHeight,"1.2"),Ke=So.extend("--ft-typography-title-text-transform","",Ue.textTransform,"inherit"),Ze=So.extend("--ft-typography-title-dense-font-family","",Re),ze=So.extend("--ft-typography-title-dense-font-size","",Ue.fontSize,"14px"),Fe=So.extend("--ft-typography-title-dense-font-weight","",Ue.fontWeight,"normal"),Me=So.extend("--ft-typography-title-dense-letter-spacing","",Ue.letterSpacing,"0.105px"),De=So.extend("--ft-typography-title-dense-line-height","",Ue.lineHeight,"1.7"),Ae=So.extend("--ft-typography-title-dense-text-transform","",Ue.textTransform,"inherit"),Be=So.extend("--ft-typography-subtitle1-font-family","",Ee),Pe=So.extend("--ft-typography-subtitle1-font-size","",Ue.fontSize,"16px"),je=So.extend("--ft-typography-subtitle1-font-weight","",Ue.fontWeight,"600"),He=So.extend("--ft-typography-subtitle1-letter-spacing","",Ue.letterSpacing,"0.144px"),_e=So.extend("--ft-typography-subtitle1-line-height","",Ue.lineHeight,"1.5"),Te=So.extend("--ft-typography-subtitle1-text-transform","",Ue.textTransform,"inherit"),Ge=So.extend("--ft-typography-subtitle2-font-family","",Ee),Ye=So.extend("--ft-typography-subtitle2-font-size","",Ue.fontSize,"14px"),Ve=So.extend("--ft-typography-subtitle2-font-weight","",Ue.fontWeight,"normal"),Je=So.extend("--ft-typography-subtitle2-letter-spacing","",Ue.letterSpacing,"0.098px"),qe=So.extend("--ft-typography-subtitle2-line-height","",Ue.lineHeight,"1.7"),Xe=So.extend("--ft-typography-subtitle2-text-transform","",Ue.textTransform,"inherit"),Qe=So.extend("--ft-typography-body1-font-family","",Ee),ti=So.extend("--ft-typography-body1-font-size","",Ue.fontSize,"16px"),oi=So.extend("--ft-typography-body1-font-weight","",Ue.fontWeight,"normal"),ei=So.extend("--ft-typography-body1-letter-spacing","",Ue.letterSpacing,"0.496px"),ii=So.extend("--ft-typography-body1-line-height","",Ue.lineHeight,"1.5"),ri=So.extend("--ft-typography-body1-text-transform","",Ue.textTransform,"inherit"),ai=So.extend("--ft-typography-body2-font-family","",Ee),ni=So.extend("--ft-typography-body2-font-size","",Ue.fontSize,"14px"),si=So.extend("--ft-typography-body2-font-weight","",Ue.fontWeight,"normal"),li=So.extend("--ft-typography-body2-letter-spacing","",Ue.letterSpacing,"0.252px"),ci=So.extend("--ft-typography-body2-line-height","",Ue.lineHeight,"1.4"),pi=So.extend("--ft-typography-body2-text-transform","",Ue.textTransform,"inherit"),fi=So.extend("--ft-typography-caption-font-family","",Ee),hi=So.extend("--ft-typography-caption-font-size","",Ue.fontSize,"12px"),di=So.extend("--ft-typography-caption-font-weight","",Ue.fontWeight,"normal"),yi=So.extend("--ft-typography-caption-letter-spacing","",Ue.letterSpacing,"0.396px"),gi=So.extend("--ft-typography-caption-line-height","",Ue.lineHeight,"1.33"),ui=So.extend("--ft-typography-caption-text-transform","",Ue.textTransform,"inherit"),bi=So.extend("--ft-typography-breadcrumb-font-family","",Ee),mi=So.extend("--ft-typography-breadcrumb-font-size","",Ue.fontSize,"10px"),xi=So.extend("--ft-typography-breadcrumb-font-weight","",Ue.fontWeight,"normal"),Oi=So.extend("--ft-typography-breadcrumb-letter-spacing","",Ue.letterSpacing,"0.33px"),vi=So.extend("--ft-typography-breadcrumb-line-height","",Ue.lineHeight,"1.6"),Ni=So.extend("--ft-typography-breadcrumb-text-transform","",Ue.textTransform,"inherit"),Si=So.extend("--ft-typography-overline-font-family","",Ee),wi=So.extend("--ft-typography-overline-font-size","",Ue.fontSize,"10px"),Ci=So.extend("--ft-typography-overline-font-weight","",Ue.fontWeight,"normal"),Ri=So.extend("--ft-typography-overline-letter-spacing","",Ue.letterSpacing,"1.5px"),Ei=So.extend("--ft-typography-overline-line-height","",Ue.lineHeight,"1.6"),Ui=So.extend("--ft-typography-overline-text-transform","",Ue.textTransform,"uppercase"),$i=So.extend("--ft-typography-button-font-family","",Ee),Ii=So.extend("--ft-typography-button-font-size","",Ue.fontSize,"14px"),ki=So.extend("--ft-typography-button-font-weight","",Ue.fontWeight,"600"),Wi=So.extend("--ft-typography-button-letter-spacing","",Ue.letterSpacing,"1.246px"),Li=So.extend("--ft-typography-button-line-height","",Ue.lineHeight,"1.15"),Ki=So.extend("--ft-typography-button-text-transform","",Ue.textTransform,"uppercase"),Zi=vt`
270
274
  .ft-typography--title {
271
- font-family: ${Ue};
272
- font-size: ${$e};
273
- font-weight: ${Ie};
274
- letter-spacing: ${ke};
275
- line-height: ${We};
276
- text-transform: ${Le};
277
- }
278
- `,Zi=vt`
279
- .ft-typography--title-dense {
280
- font-family: ${Ke};
281
- font-size: ${Ze};
282
- font-weight: ${ze};
283
- letter-spacing: ${Fe};
284
- line-height: ${Me};
285
- text-transform: ${De};
275
+ font-family: ${$e};
276
+ font-size: ${Ie};
277
+ font-weight: ${ke};
278
+ letter-spacing: ${We};
279
+ line-height: ${Le};
280
+ text-transform: ${Ke};
286
281
  }
287
282
  `,zi=vt`
288
- .ft-typography--subtitle1 {
289
- font-family: ${Ae};
290
- font-size: ${Be};
291
- font-weight: ${Pe};
292
- letter-spacing: ${je};
293
- line-height: ${He};
294
- text-transform: ${_e};
283
+ .ft-typography--title-dense {
284
+ font-family: ${Ze};
285
+ font-size: ${ze};
286
+ font-weight: ${Fe};
287
+ letter-spacing: ${Me};
288
+ line-height: ${De};
289
+ text-transform: ${Ae};
295
290
  }
296
291
  `,Fi=vt`
297
- .ft-typography--subtitle2 {
298
- font-family: ${Te};
299
- font-size: ${Ge};
300
- font-weight: ${Ye};
301
- letter-spacing: ${Ve};
302
- line-height: ${Je};
303
- text-transform: ${qe};
292
+ .ft-typography--subtitle1 {
293
+ font-family: ${Be};
294
+ font-size: ${Pe};
295
+ font-weight: ${je};
296
+ letter-spacing: ${He};
297
+ line-height: ${_e};
298
+ text-transform: ${Te};
304
299
  }
305
-
306
300
  `,Mi=vt`
307
- .ft-typography--body1 {
308
- font-family: ${Xe};
309
- font-size: ${Qe};
310
- font-weight: ${ti};
311
- letter-spacing: ${oi};
312
- line-height: ${ei};
313
- text-transform: ${ii};
301
+ .ft-typography--subtitle2 {
302
+ font-family: ${Ge};
303
+ font-size: ${Ye};
304
+ font-weight: ${Ve};
305
+ letter-spacing: ${Je};
306
+ line-height: ${qe};
307
+ text-transform: ${Xe};
314
308
  }
309
+
315
310
  `,Di=vt`
316
- .ft-typography--body2 {
317
- font-family: ${ri};
318
- font-size: ${ai};
319
- font-weight: ${ni};
320
- letter-spacing: ${si};
321
- line-height: ${li};
322
- text-transform: ${ci};
311
+ .ft-typography--body1 {
312
+ font-family: ${Qe};
313
+ font-size: ${ti};
314
+ font-weight: ${oi};
315
+ letter-spacing: ${ei};
316
+ line-height: ${ii};
317
+ text-transform: ${ri};
323
318
  }
324
319
  `,Ai=vt`
325
- .ft-typography--caption {
326
- font-family: ${pi};
327
- font-size: ${fi};
328
- font-weight: ${hi};
329
- letter-spacing: ${di};
330
- line-height: ${yi};
331
- text-transform: ${gi};
320
+ .ft-typography--body2 {
321
+ font-family: ${ai};
322
+ font-size: ${ni};
323
+ font-weight: ${si};
324
+ letter-spacing: ${li};
325
+ line-height: ${ci};
326
+ text-transform: ${pi};
332
327
  }
333
328
  `,Bi=vt`
334
- .ft-typography--breadcrumb {
335
- font-family: ${ui};
336
- font-size: ${bi};
337
- font-weight: ${mi};
338
- letter-spacing: ${xi};
339
- line-height: ${Oi};
340
- text-transform: ${vi};
329
+ .ft-typography--caption {
330
+ font-family: ${fi};
331
+ font-size: ${hi};
332
+ font-weight: ${di};
333
+ letter-spacing: ${yi};
334
+ line-height: ${gi};
335
+ text-transform: ${ui};
341
336
  }
342
337
  `,Pi=vt`
343
- .ft-typography--overline {
344
- font-family: ${Ni};
345
- font-size: ${Si};
346
- font-weight: ${wi};
347
- letter-spacing: ${Ci};
348
- line-height: ${Ri};
349
- text-transform: ${Ei};
338
+ .ft-typography--breadcrumb {
339
+ font-family: ${bi};
340
+ font-size: ${mi};
341
+ font-weight: ${xi};
342
+ letter-spacing: ${Oi};
343
+ line-height: ${vi};
344
+ text-transform: ${Ni};
350
345
  }
351
346
  `,ji=vt`
352
- .ft-typography--button {
353
- font-family: ${Ui};
354
- font-size: ${$i};
355
- font-weight: ${Ii};
356
- letter-spacing: ${ki};
357
- line-height: ${Wi};
358
- text-transform: ${Li};
347
+ .ft-typography--overline {
348
+ font-family: ${Si};
349
+ font-size: ${wi};
350
+ font-weight: ${Ci};
351
+ letter-spacing: ${Ri};
352
+ line-height: ${Ei};
353
+ text-transform: ${Ui};
359
354
  }
360
355
  `,Hi=vt`
356
+ .ft-typography--button {
357
+ font-family: ${$i};
358
+ font-size: ${Ii};
359
+ font-weight: ${ki};
360
+ letter-spacing: ${Wi};
361
+ line-height: ${Li};
362
+ text-transform: ${Ki};
363
+ }
364
+ `,_i=vt`
361
365
  .ft-typography {
362
366
  vertical-align: inherit;
363
367
  }
364
- `,_i=[Object.keys(Co).map((t=>function(t){const o=Co[t];return vt`
368
+ `,Ti=[Object.keys(Co).map((t=>function(t){const o=Co[t];return vt`
365
369
  .ft-typography--${Ot(t)} {
366
370
  font-family: ${o.fontFamily};
367
371
  font-size: ${o.fontSize};
@@ -370,20 +374,20 @@ const xe=Symbol.for(""),Oe=t=>{if(t?.r===xe)return t?._$litStatic$},ve=t=>({_$li
370
374
  line-height: ${o.lineHeight};
371
375
  text-transform: ${o.textCase};
372
376
  }
373
- `}(t)))];var Ti=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Gi extends Mo{constructor(){super(...arguments),this.variant=we.body1}render(){return this.element?Se`
374
- <${ve(this.element)}
377
+ `}(t)))];var Gi=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Yi extends Mo{constructor(){super(...arguments),this.variant=Ce.body1}render(){return this.element?we`
378
+ <${Ne(this.element)}
375
379
  class="ft-typography ft-typography--${this.variant}">
376
380
  <slot></slot>
377
- </${ve(this.element)}>
378
- `:Se`
381
+ </${Ne(this.element)}>
382
+ `:we`
379
383
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
380
- `}}Gi.styles=[Ki,Zi,zi,Fi,Mi,Di,Ai,Bi,Pi,ji,Hi,..._i],Ti([C()],Gi.prototype,"element",void 0),Ti([C()],Gi.prototype,"variant",void 0),I("ft-typography")(Gi);
384
+ `}}Yi.styles=[Zi,zi,Fi,Mi,Di,Ai,Bi,Pi,ji,Hi,_i,...Ti],Gi([C()],Yi.prototype,"element",void 0),Gi([C()],Yi.prototype,"variant",void 0),I("ft-typography")(Yi);
381
385
  /**
382
386
  * @license
383
387
  * Copyright 2017 Google LLC
384
388
  * SPDX-License-Identifier: BSD-3-Clause
385
389
  */
386
- class Yi extends To{constructor(t){if(super(t),this.et=Q,t.type!==Ho)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Q||null==t)return this.vt=void 0,this.et=t;if(t===X)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:[]}}}Yi.directiveName="unsafeHTML",Yi.resultType=1;const Vi=_o(Yi);var Ji,qi;!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;"}(Ji||(Ji={})),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;"}(qi||(qi={})),new Map([...["abw"].map((t=>[t,qi.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,qi.AUDIO])),...["avi"].map((t=>[t,qi.AVI])),...["chm","xhs"].map((t=>[t,qi.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,qi.CODE])),...["csv"].map((t=>[t,qi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,qi.DITA])),...["epub"].map((t=>[t,qi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,qi.EXCEL])),...["flac"].map((t=>[t,qi.FLAC])),...["gif"].map((t=>[t,qi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,qi.GZIP])),...["html","htm","xhtml"].map((t=>[t,qi.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,qi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,qi.JPEG])),...["json"].map((t=>[t,qi.JSON])),...["m4a","m4p"].map((t=>[t,qi.M4A])),...["mov","qt"].map((t=>[t,qi.MOV])),...["mp3"].map((t=>[t,qi.MP3])),...["mp4","m4v"].map((t=>[t,qi.MP4])),...["ogg","oga"].map((t=>[t,qi.OGG])),...["pdf","ps"].map((t=>[t,qi.PDF])),...["png"].map((t=>[t,qi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,qi.POWERPOINT])),...["rar"].map((t=>[t,qi.RAR])),...["stp"].map((t=>[t,qi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,qi.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,qi.VIDEO])),...["wav"].map((t=>[t,qi.WAV])),...["wma"].map((t=>[t,qi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,qi.WORD])),...["xml","xsl","rdf"].map((t=>[t,qi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,qi.YAML])),...["zip"].map((t=>[t,qi.ZIP]))]);const Xi=So.create("--ft-icon-font-size","","SIZE","24px"),Qi=So.extend("--ft-icon-fluid-topics-font-family","",So.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),tr=So.extend("--ft-icon-file-format-font-family","",So.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),or=So.extend("--ft-icon-material-font-family","",So.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),er=So.create("--ft-icon-vertical-align","","UNKNOWN","unset"),ir=vt`
390
+ class Vi extends Go{constructor(t){if(super(t),this.et=Q,t.type!==_o)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Q||null==t)return this.vt=void 0,this.et=t;if(t===X)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:[]}}}Vi.directiveName="unsafeHTML",Vi.resultType=1;const Ji=To(Vi);var qi,Xi;!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;"}(qi||(qi={})),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;"}(Xi||(Xi={})),new Map([...["abw"].map((t=>[t,Xi.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,Xi.AUDIO])),...["avi"].map((t=>[t,Xi.AVI])),...["chm","xhs"].map((t=>[t,Xi.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,Xi.CODE])),...["csv"].map((t=>[t,Xi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Xi.DITA])),...["epub"].map((t=>[t,Xi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Xi.EXCEL])),...["flac"].map((t=>[t,Xi.FLAC])),...["gif"].map((t=>[t,Xi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Xi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Xi.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,Xi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Xi.JPEG])),...["json"].map((t=>[t,Xi.JSON])),...["m4a","m4p"].map((t=>[t,Xi.M4A])),...["mov","qt"].map((t=>[t,Xi.MOV])),...["mp3"].map((t=>[t,Xi.MP3])),...["mp4","m4v"].map((t=>[t,Xi.MP4])),...["ogg","oga"].map((t=>[t,Xi.OGG])),...["pdf","ps"].map((t=>[t,Xi.PDF])),...["png"].map((t=>[t,Xi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Xi.POWERPOINT])),...["rar"].map((t=>[t,Xi.RAR])),...["stp"].map((t=>[t,Xi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Xi.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,Xi.VIDEO])),...["wav"].map((t=>[t,Xi.WAV])),...["wma"].map((t=>[t,Xi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Xi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Xi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Xi.YAML])),...["zip"].map((t=>[t,Xi.ZIP]))]);const Qi=So.create("--ft-icon-font-size","","SIZE","24px"),tr=So.extend("--ft-icon-fluid-topics-font-family","",So.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),or=So.extend("--ft-icon-file-format-font-family","",So.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),er=So.extend("--ft-icon-material-font-family","",So.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),ir=So.create("--ft-icon-vertical-align","","UNKNOWN","unset"),rr=vt`
387
391
  :host, i.ft-icon {
388
392
  display: inline-flex;
389
393
  align-items: center;
@@ -392,14 +396,14 @@ class Yi extends To{constructor(t){if(super(t),this.et=Q,t.type!==Ho)throw Error
392
396
  }
393
397
 
394
398
  :host {
395
- width: ${Xi};
396
- height: ${Xi};
399
+ width: ${Qi};
400
+ height: ${Qi};
397
401
  }
398
402
 
399
403
  i.ft-icon {
400
404
  width: 100%;
401
405
  height: 100%;
402
- font-size: ${Xi};
406
+ font-size: ${Qi};
403
407
  line-height: 1;
404
408
  font-weight: normal;
405
409
  text-transform: none;
@@ -410,37 +414,37 @@ class Yi extends To{constructor(t){if(super(t),this.et=Q,t.type!==Ho)throw Error
410
414
  text-rendering: auto;
411
415
  -webkit-font-smoothing: antialiased;
412
416
  -moz-osx-font-smoothing: grayscale;
413
- vertical-align: ${er};
417
+ vertical-align: ${ir};
414
418
  }
415
419
 
416
420
  i.ft-icon.ft-icon--fluid-topics {
417
- font-family: ${Qi}, ft-icons, fticons, sans-serif;
421
+ font-family: ${tr}, ft-icons, fticons, sans-serif;
418
422
 
419
423
  /* Ugly fix because font is broken */
420
- font-size: calc(0.75 * ${Xi});
421
- line-height: ${Xi};
424
+ font-size: calc(0.75 * ${Qi});
425
+ line-height: ${Qi};
422
426
  position: relative;
423
427
  top: -4%;
424
428
  justify-content: center;
425
429
  }
426
430
 
427
431
  .ft-icon--file-format {
428
- font-family: ${tr}, ft-mime, sans-serif;
432
+ font-family: ${or}, ft-mime, sans-serif;
429
433
  }
430
434
 
431
435
  .ft-icon--material {
432
- font-family: ${or}, "Material Icons", sans-serif;
436
+ font-family: ${er}, "Material Icons", sans-serif;
433
437
  }
434
- `;var rr;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(rr||(rr={}));var ar,nr=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class sr extends Mo{constructor(){super(...arguments),this.resolvedIcon=ao}render(){const t=this.variant&&Object.values(rr).includes(this.variant)?this.variant:rr.fluid_topics,o=t!==rr.material||!!this.value;return io`
438
+ `;var ar;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ar||(ar={}));var nr,sr=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class lr extends Mo{constructor(){super(...arguments),this.resolvedIcon=ao}render(){const t=this.variant&&Object.values(ar).includes(this.variant)?this.variant:ar.fluid_topics,o=t!==ar.material||!!this.value;return io`
435
439
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
436
- ${Vi(this.resolvedIcon)}
440
+ ${Ji(this.resolvedIcon)}
437
441
  <slot ?hidden=${o}></slot>
438
442
  </i>
439
- `}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 rr.file_format:this.resolvedIcon=null!==(t=qi[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case rr.material:this.resolvedIcon=this.value||ao;break;default:this.resolvedIcon=null!==(o=Ji[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}sr.elementDefinitions={},sr.styles=ir,nr([C()],sr.prototype,"variant",void 0),nr([C()],sr.prototype,"value",void 0),nr([R()],sr.prototype,"resolvedIcon",void 0),nr([U("slot")],sr.prototype,"slottedContent",void 0),I("ft-icon")(sr),t.FtTabsAlignment=void 0,(ar=t.FtTabsAlignment||(t.FtTabsAlignment={})).left="left",ar.right="right",ar.justify="justify";const lr={colorSurface:So.external(Eo.colorSurface,"Design system"),colorPrimary:So.external(Eo.colorPrimary,"Design system"),colorOnSurfaceMedium:So.external(Eo.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:So.external(Eo.colorOnSurfaceDisabled,"Design system")},cr=vt`
443
+ `}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 ar.file_format:this.resolvedIcon=null!==(t=Xi[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case ar.material:this.resolvedIcon=this.value||ao;break;default:this.resolvedIcon=null!==(o=qi[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}lr.elementDefinitions={},lr.styles=rr,sr([C()],lr.prototype,"variant",void 0),sr([C()],lr.prototype,"value",void 0),sr([R()],lr.prototype,"resolvedIcon",void 0),sr([U("slot")],lr.prototype,"slottedContent",void 0),I("ft-icon")(lr),t.FtTabsAlignment=void 0,(nr=t.FtTabsAlignment||(t.FtTabsAlignment={})).left="left",nr.right="right",nr.justify="justify";const cr={colorSurface:So.external(Eo.colorSurface,"Design system"),colorPrimary:So.external(Eo.colorPrimary,"Design system"),colorOnSurfaceMedium:So.external(Eo.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:So.external(Eo.colorOnSurfaceDisabled,"Design system")},pr=vt`
440
444
  .ft-tabs {
441
445
  display: flex;
442
446
  flex-direction: column;
443
- background-color: ${lr.colorSurface};
447
+ background-color: ${cr.colorSurface};
444
448
  height: 100%;
445
449
  }
446
450
 
@@ -480,15 +484,15 @@ class Yi extends To{constructor(t){if(super(t),this.et=Q,t.type!==Ho)throw Error
480
484
  outline: none;
481
485
  font-size: 16px;
482
486
  line-height: 1;
483
- color: ${lr.colorOnSurfaceMedium};
487
+ color: ${cr.colorOnSurfaceMedium};
484
488
  }
485
489
 
486
490
  [role='tab'][aria-selected='true'] {
487
- color: ${lr.colorPrimary};
491
+ color: ${cr.colorPrimary};
488
492
  }
489
493
 
490
494
  [role='tab'][disabled] {
491
- color: ${lr.colorOnSurfaceDisabled};
495
+ color: ${cr.colorOnSurfaceDisabled};
492
496
  }
493
497
 
494
498
  .ft-tabs--align-justify [role='tab'],
@@ -520,7 +524,7 @@ class Yi extends To{constructor(t){if(super(t),this.et=Q,t.type!==Ho)throw Error
520
524
  position: absolute;
521
525
  height: 3px;
522
526
  border-radius: 2px;
523
- background-color: ${lr.colorPrimary};
527
+ background-color: ${cr.colorPrimary};
524
528
  transition: width 200ms ease, left 200ms ease, top 200ms ease;
525
529
  }
526
530
 
@@ -529,7 +533,7 @@ class Yi extends To{constructor(t){if(super(t),this.et=Q,t.type!==Ho)throw Error
529
533
  flex-grow: 1;
530
534
  overflow: auto;
531
535
  }
532
- `,pr=So.create("--ft-tooltip-distance","","SIZE","4px"),fr=So.create("--ft-tooltip-color","","COLOR","#FFFFFF"),hr=So.create("--ft-tooltip-background-color","","COLOR","#666666"),dr=So.create("--ft-tooltip-z-index","","NUMBER","100"),yr=So.external(Eo.borderRadiusS,"Design system"),gr=So.create("--ft-tooltip-max-width","","SIZE","150px"),ur=vt`
536
+ `,fr=So.create("--ft-tooltip-distance","","SIZE","4px"),hr=So.create("--ft-tooltip-color","","COLOR","#FFFFFF"),dr=So.create("--ft-tooltip-background-color","","COLOR","#666666"),yr=So.create("--ft-tooltip-z-index","","NUMBER","100"),gr=So.external(Eo.borderRadiusS,"Design system"),ur=So.create("--ft-tooltip-max-width","","SIZE","150px"),br=vt`
533
537
  .ft-tooltip--container {
534
538
  display: block;
535
539
  }
@@ -544,21 +548,21 @@ class Yi extends To{constructor(t){if(super(t),this.et=Q,t.type!==Ho)throw Error
544
548
  box-sizing: border-box;
545
549
  overflow: hidden;
546
550
  width: max-content;
547
- max-width: ${gr};
551
+ max-width: ${ur};
548
552
  text-align: center;
549
- padding: ${pr};
550
- z-index: ${dr};
553
+ padding: ${fr};
554
+ z-index: ${yr};
551
555
  }
552
556
 
553
557
  .ft-tooltip--content {
554
558
  padding: 4px 8px;
555
- border-radius: ${yr};
556
- background-color: ${hr};
557
- color: ${fr};
559
+ border-radius: ${gr};
560
+ background-color: ${dr};
561
+ color: ${hr};
558
562
  position: relative;
559
563
  word-break: break-word;
560
564
  }
561
- `;var br=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class mr extends Mo{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 io`
565
+ `;var mr=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class xr extends Mo{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 io`
562
566
  <div part="container"
563
567
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
564
568
  @mouseenter=${this.onHover}
@@ -576,11 +580,11 @@ class Yi extends To{constructor(t){if(super(t),this.et=Q,t.type!==Ho)throw Error
576
580
  </div>
577
581
  </div>
578
582
  </div>
579
- `}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 a=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-e-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=a+"px",s.top=n+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,p=l.x+l.width-window.innerWidth;s.left=a+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let f=-l.y,h=l.y+l.height-window.innerHeight;s.top=n+Math.round(this.correctOutOfWindowPixels(f,h))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${gr})`}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))}}mr.elementDefinitions={"ft-typography":Gi},mr.styles=ur,br([C()],mr.prototype,"text",void 0),br([C({type:Boolean})],mr.prototype,"manual",void 0),br([C({type:Boolean})],mr.prototype,"inline",void 0),br([C({type:Number})],mr.prototype,"delay",void 0),br([C()],mr.prototype,"position",void 0),br([function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return E(0,0,{get(){const o=this.renderRoot?.querySelector(r);return o?.assignedNodes(t)??[]}})}}()],mr.prototype,"slotNodes",void 0),br([U(".ft-tooltip--container")],mr.prototype,"container",void 0),br([U(".ft-tooltip")],mr.prototype,"tooltip",void 0),br([U(".ft-tooltip--content")],mr.prototype,"tooltipContent",void 0),br([R()],mr.prototype,"visible",void 0),I("ft-tooltip")(mr);var xr=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Or extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class vr extends Mo{constructor(){super(...arguments),this.dense=!1,this.contentBefore=!1,this.alignTabs=t.FtTabsAlignment.justify,this.ftTabs=[],this.activeIndex=0,this.updateDebouncer=new o(2),this.onTabUpdated=()=>this.updateDebouncer.run((()=>{this.requestUpdate(),this.dispatchEvent(new $o)})),this.resizeObserver=new ResizeObserver((()=>this.placeIndicator()))}render(){var t;const o={"ft-tabs":!0,"ft-tabs--reverse":this.contentBefore,"ft-tabs--dense":this.dense},e=null===(t=this.ftTabs[this.activeIndex])||void 0===t?void 0:t.color;return io`
580
- <div class="${oe(o)}" part="container">
583
+ `}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 a=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-e-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=a+"px",s.top=n+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,p=l.x+l.width-window.innerWidth;s.left=a+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let f=-l.y,h=l.y+l.height-window.innerHeight;s.top=n+Math.round(this.correctOutOfWindowPixels(f,h))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${ur})`}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))}}xr.elementDefinitions={"ft-typography":Yi},xr.styles=br,mr([C()],xr.prototype,"text",void 0),mr([C({type:Boolean})],xr.prototype,"manual",void 0),mr([C({type:Boolean})],xr.prototype,"inline",void 0),mr([C({type:Number})],xr.prototype,"delay",void 0),mr([C()],xr.prototype,"position",void 0),mr([function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return E(0,0,{get(){const o=this.renderRoot?.querySelector(r);return o?.assignedNodes(t)??[]}})}}()],xr.prototype,"slotNodes",void 0),mr([U(".ft-tooltip--container")],xr.prototype,"container",void 0),mr([U(".ft-tooltip")],xr.prototype,"tooltip",void 0),mr([U(".ft-tooltip--content")],xr.prototype,"tooltipContent",void 0),mr([R()],xr.prototype,"visible",void 0),I("ft-tooltip")(xr);var Or=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class vr extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class Nr extends Mo{constructor(){super(...arguments),this.dense=!1,this.contentBefore=!1,this.alignTabs=t.FtTabsAlignment.justify,this.ftTabs=[],this.activeIndex=0,this.updateDebouncer=new o(2),this.onTabUpdated=()=>this.updateDebouncer.run((()=>{this.requestUpdate(),this.dispatchEvent(new $o)})),this.resizeObserver=new ResizeObserver((()=>this.placeIndicator()))}render(){var t;const o={"ft-tabs":!0,"ft-tabs--reverse":this.contentBefore,"ft-tabs--dense":this.dense},e=null===(t=this.ftTabs[this.activeIndex])||void 0===t?void 0:t.color;return io`
584
+ <div class="${ee(o)}" part="container">
581
585
  <div class="ft-tabs--align-${this.alignTabs}" role="tablist" part="tablist">
582
- ${te(this.ftTabs,((t,o)=>this.addTooltipIfNecessary(t,io`
583
- <button class="${oe({"ft-tabs--tab-with-icon":!!t.icon,"ft-tabs--tab-with-label":!!t.label})}"
586
+ ${oe(this.ftTabs,((t,o)=>this.addTooltipIfNecessary(t,io`
587
+ <button class="${ee({"ft-tabs--tab-with-icon":!!t.icon,"ft-tabs--tab-with-label":!!t.label})}"
584
588
  ?disabled=${t.disabled}
585
589
  @click=${()=>this.activeIndex=o}
586
590
  role="tab"
@@ -602,7 +606,7 @@ class Yi extends To{constructor(t){if(super(t),this.et=Q,t.type!==Ho)throw Error
602
606
  </ft-icon>
603
607
  <ft-typography class="ft-tabs--tab-label"
604
608
  part="tab-label${t.active?" active-tab-label":""}"
605
- variant="${we.body2}">
609
+ variant="${Ce.body2}">
606
610
  ${t.label}
607
611
  </ft-typography>
608
612
  </button>
@@ -616,11 +620,11 @@ class Yi extends To{constructor(t){if(super(t),this.et=Q,t.type!==Ho)throw Error
616
620
  <slot @slotchange=${this.onContentChange}></slot>
617
621
  </div>
618
622
  </div>
619
- `}onContentChange(t){const o=t.composedPath()[0];this.ftTabs=o.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.onTabUpdated),t.addEventListener("updated",this.onTabUpdated)})),this.updateTabs()}update(t){super.update(t),t.has("activeIndex")&&this.dispatchEvent(new Uo),(t.has("ftTabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new Or(this.activeIndex))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.tabsContainer&&this.resizeObserver.observe(this.tabsContainer),this.placeIndicator()}placeIndicator(){var t,o,e,i,r,a,n;if(this.activeTabIndicator){const s=null!==(o=null===(t=this.activeTab)||void 0===t?void 0:t.closest(".ft-tabs--tab-tooltip"))&&void 0!==o?o:this.activeTab;this.activeTabIndicator.style.width=(null!==(e=null==s?void 0:s.clientWidth)&&void 0!==e?e:0)+"px",this.activeTabIndicator.style.left=(null!==(i=null==s?void 0:s.offsetLeft)&&void 0!==i?i:0)+"px",this.contentBefore?this.activeTabIndicator.style.top=(null!==(r=null==s?void 0:s.offsetTop)&&void 0!==r?r:0)+"px":this.activeTabIndicator.style.top=(null!==(a=null==s?void 0:s.offsetTop)&&void 0!==a?a:0)+(null!==(n=null==s?void 0:s.clientHeight)&&void 0!==n?n:0)-this.activeTabIndicator.clientHeight+"px"}}updateTabs(){this.ftTabs.forEach(((t,o)=>{t.active=o==this.activeIndex}))}addTooltipIfNecessary(t,o){return this.dense&&t.label&&t.icon?io`
623
+ `}onContentChange(t){const o=t.composedPath()[0];this.ftTabs=o.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.onTabUpdated),t.addEventListener("updated",this.onTabUpdated)})),this.updateTabs()}update(t){super.update(t),t.has("activeIndex")&&this.dispatchEvent(new Uo),(t.has("ftTabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new vr(this.activeIndex))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.tabsContainer&&this.resizeObserver.observe(this.tabsContainer),this.placeIndicator()}placeIndicator(){var t,o,e,i,r,a,n;if(this.activeTabIndicator){const s=null!==(o=null===(t=this.activeTab)||void 0===t?void 0:t.closest(".ft-tabs--tab-tooltip"))&&void 0!==o?o:this.activeTab;this.activeTabIndicator.style.width=(null!==(e=null==s?void 0:s.clientWidth)&&void 0!==e?e:0)+"px",this.activeTabIndicator.style.left=(null!==(i=null==s?void 0:s.offsetLeft)&&void 0!==i?i:0)+"px",this.contentBefore?this.activeTabIndicator.style.top=(null!==(r=null==s?void 0:s.offsetTop)&&void 0!==r?r:0)+"px":this.activeTabIndicator.style.top=(null!==(a=null==s?void 0:s.offsetTop)&&void 0!==a?a:0)+(null!==(n=null==s?void 0:s.clientHeight)&&void 0!==n?n:0)-this.activeTabIndicator.clientHeight+"px"}}updateTabs(){this.ftTabs.forEach(((t,o)=>{t.active=o==this.activeIndex}))}addTooltipIfNecessary(t,o){return this.dense&&t.label&&t.icon?io`
620
624
  <ft-tooltip class="ft-tabs--tab-tooltip"
621
625
  part="tab-tooltip"
622
626
  text="${t.label}"
623
627
  position="${this.contentBefore?"top":"bottom"}">
624
628
  ${o}
625
629
  </ft-tooltip>
626
- `:o}}vr.elementDefinitions={"ft-tab":Po,"ft-ripple":me,"ft-tooltip":mr,"ft-typography":Gi,"ft-icon":sr},vr.styles=cr,xr([C({type:Boolean})],vr.prototype,"dense",void 0),xr([C({type:Boolean})],vr.prototype,"contentBefore",void 0),xr([C()],vr.prototype,"alignTabs",void 0),xr([R()],vr.prototype,"ftTabs",void 0),xr([U("[role='tablist']")],vr.prototype,"tabsContainer",void 0),xr([U("[aria-selected='true']")],vr.prototype,"activeTab",void 0),xr([U(".ft-tabs--active-tab-indicator")],vr.prototype,"activeTabIndicator",void 0),xr([C({type:Number,reflect:!0})],vr.prototype,"activeIndex",void 0);I("ft-tab")(Po),I("ft-tabs")(vr),t.FtTab=Po,t.FtTabCssVariables={},t.FtTabs=vr,t.FtTabsCssVariables=lr,t.IndexChangeEvent=Or,t.styles=cr}({});
630
+ `:o}}Nr.elementDefinitions={"ft-tab":jo,"ft-ripple":xe,"ft-tooltip":xr,"ft-typography":Yi,"ft-icon":lr},Nr.styles=pr,Or([C({type:Boolean})],Nr.prototype,"dense",void 0),Or([C({type:Boolean})],Nr.prototype,"contentBefore",void 0),Or([C()],Nr.prototype,"alignTabs",void 0),Or([R()],Nr.prototype,"ftTabs",void 0),Or([U("[role='tablist']")],Nr.prototype,"tabsContainer",void 0),Or([U("[aria-selected='true']")],Nr.prototype,"activeTab",void 0),Or([U(".ft-tabs--active-tab-indicator")],Nr.prototype,"activeTabIndicator",void 0),Or([C({type:Number,reflect:!0})],Nr.prototype,"activeIndex",void 0);I("ft-tab")(jo),I("ft-tabs")(Nr),t.FtTab=jo,t.FtTabCssVariables={},t.FtTabs=Nr,t.FtTabsCssVariables=cr,t.IndexChangeEvent=vr,t.styles=pr}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-tabs",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Generic tabs component",
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.1",
23
- "@fluid-topics/ft-ripple": "1.1.1",
24
- "@fluid-topics/ft-tooltip": "1.1.1",
25
- "@fluid-topics/ft-typography": "1.1.1",
26
- "@fluid-topics/ft-wc-utils": "1.1.1",
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": "ceae4aed142c27cbf6034f45bb6e3f562163cc15"
29
+ "gitHead": "53ce99f657872582bca43cbb7ad691b239b22823"
30
30
  }