@fluid-topics/ft-reader-topic-metadata 1.0.56 → 1.0.58

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.
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=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,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);d(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=e.call(o,t);c||(c=p(t),i.call(o,t,c)),this===window.customElements&&(s.set(n,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)r.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.pop()}get(t){const i=this._definitionsByTag.get(t);return i?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=s.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),n.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let i=t.getRootNode();if(!h(i)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},p=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=c(e)||window.customElements,n=o._getDefinition(i);return n?u(e,n):r.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){const t=n.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(i.has(r)){const t=this.getAttribute(r);o.call(this,r,n),e.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.call(this,o)})},f=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):f(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){f(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=v.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let b=[document];const x=(t,i,e=void 0)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){b.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const g=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){b.push(this),e.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==n.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new r(i)}})}}try{window.customElements.define("custom-element",null)}catch(Ae){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{if(null!==e)try{t.bind(window.customElements)(i,e,o)}catch(t){console.info(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){return this.callbacks=[t],this.debounce(i)}queue(t,i){return this.callbacks.push(t),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,i)=>{this.resolvePromise=t,this.rejectPromise=i}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,i;const e=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(i=this.resolvePromise)&&void 0!==i?i:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=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,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);d(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=e.call(o,t);c||(c=p(t),i.call(o,t,c)),this===window.customElements&&(s.set(n,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)r.delete(t),u(t,h,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.pop()}get(t){const i=this._definitionsByTag.get(t);return i?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=l;if(i)return l=void 0,i;const e=s.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),n.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let i=t.getRootNode();if(!h(i)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=a.get(i)?.getRootNode()||document)}return i.customElements},p=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=c(e)||window.customElements,n=o._getDefinition(i);return n?u(e,n):r.set(e,o),e}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){const t=n.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(i.has(r)){const t=this.getAttribute(r);o.call(this,r,n),e.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);n.call(this,o),e.call(this,o,t,null)}else n.call(this,o)})},f=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):f(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),n.set(t,i),l=t;try{new i.elementClass}catch(t){f(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=v.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let b=[document];const x=(t,i,e=void 0)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){b.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const g=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){b.push(this),e.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==n.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),n=i.get(o)||[];this[+e]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),i=[];for(const e of t){const t=n.get(e);t&&!0!==t.formAssociated||i.push(e)}return new r(i)}})}}try{window.customElements.define("custom-element",null)}catch(Le){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{if(null!==e)try{t.bind(window.customElements)(i,e,o)}catch(t){console.info(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){return this.callbacks=[t],this.debounce(i)}queue(t,i){return this.callbacks.push(t),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,i)=>{this.resolvePromise=t,this.rejectPromise=i}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,i;const e=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(i=this.resolvePromise)&&void 0!==i?i:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -56,7 +56,7 @@ const p=window,d=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"
56
56
  * Copyright 2017 Google LLC
57
57
  * SPDX-License-Identifier: BSD-3-Clause
58
58
  */
59
- var M;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:N}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.6.1");const R=window,z=R.trustedTypes,j=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,U="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,B="?"+F,T=`<${B}>`,I=document,A=()=>I.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,D="[ \t\n\f\r]",_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,H=/>/g,Z=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),K=/'/g,V=/"/g,J=/^(?:script|style|textarea|title)$/i,q=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),X=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),G=new WeakMap,Q=I.createTreeWalker(I,129,null,!1),tt=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=_;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,c=0;for(;c<e.length&&(s.lastIndex=c,l=s.exec(e),null!==l);)c=s.lastIndex,s===_?"!--"===l[1]?s=W:void 0!==l[1]?s=H:void 0!==l[2]?(J.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=Z):void 0!==l[3]&&(s=Z):s===Z?">"===l[0]?(s=null!=n?n:_,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Z:'"'===l[3]?V:K):s===V||s===K?s=Z:s===W||s===H?s=_:(s=Z,n=void 0);const p=s===Z&&t[i+1].startsWith("/>")?" ":"";r+=s===_?e+T:h>=0?(o.push(a),e.slice(0,h)+U+e.slice(h)+F+p):e+F+(-2===h?(o.push(void 0),i):p)}const a=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==j?j.createHTML(a):a,o]};class it{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=tt(t,i);if(this.el=it.createElement(l,e),Q.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Q.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(U)||i.startsWith(F)){const e=h[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+U).split(F),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?st:"?"===i[1]?lt:"@"===i[1]?ht:rt})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(J.test(o.tagName)){const t=o.textContent.split(F),i=t.length-1;if(i>0){o.textContent=z?z.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],A()),Q.nextNode(),a.push({type:2,index:++n});o.append(t[i],A())}}}else if(8===o.nodeType)if(o.data===B)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(F,t+1));)a.push({type:7,index:n}),t+=F.length-1}n++}}static createElement(t,i){const e=I.createElement("template");return e.innerHTML=t,e}}function et(t,i,e=t,o){var n,r,s,a;if(i===X)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=L(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(s=(a=e)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=et(t,l._$AS(t,i.values),l,o)),i}class ot{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:I).importNode(e,!0);Q.currentNode=n;let r=Q.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new nt(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new ct(r,this,t)),this._$AV.push(i),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=Q.nextNode(),s++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class nt{constructor(t,i,e,o){var n;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=et(this,t,i),L(t)?t===Y||null==t||""===t?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==X&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Y&&L(this._$AH)?this._$AA.nextSibling.data=t:this.$(I.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=it.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new ot(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=G.get(t.strings);return void 0===i&&G.set(t.strings,i=new it(t)),i}T(t){P(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new nt(this.k(A()),this.k(A()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class rt{constructor(t,i,e,o,n){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=et(this,t,i,0),r=!L(t)||t!==this._$AH&&t!==X,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=et(this,o[e+s],i,s),a===X&&(a=this._$AH[s]),r||(r=!L(a)||a!==this._$AH[s]),a===Y?t=Y:t!==Y&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class st extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Y?void 0:t}}const at=z?z.emptyScript:"";class lt extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Y?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class ht extends rt{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=et(this,t,i,0))&&void 0!==e?e:Y)===X)return;const o=this._$AH,n=t===Y&&o!==Y||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Y&&(o===Y||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class ct{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){et(this,t)}}const pt=R.litHtmlPolyfillSupport;null==pt||pt(it,nt),(null!==(M=R.litHtmlVersions)&&void 0!==M?M:R.litHtmlVersions=[]).push("2.7.3");
59
+ var R;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:N}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.6.1");const M=window,z=M.trustedTypes,j=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,U="$lit$",F=`lit$${(Math.random()+"").slice(9)}$`,B="?"+F,T=`<${B}>`,I=document,A=()=>I.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,P=Array.isArray,D="[ \t\n\f\r]",_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,K=/>/g,H=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,V=/"/g,J=/^(?:script|style|textarea|title)$/i,q=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),X=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Y=new WeakMap,Q=I.createTreeWalker(I,129,null,!1),tt=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=_;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,c=0;for(;c<e.length&&(s.lastIndex=c,l=s.exec(e),null!==l);)c=s.lastIndex,s===_?"!--"===l[1]?s=W:void 0!==l[1]?s=K:void 0!==l[2]?(J.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=H):void 0!==l[3]&&(s=H):s===H?">"===l[0]?(s=null!=n?n:_,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?H:'"'===l[3]?V:Z):s===V||s===Z?s=H:s===W||s===K?s=_:(s=H,n=void 0);const p=s===H&&t[i+1].startsWith("/>")?" ":"";r+=s===_?e+T:h>=0?(o.push(a),e.slice(0,h)+U+e.slice(h)+F+p):e+F+(-2===h?(o.push(void 0),i):p)}const a=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==j?j.createHTML(a):a,o]};class it{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=tt(t,i);if(this.el=it.createElement(l,e),Q.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Q.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(U)||i.startsWith(F)){const e=h[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+U).split(F),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?st:"?"===i[1]?lt:"@"===i[1]?ht:rt})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(J.test(o.tagName)){const t=o.textContent.split(F),i=t.length-1;if(i>0){o.textContent=z?z.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],A()),Q.nextNode(),a.push({type:2,index:++n});o.append(t[i],A())}}}else if(8===o.nodeType)if(o.data===B)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(F,t+1));)a.push({type:7,index:n}),t+=F.length-1}n++}}static createElement(t,i){const e=I.createElement("template");return e.innerHTML=t,e}}function et(t,i,e=t,o){var n,r,s,a;if(i===X)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=L(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(s=(a=e)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=et(t,l._$AS(t,i.values),l,o)),i}class ot{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:I).importNode(e,!0);Q.currentNode=n;let r=Q.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new nt(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new ct(r,this,t)),this._$AV.push(i),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=Q.nextNode(),s++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class nt{constructor(t,i,e,o){var n;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=et(this,t,i),L(t)?t===G||null==t||""===t?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==X&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>P(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==G&&L(this._$AH)?this._$AA.nextSibling.data=t:this.$(I.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=it.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new ot(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=Y.get(t.strings);return void 0===i&&Y.set(t.strings,i=new it(t)),i}T(t){P(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new nt(this.k(A()),this.k(A()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class rt{constructor(t,i,e,o,n){this.type=1,this._$AH=G,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=G}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=et(this,t,i,0),r=!L(t)||t!==this._$AH&&t!==X,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=et(this,o[e+s],i,s),a===X&&(a=this._$AH[s]),r||(r=!L(a)||a!==this._$AH[s]),a===G?t=G:t!==G&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class st extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}}const at=z?z.emptyScript:"";class lt extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==G?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class ht extends rt{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=et(this,t,i,0))&&void 0!==e?e:G)===X)return;const o=this._$AH,n=t===G&&o!==G||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==G&&(o===G||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class ct{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){et(this,t)}}const pt=M.litHtmlPolyfillSupport;null==pt||pt(it,nt),(null!==(R=M.litHtmlVersions)&&void 0!==R?R:M.litHtmlVersions=[]).push("2.7.3");
60
60
  /**
61
61
  * @license
62
62
  * Copyright 2017 Google LLC
@@ -94,118 +94,118 @@ var dt,ft;let ut=class extends N{constructor(){super(...arguments),this.renderOp
94
94
  display: inline-block;
95
95
  width: 0;
96
96
  }
97
- `;function Nt(t){var i;return null!==(i=null==t?void 0:t.isFtReduxStore)&&void 0!==i&&i}var Mt,Rt,zt;const jt=Symbol("internalReduxEventsUnsubscribers"),Ut=Symbol("internalStoresUnsubscribers"),Ft=Symbol("internalStores");class Bt extends kt{constructor(){super(...arguments),this[Mt]=new Map,this[Rt]=new Map,this[zt]=[]}update(t){var i;super.update(t),(null===(i=this.reduxReactiveProperties)||void 0===i?void 0:i.some((i=>t.has(i))))&&this.updateFromStores()}getUnnamedStore(){if(this[Ft].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ft].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ft].get(t)}addStore(t,i){var e;i=null!==(e=null!=i?i:Nt(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(i),this.setupStore(i,t)}removeStore(t){const i="string"==typeof t?t:t.name;this.unsubscribeFromStore(i),this[Ft].delete(i)}setupStore(t,i){this[Ft].set(t,i),this.subscribeToStore(t,i),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ft].forEach(((t,i)=>this.subscribeToStore(i,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,i)=>{const e=this.constructor.getPropertyOptions(i);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:i)){const e=this.getStore(t.store);e&&(t.store?this[Ut].has(t.store):this[Ut].size>0)&&(this[i]=t.selector(e.getState(),this))}}))}subscribeToStore(t,i){var e;this[Ut].set(t,i.subscribe((()=>this.updateFromStores()))),Nt(i)&&i.eventBus&&(null===(e=this.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||i.name===t.store)){const o=t=>this[e](t);i.eventBus.addEventListener(t.eventName,o),this[jt].push((()=>i.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ut].forEach(((t,i)=>this.unsubscribeFromStore(i))),this[jt].forEach((t=>t())),this[jt]=[]}unsubscribeFromStore(t){this[Ut].has(t)&&this[Ut].get(t)(),this[Ut].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}var Tt,It,At;Mt=Ut,Rt=Ft,zt=jt,window.ftReduxStores||(window.ftReduxStores={});const Lt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(At=null===(It=null===(Tt=window.safari)||void 0===Tt?void 0:Tt.pushNotification)||void 0===It?void 0:It.toString())&&void 0!==At?At:""),Pt=x`
97
+ `;function Nt(t){var i;return null!==(i=null==t?void 0:t.isFtReduxStore)&&void 0!==i&&i}var Rt,Mt,zt;const jt=Symbol("internalReduxEventsUnsubscribers"),Ut=Symbol("internalStoresUnsubscribers"),Ft=Symbol("internalStores");class Bt extends kt{constructor(){super(...arguments),this[Rt]=new Map,this[Mt]=new Map,this[zt]=[]}update(t){var i;super.update(t),(null===(i=this.reduxReactiveProperties)||void 0===i?void 0:i.some((i=>t.has(i))))&&this.updateFromStores()}getUnnamedStore(){if(this[Ft].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ft].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ft].get(t)}addStore(t,i){var e;i=null!==(e=null!=i?i:Nt(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(i),this.setupStore(i,t)}removeStore(t){const i="string"==typeof t?t:t.name;this.unsubscribeFromStore(i),this[Ft].delete(i)}setupStore(t,i){this[Ft].set(t,i),this.subscribeToStore(t,i),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ft].forEach(((t,i)=>this.subscribeToStore(i,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,i)=>{const e=this.constructor.getPropertyOptions(i);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:i)){const e=this.getStore(t.store);e&&(t.store?this[Ut].has(t.store):this[Ut].size>0)&&(this[i]=t.selector(e.getState(),this))}}))}subscribeToStore(t,i){var e;this[Ut].set(t,i.subscribe((()=>this.updateFromStores()))),Nt(i)&&i.eventBus&&(null===(e=this.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||i.name===t.store)){const o=t=>this[e](t);i.eventBus.addEventListener(t.eventName,o),this[jt].push((()=>i.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ut].forEach(((t,i)=>this.unsubscribeFromStore(i))),this[jt].forEach((t=>t())),this[jt]=[]}unsubscribeFromStore(t){this[Ut].has(t)&&this[Ut].get(t)(),this[Ut].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}var Tt,It,At;Rt=Ut,Mt=Ft,zt=jt,window.ftReduxStores||(window.ftReduxStores={});const Lt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(At=null===(It=null===(Tt=window.safari)||void 0===Tt?void 0:Tt.pushNotification)||void 0===It?void 0:It.toString())&&void 0!==At?At:""),Pt=x`
98
98
  :host {
99
99
  display: inline-block;
100
100
  }
101
- `;var Dt=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class _t extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Wt=Symbol("registerInterval");class Ht extends(function(t){var i;class e extends t{constructor(){super(...arguments),this[i]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Wt]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Wt]):this.dispatchEvent(new _t)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=Wt,Dt([n()],e.prototype,"stateManager",void 0),e}(Bt)){}var Zt=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Kt extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Vt=Symbol("registerInterval");class Jt extends(function(t){var i;class e extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[i]=0}connectedCallback(){super.connectedCallback(),this[Vt]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Vt]):this.dispatchEvent(new Kt)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return i=Vt,Zt([n()],e.prototype,"tocNode",void 0),Zt([n()],e.prototype,"disableContextInteractions",void 0),e}(Ht)){}
101
+ `;var Dt;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(Dt||(Dt={}));var _t=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Wt extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Kt=Symbol("registerInterval");class Ht extends(function(t){var i;class e extends t{constructor(){super(...arguments),this[i]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Kt]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Kt]):this.dispatchEvent(new Wt)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=Kt,_t([n()],e.prototype,"stateManager",void 0),e}(Bt)){}var Zt=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Vt extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Jt=Symbol("registerInterval");class qt extends(function(t){var i;class e extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[i]=0}connectedCallback(){super.connectedCallback(),this[Jt]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Jt]):this.dispatchEvent(new Vt)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return i=Jt,Zt([n()],e.prototype,"tocNode",void 0),Zt([n()],e.prototype,"disableContextInteractions",void 0),e}(Ht)){}
102
102
  /**
103
103
  * @license
104
104
  * Copyright 2020 Google LLC
105
105
  * SPDX-License-Identifier: BSD-3-Clause
106
- */const qt=Symbol.for(""),Xt=t=>{if((null==t?void 0:t.r)===qt)return null==t?void 0:t._$litStatic$},Yt=t=>({_$litStatic$:t,r:qt}),Gt=new Map,Qt=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(r=e[h],n=Xt(r));)l+=n+i[++h],c=!0;h!==o&&a.push(r),s.push(l),h++}if(h===o&&s.push(i[o]),c){const t=s.join("$$lit$$");void 0===(i=Gt.get(t))&&(s.raw=s,Gt.set(t,i=s)),e=a}return t(i,...e)})(q);var ti;!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"}(ti||(ti={}));const ii=bt.extend("--ft-typography-font-family",gt.titleFont),ei=bt.extend("--ft-typography-font-family",gt.contentFont),oi={fontFamily:ei,fontSize:bt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:bt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:bt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:bt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:bt.create("--ft-typography-text-transform","UNKNOWN","inherit")},ni=bt.extend("--ft-typography-title-font-family",ii),ri=bt.extend("--ft-typography-title-font-size",oi.fontSize,"20px"),si=bt.extend("--ft-typography-title-font-weight",oi.fontWeight,"normal"),ai=bt.extend("--ft-typography-title-letter-spacing",oi.letterSpacing,"0.15px"),li=bt.extend("--ft-typography-title-line-height",oi.lineHeight,"1.2"),hi=bt.extend("--ft-typography-title-text-transform",oi.textTransform,"inherit"),ci=bt.extend("--ft-typography-title-dense-font-family",ii),pi=bt.extend("--ft-typography-title-dense-font-size",oi.fontSize,"14px"),di=bt.extend("--ft-typography-title-dense-font-weight",oi.fontWeight,"normal"),fi=bt.extend("--ft-typography-title-dense-letter-spacing",oi.letterSpacing,"0.105px"),ui=bt.extend("--ft-typography-title-dense-line-height",oi.lineHeight,"1.7"),vi=bt.extend("--ft-typography-title-dense-text-transform",oi.textTransform,"inherit"),bi=bt.extend("--ft-typography-subtitle1-font-family",ei),xi=bt.extend("--ft-typography-subtitle1-font-size",oi.fontSize,"16px"),gi=bt.extend("--ft-typography-subtitle1-font-weight",oi.fontWeight,"600"),yi=bt.extend("--ft-typography-subtitle1-letter-spacing",oi.letterSpacing,"0.144px"),mi=bt.extend("--ft-typography-subtitle1-line-height",oi.lineHeight,"1.5"),wi=bt.extend("--ft-typography-subtitle1-text-transform",oi.textTransform,"inherit"),$i=bt.extend("--ft-typography-subtitle2-font-family",ei),Oi=bt.extend("--ft-typography-subtitle2-font-size",oi.fontSize,"14px"),Si=bt.extend("--ft-typography-subtitle2-font-weight",oi.fontWeight,"normal"),ki=bt.extend("--ft-typography-subtitle2-letter-spacing",oi.letterSpacing,"0.098px"),Ci=bt.extend("--ft-typography-subtitle2-line-height",oi.lineHeight,"1.7"),Ei=bt.extend("--ft-typography-subtitle2-text-transform",oi.textTransform,"inherit"),Ni=bt.extend("--ft-typography-body1-font-family",ei),Mi=bt.extend("--ft-typography-body1-font-size",oi.fontSize,"16px"),Ri=bt.extend("--ft-typography-body1-font-weight",oi.fontWeight,"normal"),zi=bt.extend("--ft-typography-body1-letter-spacing",oi.letterSpacing,"0.496px"),ji=bt.extend("--ft-typography-body1-line-height",oi.lineHeight,"1.5"),Ui=bt.extend("--ft-typography-body1-text-transform",oi.textTransform,"inherit"),Fi={fontFamily:bt.extend("--ft-typography-body2-font-family",ei),fontSize:bt.extend("--ft-typography-body2-font-size",oi.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-body2-font-weight",oi.fontWeight,"normal"),letterSpacing:bt.extend("--ft-typography-body2-letter-spacing",oi.letterSpacing,"0.252px"),lineHeight:bt.extend("--ft-typography-body2-line-height",oi.lineHeight,"1.4"),textTransform:bt.extend("--ft-typography-body2-text-transform",oi.textTransform,"inherit")},Bi=bt.extend("--ft-typography-caption-font-family",ei),Ti=bt.extend("--ft-typography-caption-font-size",oi.fontSize,"12px"),Ii=bt.extend("--ft-typography-caption-font-weight",oi.fontWeight,"normal"),Ai=bt.extend("--ft-typography-caption-letter-spacing",oi.letterSpacing,"0.396px"),Li=bt.extend("--ft-typography-caption-line-height",oi.lineHeight,"1.33"),Pi=bt.extend("--ft-typography-caption-text-transform",oi.textTransform,"inherit"),Di=bt.extend("--ft-typography-breadcrumb-font-family",ei),_i=bt.extend("--ft-typography-breadcrumb-font-size",oi.fontSize,"10px"),Wi=bt.extend("--ft-typography-breadcrumb-font-weight",oi.fontWeight,"normal"),Hi=bt.extend("--ft-typography-breadcrumb-letter-spacing",oi.letterSpacing,"0.33px"),Zi=bt.extend("--ft-typography-breadcrumb-line-height",oi.lineHeight,"1.6"),Ki=bt.extend("--ft-typography-breadcrumb-text-transform",oi.textTransform,"inherit"),Vi=bt.extend("--ft-typography-overline-font-family",ei),Ji=bt.extend("--ft-typography-overline-font-size",oi.fontSize,"10px"),qi=bt.extend("--ft-typography-overline-font-weight",oi.fontWeight,"normal"),Xi=bt.extend("--ft-typography-overline-letter-spacing",oi.letterSpacing,"1.5px"),Yi=bt.extend("--ft-typography-overline-line-height",oi.lineHeight,"1.6"),Gi=bt.extend("--ft-typography-overline-text-transform",oi.textTransform,"uppercase"),Qi={fontFamily:bt.extend("--ft-typography-button-font-family",ei),fontSize:bt.extend("--ft-typography-button-font-size",oi.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-button-font-weight",oi.fontWeight,"600"),letterSpacing:bt.extend("--ft-typography-button-letter-spacing",oi.letterSpacing,"1.246px"),lineHeight:bt.extend("--ft-typography-button-line-height",oi.lineHeight,"1.15"),textTransform:bt.extend("--ft-typography-button-text-transform",oi.textTransform,"uppercase")},te=x`
106
+ */const Xt=Symbol.for(""),Gt=t=>{if((null==t?void 0:t.r)===Xt)return null==t?void 0:t._$litStatic$},Yt=t=>({_$litStatic$:t,r:Xt}),Qt=new Map,ti=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(r=e[h],n=Gt(r));)l+=n+i[++h],c=!0;h!==o&&a.push(r),s.push(l),h++}if(h===o&&s.push(i[o]),c){const t=s.join("$$lit$$");void 0===(i=Qt.get(t))&&(s.raw=s,Qt.set(t,i=s)),e=a}return t(i,...e)})(q);var ii;!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"}(ii||(ii={}));const ei=bt.extend("--ft-typography-font-family",gt.titleFont),oi=bt.extend("--ft-typography-font-family",gt.contentFont),ni={fontFamily:oi,fontSize:bt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:bt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:bt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:bt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:bt.create("--ft-typography-text-transform","UNKNOWN","inherit")},ri=bt.extend("--ft-typography-title-font-family",ei),si=bt.extend("--ft-typography-title-font-size",ni.fontSize,"20px"),ai=bt.extend("--ft-typography-title-font-weight",ni.fontWeight,"normal"),li=bt.extend("--ft-typography-title-letter-spacing",ni.letterSpacing,"0.15px"),hi=bt.extend("--ft-typography-title-line-height",ni.lineHeight,"1.2"),ci=bt.extend("--ft-typography-title-text-transform",ni.textTransform,"inherit"),pi=bt.extend("--ft-typography-title-dense-font-family",ei),di=bt.extend("--ft-typography-title-dense-font-size",ni.fontSize,"14px"),fi=bt.extend("--ft-typography-title-dense-font-weight",ni.fontWeight,"normal"),ui=bt.extend("--ft-typography-title-dense-letter-spacing",ni.letterSpacing,"0.105px"),vi=bt.extend("--ft-typography-title-dense-line-height",ni.lineHeight,"1.7"),bi=bt.extend("--ft-typography-title-dense-text-transform",ni.textTransform,"inherit"),xi=bt.extend("--ft-typography-subtitle1-font-family",oi),gi=bt.extend("--ft-typography-subtitle1-font-size",ni.fontSize,"16px"),yi=bt.extend("--ft-typography-subtitle1-font-weight",ni.fontWeight,"600"),mi=bt.extend("--ft-typography-subtitle1-letter-spacing",ni.letterSpacing,"0.144px"),wi=bt.extend("--ft-typography-subtitle1-line-height",ni.lineHeight,"1.5"),$i=bt.extend("--ft-typography-subtitle1-text-transform",ni.textTransform,"inherit"),Oi=bt.extend("--ft-typography-subtitle2-font-family",oi),Si=bt.extend("--ft-typography-subtitle2-font-size",ni.fontSize,"14px"),ki=bt.extend("--ft-typography-subtitle2-font-weight",ni.fontWeight,"normal"),Ci=bt.extend("--ft-typography-subtitle2-letter-spacing",ni.letterSpacing,"0.098px"),Ei=bt.extend("--ft-typography-subtitle2-line-height",ni.lineHeight,"1.7"),Ni=bt.extend("--ft-typography-subtitle2-text-transform",ni.textTransform,"inherit"),Ri=bt.extend("--ft-typography-body1-font-family",oi),Mi=bt.extend("--ft-typography-body1-font-size",ni.fontSize,"16px"),zi=bt.extend("--ft-typography-body1-font-weight",ni.fontWeight,"normal"),ji=bt.extend("--ft-typography-body1-letter-spacing",ni.letterSpacing,"0.496px"),Ui=bt.extend("--ft-typography-body1-line-height",ni.lineHeight,"1.5"),Fi=bt.extend("--ft-typography-body1-text-transform",ni.textTransform,"inherit"),Bi={fontFamily:bt.extend("--ft-typography-body2-font-family",oi),fontSize:bt.extend("--ft-typography-body2-font-size",ni.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-body2-font-weight",ni.fontWeight,"normal"),letterSpacing:bt.extend("--ft-typography-body2-letter-spacing",ni.letterSpacing,"0.252px"),lineHeight:bt.extend("--ft-typography-body2-line-height",ni.lineHeight,"1.4"),textTransform:bt.extend("--ft-typography-body2-text-transform",ni.textTransform,"inherit")},Ti=bt.extend("--ft-typography-caption-font-family",oi),Ii=bt.extend("--ft-typography-caption-font-size",ni.fontSize,"12px"),Ai=bt.extend("--ft-typography-caption-font-weight",ni.fontWeight,"normal"),Li=bt.extend("--ft-typography-caption-letter-spacing",ni.letterSpacing,"0.396px"),Pi=bt.extend("--ft-typography-caption-line-height",ni.lineHeight,"1.33"),Di=bt.extend("--ft-typography-caption-text-transform",ni.textTransform,"inherit"),_i=bt.extend("--ft-typography-breadcrumb-font-family",oi),Wi=bt.extend("--ft-typography-breadcrumb-font-size",ni.fontSize,"10px"),Ki=bt.extend("--ft-typography-breadcrumb-font-weight",ni.fontWeight,"normal"),Hi=bt.extend("--ft-typography-breadcrumb-letter-spacing",ni.letterSpacing,"0.33px"),Zi=bt.extend("--ft-typography-breadcrumb-line-height",ni.lineHeight,"1.6"),Vi=bt.extend("--ft-typography-breadcrumb-text-transform",ni.textTransform,"inherit"),Ji=bt.extend("--ft-typography-overline-font-family",oi),qi=bt.extend("--ft-typography-overline-font-size",ni.fontSize,"10px"),Xi=bt.extend("--ft-typography-overline-font-weight",ni.fontWeight,"normal"),Gi=bt.extend("--ft-typography-overline-letter-spacing",ni.letterSpacing,"1.5px"),Yi=bt.extend("--ft-typography-overline-line-height",ni.lineHeight,"1.6"),Qi=bt.extend("--ft-typography-overline-text-transform",ni.textTransform,"uppercase"),te={fontFamily:bt.extend("--ft-typography-button-font-family",oi),fontSize:bt.extend("--ft-typography-button-font-size",ni.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-button-font-weight",ni.fontWeight,"600"),letterSpacing:bt.extend("--ft-typography-button-letter-spacing",ni.letterSpacing,"1.246px"),lineHeight:bt.extend("--ft-typography-button-line-height",ni.lineHeight,"1.15"),textTransform:bt.extend("--ft-typography-button-text-transform",ni.textTransform,"uppercase")},ie=x`
107
107
  .ft-typography--title {
108
- font-family: ${ni};
109
- font-size: ${ri};
110
- font-weight: ${si};
111
- letter-spacing: ${ai};
112
- line-height: ${li};
113
- text-transform: ${hi};
114
- }
115
- `,ie=x`
116
- .ft-typography--title-dense {
117
- font-family: ${ci};
118
- font-size: ${pi};
119
- font-weight: ${di};
120
- letter-spacing: ${fi};
121
- line-height: ${ui};
122
- text-transform: ${vi};
108
+ font-family: ${ri};
109
+ font-size: ${si};
110
+ font-weight: ${ai};
111
+ letter-spacing: ${li};
112
+ line-height: ${hi};
113
+ text-transform: ${ci};
123
114
  }
124
115
  `,ee=x`
125
- .ft-typography--subtitle1 {
126
- font-family: ${bi};
127
- font-size: ${xi};
128
- font-weight: ${gi};
129
- letter-spacing: ${yi};
130
- line-height: ${mi};
131
- text-transform: ${wi};
116
+ .ft-typography--title-dense {
117
+ font-family: ${pi};
118
+ font-size: ${di};
119
+ font-weight: ${fi};
120
+ letter-spacing: ${ui};
121
+ line-height: ${vi};
122
+ text-transform: ${bi};
132
123
  }
133
124
  `,oe=x`
125
+ .ft-typography--subtitle1 {
126
+ font-family: ${xi};
127
+ font-size: ${gi};
128
+ font-weight: ${yi};
129
+ letter-spacing: ${mi};
130
+ line-height: ${wi};
131
+ text-transform: ${$i};
132
+ }
133
+ `,ne=x`
134
134
  .ft-typography--subtitle2 {
135
- font-family: ${$i};
136
- font-size: ${Oi};
137
- font-weight: ${Si};
138
- letter-spacing: ${ki};
139
- line-height: ${Ci};
140
- text-transform: ${Ei};
135
+ font-family: ${Oi};
136
+ font-size: ${Si};
137
+ font-weight: ${ki};
138
+ letter-spacing: ${Ci};
139
+ line-height: ${Ei};
140
+ text-transform: ${Ni};
141
141
  }
142
142
 
143
- `,ne=x`
143
+ `,re=x`
144
144
  .ft-typography--body1 {
145
- font-family: ${Ni};
145
+ font-family: ${Ri};
146
146
  font-size: ${Mi};
147
- font-weight: ${Ri};
148
- letter-spacing: ${zi};
149
- line-height: ${ji};
150
- text-transform: ${Ui};
147
+ font-weight: ${zi};
148
+ letter-spacing: ${ji};
149
+ line-height: ${Ui};
150
+ text-transform: ${Fi};
151
151
  }
152
- `,re=x`
152
+ `,se=x`
153
153
  .ft-typography--body2 {
154
- font-family: ${Fi.fontFamily};
155
- font-size: ${Fi.fontSize};
156
- font-weight: ${Fi.fontWeight};
157
- letter-spacing: ${Fi.letterSpacing};
158
- line-height: ${Fi.lineHeight};
159
- text-transform: ${Fi.textTransform};
154
+ font-family: ${Bi.fontFamily};
155
+ font-size: ${Bi.fontSize};
156
+ font-weight: ${Bi.fontWeight};
157
+ letter-spacing: ${Bi.letterSpacing};
158
+ line-height: ${Bi.lineHeight};
159
+ text-transform: ${Bi.textTransform};
160
160
  }
161
- `,se=x`
161
+ `,ae=x`
162
162
  .ft-typography--caption {
163
- font-family: ${Bi};
164
- font-size: ${Ti};
165
- font-weight: ${Ii};
166
- letter-spacing: ${Ai};
167
- line-height: ${Li};
168
- text-transform: ${Pi};
163
+ font-family: ${Ti};
164
+ font-size: ${Ii};
165
+ font-weight: ${Ai};
166
+ letter-spacing: ${Li};
167
+ line-height: ${Pi};
168
+ text-transform: ${Di};
169
169
  }
170
- `,ae=x`
170
+ `,le=x`
171
171
  .ft-typography--breadcrumb {
172
- font-family: ${Di};
173
- font-size: ${_i};
174
- font-weight: ${Wi};
172
+ font-family: ${_i};
173
+ font-size: ${Wi};
174
+ font-weight: ${Ki};
175
175
  letter-spacing: ${Hi};
176
176
  line-height: ${Zi};
177
- text-transform: ${Ki};
177
+ text-transform: ${Vi};
178
178
  }
179
- `,le=x`
179
+ `,he=x`
180
180
  .ft-typography--overline {
181
- font-family: ${Vi};
182
- font-size: ${Ji};
183
- font-weight: ${qi};
184
- letter-spacing: ${Xi};
181
+ font-family: ${Ji};
182
+ font-size: ${qi};
183
+ font-weight: ${Xi};
184
+ letter-spacing: ${Gi};
185
185
  line-height: ${Yi};
186
- text-transform: ${Gi};
187
- }
188
- `,he=x`
189
- .ft-typography--button {
190
- font-family: ${Qi.fontFamily};
191
- font-size: ${Qi.fontSize};
192
- font-weight: ${Qi.fontWeight};
193
- letter-spacing: ${Qi.letterSpacing};
194
- line-height: ${Qi.lineHeight};
195
- text-transform: ${Qi.textTransform};
186
+ text-transform: ${Qi};
196
187
  }
197
188
  `,ce=x`
189
+ .ft-typography--button {
190
+ font-family: ${te.fontFamily};
191
+ font-size: ${te.fontSize};
192
+ font-weight: ${te.fontWeight};
193
+ letter-spacing: ${te.letterSpacing};
194
+ line-height: ${te.lineHeight};
195
+ text-transform: ${te.textTransform};
196
+ }
197
+ `,pe=x`
198
198
  .ft-typography {
199
199
  vertical-align: inherit;
200
200
  }
201
- `;var pe=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class de extends kt{constructor(){super(...arguments),this.variant=ti.body1}render(){return this.element?Qt`
201
+ `;var de=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class fe extends kt{constructor(){super(...arguments),this.variant=ii.body1}render(){return this.element?ti`
202
202
  <${Yt(this.element)}
203
203
  class="ft-typography ft-typography--${this.variant}">
204
204
  <slot></slot>
205
205
  </${Yt(this.element)}>
206
- `:Qt`
206
+ `:ti`
207
207
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
208
- `}}de.styles=[te,ie,ee,oe,ne,re,se,ae,le,he,ce],pe([o()],de.prototype,"element",void 0),pe([o()],de.prototype,"variant",void 0),c("ft-typography")(de);const fe=bt.create("--ft-tooltip-distance","SIZE","4px"),ue=bt.create("--ft-tooltip-color","COLOR","#FFFFFF"),ve=bt.create("--ft-tooltip-background-color","COLOR","#666666"),be=bt.create("--ft-tooltip-z-index","NUMBER","100"),xe=bt.external(gt.borderRadiusS,"Design system"),ge=bt.create("--ft-tooltip-max-width","SIZE","150px"),ye=x`
208
+ `}}fe.styles=[ie,ee,oe,ne,re,se,ae,le,he,ce,pe],de([o()],fe.prototype,"element",void 0),de([o()],fe.prototype,"variant",void 0),c("ft-typography")(fe);const ue=bt.create("--ft-tooltip-distance","SIZE","4px"),ve=bt.create("--ft-tooltip-color","COLOR","#FFFFFF"),be=bt.create("--ft-tooltip-background-color","COLOR","#666666"),xe=bt.create("--ft-tooltip-z-index","NUMBER","100"),ge=bt.external(gt.borderRadiusS,"Design system"),ye=bt.create("--ft-tooltip-max-width","SIZE","150px"),me=x`
209
209
  .ft-tooltip--container {
210
210
  display: block;
211
211
  }
@@ -220,21 +220,21 @@ var dt,ft;let ut=class extends N{constructor(){super(...arguments),this.renderOp
220
220
  box-sizing: border-box;
221
221
  overflow: hidden;
222
222
  width: max-content;
223
- max-width: ${ge};
223
+ max-width: ${ye};
224
224
  text-align: center;
225
- padding: ${fe};
226
- z-index: ${be};
225
+ padding: ${ue};
226
+ z-index: ${xe};
227
227
  }
228
228
 
229
229
  .ft-tooltip--content {
230
230
  padding: 4px 8px;
231
- border-radius: ${xe};
232
- background-color: ${ve};
233
- color: ${ue};
231
+ border-radius: ${ge};
232
+ background-color: ${be};
233
+ color: ${ve};
234
234
  position: relative;
235
235
  word-break: break-word;
236
236
  }
237
- `;var me=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class we extends kt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i,this.revealDebouncer=new i}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return q`
237
+ `;var we=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class $e extends kt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i,this.revealDebouncer=new i}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return q`
238
238
  <div part="container"
239
239
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
240
240
  @mouseenter=${this.onHover}
@@ -252,24 +252,24 @@ var dt,ft;let ut=class extends N{constructor(){super(...arguments),this.renderOp
252
252
  </div>
253
253
  </div>
254
254
  </div>
255
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,o=(t.offsetHeight-e)/2,n=(t.offsetWidth-i)/2;let r=0,s=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":s=t.offsetTop-e-this.tooltip.offsetTop,r=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"bottom":s=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,r=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"left":s=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":s=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=r+"px",a.top=s+"px";const l=this.tooltip.getBoundingClientRect();let h=-l.x,c=l.x+l.width-window.innerWidth;a.left=r+Math.round(this.correctOutOfWindowPixels(h,c))+"px";let p=-l.y,d=l.y+l.height-window.innerHeight;a.top=s+Math.round(this.correctOutOfWindowPixels(p,d))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${ge})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,i){return Math.max(t,Math.min(0,-i))}}we.elementDefinitions={"ft-typography":de},we.styles=ye,me([o()],we.prototype,"text",void 0),me([o({type:Boolean})],we.prototype,"manual",void 0),me([o({type:Boolean})],we.prototype,"inline",void 0),me([o({type:Number})],we.prototype,"delay",void 0),me([o()],we.prototype,"position",void 0),me([
255
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,o=(t.offsetHeight-e)/2,n=(t.offsetWidth-i)/2;let r=0,s=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":s=t.offsetTop-e-this.tooltip.offsetTop,r=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"bottom":s=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,r=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"left":s=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":s=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=r+"px",a.top=s+"px";const l=this.tooltip.getBoundingClientRect();let h=-l.x,c=l.x+l.width-window.innerWidth;a.left=r+Math.round(this.correctOutOfWindowPixels(h,c))+"px";let p=-l.y,d=l.y+l.height-window.innerHeight;a.top=s+Math.round(this.correctOutOfWindowPixels(p,d))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${ye})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,i){return Math.max(t,Math.min(0,-i))}}$e.elementDefinitions={"ft-typography":fe},$e.styles=me,we([o()],$e.prototype,"text",void 0),we([o({type:Boolean})],$e.prototype,"manual",void 0),we([o({type:Boolean})],$e.prototype,"inline",void 0),we([o({type:Number})],$e.prototype,"delay",void 0),we([o()],$e.prototype,"position",void 0),we([
256
256
  /**
257
257
  * @license
258
258
  * Copyright 2017 Google LLC
259
259
  * SPDX-License-Identifier: BSD-3-Clause
260
260
  */
261
- function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(i?`[name=${i}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return e?s.filter((t=>t.matches(e))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:i,selector:e}):r({descriptor:t=>({get(){var t,i;const e="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==r?void 0:r.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],we.prototype,"slotNodes",void 0),me([s(".ft-tooltip--container")],we.prototype,"container",void 0),me([s(".ft-tooltip")],we.prototype,"tooltip",void 0),me([s(".ft-tooltip--content")],we.prototype,"tooltipContent",void 0),me([n()],we.prototype,"visible",void 0),c("ft-tooltip")(we);
261
+ function(t,i,e){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return r({descriptor:o=>({get(){var o;const n="slot"+(i?`[name=${i}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?l(r,t):[];return e?s.filter((t=>t.matches(e))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:i,selector:e}):r({descriptor:t=>({get(){var t,i;const e="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==r?void 0:r.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],$e.prototype,"slotNodes",void 0),we([s(".ft-tooltip--container")],$e.prototype,"container",void 0),we([s(".ft-tooltip")],$e.prototype,"tooltip",void 0),we([s(".ft-tooltip--content")],$e.prototype,"tooltipContent",void 0),we([n()],$e.prototype,"visible",void 0),c("ft-tooltip")($e);
262
262
  /**
263
263
  * @license
264
264
  * Copyright 2017 Google LLC
265
265
  * SPDX-License-Identifier: BSD-3-Clause
266
266
  */
267
- const $e=1,Oe=2,Se=t=>(...i)=>({_$litDirective$:t,values:i});class ke{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
267
+ const Oe=1,Se=2,ke=t=>(...i)=>({_$litDirective$:t,values:i});class Ce{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
268
268
  /**
269
269
  * @license
270
270
  * Copyright 2018 Google LLC
271
271
  * SPDX-License-Identifier: BSD-3-Clause
272
- */const Ce=Se(class extends ke{constructor(t){var i;if(super(t),t.type!==$e||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.nt)||void 0===e?void 0:e.has(t))&&this.it.add(t);return this.render(i)}const n=t.element.classList;this.it.forEach((t=>{t in i||(n.remove(t),this.it.delete(t))}));for(const t in i){const e=!!i[t];e===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return X}}),Ee=bt.extend("--ft-ripple-color",gt.colorContent),Ne={color:Ee,backgroundColor:bt.extend("--ft-ripple-background-color",Ee),opacityContentOnSurfacePressed:bt.external(gt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.external(gt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.external(gt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.external(gt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:bt.create("--ft-ripple-border-radius","SIZE","0px")},Me=bt.extend("--ft-ripple-color",gt.colorPrimary),Re=Me,ze=bt.extend("--ft-ripple-background-color",Me),je=bt.extend("--ft-ripple-color",gt.colorSecondary),Ue=je,Fe=bt.extend("--ft-ripple-background-color",je),Be=x`
272
+ */const Ee=ke(class extends Ce{constructor(t){var i;if(super(t),t.type!==Oe||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.nt)||void 0===e?void 0:e.has(t))&&this.it.add(t);return this.render(i)}const n=t.element.classList;this.it.forEach((t=>{t in i||(n.remove(t),this.it.delete(t))}));for(const t in i){const e=!!i[t];e===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(e?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return X}}),Ne=bt.extend("--ft-ripple-color",gt.colorContent),Re={color:Ne,backgroundColor:bt.extend("--ft-ripple-background-color",Ne),opacityContentOnSurfacePressed:bt.external(gt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.external(gt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.external(gt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.external(gt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:bt.create("--ft-ripple-border-radius","SIZE","0px")},Me=bt.extend("--ft-ripple-color",gt.colorPrimary),ze=Me,je=bt.extend("--ft-ripple-background-color",Me),Ue=bt.extend("--ft-ripple-color",gt.colorSecondary),Fe=Ue,Be=bt.extend("--ft-ripple-background-color",Ue),Te=x`
273
273
  :host {
274
274
  display: contents;
275
275
  }
@@ -282,7 +282,7 @@ const $e=1,Oe=2,Se=t=>(...i)=>({_$litDirective$:t,values:i});class ke{constructo
282
282
 
283
283
  .ft-ripple:not(.ft-ripple--unbounded) {
284
284
  overflow: hidden;
285
- border-radius: ${Ne.borderRadius};
285
+ border-radius: ${Re.borderRadius};
286
286
  }
287
287
 
288
288
  .ft-ripple .ft-ripple--background,
@@ -316,27 +316,27 @@ const $e=1,Oe=2,Se=t=>(...i)=>({_$litDirective$:t,values:i});class ke{constructo
316
316
  }
317
317
 
318
318
  .ft-ripple .ft-ripple--background {
319
- background-color: ${Ne.backgroundColor};
319
+ background-color: ${Re.backgroundColor};
320
320
  }
321
321
 
322
322
  .ft-ripple .ft-ripple--effect {
323
- background-color: ${Ne.color};
323
+ background-color: ${Re.color};
324
324
  }
325
325
 
326
326
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
327
- background-color: ${Fe};
327
+ background-color: ${Be};
328
328
  }
329
329
 
330
330
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
331
- background-color: ${Ue};
331
+ background-color: ${Fe};
332
332
  }
333
333
 
334
334
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
335
- background-color: ${ze};
335
+ background-color: ${je};
336
336
  }
337
337
 
338
338
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
339
- background-color: ${Re};
339
+ background-color: ${ze};
340
340
  }
341
341
 
342
342
  .ft-ripple .ft-ripple--background {
@@ -366,39 +366,39 @@ const $e=1,Oe=2,Se=t=>(...i)=>({_$litDirective$:t,values:i});class ke{constructo
366
366
  }
367
367
 
368
368
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
369
- opacity: ${Ne.opacityContentOnSurfaceHover};
369
+ opacity: ${Re.opacityContentOnSurfaceHover};
370
370
  }
371
371
 
372
372
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
373
- opacity: ${Ne.opacityContentOnSurfaceSelected};
373
+ opacity: ${Re.opacityContentOnSurfaceSelected};
374
374
  }
375
375
 
376
376
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
377
- opacity: ${Ne.opacityContentOnSurfaceFocused};
377
+ opacity: ${Re.opacityContentOnSurfaceFocused};
378
378
  }
379
379
 
380
380
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
381
- opacity: ${Ne.opacityContentOnSurfacePressed};
381
+ opacity: ${Re.opacityContentOnSurfacePressed};
382
382
  transform: translate(-50%, -50%) scale(1);
383
383
  }
384
- `;var Te=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Ie extends kt{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 i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i(10),this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),r=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.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 q`
384
+ `;var Ie=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Ae extends kt{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 i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i(10),this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),r=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.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 q`
385
385
  <style>
386
386
  .ft-ripple .ft-ripple--effect {
387
387
  left: ${this.originX}px;
388
388
  top: ${this.originY}px;
389
389
  }
390
390
  </style>
391
- <div class="${Ce(t)}">
391
+ <div class="${Ee(t)}">
392
392
  <div class="ft-ripple--background"></div>
393
393
  <div class="ft-ripple--effect"></div>
394
394
  </div>
395
- `}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 i,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ie.elementDefinitions={},Ie.styles=Be,Te([o({type:Boolean})],Ie.prototype,"primary",void 0),Te([o({type:Boolean})],Ie.prototype,"secondary",void 0),Te([o({type:Boolean})],Ie.prototype,"unbounded",void 0),Te([o({type:Boolean})],Ie.prototype,"activated",void 0),Te([o({type:Boolean})],Ie.prototype,"selected",void 0),Te([o({type:Boolean})],Ie.prototype,"disabled",void 0),Te([n()],Ie.prototype,"hovered",void 0),Te([n()],Ie.prototype,"focused",void 0),Te([n()],Ie.prototype,"pressed",void 0),Te([n()],Ie.prototype,"rippling",void 0),Te([n()],Ie.prototype,"originX",void 0),Te([n()],Ie.prototype,"originY",void 0),Te([s(".ft-ripple")],Ie.prototype,"ripple",void 0),Te([s(".ft-ripple--effect")],Ie.prototype,"rippleEffect",void 0),c("ft-ripple")(Ie);
395
+ `}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 i,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ae.elementDefinitions={},Ae.styles=Te,Ie([o({type:Boolean})],Ae.prototype,"primary",void 0),Ie([o({type:Boolean})],Ae.prototype,"secondary",void 0),Ie([o({type:Boolean})],Ae.prototype,"unbounded",void 0),Ie([o({type:Boolean})],Ae.prototype,"activated",void 0),Ie([o({type:Boolean})],Ae.prototype,"selected",void 0),Ie([o({type:Boolean})],Ae.prototype,"disabled",void 0),Ie([n()],Ae.prototype,"hovered",void 0),Ie([n()],Ae.prototype,"focused",void 0),Ie([n()],Ae.prototype,"pressed",void 0),Ie([n()],Ae.prototype,"rippling",void 0),Ie([n()],Ae.prototype,"originX",void 0),Ie([n()],Ae.prototype,"originY",void 0),Ie([s(".ft-ripple")],Ae.prototype,"ripple",void 0),Ie([s(".ft-ripple--effect")],Ae.prototype,"rippleEffect",void 0),c("ft-ripple")(Ae);
396
396
  /**
397
397
  * @license
398
398
  * Copyright 2017 Google LLC
399
399
  * SPDX-License-Identifier: BSD-3-Clause
400
400
  */
401
- class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Y||null==t)return this.ft=void 0,this.et=t;if(t===X)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const i=[t];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Ae.directiveName="unsafeHTML",Ae.resultType=1;const Le=Se(Ae);var Pe,De;!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.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;"}(Pe||(Pe={})),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;"}(De||(De={})),new Map([...["abw"].map((t=>[t,De.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,De.AUDIO])),...["avi"].map((t=>[t,De.AVI])),...["chm","xhs"].map((t=>[t,De.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,De.CODE])),...["csv"].map((t=>[t,De.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,De.DITA])),...["epub"].map((t=>[t,De.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,De.EXCEL])),...["flac"].map((t=>[t,De.FLAC])),...["gif"].map((t=>[t,De.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,De.GZIP])),...["html","htm","xhtml"].map((t=>[t,De.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,De.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,De.JPEG])),...["json"].map((t=>[t,De.JSON])),...["m4a","m4p"].map((t=>[t,De.M4A])),...["mov","qt"].map((t=>[t,De.MOV])),...["mp3"].map((t=>[t,De.MP3])),...["mp4","m4v"].map((t=>[t,De.MP4])),...["ogg","oga"].map((t=>[t,De.OGG])),...["pdf","ps"].map((t=>[t,De.PDF])),...["png"].map((t=>[t,De.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,De.POWERPOINT])),...["rar"].map((t=>[t,De.RAR])),...["stp"].map((t=>[t,De.STP])),...["txt","rtf","md","mdown"].map((t=>[t,De.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,De.VIDEO])),...["wav"].map((t=>[t,De.WAV])),...["wma"].map((t=>[t,De.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,De.WORD])),...["xml","xsl","rdf"].map((t=>[t,De.XML])),...["yaml","yml","x-yaml"].map((t=>[t,De.YAML])),...["zip"].map((t=>[t,De.ZIP]))]);const _e={size:bt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:bt.extend("--ft-icon-fluid-topics-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:bt.extend("--ft-icon-file-format-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:bt.extend("--ft-icon-material-font-family",bt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:bt.create("--ft-icon-vertical-align","UNKNOWN","unset")},We=x`
401
+ class Le extends Ce{constructor(t){if(super(t),this.et=G,t.type!==Se)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===G||null==t)return this.ft=void 0,this.et=t;if(t===X)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const i=[t];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}}Le.directiveName="unsafeHTML",Le.resultType=1;const Pe=ke(Le);var De,_e;!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.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;"}(De||(De={})),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;"}(_e||(_e={})),new Map([...["abw"].map((t=>[t,_e.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,_e.AUDIO])),...["avi"].map((t=>[t,_e.AVI])),...["chm","xhs"].map((t=>[t,_e.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,_e.CODE])),...["csv"].map((t=>[t,_e.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,_e.DITA])),...["epub"].map((t=>[t,_e.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,_e.EXCEL])),...["flac"].map((t=>[t,_e.FLAC])),...["gif"].map((t=>[t,_e.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,_e.GZIP])),...["html","htm","xhtml"].map((t=>[t,_e.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,_e.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,_e.JPEG])),...["json"].map((t=>[t,_e.JSON])),...["m4a","m4p"].map((t=>[t,_e.M4A])),...["mov","qt"].map((t=>[t,_e.MOV])),...["mp3"].map((t=>[t,_e.MP3])),...["mp4","m4v"].map((t=>[t,_e.MP4])),...["ogg","oga"].map((t=>[t,_e.OGG])),...["pdf","ps"].map((t=>[t,_e.PDF])),...["png"].map((t=>[t,_e.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,_e.POWERPOINT])),...["rar"].map((t=>[t,_e.RAR])),...["stp"].map((t=>[t,_e.STP])),...["txt","rtf","md","mdown"].map((t=>[t,_e.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,_e.VIDEO])),...["wav"].map((t=>[t,_e.WAV])),...["wma"].map((t=>[t,_e.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,_e.WORD])),...["xml","xsl","rdf"].map((t=>[t,_e.XML])),...["yaml","yml","x-yaml"].map((t=>[t,_e.YAML])),...["zip"].map((t=>[t,_e.ZIP]))]);const We={size:bt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:bt.extend("--ft-icon-fluid-topics-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:bt.extend("--ft-icon-file-format-font-family",bt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:bt.extend("--ft-icon-material-font-family",bt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:bt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ke=x`
402
402
  :host, i.ft-icon {
403
403
  display: inline-flex;
404
404
  align-items: center;
@@ -407,14 +407,14 @@ class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error
407
407
  }
408
408
 
409
409
  :host {
410
- width: ${_e.size};
411
- height: ${_e.size};
410
+ width: ${We.size};
411
+ height: ${We.size};
412
412
  }
413
413
 
414
414
  i.ft-icon {
415
415
  width: 100%;
416
416
  height: 100%;
417
- font-size: ${_e.size};
417
+ font-size: ${We.size};
418
418
  line-height: 1;
419
419
  font-weight: normal;
420
420
  text-transform: none;
@@ -425,33 +425,33 @@ class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error
425
425
  text-rendering: auto;
426
426
  -webkit-font-smoothing: antialiased;
427
427
  -moz-osx-font-smoothing: grayscale;
428
- vertical-align: ${_e.verticalAlign};
428
+ vertical-align: ${We.verticalAlign};
429
429
  }
430
430
 
431
431
  i.ft-icon.ft-icon--fluid-topics {
432
- font-family: ${_e.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
432
+ font-family: ${We.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
433
433
 
434
434
  /* Ugly fix because font is broken */
435
- font-size: calc(0.75 * ${_e.size});
436
- line-height: ${_e.size};
435
+ font-size: calc(0.75 * ${We.size});
436
+ line-height: ${We.size};
437
437
  position: relative;
438
438
  top: -4%;
439
439
  justify-content: center;
440
440
  }
441
441
 
442
442
  .ft-icon--file-format {
443
- font-family: ${_e.fileFormatFontFamily}, ft-mime, sans-serif;
443
+ font-family: ${We.fileFormatFontFamily}, ft-mime, sans-serif;
444
444
  }
445
445
 
446
446
  .ft-icon--material {
447
- font-family: ${_e.materialFontFamily}, "Material Icons", sans-serif;
447
+ font-family: ${We.materialFontFamily}, "Material Icons", sans-serif;
448
448
  }
449
- `;var He;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(He||(He={}));var Ze=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Ke extends kt{constructor(){super(...arguments),this.resolvedIcon=Y}render(){const t=this.variant&&Object.values(He).includes(this.variant)?this.variant:He.fluid_topics,i=t!==He.material||!!this.value;return q`
449
+ `;var He;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(He||(He={}));var Ze=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Ve extends kt{constructor(){super(...arguments),this.resolvedIcon=G}render(){const t=this.variant&&Object.values(He).includes(this.variant)?this.variant:He.fluid_topics,i=t!==He.material||!!this.value;return q`
450
450
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
451
- ${Le(this.resolvedIcon)}
451
+ ${Pe(this.resolvedIcon)}
452
452
  <slot ?hidden=${i}></slot>
453
453
  </i>
454
- `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case He.file_format:this.resolvedIcon=null!==(t=De[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case He.material:this.resolvedIcon=this.value||Y;break;default:this.resolvedIcon=null!==(i=Pe[e.replace("-","_").toUpperCase()])&&void 0!==i?i:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ke.elementDefinitions={},Ke.styles=We,Ze([o()],Ke.prototype,"variant",void 0),Ze([o()],Ke.prototype,"value",void 0),Ze([n()],Ke.prototype,"resolvedIcon",void 0),Ze([s("slot")],Ke.prototype,"slottedContent",void 0),c("ft-icon")(Ke);const Ve={color:bt.extend("--ft-loader-color",gt.colorPrimary),size:bt.create("--ft-loader-size","SIZE","80px")},Je=x`
454
+ `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case He.file_format:this.resolvedIcon=null!==(t=_e[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case He.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=null!==(i=De[e.replace("-","_").toUpperCase()])&&void 0!==i?i:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ve.elementDefinitions={},Ve.styles=Ke,Ze([o()],Ve.prototype,"variant",void 0),Ze([o()],Ve.prototype,"value",void 0),Ze([n()],Ve.prototype,"resolvedIcon",void 0),Ze([s("slot")],Ve.prototype,"slottedContent",void 0),c("ft-icon")(Ve);const Je={color:bt.extend("--ft-loader-color",gt.colorPrimary),size:bt.create("--ft-loader-size","SIZE","80px")},qe=x`
455
455
  :host {
456
456
  line-height: 0;
457
457
  }
@@ -460,8 +460,8 @@ class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error
460
460
  display: inline-block;
461
461
  position: relative;
462
462
 
463
- width: ${Ve.size};
464
- height: ${Ve.size};
463
+ width: ${Je.size};
464
+ height: ${Je.size};
465
465
  }
466
466
 
467
467
  .ft-loader div {
@@ -470,7 +470,7 @@ class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error
470
470
  width: 25%;
471
471
  height: 25%;
472
472
  border-radius: 50%;
473
- background: ${Ve.color};
473
+ background: ${Je.color};
474
474
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
475
475
  }
476
476
 
@@ -517,17 +517,17 @@ class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error
517
517
  transform: translate(0, 0);
518
518
  }
519
519
  100% {
520
- transform: translate(calc(0.35 * ${Ve.size}), 0);
520
+ transform: translate(calc(0.35 * ${Je.size}), 0);
521
521
  }
522
522
  }
523
- `;class qe extends kt{render(){return q`
523
+ `;class Xe extends kt{render(){return q`
524
524
  <div class="ft-loader">
525
525
  <div></div>
526
526
  <div></div>
527
527
  <div></div>
528
528
  <div></div>
529
529
  </div>
530
- `}}qe.styles=Je,c("ft-loader")(qe);const Xe=bt.extend("--ft-button-color",gt.colorPrimary),Ye={backgroundColor:bt.extend("--ft-button-background-color",gt.colorSurface),borderRadius:bt.extend("--ft-button-border-radius",gt.borderRadiusL),color:Xe,fontSize:bt.extend("--ft-button-font-size",Qi.fontSize),iconSize:bt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:bt.extend("--ft-button-ripple-color",Xe),verticalPadding:bt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:bt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:bt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:bt.external(gt.colorOpacityDisabled,"Design system")},Ge=bt.extend("--ft-button-primary-color",bt.extend("--ft-button-color",gt.colorOnPrimary)),Qe={backgroundColor:bt.extend("--ft-button-primary-background-color",bt.extend("--ft-button-background-color",gt.colorPrimary)),color:Ge,rippleColor:bt.extend("--ft-button-primary-ripple-color",Ge)},to=bt.extend("--ft-button-dense-border-radius",bt.extend("--ft-button-border-radius",gt.borderRadiusM)),io=bt.create("--ft-button-dense-vertical-padding","SIZE","2px"),eo=bt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),oo=bt.create("--ft-button-dense-icon-padding","SIZE","4px"),no=[x`
530
+ `}}Xe.styles=qe,c("ft-loader")(Xe);const Ge=bt.extend("--ft-button-color",gt.colorPrimary),Ye={backgroundColor:bt.extend("--ft-button-background-color",gt.colorSurface),borderRadius:bt.extend("--ft-button-border-radius",gt.borderRadiusL),color:Ge,fontSize:bt.extend("--ft-button-font-size",te.fontSize),iconSize:bt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:bt.extend("--ft-button-ripple-color",Ge),verticalPadding:bt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:bt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:bt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:bt.external(gt.colorOpacityDisabled,"Design system")},Qe=bt.extend("--ft-button-primary-color",bt.extend("--ft-button-color",gt.colorOnPrimary)),to={backgroundColor:bt.extend("--ft-button-primary-background-color",bt.extend("--ft-button-background-color",gt.colorPrimary)),color:Qe,rippleColor:bt.extend("--ft-button-primary-ripple-color",Qe)},io=bt.extend("--ft-button-dense-border-radius",bt.extend("--ft-button-border-radius",gt.borderRadiusM)),eo=bt.create("--ft-button-dense-vertical-padding","SIZE","2px"),oo=bt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),no=bt.create("--ft-button-dense-icon-padding","SIZE","4px"),ro=[x`
531
531
  :host {
532
532
  display: inline-block;
533
533
  max-width: 100%;
@@ -569,8 +569,8 @@ class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error
569
569
 
570
570
  --ft-button-internal-line-height: max(calc(${Ye.fontSize} + 2px), ${Ye.iconSize});
571
571
  --ft-button-internal-color: ${Ye.color};
572
- ${xt(_e.size,Ye.iconSize)};
573
- ${xt(Ne.color,Ye.rippleColor)};
572
+ ${xt(We.size,Ye.iconSize)};
573
+ ${xt(Re.color,Ye.rippleColor)};
574
574
 
575
575
  border-radius: ${Ye.borderRadius};
576
576
  padding: ${Ye.verticalPadding} ${Ye.horizontalPadding};
@@ -585,13 +585,13 @@ class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error
585
585
  }
586
586
 
587
587
  .ft-button.ft-button--dense {
588
- padding: ${io} ${eo};
589
- border-radius: ${to};
590
- gap: ${oo};
588
+ padding: ${eo} ${oo};
589
+ border-radius: ${io};
590
+ gap: ${no};
591
591
  }
592
592
 
593
593
  .ft-button.ft-button--dense.ft-button--outlined {
594
- padding: calc(${io} - 1px) calc(${eo} - 1px);
594
+ padding: calc(${eo} - 1px) calc(${oo} - 1px);
595
595
  }
596
596
 
597
597
  .ft-button:not([disabled]):hover {
@@ -603,7 +603,7 @@ class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error
603
603
  }
604
604
 
605
605
  .ft-button--round.ft-button--dense {
606
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${io});
606
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${eo});
607
607
  }
608
608
 
609
609
  .ft-button[disabled] {
@@ -612,9 +612,9 @@ class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error
612
612
  }
613
613
 
614
614
  .ft-button.ft-button--primary {
615
- background-color: ${Qe.backgroundColor};
616
- --ft-button-internal-color: ${Qe.color};
617
- ${xt(Ne.color,Qe.rippleColor)};
615
+ background-color: ${to.backgroundColor};
616
+ --ft-button-internal-color: ${to.color};
617
+ ${xt(Re.color,to.rippleColor)};
618
618
  }
619
619
 
620
620
  .ft-button:focus {
@@ -628,12 +628,12 @@ class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error
628
628
  text-overflow: ellipsis;
629
629
  display: block;
630
630
  margin: 0 ${Ye.iconPadding};
631
- ${xt(Qi.fontSize,"1em")};
632
- ${xt(Qi.lineHeight,"var(--ft-button-internal-line-height)")};
631
+ ${xt(te.fontSize,"1em")};
632
+ ${xt(te.lineHeight,"var(--ft-button-internal-line-height)")};
633
633
  }
634
634
 
635
635
  .ft-button--dense .ft-button--label {
636
- margin: 0 ${oo};
636
+ margin: 0 ${no};
637
637
  }
638
638
 
639
639
  .ft-button--label[hidden] {
@@ -651,8 +651,8 @@ class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error
651
651
  }
652
652
 
653
653
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
654
- margin: 0 calc(${eo} * -1);
655
- padding: 0 ${io};
654
+ margin: 0 calc(${oo} * -1);
655
+ padding: 0 ${eo};
656
656
  }
657
657
 
658
658
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -661,12 +661,12 @@ class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error
661
661
  }
662
662
 
663
663
  ft-loader {
664
- ${xt(Ve.size,Ye.iconSize)};
665
- ${xt(Ve.color,"var(--ft-button-internal-color)")};
664
+ ${xt(Je.size,Ye.iconSize)};
665
+ ${xt(Je.color,"var(--ft-button-internal-color)")};
666
666
  }
667
- `,Ct];var ro=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class so extends kt{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(q`
667
+ `,Ct];var so=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class ao extends kt{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(q`
668
668
  <button part="button"
669
- class="${Ce(t)}"
669
+ class="${Ee(t)}"
670
670
  aria-label="${this.getLabel()}"
671
671
  ?disabled=${this.isDisabled()}>
672
672
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
@@ -687,7 +687,7 @@ class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error
687
687
  </ft-tooltip>
688
688
  `:t}resolveIcon(){return this.loading?q`
689
689
  <ft-loader part="loader icon"></ft-loader> `:this.icon?q`
690
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:Y}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}so.elementDefinitions={"ft-ripple":Ie,"ft-tooltip":we,"ft-typography":de,"ft-icon":Ke,"ft-loader":qe},so.styles=[Et,no],ro([o({type:String,reflect:!0})],so.prototype,"role",void 0),ro([o({type:Boolean})],so.prototype,"primary",void 0),ro([o({type:Boolean})],so.prototype,"outlined",void 0),ro([o({type:Boolean})],so.prototype,"disabled",void 0),ro([o({type:Boolean})],so.prototype,"dense",void 0),ro([o({type:Boolean})],so.prototype,"round",void 0),ro([o()],so.prototype,"label",void 0),ro([o()],so.prototype,"icon",void 0),ro([o()],so.prototype,"iconVariant",void 0),ro([o({type:Boolean})],so.prototype,"trailingIcon",void 0),ro([o({type:Boolean})],so.prototype,"loading",void 0),ro([o()],so.prototype,"tooltipPosition",void 0),ro([o({type:Boolean})],so.prototype,"hideTooltip",void 0),ro([o({type:Boolean})],so.prototype,"forceTooltip",void 0),ro([s(".ft-button")],so.prototype,"button",void 0),ro([s(".ft-button--label slot")],so.prototype,"slottedContent",void 0),c("ft-button")(so);const ao=bt.extend("--ft-chip-color",gt.colorOnSurface),lo={backgroundColor:bt.extend("--ft-chip-background-color",gt.colorSurface),color:ao,fontSize:bt.extend("--ft-chip-font-size",Fi.fontSize),iconSize:bt.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:bt.extend("--ft-chip-ripple-color",ao),horizontalPadding:bt.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:bt.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:bt.external(gt.colorOutline,"Design system"),opacityDisabled:bt.external(gt.colorOpacityDisabled,"Design system")},ho=bt.extend("--ft-chip-highlighted-color",bt.extend("--ft-chip-color",gt.colorOnPrimary)),co={backgroundColor:bt.extend("--ft-chip-highlighted-background-color",bt.extend("--ft-chip-background-color",gt.colorPrimary)),color:ho,rippleColor:bt.extend("--ft-chip-highlighted-ripple-color",ho)},po=bt.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),fo=bt.create("--ft-chip-dense-vertical-padding","SIZE","4px"),uo=[Ct,x`
690
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:G}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ao.elementDefinitions={"ft-ripple":Ae,"ft-tooltip":$e,"ft-typography":fe,"ft-icon":Ve,"ft-loader":Xe},ao.styles=[Et,ro],so([o({type:String,reflect:!0})],ao.prototype,"role",void 0),so([o({type:Boolean})],ao.prototype,"primary",void 0),so([o({type:Boolean})],ao.prototype,"outlined",void 0),so([o({type:Boolean})],ao.prototype,"disabled",void 0),so([o({type:Boolean})],ao.prototype,"dense",void 0),so([o({type:Boolean})],ao.prototype,"round",void 0),so([o()],ao.prototype,"label",void 0),so([o()],ao.prototype,"icon",void 0),so([o()],ao.prototype,"iconVariant",void 0),so([o({type:Boolean})],ao.prototype,"trailingIcon",void 0),so([o({type:Boolean})],ao.prototype,"loading",void 0),so([o()],ao.prototype,"tooltipPosition",void 0),so([o({type:Boolean})],ao.prototype,"hideTooltip",void 0),so([o({type:Boolean})],ao.prototype,"forceTooltip",void 0),so([s(".ft-button")],ao.prototype,"button",void 0),so([s(".ft-button--label slot")],ao.prototype,"slottedContent",void 0),c("ft-button")(ao);const lo=bt.extend("--ft-chip-color",gt.colorOnSurface),ho={backgroundColor:bt.extend("--ft-chip-background-color",gt.colorSurface),color:lo,fontSize:bt.extend("--ft-chip-font-size",Bi.fontSize),iconSize:bt.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:bt.extend("--ft-chip-ripple-color",lo),horizontalPadding:bt.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:bt.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:bt.external(gt.colorOutline,"Design system"),opacityDisabled:bt.external(gt.colorOpacityDisabled,"Design system")},co=bt.extend("--ft-chip-highlighted-color",bt.extend("--ft-chip-color",gt.colorOnPrimary)),po={backgroundColor:bt.extend("--ft-chip-highlighted-background-color",bt.extend("--ft-chip-background-color",gt.colorPrimary)),color:co,rippleColor:bt.extend("--ft-chip-highlighted-ripple-color",co)},fo=bt.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),uo=bt.create("--ft-chip-dense-vertical-padding","SIZE","4px"),vo=[Ct,x`
691
691
  :host {
692
692
  display: inline-block;
693
693
  max-width: 100%;
@@ -703,20 +703,20 @@ class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error
703
703
  box-sizing: border-box;
704
704
  pointer-events: auto;
705
705
 
706
- --ft-chip-internal-font-size: ${lo.fontSize};
706
+ --ft-chip-internal-font-size: ${ho.fontSize};
707
707
  --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
708
- ${xt(_e.size,lo.iconSize)};
709
- --ft-chip-internal-vertical-padding: ${lo.verticalPadding};
710
- --ft-chip-internal-horizontal-padding: ${lo.horizontalPadding};
708
+ ${xt(We.size,ho.iconSize)};
709
+ --ft-chip-internal-vertical-padding: ${ho.verticalPadding};
710
+ --ft-chip-internal-horizontal-padding: ${ho.horizontalPadding};
711
711
  --ft-chip-internal-icon-padding: 3px;
712
- --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${lo.iconSize});
712
+ --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${ho.iconSize});
713
713
 
