@fluid-topics/ft-dialog 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/build/ft-dialog.min.js +216 -212
  2. package/package.json +6 -6
@@ -12,43 +12,43 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);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&&(a.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),y(t,c,!0)}const u=this._whenDefinedPromises.get(t);return void 0!==u&&(u.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let i=this._awaitingUpgrade.get(o);i||this._awaitingUpgrade.set(o,i=new Set),e?i.add(t):i.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),r.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.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):n.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},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 n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r),e.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i),e.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else n.call(this,r,i)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),r.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},u=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=u.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const i=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=i.apply(e||this,arguments);return void 0!==t&&s.set(t,this),g.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){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const i=o.call(this,...e);return t.set(i,this),i},e.forEach((o=>{const e=window.ElementInternals.prototype,i=e[o];e[o]=function(...o){const e=t.get(this);if(!0===r.get(e).formAssociated)return i?.call(this,...o);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const o=new Map;t.forEach(((t,e)=>{const i=t.getAttribute("name"),r=o.get(i)||[];this[+e]=t,r.push(t),o.set(i,r)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(Ti){const t=window.customElements.define;window.customElements.define=(o,e,i)=>{if(null!==e)try{t.bind(window.customElements)(o,e,i)}catch(t){console.info(o,e,i,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,i=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);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&&(a.set(r,c),c.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),y(t,c,!0)}const u=this._whenDefinedPromises.get(t);return void 0!==u&&(u.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,arguments),g.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let i=this._awaitingUpgrade.get(o);i||this._awaitingUpgrade.set(o,i=new Set),e?i.add(t):i.delete(t)}},window.HTMLElement=function(){let o=l;if(o)return l=void 0,o;const e=a.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),r.set(o,e),o},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!c(o)){const t=g[g.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):n.set(e,i),e}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},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 n=t.toLowerCase();if(o.has(n)){const t=this.getAttribute(n);i.call(this,n,r),e.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);r.call(this,i),e.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const o=this.getAttribute(r);e.call(this,r,t,o)}else n.call(this,r,i)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),r.set(t,o),l=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},u=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=u.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let g=[document];const b=(t,o,e=void 0)=>{const i=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){g.push(this);const t=i.apply(e||this,arguments);return void 0!==t&&s.set(t,this),g.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){g.push(this),e.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const i=o.call(this,...e);return t.set(i,this),i},e.forEach((o=>{const e=window.ElementInternals.prototype,i=e[o];e[o]=function(...o){const e=t.get(this);if(!0===r.get(e).formAssociated)return i?.call(this,...o);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const o=new Map;t.forEach(((t,e)=>{const i=t.getAttribute("name"),r=o.get(i)||[];this[+e]=t,r.push(t),o.set(i,r)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new i(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),o=[];for(const e of t){const t=r.get(e);t&&!0!==t.formAssociated||o.push(e)}return new n(o)}})}}try{window.customElements.define("custom-element",null)}catch(_i){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)}}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
19
19
  * SPDX-License-Identifier: BSD-3-Clause
20
- */const e=globalThis,i=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),n=new WeakMap;const a=t=>new class{constructor(t,o,e){if(this._$cssResult$=!0,e!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const o=this.t;if(i&&void 0===t){const e=void 0!==o&&1===o.length;e&&(t=n.get(o)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&n.set(o,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,r),s=i?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let o="";for(const e of t.cssRules)o+=e.cssText;return a(o)})(t):t
20
+ */const o=globalThis,e=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),r=new WeakMap;const n=t=>new class{constructor(t,o,e){if(this._$cssResult$=!0,e!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const o=this.t;if(e&&void 0===t){const e=void 0!==o&&1===o.length;e&&(t=r.get(o)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&r.set(o,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,i),a=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let o="";for(const e of t.cssRules)o+=e.cssText;return n(o)})(t):t
21
21
  /**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */,{is:l,defineProperty:c,getOwnPropertyDescriptor:p,getOwnPropertyNames:f,getOwnPropertySymbols:h,getPrototypeOf:d}=Object,y=globalThis,u=y.trustedTypes,g=u?u.emptyScript:"",b=y.reactiveElementPolyfillSupport,m=(t,o)=>t,x={toAttribute(t,o){switch(o){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},O=(t,o)=>!l(t,o),v={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:O};Symbol.metadata??=Symbol("metadata"),y.litPropertyMetadata??=new WeakMap;let N=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=v){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){const e=Symbol(),i=this.getPropertyDescriptor(t,e,o);void 0!==i&&c(this.prototype,t,i)}}static getPropertyDescriptor(t,o,e){const{get:i,set:r}=p(this.prototype,t)??{get(){return this[o]},set(t){this[o]=t}};return{get(){return i?.call(this)},set(o){const n=i?.call(this);r.call(this,o),this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??v}static _$Ei(){if(this.hasOwnProperty(m("elementProperties")))return;const t=d(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(m("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(m("properties"))){const t=this.properties,o=[...f(t),...h(t)];for(const e of o)this.createProperty(e,t[e])}const t=this[Symbol.metadata];if(null!==t){const o=litPropertyMetadata.get(t);if(void 0!==o)for(const[t,e]of o)this.elementProperties.set(t,e)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const e=this._$Eu(t,o);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(s(t))}else void 0!==t&&o.push(s(t));return o}static _$Eu(t,o){const e=o.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,o=this.constructor.elementProperties;for(const e of o.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{if(i)t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of o){const o=document.createElement("style"),r=e.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=i.cssText,t.appendChild(o)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o){const e=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,e);if(void 0!==i&&!0===e.reflect){const r=(void 0!==e.converter?.toAttribute?e.converter:x).toAttribute(o,e.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,o){const e=this.constructor,i=e._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=e.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:x;this._$Em=i,this[i]=r.fromAttribute(o,t.type),this._$Em=null}}requestUpdate(t,o,e,i=!1,r){if(void 0!==t){if(e??=this.constructor.getPropertyOptions(t),!(e.hasChanged??O)(i?r:this[t],o))return;this.C(t,o,e)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,o,e){this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,o]of this._$Ep)this[t]=o;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[o,e]of t)!0!==e.wrapped||this._$AL.has(o)||void 0===this[o]||this.C(o,this[o],e)}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(o)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};N.elementStyles=[],N.shadowRootOptions={mode:"open"},N[m("elementProperties")]=new Map,N[m("finalized")]=new Map,b?.({ReactiveElement:N}),(y.reactiveElementVersions??=[]).push("2.0.2");
25
+ */,{is:s,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:p,getOwnPropertySymbols:f,getPrototypeOf:h}=Object,d=globalThis,y=d.trustedTypes,u=y?y.emptyScript:"",g=d.reactiveElementPolyfillSupport,b=(t,o)=>t,m={toAttribute(t,o){switch(o){case Boolean:t=t?u:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},x=(t,o)=>!s(t,o),O={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x};Symbol.metadata??=Symbol("metadata"),d.litPropertyMetadata??=new WeakMap;let v=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=O){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){const e=Symbol(),i=this.getPropertyDescriptor(t,e,o);void 0!==i&&l(this.prototype,t,i)}}static getPropertyDescriptor(t,o,e){const{get:i,set:r}=c(this.prototype,t)??{get(){return this[o]},set(t){this[o]=t}};return{get(){return i?.call(this)},set(o){const n=i?.call(this);r.call(this,o),this.requestUpdate(t,n,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??O}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=h(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,o=[...p(t),...f(t)];for(const e of o)this.createProperty(e,t[e])}const t=this[Symbol.metadata];if(null!==t){const o=litPropertyMetadata.get(t);if(void 0!==o)for(const[t,e]of o)this.elementProperties.set(t,e)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const e=this._$Eu(t,o);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(a(t))}else void 0!==t&&o.push(a(t));return o}static _$Eu(t,o){const e=o.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,o=this.constructor.elementProperties;for(const e of o.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,i)=>{if(e)t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of i){const i=document.createElement("style"),r=o.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=e.cssText,t.appendChild(i)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o){const e=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,e);if(void 0!==i&&!0===e.reflect){const r=(void 0!==e.converter?.toAttribute?e.converter:m).toAttribute(o,e.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,o){const e=this.constructor,i=e._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=e.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=i,this[i]=r.fromAttribute(o,t.type),this._$Em=null}}requestUpdate(t,o,e,i=!1,r){if(void 0!==t){if(e??=this.constructor.getPropertyOptions(t),!(e.hasChanged??x)(i?r:this[t],o))return;this.C(t,o,e)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,o,e){this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,o]of this._$Ep)this[t]=o;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[o,e]of t)!0!==e.wrapped||this._$AL.has(o)||void 0===this[o]||this.C(o,this[o],e)}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(o)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};v.elementStyles=[],v.shadowRootOptions={mode:"open"},v[b("elementProperties")]=new Map,v[b("finalized")]=new Map,g?.({ReactiveElement:v}),(d.reactiveElementVersions??=[]).push("2.0.2");
26
26
  /**
27
27
  * @license
28
28
  * Copyright 2017 Google LLC
29
29
  * SPDX-License-Identifier: BSD-3-Clause
30
30
  */
31
- const S={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:O},w=(t=S,o,e)=>{const{kind:i,metadata:r}=e;let n=globalThis.litPropertyMetadata.get(r);if(void 0===n&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(e.name,t),"accessor"===i){const{name:i}=e;return{set(e){const r=o.get.call(this);o.set.call(this,e),this.requestUpdate(i,r,t)},init(o){return void 0!==o&&this.C(i,void 0,t),o}}}if("setter"===i){const{name:i}=e;return function(e){const r=this[i];o.call(this,e),this.requestUpdate(i,r,t)}}throw Error("Unsupported decorator location: "+i)};function C(t){return(o,e)=>"object"==typeof e?w(t,o,e):((t,o,e)=>{const i=o.hasOwnProperty(e);return o.constructor.createProperty(e,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(o,e):void 0})(t,o,e)
31
+ const N={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x},S=(t=N,o,e)=>{const{kind:i,metadata:r}=e;let n=globalThis.litPropertyMetadata.get(r);if(void 0===n&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(e.name,t),"accessor"===i){const{name:i}=e;return{set(e){const r=o.get.call(this);o.set.call(this,e),this.requestUpdate(i,r,t)},init(o){return void 0!==o&&this.C(i,void 0,t),o}}}if("setter"===i){const{name:i}=e;return function(e){const r=this[i];o.call(this,e),this.requestUpdate(i,r,t)}}throw Error("Unsupported decorator location: "+i)};function w(t){return(o,e)=>"object"==typeof e?S(t,o,e):((t,o,e)=>{const i=o.hasOwnProperty(e);return o.constructor.createProperty(e,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(o,e):void 0})(t,o,e)
32
32
  /**
33
33
  * @license
34
34
  * Copyright 2017 Google LLC
35
35
  * SPDX-License-Identifier: BSD-3-Clause
36
- */}function $(t){return C({...t,state:!0,attribute:!1})}
36
+ */}function C(t){return w({...t,state:!0,attribute:!1})}
37
37
  /**
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */const E=(t,o,e)=>(e.configurable=!0,e.enumerable=!0,e)
41
+ */const $=(t,o,e)=>(e.configurable=!0,e.enumerable=!0,e)
42
42
  /**
43
43
  * @license
44
44
  * Copyright 2017 Google LLC
45
45
  * SPDX-License-Identifier: BSD-3-Clause
46
- */;function R(t,o){return(e,i,r)=>{const n=o=>o.renderRoot?.querySelector(t)??null;if(o){const{get:t,set:o}="object"==typeof i?e:r??(()=>{const t=Symbol();return{get(){return this[t]},set(o){this[t]=o}}})();return E(0,0,{get(){let e=t.call(this);return void 0===e&&(e=n(this),(null!==e||this.hasUpdated)&&o.call(this,e)),e}})}return E(0,0,{get(){return n(this)}})}}
46
+ */;function E(t,o){return(e,i,r)=>{const n=o=>o.renderRoot?.querySelector(t)??null;if(o){const{get:t,set:o}="object"==typeof i?e:r??(()=>{const t=Symbol();return{get(){return this[t]},set(o){this[t]=o}}})();return $(0,0,{get(){let e=t.call(this);return void 0===e&&(e=n(this),(null!==e||this.hasUpdated)&&o.call(this,e)),e}})}return $(0,0,{get(){return n(this)}})}}
47
47
  /**
48
48
  * @license
49
49
  * Copyright 2021 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
- */function U(t,o){try{return function(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var e,i,r;if(Array.isArray(t)){if((e=t.length)!=o.length)return!1;for(i=e;0!=i--;)if(!U(t[i],o[i]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(i of t.entries())if(!o.has(i[0]))return!1;for(i of t.entries())if(!U(i[1],o.get(i[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(i of t.entries())if(!o.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if((e=(r=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(i=e;0!=i--;)if(!Object.prototype.hasOwnProperty.call(o,r[i]))return!1;for(i=e;0!=i--;){var n=r[i];if(!U(t[n],o[n]))return!1}return!0}return t!=t&&o!=o}(t,o)}catch(t){return!1}}const k=t=>o=>{window.customElements.get(t)||window.customElements.define(t,o)};
51
+ */class R{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}}function U(t,o){try{return function(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var e,i,r;if(Array.isArray(t)){if((e=t.length)!=o.length)return!1;for(i=e;0!=i--;)if(!U(t[i],o[i]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(i of t.entries())if(!o.has(i[0]))return!1;for(i of t.entries())if(!U(i[1],o.get(i[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(i of t.entries())if(!o.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if((e=(r=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(i=e;0!=i--;)if(!Object.prototype.hasOwnProperty.call(o,r[i]))return!1;for(i=e;0!=i--;){var n=r[i];if(!U(t[n],o[n]))return!1}return!0}return t!=t&&o!=o}(t,o)}catch(t){return!1}}const k=t=>o=>{window.customElements.get(t)||window.customElements.define(t,o)};
52
52
  /**
53
53
  * @license
54
54
  * Copyright 2017 Google LLC
@@ -82,7 +82,11 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
82
82
  * @license
83
83
  * Copyright 2019 Google LLC
84
84
  * SPDX-License-Identifier: BSD-3-Clause
85
- */class Ro extends go{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)=>{Eo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=$o.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Uo,ko=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Io=Symbol("constructorPrototype"),Wo=Symbol("constructorName"),Lo=Symbol("exportpartsDebouncer");class Ko extends Ro{constructor(){super(),this[Uo]=new o(5),this[Wo]=this.constructor.name,this[Io]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Wo]&&Object.setPrototypeOf(this,this[Io])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Lo].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],e=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>l.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}Uo=Lo,ko([C()],Ko.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)=>!U(t,o),...null!=o?o:{}})}([])],Ko.prototype,"exportpartsPrefixes",void 0),ko([C()],Ko.prototype,"customStylesheet",void 0);const zo=bt`
85
+ */class Ro extends go{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)=>{Eo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),i=$o.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Uo,ko=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};const Io=Symbol("constructorPrototype"),Wo=Symbol("constructorName"),Lo=Symbol("exportpartsDebouncer");class Ko extends Ro{constructor(){super(),this[Uo]=new R(5),this[Wo]=this.constructor.name,this[Io]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Wo]&&Object.setPrototypeOf(this,this[Io])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Lo].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,i,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],e=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const p=[...c.values()].flatMap((t=>l.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}Uo=Lo,ko([w()],Ko.prototype,"exportpartsPrefix",void 0),ko([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return w({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!U(t,o),...null!=o?o:{}})}([])],Ko.prototype,"exportpartsPrefixes",void 0),ko([w()],Ko.prototype,"customStylesheet",void 0);const zo=xo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");bt`
86
+ .highlight-html-match {
87
+ background: ${zo};
88
+ }
89
+ `;const Zo=bt`
86
90
  .ft-no-text-select {
87
91
  -webkit-touch-callout: none;
88
92
  -webkit-user-select: none;
@@ -103,7 +107,7 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
103
107
  -webkit-hyphens: auto;
104
108
  hyphens: auto
105
109
  }
106
- `;const Zo=bt`
110
+ `;const Fo=bt`
107
111
  .ft-safari-ellipsis-fix {
108
112
  margin-right: 0;
109
113
 
@@ -114,107 +118,107 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
114
118
  display: inline-block;
115
119
  width: 0;
116
120
  }
117
- `;window.ftReduxStores||(window.ftReduxStores={});const Fo=Symbol("elementInternals");var Bo,Do,Ao;const Mo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ao=null===(Do=null===(Bo=window.safari)||void 0===Bo?void 0:Bo.pushNotification)||void 0===Do?void 0:Do.toString())&&void 0!==Ao?Ao:""),Po=Symbol.for(""),Ho=t=>{if(t?.r===Po)return t?._$litStatic$},jo=t=>({_$litStatic$:t,r:Po}),To=new Map,_o=(t=>(o,...e)=>{const i=e.length;let r,n;const a=[],s=[];let l,c=0,p=!1;for(;c<i;){for(l=o[c];c<i&&void 0!==(n=e[c],r=Ho(n));)l+=r+o[++c],p=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(o[i]),p){const t=a.join("$$lit$$");void 0===(o=To.get(t))&&(a.raw=a,To.set(t,o=a)),e=s}return t(o,...e)})(J);
121
+ `;window.ftReduxStores||(window.ftReduxStores={});const Bo=Symbol("elementInternals");var Do,Ao,Mo;const Po=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Mo=null===(Ao=null===(Do=window.safari)||void 0===Do?void 0:Do.pushNotification)||void 0===Ao?void 0:Ao.toString())&&void 0!==Mo?Mo:""),Ho=Symbol.for(""),jo=t=>{if(t?.r===Ho)return t?._$litStatic$},To=t=>({_$litStatic$:t,r:Ho}),_o=new Map,Go=(t=>(o,...e)=>{const i=e.length;let r,n;const a=[],s=[];let l,c=0,p=!1;for(;c<i;){for(l=o[c];c<i&&void 0!==(n=e[c],r=jo(n));)l+=r+o[++c],p=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(o[i]),p){const t=a.join("$$lit$$");void 0===(o=_o.get(t))&&(a.raw=a,_o.set(t,o=a)),e=s}return t(o,...e)})(J);
118
122
  /**
119
123
  * @license
120
124
  * Copyright 2020 Google LLC
121
125
  * SPDX-License-Identifier: BSD-3-Clause
122
- */var Go;!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"}(Go||(Go={}));const Yo=xo.extend("--ft-typography-font-family","",Co.titleFont),Vo=xo.extend("--ft-typography-font-family","",Co.contentFont),Jo={fontFamily:Vo,fontSize:xo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:xo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:xo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:xo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:xo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},qo=xo.extend("--ft-typography-title-font-family","",Yo),Xo=xo.extend("--ft-typography-title-font-size","",Jo.fontSize,"20px"),Qo=xo.extend("--ft-typography-title-font-weight","",Jo.fontWeight,"normal"),te=xo.extend("--ft-typography-title-letter-spacing","",Jo.letterSpacing,"0.15px"),oe=xo.extend("--ft-typography-title-line-height","",Jo.lineHeight,"1.2"),ee=xo.extend("--ft-typography-title-text-transform","",Jo.textTransform,"inherit"),ie=xo.extend("--ft-typography-title-dense-font-family","",Yo),re=xo.extend("--ft-typography-title-dense-font-size","",Jo.fontSize,"14px"),ne=xo.extend("--ft-typography-title-dense-font-weight","",Jo.fontWeight,"normal"),ae=xo.extend("--ft-typography-title-dense-letter-spacing","",Jo.letterSpacing,"0.105px"),se=xo.extend("--ft-typography-title-dense-line-height","",Jo.lineHeight,"1.7"),le=xo.extend("--ft-typography-title-dense-text-transform","",Jo.textTransform,"inherit"),ce=xo.extend("--ft-typography-subtitle1-font-family","",Vo),pe=xo.extend("--ft-typography-subtitle1-font-size","",Jo.fontSize,"16px"),fe=xo.extend("--ft-typography-subtitle1-font-weight","",Jo.fontWeight,"600"),he=xo.extend("--ft-typography-subtitle1-letter-spacing","",Jo.letterSpacing,"0.144px"),de=xo.extend("--ft-typography-subtitle1-line-height","",Jo.lineHeight,"1.5"),ye=xo.extend("--ft-typography-subtitle1-text-transform","",Jo.textTransform,"inherit"),ue=xo.extend("--ft-typography-subtitle2-font-family","",Vo),ge=xo.extend("--ft-typography-subtitle2-font-size","",Jo.fontSize,"14px"),be=xo.extend("--ft-typography-subtitle2-font-weight","",Jo.fontWeight,"normal"),me=xo.extend("--ft-typography-subtitle2-letter-spacing","",Jo.letterSpacing,"0.098px"),xe=xo.extend("--ft-typography-subtitle2-line-height","",Jo.lineHeight,"1.7"),Oe=xo.extend("--ft-typography-subtitle2-text-transform","",Jo.textTransform,"inherit"),ve=xo.extend("--ft-typography-body1-font-family","",Vo),Ne=xo.extend("--ft-typography-body1-font-size","",Jo.fontSize,"16px"),Se=xo.extend("--ft-typography-body1-font-weight","",Jo.fontWeight,"normal"),we=xo.extend("--ft-typography-body1-letter-spacing","",Jo.letterSpacing,"0.496px"),Ce=xo.extend("--ft-typography-body1-line-height","",Jo.lineHeight,"1.5"),$e=xo.extend("--ft-typography-body1-text-transform","",Jo.textTransform,"inherit"),Ee=xo.extend("--ft-typography-body2-font-family","",Vo),Re=xo.extend("--ft-typography-body2-font-size","",Jo.fontSize,"14px"),Ue=xo.extend("--ft-typography-body2-font-weight","",Jo.fontWeight,"normal"),ke=xo.extend("--ft-typography-body2-letter-spacing","",Jo.letterSpacing,"0.252px"),Ie=xo.extend("--ft-typography-body2-line-height","",Jo.lineHeight,"1.4"),We=xo.extend("--ft-typography-body2-text-transform","",Jo.textTransform,"inherit"),Le=xo.extend("--ft-typography-caption-font-family","",Vo),Ke=xo.extend("--ft-typography-caption-font-size","",Jo.fontSize,"12px"),ze=xo.extend("--ft-typography-caption-font-weight","",Jo.fontWeight,"normal"),Ze=xo.extend("--ft-typography-caption-letter-spacing","",Jo.letterSpacing,"0.396px"),Fe=xo.extend("--ft-typography-caption-line-height","",Jo.lineHeight,"1.33"),Be=xo.extend("--ft-typography-caption-text-transform","",Jo.textTransform,"inherit"),De=xo.extend("--ft-typography-breadcrumb-font-family","",Vo),Ae=xo.extend("--ft-typography-breadcrumb-font-size","",Jo.fontSize,"10px"),Me=xo.extend("--ft-typography-breadcrumb-font-weight","",Jo.fontWeight,"normal"),Pe=xo.extend("--ft-typography-breadcrumb-letter-spacing","",Jo.letterSpacing,"0.33px"),He=xo.extend("--ft-typography-breadcrumb-line-height","",Jo.lineHeight,"1.6"),je=xo.extend("--ft-typography-breadcrumb-text-transform","",Jo.textTransform,"inherit"),Te=xo.extend("--ft-typography-overline-font-family","",Vo),_e=xo.extend("--ft-typography-overline-font-size","",Jo.fontSize,"10px"),Ge=xo.extend("--ft-typography-overline-font-weight","",Jo.fontWeight,"normal"),Ye=xo.extend("--ft-typography-overline-letter-spacing","",Jo.letterSpacing,"1.5px"),Ve=xo.extend("--ft-typography-overline-line-height","",Jo.lineHeight,"1.6"),Je=xo.extend("--ft-typography-overline-text-transform","",Jo.textTransform,"uppercase"),qe={fontFamily:xo.extend("--ft-typography-button-font-family","",Vo),fontSize:xo.extend("--ft-typography-button-font-size","",Jo.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-button-font-weight","",Jo.fontWeight,"600"),letterSpacing:xo.extend("--ft-typography-button-letter-spacing","",Jo.letterSpacing,"1.246px"),lineHeight:xo.extend("--ft-typography-button-line-height","",Jo.lineHeight,"1.15"),textTransform:xo.extend("--ft-typography-button-text-transform","",Jo.textTransform,"uppercase")},Xe=bt`
126
+ */var Yo;!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"}(Yo||(Yo={}));const Vo=xo.extend("--ft-typography-font-family","",Co.titleFont),Jo=xo.extend("--ft-typography-font-family","",Co.contentFont),qo={fontFamily:Jo,fontSize:xo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:xo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:xo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:xo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:xo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Xo=xo.extend("--ft-typography-title-font-family","",Vo),Qo=xo.extend("--ft-typography-title-font-size","",qo.fontSize,"20px"),te=xo.extend("--ft-typography-title-font-weight","",qo.fontWeight,"normal"),oe=xo.extend("--ft-typography-title-letter-spacing","",qo.letterSpacing,"0.15px"),ee=xo.extend("--ft-typography-title-line-height","",qo.lineHeight,"1.2"),ie=xo.extend("--ft-typography-title-text-transform","",qo.textTransform,"inherit"),re=xo.extend("--ft-typography-title-dense-font-family","",Vo),ne=xo.extend("--ft-typography-title-dense-font-size","",qo.fontSize,"14px"),ae=xo.extend("--ft-typography-title-dense-font-weight","",qo.fontWeight,"normal"),se=xo.extend("--ft-typography-title-dense-letter-spacing","",qo.letterSpacing,"0.105px"),le=xo.extend("--ft-typography-title-dense-line-height","",qo.lineHeight,"1.7"),ce=xo.extend("--ft-typography-title-dense-text-transform","",qo.textTransform,"inherit"),pe=xo.extend("--ft-typography-subtitle1-font-family","",Jo),fe=xo.extend("--ft-typography-subtitle1-font-size","",qo.fontSize,"16px"),he=xo.extend("--ft-typography-subtitle1-font-weight","",qo.fontWeight,"600"),de=xo.extend("--ft-typography-subtitle1-letter-spacing","",qo.letterSpacing,"0.144px"),ye=xo.extend("--ft-typography-subtitle1-line-height","",qo.lineHeight,"1.5"),ue=xo.extend("--ft-typography-subtitle1-text-transform","",qo.textTransform,"inherit"),ge=xo.extend("--ft-typography-subtitle2-font-family","",Jo),be=xo.extend("--ft-typography-subtitle2-font-size","",qo.fontSize,"14px"),me=xo.extend("--ft-typography-subtitle2-font-weight","",qo.fontWeight,"normal"),xe=xo.extend("--ft-typography-subtitle2-letter-spacing","",qo.letterSpacing,"0.098px"),Oe=xo.extend("--ft-typography-subtitle2-line-height","",qo.lineHeight,"1.7"),ve=xo.extend("--ft-typography-subtitle2-text-transform","",qo.textTransform,"inherit"),Ne=xo.extend("--ft-typography-body1-font-family","",Jo),Se=xo.extend("--ft-typography-body1-font-size","",qo.fontSize,"16px"),we=xo.extend("--ft-typography-body1-font-weight","",qo.fontWeight,"normal"),Ce=xo.extend("--ft-typography-body1-letter-spacing","",qo.letterSpacing,"0.496px"),$e=xo.extend("--ft-typography-body1-line-height","",qo.lineHeight,"1.5"),Ee=xo.extend("--ft-typography-body1-text-transform","",qo.textTransform,"inherit"),Re=xo.extend("--ft-typography-body2-font-family","",Jo),Ue=xo.extend("--ft-typography-body2-font-size","",qo.fontSize,"14px"),ke=xo.extend("--ft-typography-body2-font-weight","",qo.fontWeight,"normal"),Ie=xo.extend("--ft-typography-body2-letter-spacing","",qo.letterSpacing,"0.252px"),We=xo.extend("--ft-typography-body2-line-height","",qo.lineHeight,"1.4"),Le=xo.extend("--ft-typography-body2-text-transform","",qo.textTransform,"inherit"),Ke=xo.extend("--ft-typography-caption-font-family","",Jo),ze=xo.extend("--ft-typography-caption-font-size","",qo.fontSize,"12px"),Ze=xo.extend("--ft-typography-caption-font-weight","",qo.fontWeight,"normal"),Fe=xo.extend("--ft-typography-caption-letter-spacing","",qo.letterSpacing,"0.396px"),Be=xo.extend("--ft-typography-caption-line-height","",qo.lineHeight,"1.33"),De=xo.extend("--ft-typography-caption-text-transform","",qo.textTransform,"inherit"),Ae=xo.extend("--ft-typography-breadcrumb-font-family","",Jo),Me=xo.extend("--ft-typography-breadcrumb-font-size","",qo.fontSize,"10px"),Pe=xo.extend("--ft-typography-breadcrumb-font-weight","",qo.fontWeight,"normal"),He=xo.extend("--ft-typography-breadcrumb-letter-spacing","",qo.letterSpacing,"0.33px"),je=xo.extend("--ft-typography-breadcrumb-line-height","",qo.lineHeight,"1.6"),Te=xo.extend("--ft-typography-breadcrumb-text-transform","",qo.textTransform,"inherit"),_e=xo.extend("--ft-typography-overline-font-family","",Jo),Ge=xo.extend("--ft-typography-overline-font-size","",qo.fontSize,"10px"),Ye=xo.extend("--ft-typography-overline-font-weight","",qo.fontWeight,"normal"),Ve=xo.extend("--ft-typography-overline-letter-spacing","",qo.letterSpacing,"1.5px"),Je=xo.extend("--ft-typography-overline-line-height","",qo.lineHeight,"1.6"),qe=xo.extend("--ft-typography-overline-text-transform","",qo.textTransform,"uppercase"),Xe={fontFamily:xo.extend("--ft-typography-button-font-family","",Jo),fontSize:xo.extend("--ft-typography-button-font-size","",qo.fontSize,"14px"),fontWeight:xo.extend("--ft-typography-button-font-weight","",qo.fontWeight,"600"),letterSpacing:xo.extend("--ft-typography-button-letter-spacing","",qo.letterSpacing,"1.246px"),lineHeight:xo.extend("--ft-typography-button-line-height","",qo.lineHeight,"1.15"),textTransform:xo.extend("--ft-typography-button-text-transform","",qo.textTransform,"uppercase")},Qe=bt`
123
127
  .ft-typography--title {
124
- font-family: ${qo};
125
- font-size: ${Xo};
126
- font-weight: ${Qo};
127
- letter-spacing: ${te};
128
- line-height: ${oe};
129
- text-transform: ${ee};
130
- }
131
- `,Qe=bt`
132
- .ft-typography--title-dense {
133
- font-family: ${ie};
134
- font-size: ${re};
135
- font-weight: ${ne};
136
- letter-spacing: ${ae};
137
- line-height: ${se};
138
- text-transform: ${le};
128
+ font-family: ${Xo};
129
+ font-size: ${Qo};
130
+ font-weight: ${te};
131
+ letter-spacing: ${oe};
132
+ line-height: ${ee};
133
+ text-transform: ${ie};
139
134
  }
140
135
  `,ti=bt`
141
- .ft-typography--subtitle1 {
142
- font-family: ${ce};
143
- font-size: ${pe};
144
- font-weight: ${fe};
145
- letter-spacing: ${he};
146
- line-height: ${de};
147
- text-transform: ${ye};
136
+ .ft-typography--title-dense {
137
+ font-family: ${re};
138
+ font-size: ${ne};
139
+ font-weight: ${ae};
140
+ letter-spacing: ${se};
141
+ line-height: ${le};
142
+ text-transform: ${ce};
148
143
  }
149
144
  `,oi=bt`
150
- .ft-typography--subtitle2 {
151
- font-family: ${ue};
152
- font-size: ${ge};
153
- font-weight: ${be};
154
- letter-spacing: ${me};
155
- line-height: ${xe};
156
- text-transform: ${Oe};
145
+ .ft-typography--subtitle1 {
146
+ font-family: ${pe};
147
+ font-size: ${fe};
148
+ font-weight: ${he};
149
+ letter-spacing: ${de};
150
+ line-height: ${ye};
151
+ text-transform: ${ue};
157
152
  }
158
-
159
153
  `,ei=bt`
160
- .ft-typography--body1 {
161
- font-family: ${ve};
162
- font-size: ${Ne};
163
- font-weight: ${Se};
164
- letter-spacing: ${we};
165
- line-height: ${Ce};
166
- text-transform: ${$e};
154
+ .ft-typography--subtitle2 {
155
+ font-family: ${ge};
156
+ font-size: ${be};
157
+ font-weight: ${me};
158
+ letter-spacing: ${xe};
159
+ line-height: ${Oe};
160
+ text-transform: ${ve};
167
161
  }
162
+
168
163
  `,ii=bt`
169
- .ft-typography--body2 {
170
- font-family: ${Ee};
171
- font-size: ${Re};
172
- font-weight: ${Ue};
173
- letter-spacing: ${ke};
174
- line-height: ${Ie};
175
- text-transform: ${We};
164
+ .ft-typography--body1 {
165
+ font-family: ${Ne};
166
+ font-size: ${Se};
167
+ font-weight: ${we};
168
+ letter-spacing: ${Ce};
169
+ line-height: ${$e};
170
+ text-transform: ${Ee};
176
171
  }
177
172
  `,ri=bt`
178
- .ft-typography--caption {
179
- font-family: ${Le};
180
- font-size: ${Ke};
181
- font-weight: ${ze};
182
- letter-spacing: ${Ze};
183
- line-height: ${Fe};
184
- text-transform: ${Be};
173
+ .ft-typography--body2 {
174
+ font-family: ${Re};
175
+ font-size: ${Ue};
176
+ font-weight: ${ke};
177
+ letter-spacing: ${Ie};
178
+ line-height: ${We};
179
+ text-transform: ${Le};
185
180
  }
186
181
  `,ni=bt`
187
- .ft-typography--breadcrumb {
188
- font-family: ${De};
189
- font-size: ${Ae};
190
- font-weight: ${Me};
191
- letter-spacing: ${Pe};
192
- line-height: ${He};
193
- text-transform: ${je};
182
+ .ft-typography--caption {
183
+ font-family: ${Ke};
184
+ font-size: ${ze};
185
+ font-weight: ${Ze};
186
+ letter-spacing: ${Fe};
187
+ line-height: ${Be};
188
+ text-transform: ${De};
194
189
  }
195
190
  `,ai=bt`
196
- .ft-typography--overline {
197
- font-family: ${Te};
198
- font-size: ${_e};
199
- font-weight: ${Ge};
200
- letter-spacing: ${Ye};
201
- line-height: ${Ve};
202
- text-transform: ${Je};
191
+ .ft-typography--breadcrumb {
192
+ font-family: ${Ae};
193
+ font-size: ${Me};
194
+ font-weight: ${Pe};
195
+ letter-spacing: ${He};
196
+ line-height: ${je};
197
+ text-transform: ${Te};
203
198
  }
204
199
  `,si=bt`
205
- .ft-typography--button {
206
- font-family: ${qe.fontFamily};
207
- font-size: ${qe.fontSize};
208
- font-weight: ${qe.fontWeight};
209
- letter-spacing: ${qe.letterSpacing};
210
- line-height: ${qe.lineHeight};
211
- text-transform: ${qe.textTransform};
200
+ .ft-typography--overline {
201
+ font-family: ${_e};
202
+ font-size: ${Ge};
203
+ font-weight: ${Ye};
204
+ letter-spacing: ${Ve};
205
+ line-height: ${Je};
206
+ text-transform: ${qe};
212
207
  }
213
208
  `,li=bt`
209
+ .ft-typography--button {
210
+ font-family: ${Xe.fontFamily};
211
+ font-size: ${Xe.fontSize};
212
+ font-weight: ${Xe.fontWeight};
213
+ letter-spacing: ${Xe.letterSpacing};
214
+ line-height: ${Xe.lineHeight};
215
+ text-transform: ${Xe.textTransform};
216
+ }
217
+ `,ci=bt`
214
218
  .ft-typography {
215
219
  vertical-align: inherit;
216
220
  }
217
- `,ci=[Object.keys(No).map((t=>function(t){const o=No[t];return bt`
221
+ `,pi=[Object.keys(No).map((t=>function(t){const o=No[t];return bt`
218
222
  .ft-typography--${gt(t)} {
219
223
  font-family: ${o.fontFamily};
220
224
  font-size: ${o.fontSize};
@@ -223,25 +227,25 @@ class go extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
223
227
  line-height: ${o.lineHeight};
224
228
  text-transform: ${o.textCase};
225
229
  }
226
- `}(t)))];var pi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class fi extends Ko{constructor(){super(...arguments),this.variant=Go.body1}render(){return this.element?_o`
227
- <${jo(this.element)}
230
+ `}(t)))];var fi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class hi extends Ko{constructor(){super(...arguments),this.variant=Yo.body1}render(){return this.element?Go`
231
+ <${To(this.element)}
228
232
  class="ft-typography ft-typography--${this.variant}">
229
233
  <slot></slot>
230
- </${jo(this.element)}>
231
- `:_o`
234
+ </${To(this.element)}>
235
+ `:Go`
232
236
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
233
- `}}fi.styles=[Xe,Qe,ti,oi,ei,ii,ri,ni,ai,si,li,...ci],pi([C()],fi.prototype,"element",void 0),pi([C()],fi.prototype,"variant",void 0),k("ft-typography")(fi);
237
+ `}}hi.styles=[Qe,ti,oi,ei,ii,ri,ni,ai,si,li,ci,...pi],fi([w()],hi.prototype,"element",void 0),fi([w()],hi.prototype,"variant",void 0),k("ft-typography")(hi);
234
238
  /**
235
239
  * @license
236
240
  * Copyright 2017 Google LLC
237
241
  * SPDX-License-Identifier: BSD-3-Clause
238
242
  */
239
- const hi=1,di=2,yi=t=>(...o)=>({_$litDirective$:t,values:o});class ui{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)}}
243
+ const di=1,yi=2,ui=t=>(...o)=>({_$litDirective$:t,values:o});class gi{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)}}
240
244
  /**
241
245
  * @license
242
246
  * Copyright 2017 Google LLC
243
247
  * SPDX-License-Identifier: BSD-3-Clause
244
- */let gi=class extends ui{constructor(t){if(super(t),this.et=X,t.type!==di)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===X||null==t)return this.vt=void 0,this.et=t;if(t===q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}};gi.directiveName="unsafeHTML",gi.resultType=1;const bi=yi(gi);var mi,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;"}(mi||(mi={})),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 Oi={size:xo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:xo.extend("--ft-icon-fluid-topics-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:xo.extend("--ft-icon-file-format-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:xo.extend("--ft-icon-material-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:xo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},vi=bt`
248
+ */let bi=class extends gi{constructor(t){if(super(t),this.et=X,t.type!==yi)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===X||null==t)return this.vt=void 0,this.et=t;if(t===q)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const o=[t];return o.raw=o,this.vt={_$litType$:this.constructor.resultType,strings:o,values:[]}}};bi.directiveName="unsafeHTML",bi.resultType=1;const mi=ui(bi);var xi,Oi;!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;"}(xi||(xi={})),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;"}(Oi||(Oi={})),new Map([...["abw"].map((t=>[t,Oi.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,Oi.AUDIO])),...["avi"].map((t=>[t,Oi.AVI])),...["chm","xhs"].map((t=>[t,Oi.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,Oi.CODE])),...["csv"].map((t=>[t,Oi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Oi.DITA])),...["epub"].map((t=>[t,Oi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Oi.EXCEL])),...["flac"].map((t=>[t,Oi.FLAC])),...["gif"].map((t=>[t,Oi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Oi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Oi.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,Oi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Oi.JPEG])),...["json"].map((t=>[t,Oi.JSON])),...["m4a","m4p"].map((t=>[t,Oi.M4A])),...["mov","qt"].map((t=>[t,Oi.MOV])),...["mp3"].map((t=>[t,Oi.MP3])),...["mp4","m4v"].map((t=>[t,Oi.MP4])),...["ogg","oga"].map((t=>[t,Oi.OGG])),...["pdf","ps"].map((t=>[t,Oi.PDF])),...["png"].map((t=>[t,Oi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Oi.POWERPOINT])),...["rar"].map((t=>[t,Oi.RAR])),...["stp"].map((t=>[t,Oi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Oi.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,Oi.VIDEO])),...["wav"].map((t=>[t,Oi.WAV])),...["wma"].map((t=>[t,Oi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Oi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Oi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Oi.YAML])),...["zip"].map((t=>[t,Oi.ZIP]))]);const vi={size:xo.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:xo.extend("--ft-icon-fluid-topics-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:xo.extend("--ft-icon-file-format-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:xo.extend("--ft-icon-material-font-family","",xo.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:xo.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ni=bt`
245
249
  :host, i.ft-icon {
246
250
  display: inline-flex;
247
251
  align-items: center;
@@ -250,14 +254,14 @@ const hi=1,di=2,yi=t=>(...o)=>({_$litDirective$:t,values:o});class ui{constructo
250
254
  }
251
255
 
252
256
  :host {
253
- width: ${Oi.size};
254
- height: ${Oi.size};
257
+ width: ${vi.size};
258
+ height: ${vi.size};
255
259
  }
256
260
 
257
261
  i.ft-icon {
258
262
  width: 100%;
259
263
  height: 100%;
260
- font-size: ${Oi.size};
264
+ font-size: ${vi.size};
261
265
  line-height: 1;
262
266
  font-weight: normal;
263
267
  text-transform: none;
@@ -268,33 +272,33 @@ const hi=1,di=2,yi=t=>(...o)=>({_$litDirective$:t,values:o});class ui{constructo
268
272
  text-rendering: auto;
269
273
  -webkit-font-smoothing: antialiased;
270
274
  -moz-osx-font-smoothing: grayscale;
271
- vertical-align: ${Oi.verticalAlign};
275
+ vertical-align: ${vi.verticalAlign};
272
276
  }
273
277
 
274
278
  i.ft-icon.ft-icon--fluid-topics {
275
- font-family: ${Oi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
279
+ font-family: ${vi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
276
280
 
277
281
  /* Ugly fix because font is broken */
278
- font-size: calc(0.75 * ${Oi.size});
279
- line-height: ${Oi.size};
282
+ font-size: calc(0.75 * ${vi.size});
283
+ line-height: ${vi.size};
280
284
  position: relative;
281
285
  top: -4%;
282
286
  justify-content: center;
283
287
  }
284
288
 
285
289
  .ft-icon--file-format {
286
- font-family: ${Oi.fileFormatFontFamily}, ft-mime, sans-serif;
290
+ font-family: ${vi.fileFormatFontFamily}, ft-mime, sans-serif;
287
291
  }
288
292
 
289
293
  .ft-icon--material {
290
- font-family: ${Oi.materialFontFamily}, "Material Icons", sans-serif;
294
+ font-family: ${vi.materialFontFamily}, "Material Icons", sans-serif;
291
295
  }
292
- `;var Ni;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ni||(Ni={}));var Si=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class wi extends Ko{constructor(){super(...arguments),this.resolvedIcon=oo}render(){const t=this.variant&&Object.values(Ni).includes(this.variant)?this.variant:Ni.fluid_topics,o=t!==Ni.material||!!this.value;return Qt`
296
+ `;var Si;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Si||(Si={}));var wi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ci extends Ko{constructor(){super(...arguments),this.resolvedIcon=oo}render(){const t=this.variant&&Object.values(Si).includes(this.variant)?this.variant:Si.fluid_topics,o=t!==Si.material||!!this.value;return Qt`
293
297
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
294
- ${bi(this.resolvedIcon)}
298
+ ${mi(this.resolvedIcon)}
295
299
  <slot ?hidden=${o}></slot>
296
300
  </i>
297
- `}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 Ni.file_format:this.resolvedIcon=null!==(t=xi[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case Ni.material:this.resolvedIcon=this.value||oo;break;default:this.resolvedIcon=null!==(o=mi[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}wi.elementDefinitions={},wi.styles=vi,Si([C()],wi.prototype,"variant",void 0),Si([C()],wi.prototype,"value",void 0),Si([$()],wi.prototype,"resolvedIcon",void 0),Si([R("slot")],wi.prototype,"slottedContent",void 0),k("ft-icon")(wi);const Ci=xo.extend("--ft-ripple-color","",Co.colorContent),$i={color:Ci,backgroundColor:xo.extend("--ft-ripple-background-color","",Ci),opacityContentOnSurfacePressed:xo.external(Co.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xo.external(Co.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xo.external(Co.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xo.external(Co.opacityContentOnSurfaceSelected,"Design system"),borderRadius:xo.create("--ft-ripple-border-radius","","SIZE","0px")},Ei=xo.extend("--ft-ripple-color","",Co.colorPrimary),Ri=Ei,Ui=xo.extend("--ft-ripple-background-color","",Ei),ki=xo.extend("--ft-ripple-color","",Co.colorSecondary),Ii=ki,Wi=xo.extend("--ft-ripple-background-color","",ki),Li=bt`
301
+ `}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 Si.file_format:this.resolvedIcon=null!==(t=Oi[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case Si.material:this.resolvedIcon=this.value||oo;break;default:this.resolvedIcon=null!==(o=xi[e.replace("-","_").toUpperCase()])&&void 0!==o?o:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ci.elementDefinitions={},Ci.styles=Ni,wi([w()],Ci.prototype,"variant",void 0),wi([w()],Ci.prototype,"value",void 0),wi([C()],Ci.prototype,"resolvedIcon",void 0),wi([E("slot")],Ci.prototype,"slottedContent",void 0),k("ft-icon")(Ci);const $i=xo.extend("--ft-ripple-color","",Co.colorContent),Ei={color:$i,backgroundColor:xo.extend("--ft-ripple-background-color","",$i),opacityContentOnSurfacePressed:xo.external(Co.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xo.external(Co.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xo.external(Co.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xo.external(Co.opacityContentOnSurfaceSelected,"Design system"),borderRadius:xo.create("--ft-ripple-border-radius","","SIZE","0px")},Ri=xo.extend("--ft-ripple-color","",Co.colorPrimary),Ui=Ri,ki=xo.extend("--ft-ripple-background-color","",Ri),Ii=xo.extend("--ft-ripple-color","",Co.colorSecondary),Wi=Ii,Li=xo.extend("--ft-ripple-background-color","",Ii),Ki=bt`
298
302
  :host {
299
303
  display: contents;
300
304
  }
@@ -307,7 +311,7 @@ const hi=1,di=2,yi=t=>(...o)=>({_$litDirective$:t,values:o});class ui{constructo
307
311
 
308
312
  .ft-ripple:not(.ft-ripple--unbounded) {
309
313
  overflow: hidden;
310
- border-radius: ${$i.borderRadius};
314
+ border-radius: ${Ei.borderRadius};
311
315
  }
312
316
 
313
317
  .ft-ripple .ft-ripple--background,
@@ -341,27 +345,27 @@ const hi=1,di=2,yi=t=>(...o)=>({_$litDirective$:t,values:o});class ui{constructo
341
345
  }
342
346
 
343
347
  .ft-ripple .ft-ripple--background {
344
- background-color: ${$i.backgroundColor};
348
+ background-color: ${Ei.backgroundColor};
345
349
  }
346
350
 
347
351
  .ft-ripple .ft-ripple--effect {
348
- background-color: ${$i.color};
352
+ background-color: ${Ei.color};
349
353
  }
350
354
 
351
355
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
352
- background-color: ${Wi};
356
+ background-color: ${Li};
353
357
  }
354
358
 
355
359
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
356
- background-color: ${Ii};
360
+ background-color: ${Wi};
357
361
  }
358
362
 
359
363
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
360
- background-color: ${Ui};
364
+ background-color: ${ki};
361
365
  }
362
366
 
363
367
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
364
- background-color: ${Ri};
368
+ background-color: ${Ui};
365
369
  }
366
370
 
367
371
  .ft-ripple .ft-ripple--background {
@@ -391,22 +395,22 @@ const hi=1,di=2,yi=t=>(...o)=>({_$litDirective$:t,values:o});class ui{constructo
391
395
  }
392
396
 
393
397
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
394
- opacity: ${$i.opacityContentOnSurfaceHover};
398
+ opacity: ${Ei.opacityContentOnSurfaceHover};
395
399
  }
396
400
 
397
401
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
398
- opacity: ${$i.opacityContentOnSurfaceSelected};
402
+ opacity: ${Ei.opacityContentOnSurfaceSelected};
399
403
  }
400
404
 
401
405
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
402
- opacity: ${$i.opacityContentOnSurfaceFocused};
406
+ opacity: ${Ei.opacityContentOnSurfaceFocused};
403
407
  }
404
408
 
405
409
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
406
- opacity: ${$i.opacityContentOnSurfacePressed};
410
+ opacity: ${Ei.opacityContentOnSurfacePressed};
407
411
  transform: translate(-50%, -50%) scale(1);
408
412
  }
409
- `,Ki={color:xo.extend("--ft-loader-color","",Co.colorPrimary),size:xo.create("--ft-loader-size","","SIZE","80px")},zi=bt`
413
+ `,zi={color:xo.extend("--ft-loader-color","",Co.colorPrimary),size:xo.create("--ft-loader-size","","SIZE","80px")},Zi=bt`
410
414
  :host {
411
415
  line-height: 0;
412
416
  }
@@ -415,8 +419,8 @@ const hi=1,di=2,yi=t=>(...o)=>({_$litDirective$:t,values:o});class ui{constructo
415
419
  display: inline-block;
416
420
  position: relative;
417
421
 
418
- width: ${Ki.size};
419
- height: ${Ki.size};
422
+ width: ${zi.size};
423
+ height: ${zi.size};
420
424
  }
421
425
 
422
426
  .ft-loader div {
@@ -425,7 +429,7 @@ const hi=1,di=2,yi=t=>(...o)=>({_$litDirective$:t,values:o});class ui{constructo
425
429
  width: 25%;
426
430
  height: 25%;
427
431
  border-radius: 50%;
428
- background: ${Ki.color};
432
+ background: ${zi.color};
429
433
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
430
434
  }
431
435
 
@@ -472,10 +476,10 @@ const hi=1,di=2,yi=t=>(...o)=>({_$litDirective$:t,values:o});class ui{constructo
472
476
  transform: translate(0, 0);
473
477
  }
474
478
  100% {
475
- transform: translate(calc(0.35 * ${Ki.size}), 0);
479
+ transform: translate(calc(0.35 * ${zi.size}), 0);
476
480
  }
477
481
  }
478
- `,Zi=xo.extend("--ft-button-color","",Co.colorPrimary),Fi={backgroundColor:xo.extend("--ft-button-background-color","",Co.colorSurface),borderRadius:xo.extend("--ft-button-border-radius","",Co.borderRadiusL),color:Zi,fontSize:xo.extend("--ft-button-font-size","",qe.fontSize),iconSize:xo.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:xo.extend("--ft-button-ripple-color","",Zi),verticalPadding:xo.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:xo.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:xo.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:xo.external(Co.colorOpacityDisabled,"Design system")},Bi=xo.extend("--ft-button-primary-color","",xo.extend("--ft-button-color","",Co.colorOnPrimary)),Di={backgroundColor:xo.extend("--ft-button-primary-background-color","",xo.extend("--ft-button-background-color","",Co.colorPrimary)),color:Bi,rippleColor:xo.extend("--ft-button-primary-ripple-color","",Bi)},Ai=xo.extend("--ft-button-dense-border-radius","",xo.extend("--ft-button-border-radius","",Co.borderRadiusM)),Mi=xo.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Pi=xo.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Hi=xo.create("--ft-button-dense-icon-padding","","SIZE","4px"),ji=[bt`
482
+ `,Fi=xo.extend("--ft-button-color","",Co.colorPrimary),Bi={backgroundColor:xo.extend("--ft-button-background-color","",Co.colorSurface),borderRadius:xo.extend("--ft-button-border-radius","",Co.borderRadiusL),color:Fi,fontSize:xo.extend("--ft-button-font-size","",Xe.fontSize),iconSize:xo.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:xo.extend("--ft-button-ripple-color","",Fi),verticalPadding:xo.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:xo.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:xo.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:xo.external(Co.colorOpacityDisabled,"Design system")},Di=xo.extend("--ft-button-primary-color","",xo.extend("--ft-button-color","",Co.colorOnPrimary)),Ai={backgroundColor:xo.extend("--ft-button-primary-background-color","",xo.extend("--ft-button-background-color","",Co.colorPrimary)),color:Di,rippleColor:xo.extend("--ft-button-primary-ripple-color","",Di)},Mi=xo.extend("--ft-button-dense-border-radius","",xo.extend("--ft-button-border-radius","",Co.borderRadiusM)),Pi=xo.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Hi=xo.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),ji=xo.create("--ft-button-dense-icon-padding","","SIZE","4px"),Ti=[bt`
479
483
  :host {
480
484
  display: inline-block;
481
485
  max-width: 100%;
@@ -486,7 +490,7 @@ const hi=1,di=2,yi=t=>(...o)=>({_$litDirective$:t,values:o});class ui{constructo
486
490
  box-shadow: 0px 0px 0px transparent;
487
491
  border: 0px solid transparent;
488
492
  text-shadow: 0px 0px 0px transparent;
489
- font-size: ${Fi.fontSize};
493
+ font-size: ${Bi.fontSize};
490
494
  }
491
495
 
492
496
  button:hover {
@@ -515,31 +519,31 @@ const hi=1,di=2,yi=t=>(...o)=>({_$litDirective$:t,values:o});class ui{constructo
515
519
  border: none;
516
520
  pointer-events: auto;
517
521
 
518
- --ft-button-internal-line-height: max(calc(${Fi.fontSize} + 2px), ${Fi.iconSize});
519
- --ft-button-internal-color: ${Fi.color};
520
- ${Oo(Oi.size,Fi.iconSize)};
521
- ${Oo($i.color,Fi.rippleColor)};
522
+ --ft-button-internal-line-height: max(calc(${Bi.fontSize} + 2px), ${Bi.iconSize});
523
+ --ft-button-internal-color: ${Bi.color};
524
+ ${Oo(vi.size,Bi.iconSize)};
525
+ ${Oo(Ei.color,Bi.rippleColor)};
522
526
 
523
- border-radius: ${Fi.borderRadius};
524
- padding: ${Fi.verticalPadding} ${Fi.horizontalPadding};
525
- background-color: ${Fi.backgroundColor};
527
+ border-radius: ${Bi.borderRadius};
528
+ padding: ${Bi.verticalPadding} ${Bi.horizontalPadding};
529
+ background-color: ${Bi.backgroundColor};
526
530
  color: var(--ft-button-internal-color);
527
531
  -webkit-mask-image: radial-gradient(white, black);
528
532
  }
529
533
 
530
534
  .ft-button.ft-button--outlined {
531
535
  border: 1px solid var(--ft-button-internal-color);
532
- padding: calc(${Fi.verticalPadding} - 1px) calc(${Fi.horizontalPadding} - 1px);
536
+ padding: calc(${Bi.verticalPadding} - 1px) calc(${Bi.horizontalPadding} - 1px);
533
537
  }
534
538
 
535
539
  .ft-button.ft-button--dense {
536
- padding: ${Mi} ${Pi};
537
- border-radius: ${Ai};
538
- gap: ${Hi};
540
+ padding: ${Pi} ${Hi};
541
+ border-radius: ${Mi};
542
+ gap: ${ji};
539
543
  }
540
544
 
541
545
  .ft-button.ft-button--dense.ft-button--outlined {
542
- padding: calc(${Mi} - 1px) calc(${Pi} - 1px);
546
+ padding: calc(${Pi} - 1px) calc(${Hi} - 1px);
543
547
  }
544
548
 
545
549
  .ft-button:not([disabled]):hover {
@@ -547,22 +551,22 @@ const hi=1,di=2,yi=t=>(...o)=>({_$litDirective$:t,values:o});class ui{constructo
547
551
  }
548
552
 
549
553
  .ft-button--round {
550
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Fi.verticalPadding});
554
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Bi.verticalPadding});
551
555
  }
552
556
 
553
557
  .ft-button--round.ft-button--dense {
554
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Mi});
558
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Pi});
555
559
  }
556
560
 
557
561
  .ft-button[disabled] {
558
562
  filter: grayscale(1);
559
- opacity: ${Fi.opacityDisabled};
563
+ opacity: ${Bi.opacityDisabled};
560
564
  }
561
565
 
562
566
  .ft-button.ft-button--primary {
563
- background-color: ${Di.backgroundColor};
564
- --ft-button-internal-color: ${Di.color};
565
- ${Oo($i.color,Di.rippleColor)};
567
+ background-color: ${Ai.backgroundColor};
568
+ --ft-button-internal-color: ${Ai.color};
569
+ ${Oo(Ei.color,Ai.rippleColor)};
566
570
  }
567
571
 
568
572
  .ft-button:focus {
@@ -575,13 +579,13 @@ const hi=1,di=2,yi=t=>(...o)=>({_$litDirective$:t,values:o});class ui{constructo
575
579
  white-space: nowrap;
576
580
  text-overflow: ellipsis;
577
581
  display: block;
578
- margin: 0 ${Fi.iconPadding};
579
- ${Oo(qe.fontSize,"1em")};
580
- ${Oo(qe.lineHeight,"var(--ft-button-internal-line-height)")};
582
+ margin: 0 ${Bi.iconPadding};
583
+ ${Oo(Xe.fontSize,"1em")};
584
+ ${Oo(Xe.lineHeight,"var(--ft-button-internal-line-height)")};
581
585
  }
582
586
 
583
587
  .ft-button--dense .ft-button--label {
584
- margin: 0 ${Hi};
588
+ margin: 0 ${ji};
585
589
  }
586
590
 
587
591
  .ft-button--label[hidden] {
@@ -594,13 +598,13 @@ const hi=1,di=2,yi=t=>(...o)=>({_$litDirective$:t,values:o});class ui{constructo
594
598
  }
595
599
 
596
600
  .ft-button--label[hidden] + ft-icon {
597
- margin: 0 calc(${Fi.horizontalPadding} * -1);
598
- padding: 0 ${Fi.verticalPadding};
601
+ margin: 0 calc(${Bi.horizontalPadding} * -1);
602
+ padding: 0 ${Bi.verticalPadding};
599
603
  }
600
604
 
601
605
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
602
- margin: 0 calc(${Pi} * -1);
603
- padding: 0 ${Mi};
606
+ margin: 0 calc(${Hi} * -1);
607
+ padding: 0 ${Pi};
604
608
  }
605
609
 
606
610
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -609,21 +613,21 @@ const hi=1,di=2,yi=t=>(...o)=>({_$litDirective$:t,values:o});class ui{constructo
609
613
  }
610
614
 
611
615
  ft-loader {
612
- ${Oo(Ki.size,Fi.iconSize)};
613
- ${Oo(Ki.color,"var(--ft-button-internal-color)")};
616
+ ${Oo(zi.size,Bi.iconSize)};
617
+ ${Oo(zi.color,"var(--ft-button-internal-color)")};
614
618
  }
615
- `,zo],Ti=yi(class extends ui{constructor(t){if(super(t),t.type!==hi||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const i=!!o[t];i===this.it.has(t)||this.st?.has(t)||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return q}});var _i=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Gi extends Ko{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new o(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o(10),this.moveRipple=t=>{var o,e;let{x:i,y:r}=this.getCoordinates(t),n=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Qt`
619
+ `,Zo],_i=ui(class extends gi{constructor(t){if(super(t),t.type!==di||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const i=!!o[t];i===this.it.has(t)||this.st?.has(t)||(i?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return q}});var Gi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Yi extends Ko{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new R(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 R(10),this.moveRipple=t=>{var o,e;let{x:i,y:r}=this.getCoordinates(t),n=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Qt`
616
620
  <style>
617
621
  .ft-ripple .ft-ripple--effect {
618
622
  left: ${this.originX}px;
619
623
  top: ${this.originY}px;
620
624
  }
621
625
  </style>
622
- <div class="${Ti(t)}">
626
+ <div class="${_i(t)}">
623
627
  <div class="ft-ripple--background"></div>
624
628
  <div class="ft-ripple--effect"></div>
625
629
  </div>
626
- `}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()}}Gi.elementDefinitions={},Gi.styles=Li,_i([C({type:Boolean})],Gi.prototype,"primary",void 0),_i([C({type:Boolean})],Gi.prototype,"secondary",void 0),_i([C({type:Boolean})],Gi.prototype,"unbounded",void 0),_i([C({type:Boolean})],Gi.prototype,"activated",void 0),_i([C({type:Boolean})],Gi.prototype,"selected",void 0),_i([C({type:Boolean})],Gi.prototype,"disabled",void 0),_i([$()],Gi.prototype,"hovered",void 0),_i([$()],Gi.prototype,"focused",void 0),_i([$()],Gi.prototype,"pressed",void 0),_i([$()],Gi.prototype,"rippling",void 0),_i([$()],Gi.prototype,"originX",void 0),_i([$()],Gi.prototype,"originY",void 0),_i([R(".ft-ripple")],Gi.prototype,"ripple",void 0),_i([R(".ft-ripple--effect")],Gi.prototype,"rippleEffect",void 0),k("ft-ripple")(Gi);const Yi=xo.create("--ft-tooltip-distance","","SIZE","4px"),Vi=xo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Ji=xo.create("--ft-tooltip-background-color","","COLOR","#666666"),qi=xo.create("--ft-tooltip-z-index","","NUMBER","100"),Xi=xo.external(Co.borderRadiusS,"Design system"),Qi=xo.create("--ft-tooltip-max-width","","SIZE","150px"),tr=bt`
630
+ `}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()}}Yi.elementDefinitions={},Yi.styles=Ki,Gi([w({type:Boolean})],Yi.prototype,"primary",void 0),Gi([w({type:Boolean})],Yi.prototype,"secondary",void 0),Gi([w({type:Boolean})],Yi.prototype,"unbounded",void 0),Gi([w({type:Boolean})],Yi.prototype,"activated",void 0),Gi([w({type:Boolean})],Yi.prototype,"selected",void 0),Gi([w({type:Boolean})],Yi.prototype,"disabled",void 0),Gi([C()],Yi.prototype,"hovered",void 0),Gi([C()],Yi.prototype,"focused",void 0),Gi([C()],Yi.prototype,"pressed",void 0),Gi([C()],Yi.prototype,"rippling",void 0),Gi([C()],Yi.prototype,"originX",void 0),Gi([C()],Yi.prototype,"originY",void 0),Gi([E(".ft-ripple")],Yi.prototype,"ripple",void 0),Gi([E(".ft-ripple--effect")],Yi.prototype,"rippleEffect",void 0),k("ft-ripple")(Yi);const Vi=xo.create("--ft-tooltip-distance","","SIZE","4px"),Ji=xo.create("--ft-tooltip-color","","COLOR","#FFFFFF"),qi=xo.create("--ft-tooltip-background-color","","COLOR","#666666"),Xi=xo.create("--ft-tooltip-z-index","","NUMBER","100"),Qi=xo.external(Co.borderRadiusS,"Design system"),tr=xo.create("--ft-tooltip-max-width","","SIZE","150px"),or=bt`
627
631
  .ft-tooltip--container {
628
632
  display: block;
629
633
  }
@@ -638,21 +642,21 @@ const hi=1,di=2,yi=t=>(...o)=>({_$litDirective$:t,values:o});class ui{constructo
638
642
  box-sizing: border-box;
639
643
  overflow: hidden;
640
644
  width: max-content;
641
- max-width: ${Qi};
645
+ max-width: ${tr};
642
646
  text-align: center;
643
- padding: ${Yi};
644
- z-index: ${qi};
647
+ padding: ${Vi};
648
+ z-index: ${Xi};
645
649
  }
646
650
 
647
651
  .ft-tooltip--content {
648
652
  padding: 4px 8px;
649
- border-radius: ${Xi};
650
- background-color: ${Ji};
651
- color: ${Vi};
653
+ border-radius: ${Qi};
654
+ background-color: ${qi};
655
+ color: ${Ji};
652
656
  position: relative;
653
657
  word-break: break-word;
654
658
  }
655
- `;var or=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class er extends Ko{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Qt`
659
+ `;var er=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ir extends Ko{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 R,this.revealDebouncer=new R}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Qt`
656
660
  <div part="container"
657
661
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
658
662
  @mouseenter=${this.onHover}
@@ -670,29 +674,29 @@ const hi=1,di=2,yi=t=>(...o)=>({_$litDirective$:t,values:o});class ui{constructo
670
674
  </div>
671
675
  </div>
672
676
  </div>
673
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,p=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let f=-l.y,h=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(f,h))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${Qi})`}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))}}er.elementDefinitions={"ft-typography":fi},er.styles=tr,or([C()],er.prototype,"text",void 0),or([C({type:Boolean})],er.prototype,"manual",void 0),or([C({type:Boolean})],er.prototype,"inline",void 0),or([C({type:Number})],er.prototype,"delay",void 0),or([C()],er.prototype,"position",void 0),or([
677
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,p=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let f=-l.y,h=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(f,h))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${tr})`}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))}}ir.elementDefinitions={"ft-typography":hi},ir.styles=or,er([w()],ir.prototype,"text",void 0),er([w({type:Boolean})],ir.prototype,"manual",void 0),er([w({type:Boolean})],ir.prototype,"inline",void 0),er([w({type:Number})],ir.prototype,"delay",void 0),er([w()],ir.prototype,"position",void 0),er([
674
678
  /**
675
679
  * @license
676
680
  * Copyright 2017 Google LLC
677
681
  * SPDX-License-Identifier: BSD-3-Clause
678
682
  */
679
- 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)??[]}})}}()],er.prototype,"slotNodes",void 0),or([R(".ft-tooltip--container")],er.prototype,"container",void 0),or([R(".ft-tooltip")],er.prototype,"tooltip",void 0),or([R(".ft-tooltip--content")],er.prototype,"tooltipContent",void 0),or([$()],er.prototype,"visible",void 0),k("ft-tooltip")(er);class ir extends Ko{render(){return Qt`
683
+ function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return $(0,0,{get(){const o=this.renderRoot?.querySelector(r);return o?.assignedNodes(t)??[]}})}}()],ir.prototype,"slotNodes",void 0),er([E(".ft-tooltip--container")],ir.prototype,"container",void 0),er([E(".ft-tooltip")],ir.prototype,"tooltip",void 0),er([E(".ft-tooltip--content")],ir.prototype,"tooltipContent",void 0),er([C()],ir.prototype,"visible",void 0),k("ft-tooltip")(ir);class rr extends Ko{render(){return Qt`
680
684
  <div class="ft-loader">
681
685
  <div></div>
682
686
  <div></div>
683
687
  <div></div>
684
688
  <div></div>
685
689
  </div>
686
- `}}ir.styles=zi,k("ft-loader")(ir);var rr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class nr extends(function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[Fo].form}constructor(...t){super(t),this[Fo]=this.attachInternals(),this[Fo].role=o}setFormValue(t){this[Fo].setFormValue(t)}}}(Ko,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(Qt`
690
+ `}}rr.styles=Zi,k("ft-loader")(rr);var nr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ar extends(function(t,o){return class extends t{static get formAssociated(){return!0}get form(){return this[Bo].form}constructor(...t){super(t),this[Bo]=this.attachInternals(),this[Bo].role=o}setFormValue(t){this[Bo].setFormValue(t)}}}(Ko,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(Qt`
687
691
  <button part="button"
688
- class="${Ti(this.buttonClasses)}"
692
+ class="${_i(this.buttonClasses)}"
689
693
  aria-label="${this.getLabel()}"
690
694
  ?disabled=${this.isDisabled()}>
691
695
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
692
696
  <ft-typography part="label"
693
697
  variant=${this.typographyVariant}
694
698
  element="span"
695
- class="ft-button--label ${Mo?"ft-safari-ellipsis-fix":""}"
699
+ class="ft-button--label ${Po?"ft-safari-ellipsis-fix":""}"
696
700
  ?hidden=${!this.hasTextContent()}>
697
701
  <slot @slotchange=${this.onSlotchange}></slot>
698
702
  </ft-typography>
@@ -706,7 +710,7 @@ function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
706
710
  </ft-tooltip>
707
711
  `:t}resolveIcon(){return this.loading?Qt`
708
712
  <ft-loader part="loader icon"></ft-loader> `:this.icon?Qt`
709
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:oo}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}nr.elementDefinitions={"ft-ripple":Gi,"ft-tooltip":er,"ft-typography":fi,"ft-icon":wi,"ft-loader":ir},rr([C({type:String,reflect:!0})],nr.prototype,"role",void 0),rr([C()],nr.prototype,"type",void 0),rr([C({type:Boolean})],nr.prototype,"disabled",void 0),rr([C()],nr.prototype,"label",void 0),rr([C()],nr.prototype,"icon",void 0),rr([C()],nr.prototype,"iconVariant",void 0),rr([C({type:Boolean})],nr.prototype,"trailingIcon",void 0),rr([C({type:Boolean})],nr.prototype,"loading",void 0),rr([C()],nr.prototype,"tooltipPosition",void 0),rr([C({type:Boolean})],nr.prototype,"hideTooltip",void 0),rr([C({type:Boolean})],nr.prototype,"forceTooltip",void 0),rr([R(".ft-button")],nr.prototype,"button",void 0),rr([R(".ft-button--label slot")],nr.prototype,"slottedContent",void 0);var ar=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class sr extends nr{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}sr.styles=[Zo,ji],ar([C({type:Boolean})],sr.prototype,"primary",void 0),ar([C({type:Boolean})],sr.prototype,"outlined",void 0),ar([C({type:Boolean})],sr.prototype,"dense",void 0),ar([C({type:Boolean})],sr.prototype,"round",void 0);const lr=[bt`
713
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:oo}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ar.elementDefinitions={"ft-ripple":Yi,"ft-tooltip":ir,"ft-typography":hi,"ft-icon":Ci,"ft-loader":rr},nr([w({type:String,reflect:!0})],ar.prototype,"role",void 0),nr([w()],ar.prototype,"type",void 0),nr([w({type:Boolean})],ar.prototype,"disabled",void 0),nr([w()],ar.prototype,"label",void 0),nr([w()],ar.prototype,"icon",void 0),nr([w()],ar.prototype,"iconVariant",void 0),nr([w({type:Boolean})],ar.prototype,"trailingIcon",void 0),nr([w({type:Boolean})],ar.prototype,"loading",void 0),nr([w()],ar.prototype,"tooltipPosition",void 0),nr([w({type:Boolean})],ar.prototype,"hideTooltip",void 0),nr([w({type:Boolean})],ar.prototype,"forceTooltip",void 0),nr([E(".ft-button")],ar.prototype,"button",void 0),nr([E(".ft-button--label slot")],ar.prototype,"slottedContent",void 0);var sr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class lr extends ar{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}lr.styles=[Fo,Ti],sr([w({type:Boolean})],lr.prototype,"primary",void 0),sr([w({type:Boolean})],lr.prototype,"outlined",void 0),sr([w({type:Boolean})],lr.prototype,"dense",void 0),sr([w({type:Boolean})],lr.prototype,"round",void 0);const cr=[bt`
710
714
  :host {
711
715
  display: inline-block;
712
716
  max-width: 100%;
@@ -785,13 +789,13 @@ function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
785
789
  /** Primary styles **/
786
790
 
787
791
  .ft-button--primary {
788
- ${Oo(Ki.color,wo.primaryIconColor)};
792
+ ${Oo(zi.color,wo.primaryIconColor)};
789
793
 
790
- ${Oo($i.color,wo.primaryStateLayerColor)};
791
- ${Oo($i.opacityContentOnSurfaceHover,wo.primaryStateLayerOpacityHover)};
792
- ${Oo($i.opacityContentOnSurfaceFocused,wo.primaryStateLayerOpacityFocus)};
793
- ${Oo($i.opacityContentOnSurfaceSelected,wo.primaryStateLayerOpacityActive)};
794
- ${Oo($i.opacityContentOnSurfacePressed,wo.primaryStateLayerOpacityActive)};
794
+ ${Oo(Ei.color,wo.primaryStateLayerColor)};
795
+ ${Oo(Ei.opacityContentOnSurfaceHover,wo.primaryStateLayerOpacityHover)};
796
+ ${Oo(Ei.opacityContentOnSurfaceFocused,wo.primaryStateLayerOpacityFocus)};
797
+ ${Oo(Ei.opacityContentOnSurfaceSelected,wo.primaryStateLayerOpacityActive)};
798
+ ${Oo(Ei.opacityContentOnSurfacePressed,wo.primaryStateLayerOpacityActive)};
795
799
 
796
800
  background-color: ${wo.primaryBackgroundColor};
797
801
  color: ${wo.primaryColor};
@@ -809,13 +813,13 @@ function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
809
813
  /** Secondary styles **/
810
814
 
811
815
  .ft-button--secondary {
812
- ${Oo(Ki.color,wo.secondaryIconColor)};
816
+ ${Oo(zi.color,wo.secondaryIconColor)};
813
817
 
814
- ${Oo($i.color,wo.secondaryStateLayerColor)};
815
- ${Oo($i.opacityContentOnSurfaceHover,wo.secondaryStateLayerOpacityHover)};
816
- ${Oo($i.opacityContentOnSurfaceFocused,wo.secondaryStateLayerOpacityFocus)};
817
- ${Oo($i.opacityContentOnSurfaceSelected,wo.secondaryStateLayerOpacityActive)};
818
- ${Oo($i.opacityContentOnSurfacePressed,wo.secondaryStateLayerOpacityActive)};
818
+ ${Oo(Ei.color,wo.secondaryStateLayerColor)};
819
+ ${Oo(Ei.opacityContentOnSurfaceHover,wo.secondaryStateLayerOpacityHover)};
820
+ ${Oo(Ei.opacityContentOnSurfaceFocused,wo.secondaryStateLayerOpacityFocus)};
821
+ ${Oo(Ei.opacityContentOnSurfaceSelected,wo.secondaryStateLayerOpacityActive)};
822
+ ${Oo(Ei.opacityContentOnSurfacePressed,wo.secondaryStateLayerOpacityActive)};
819
823
 
820
824
  background-color: ${wo.secondaryBackgroundColor};
821
825
  color: ${wo.secondaryColor};
@@ -834,13 +838,13 @@ function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
834
838
  /** Tertiary styles **/
835
839
 
836
840
  .ft-button--tertiary {
837
- ${Oo(Ki.color,wo.tertiaryIconColor)};
841
+ ${Oo(zi.color,wo.tertiaryIconColor)};
838
842
 
839
- ${Oo($i.color,wo.tertiaryStateLayerColor)};
840
- ${Oo($i.opacityContentOnSurfaceHover,wo.tertiaryStateLayerOpacityHover)};
841
- ${Oo($i.opacityContentOnSurfaceFocused,wo.tertiaryStateLayerOpacityFocus)};
842
- ${Oo($i.opacityContentOnSurfaceSelected,wo.tertiaryStateLayerOpacityActive)};
843
- ${Oo($i.opacityContentOnSurfacePressed,wo.tertiaryStateLayerOpacityActive)};
843
+ ${Oo(Ei.color,wo.tertiaryStateLayerColor)};
844
+ ${Oo(Ei.opacityContentOnSurfaceHover,wo.tertiaryStateLayerOpacityHover)};
845
+ ${Oo(Ei.opacityContentOnSurfaceFocused,wo.tertiaryStateLayerOpacityFocus)};
846
+ ${Oo(Ei.opacityContentOnSurfaceSelected,wo.tertiaryStateLayerOpacityActive)};
847
+ ${Oo(Ei.opacityContentOnSurfacePressed,wo.tertiaryStateLayerOpacityActive)};
844
848
 
845
849
  background-color: ${wo.tertiaryBackgroundColor};
846
850
  color: ${wo.tertiaryColor};
@@ -858,13 +862,13 @@ function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
858
862
  /** Neutral styles **/
859
863
 
860
864
  .ft-button--neutral {
861
- ${Oo(Ki.color,wo.neutralIconColor)};
865
+ ${Oo(zi.color,wo.neutralIconColor)};
862
866
 
863
- ${Oo($i.backgroundColor,wo.neutralStateLayerColor)};
864
- ${Oo($i.opacityContentOnSurfaceHover,wo.neutralStateLayerOpacityHover)};
865
- ${Oo($i.opacityContentOnSurfaceFocused,wo.neutralStateLayerOpacityFocus)};
866
- ${Oo($i.opacityContentOnSurfaceSelected,wo.neutralStateLayerOpacityActive)};
867
- ${Oo($i.opacityContentOnSurfacePressed,wo.neutralStateLayerOpacityActive)};
867
+ ${Oo(Ei.backgroundColor,wo.neutralStateLayerColor)};
868
+ ${Oo(Ei.opacityContentOnSurfaceHover,wo.neutralStateLayerOpacityHover)};
869
+ ${Oo(Ei.opacityContentOnSurfaceFocused,wo.neutralStateLayerOpacityFocus)};
870
+ ${Oo(Ei.opacityContentOnSurfaceSelected,wo.neutralStateLayerOpacityActive)};
871
+ ${Oo(Ei.opacityContentOnSurfacePressed,wo.neutralStateLayerOpacityActive)};
868
872
 
869
873
  background-color: ${wo.neutralBackgroundColor};
870
874
  color: ${wo.neutralColor};
@@ -882,8 +886,8 @@ function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
882
886
  /** Large styles **/
883
887
 
884
888
  .ft-button--large {
885
- ${Oo(Oi.size,wo.largeIconSize)};
886
- ${Oo(Ki.size,wo.largeIconSize)};
889
+ ${Oo(vi.size,wo.largeIconSize)};
890
+ ${Oo(zi.size,wo.largeIconSize)};
887
891
 
888
892
  height: ${wo.largeHeight};
889
893
  padding: 0 ${wo.largeHorizontalPadding};
@@ -905,8 +909,8 @@ function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
905
909
  /** Small styles **/
906
910
 
907
911
  .ft-button--small {
908
- ${Oo(Oi.size,wo.smallIconSize)};
909
- ${Oo(Ki.size,wo.smallIconSize)};
912
+ ${Oo(vi.size,wo.smallIconSize)};
913
+ ${Oo(zi.size,wo.smallIconSize)};
910
914
 
911
915
  height: ${wo.smallHeight};
912
916
  padding: 0 ${wo.smallHorizontalPadding};
@@ -924,14 +928,14 @@ function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
924
928
  width: ${wo.smallIconOnlyWidth};
925
929
  padding: unset;
926
930
  }
927
- `,zo];var cr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class pr extends nr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Go.caption1medium:Go.body2medium}}pr.styles=[Zo,lr],cr([C({type:Boolean})],pr.prototype,"primary",void 0),cr([C({type:Boolean})],pr.prototype,"secondary",void 0),cr([C({type:Boolean})],pr.prototype,"tertiary",void 0),cr([C({type:Boolean})],pr.prototype,"neutral",void 0),cr([C({type:Boolean})],pr.prototype,"small",void 0),k("ft-button")(sr),k("ftds-button")(pr);const fr={zIndex:xo.create("--ft-dialog-z-index","","NUMBER","2"),overlayBackgroundColor:xo.create("--ft-dialog-overlay-background-color","","COLOR","rgba(0, 0, 0, 0.3)"),height:xo.create("--ft-dialog-height","","SIZE","unset"),width:xo.create("--ft-dialog-width","","SIZE","unset"),minWidth:xo.create("--ft-dialog-min-width","","SIZE","unset"),paddingTop:xo.create("--ft-dialog-padding-top","","SIZE","20px"),paddingSide:xo.create("--ft-dialog-padding-side","","SIZE","16px"),paddingButtons:xo.create("--ft-dialog-padding-buttons","","SIZE","20px"),colorSurface:xo.external(Co.colorSurface,"Design system"),headingColor:xo.external(Co.colorOnSurfaceMedium,"Design system"),borderRadiusS:xo.external(Co.borderRadiusS,"Design system"),elevation24:xo.external(Co.elevation24,"Design system")},hr=bt`
931
+ `,Zo];var pr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class fr extends ar{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Yo.caption1medium:Yo.body2medium}}fr.styles=[Fo,cr],pr([w({type:Boolean})],fr.prototype,"primary",void 0),pr([w({type:Boolean})],fr.prototype,"secondary",void 0),pr([w({type:Boolean})],fr.prototype,"tertiary",void 0),pr([w({type:Boolean})],fr.prototype,"neutral",void 0),pr([w({type:Boolean})],fr.prototype,"small",void 0),k("ft-button")(lr),k("ftds-button")(fr);const hr={zIndex:xo.create("--ft-dialog-z-index","","NUMBER","2"),overlayBackgroundColor:xo.create("--ft-dialog-overlay-background-color","","COLOR","rgba(0, 0, 0, 0.3)"),height:xo.create("--ft-dialog-height","","SIZE","unset"),width:xo.create("--ft-dialog-width","","SIZE","unset"),minWidth:xo.create("--ft-dialog-min-width","","SIZE","unset"),paddingTop:xo.create("--ft-dialog-padding-top","","SIZE","20px"),paddingSide:xo.create("--ft-dialog-padding-side","","SIZE","16px"),paddingButtons:xo.create("--ft-dialog-padding-buttons","","SIZE","20px"),colorSurface:xo.external(Co.colorSurface,"Design system"),headingColor:xo.external(Co.colorOnSurfaceMedium,"Design system"),borderRadiusS:xo.external(Co.borderRadiusS,"Design system"),elevation24:xo.external(Co.elevation24,"Design system")},dr=bt`
928
932
  .ft-dialog {
929
933
  position: fixed;
930
934
  top: 0;
931
935
  right: 0;
932
936
  bottom: 0;
933
937
  left: 0;
934
- z-index: ${fr.zIndex};
938
+ z-index: ${hr.zIndex};
935
939
 
936
940
  display: flex;
937
941
  flex-direction: column;
@@ -951,7 +955,7 @@ function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
951
955
  height: 100%;
952
956
  width: 100%;
953
957
 
954
- background-color: ${fr.overlayBackgroundColor};
958
+ background-color: ${hr.overlayBackgroundColor};
955
959
 
956
960
  }
957
961
 
@@ -959,26 +963,26 @@ function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
959
963
  position: fixed;
960
964
  display: flex;
961
965
  flex-direction: column;
962
- gap: ${fr.paddingButtons};
966
+ gap: ${hr.paddingButtons};
963
967
 
964
- width: ${fr.width};
965
- height: ${fr.height};
968
+ width: ${hr.width};
969
+ height: ${hr.height};
966
970
  max-width: 95vw;
967
971
  max-height: 95vh;
968
- min-width: ${fr.minWidth};
972
+ min-width: ${hr.minWidth};
969
973
 
970
- padding-top: ${fr.paddingTop};
971
- padding-bottom: ${fr.paddingTop};
974
+ padding-top: ${hr.paddingTop};
975
+ padding-bottom: ${hr.paddingTop};
972
976
 
973
- background-color: ${fr.colorSurface};
977
+ background-color: ${hr.colorSurface};
974
978
 
975
- border-radius: ${fr.borderRadiusS};
976
- box-shadow: ${fr.elevation24};
979
+ border-radius: ${hr.borderRadiusS};
980
+ box-shadow: ${hr.elevation24};
977
981
  }
978
982
 
979
983
  .ft-dialog-wrapper > * {
980
- padding-right: ${fr.paddingSide};
981
- padding-left: ${fr.paddingSide};
984
+ padding-right: ${hr.paddingSide};
985
+ padding-left: ${hr.paddingSide};
982
986
  }
983
987
 
984
988
  .ft-dialog-content {
@@ -993,7 +997,7 @@ function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
993
997
  align-items: center;
994
998
  gap: 8px;
995
999
 
996
- color: ${fr.headingColor};
1000
+ color: ${hr.headingColor};
997
1001
  }
998
1002
 
999
1003
  .ft-dialog-heading * {
@@ -1009,7 +1013,7 @@ function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
1009
1013
  }
1010
1014
 
1011
1015
  .ft-dialog-heading ft-button {
1012
- ${Oo(Fi.color,fr.headingColor)};
1016
+ ${Oo(Bi.color,hr.headingColor)};
1013
1017
  }
1014
1018
 
1015
1019
  .ft-dialog-buttons.ft-dialog-no-buttons {
@@ -1023,7 +1027,7 @@ function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
1023
1027
  gap: 8px;
1024
1028
  }
1025
1029
 
1026
- `;var dr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class yr extends Ko{constructor(){super(...arguments),this.opened=!1,this.closeOnEsc=!1,this.closeOnClickOutside=!1,this.closable=!1,this.beforeClose=()=>!0,this.heading="",this.icon="",this.watchEscapeKey=t=>{"Escape"===t.key&&this.closeOnEsc&&this.close()}}render(){return this.opened?Qt`
1030
+ `;var yr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ur extends Ko{constructor(){super(...arguments),this.opened=!1,this.closeOnEsc=!1,this.closeOnClickOutside=!1,this.closable=!1,this.beforeClose=()=>!0,this.heading="",this.icon="",this.watchEscapeKey=t=>{"Escape"===t.key&&this.closeOnEsc&&this.close()}}render(){return this.opened?Qt`
1027
1031
  <div class="ft-dialog">
1028
1032
  <div class="ft-dialog-overlay" @click="${()=>this.onClickOutside()}"></div>
1029
1033
  <div class="ft-dialog-wrapper">
@@ -1049,4 +1053,4 @@ function(t){return(o,e)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
1049
1053
  ></slot>
1050
1054
  </div>
1051
1055
  </div>
1052
- `:null}updated(t){super.updated(t),t.has("opened")&&(this.opened?setTimeout((()=>{document.addEventListener("keydown",this.watchEscapeKey)}),0):document.removeEventListener("keydown",this.watchEscapeKey))}close(){this.beforeClose()&&(this.opened=!1,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!1}})))}open(){this.opened=!0,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!0}}))}onClickOutside(){this.closeOnClickOutside&&this.close()}}yr.elementDefinitions={"ft-typography":fi,"ft-icon":wi,"ft-button":sr},yr.styles=hr,dr([C({type:Boolean,hasChanged:(t,o)=>!1===o&&!0===t||!0===o&&!1===t})],yr.prototype,"opened",void 0),dr([C({type:Boolean})],yr.prototype,"closeOnEsc",void 0),dr([C({type:Boolean})],yr.prototype,"closeOnClickOutside",void 0),dr([C({type:Boolean})],yr.prototype,"closable",void 0),dr([C({type:()=>Boolean})],yr.prototype,"beforeClose",void 0),dr([C()],yr.prototype,"heading",void 0),dr([C()],yr.prototype,"icon",void 0),dr([C()],yr.prototype,"iconVariant",void 0),dr([function(t){return(o,e)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return E(0,0,{get(){const o=this.renderRoot?.querySelector(n),e=o?.assignedElements(t)??[];return void 0===r?e:e.filter((t=>t.matches(r)))}})}}({slot:"buttons"})],yr.prototype,"buttons",void 0),k("ft-dialog")(yr),t.FtDialog=yr,t.FtDialogCssVariables=fr,t.styles=hr}({});
1056
+ `:null}updated(t){super.updated(t),t.has("opened")&&(this.opened?setTimeout((()=>{document.addEventListener("keydown",this.watchEscapeKey)}),0):document.removeEventListener("keydown",this.watchEscapeKey))}close(){this.beforeClose()&&(this.opened=!1,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!1}})))}open(){this.opened=!0,this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:!0}}))}onClickOutside(){this.closeOnClickOutside&&this.close()}}ur.elementDefinitions={"ft-typography":hi,"ft-icon":Ci,"ft-button":lr},ur.styles=dr,yr([w({type:Boolean,hasChanged:(t,o)=>!1===o&&!0===t||!0===o&&!1===t})],ur.prototype,"opened",void 0),yr([w({type:Boolean})],ur.prototype,"closeOnEsc",void 0),yr([w({type:Boolean})],ur.prototype,"closeOnClickOutside",void 0),yr([w({type:Boolean})],ur.prototype,"closable",void 0),yr([w({type:()=>Boolean})],ur.prototype,"beforeClose",void 0),yr([w()],ur.prototype,"heading",void 0),yr([w()],ur.prototype,"icon",void 0),yr([w()],ur.prototype,"iconVariant",void 0),yr([function(t){return(o,e)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return $(0,0,{get(){const o=this.renderRoot?.querySelector(n),e=o?.assignedElements(t)??[];return void 0===r?e:e.filter((t=>t.matches(r)))}})}}({slot:"buttons"})],ur.prototype,"buttons",void 0),k("ft-dialog")(ur),t.FtDialog=ur,t.FtDialogCssVariables=hr,t.styles=dr}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-dialog",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "A simple dialog component",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,11 +19,11 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-button": "1.1.1",
23
- "@fluid-topics/ft-icon": "1.1.1",
24
- "@fluid-topics/ft-typography": "1.1.1",
25
- "@fluid-topics/ft-wc-utils": "1.1.1",
22
+ "@fluid-topics/ft-button": "1.1.3",
23
+ "@fluid-topics/ft-icon": "1.1.3",
24
+ "@fluid-topics/ft-typography": "1.1.3",
25
+ "@fluid-topics/ft-wc-utils": "1.1.3",
26
26
  "lit": "3.1.0"
27
27
  },
28
- "gitHead": "ceae4aed142c27cbf6034f45bb6e3f562163cc15"
28
+ "gitHead": "0d44a470e710f185c37e42ee87be4481a3bdf793"
29
29
  }