@fluid-topics/ft-text-field 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.
@@ -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,e=window.customElements.define,o=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=o.call(i,t);p||(p=f(t),e.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),g(t,c,!0)}const u=this._whenDefinedPromises.get(t);return void 0!==u&&(u.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){y.push(this),i.upgrade.apply(i,arguments),y.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let i=this._awaitingUpgrade.get(e);i||this._awaitingUpgrade.set(e,i=new Set),o?i.add(t):i.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let e=t.getRootNode();if(!c(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=p(o)||window.customElements,r=i._getDefinition(e);return r?g(o,r):n.set(o,i),o}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!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,e,o)=>{if(0===e.size||void 0===o)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r),o.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(e.has(i)){const t=this.getAttribute(i);r.call(this,i),o.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(e.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const e=this.getAttribute(r);o.call(this,r,t,e)}else n.call(this,r,i)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):d(o)},g=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},u=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=u.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,o=void 0)=>{const i=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=i.apply(o||this,arguments);return void 0!==t&&s.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){y.push(this),o.set.call(this,t),y.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,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const i=e.call(this,...o);return t.set(i,this),i},o.forEach((e=>{const o=window.ElementInternals.prototype,i=o[e];o[e]=function(...e){const o=t.get(this);if(!0===r.get(o).formAssociated)return i?.call(this,...e);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 e=new Map;t.forEach(((t,o)=>{const i=t.getAttribute("name"),r=e.get(i)||[];this[+o]=t,r.push(t),e.set(i,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=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,[]),e=[];for(const o of t){const t=r.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ni){const t=window.customElements.define;window.customElements.define=(e,o,i)=>{if(null!==o)try{t.bind(window.customElements)(e,o,i)}catch(t){console.info(e,o,i,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const o=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)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,e=window.customElements.define,o=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=o.call(i,t);p||(p=f(t),e.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),g(t,c,!0)}const u=this._whenDefinedPromises.get(t);return void 0!==u&&(u.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){y.push(this),i.upgrade.apply(i,arguments),y.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let i=this._awaitingUpgrade.get(e);i||this._awaitingUpgrade.set(e,i=new Set),o?i.add(t):i.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),r.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,p=t=>{let e=t.getRootNode();if(!c(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const i=p(o)||window.customElements,r=i._getDefinition(e);return r?g(o,r):n.set(o,i),o}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!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,e,o)=>{if(0===e.size||void 0===o)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r),o.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(e.has(i)){const t=this.getAttribute(i);r.call(this,i),o.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(e.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const e=this.getAttribute(r);o.call(this,r,t,e)}else n.call(this,r,i)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):d(o)},g=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},u=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=u.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,o=void 0)=>{const i=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=i.apply(o||this,arguments);return void 0!==t&&s.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){y.push(this),o.set.call(this,t),y.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,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const i=e.call(this,...o);return t.set(i,this),i},o.forEach((e=>{const o=window.ElementInternals.prototype,i=o[e];o[e]=function(...e){const o=t.get(this);if(!0===r.get(o).formAssociated)return i?.call(this,...e);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 e=new Map;t.forEach(((t,o)=>{const i=t.getAttribute("name"),r=e.get(i)||[];this[+o]=t,r.push(t),e.set(i,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=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,[]),e=[];for(const o of t){const t=r.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Si){const t=window.customElements.define;window.customElements.define=(e,o,i)=>{if(null!==o)try{t.bind(window.customElements)(e,o,i)}catch(t){console.info(e,o,i,t)}}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
19
19
  * SPDX-License-Identifier: BSD-3-Clause
20
- */const o=globalThis,i=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),n=new WeakMap;const a=t=>new class{constructor(t,e,o){if(this._$cssResult$=!0,o!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(i&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=n.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&n.set(e,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 e="";for(const o of t.cssRules)e+=o.cssText;return a(e)})(t):t
20
+ */const e=globalThis,o=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),r=new WeakMap;const n=t=>new class{constructor(t,e,o){if(this._$cssResult$=!0,o!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(o&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&r.set(e,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,i),a=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return n(e)})(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,g=globalThis,u=g.trustedTypes,y=u?u.emptyScript:"",b=g.reactiveElementPolyfillSupport,m=(t,e)=>t,x={toAttribute(t,e){switch(e){case Boolean:t=t?y:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},O=(t,e)=>!l(t,e),v={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:O};Symbol.metadata??=Symbol("metadata"),g.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,e=v){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&c(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=p(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},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,e=[...f(t),...h(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(s(t))}else void 0!==t&&e.push(s(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"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,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(i)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),r=o.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=i.cssText,t.appendChild(e)}})(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,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:x).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.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(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??O)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.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,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}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}),(g.reactiveElementVersions??=[]).push("2.0.2");
25
+ */,{is:s,defineProperty:l,getOwnPropertyDescriptor:c,getOwnPropertyNames:p,getOwnPropertySymbols:f,getPrototypeOf:h}=Object,d=globalThis,g=d.trustedTypes,u=g?g.emptyScript:"",y=d.reactiveElementPolyfillSupport,b=(t,e)=>t,m={toAttribute(t,e){switch(e){case Boolean:t=t?u:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},x=(t,e)=>!s(t,e),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,e=O){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&l(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=c(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},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,e=[...p(t),...f(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"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,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,i)=>{if(o)t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of i){const i=document.createElement("style"),r=e.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=o.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,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:m).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.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(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??x)(i?r:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.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,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}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,y?.({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,e,o)=>{const{kind:i,metadata:r}=o;let n=globalThis.litPropertyMetadata.get(r);if(void 0===n&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(o.name,t),"accessor"===i){const{name:i}=o;return{set(o){const r=e.get.call(this);e.set.call(this,o),this.requestUpdate(i,r,t)},init(e){return void 0!==e&&this.C(i,void 0,t),e}}}if("setter"===i){const{name:i}=o;return function(o){const r=this[i];e.call(this,o),this.requestUpdate(i,r,t)}}throw Error("Unsupported decorator location: "+i)};function C(t){return(e,o)=>"object"==typeof o?w(t,e,o):((t,e,o)=>{const i=e.hasOwnProperty(o);return e.constructor.createProperty(o,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
31
+ const N={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x},S=(t=N,e,o)=>{const{kind:i,metadata:r}=o;let n=globalThis.litPropertyMetadata.get(r);if(void 0===n&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(o.name,t),"accessor"===i){const{name:i}=o;return{set(o){const r=e.get.call(this);e.set.call(this,o),this.requestUpdate(i,r,t)},init(e){return void 0!==e&&this.C(i,void 0,t),e}}}if("setter"===i){const{name:i}=o;return function(o){const r=this[i];e.call(this,o),this.requestUpdate(i,r,t)}}throw Error("Unsupported decorator location: "+i)};function w(t){return(e,o)=>"object"==typeof o?S(t,e,o):((t,e,o)=>{const i=e.hasOwnProperty(o);return e.constructor.createProperty(o,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
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,e,o)=>(o.configurable=!0,o.enumerable=!0,o)
41
+ */const $=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,o)
42
42
  /**
43
43
  * @license
44
44
  * Copyright 2017 Google LLC
45
45
  * SPDX-License-Identifier: BSD-3-Clause
46
- */;function R(t,e){return(o,i,r)=>{const n=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof i?o:r??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return E(0,0,{get(){let o=t.call(this);return void 0===o&&(o=n(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return E(0,0,{get(){return n(this)}})}}
46
+ */;function E(t,e){return(o,i,r)=>{const n=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof i?o:r??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return $(0,0,{get(){let o=t.call(this);return void 0===o&&(o=n(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}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,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var o,i,r;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(i=o;0!=i--;)if(!U(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!U(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((o=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(i=o;0!=i--;)if(!Object.prototype.hasOwnProperty.call(e,r[i]))return!1;for(i=o;0!=i--;){var n=r[i];if(!U(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const I=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};
51
+ */class R{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const o=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)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,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var o,i,r;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(i=o;0!=i--;)if(!U(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!U(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((o=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(i=o;0!=i--;)if(!Object.prototype.hasOwnProperty.call(e,r[i]))return!1;for(i=o;0!=i--;){var n=r[i];if(!U(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const I=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};
52
52
  /**
53
53
  * @license
54
54
  * Copyright 2017 Google LLC
@@ -82,7 +82,11 @@ class ue 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 $e extends ue{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Ce?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=we.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Ee,Re=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ue=Symbol("constructorPrototype"),Ie=Symbol("constructorName"),ke=Symbol("exportpartsDebouncer");class We extends $e{constructor(){super(),this[Ee]=new e(5),this[Ie]=this.constructor.name,this[Ue]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ie]&&Object.setPrototypeOf(this,this[Ue])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).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[ke].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 e,o,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!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],o=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(...e,...o).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((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}Ee=ke,Re([C()],We.prototype,"exportpartsPrefix",void 0),Re([function(t,e){const o=()=>JSON.parse(JSON.stringify(t));return C({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!U(t,e),...null!=e?e:{}})}([])],We.prototype,"exportpartsPrefixes",void 0),Re([C()],We.prototype,"customStylesheet",void 0),bt`
85
+ */class $e extends ue{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Ce?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=we.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Ee,Re=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ue=Symbol("constructorPrototype"),Ie=Symbol("constructorName"),ke=Symbol("exportpartsDebouncer");class We extends $e{constructor(){super(),this[Ee]=new R(5),this[Ie]=this.constructor.name,this[Ue]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ie]&&Object.setPrototypeOf(this,this[Ue])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).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[ke].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 e,o,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!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],o=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(...e,...o).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((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}Ee=ke,Re([w()],We.prototype,"exportpartsPrefix",void 0),Re([function(t,e){const o=()=>JSON.parse(JSON.stringify(t));return w({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!U(t,e),...null!=e?e:{}})}([])],We.prototype,"exportpartsPrefixes",void 0),Re([w()],We.prototype,"customStylesheet",void 0);const Le=me.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");bt`
86
+ .highlight-html-match {
87
+ background: ${Le};
88
+ }
89
+ `,bt`
86
90
  .ft-no-text-select {
87
91
  -webkit-touch-callout: none;
88
92
  -webkit-user-select: none;
@@ -114,118 +118,118 @@ class ue 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 Le=Symbol("elementInternals");var Ke,ze;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ze=null===(Ke=window.safari)||void 0===Ke?void 0:Ke.pushNotification)||void 0===ze||ze.toString());
121
+ `,window.ftReduxStores||(window.ftReduxStores={});const Ke=Symbol("elementInternals");var ze,Ze;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Ze=null===(ze=window.safari)||void 0===ze?void 0:ze.pushNotification)||void 0===Ze||Ze.toString());
118
122
  /**
119
123
  * @license
120
124
  * Copyright 2017 Google LLC
121
125
  * SPDX-License-Identifier: BSD-3-Clause
122
126
  */
123
- const Ze=1,Fe=2,De=t=>(...e)=>({_$litDirective$:t,values:e});let Ae=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
127
+ const Fe=1,De=2,Ae=t=>(...e)=>({_$litDirective$:t,values:e});let Me=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
124
128
  /**
125
129
  * @license
126
130
  * Copyright 2018 Google LLC
127
131
  * SPDX-License-Identifier: BSD-3-Clause
128
- */const Me=De(class extends Ae{constructor(t){if(super(t),t.type!==Ze||"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((e=>t[e])).join(" ")+" "}update(t,[e]){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 e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const i=!!e[t];i===this.it.has(t)||this.st?.has(t)||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return q}}),Be=Symbol.for(""),Pe=t=>{if(t?.r===Be)return t?._$litStatic$},He=t=>({_$litStatic$:t,r:Be}),je=new Map,_e=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,p=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=Pe(n));)l+=r+e[++c],p=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),p){const t=a.join("$$lit$$");void 0===(e=je.get(t))&&(a.raw=a,je.set(t,e=a)),o=s}return t(e,...o)})(J);
132
+ */const Be=Ae(class extends Me{constructor(t){if(super(t),t.type!==Fe||"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((e=>t[e])).join(" ")+" "}update(t,[e]){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 e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const i=!!e[t];i===this.it.has(t)||this.st?.has(t)||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return q}}),Pe=Symbol.for(""),He=t=>{if(t?.r===Pe)return t?._$litStatic$},je=t=>({_$litStatic$:t,r:Pe}),_e=new Map,Te=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,p=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=He(n));)l+=r+e[++c],p=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),p){const t=a.join("$$lit$$");void 0===(e=_e.get(t))&&(a.raw=a,_e.set(t,e=a)),o=s}return t(e,...o)})(J);
129
133
  /**
130
134
  * @license
131
135
  * Copyright 2018 Google LLC
132
136
  * SPDX-License-Identifier: BSD-3-Clause
133
- */var Te;!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"}(Te||(Te={}));const Ge=me.extend("--ft-typography-font-family","",Se.titleFont),Ve=me.extend("--ft-typography-font-family","",Se.contentFont),Ye={fontFamily:Ve,fontSize:me.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:me.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:me.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:me.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:me.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Je=me.extend("--ft-typography-title-font-family","",Ge),qe=me.extend("--ft-typography-title-font-size","",Ye.fontSize,"20px"),Xe=me.extend("--ft-typography-title-font-weight","",Ye.fontWeight,"normal"),Qe=me.extend("--ft-typography-title-letter-spacing","",Ye.letterSpacing,"0.15px"),to=me.extend("--ft-typography-title-line-height","",Ye.lineHeight,"1.2"),eo=me.extend("--ft-typography-title-text-transform","",Ye.textTransform,"inherit"),oo=me.extend("--ft-typography-title-dense-font-family","",Ge),io=me.extend("--ft-typography-title-dense-font-size","",Ye.fontSize,"14px"),ro=me.extend("--ft-typography-title-dense-font-weight","",Ye.fontWeight,"normal"),no=me.extend("--ft-typography-title-dense-letter-spacing","",Ye.letterSpacing,"0.105px"),ao=me.extend("--ft-typography-title-dense-line-height","",Ye.lineHeight,"1.7"),so=me.extend("--ft-typography-title-dense-text-transform","",Ye.textTransform,"inherit"),lo=me.extend("--ft-typography-subtitle1-font-family","",Ve),co=me.extend("--ft-typography-subtitle1-font-size","",Ye.fontSize,"16px"),po=me.extend("--ft-typography-subtitle1-font-weight","",Ye.fontWeight,"600"),fo=me.extend("--ft-typography-subtitle1-letter-spacing","",Ye.letterSpacing,"0.144px"),ho=me.extend("--ft-typography-subtitle1-line-height","",Ye.lineHeight,"1.5"),go=me.extend("--ft-typography-subtitle1-text-transform","",Ye.textTransform,"inherit"),uo=me.extend("--ft-typography-subtitle2-font-family","",Ve),yo=me.extend("--ft-typography-subtitle2-font-size","",Ye.fontSize,"14px"),bo=me.extend("--ft-typography-subtitle2-font-weight","",Ye.fontWeight,"normal"),mo=me.extend("--ft-typography-subtitle2-letter-spacing","",Ye.letterSpacing,"0.098px"),xo=me.extend("--ft-typography-subtitle2-line-height","",Ye.lineHeight,"1.7"),Oo=me.extend("--ft-typography-subtitle2-text-transform","",Ye.textTransform,"inherit"),vo={fontFamily:me.extend("--ft-typography-body1-font-family","",Ve),fontSize:me.extend("--ft-typography-body1-font-size","",Ye.fontSize,"16px"),fontWeight:me.extend("--ft-typography-body1-font-weight","",Ye.fontWeight,"normal"),letterSpacing:me.extend("--ft-typography-body1-letter-spacing","",Ye.letterSpacing,"0.496px"),lineHeight:me.extend("--ft-typography-body1-line-height","",Ye.lineHeight,"1.5"),textTransform:me.extend("--ft-typography-body1-text-transform","",Ye.textTransform,"inherit")},No=me.extend("--ft-typography-body2-font-family","",Ve),So=me.extend("--ft-typography-body2-font-size","",Ye.fontSize,"14px"),wo=me.extend("--ft-typography-body2-font-weight","",Ye.fontWeight,"normal"),Co=me.extend("--ft-typography-body2-letter-spacing","",Ye.letterSpacing,"0.252px"),$o=me.extend("--ft-typography-body2-line-height","",Ye.lineHeight,"1.4"),Eo=me.extend("--ft-typography-body2-text-transform","",Ye.textTransform,"inherit"),Ro={fontFamily:me.extend("--ft-typography-caption-font-family","",Ve),fontSize:me.extend("--ft-typography-caption-font-size","",Ye.fontSize,"12px"),fontWeight:me.extend("--ft-typography-caption-font-weight","",Ye.fontWeight,"normal"),letterSpacing:me.extend("--ft-typography-caption-letter-spacing","",Ye.letterSpacing,"0.396px"),lineHeight:me.extend("--ft-typography-caption-line-height","",Ye.lineHeight,"1.33"),textTransform:me.extend("--ft-typography-caption-text-transform","",Ye.textTransform,"inherit")},Uo=me.extend("--ft-typography-breadcrumb-font-family","",Ve),Io=me.extend("--ft-typography-breadcrumb-font-size","",Ye.fontSize,"10px"),ko=me.extend("--ft-typography-breadcrumb-font-weight","",Ye.fontWeight,"normal"),Wo=me.extend("--ft-typography-breadcrumb-letter-spacing","",Ye.letterSpacing,"0.33px"),Lo=me.extend("--ft-typography-breadcrumb-line-height","",Ye.lineHeight,"1.6"),Ko=me.extend("--ft-typography-breadcrumb-text-transform","",Ye.textTransform,"inherit"),zo=me.extend("--ft-typography-overline-font-family","",Ve),Zo=me.extend("--ft-typography-overline-font-size","",Ye.fontSize,"10px"),Fo=me.extend("--ft-typography-overline-font-weight","",Ye.fontWeight,"normal"),Do=me.extend("--ft-typography-overline-letter-spacing","",Ye.letterSpacing,"1.5px"),Ao=me.extend("--ft-typography-overline-line-height","",Ye.lineHeight,"1.6"),Mo=me.extend("--ft-typography-overline-text-transform","",Ye.textTransform,"uppercase"),Bo=me.extend("--ft-typography-button-font-family","",Ve),Po=me.extend("--ft-typography-button-font-size","",Ye.fontSize,"14px"),Ho=me.extend("--ft-typography-button-font-weight","",Ye.fontWeight,"600"),jo=me.extend("--ft-typography-button-letter-spacing","",Ye.letterSpacing,"1.246px"),_o=me.extend("--ft-typography-button-line-height","",Ye.lineHeight,"1.15"),To=me.extend("--ft-typography-button-text-transform","",Ye.textTransform,"uppercase"),Go=bt`
137
+ */var Ge;!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"}(Ge||(Ge={}));const Ve=me.extend("--ft-typography-font-family","",Se.titleFont),Ye=me.extend("--ft-typography-font-family","",Se.contentFont),Je={fontFamily:Ye,fontSize:me.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:me.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:me.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:me.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:me.create("--ft-typography-text-transform","","UNKNOWN","inherit")},qe=me.extend("--ft-typography-title-font-family","",Ve),Xe=me.extend("--ft-typography-title-font-size","",Je.fontSize,"20px"),Qe=me.extend("--ft-typography-title-font-weight","",Je.fontWeight,"normal"),to=me.extend("--ft-typography-title-letter-spacing","",Je.letterSpacing,"0.15px"),eo=me.extend("--ft-typography-title-line-height","",Je.lineHeight,"1.2"),oo=me.extend("--ft-typography-title-text-transform","",Je.textTransform,"inherit"),io=me.extend("--ft-typography-title-dense-font-family","",Ve),ro=me.extend("--ft-typography-title-dense-font-size","",Je.fontSize,"14px"),no=me.extend("--ft-typography-title-dense-font-weight","",Je.fontWeight,"normal"),ao=me.extend("--ft-typography-title-dense-letter-spacing","",Je.letterSpacing,"0.105px"),so=me.extend("--ft-typography-title-dense-line-height","",Je.lineHeight,"1.7"),lo=me.extend("--ft-typography-title-dense-text-transform","",Je.textTransform,"inherit"),co=me.extend("--ft-typography-subtitle1-font-family","",Ye),po=me.extend("--ft-typography-subtitle1-font-size","",Je.fontSize,"16px"),fo=me.extend("--ft-typography-subtitle1-font-weight","",Je.fontWeight,"600"),ho=me.extend("--ft-typography-subtitle1-letter-spacing","",Je.letterSpacing,"0.144px"),go=me.extend("--ft-typography-subtitle1-line-height","",Je.lineHeight,"1.5"),uo=me.extend("--ft-typography-subtitle1-text-transform","",Je.textTransform,"inherit"),yo=me.extend("--ft-typography-subtitle2-font-family","",Ye),bo=me.extend("--ft-typography-subtitle2-font-size","",Je.fontSize,"14px"),mo=me.extend("--ft-typography-subtitle2-font-weight","",Je.fontWeight,"normal"),xo=me.extend("--ft-typography-subtitle2-letter-spacing","",Je.letterSpacing,"0.098px"),Oo=me.extend("--ft-typography-subtitle2-line-height","",Je.lineHeight,"1.7"),vo=me.extend("--ft-typography-subtitle2-text-transform","",Je.textTransform,"inherit"),No={fontFamily:me.extend("--ft-typography-body1-font-family","",Ye),fontSize:me.extend("--ft-typography-body1-font-size","",Je.fontSize,"16px"),fontWeight:me.extend("--ft-typography-body1-font-weight","",Je.fontWeight,"normal"),letterSpacing:me.extend("--ft-typography-body1-letter-spacing","",Je.letterSpacing,"0.496px"),lineHeight:me.extend("--ft-typography-body1-line-height","",Je.lineHeight,"1.5"),textTransform:me.extend("--ft-typography-body1-text-transform","",Je.textTransform,"inherit")},So=me.extend("--ft-typography-body2-font-family","",Ye),wo=me.extend("--ft-typography-body2-font-size","",Je.fontSize,"14px"),Co=me.extend("--ft-typography-body2-font-weight","",Je.fontWeight,"normal"),$o=me.extend("--ft-typography-body2-letter-spacing","",Je.letterSpacing,"0.252px"),Eo=me.extend("--ft-typography-body2-line-height","",Je.lineHeight,"1.4"),Ro=me.extend("--ft-typography-body2-text-transform","",Je.textTransform,"inherit"),Uo={fontFamily:me.extend("--ft-typography-caption-font-family","",Ye),fontSize:me.extend("--ft-typography-caption-font-size","",Je.fontSize,"12px"),fontWeight:me.extend("--ft-typography-caption-font-weight","",Je.fontWeight,"normal"),letterSpacing:me.extend("--ft-typography-caption-letter-spacing","",Je.letterSpacing,"0.396px"),lineHeight:me.extend("--ft-typography-caption-line-height","",Je.lineHeight,"1.33"),textTransform:me.extend("--ft-typography-caption-text-transform","",Je.textTransform,"inherit")},Io=me.extend("--ft-typography-breadcrumb-font-family","",Ye),ko=me.extend("--ft-typography-breadcrumb-font-size","",Je.fontSize,"10px"),Wo=me.extend("--ft-typography-breadcrumb-font-weight","",Je.fontWeight,"normal"),Lo=me.extend("--ft-typography-breadcrumb-letter-spacing","",Je.letterSpacing,"0.33px"),Ko=me.extend("--ft-typography-breadcrumb-line-height","",Je.lineHeight,"1.6"),zo=me.extend("--ft-typography-breadcrumb-text-transform","",Je.textTransform,"inherit"),Zo=me.extend("--ft-typography-overline-font-family","",Ye),Fo=me.extend("--ft-typography-overline-font-size","",Je.fontSize,"10px"),Do=me.extend("--ft-typography-overline-font-weight","",Je.fontWeight,"normal"),Ao=me.extend("--ft-typography-overline-letter-spacing","",Je.letterSpacing,"1.5px"),Mo=me.extend("--ft-typography-overline-line-height","",Je.lineHeight,"1.6"),Bo=me.extend("--ft-typography-overline-text-transform","",Je.textTransform,"uppercase"),Po=me.extend("--ft-typography-button-font-family","",Ye),Ho=me.extend("--ft-typography-button-font-size","",Je.fontSize,"14px"),jo=me.extend("--ft-typography-button-font-weight","",Je.fontWeight,"600"),_o=me.extend("--ft-typography-button-letter-spacing","",Je.letterSpacing,"1.246px"),To=me.extend("--ft-typography-button-line-height","",Je.lineHeight,"1.15"),Go=me.extend("--ft-typography-button-text-transform","",Je.textTransform,"uppercase"),Vo=bt`
134
138
  .ft-typography--title {
135
- font-family: ${Je};
136
- font-size: ${qe};
137
- font-weight: ${Xe};
138
- letter-spacing: ${Qe};
139
- line-height: ${to};
140
- text-transform: ${eo};
141
- }
142
- `,Vo=bt`
143
- .ft-typography--title-dense {
144
- font-family: ${oo};
145
- font-size: ${io};
146
- font-weight: ${ro};
147
- letter-spacing: ${no};
148
- line-height: ${ao};
149
- text-transform: ${so};
139
+ font-family: ${qe};
140
+ font-size: ${Xe};
141
+ font-weight: ${Qe};
142
+ letter-spacing: ${to};
143
+ line-height: ${eo};
144
+ text-transform: ${oo};
150
145
  }
151
146
  `,Yo=bt`
152
- .ft-typography--subtitle1 {
153
- font-family: ${lo};
154
- font-size: ${co};
155
- font-weight: ${po};
156
- letter-spacing: ${fo};
157
- line-height: ${ho};
158
- text-transform: ${go};
147
+ .ft-typography--title-dense {
148
+ font-family: ${io};
149
+ font-size: ${ro};
150
+ font-weight: ${no};
151
+ letter-spacing: ${ao};
152
+ line-height: ${so};
153
+ text-transform: ${lo};
159
154
  }
160
155
  `,Jo=bt`
161
- .ft-typography--subtitle2 {
162
- font-family: ${uo};
163
- font-size: ${yo};
164
- font-weight: ${bo};
165
- letter-spacing: ${mo};
166
- line-height: ${xo};
167
- text-transform: ${Oo};
156
+ .ft-typography--subtitle1 {
157
+ font-family: ${co};
158
+ font-size: ${po};
159
+ font-weight: ${fo};
160
+ letter-spacing: ${ho};
161
+ line-height: ${go};
162
+ text-transform: ${uo};
168
163
  }
169
-
170
164
  `,qo=bt`
171
- .ft-typography--body1 {
172
- font-family: ${vo.fontFamily};
173
- font-size: ${vo.fontSize};
174
- font-weight: ${vo.fontWeight};
175
- letter-spacing: ${vo.letterSpacing};
176
- line-height: ${vo.lineHeight};
177
- text-transform: ${vo.textTransform};
165
+ .ft-typography--subtitle2 {
166
+ font-family: ${yo};
167
+ font-size: ${bo};
168
+ font-weight: ${mo};
169
+ letter-spacing: ${xo};
170
+ line-height: ${Oo};
171
+ text-transform: ${vo};
178
172
  }
173
+
179
174
  `,Xo=bt`
180
- .ft-typography--body2 {
181
- font-family: ${No};
182
- font-size: ${So};
183
- font-weight: ${wo};
184
- letter-spacing: ${Co};
185
- line-height: ${$o};
186
- text-transform: ${Eo};
175
+ .ft-typography--body1 {
176
+ font-family: ${No.fontFamily};
177
+ font-size: ${No.fontSize};
178
+ font-weight: ${No.fontWeight};
179
+ letter-spacing: ${No.letterSpacing};
180
+ line-height: ${No.lineHeight};
181
+ text-transform: ${No.textTransform};
187
182
  }
188
183
  `,Qo=bt`
189
- .ft-typography--caption {
190
- font-family: ${Ro.fontFamily};
191
- font-size: ${Ro.fontSize};
192
- font-weight: ${Ro.fontWeight};
193
- letter-spacing: ${Ro.letterSpacing};
194
- line-height: ${Ro.lineHeight};
195
- text-transform: ${Ro.textTransform};
184
+ .ft-typography--body2 {
185
+ font-family: ${So};
186
+ font-size: ${wo};
187
+ font-weight: ${Co};
188
+ letter-spacing: ${$o};
189
+ line-height: ${Eo};
190
+ text-transform: ${Ro};
196
191
  }
197
192
  `,ti=bt`
198
- .ft-typography--breadcrumb {
199
- font-family: ${Uo};
200
- font-size: ${Io};
201
- font-weight: ${ko};
202
- letter-spacing: ${Wo};
203
- line-height: ${Lo};
204
- text-transform: ${Ko};
193
+ .ft-typography--caption {
194
+ font-family: ${Uo.fontFamily};
195
+ font-size: ${Uo.fontSize};
196
+ font-weight: ${Uo.fontWeight};
197
+ letter-spacing: ${Uo.letterSpacing};
198
+ line-height: ${Uo.lineHeight};
199
+ text-transform: ${Uo.textTransform};
205
200
  }
206
201
  `,ei=bt`
207
- .ft-typography--overline {
208
- font-family: ${zo};
209
- font-size: ${Zo};
210
- font-weight: ${Fo};
211
- letter-spacing: ${Do};
212
- line-height: ${Ao};
213
- text-transform: ${Mo};
202
+ .ft-typography--breadcrumb {
203
+ font-family: ${Io};
204
+ font-size: ${ko};
205
+ font-weight: ${Wo};
206
+ letter-spacing: ${Lo};
207
+ line-height: ${Ko};
208
+ text-transform: ${zo};
214
209
  }
215
210
  `,oi=bt`
216
- .ft-typography--button {
217
- font-family: ${Bo};
218
- font-size: ${Po};
219
- font-weight: ${Ho};
220
- letter-spacing: ${jo};
221
- line-height: ${_o};
222
- text-transform: ${To};
211
+ .ft-typography--overline {
212
+ font-family: ${Zo};
213
+ font-size: ${Fo};
214
+ font-weight: ${Do};
215
+ letter-spacing: ${Ao};
216
+ line-height: ${Mo};
217
+ text-transform: ${Bo};
223
218
  }
224
219
  `,ii=bt`
220
+ .ft-typography--button {
221
+ font-family: ${Po};
222
+ font-size: ${Ho};
223
+ font-weight: ${jo};
224
+ letter-spacing: ${_o};
225
+ line-height: ${To};
226
+ text-transform: ${Go};
227
+ }
228
+ `,ri=bt`
225
229
  .ft-typography {
226
230
  vertical-align: inherit;
227
231
  }
228
- `,ri=[Object.keys(ve).map((t=>function(t){const e=ve[t];return bt`
232
+ `,ni=[Object.keys(ve).map((t=>function(t){const e=ve[t];return bt`
229
233
  .ft-typography--${yt(t)} {
230
234
  font-family: ${e.fontFamily};
231
235
  font-size: ${e.fontSize};
@@ -234,32 +238,32 @@ const Ze=1,Fe=2,De=t=>(...e)=>({_$litDirective$:t,values:e});let Ae=class{constr
234
238
  line-height: ${e.lineHeight};
235
239
  text-transform: ${e.textCase};
236
240
  }
237
- `}(t)))];var ni=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ai extends We{constructor(){super(...arguments),this.variant=Te.body1}render(){return this.element?_e`
238
- <${He(this.element)}
241
+ `}(t)))];var ai=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class si extends We{constructor(){super(...arguments),this.variant=Ge.body1}render(){return this.element?Te`
242
+ <${je(this.element)}
239
243
  class="ft-typography ft-typography--${this.variant}">
240
244
  <slot></slot>
241
- </${He(this.element)}>
242
- `:_e`
245
+ </${je(this.element)}>
246
+ `:Te`
243
247
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
244
- `}}ai.styles=[Go,Vo,Yo,Jo,qo,Xo,Qo,ti,ei,oi,ii,...ri],ni([C()],ai.prototype,"element",void 0),ni([C()],ai.prototype,"variant",void 0),I("ft-typography")(ai);const si={fontSize:me.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:me.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:me.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:me.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:me.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:me.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:me.extend("--ft-input-label-border-color","",Se.colorOutline),textColor:me.extend("--ft-input-label-text-color","",Se.colorOnSurfaceMedium),disabledTextColor:me.extend("--ft-input-label-disabled-text-color","",Se.colorOnSurfaceDisabled),colorSurface:me.external(Se.colorSurface,"Design system"),borderRadiusS:me.external(Se.borderRadiusS,"Design system"),colorError:me.external(Se.colorError,"Design system")},li=bt`
248
+ `}}si.styles=[Vo,Yo,Jo,qo,Xo,Qo,ti,ei,oi,ii,ri,...ni],ai([w()],si.prototype,"element",void 0),ai([w()],si.prototype,"variant",void 0),I("ft-typography")(si);const li={fontSize:me.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:me.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:me.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:me.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:me.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:me.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:me.extend("--ft-input-label-border-color","",Se.colorOutline),textColor:me.extend("--ft-input-label-text-color","",Se.colorOnSurfaceMedium),disabledTextColor:me.extend("--ft-input-label-disabled-text-color","",Se.colorOnSurfaceDisabled),colorSurface:me.external(Se.colorSurface,"Design system"),borderRadiusS:me.external(Se.borderRadiusS,"Design system"),colorError:me.external(Se.colorError,"Design system")},ci=bt`
245
249
  .ft-input-label {
246
250
  position: absolute;
247
251
  inset: 0;
248
252
  display: flex;
249
- background-color: ${si.colorSurface};
250
- border-radius: ${si.borderRadiusS} ${si.borderRadiusS} 0 0;
253
+ background-color: ${li.colorSurface};
254
+ border-radius: ${li.borderRadiusS} ${li.borderRadiusS} 0 0;
251
255
  }
252
256
 
253
257
  .ft-input-label--outlined {
254
- border-radius: ${si.borderRadiusS};
258
+ border-radius: ${li.borderRadiusS};
255
259
  }
256
260
 
257
261
  .ft-input-label {
258
- border-color: ${si.borderColor};
262
+ border-color: ${li.borderColor};
259
263
  }
260
264
 
261
265
  .ft-input-label.ft-input-label--in-error {
262
- border-color: ${si.colorError}
266
+ border-color: ${li.colorError}
263
267
  }
264
268
 
265
269
  .ft-input-label:before,
@@ -272,7 +276,7 @@ const Ze=1,Fe=2,De=t=>(...e)=>({_$litDirective$:t,values:e});let Ae=class{constr
272
276
  }
273
277
 
274
278
  .ft-input-label:before {
275
- width: calc(${si.horizontalSpacing} - 4px);
279
+ width: calc(${li.horizontalSpacing} - 4px);
276
280
  flex-shrink: 0;
277
281
  }
278
282
 
@@ -288,20 +292,20 @@ const Ze=1,Fe=2,De=t=>(...e)=>({_$litDirective$:t,values:e});let Ae=class{constr
288
292
  border-bottom-width: 1px;
289
293
  border-bottom-style: solid;
290
294
  border-color: inherit;
291
- color: ${si.textColor};
295
+ color: ${li.textColor};
292
296
  transition: font-size 250ms, line-height 250ms, color 250ms;
293
- max-width: calc(${si.labelMaxWidth} - 2 * (${si.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
297
+ max-width: calc(${li.labelMaxWidth} - 2 * (${li.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
294
298
  text-overflow: ellipsis;
295
- ${xe(Ro.fontSize,si.fontSize)};
296
- ${xe(Ro.lineHeight,si.fontSize)};
299
+ ${xe(Uo.fontSize,li.fontSize)};
300
+ ${xe(Uo.lineHeight,li.fontSize)};
297
301
  }
298
302
 
299
303
  .ft-input-label--in-error .ft-input-label--text {
300
- color: ${si.colorError}
304
+ color: ${li.colorError}
301
305
  }
302
306
 
303
307
  .ft-input-label--disabled .ft-input-label--text {
304
- color: ${si.disabledTextColor};
308
+ color: ${li.disabledTextColor};
305
309
  }
306
310
 
307
311
  .ft-input-label--hidden-text {
@@ -318,19 +322,19 @@ const Ze=1,Fe=2,De=t=>(...e)=>({_$litDirective$:t,values:e});let Ae=class{constr
318
322
  overflow: hidden;
319
323
  white-space: nowrap;
320
324
  text-overflow: ellipsis;
321
- padding: ${si.verticalSpacing} 4px;
322
- margin: calc(${si.verticalSpacing} * -1) 0;
325
+ padding: ${li.verticalSpacing} 4px;
326
+ margin: calc(${li.verticalSpacing} * -1) 0;
323
327
  max-width: 100%;
324
328
  box-sizing: border-box;
325
329
  }
326
330
 
327
331
  .ft-input-label--raised .ft-input-label--text {
328
- ${xe(Ro.fontSize,si.raisedFontSize)};
329
- ${xe(Ro.lineHeight,si.raisedFontSize)};
332
+ ${xe(Uo.fontSize,li.raisedFontSize)};
333
+ ${xe(Uo.lineHeight,li.raisedFontSize)};
330
334
  }
331
335
 
332
336
  .ft-input-label--raised .ft-input-label--floating-text {
333
- top: ${si.verticalSpacing};
337
+ top: ${li.verticalSpacing};
334
338
  }
335
339
 
336
340
  .ft-input-label--outlined .ft-input-label--text,
@@ -343,28 +347,28 @@ const Ze=1,Fe=2,De=t=>(...e)=>({_$litDirective$:t,values:e});let Ae=class{constr
343
347
  .ft-input-label--outlined:before {
344
348
  border-left-width: 1px;
345
349
  border-left-style: solid;
346
- border-radius: ${si.borderRadiusS} 0 0 ${si.borderRadiusS};
350
+ border-radius: ${li.borderRadiusS} 0 0 ${li.borderRadiusS};
347
351
  }
348
352
 
349
353
  .ft-input-label--outlined:after {
350
354
  border-right-width: 1px;
351
355
  border-right-style: solid;
352
- border-radius: 0 ${si.borderRadiusS} ${si.borderRadiusS} 0;
356
+ border-radius: 0 ${li.borderRadiusS} ${li.borderRadiusS} 0;
353
357
  }
354
358
 
355
359
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
356
360
  padding: 2px 4px;
357
- z-index: ${si.raisedZIndex};
358
- background-color: ${si.colorSurface};
359
- border-radius: ${si.borderRadiusS};
361
+ z-index: ${li.raisedZIndex};
362
+ background-color: ${li.colorSurface};
363
+ border-radius: ${li.borderRadiusS};
360
364
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
361
365
  }
362
366
 
363
367
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
364
368
  border-top: none;
365
369
  }
366
- `;var ci=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class pi extends We{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return Qt`
367
- <div class="${Me(t)}">
370
+ `;var pi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class fi extends We{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return Qt`
371
+ <div class="${Be(t)}">
368
372
  ${this.text?Qt`
369
373
  <div class="ft-input-label--text ft-typography--caption">
370
374
  <span class="ft-input-label--floating-text">${this.text}</span>
@@ -372,7 +376,7 @@ const Ze=1,Fe=2,De=t=>(...e)=>({_$litDirective$:t,values:e});let Ae=class{constr
372
376
  </div>
373
377
  `:null}
374
378
  </div>
375
- `}}pi.elementDefinitions={},pi.styles=[Qo,li],ci([C({type:String})],pi.prototype,"text",void 0),ci([C({type:Boolean})],pi.prototype,"raised",void 0),ci([C({type:Boolean})],pi.prototype,"outlined",void 0),ci([C({type:Boolean})],pi.prototype,"disabled",void 0),ci([C({type:Boolean})],pi.prototype,"error",void 0),I("ft-input-label")(pi);const fi=me.extend("--ft-ripple-color","",Se.colorContent),hi={color:fi,backgroundColor:me.extend("--ft-ripple-background-color","",fi),opacityContentOnSurfacePressed:me.external(Se.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:me.external(Se.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:me.external(Se.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:me.external(Se.opacityContentOnSurfaceSelected,"Design system"),borderRadius:me.create("--ft-ripple-border-radius","","SIZE","0px")},di=me.extend("--ft-ripple-color","",Se.colorPrimary),gi=di,ui=me.extend("--ft-ripple-background-color","",di),yi=me.extend("--ft-ripple-color","",Se.colorSecondary),bi=yi,mi=me.extend("--ft-ripple-background-color","",yi),xi=bt`
379
+ `}}fi.elementDefinitions={},fi.styles=[ti,ci],pi([w({type:String})],fi.prototype,"text",void 0),pi([w({type:Boolean})],fi.prototype,"raised",void 0),pi([w({type:Boolean})],fi.prototype,"outlined",void 0),pi([w({type:Boolean})],fi.prototype,"disabled",void 0),pi([w({type:Boolean})],fi.prototype,"error",void 0),I("ft-input-label")(fi);const hi=me.extend("--ft-ripple-color","",Se.colorContent),di={color:hi,backgroundColor:me.extend("--ft-ripple-background-color","",hi),opacityContentOnSurfacePressed:me.external(Se.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:me.external(Se.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:me.external(Se.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:me.external(Se.opacityContentOnSurfaceSelected,"Design system"),borderRadius:me.create("--ft-ripple-border-radius","","SIZE","0px")},gi=me.extend("--ft-ripple-color","",Se.colorPrimary),ui=gi,yi=me.extend("--ft-ripple-background-color","",gi),bi=me.extend("--ft-ripple-color","",Se.colorSecondary),mi=bi,xi=me.extend("--ft-ripple-background-color","",bi),Oi=bt`
376
380
  :host {
377
381
  display: contents;
378
382
  }
@@ -385,7 +389,7 @@ const Ze=1,Fe=2,De=t=>(...e)=>({_$litDirective$:t,values:e});let Ae=class{constr
385
389
 
386
390
  .ft-ripple:not(.ft-ripple--unbounded) {
387
391
  overflow: hidden;
388
- border-radius: ${hi.borderRadius};
392
+ border-radius: ${di.borderRadius};
389
393
  }
390
394
 
391
395
  .ft-ripple .ft-ripple--background,
@@ -419,27 +423,27 @@ const Ze=1,Fe=2,De=t=>(...e)=>({_$litDirective$:t,values:e});let Ae=class{constr
419
423
  }
420
424
 
421
425
  .ft-ripple .ft-ripple--background {
422
- background-color: ${hi.backgroundColor};
426
+ background-color: ${di.backgroundColor};
423
427
  }
424
428
 
425
429
  .ft-ripple .ft-ripple--effect {
426
- background-color: ${hi.color};
430
+ background-color: ${di.color};
427
431
  }
428
432
 
429
433
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
430
- background-color: ${mi};
434
+ background-color: ${xi};
431
435
  }
432
436
 
433
437
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
434
- background-color: ${bi};
438
+ background-color: ${mi};
435
439
  }
436
440
 
437
441
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
438
- background-color: ${ui};
442
+ background-color: ${yi};
439
443
  }
440
444
 
441
445
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
442
- background-color: ${gi};
446
+ background-color: ${ui};
443
447
  }
444
448
 
445
449
  .ft-ripple .ft-ripple--background {
@@ -469,39 +473,39 @@ const Ze=1,Fe=2,De=t=>(...e)=>({_$litDirective$:t,values:e});let Ae=class{constr
469
473
  }
470
474
 
471
475
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
472
- opacity: ${hi.opacityContentOnSurfaceHover};
476
+ opacity: ${di.opacityContentOnSurfaceHover};
473
477
  }
474
478
 
475
479
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
476
- opacity: ${hi.opacityContentOnSurfaceSelected};
480
+ opacity: ${di.opacityContentOnSurfaceSelected};
477
481
  }
478
482
 
479
483
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
480
- opacity: ${hi.opacityContentOnSurfaceFocused};
484
+ opacity: ${di.opacityContentOnSurfaceFocused};
481
485
  }
482
486
 
483
487
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
484
- opacity: ${hi.opacityContentOnSurfacePressed};
488
+ opacity: ${di.opacityContentOnSurfacePressed};
485
489
  transform: translate(-50%, -50%) scale(1);
486
490
  }
487
- `;var Oi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class vi extends We{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 e(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 e(10),this.moveRipple=t=>{var e,o;let{x:i,y:r}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{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`
491
+ `;var vi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ni extends We{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 e,o;let{x:i,y:r}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{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`
488
492
  <style>
489
493
  .ft-ripple .ft-ripple--effect {
490
494
  left: ${this.originX}px;
491
495
  top: ${this.originY}px;
492
496
  }
493
497
  </style>
494
- <div class="${Me(t)}">
498
+ <div class="${Be(t)}">
495
499
  <div class="ft-ripple--background"></div>
496
500
  <div class="ft-ripple--effect"></div>
497
501
  </div>
498
- `}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 e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.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,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}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 e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",o),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",o),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 e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.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 e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}vi.elementDefinitions={},vi.styles=xi,Oi([C({type:Boolean})],vi.prototype,"primary",void 0),Oi([C({type:Boolean})],vi.prototype,"secondary",void 0),Oi([C({type:Boolean})],vi.prototype,"unbounded",void 0),Oi([C({type:Boolean})],vi.prototype,"activated",void 0),Oi([C({type:Boolean})],vi.prototype,"selected",void 0),Oi([C({type:Boolean})],vi.prototype,"disabled",void 0),Oi([$()],vi.prototype,"hovered",void 0),Oi([$()],vi.prototype,"focused",void 0),Oi([$()],vi.prototype,"pressed",void 0),Oi([$()],vi.prototype,"rippling",void 0),Oi([$()],vi.prototype,"originX",void 0),Oi([$()],vi.prototype,"originY",void 0),Oi([R(".ft-ripple")],vi.prototype,"ripple",void 0),Oi([R(".ft-ripple--effect")],vi.prototype,"rippleEffect",void 0),I("ft-ripple")(vi);
502
+ `}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 e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.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,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}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 e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",o),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",o),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 e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.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 e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ni.elementDefinitions={},Ni.styles=Oi,vi([w({type:Boolean})],Ni.prototype,"primary",void 0),vi([w({type:Boolean})],Ni.prototype,"secondary",void 0),vi([w({type:Boolean})],Ni.prototype,"unbounded",void 0),vi([w({type:Boolean})],Ni.prototype,"activated",void 0),vi([w({type:Boolean})],Ni.prototype,"selected",void 0),vi([w({type:Boolean})],Ni.prototype,"disabled",void 0),vi([C()],Ni.prototype,"hovered",void 0),vi([C()],Ni.prototype,"focused",void 0),vi([C()],Ni.prototype,"pressed",void 0),vi([C()],Ni.prototype,"rippling",void 0),vi([C()],Ni.prototype,"originX",void 0),vi([C()],Ni.prototype,"originY",void 0),vi([E(".ft-ripple")],Ni.prototype,"ripple",void 0),vi([E(".ft-ripple--effect")],Ni.prototype,"rippleEffect",void 0),I("ft-ripple")(Ni);
499
503
  /**
500
504
  * @license
501
505
  * Copyright 2017 Google LLC
502
506
  * SPDX-License-Identifier: BSD-3-Clause
503
507
  */
504
- class Ni extends Ae{constructor(t){if(super(t),this.et=X,t.type!==Fe)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 e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ni.directiveName="unsafeHTML",Ni.resultType=1;const Si=De(Ni);var wi,Ci;!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;"}(wi||(wi={})),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;"}(Ci||(Ci={})),new Map([...["abw"].map((t=>[t,Ci.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,Ci.AUDIO])),...["avi"].map((t=>[t,Ci.AVI])),...["chm","xhs"].map((t=>[t,Ci.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,Ci.CODE])),...["csv"].map((t=>[t,Ci.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ci.DITA])),...["epub"].map((t=>[t,Ci.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ci.EXCEL])),...["flac"].map((t=>[t,Ci.FLAC])),...["gif"].map((t=>[t,Ci.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ci.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ci.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,Ci.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ci.JPEG])),...["json"].map((t=>[t,Ci.JSON])),...["m4a","m4p"].map((t=>[t,Ci.M4A])),...["mov","qt"].map((t=>[t,Ci.MOV])),...["mp3"].map((t=>[t,Ci.MP3])),...["mp4","m4v"].map((t=>[t,Ci.MP4])),...["ogg","oga"].map((t=>[t,Ci.OGG])),...["pdf","ps"].map((t=>[t,Ci.PDF])),...["png"].map((t=>[t,Ci.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ci.POWERPOINT])),...["rar"].map((t=>[t,Ci.RAR])),...["stp"].map((t=>[t,Ci.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ci.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,Ci.VIDEO])),...["wav"].map((t=>[t,Ci.WAV])),...["wma"].map((t=>[t,Ci.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ci.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ci.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ci.YAML])),...["zip"].map((t=>[t,Ci.ZIP]))]);const $i=me.create("--ft-icon-font-size","","SIZE","24px"),Ei=me.extend("--ft-icon-fluid-topics-font-family","",me.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),Ri=me.extend("--ft-icon-file-format-font-family","",me.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),Ui=me.extend("--ft-icon-material-font-family","",me.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),Ii=me.create("--ft-icon-vertical-align","","UNKNOWN","unset"),ki=bt`
508
+ class Si extends Me{constructor(t){if(super(t),this.et=X,t.type!==De)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 e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Si.directiveName="unsafeHTML",Si.resultType=1;const wi=Ae(Si);var Ci,$i;!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;"}(Ci||(Ci={})),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;"}($i||($i={})),new Map([...["abw"].map((t=>[t,$i.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,$i.AUDIO])),...["avi"].map((t=>[t,$i.AVI])),...["chm","xhs"].map((t=>[t,$i.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,$i.CODE])),...["csv"].map((t=>[t,$i.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,$i.DITA])),...["epub"].map((t=>[t,$i.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,$i.EXCEL])),...["flac"].map((t=>[t,$i.FLAC])),...["gif"].map((t=>[t,$i.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,$i.GZIP])),...["html","htm","xhtml"].map((t=>[t,$i.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,$i.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,$i.JPEG])),...["json"].map((t=>[t,$i.JSON])),...["m4a","m4p"].map((t=>[t,$i.M4A])),...["mov","qt"].map((t=>[t,$i.MOV])),...["mp3"].map((t=>[t,$i.MP3])),...["mp4","m4v"].map((t=>[t,$i.MP4])),...["ogg","oga"].map((t=>[t,$i.OGG])),...["pdf","ps"].map((t=>[t,$i.PDF])),...["png"].map((t=>[t,$i.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,$i.POWERPOINT])),...["rar"].map((t=>[t,$i.RAR])),...["stp"].map((t=>[t,$i.STP])),...["txt","rtf","md","mdown"].map((t=>[t,$i.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,$i.VIDEO])),...["wav"].map((t=>[t,$i.WAV])),...["wma"].map((t=>[t,$i.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,$i.WORD])),...["xml","xsl","rdf"].map((t=>[t,$i.XML])),...["yaml","yml","x-yaml"].map((t=>[t,$i.YAML])),...["zip"].map((t=>[t,$i.ZIP]))]);const Ei=me.create("--ft-icon-font-size","","SIZE","24px"),Ri=me.extend("--ft-icon-fluid-topics-font-family","",me.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),Ui=me.extend("--ft-icon-file-format-font-family","",me.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),Ii=me.extend("--ft-icon-material-font-family","",me.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),ki=me.create("--ft-icon-vertical-align","","UNKNOWN","unset"),Wi=bt`
505
509
  :host, i.ft-icon {
506
510
  display: inline-flex;
507
511
  align-items: center;
@@ -510,14 +514,14 @@ class Ni extends Ae{constructor(t){if(super(t),this.et=X,t.type!==Fe)throw Error
510
514
  }
511
515
 
512
516
  :host {
513
- width: ${$i};
514
- height: ${$i};
517
+ width: ${Ei};
518
+ height: ${Ei};
515
519
  }
516
520
 
517
521
  i.ft-icon {
518
522
  width: 100%;
519
523
  height: 100%;
520
- font-size: ${$i};
524
+ font-size: ${Ei};
521
525
  line-height: 1;
522
526
  font-weight: normal;
523
527
  text-transform: none;
@@ -528,33 +532,33 @@ class Ni extends Ae{constructor(t){if(super(t),this.et=X,t.type!==Fe)throw Error
528
532
  text-rendering: auto;
529
533
  -webkit-font-smoothing: antialiased;
530
534
  -moz-osx-font-smoothing: grayscale;
531
- vertical-align: ${Ii};
535
+ vertical-align: ${ki};
532
536
  }
533
537
 
534
538
  i.ft-icon.ft-icon--fluid-topics {
535
- font-family: ${Ei}, ft-icons, fticons, sans-serif;
539
+ font-family: ${Ri}, ft-icons, fticons, sans-serif;
536
540
 
537
541
  /* Ugly fix because font is broken */
538
- font-size: calc(0.75 * ${$i});
539
- line-height: ${$i};
542
+ font-size: calc(0.75 * ${Ei});
543
+ line-height: ${Ei};
540
544
  position: relative;
541
545
  top: -4%;
542
546
  justify-content: center;
543
547
  }
544
548
 
545
549
  .ft-icon--file-format {
546
- font-family: ${Ri}, ft-mime, sans-serif;
550
+ font-family: ${Ui}, ft-mime, sans-serif;
547
551
  }
548
552
 
549
553
  .ft-icon--material {
550
- font-family: ${Ui}, "Material Icons", sans-serif;
554
+ font-family: ${Ii}, "Material Icons", sans-serif;
551
555
  }
552
- `;var Wi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Wi||(Wi={}));var Li=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ki extends We{constructor(){super(...arguments),this.resolvedIcon=ee}render(){const t=this.variant&&Object.values(Wi).includes(this.variant)?this.variant:Wi.fluid_topics,e=t!==Wi.material||!!this.value;return Qt`
556
+ `;var Li;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Li||(Li={}));var Ki=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class zi extends We{constructor(){super(...arguments),this.resolvedIcon=ee}render(){const t=this.variant&&Object.values(Li).includes(this.variant)?this.variant:Li.fluid_topics,e=t!==Li.material||!!this.value;return Qt`
553
557
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
554
- ${Si(this.resolvedIcon)}
558
+ ${wi(this.resolvedIcon)}
555
559
  <slot ?hidden=${e}></slot>
556
560
  </i>
557
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case Wi.file_format:this.resolvedIcon=null!==(t=Ci[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Wi.material:this.resolvedIcon=this.value||ee;break;default:this.resolvedIcon=null!==(e=wi[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ki.elementDefinitions={},Ki.styles=ki,Li([C()],Ki.prototype,"variant",void 0),Li([C()],Ki.prototype,"value",void 0),Li([$()],Ki.prototype,"resolvedIcon",void 0),Li([R("slot")],Ki.prototype,"slottedContent",void 0),I("ft-icon")(Ki);const zi={fontSize:me.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:me.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:me.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:me.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:me.extend("--ft-text-field-helper-color","",Se.colorOnSurfaceMedium),colorPrimary:me.external(Se.colorPrimary,"Design system"),colorOnSurface:me.external(Se.colorOnSurface,"Design system"),colorOnSurfaceDisabled:me.external(Se.colorOnSurfaceDisabled,"Design system"),borderRadiusS:me.external(Se.borderRadiusS,"Design system"),colorError:me.external(Se.colorError,"Design system"),prefixColor:me.extend("--ft-text-field-prefix-color","",Se.colorOnSurfaceMedium),iconColor:me.extend("--ft-text-field-icon-color","",Se.colorOnSurfaceMedium),floatingZIndex:me.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:me.external(Se.colorSurface,"Design system"),colorOutline:me.external(Se.colorOutline,"Design system"),elevation02:me.external(Se.elevation02,"Design system"),suggestSize:me.create("--ft-text-field-suggest-size","","SIZE","300px")},Zi=bt`
561
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case Li.file_format:this.resolvedIcon=null!==(t=$i[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Li.material:this.resolvedIcon=this.value||ee;break;default:this.resolvedIcon=null!==(e=Ci[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}zi.elementDefinitions={},zi.styles=Wi,Ki([w()],zi.prototype,"variant",void 0),Ki([w()],zi.prototype,"value",void 0),Ki([C()],zi.prototype,"resolvedIcon",void 0),Ki([E("slot")],zi.prototype,"slottedContent",void 0),I("ft-icon")(zi);const Zi={fontSize:me.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:me.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:me.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:me.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:me.extend("--ft-text-field-helper-color","",Se.colorOnSurfaceMedium),colorPrimary:me.external(Se.colorPrimary,"Design system"),colorOnSurface:me.external(Se.colorOnSurface,"Design system"),colorOnSurfaceDisabled:me.external(Se.colorOnSurfaceDisabled,"Design system"),borderRadiusS:me.external(Se.borderRadiusS,"Design system"),colorError:me.external(Se.colorError,"Design system"),prefixColor:me.extend("--ft-text-field-prefix-color","",Se.colorOnSurfaceMedium),iconColor:me.extend("--ft-text-field-icon-color","",Se.colorOnSurfaceMedium),floatingZIndex:me.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:me.external(Se.colorSurface,"Design system"),colorOutline:me.external(Se.colorOutline,"Design system"),elevation02:me.external(Se.elevation02,"Design system"),suggestSize:me.create("--ft-text-field-suggest-size","","SIZE","300px")},Fi=bt`
558
562
  *:focus {
559
563
  outline: none;
560
564
  }
@@ -567,16 +571,16 @@ class Ni extends Ae{constructor(t){if(super(t),this.et=X,t.type!==Fe)throw Error
567
571
  }
568
572
 
569
573
  ft-input-label {
570
- ${xe(si.fontSize,zi.fontSize)};
571
- ${xe(si.raisedFontSize,zi.labelSize)};
572
- ${xe(si.verticalSpacing,zi.verticalSpacing)};
573
- ${xe(si.horizontalSpacing,zi.horizontalSpacing)};
574
+ ${xe(li.fontSize,Zi.fontSize)};
575
+ ${xe(li.raisedFontSize,Zi.labelSize)};
576
+ ${xe(li.verticalSpacing,Zi.verticalSpacing)};
577
+ ${xe(li.horizontalSpacing,Zi.horizontalSpacing)};
574
578
  }
575
579
 
576
580
  .ft-text-field--main-panel {
577
581
  position: relative;
578
582
  display: flex;
579
- height: calc(4 * ${zi.verticalSpacing} + ${zi.labelSize} + ${zi.fontSize});
583
+ height: calc(4 * ${Zi.verticalSpacing} + ${Zi.labelSize} + ${Zi.fontSize});
580
584
  }
581
585
 
582
586
  .ft-text-field--input-panel {
@@ -585,24 +589,24 @@ class Ni extends Ae{constructor(t){if(super(t),this.et=X,t.type!==Fe)throw Error
585
589
  display: flex;
586
590
  align-items: center;
587
591
  overflow: hidden;
588
- padding: 0 ${zi.horizontalSpacing};
592
+ padding: 0 ${Zi.horizontalSpacing};
589
593
 
590
- ${xe(vo.fontSize,zi.fontSize)};
591
- ${xe(vo.lineHeight,zi.fontSize)};
594
+ ${xe(No.fontSize,Zi.fontSize)};
595
+ ${xe(No.lineHeight,Zi.fontSize)};
592
596
  }
593
597
 
594
598
  .ft-text-field--input-panel ft-ripple {
595
- ${xe(hi.opacityContentOnSurfaceHover,"0.08")};
596
- ${xe(hi.opacityContentOnSurfacePressed,"0.04")};
599
+ ${xe(di.opacityContentOnSurfaceHover,"0.08")};
600
+ ${xe(di.opacityContentOnSurfacePressed,"0.04")};
597
601
  }
598
602
 
599
603
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
600
604
  align-items: flex-end;
601
- padding: 0 ${zi.horizontalSpacing} ${zi.verticalSpacing} ${zi.horizontalSpacing};
605
+ padding: 0 ${Zi.horizontalSpacing} ${Zi.verticalSpacing} ${Zi.horizontalSpacing};
602
606
  }
603
607
 
604
608
  .ft-text-field--prefix {
605
- color: ${zi.prefixColor};
609
+ color: ${Zi.prefixColor};
606
610
  margin-right: 2px;
607
611
  flex-shrink: 1;
608
612
  overflow: hidden;
@@ -621,15 +625,15 @@ class Ni extends Ae{constructor(t){if(super(t),this.et=X,t.type!==Fe)throw Error
621
625
  flex-shrink: 1;
622
626
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
623
627
 
624
- color: ${zi.colorOnSurface};
625
- padding: calc(2 * ${zi.verticalSpacing}) 0;
628
+ color: ${Zi.colorOnSurface};
629
+ padding: calc(2 * ${Zi.verticalSpacing}) 0;
626
630
  border: none;
627
631
  background: none;
628
632
  }
629
633
 
630
634
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
631
635
  padding-bottom: 0;
632
- padding-top: calc(${zi.labelSize} + 2 * ${zi.verticalSpacing});
636
+ padding-top: calc(${Zi.labelSize} + 2 * ${Zi.verticalSpacing});
633
637
  }
634
638
 
635
639
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -638,37 +642,37 @@ class Ni extends Ae{constructor(t){if(super(t),this.et=X,t.type!==Fe)throw Error
638
642
  }
639
643
 
640
644
  .ft-text-field--disabled .ft-text-field--input {
641
- color: ${zi.colorOnSurfaceDisabled};
645
+ color: ${Zi.colorOnSurfaceDisabled};
642
646
  }
643
647
 
644
648
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
645
- ${xe(si.borderColor,zi.colorPrimary)};
646
- ${xe(si.textColor,zi.colorPrimary)};
649
+ ${xe(li.borderColor,Zi.colorPrimary)};
650
+ ${xe(li.textColor,Zi.colorPrimary)};
647
651
  }
648
652
 
649
653
  .ft-text-field--filled .ft-text-field--input-panel {
650
- border-radius: ${zi.borderRadiusS} ${zi.borderRadiusS} 0 0;
654
+ border-radius: ${Zi.borderRadiusS} ${Zi.borderRadiusS} 0 0;
651
655
  }
652
656
 
653
657
  .ft-text-field--outlined .ft-text-field--input-panel {
654
- border-radius: ${zi.borderRadiusS};
658
+ border-radius: ${Zi.borderRadiusS};
655
659
  }
656
660
 
657
661
  .ft-text-field--helper-text {
658
- padding: 0 12px 0 ${zi.horizontalSpacing};
659
- color: ${zi.helperColor};
662
+ padding: 0 12px 0 ${Zi.horizontalSpacing};
663
+ color: ${Zi.helperColor};
660
664
  }
661
665
 
662
666
  .ft-text-field--in-error .ft-text-field--input,
663
667
  .ft-text-field--in-error .ft-text-field--helper-text,
664
668
  .ft-text-field--in-error .ft-text-field--prefix {
665
- color: ${zi.colorError};
669
+ color: ${Zi.colorError};
666
670
  }
667
671
 
668
672
  .ft-text-field--icon {
669
673
  align-self: center;
670
674
  margin-left: 8px;
671
- color: ${zi.iconColor};
675
+ color: ${Zi.iconColor};
672
676
  }
673
677
 
674
678
  .ft-text-field--container {
@@ -681,13 +685,13 @@ class Ni extends Ae{constructor(t){if(super(t),this.et=X,t.type!==Fe)throw Error
681
685
  position: absolute;
682
686
  left: 0;
683
687
  right: 0;
684
- z-index: ${zi.floatingZIndex};
685
- background: ${zi.colorSurface};
686
- border: 1px solid ${zi.colorOutline};
687
- border-radius: 0 0 ${zi.borderRadiusS} ${zi.borderRadiusS};
688
- box-shadow: ${zi.elevation02};
688
+ z-index: ${Zi.floatingZIndex};
689
+ background: ${Zi.colorSurface};
690
+ border: 1px solid ${Zi.colorOutline};
691
+ border-radius: 0 0 ${Zi.borderRadiusS} ${Zi.borderRadiusS};
692
+ box-shadow: ${Zi.elevation02};
689
693
  outline: none;
690
- max-height: ${zi.suggestSize};
694
+ max-height: ${Zi.suggestSize};
691
695
  overflow-y: auto;
692
696
  }
693
697
 
@@ -704,14 +708,14 @@ class Ni extends Ae{constructor(t){if(super(t),this.et=X,t.type!==Fe)throw Error
704
708
  }
705
709
 
706
710
  .ft-text-field--with-icon {
707
- ${xe(si.labelMaxWidth,`calc(100% - ${$i} - ${si.horizontalSpacing})`)};
711
+ ${xe(li.labelMaxWidth,`calc(100% - ${Ei} - ${li.horizontalSpacing})`)};
708
712
  }
709
713
 
710
714
  .ft-text-field--with-password ft-icon:hover {
711
715
  cursor: pointer;
712
716
  }
713
- `;var Fi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Di extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Le].form}constructor(...t){super(t),this[Le]=this.attachInternals(),this[Le].role=e}setFormValue(t){this[Le].setFormValue(t)}}}(We,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=wi.EYE_SLASH,this.passwordRevealedIcon=wi.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return Qt`
714
- <div class="${Me(t)}">
717
+ `;var Di=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ai extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Ke].form}constructor(...t){super(t),this[Ke]=this.attachInternals(),this[Ke].role=e}setFormValue(t){this[Ke].setFormValue(t)}}}(We,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=Ci.EYE_SLASH,this.passwordRevealedIcon=Ci.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return Qt`
718
+ <div class="${Be(t)}">
715
719
  <div class="ft-text-field--main-panel"
716
720
  @keydown=${this.handleKeyboardNavigation}
717
721
  @focusout=${this.onMainPanelBlur}>
@@ -766,12 +770,12 @@ class Ni extends Ae{constructor(t){if(super(t),this.et=X,t.type!==Fe)throw Error
766
770
  .variant=${this.iconVariant}
767
771
  .value=${this.icon}
768
772
  @click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
769
- `:ee}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,o;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),i=null===(o=this.suggestionsContainer)||void 0===o?void 0:o.getBoundingClientRect();t&&i&&(this.suggestionsOnTop=t.bottom+i.height>window.innerHeight&&t.top-i.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const o=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(o,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const o=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let i;i="ArrowDown"===t.key?o<this.visibleSuggestions.length-1?o+1:0:o>0?o-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[i])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}Di.elementDefinitions={"ft-input-label":pi,"ft-ripple":vi,"ft-typography":ai,"ft-icon":Ki},Di.styles=[qo,Zi],Fi([C()],Di.prototype,"label",void 0),Fi([C({noAccessor:!0})],Di.prototype,"value",null),Fi([$()],Di.prototype,"dispatchedValue",void 0),Fi([C()],Di.prototype,"helper",void 0),Fi([C({type:Boolean})],Di.prototype,"outlined",void 0),Fi([C({type:Boolean})],Di.prototype,"disabled",void 0),Fi([C({type:Boolean})],Di.prototype,"error",void 0),Fi([C()],Di.prototype,"prefix",void 0),Fi([C()],Di.prototype,"icon",void 0),Fi([C()],Di.prototype,"passwordHiddenIcon",void 0),Fi([C()],Di.prototype,"passwordRevealedIcon",void 0),Fi([C()],Di.prototype,"iconVariant",void 0),Fi([C({type:Boolean})],Di.prototype,"filterSuggestions",void 0),Fi([C({type:Number})],Di.prototype,"maxLength",void 0),Fi([C({type:Boolean})],Di.prototype,"password",void 0),Fi([$()],Di.prototype,"focused",void 0),Fi([$()],Di.prototype,"hidePassword",void 0),Fi([$()],Di.prototype,"suggestionsOnTop",void 0),Fi([$()],Di.prototype,"hideSuggestions",void 0),Fi([$()],Di.prototype,"visibleSuggestions",void 0),Fi([R(".ft-text-field--main-panel")],Di.prototype,"mainPanel",void 0),Fi([R(".ft-text-field--input")],Di.prototype,"input",void 0),Fi([R(".ft-text-field--suggestions")],Di.prototype,"suggestionsContainer",void 0),Fi([function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return E(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===r?o:o.filter((t=>t.matches(r)))}})}}
773
+ `:ee}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,o;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),i=null===(o=this.suggestionsContainer)||void 0===o?void 0:o.getBoundingClientRect();t&&i&&(this.suggestionsOnTop=t.bottom+i.height>window.innerHeight&&t.top-i.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const o=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(o,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const o=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let i;i="ArrowDown"===t.key?o<this.visibleSuggestions.length-1?o+1:0:o>0?o-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[i])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}Ai.elementDefinitions={"ft-input-label":fi,"ft-ripple":Ni,"ft-typography":si,"ft-icon":zi},Ai.styles=[Xo,Fi],Di([w()],Ai.prototype,"label",void 0),Di([w({noAccessor:!0})],Ai.prototype,"value",null),Di([C()],Ai.prototype,"dispatchedValue",void 0),Di([w()],Ai.prototype,"helper",void 0),Di([w({type:Boolean})],Ai.prototype,"outlined",void 0),Di([w({type:Boolean})],Ai.prototype,"disabled",void 0),Di([w({type:Boolean})],Ai.prototype,"error",void 0),Di([w()],Ai.prototype,"prefix",void 0),Di([w()],Ai.prototype,"icon",void 0),Di([w()],Ai.prototype,"passwordHiddenIcon",void 0),Di([w()],Ai.prototype,"passwordRevealedIcon",void 0),Di([w()],Ai.prototype,"iconVariant",void 0),Di([w({type:Boolean})],Ai.prototype,"filterSuggestions",void 0),Di([w({type:Number})],Ai.prototype,"maxLength",void 0),Di([w({type:Boolean})],Ai.prototype,"password",void 0),Di([C()],Ai.prototype,"focused",void 0),Di([C()],Ai.prototype,"hidePassword",void 0),Di([C()],Ai.prototype,"suggestionsOnTop",void 0),Di([C()],Ai.prototype,"hideSuggestions",void 0),Di([C()],Ai.prototype,"visibleSuggestions",void 0),Di([E(".ft-text-field--main-panel")],Ai.prototype,"mainPanel",void 0),Di([E(".ft-text-field--input")],Ai.prototype,"input",void 0),Di([E(".ft-text-field--suggestions")],Ai.prototype,"suggestionsContainer",void 0),Di([function(t){return(e,o)=>{const{slot:i,selector:r}=t??{},n="slot"+(i?`[name=${i}]`:":not([name])");return $(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===r?o:o.filter((t=>t.matches(r)))}})}}
770
774
  /**
771
775
  * @license
772
776
  * Copyright 2017 Google LLC
773
777
  * SPDX-License-Identifier: BSD-3-Clause
774
- */({selector:"ft-text-field-suggestion"})],Di.prototype,"suggestions",void 0);const Ai=bt`
778
+ */({selector:"ft-text-field-suggestion"})],Ai.prototype,"suggestions",void 0);const Mi=bt`
775
779
  .ft-text-field-suggestion {
776
780
  position: relative;
777
781
  padding: 8px 16px;
@@ -796,7 +800,7 @@ class Ni extends Ae{constructor(t){if(super(t),this.et=X,t.type!==Fe)throw Error
796
800
  slot {
797
801
  pointer-events: none;
798
802
  }
799
- `;var Mi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Bi extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Pi extends We{render(){return Qt`
803
+ `;var Bi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Pi extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Hi extends We{render(){return Qt`
800
804
  <div class="ft-text-field-suggestion"
801
805
  tabindex="-1"
802
806
  @keydown=${this.onKeyDown}
@@ -808,4 +812,4 @@ class Ni extends Ae{constructor(t){if(super(t),this.et=X,t.type!==Fe)throw Error
808
812
  <slot></slot>
809
813
  </ft-typography>
810
814
  </div>
811
- `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Bi(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Pi.elementDefinitions={"ft-ripple":vi,"ft-typography":ai,"ft-icon":Ki},Pi.styles=Ai,Mi([C()],Pi.prototype,"value",void 0),Mi([R(".ft-text-field-suggestion")],Pi.prototype,"container",void 0),Mi([function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return E(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}()],Pi.prototype,"assignedNodes",void 0),I("ft-text-field")(Di),I("ft-text-field-suggestion")(Pi),t.FtTextField=Di,t.FtTextFieldCssVariables=zi,t.FtTextFieldSuggestion=Pi,t.SuggestionSelectedEvent=Bi,t.styles=Zi,t.suggestionStyles=Ai}({});
815
+ `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Pi(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Hi.elementDefinitions={"ft-ripple":Ni,"ft-typography":si,"ft-icon":zi},Hi.styles=Mi,Bi([w()],Hi.prototype,"value",void 0),Bi([E(".ft-text-field-suggestion")],Hi.prototype,"container",void 0),Bi([function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return $(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}()],Hi.prototype,"assignedNodes",void 0),I("ft-text-field")(Ai),I("ft-text-field-suggestion")(Hi),t.FtTextField=Ai,t.FtTextFieldCssVariables=Zi,t.FtTextFieldSuggestion=Hi,t.SuggestionSelectedEvent=Pi,t.styles=Fi,t.suggestionStyles=Mi}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-text-field",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "A fluidtopics text field",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-icon": "1.1.1",
23
- "@fluid-topics/ft-input-label": "1.1.1",
24
- "@fluid-topics/ft-ripple": "1.1.1",
25
- "@fluid-topics/ft-typography": "1.1.1",
26
- "@fluid-topics/ft-wc-utils": "1.1.1",
22
+ "@fluid-topics/ft-icon": "1.1.3",
23
+ "@fluid-topics/ft-input-label": "1.1.3",
24
+ "@fluid-topics/ft-ripple": "1.1.3",
25
+ "@fluid-topics/ft-typography": "1.1.3",
26
+ "@fluid-topics/ft-wc-utils": "1.1.3",
27
27
  "lit": "3.1.0"
28
28
  },
29
- "gitHead": "ceae4aed142c27cbf6034f45bb6e3f562163cc15"
29
+ "gitHead": "0d44a470e710f185c37e42ee87be4481a3bdf793"
30
30
  }