714
- border: 1px solid ${lo.colorOutline};
715
- color: ${lo.color};
716
- ${xt(Ne.color,lo.rippleColor)};
714
+ border: 1px solid ${ho.colorOutline};
715
+ color: ${ho.color};
716
+ ${xt(Re.color,ho.rippleColor)};
717
717
  border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
718
718
  padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
719
- background-color: ${lo.backgroundColor};
719
+ background-color: ${ho.backgroundColor};
720
720
  line-height: var(--ft-chip-internal-content-height);
721
721
  }
722
722
 
@@ -726,8 +726,8 @@ class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error
726
726
 
727
727
  .ft-chip--dense {
728
728
  --ft-chip-internal-icon-padding: 3px;
729
- --ft-chip-internal-vertical-padding: ${fo};
730
- --ft-chip-internal-horizontal-padding: ${po};
729
+ --ft-chip-internal-vertical-padding: ${uo};
730
+ --ft-chip-internal-horizontal-padding: ${fo};
731
731
  --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
732
732
  }
733
733
 
@@ -739,15 +739,15 @@ class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error
739
739
  cursor: default;
740
740
  pointer-events: none;
741
741
  filter: grayscale(1);
742
- opacity: ${lo.opacityDisabled};
742
+ opacity: ${ho.opacityDisabled};
743
743
  }
