@fluid-topics/ft-reader-navigation-button 1.0.42 → 1.0.43

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,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=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=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(r.set(n,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)s.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 e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!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,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const x=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(Pi){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)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,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=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=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(r.set(n,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)s.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 e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!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,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const x=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(x(Element,"innerHTML"),x(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ii){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)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 R;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:E}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.6.1");const M=window,j=M.trustedTypes,F=j?j.createPolicy("lit-html",{createHTML:t=>t}):void 0,U="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,B="?"+z,T=`<${B}>`,P=document,A=()=>P.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,I=Array.isArray,_="[ \t\n\f\r]",D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,H=/>/g,K=RegExp(`>|${_}(?:([^\\s"'>=/]+)(${_}*=${_}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,V=/"/g,J=/^(?:script|style|textarea|title)$/i,q=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),X=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),G=new WeakMap,Q=P.createTreeWalker(P,129,null,!1),tt=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=D;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===D?"!--"===l[1]?r=W:void 0!==l[1]?r=H:void 0!==l[2]?(J.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=K):void 0!==l[3]&&(r=K):r===K?">"===l[0]?(r=null!=n?n:D,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?K:'"'===l[3]?V:Z):r===V||r===Z?r=K:r===W||r===H?r=D:(r=K,n=void 0);const p=r===K&&t[e+1].startsWith("/>")?" ":"";s+=r===D?i+T:h>=0?(o.push(a),i.slice(0,h)+U+i.slice(h)+z+p):i+z+(-2===h?(o.push(void 0),e):p)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(a):a,o]};class et{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=tt(t,e);if(this.el=et.createElement(l,i),Q.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Q.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(U)||e.startsWith(z)){const i=h[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+U).split(z),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?rt:"?"===e[1]?lt:"@"===e[1]?ht:st})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(J.test(o.tagName)){const t=o.textContent.split(z),e=t.length-1;if(e>0){o.textContent=j?j.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],A()),Q.nextNode(),a.push({type:2,index:++n});o.append(t[e],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(z,t+1));)a.push({type:7,index:n}),t+=z.length-1}n++}}static createElement(t,e){const i=P.createElement("template");return i.innerHTML=t,i}}function it(t,e,i=t,o){var n,s,r,a;if(e===X)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const h=L(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=it(t,l._$AS(t,e.values),l,o)),e}class ot{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:P).importNode(i,!0);Q.currentNode=n;let s=Q.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new nt(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new ct(s,this,t)),this._$AV.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=Q.nextNode(),r++)}return n}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class nt{constructor(t,e,i,o){var n;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=it(this,t,e),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=>I(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.$(P.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=et.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.v(i);else{const t=new ot(n,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=G.get(t.strings);return void 0===e&&G.set(t.strings,e=new et(t)),e}T(t){I(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new nt(this.k(A()),this.k(A()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class st{constructor(t,e,i,o,n){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=it(this,t,e,0),s=!L(t)||t!==this._$AH&&t!==X,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=it(this,o[i+r],e,r),a===X&&(a=this._$AH[r]),s||(s=!L(a)||a!==this._$AH[r]),a===Y?t=Y:t!==Y&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class rt extends st{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Y?void 0:t}}const at=j?j.emptyScript:"";class lt extends st{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 st{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=it(this,t,e,0))&&void 0!==i?i:Y)===X)return;const o=this._$AH,n=t===Y&&o!==Y||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==Y&&(o===Y||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ct{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){it(this,t)}}const pt=M.litHtmlPolyfillSupport;null==pt||pt(et,nt),(null!==(R=M.litHtmlVersions)&&void 0!==R?R:M.litHtmlVersions=[]).push("2.7.3");
59
+ var R;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:E}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.6.1");const M=window,j=M.trustedTypes,U=j?j.createPolicy("lit-html",{createHTML:t=>t}):void 0,F="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,B="?"+z,T=`<${B}>`,P=document,A=()=>P.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,I=Array.isArray,_="[ \t\n\f\r]",D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,H=/>/g,K=RegExp(`>|${_}(?:([^\\s"'>=/]+)(${_}*=${_}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,V=/"/g,J=/^(?:script|style|textarea|title)$/i,q=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),X=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),G=new WeakMap,Q=P.createTreeWalker(P,129,null,!1),tt=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=D;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===D?"!--"===l[1]?r=W:void 0!==l[1]?r=H:void 0!==l[2]?(J.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=K):void 0!==l[3]&&(r=K):r===K?">"===l[0]?(r=null!=n?n:D,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?K:'"'===l[3]?V:Z):r===V||r===Z?r=K:r===W||r===H?r=D:(r=K,n=void 0);const p=r===K&&t[e+1].startsWith("/>")?" ":"";s+=r===D?i+T:h>=0?(o.push(a),i.slice(0,h)+F+i.slice(h)+z+p):i+z+(-2===h?(o.push(void 0),e):p)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==U?U.createHTML(a):a,o]};class et{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=tt(t,e);if(this.el=et.createElement(l,i),Q.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=Q.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(F)||e.startsWith(z)){const i=h[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+F).split(z),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?rt:"?"===e[1]?lt:"@"===e[1]?ht:st})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(J.test(o.tagName)){const t=o.textContent.split(z),e=t.length-1;if(e>0){o.textContent=j?j.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],A()),Q.nextNode(),a.push({type:2,index:++n});o.append(t[e],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(z,t+1));)a.push({type:7,index:n}),t+=z.length-1}n++}}static createElement(t,e){const i=P.createElement("template");return i.innerHTML=t,i}}function it(t,e,i=t,o){var n,s,r,a;if(e===X)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const h=L(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=it(t,l._$AS(t,e.values),l,o)),e}class ot{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:P).importNode(i,!0);Q.currentNode=n;let s=Q.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new nt(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new ct(s,this,t)),this._$AV.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=Q.nextNode(),r++)}return n}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class nt{constructor(t,e,i,o){var n;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=it(this,t,e),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=>I(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.$(P.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=et.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.v(i);else{const t=new ot(n,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=G.get(t.strings);return void 0===e&&G.set(t.strings,e=new et(t)),e}T(t){I(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new nt(this.k(A()),this.k(A()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class st{constructor(t,e,i,o,n){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=it(this,t,e,0),s=!L(t)||t!==this._$AH&&t!==X,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=it(this,o[i+r],e,r),a===X&&(a=this._$AH[r]),s||(s=!L(a)||a!==this._$AH[r]),a===Y?t=Y:t!==Y&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class rt extends st{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Y?void 0:t}}const at=j?j.emptyScript:"";class lt extends st{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 st{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=it(this,t,e,0))&&void 0!==i?i:Y)===X)return;const o=this._$AH,n=t===Y&&o!==Y||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==Y&&(o===Y||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ct{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){it(this,t)}}const pt=M.litHtmlPolyfillSupport;null==pt||pt(et,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,34 +94,34 @@ var dt,ft;let ut=class extends E{constructor(){super(...arguments),this.renderOp
94
94
  display: inline-block;
95
95
  width: 0;
96
96
  }
97
- `;var Et,Rt;const Mt=Symbol("internalStoresUnsubscribers"),jt=Symbol("internalStores");class Ft extends kt{constructor(){super(...arguments),this[Et]=new Map,this[Rt]=new Map}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[jt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[jt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[jt].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:function(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[jt].delete(e)}setupStore(t,e){this[jt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[jt].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){this[Mt].set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this[Mt]).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this[Mt].has(t)&&this[Mt].get(t)(),this[Mt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}var Ut,zt,Bt;Et=Mt,Rt=jt;const Tt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Bt=null===(zt=null===(Ut=window.safari)||void 0===Ut?void 0:Ut.pushNotification)||void 0===zt?void 0:zt.toString())&&void 0!==Bt?Bt:""),Pt={outlineColor:bt.extend("--ft-reader-internal-link-outline-color",xt.colorPrimary)},At=y`
97
+ `;var Et,Rt,Mt;const jt=Symbol("internalReduxEventsUnsubscribers"),Ut=Symbol("internalStoresUnsubscribers"),Ft=Symbol("internalStores");class zt extends kt{constructor(){super(...arguments),this[Et]=new Map,this[Rt]=new Map,this[Mt]=[]}updated(t){var e;super.updated(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&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,e){var i;e=null!==(i=null!=e?e:Bt(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Ft].delete(e)}setupStore(t,e){this[Ft].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ft].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Ut].set(t,e.subscribe((()=>this.updateFromStores()))),Bt(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[jt].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this[Ut]).forEach((t=>this.unsubscribeFromStore(t))),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(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function Bt(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Tt,Pt,At;Et=Ut,Rt=Ft,Mt=jt;const Lt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(At=null===(Pt=null===(Tt=window.safari)||void 0===Tt?void 0:Tt.pushNotification)||void 0===Pt?void 0:Pt.toString())&&void 0!==At?At:""),It={outlineColor:bt.extend("--ft-reader-internal-link-outline-color",xt.colorPrimary)},_t=y`
98
98
  :host {
99
99
  display: contents;
100
100
  }
101
101
 
102
102
  a:focus {
103
- outline-color: ${Pt.outlineColor};
103
+ outline-color: ${It.outlineColor};
104
104
  }
105
105
 
106
106
  .ft-reader-link--remove-style {
107
107
  text-decoration: none;
108
108
  color: inherit;
109
109
  }
110
- `,Lt=y`
110
+ `,Dt=y`
111
111
  ft-reader-internal-link {
112
- ${yt(Pt.outlineColor,"transparent")}
112
+ ${yt(It.outlineColor,"transparent")}
113
113
  }
114
114
  `
115
115
  /**
116
116
  * @license
117
117
  * Copyright 2017 Google LLC
118
118
  * SPDX-License-Identifier: BSD-3-Clause
119
- */,It=1,_t=2,Dt=t=>(...e)=>({_$litDirective$:t,values:e});class Wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
119
+ */,Wt=1,Ht=2,Kt=t=>(...e)=>({_$litDirective$:t,values:e});class Zt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
120
120
  /**
121
121
  * @license
122
122
  * Copyright 2018 Google LLC
123
123
  * SPDX-License-Identifier: BSD-3-Clause
124
- */const Ht=Dt(class extends Wt{constructor(t){var e;if(super(t),t.type!==It||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,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 e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const n=t.element.classList;this.it.forEach((t=>{t in e||(n.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return X}}),Kt=bt.extend("--ft-ripple-color",xt.colorContent),Zt={color:Kt,backgroundColor:bt.extend("--ft-ripple-background-color",Kt),opacityContentOnSurfacePressed:bt.external(xt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.external(xt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.external(xt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.external(xt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:bt.create("--ft-ripple-border-radius","SIZE","0px")},Vt=bt.extend("--ft-ripple-color",xt.colorPrimary),Jt=Vt,qt=bt.extend("--ft-ripple-background-color",Vt),Xt=bt.extend("--ft-ripple-color",xt.colorSecondary),Yt=Xt,Gt=bt.extend("--ft-ripple-background-color",Xt),Qt=y`
124
+ */const Vt=Kt(class extends Zt{constructor(t){var e;if(super(t),t.type!==Wt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,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 e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const n=t.element.classList;this.it.forEach((t=>{t in e||(n.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.it.add(t)):(n.remove(t),this.it.delete(t)))}return X}}),Jt=bt.extend("--ft-ripple-color",xt.colorContent),qt={color:Jt,backgroundColor:bt.extend("--ft-ripple-background-color",Jt),opacityContentOnSurfacePressed:bt.external(xt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.external(xt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.external(xt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.external(xt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:bt.create("--ft-ripple-border-radius","SIZE","0px")},Xt=bt.extend("--ft-ripple-color",xt.colorPrimary),Yt=Xt,Gt=bt.extend("--ft-ripple-background-color",Xt),Qt=bt.extend("--ft-ripple-color",xt.colorSecondary),te=Qt,ee=bt.extend("--ft-ripple-background-color",Qt),ie=y`
125
125
  :host {
126
126
  display: contents;
127
127
  }
@@ -134,7 +134,7 @@ var dt,ft;let ut=class extends E{constructor(){super(...arguments),this.renderOp
134
134
 
135
135
  .ft-ripple:not(.ft-ripple--unbounded) {
136
136
  overflow: hidden;
137
- border-radius: ${Zt.borderRadius};
137
+ border-radius: ${qt.borderRadius};
138
138
  }
139
139
 
140
140
  .ft-ripple .ft-ripple--background,
@@ -144,27 +144,27 @@ var dt,ft;let ut=class extends E{constructor(){super(...arguments),this.renderOp
144
144
  }
145
145
 
146
146
  .ft-ripple .ft-ripple--background {
147
- background-color: ${Zt.backgroundColor};
147
+ background-color: ${qt.backgroundColor};
148
148
  }
149
149
 
150
150
  .ft-ripple .ft-ripple--effect {
151
- background-color: ${Zt.color};
151
+ background-color: ${qt.color};
152
152
  }
153
153
 
154
154
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
155
- background-color: ${Gt};
155
+ background-color: ${ee};
156
156
  }
157
157
 
158
158
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
159
- background-color: ${Yt};
159
+ background-color: ${te};
160
160
  }
161
161
 
162
162
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
163
- background-color: ${qt};
163
+ background-color: ${Gt};
164
164
  }
165
165
 
166
166
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
167
- background-color: ${Jt};
167
+ background-color: ${Yt};
168
168
  }
169
169
 
170
170
  .ft-ripple .ft-ripple--background {
@@ -196,22 +196,22 @@ var dt,ft;let ut=class extends E{constructor(){super(...arguments),this.renderOp
196
196
  }
197
197
 
198
198
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
199
- opacity: ${Zt.opacityContentOnSurfaceHover};
199
+ opacity: ${qt.opacityContentOnSurfaceHover};
200
200
  }
201
201
 
202
202
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
203
- opacity: ${Zt.opacityContentOnSurfaceSelected};
203
+ opacity: ${qt.opacityContentOnSurfaceSelected};
204
204
  }
205
205
 
206
206
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
207
- opacity: ${Zt.opacityContentOnSurfaceFocused};
207
+ opacity: ${qt.opacityContentOnSurfaceFocused};
208
208
  }
209
209
 
210
210
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
211
- opacity: ${Zt.opacityContentOnSurfacePressed};
211
+ opacity: ${qt.opacityContentOnSurfacePressed};
212
212
  transform: translate(-50%, -50%) scale(1);
213
213
  }
214
- `;var te=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class ee 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.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),s=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.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`
214
+ `;var oe=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class ne 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.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),s=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.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`
215
215
  <style>
216
216
  .ft-ripple .ft-ripple--effect,
217
217
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -224,119 +224,119 @@ var dt,ft;let ut=class extends E{constructor(){super(...arguments),this.renderOp
224
224
  top: ${this.originY}px;
225
225
  }
226
226
  </style>
227
- <div class="${Ht(t)}">
227
+ <div class="${Vt(t)}">
228
228
  <div class="ft-ripple--background"></div>
229
229
  <div class="ft-ripple--effect"></div>
230
230
  </div>
231
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),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",i),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 e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.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 e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}ee.elementDefinitions={},ee.styles=Qt,te([o({type:Boolean})],ee.prototype,"primary",void 0),te([o({type:Boolean})],ee.prototype,"secondary",void 0),te([o({type:Boolean})],ee.prototype,"unbounded",void 0),te([o({type:Boolean})],ee.prototype,"activated",void 0),te([o({type:Boolean})],ee.prototype,"selected",void 0),te([o({type:Boolean})],ee.prototype,"disabled",void 0),te([n()],ee.prototype,"hovered",void 0),te([n()],ee.prototype,"focused",void 0),te([n()],ee.prototype,"pressed",void 0),te([n()],ee.prototype,"rippling",void 0),te([n()],ee.prototype,"rippleSize",void 0),te([n()],ee.prototype,"originX",void 0),te([n()],ee.prototype,"originY",void 0),te([r(".ft-ripple")],ee.prototype,"ripple",void 0),te([r(".ft-ripple--effect")],ee.prototype,"rippleEffect",void 0),c("ft-ripple")(ee);
231
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),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",i),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 e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.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 e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}ne.elementDefinitions={},ne.styles=ie,oe([o({type:Boolean})],ne.prototype,"primary",void 0),oe([o({type:Boolean})],ne.prototype,"secondary",void 0),oe([o({type:Boolean})],ne.prototype,"unbounded",void 0),oe([o({type:Boolean})],ne.prototype,"activated",void 0),oe([o({type:Boolean})],ne.prototype,"selected",void 0),oe([o({type:Boolean})],ne.prototype,"disabled",void 0),oe([n()],ne.prototype,"hovered",void 0),oe([n()],ne.prototype,"focused",void 0),oe([n()],ne.prototype,"pressed",void 0),oe([n()],ne.prototype,"rippling",void 0),oe([n()],ne.prototype,"rippleSize",void 0),oe([n()],ne.prototype,"originX",void 0),oe([n()],ne.prototype,"originY",void 0),oe([r(".ft-ripple")],ne.prototype,"ripple",void 0),oe([r(".ft-ripple--effect")],ne.prototype,"rippleEffect",void 0),c("ft-ripple")(ne);
232
232
  /**
233
233
  * @license
234
234
  * Copyright 2020 Google LLC
235
235
  * SPDX-License-Identifier: BSD-3-Clause
236
236
  */
237
- const ie=Symbol.for(""),oe=t=>{if((null==t?void 0:t.r)===ie)return null==t?void 0:t._$litStatic$},ne=t=>({_$litStatic$:t,r:ie}),se=new Map,re=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(s=i[h],n=oe(s));)l+=n+e[++h],c=!0;h!==o&&a.push(s),r.push(l),h++}if(h===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=se.get(t))&&(r.raw=r,se.set(t,e=r)),i=a}return t(e,...i)})(q);var ae;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(ae||(ae={}));const le=bt.extend("--ft-typography-font-family",xt.titleFont),he=bt.extend("--ft-typography-font-family",xt.contentFont),ce={fontFamily:he,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")},pe=bt.extend("--ft-typography-title-font-family",le),de=bt.extend("--ft-typography-title-font-size",ce.fontSize,"20px"),fe=bt.extend("--ft-typography-title-font-weight",ce.fontWeight,"normal"),ue=bt.extend("--ft-typography-title-letter-spacing",ce.letterSpacing,"0.15px"),ve=bt.extend("--ft-typography-title-line-height",ce.lineHeight,"1.2"),be=bt.extend("--ft-typography-title-text-transform",ce.textTransform,"inherit"),ye=bt.extend("--ft-typography-title-dense-font-family",le),xe=bt.extend("--ft-typography-title-dense-font-size",ce.fontSize,"14px"),ge=bt.extend("--ft-typography-title-dense-font-weight",ce.fontWeight,"normal"),me=bt.extend("--ft-typography-title-dense-letter-spacing",ce.letterSpacing,"0.105px"),we=bt.extend("--ft-typography-title-dense-line-height",ce.lineHeight,"1.7"),$e=bt.extend("--ft-typography-title-dense-text-transform",ce.textTransform,"inherit"),Oe=bt.extend("--ft-typography-subtitle1-font-family",he),Se=bt.extend("--ft-typography-subtitle1-font-size",ce.fontSize,"16px"),ke=bt.extend("--ft-typography-subtitle1-font-weight",ce.fontWeight,"600"),Ce=bt.extend("--ft-typography-subtitle1-letter-spacing",ce.letterSpacing,"0.144px"),Ne=bt.extend("--ft-typography-subtitle1-line-height",ce.lineHeight,"1.5"),Ee=bt.extend("--ft-typography-subtitle1-text-transform",ce.textTransform,"inherit"),Re=bt.extend("--ft-typography-subtitle2-font-family",he),Me=bt.extend("--ft-typography-subtitle2-font-size",ce.fontSize,"14px"),je=bt.extend("--ft-typography-subtitle2-font-weight",ce.fontWeight,"normal"),Fe=bt.extend("--ft-typography-subtitle2-letter-spacing",ce.letterSpacing,"0.098px"),Ue=bt.extend("--ft-typography-subtitle2-line-height",ce.lineHeight,"1.7"),ze=bt.extend("--ft-typography-subtitle2-text-transform",ce.textTransform,"inherit"),Be=bt.extend("--ft-typography-body1-font-family",he),Te=bt.extend("--ft-typography-body1-font-size",ce.fontSize,"16px"),Pe=bt.extend("--ft-typography-body1-font-weight",ce.fontWeight,"normal"),Ae=bt.extend("--ft-typography-body1-letter-spacing",ce.letterSpacing,"0.496px"),Le=bt.extend("--ft-typography-body1-line-height",ce.lineHeight,"1.5"),Ie=bt.extend("--ft-typography-body1-text-transform",ce.textTransform,"inherit"),_e=bt.extend("--ft-typography-body2-font-family",he),De=bt.extend("--ft-typography-body2-font-size",ce.fontSize,"14px"),We=bt.extend("--ft-typography-body2-font-weight",ce.fontWeight,"normal"),He=bt.extend("--ft-typography-body2-letter-spacing",ce.letterSpacing,"0.252px"),Ke=bt.extend("--ft-typography-body2-line-height",ce.lineHeight,"1.4"),Ze=bt.extend("--ft-typography-body2-text-transform",ce.textTransform,"inherit"),Ve=bt.extend("--ft-typography-caption-font-family",he),Je=bt.extend("--ft-typography-caption-font-size",ce.fontSize,"12px"),qe=bt.extend("--ft-typography-caption-font-weight",ce.fontWeight,"normal"),Xe=bt.extend("--ft-typography-caption-letter-spacing",ce.letterSpacing,"0.396px"),Ye=bt.extend("--ft-typography-caption-line-height",ce.lineHeight,"1.33"),Ge=bt.extend("--ft-typography-caption-text-transform",ce.textTransform,"inherit"),Qe=bt.extend("--ft-typography-breadcrumb-font-family",he),ti=bt.extend("--ft-typography-breadcrumb-font-size",ce.fontSize,"10px"),ei=bt.extend("--ft-typography-breadcrumb-font-weight",ce.fontWeight,"normal"),ii=bt.extend("--ft-typography-breadcrumb-letter-spacing",ce.letterSpacing,"0.33px"),oi=bt.extend("--ft-typography-breadcrumb-line-height",ce.lineHeight,"1.6"),ni=bt.extend("--ft-typography-breadcrumb-text-transform",ce.textTransform,"inherit"),si=bt.extend("--ft-typography-overline-font-family",he),ri=bt.extend("--ft-typography-overline-font-size",ce.fontSize,"10px"),ai=bt.extend("--ft-typography-overline-font-weight",ce.fontWeight,"normal"),li=bt.extend("--ft-typography-overline-letter-spacing",ce.letterSpacing,"1.5px"),hi=bt.extend("--ft-typography-overline-line-height",ce.lineHeight,"1.6"),ci=bt.extend("--ft-typography-overline-text-transform",ce.textTransform,"uppercase"),pi={fontFamily:bt.extend("--ft-typography-button-font-family",he),fontSize:bt.extend("--ft-typography-button-font-size",ce.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-button-font-weight",ce.fontWeight,"600"),letterSpacing:bt.extend("--ft-typography-button-letter-spacing",ce.letterSpacing,"1.246px"),lineHeight:bt.extend("--ft-typography-button-line-height",ce.lineHeight,"1.15"),textTransform:bt.extend("--ft-typography-button-text-transform",ce.textTransform,"uppercase")},di=y`
237
+ const se=Symbol.for(""),re=t=>{if((null==t?void 0:t.r)===se)return null==t?void 0:t._$litStatic$},ae=t=>({_$litStatic$:t,r:se}),le=new Map,he=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(s=i[h],n=re(s));)l+=n+e[++h],c=!0;h!==o&&a.push(s),r.push(l),h++}if(h===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=le.get(t))&&(r.raw=r,le.set(t,e=r)),i=a}return t(e,...i)})(q);var ce;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(ce||(ce={}));const pe=bt.extend("--ft-typography-font-family",xt.titleFont),de=bt.extend("--ft-typography-font-family",xt.contentFont),fe={fontFamily:de,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")},ue=bt.extend("--ft-typography-title-font-family",pe),ve=bt.extend("--ft-typography-title-font-size",fe.fontSize,"20px"),be=bt.extend("--ft-typography-title-font-weight",fe.fontWeight,"normal"),ye=bt.extend("--ft-typography-title-letter-spacing",fe.letterSpacing,"0.15px"),xe=bt.extend("--ft-typography-title-line-height",fe.lineHeight,"1.2"),ge=bt.extend("--ft-typography-title-text-transform",fe.textTransform,"inherit"),me=bt.extend("--ft-typography-title-dense-font-family",pe),we=bt.extend("--ft-typography-title-dense-font-size",fe.fontSize,"14px"),$e=bt.extend("--ft-typography-title-dense-font-weight",fe.fontWeight,"normal"),Oe=bt.extend("--ft-typography-title-dense-letter-spacing",fe.letterSpacing,"0.105px"),Se=bt.extend("--ft-typography-title-dense-line-height",fe.lineHeight,"1.7"),ke=bt.extend("--ft-typography-title-dense-text-transform",fe.textTransform,"inherit"),Ce=bt.extend("--ft-typography-subtitle1-font-family",de),Ne=bt.extend("--ft-typography-subtitle1-font-size",fe.fontSize,"16px"),Ee=bt.extend("--ft-typography-subtitle1-font-weight",fe.fontWeight,"600"),Re=bt.extend("--ft-typography-subtitle1-letter-spacing",fe.letterSpacing,"0.144px"),Me=bt.extend("--ft-typography-subtitle1-line-height",fe.lineHeight,"1.5"),je=bt.extend("--ft-typography-subtitle1-text-transform",fe.textTransform,"inherit"),Ue=bt.extend("--ft-typography-subtitle2-font-family",de),Fe=bt.extend("--ft-typography-subtitle2-font-size",fe.fontSize,"14px"),ze=bt.extend("--ft-typography-subtitle2-font-weight",fe.fontWeight,"normal"),Be=bt.extend("--ft-typography-subtitle2-letter-spacing",fe.letterSpacing,"0.098px"),Te=bt.extend("--ft-typography-subtitle2-line-height",fe.lineHeight,"1.7"),Pe=bt.extend("--ft-typography-subtitle2-text-transform",fe.textTransform,"inherit"),Ae=bt.extend("--ft-typography-body1-font-family",de),Le=bt.extend("--ft-typography-body1-font-size",fe.fontSize,"16px"),Ie=bt.extend("--ft-typography-body1-font-weight",fe.fontWeight,"normal"),_e=bt.extend("--ft-typography-body1-letter-spacing",fe.letterSpacing,"0.496px"),De=bt.extend("--ft-typography-body1-line-height",fe.lineHeight,"1.5"),We=bt.extend("--ft-typography-body1-text-transform",fe.textTransform,"inherit"),He=bt.extend("--ft-typography-body2-font-family",de),Ke=bt.extend("--ft-typography-body2-font-size",fe.fontSize,"14px"),Ze=bt.extend("--ft-typography-body2-font-weight",fe.fontWeight,"normal"),Ve=bt.extend("--ft-typography-body2-letter-spacing",fe.letterSpacing,"0.252px"),Je=bt.extend("--ft-typography-body2-line-height",fe.lineHeight,"1.4"),qe=bt.extend("--ft-typography-body2-text-transform",fe.textTransform,"inherit"),Xe=bt.extend("--ft-typography-caption-font-family",de),Ye=bt.extend("--ft-typography-caption-font-size",fe.fontSize,"12px"),Ge=bt.extend("--ft-typography-caption-font-weight",fe.fontWeight,"normal"),Qe=bt.extend("--ft-typography-caption-letter-spacing",fe.letterSpacing,"0.396px"),ti=bt.extend("--ft-typography-caption-line-height",fe.lineHeight,"1.33"),ei=bt.extend("--ft-typography-caption-text-transform",fe.textTransform,"inherit"),ii=bt.extend("--ft-typography-breadcrumb-font-family",de),oi=bt.extend("--ft-typography-breadcrumb-font-size",fe.fontSize,"10px"),ni=bt.extend("--ft-typography-breadcrumb-font-weight",fe.fontWeight,"normal"),si=bt.extend("--ft-typography-breadcrumb-letter-spacing",fe.letterSpacing,"0.33px"),ri=bt.extend("--ft-typography-breadcrumb-line-height",fe.lineHeight,"1.6"),ai=bt.extend("--ft-typography-breadcrumb-text-transform",fe.textTransform,"inherit"),li=bt.extend("--ft-typography-overline-font-family",de),hi=bt.extend("--ft-typography-overline-font-size",fe.fontSize,"10px"),ci=bt.extend("--ft-typography-overline-font-weight",fe.fontWeight,"normal"),pi=bt.extend("--ft-typography-overline-letter-spacing",fe.letterSpacing,"1.5px"),di=bt.extend("--ft-typography-overline-line-height",fe.lineHeight,"1.6"),fi=bt.extend("--ft-typography-overline-text-transform",fe.textTransform,"uppercase"),ui={fontFamily:bt.extend("--ft-typography-button-font-family",de),fontSize:bt.extend("--ft-typography-button-font-size",fe.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-button-font-weight",fe.fontWeight,"600"),letterSpacing:bt.extend("--ft-typography-button-letter-spacing",fe.letterSpacing,"1.246px"),lineHeight:bt.extend("--ft-typography-button-line-height",fe.lineHeight,"1.15"),textTransform:bt.extend("--ft-typography-button-text-transform",fe.textTransform,"uppercase")},vi=y`
238
238
  .ft-typography--title {
239
- font-family: ${pe};
240
- font-size: ${de};
241
- font-weight: ${fe};
242
- letter-spacing: ${ue};
243
- line-height: ${ve};
244
- text-transform: ${be};
245
- }
246
- `,fi=y`
247
- .ft-typography--title-dense {
248
- font-family: ${ye};
249
- font-size: ${xe};
250
- font-weight: ${ge};
251
- letter-spacing: ${me};
252
- line-height: ${we};
253
- text-transform: ${$e};
254
- }
255
- `,ui=y`
256
- .ft-typography--subtitle1 {
257
- font-family: ${Oe};
258
- font-size: ${Se};
259
- font-weight: ${ke};
260
- letter-spacing: ${Ce};
261
- line-height: ${Ne};
262
- text-transform: ${Ee};
263
- }
264
- `,vi=y`
265
- .ft-typography--subtitle2 {
266
- font-family: ${Re};
267
- font-size: ${Me};
268
- font-weight: ${je};
269
- letter-spacing: ${Fe};
270
- line-height: ${Ue};
271
- text-transform: ${ze};
239
+ font-family: ${ue};
240
+ font-size: ${ve};
241
+ font-weight: ${be};
242
+ letter-spacing: ${ye};
243
+ line-height: ${xe};
244
+ text-transform: ${ge};
272
245
  }
273
-
274
246
  `,bi=y`
275
- .ft-typography--body1 {
276
- font-family: ${Be};
277
- font-size: ${Te};
278
- font-weight: ${Pe};
279
- letter-spacing: ${Ae};
280
- line-height: ${Le};
281
- text-transform: ${Ie};
247
+ .ft-typography--title-dense {
248
+ font-family: ${me};
249
+ font-size: ${we};
250
+ font-weight: ${$e};
251
+ letter-spacing: ${Oe};
252
+ line-height: ${Se};
253
+ text-transform: ${ke};
282
254
  }
283
255
  `,yi=y`
284
- .ft-typography--body2 {
285
- font-family: ${_e};
286
- font-size: ${De};
287
- font-weight: ${We};
288
- letter-spacing: ${He};
289
- line-height: ${Ke};
290
- text-transform: ${Ze};
256
+ .ft-typography--subtitle1 {
257
+ font-family: ${Ce};
258
+ font-size: ${Ne};
259
+ font-weight: ${Ee};
260
+ letter-spacing: ${Re};
261
+ line-height: ${Me};
262
+ text-transform: ${je};
291
263
  }
292
264
  `,xi=y`
293
- .ft-typography--caption {
294
- font-family: ${Ve};
295
- font-size: ${Je};
296
- font-weight: ${qe};
297
- letter-spacing: ${Xe};
298
- line-height: ${Ye};
299
- text-transform: ${Ge};
265
+ .ft-typography--subtitle2 {
266
+ font-family: ${Ue};
267
+ font-size: ${Fe};
268
+ font-weight: ${ze};
269
+ letter-spacing: ${Be};
270
+ line-height: ${Te};
271
+ text-transform: ${Pe};
300
272
  }
273
+
301
274
  `,gi=y`
302
- .ft-typography--breadcrumb {
303
- font-family: ${Qe};
304
- font-size: ${ti};
305
- font-weight: ${ei};
306
- letter-spacing: ${ii};
307
- line-height: ${oi};
308
- text-transform: ${ni};
275
+ .ft-typography--body1 {
276
+ font-family: ${Ae};
277
+ font-size: ${Le};
278
+ font-weight: ${Ie};
279
+ letter-spacing: ${_e};
280
+ line-height: ${De};
281
+ text-transform: ${We};
309
282
  }
310
283
  `,mi=y`
311
- .ft-typography--overline {
312
- font-family: ${si};
313
- font-size: ${ri};
314
- font-weight: ${ai};
315
- letter-spacing: ${li};
316
- line-height: ${hi};
317
- text-transform: ${ci};
284
+ .ft-typography--body2 {
285
+ font-family: ${He};
286
+ font-size: ${Ke};
287
+ font-weight: ${Ze};
288
+ letter-spacing: ${Ve};
289
+ line-height: ${Je};
290
+ text-transform: ${qe};
318
291
  }
319
292
  `,wi=y`
320
- .ft-typography--button {
321
- font-family: ${pi.fontFamily};
322
- font-size: ${pi.fontSize};
323
- font-weight: ${pi.fontWeight};
324
- letter-spacing: ${pi.letterSpacing};
325
- line-height: ${pi.lineHeight};
326
- text-transform: ${pi.textTransform};
293
+ .ft-typography--caption {
294
+ font-family: ${Xe};
295
+ font-size: ${Ye};
296
+ font-weight: ${Ge};
297
+ letter-spacing: ${Qe};
298
+ line-height: ${ti};
299
+ text-transform: ${ei};
327
300
  }
328
301
  `,$i=y`
302
+ .ft-typography--breadcrumb {
303
+ font-family: ${ii};
304
+ font-size: ${oi};
305
+ font-weight: ${ni};
306
+ letter-spacing: ${si};
307
+ line-height: ${ri};
308
+ text-transform: ${ai};
309
+ }
310
+ `,Oi=y`
311
+ .ft-typography--overline {
312
+ font-family: ${li};
313
+ font-size: ${hi};
314
+ font-weight: ${ci};
315
+ letter-spacing: ${pi};
316
+ line-height: ${di};
317
+ text-transform: ${fi};
318
+ }
319
+ `,Si=y`
320
+ .ft-typography--button {
321
+ font-family: ${ui.fontFamily};
322
+ font-size: ${ui.fontSize};
323
+ font-weight: ${ui.fontWeight};
324
+ letter-spacing: ${ui.letterSpacing};
325
+ line-height: ${ui.lineHeight};
326
+ text-transform: ${ui.textTransform};
327
+ }
328
+ `,ki=y`
329
329
  .ft-typography {
330
330
  vertical-align: inherit;
331
331
  }
332
- `;var Oi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Si extends kt{constructor(){super(...arguments),this.variant=ae.body1}render(){return this.element?re`
333
- <${ne(this.element)}
332
+ `;var Ci=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ni extends kt{constructor(){super(...arguments),this.variant=ce.body1}render(){return this.element?he`
333
+ <${ae(this.element)}
334
334
  class="ft-typography ft-typography--${this.variant}">
335
335
  <slot></slot>
336
- </${ne(this.element)}>
337
- `:re`
336
+ </${ae(this.element)}>
337
+ `:he`
338
338
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
339
- `}}Si.styles=[di,fi,ui,vi,bi,yi,xi,gi,mi,wi,$i],Oi([o()],Si.prototype,"element",void 0),Oi([o()],Si.prototype,"variant",void 0),c("ft-typography")(Si);const ki=bt.create("--ft-tooltip-distance","SIZE","4px"),Ci=bt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ni=bt.create("--ft-tooltip-background-color","COLOR","#666666"),Ei=bt.create("--ft-tooltip-z-index","NUMBER","1"),Ri=bt.external(xt.borderRadiusS,"Design system"),Mi=bt.create("--ft-tooltip-max-width","SIZE","150px"),ji=y`
339
+ `}}Ni.styles=[vi,bi,yi,xi,gi,mi,wi,$i,Oi,Si,ki],Ci([o()],Ni.prototype,"element",void 0),Ci([o()],Ni.prototype,"variant",void 0),c("ft-typography")(Ni);const Ei=bt.create("--ft-tooltip-distance","SIZE","4px"),Ri=bt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Mi=bt.create("--ft-tooltip-background-color","COLOR","#666666"),ji=bt.create("--ft-tooltip-z-index","NUMBER","1"),Ui=bt.external(xt.borderRadiusS,"Design system"),Fi=bt.create("--ft-tooltip-max-width","SIZE","150px"),zi=y`
340
340
  .ft-tooltip--container {
341
341
  display: block;
342
342
  position: relative;
@@ -352,23 +352,23 @@ const ie=Symbol.for(""),oe=t=>{if((null==t?void 0:t.r)===ie)return null==t?void
352
352
  box-sizing: border-box;
353
353
  overflow: hidden;
354
354
  width: max-content;
355
- max-width: ${Mi};
355
+ max-width: ${Fi};
356
356
  text-align: center;
357
- padding: ${ki};
358
- z-index: ${Ei};
357
+ padding: ${Ei};
358
+ z-index: ${ji};
359
359
  }
360
360
 
361
361
  .ft-tooltip--content {
362
362
  padding: 4px 8px;
363
- border-radius: ${Ri};
364
- background-color: ${Ni};
365
- color: ${Ci};
363
+ border-radius: ${Ui};
364
+ background-color: ${Mi};
365
+ color: ${Ri};
366
366
  top: -500px;
367
367
  left: -500px;
368
368
  position: relative;
369
369
  word-break: break-word;
370
370
  }
371
- `;var Fi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ui 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 e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return q`
371
+ `;var Bi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ti 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 e,this.revealDebouncer=new e}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return q`
372
372
  <div part="container"
373
373
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
374
374
  @mouseenter=${this.onHover}
@@ -386,13 +386,13 @@ const ie=Symbol.for(""),oe=t=>{if((null==t?void 0:t.r)===ie)return null==t?void
386
386
  </div>
387
387
  </div>
388
388
  </div>
389
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&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 e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.validPosition){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=e.height,n=o;break;case"left":s=i,n=-this.tooltip.clientWidth;break;case"right":s=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=4-e.left);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${e.width}px, ${Mi})`}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())}}Ui.elementDefinitions={"ft-typography":Si},Ui.styles=ji,Fi([o()],Ui.prototype,"text",void 0),Fi([o({type:Boolean})],Ui.prototype,"manual",void 0),Fi([o({type:Boolean})],Ui.prototype,"inline",void 0),Fi([o({type:Number})],Ui.prototype,"delay",void 0),Fi([o()],Ui.prototype,"position",void 0),Fi([
389
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&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 e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.validPosition){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=e.height,n=o;break;case"left":s=i,n=-this.tooltip.clientWidth;break;case"right":s=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=4-e.left);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${e.width}px, ${Fi})`}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())}}Ti.elementDefinitions={"ft-typography":Ni},Ti.styles=zi,Bi([o()],Ti.prototype,"text",void 0),Bi([o({type:Boolean})],Ti.prototype,"manual",void 0),Bi([o({type:Boolean})],Ti.prototype,"inline",void 0),Bi([o({type:Number})],Ti.prototype,"delay",void 0),Bi([o()],Ti.prototype,"position",void 0),Bi([
390
390
  /**
391
391
  * @license
392
392
  * Copyright 2017 Google LLC
393
393
  * SPDX-License-Identifier: BSD-3-Clause
394
394
  */
395
- function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?l(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Ui.prototype,"slotNodes",void 0),Fi([r(".ft-tooltip--container")],Ui.prototype,"container",void 0),Fi([r("slot")],Ui.prototype,"target",void 0),Fi([r(".ft-tooltip")],Ui.prototype,"tooltip",void 0),Fi([r(".ft-tooltip--content")],Ui.prototype,"tooltipContent",void 0),Fi([n()],Ui.prototype,"visible",void 0),c("ft-tooltip")(Ui);const zi={color:bt.extend("--ft-loader-color",xt.colorPrimary),size:bt.create("--ft-loader-size","SIZE","80px")},Bi=y`
395
+ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?l(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],Ti.prototype,"slotNodes",void 0),Bi([r(".ft-tooltip--container")],Ti.prototype,"container",void 0),Bi([r("slot")],Ti.prototype,"target",void 0),Bi([r(".ft-tooltip")],Ti.prototype,"tooltip",void 0),Bi([r(".ft-tooltip--content")],Ti.prototype,"tooltipContent",void 0),Bi([n()],Ti.prototype,"visible",void 0),c("ft-tooltip")(Ti);const Pi={color:bt.extend("--ft-loader-color",xt.colorPrimary),size:bt.create("--ft-loader-size","SIZE","80px")},Ai=y`
396
396
  :host {
397
397
  line-height: 0;
398
398
  }
@@ -401,8 +401,8 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
401
401
  display: inline-block;
402
402
  position: relative;
403
403
 
404
- width: ${zi.size};
405
- height: ${zi.size};
404
+ width: ${Pi.size};
405
+ height: ${Pi.size};
406
406
  }
407
407
 
408
408
  .ft-loader div {
@@ -411,7 +411,7 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
411
411
  width: 25%;
412
412
  height: 25%;
413
413
  border-radius: 50%;
414
- background: ${zi.color};
414
+ background: ${Pi.color};
415
415
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
416
416
  }
417
417
 
@@ -458,23 +458,23 @@ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},
458
458
  transform: translate(0, 0);
459
459
  }
460
460
  100% {
461
- transform: translate(calc(0.35 * ${zi.size}), 0);
461
+ transform: translate(calc(0.35 * ${Pi.size}), 0);
462
462
  }
463
463
  }
464
- `;class Ti extends kt{render(){return q`
464
+ `;class Li extends kt{render(){return q`
465
465
  <div class="ft-loader">
466
466
  <div></div>
467
467
  <div></div>
468
468
  <div></div>
469
469
  <div></div>
470
470
  </div>
471
- `}}Ti.styles=Bi,c("ft-loader")(Ti);
471
+ `}}Li.styles=Ai,c("ft-loader")(Li);
472
472
  /**
473
473
  * @license
474
474
  * Copyright 2017 Google LLC
475
475
  * SPDX-License-Identifier: BSD-3-Clause
476
476
  */
477
- class Pi extends Wt{constructor(t){if(super(t),this.et=Y,t.type!==_t)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 e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Pi.directiveName="unsafeHTML",Pi.resultType=1;const Ai=Dt(Pi);var Li,Ii;!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.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;"}(Li||(Li={})),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;"}(Ii||(Ii={})),new Map([...["abw"].map((t=>[t,Ii.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,Ii.AUDIO])),...["avi"].map((t=>[t,Ii.AVI])),...["chm","xhs"].map((t=>[t,Ii.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,Ii.CODE])),...["csv"].map((t=>[t,Ii.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ii.DITA])),...["epub"].map((t=>[t,Ii.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ii.EXCEL])),...["flac"].map((t=>[t,Ii.FLAC])),...["gif"].map((t=>[t,Ii.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ii.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ii.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,Ii.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ii.JPEG])),...["json"].map((t=>[t,Ii.JSON])),...["m4a","m4p"].map((t=>[t,Ii.M4A])),...["mov","qt"].map((t=>[t,Ii.MOV])),...["mp3"].map((t=>[t,Ii.MP3])),...["mp4","m4v"].map((t=>[t,Ii.MP4])),...["ogg","oga"].map((t=>[t,Ii.OGG])),...["pdf","ps"].map((t=>[t,Ii.PDF])),...["png"].map((t=>[t,Ii.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ii.POWERPOINT])),...["rar"].map((t=>[t,Ii.RAR])),...["stp"].map((t=>[t,Ii.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ii.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,Ii.VIDEO])),...["wav"].map((t=>[t,Ii.WAV])),...["wma"].map((t=>[t,Ii.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ii.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ii.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ii.YAML])),...["zip"].map((t=>[t,Ii.ZIP]))]);const _i={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")},Di=y`
477
+ class Ii extends Zt{constructor(t){if(super(t),this.et=Y,t.type!==Ht)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 e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ii.directiveName="unsafeHTML",Ii.resultType=1;const _i=Kt(Ii);var Di,Wi;!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.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;"}(Di||(Di={})),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;"}(Wi||(Wi={})),new Map([...["abw"].map((t=>[t,Wi.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,Wi.AUDIO])),...["avi"].map((t=>[t,Wi.AVI])),...["chm","xhs"].map((t=>[t,Wi.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,Wi.CODE])),...["csv"].map((t=>[t,Wi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Wi.DITA])),...["epub"].map((t=>[t,Wi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Wi.EXCEL])),...["flac"].map((t=>[t,Wi.FLAC])),...["gif"].map((t=>[t,Wi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Wi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Wi.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,Wi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Wi.JPEG])),...["json"].map((t=>[t,Wi.JSON])),...["m4a","m4p"].map((t=>[t,Wi.M4A])),...["mov","qt"].map((t=>[t,Wi.MOV])),...["mp3"].map((t=>[t,Wi.MP3])),...["mp4","m4v"].map((t=>[t,Wi.MP4])),...["ogg","oga"].map((t=>[t,Wi.OGG])),...["pdf","ps"].map((t=>[t,Wi.PDF])),...["png"].map((t=>[t,Wi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Wi.POWERPOINT])),...["rar"].map((t=>[t,Wi.RAR])),...["stp"].map((t=>[t,Wi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Wi.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,Wi.VIDEO])),...["wav"].map((t=>[t,Wi.WAV])),...["wma"].map((t=>[t,Wi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Wi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Wi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Wi.YAML])),...["zip"].map((t=>[t,Wi.ZIP]))]);const Hi={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")},Ki=y`
478
478
  :host, i.ft-icon {
479
479
  display: inline-flex;
480
480
  align-items: center;
@@ -483,14 +483,14 @@ class Pi extends Wt{constructor(t){if(super(t),this.et=Y,t.type!==_t)throw Error
483
483
  }
484
484
 
485
485
  :host {
486
- width: ${_i.size};
487
- height: ${_i.size};
486
+ width: ${Hi.size};
487
+ height: ${Hi.size};
488
488
  }
489
489
 
490
490
  i.ft-icon {
491
491
  width: 100%;
492
492
  height: 100%;
493
- font-size: ${_i.size};
493
+ font-size: ${Hi.size};
494
494
  line-height: 1;
495
495
  font-weight: normal;
496
496
  text-transform: none;
@@ -501,33 +501,33 @@ class Pi extends Wt{constructor(t){if(super(t),this.et=Y,t.type!==_t)throw Error
501
501
  text-rendering: auto;
502
502
  -webkit-font-smoothing: antialiased;
503
503
  -moz-osx-font-smoothing: grayscale;
504
- vertical-align: ${_i.verticalAlign};
504
+ vertical-align: ${Hi.verticalAlign};
505
505
  }
506
506
 
507
507
  i.ft-icon.ft-icon--fluid-topics {
508
- font-family: ${_i.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
508
+ font-family: ${Hi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
509
509
 
510
510
  /* Ugly fix because font is broken */
511
- font-size: calc(0.75 * ${_i.size});
512
- line-height: ${_i.size};
511
+ font-size: calc(0.75 * ${Hi.size});
512
+ line-height: ${Hi.size};
513
513
  position: relative;
514
514
  top: -4%;
515
515
  justify-content: center;
516
516
  }
517
517
 
518
518
  .ft-icon--file-format {
519
- font-family: ${_i.fileFormatFontFamily}, ft-mime, sans-serif;
519
+ font-family: ${Hi.fileFormatFontFamily}, ft-mime, sans-serif;
520
520
  }
521
521
 
522
522
  .ft-icon--material {
523
- font-family: ${_i.materialFontFamily}, "Material Icons", sans-serif;
523
+ font-family: ${Hi.materialFontFamily}, "Material Icons", sans-serif;
524
524
  }
525
- `;var Wi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Wi||(Wi={}));var Hi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ki extends kt{constructor(){super(...arguments),this.resolvedIcon=Y}render(){const t=this.variant&&Object.values(Wi).includes(this.variant)?this.variant:Wi.fluid_topics,e=t!==Wi.material||!!this.value;return q`
525
+ `;var Zi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Zi||(Zi={}));var Vi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Ji extends kt{constructor(){super(...arguments),this.resolvedIcon=Y}render(){const t=this.variant&&Object.values(Zi).includes(this.variant)?this.variant:Zi.fluid_topics,e=t!==Zi.material||!!this.value;return q`
526
526
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
527
- ${Ai(this.resolvedIcon)}
527
+ ${_i(this.resolvedIcon)}
528
528
  <slot ?hidden=${e}></slot>
529
529
  </i>
530
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Wi.file_format:this.resolvedIcon=null!==(t=Ii[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Wi.material:this.resolvedIcon=this.value||Y;break;default:this.resolvedIcon=null!==(e=Li[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ki.elementDefinitions={},Ki.styles=Di,Hi([o()],Ki.prototype,"variant",void 0),Hi([o()],Ki.prototype,"value",void 0),Hi([n()],Ki.prototype,"resolvedIcon",void 0),Hi([r("slot")],Ki.prototype,"slottedContent",void 0),c("ft-icon")(Ki);const Zi=bt.extend("--ft-button-color",xt.colorPrimary),Vi={backgroundColor:bt.extend("--ft-button-background-color",xt.colorSurface),borderRadius:bt.extend("--ft-button-border-radius",xt.borderRadiusL),color:Zi,fontSize:bt.extend("--ft-button-font-size",pi.fontSize),iconSize:bt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:bt.extend("--ft-button-ripple-color",Zi),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(xt.colorOpacityDisabled,"Design system")},Ji=bt.extend("--ft-button-primary-color",bt.extend("--ft-button-color",xt.colorOnPrimary)),qi={backgroundColor:bt.extend("--ft-button-primary-background-color",bt.extend("--ft-button-background-color",xt.colorPrimary)),color:Ji,rippleColor:bt.extend("--ft-button-primary-ripple-color",Ji)},Xi=bt.extend("--ft-button-dense-border-radius",bt.extend("--ft-button-border-radius",xt.borderRadiusM)),Yi=bt.create("--ft-button-dense-vertical-padding","SIZE","2px"),Gi=bt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Qi=bt.create("--ft-button-dense-icon-padding","SIZE","4px"),to=[y`
530
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Zi.file_format:this.resolvedIcon=null!==(t=Wi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Zi.material:this.resolvedIcon=this.value||Y;break;default:this.resolvedIcon=null!==(e=Di[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ji.elementDefinitions={},Ji.styles=Ki,Vi([o()],Ji.prototype,"variant",void 0),Vi([o()],Ji.prototype,"value",void 0),Vi([n()],Ji.prototype,"resolvedIcon",void 0),Vi([r("slot")],Ji.prototype,"slottedContent",void 0),c("ft-icon")(Ji);const qi=bt.extend("--ft-button-color",xt.colorPrimary),Xi={backgroundColor:bt.extend("--ft-button-background-color",xt.colorSurface),borderRadius:bt.extend("--ft-button-border-radius",xt.borderRadiusL),color:qi,fontSize:bt.extend("--ft-button-font-size",ui.fontSize),iconSize:bt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:bt.extend("--ft-button-ripple-color",qi),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(xt.colorOpacityDisabled,"Design system")},Yi=bt.extend("--ft-button-primary-color",bt.extend("--ft-button-color",xt.colorOnPrimary)),Gi={backgroundColor:bt.extend("--ft-button-primary-background-color",bt.extend("--ft-button-background-color",xt.colorPrimary)),color:Yi,rippleColor:bt.extend("--ft-button-primary-ripple-color",Yi)},Qi=bt.extend("--ft-button-dense-border-radius",bt.extend("--ft-button-border-radius",xt.borderRadiusM)),to=bt.create("--ft-button-dense-vertical-padding","SIZE","2px"),eo=bt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),io=bt.create("--ft-button-dense-icon-padding","SIZE","4px"),oo=[y`
531
531
  :host {
532
532
  display: inline-block;
533
533
  max-width: 100%;
@@ -538,7 +538,7 @@ class Pi extends Wt{constructor(t){if(super(t),this.et=Y,t.type!==_t)throw Error
538
538
  box-shadow: 0px 0px 0px transparent;
539
539
  border: 0px solid transparent;
540
540
  text-shadow: 0px 0px 0px transparent;
541
- font-size: ${Vi.fontSize};
541
+ font-size: ${Xi.fontSize};
542
542
  }
543
543
 
544
544
  button:hover {
@@ -567,31 +567,31 @@ class Pi extends Wt{constructor(t){if(super(t),this.et=Y,t.type!==_t)throw Error
567
567
  border: none;
568
568
  pointer-events: auto;
569
569
 
570
- --ft-button-internal-line-height: max(calc(${Vi.fontSize} + 2px), ${Vi.iconSize});
571
- --ft-button-internal-color: ${Vi.color};
572
- ${yt(_i.size,Vi.iconSize)};
573
- ${yt(Zt.color,Vi.rippleColor)};
570
+ --ft-button-internal-line-height: max(calc(${Xi.fontSize} + 2px), ${Xi.iconSize});
571
+ --ft-button-internal-color: ${Xi.color};
572
+ ${yt(Hi.size,Xi.iconSize)};
573
+ ${yt(qt.color,Xi.rippleColor)};
574
574
 
575
- border-radius: ${Vi.borderRadius};
576
- padding: ${Vi.verticalPadding} ${Vi.horizontalPadding};
577
- background-color: ${Vi.backgroundColor};
575
+ border-radius: ${Xi.borderRadius};
576
+ padding: ${Xi.verticalPadding} ${Xi.horizontalPadding};
577
+ background-color: ${Xi.backgroundColor};
578
578
  color: var(--ft-button-internal-color);
579
579
  -webkit-mask-image: radial-gradient(white, black);
580
580
  }
581
581
 
582
582
  .ft-button.ft-button--outlined {
583
583
  border: 1px solid var(--ft-button-internal-color);
584
- padding: calc(${Vi.verticalPadding} - 1px) calc(${Vi.horizontalPadding} - 1px);
584
+ padding: calc(${Xi.verticalPadding} - 1px) calc(${Xi.horizontalPadding} - 1px);
585
585
  }
586
586
 
587
587
  .ft-button.ft-button--dense {
588
- padding: ${Yi} ${Gi};
589
- border-radius: ${Xi};
590
- gap: ${Qi};
588
+ padding: ${to} ${eo};
589
+ border-radius: ${Qi};
590
+ gap: ${io};
591
591
  }
592
592
 
593
593
  .ft-button.ft-button--dense.ft-button--outlined {
594
- padding: calc(${Yi} - 1px) calc(${Gi} - 1px);
594
+ padding: calc(${to} - 1px) calc(${eo} - 1px);
595
595
  }
596
596
 
597
597
  .ft-button:not([disabled]):hover {
@@ -599,22 +599,22 @@ class Pi extends Wt{constructor(t){if(super(t),this.et=Y,t.type!==_t)throw Error
599
599
  }
600
600
 
601
601
  .ft-button--round {
602
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Vi.verticalPadding});
602
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Xi.verticalPadding});
603
603
  }
604
604
 
605
605
  .ft-button--round.ft-button--dense {
606
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Yi});
606
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${to});
607
607
  }
608
608
 
609
609
  .ft-button[disabled] {
610
610
  filter: grayscale(1);
611
- opacity: ${Vi.opacityDisabled};
611
+ opacity: ${Xi.opacityDisabled};
612
612
  }
613
613
 
614
614
  .ft-button.ft-button--primary {
615
- background-color: ${qi.backgroundColor};
616
- --ft-button-internal-color: ${qi.color};
617
- ${yt(Zt.color,qi.rippleColor)};
615
+ background-color: ${Gi.backgroundColor};
616
+ --ft-button-internal-color: ${Gi.color};
617
+ ${yt(qt.color,Gi.rippleColor)};
618
618
  }
619
619
 
620
620
  .ft-button:focus {
@@ -627,13 +627,13 @@ class Pi extends Wt{constructor(t){if(super(t),this.et=Y,t.type!==_t)throw Error
627
627
  white-space: nowrap;
628
628
  text-overflow: ellipsis;
629
629
  display: block;
630
- margin: 0 ${Vi.iconPadding};
631
- ${yt(pi.fontSize,"1em")};
632
- ${yt(pi.lineHeight,"var(--ft-button-internal-line-height)")};
630
+ margin: 0 ${Xi.iconPadding};
631
+ ${yt(ui.fontSize,"1em")};
632
+ ${yt(ui.lineHeight,"var(--ft-button-internal-line-height)")};
633
633
  }
634
634
 
635
635
  .ft-button--dense .ft-button--label {
636
- margin: 0 ${Qi};
636
+ margin: 0 ${io};
637
637
  }
638
638
 
639
639
  .ft-button--label[hidden] {
@@ -646,13 +646,13 @@ class Pi extends Wt{constructor(t){if(super(t),this.et=Y,t.type!==_t)throw Error
646
646
  }
647
647
 
648
648
  .ft-button--label[hidden] + ft-icon {
649
- margin: 0 calc(${Vi.horizontalPadding} * -1);
650
- padding: 0 ${Vi.verticalPadding};
649
+ margin: 0 calc(${Xi.horizontalPadding} * -1);
650
+ padding: 0 ${Xi.verticalPadding};
651
651
  }
652
652
 
653
653
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
654
- margin: 0 calc(${Gi} * -1);
655
- padding: 0 ${Yi};
654
+ margin: 0 calc(${eo} * -1);
655
+ padding: 0 ${to};
656
656
  }
657
657
 
658
658
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -661,19 +661,19 @@ class Pi extends Wt{constructor(t){if(super(t),this.et=Y,t.type!==_t)throw Error
661
661
  }
662
662
 
663
663
  ft-loader {
664
- ${yt(zi.size,Vi.iconSize)};
665
- ${yt(zi.color,"var(--ft-button-internal-color)")};
664
+ ${yt(Pi.size,Xi.iconSize)};
665
+ ${yt(Pi.color,"var(--ft-button-internal-color)")};
666
666
  }
667
- `,Ct];var eo=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class io 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 no=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};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`
668
668
  <button part="button"
669
- class="${Ht(t)}"
669
+ class="${Vt(t)}"
670
670
  aria-label="${this.getLabel()}"
671
671
  ?disabled=${this.isDisabled()}>
672
672
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
673
673
  <ft-typography part="label"
674
674
  variant="button"
675
675
  element="span"
676
- class="ft-button--label ${Tt?"ft-safari-ellipsis-fix":""}"
676
+ class="ft-button--label ${Lt?"ft-safari-ellipsis-fix":""}"
677
677
  ?hidden=${!this.hasTextContent()}>
678
678
  <slot @slotchange=${this.onSlotchange}></slot>
679
679
  </ft-typography>
@@ -687,13 +687,13 @@ class Pi extends Wt{constructor(t){if(super(t),this.et=Y,t.type!==_t)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}}io.elementDefinitions={"ft-ripple":ee,"ft-tooltip":Ui,"ft-typography":Si,"ft-icon":Ki,"ft-loader":Ti},io.styles=[Nt,to],eo([o({type:String,reflect:!0})],io.prototype,"role",void 0),eo([o({type:Boolean})],io.prototype,"primary",void 0),eo([o({type:Boolean})],io.prototype,"outlined",void 0),eo([o({type:Boolean})],io.prototype,"disabled",void 0),eo([o({type:Boolean})],io.prototype,"dense",void 0),eo([o({type:Boolean})],io.prototype,"round",void 0),eo([o()],io.prototype,"label",void 0),eo([o()],io.prototype,"icon",void 0),eo([o()],io.prototype,"iconVariant",void 0),eo([o({type:Boolean})],io.prototype,"trailingIcon",void 0),eo([o({type:Boolean})],io.prototype,"loading",void 0),eo([o()],io.prototype,"tooltipPosition",void 0),eo([o({type:Boolean})],io.prototype,"hideTooltip",void 0),eo([o({type:Boolean})],io.prototype,"forceTooltip",void 0),eo([r(".ft-button")],io.prototype,"button",void 0),eo([r(".ft-button--label slot")],io.prototype,"slottedContent",void 0),c("ft-button")(io);var oo=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class no extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const so=Symbol("registerInterval");class ro extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=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[so]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[so]):this.dispatchEvent(new no)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=so,oo([n()],i.prototype,"stateManager",void 0),i}(Ft)){}var ao=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class lo extends ro{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=Ht({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return 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":ne,"ft-tooltip":Ti,"ft-typography":Ni,"ft-icon":Ji,"ft-loader":Li},so.styles=[Nt,oo],no([o({type:String,reflect:!0})],so.prototype,"role",void 0),no([o({type:Boolean})],so.prototype,"primary",void 0),no([o({type:Boolean})],so.prototype,"outlined",void 0),no([o({type:Boolean})],so.prototype,"disabled",void 0),no([o({type:Boolean})],so.prototype,"dense",void 0),no([o({type:Boolean})],so.prototype,"round",void 0),no([o()],so.prototype,"label",void 0),no([o()],so.prototype,"icon",void 0),no([o()],so.prototype,"iconVariant",void 0),no([o({type:Boolean})],so.prototype,"trailingIcon",void 0),no([o({type:Boolean})],so.prototype,"loading",void 0),no([o()],so.prototype,"tooltipPosition",void 0),no([o({type:Boolean})],so.prototype,"hideTooltip",void 0),no([o({type:Boolean})],so.prototype,"forceTooltip",void 0),no([r(".ft-button")],so.prototype,"button",void 0),no([r(".ft-button--label slot")],so.prototype,"slottedContent",void 0),c("ft-button")(so);var ro=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class ao extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const lo=Symbol("registerInterval");class ho extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=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[lo]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[lo]):this.dispatchEvent(new ao)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=lo,ro([n()],i.prototype,"stateManager",void 0),i}(zt)){}var co=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class po extends ho{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let e=Vt({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return q`
691
691
  <a class=${e}
692
692
  href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
693
693
  @click=${t=>this.onLinkClick(t)}>
694
694
  <slot></slot>
695
695
  </a>
696
- `}onLinkClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber)),this.click())}}lo.styles=At,ao([o()],lo.prototype,"tocId",void 0),ao([o()],lo.prototype,"section",void 0),ao([o({type:Number})],lo.prototype,"pageNumber",void 0),ao([o({type:Boolean})],lo.prototype,"removeStyle",void 0),c("ft-reader-internal-link")(lo);var ho=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class co extends ro{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new e(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?Li.THIN_ARROW_RIGHT:Li.THIN_ARROW_LEFT}render(){var t,e,i,o,n;if(null==this.targetPage&&!this.editorMode)return Y;const s=q`
696
+ `}onLinkClick(t){var e;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),this.tocId&&(null===(e=this.stateManager)||void 0===e||e.navigateToTopic(this.tocId,this.section,this.pageNumber)),this.click())}}po.styles=_t,co([o()],po.prototype,"tocId",void 0),co([o()],po.prototype,"section",void 0),co([o({type:Number})],po.prototype,"pageNumber",void 0),co([o({type:Boolean})],po.prototype,"removeStyle",void 0),c("ft-reader-internal-link")(po);var fo=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class uo extends ho{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new e(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?Di.THIN_ARROW_RIGHT:Di.THIN_ARROW_LEFT}render(){var t,e,i,o,n;if(null==this.targetPage&&!this.editorMode)return Y;const s=q`
697
697
  <ft-button ?forceTooltip=${!this.hideTooltip}
698
698
  ?hideTooltip=${this.hideTooltip}
699
699
  ?trailingIcon=${this.trailingIcon}
@@ -707,4 +707,4 @@ class Pi extends Wt{constructor(t){if(super(t),this.et=Y,t.type!==_t)throw Error
707
707
  <ft-reader-internal-link .tocId=${null===(n=this.targetPage)||void 0===n?void 0:n.rootTocId} removestyle>
708
708
  ${s}
709
709
  </ft-reader-internal-link>
710
- `}update(t){super.update(t),t.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run((()=>this.updateTarget())))}async updateTarget(){var t,e;if(this.currentPage){const i=this.currentPage.number+("next"===this.target?1:-1);this.targetPage=await(null===(t=this.service)||void 0===t?void 0:t.getPage(i)),(null===(e=this.targetPage)||void 0===e?void 0:e.number)!==i&&(this.targetPage=void 0)}else this.targetPage=void 0;this.isReady=!0}}co.elementDefinitions={"ft-button":io,"ft-reader-internal-link":lo},co.styles=Lt,ho([o()],co.prototype,"target",void 0),ho([o()],co.prototype,"content",void 0),ho([o()],co.prototype,"tooltipPosition",void 0),ho([o({type:Boolean})],co.prototype,"hideTooltip",void 0),ho([o()],co.prototype,"iconVariant",void 0),ho([o()],co.prototype,"icon",void 0),ho([o({type:Boolean})],co.prototype,"trailingIcon",void 0),ho([o({type:Boolean,attribute:!1})],co.prototype,"editorMode",void 0),ho([(t=>{const e=null!=t?t:{};return(t,i)=>{var n;const s={hasChanged:(t,e)=>!h(t,e),attribute:!1,...e};o(s)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}})()],co.prototype,"currentPage",void 0),ho([n()],co.prototype,"targetPage",void 0),c("ft-reader-navigation-button")(co),t.FtReaderNavigationButton=co,t.FtReaderNavigationButtonCssVariables={},t.styles=Lt}({});
710
+ `}update(t){super.update(t),t.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run((()=>this.updateTarget())))}async updateTarget(){var t,e;if(this.currentPage){const i=this.currentPage.number+("next"===this.target?1:-1);this.targetPage=await(null===(t=this.service)||void 0===t?void 0:t.getPage(i)),(null===(e=this.targetPage)||void 0===e?void 0:e.number)!==i&&(this.targetPage=void 0)}else this.targetPage=void 0;this.isReady=!0}}uo.elementDefinitions={"ft-button":so,"ft-reader-internal-link":po},uo.styles=Dt,fo([o()],uo.prototype,"target",void 0),fo([o()],uo.prototype,"content",void 0),fo([o()],uo.prototype,"tooltipPosition",void 0),fo([o({type:Boolean})],uo.prototype,"hideTooltip",void 0),fo([o()],uo.prototype,"iconVariant",void 0),fo([o()],uo.prototype,"icon",void 0),fo([o({type:Boolean})],uo.prototype,"trailingIcon",void 0),fo([o({type:Boolean,attribute:!1})],uo.prototype,"editorMode",void 0),fo([(t=>{const e=null!=t?t:{};return(t,i)=>{var n;const s={hasChanged:(t,e)=>!h(t,e),attribute:!1,...e};o(s)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}})()],uo.prototype,"currentPage",void 0),fo([n()],uo.prototype,"targetPage",void 0),c("ft-reader-navigation-button")(uo),t.FtReaderNavigationButton=uo,t.FtReaderNavigationButtonCssVariables={},t.styles=Dt}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-navigation-button",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
4
4
  "description": "Button used to navigate between pages in an integrated reader context.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-button": "1.0.42",
23
- "@fluid-topics/ft-reader-context": "1.0.42",
24
- "@fluid-topics/ft-reader-internal-link": "1.0.42",
25
- "@fluid-topics/ft-tooltip": "1.0.42",
26
- "@fluid-topics/ft-wc-utils": "1.0.42",
22
+ "@fluid-topics/ft-button": "1.0.43",
23
+ "@fluid-topics/ft-reader-context": "1.0.43",
24
+ "@fluid-topics/ft-reader-internal-link": "1.0.43",
25
+ "@fluid-topics/ft-tooltip": "1.0.43",
26
+ "@fluid-topics/ft-wc-utils": "1.0.43",
27
27
  "lit": "2.7.2"
28
28
  },
29
- "gitHead": "8d5d152b4d5499b0501061b4f8ee5eb427ac6aa7"
29
+ "gitHead": "a67b8727b254b72302e36166d89f998545bacf8f"
30
30
  }