744
744
 
745
745
  .ft-chip--highlighted {
746
746
  border: none;
747
747
  padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
748
- background-color: ${co.backgroundColor};
749
- ${xt(Ne.color,co.rippleColor)};
750
- color: ${co.color};
748
+ background-color: ${po.backgroundColor};
749
+ ${xt(Re.color,po.rippleColor)};
750
+ color: ${po.color};
751
751
  }
752
752
 
753
753
  .ft-chip--clickable {
@@ -777,7 +777,7 @@ class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error
777
777
  }
778
778
 
779
779
  .ft-chip--icon-button {
780
- ${xt(Ye.iconSize,lo.iconSize)};
780
+ ${xt(Ye.iconSize,ho.iconSize)};
781
781
  ${xt(Ye.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
782
782
  ${xt(Ye.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
783
783
  margin: calc((-1) * var(--ft-chip-internal-icon-padding));
@@ -787,8 +787,8 @@ class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error
787
787
  vertical-align: bottom;
788
788
  display: block;
789
789
  margin: 0 var(--ft-chip-internal-horizontal-padding);
790
- ${xt(Fi.fontSize,"var(--ft-chip-internal-font-size)")};
791
- ${xt(Fi.lineHeight,"var(--ft-chip-internal-content-height)")};
790
+ ${xt(Bi.fontSize,"var(--ft-chip-internal-font-size)")};
791
+ ${xt(Bi.lineHeight,"var(--ft-chip-internal-content-height)")};
792
792
  }
793
793
 
794
794
  .ft-chip--safari-fix .ft-chip--label {
@@ -824,8 +824,8 @@ class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error
824
824
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
825
825
  order: -1;
826
826
  }
827
- `];var vo=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class bo extends CustomEvent{constructor(){super("icon-click")}}class xo extends kt{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Lt};return q`
828
- <div class="${Ce(t)}"
827
+ `];var bo=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class xo extends CustomEvent{constructor(){super("icon-click")}}class go extends kt{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Lt};return q`
828
+ <div class="${Ee(t)}"
829
829
  aria-label="${this.getLabel()}"
830
830
  tabindex="${this.interactionsOnChip?0:-1}"
831
831
  @keyup=${this.onKeyUp}>
@@ -847,17 +847,17 @@ class Ae extends ke{constructor(t){if(super(t),this.et=Y,t.type!==Oe)throw Error
847
847
  <div class="ft-chip--icon-container ft-no-text-select">
848
848
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
849
849
  </div>
850
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new bo))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new bo))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}xo.elementDefinitions={"ft-ripple":Ie,"ft-typography":de,"ft-icon":Ke,"ft-button":so},xo.styles=uo,vo([o({type:Boolean})],xo.prototype,"highlighted",void 0),vo([o({type:Boolean})],xo.prototype,"removable",void 0),vo([o({type:Boolean})],xo.prototype,"disabled",void 0),vo([o({type:Boolean})],xo.prototype,"clickable",void 0),vo([o({type:Boolean})],xo.prototype,"iconClickable",void 0),vo([o({type:Boolean})],xo.prototype,"dense",void 0),vo([o({type:Boolean})],xo.prototype,"multiLine",void 0),vo([o()],xo.prototype,"label",void 0),vo([o()],xo.prototype,"iconLabel",void 0),vo([o()],xo.prototype,"icon",void 0),vo([o()],xo.prototype,"iconVariant",void 0),vo([o({type:Boolean})],xo.prototype,"trailingIcon",void 0),vo([s("ft-typography slot")],xo.prototype,"slottedContent",void 0),c("ft-chip")(xo);var go=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class yo extends Jt{constructor(){super(...arguments),this.editorMode=!1}render(){return q`
850
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new xo))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new xo))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}go.elementDefinitions={"ft-ripple":Ae,"ft-typography":fe,"ft-icon":Ve,"ft-button":ao},go.styles=vo,bo([o({type:Boolean})],go.prototype,"highlighted",void 0),bo([o({type:Boolean})],go.prototype,"removable",void 0),bo([o({type:Boolean})],go.prototype,"disabled",void 0),bo([o({type:Boolean})],go.prototype,"clickable",void 0),bo([o({type:Boolean})],go.prototype,"iconClickable",void 0),bo([o({type:Boolean})],go.prototype,"dense",void 0),bo([o({type:Boolean})],go.prototype,"multiLine",void 0),bo([o()],go.prototype,"label",void 0),bo([o()],go.prototype,"iconLabel",void 0),bo([o()],go.prototype,"icon",void 0),bo([o()],go.prototype,"iconVariant",void 0),bo([o({type:Boolean})],go.prototype,"trailingIcon",void 0),bo([s("ft-typography slot")],go.prototype,"slottedContent",void 0),c("ft-chip")(go);var yo=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class mo extends qt{constructor(){super(...arguments),this.editorMode=!1}render(){return q`
851
851
  <ft-tooltip text="${this.tooltipText}">
852
852
  <ft-chip>
853
853
  ${this.renderContent()}
854
854
  </ft-chip>
855
855
  </ft-tooltip>
856
856
  ${this.hideIfEmpty()}
857
- `}renderContent(){return this.metadata?q`${this.valueText}`:this.key?q`no value for ${this.key}`:q`no metadata selected`}hideIfEmpty(){return this.editorMode||this.metadata?Y:q`
857
+ `}renderContent(){return this.metadata?q`${this.valueText}`:this.key?q`no value for ${this.key}`:q`no metadata selected`}hideIfEmpty(){return this.editorMode||this.metadata?G:q`
858
858
  <style>
859
859
  :host {
860
860
  display: none !important;
861
861
  }
862
862
  </style>
863
- `}get valueText(){var t,i;return null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==i?i:""}get tooltipText(){var t,i;return this.metadata?`${null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==i?i:this.metadata.key}: ${this.valueText}`:""}update(t){super.update(t),["key","tocNode"].some((i=>t.has(i)))&&this.updateContent()}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}updateContent(){var t;this.metadata=void 0,this.tocNode&&this.key&&(null===(t=this.service)||void 0===t||t.getTopicInfo(this.tocNode).then((t=>this.metadata=t.metadata.find((t=>t.key===this.key)))).catch((()=>null)))}}yo.elementDefinitions={"ft-tooltip":we,"ft-chip":xo},yo.styles=Pt,go([o()],yo.prototype,"key",void 0),go([n()],yo.prototype,"editorMode",void 0),go([n()],yo.prototype,"metadata",void 0),c("ft-reader-topic-metadata")(yo),t.FtReaderTopicMetadata=yo,t.FtReaderTopicMetadataCssVariables={},t.styles=Pt}({});
863
+ `}get valueText(){var t,i;return null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==i?i:""}get tooltipText(){var t,i;return this.metadata?`${null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==i?i:this.metadata.key}: ${this.valueText}`:""}update(t){super.update(t),["key","tocNode"].some((i=>t.has(i)))&&this.updateContent()}onStoreAvailable(){super.onStoreAvailable(),this.updateContent()}updateContent(){var t;this.metadata=void 0,this.tocNode&&this.key&&(null===(t=this.service)||void 0===t||t.getTopicInfo(this.tocNode).then((t=>this.metadata=t.metadata.find((t=>t.key===this.key)))).catch((()=>null)))}}mo.elementDefinitions={"ft-tooltip":$e,"ft-chip":go},mo.styles=Pt,yo([o()],mo.prototype,"key",void 0),yo([n()],mo.prototype,"editorMode",void 0),yo([n()],mo.prototype,"metadata",void 0),c("ft-reader-topic-metadata")(mo),t.FtReaderTopicMetadata=mo,t.FtReaderTopicMetadataCssVariables={},t.styles=Pt}({});