@fluid-topics/ft-reader-title 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,28 +12,28 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(n.set(i,l),l.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)a.delete(t),y(t,l,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){u.push(this),r.upgrade.apply(r,arguments),u.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=c;if(o)return c=void 0,o;const e=n.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!l(o)){const t=u[u.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),l(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=p(e)||window.customElements,i=r._getDefinition(o);return i?y(e,i):a.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const a=t.toLowerCase();if(o.has(a)){const t=this.getAttribute(a);r.call(this,a,i),e.call(this,a,t,i)}else r.call(this,a,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const a=t.prototype.toggleAttribute;a&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);a.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else a.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),c=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=g.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let u=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){u.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),u.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){u.push(this),e.set.call(this,t),u.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class a{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new a(o)}})}}try{window.customElements.define("custom-element",null)}catch(Go){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){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(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(n.set(i,l),l.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)a.delete(t),y(t,l,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){u.push(this),r.upgrade.apply(r,arguments),u.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=c;if(o)return c=void 0,o;const e=n.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!l(o)){const t=u[u.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),l(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=p(e)||window.customElements,i=r._getDefinition(o);return i?y(e,i):a.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const a=t.toLowerCase();if(o.has(a)){const t=this.getAttribute(a);r.call(this,a,i),e.call(this,a,t,i)}else r.call(this,a,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const a=t.prototype.toggleAttribute;a&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);a.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else a.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),c=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=g.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let u=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){u.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),u.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){u.push(this),e.set.call(this,t),u.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class a{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new a(o)}})}}try{window.customElements.define("custom-element",null)}catch(jo){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
19
19
  * SPDX-License-Identifier: BSD-3-Clause
20
- */const e=globalThis,r=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),a=new WeakMap;const n=t=>new class{constructor(t,o,e){if(this._$cssResult$=!0,e!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const o=this.t;if(r&&void 0===t){const e=void 0!==o&&1===o.length;e&&(t=a.get(o)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&a.set(o,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,i),s=r?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let o="";for(const e of t.cssRules)o+=e.cssText;return n(o)})(t):t
20
+ */const o=globalThis,e=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),i=new WeakMap;const a=t=>new class{constructor(t,o,e){if(this._$cssResult$=!0,e!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o;const o=this.t;if(e&&void 0===t){const e=void 0!==o&&1===o.length;e&&(t=i.get(o)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&i.set(o,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,r),n=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let o="";for(const e of t.cssRules)o+=e.cssText;return a(o)})(t):t
21
21
  /**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */,{is:c,defineProperty:l,getOwnPropertyDescriptor:p,getOwnPropertyNames:f,getOwnPropertySymbols:h,getPrototypeOf:d}=Object,y=globalThis,g=y.trustedTypes,u=g?g.emptyScript:"",b=y.reactiveElementPolyfillSupport,m=(t,o)=>t,O={toAttribute(t,o){switch(o){case Boolean:t=t?u:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},N=(t,o)=>!c(t,o),S={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:N};Symbol.metadata??=Symbol("metadata"),y.litPropertyMetadata??=new WeakMap;let x=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=S){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){const e=Symbol(),r=this.getPropertyDescriptor(t,e,o);void 0!==r&&l(this.prototype,t,r)}}static getPropertyDescriptor(t,o,e){const{get:r,set:i}=p(this.prototype,t)??{get(){return this[o]},set(t){this[o]=t}};return{get(){return r?.call(this)},set(o){const a=r?.call(this);i.call(this,o),this.requestUpdate(t,a,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??S}static _$Ei(){if(this.hasOwnProperty(m("elementProperties")))return;const t=d(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(m("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(m("properties"))){const t=this.properties,o=[...f(t),...h(t)];for(const e of o)this.createProperty(e,t[e])}const t=this[Symbol.metadata];if(null!==t){const o=litPropertyMetadata.get(t);if(void 0!==o)for(const[t,e]of o)this.elementProperties.set(t,e)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const e=this._$Eu(t,o);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(s(t))}else void 0!==t&&o.push(s(t));return o}static _$Eu(t,o){const e=o.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,o=this.constructor.elementProperties;for(const e of o.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{if(r)t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const r of o){const o=document.createElement("style"),i=e.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=r.cssText,t.appendChild(o)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o){const e=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,e);if(void 0!==r&&!0===e.reflect){const i=(void 0!==e.converter?.toAttribute?e.converter:O).toAttribute(o,e.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,o){const e=this.constructor,r=e._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=e.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:O;this._$Em=r,this[r]=i.fromAttribute(o,t.type),this._$Em=null}}requestUpdate(t,o,e,r=!1,i){if(void 0!==t){if(e??=this.constructor.getPropertyOptions(t),!(e.hasChanged??N)(r?i:this[t],o))return;this.C(t,o,e)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,o,e){this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,o]of this._$Ep)this[t]=o;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[o,e]of t)!0!==e.wrapped||this._$AL.has(o)||void 0===this[o]||this.C(o,this[o],e)}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(o)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};x.elementStyles=[],x.shadowRootOptions={mode:"open"},x[m("elementProperties")]=new Map,x[m("finalized")]=new Map,b?.({ReactiveElement:x}),(y.reactiveElementVersions??=[]).push("2.0.2");
25
+ */,{is:s,defineProperty:c,getOwnPropertyDescriptor:l,getOwnPropertyNames:p,getOwnPropertySymbols:f,getPrototypeOf:h}=Object,d=globalThis,y=d.trustedTypes,g=y?y.emptyScript:"",u=d.reactiveElementPolyfillSupport,b=(t,o)=>t,m={toAttribute(t,o){switch(o){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,o){let e=t;switch(o){case Boolean:e=null!==t;break;case Number:e=null===t?null:Number(t);break;case Object:case Array:try{e=JSON.parse(t)}catch(t){e=null}}return e}},O=(t,o)=>!s(t,o),N={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:O};Symbol.metadata??=Symbol("metadata"),d.litPropertyMetadata??=new WeakMap;let S=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=N){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){const e=Symbol(),r=this.getPropertyDescriptor(t,e,o);void 0!==r&&c(this.prototype,t,r)}}static getPropertyDescriptor(t,o,e){const{get:r,set:i}=l(this.prototype,t)??{get(){return this[o]},set(t){this[o]=t}};return{get(){return r?.call(this)},set(o){const a=r?.call(this);i.call(this,o),this.requestUpdate(t,a,e)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??N}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=h(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,o=[...p(t),...f(t)];for(const e of o)this.createProperty(e,t[e])}const t=this[Symbol.metadata];if(null!==t){const o=litPropertyMetadata.get(t);if(void 0!==o)for(const[t,e]of o)this.elementProperties.set(t,e)}this._$Eh=new Map;for(const[t,o]of this.elementProperties){const e=this._$Eu(t,o);void 0!==e&&this._$Eh.set(e,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const o=[];if(Array.isArray(t)){const e=new Set(t.flat(1/0).reverse());for(const t of e)o.unshift(n(t))}else void 0!==t&&o.push(n(t));return o}static _$Eu(t,o){const e=o.attribute;return!1===e?void 0:"string"==typeof e?e:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,o=this.constructor.elementProperties;for(const e of o.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,r)=>{if(e)t.adoptedStyleSheets=r.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of r){const r=document.createElement("style"),i=o.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=e.cssText,t.appendChild(r)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,o,e){this._$AK(t,e)}_$EO(t,o){const e=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,e);if(void 0!==r&&!0===e.reflect){const i=(void 0!==e.converter?.toAttribute?e.converter:m).toAttribute(o,e.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,o){const e=this.constructor,r=e._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=e.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=r,this[r]=i.fromAttribute(o,t.type),this._$Em=null}}requestUpdate(t,o,e,r=!1,i){if(void 0!==t){if(e??=this.constructor.getPropertyOptions(t),!(e.hasChanged??O)(r?i:this[t],o))return;this.C(t,o,e)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,o,e){this._$AL.has(t)||this._$AL.set(t,o),!0===e.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,o]of this._$Ep)this[t]=o;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[o,e]of t)!0!==e.wrapped||this._$AL.has(o)||void 0===this[o]||this.C(o,this[o],e)}let t=!1;const o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(o)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[b("elementProperties")]=new Map,S[b("finalized")]=new Map,u?.({ReactiveElement:S}),(d.reactiveElementVersions??=[]).push("2.0.2");
26
26
  /**
27
27
  * @license
28
28
  * Copyright 2017 Google LLC
29
29
  * SPDX-License-Identifier: BSD-3-Clause
30
30
  */
31
- const v={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:N},C=(t=v,o,e)=>{const{kind:r,metadata:i}=e;let a=globalThis.litPropertyMetadata.get(i);if(void 0===a&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(e.name,t),"accessor"===r){const{name:r}=e;return{set(e){const i=o.get.call(this);o.set.call(this,e),this.requestUpdate(r,i,t)},init(o){return void 0!==o&&this.C(r,void 0,t),o}}}if("setter"===r){const{name:r}=e;return function(e){const i=this[r];o.call(this,e),this.requestUpdate(r,i,t)}}throw Error("Unsupported decorator location: "+r)};function w(t){return(o,e)=>"object"==typeof e?C(t,o,e):((t,o,e)=>{const r=o.hasOwnProperty(e);return o.constructor.createProperty(e,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(o,e):void 0})(t,o,e)
31
+ const x={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:O},v=(t=x,o,e)=>{const{kind:r,metadata:i}=e;let a=globalThis.litPropertyMetadata.get(i);if(void 0===a&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(e.name,t),"accessor"===r){const{name:r}=e;return{set(e){const i=o.get.call(this);o.set.call(this,e),this.requestUpdate(r,i,t)},init(o){return void 0!==o&&this.C(r,void 0,t),o}}}if("setter"===r){const{name:r}=e;return function(e){const i=this[r];o.call(this,e),this.requestUpdate(r,i,t)}}throw Error("Unsupported decorator location: "+r)};function C(t){return(o,e)=>"object"==typeof e?v(t,o,e):((t,o,e)=>{const r=o.hasOwnProperty(e);return o.constructor.createProperty(e,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(o,e):void 0})(t,o,e)
32
32
  /**
33
33
  * @license
34
34
  * Copyright 2017 Google LLC
35
35
  * SPDX-License-Identifier: BSD-3-Clause
36
- */}function R(t){return w({...t,state:!0,attribute:!1})}function U(t,o){try{return function(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var e,r,i;if(Array.isArray(t)){if((e=t.length)!=o.length)return!1;for(r=e;0!=r--;)if(!U(t[r],o[r]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;for(r of t.entries())if(!U(r[1],o.get(r[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if((e=(i=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(r=e;0!=r--;)if(!Object.prototype.hasOwnProperty.call(o,i[r]))return!1;for(r=e;0!=r--;){var a=i[r];if(!U(t[a],o[a]))return!1}return!0}return t!=t&&o!=o}(t,o)}catch(t){return!1}}const E=t=>o=>{window.customElements.get(t)||window.customElements.define(t,o)};
36
+ */}function w(t){return C({...t,state:!0,attribute:!1})}class R{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}function U(t,o){try{return function(t,o){if(t===o)return!0;if(t&&o&&"object"==typeof t&&"object"==typeof o){if(t.constructor!==o.constructor)return!1;var e,r,i;if(Array.isArray(t)){if((e=t.length)!=o.length)return!1;for(r=e;0!=r--;)if(!U(t[r],o[r]))return!1;return!0}if(t instanceof Map&&o instanceof Map){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;for(r of t.entries())if(!U(r[1],o.get(r[0])))return!1;return!0}if(t instanceof Set&&o instanceof Set){if(t.size!==o.size)return!1;for(r of t.entries())if(!o.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if((e=(i=Object.keys(t)).length)!==Object.keys(o).length)return!1;for(r=e;0!=r--;)if(!Object.prototype.hasOwnProperty.call(o,i[r]))return!1;for(r=e;0!=r--;){var a=i[r];if(!U(t[a],o[a]))return!1}return!0}return t!=t&&o!=o}(t,o)}catch(t){return!1}}const E=t=>o=>{window.customElements.get(t)||window.customElements.define(t,o)};
37
37
  /**
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
@@ -67,7 +67,11 @@ class yo extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
67
67
  * @license
68
68
  * Copyright 2019 Google LLC
69
69
  * SPDX-License-Identifier: BSD-3-Clause
70
- */class Co extends yo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{vo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=xo.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var wo,Ro=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const Uo=Symbol("constructorPrototype"),Eo=Symbol("constructorName"),Io=Symbol("exportpartsDebouncer");class Wo extends Co{constructor(){super(),this[wo]=new o(5),this[Eo]=this.constructor.name,this[Uo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Eo]&&Object.setPrototypeOf(this,this[Uo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Io].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,r,i,a,n;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=null!==(n=null===(a=t.getAttribute("exportparts"))||void 0===a?void 0:a.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const p=[...l.values()].flatMap((t=>c.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}function Lo(t){var o;return null!==(o=null==t?void 0:t.isFtReduxStore)&&void 0!==o&&o}var $o,ko,Ko;wo=Io,Ro([w()],Wo.prototype,"exportpartsPrefix",void 0),Ro([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return w({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!U(t,o),...null!=o?o:{}})}([])],Wo.prototype,"exportpartsPrefixes",void 0),Ro([w()],Wo.prototype,"customStylesheet",void 0),gt`
70
+ */class Co extends yo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{vo?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=xo.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var wo,Ro=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const Uo=Symbol("constructorPrototype"),Eo=Symbol("constructorName"),Io=Symbol("exportpartsDebouncer");class Wo extends Co{constructor(){super(),this[wo]=new R(5),this[Eo]=this.constructor.name,this[Uo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Eo]&&Object.setPrototypeOf(this,this[Uo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Io].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,r,i,a,n;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=null!==(n=null===(a=t.getAttribute("exportparts"))||void 0===a?void 0:a.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const p=[...l.values()].flatMap((t=>c.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}wo=Io,Ro([C()],Wo.prototype,"exportpartsPrefix",void 0),Ro([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!U(t,o),...null!=o?o:{}})}([])],Wo.prototype,"exportpartsPrefixes",void 0),Ro([C()],Wo.prototype,"customStylesheet",void 0);const Lo=bo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");function $o(t){var o;return null!==(o=null==t?void 0:t.isFtReduxStore)&&void 0!==o&&o}var ko,Ko,Zo;gt`
71
+ .highlight-html-match {
72
+ background: ${Lo};
73
+ }
74
+ `,gt`
71
75
  .ft-no-text-select {
72
76
  -webkit-touch-callout: none;
73
77
  -webkit-user-select: none;
@@ -99,107 +103,107 @@ class yo extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
99
103
  display: inline-block;
100
104
  width: 0;
101
105
  }
102
- `;const Zo=Symbol("internalReduxEventsUnsubscribers"),Fo=Symbol("internalStoresUnsubscribers"),zo=Symbol("internalStores");class Ao extends Wo{constructor(){super(...arguments),this[$o]=new Map,this[ko]=new Map,this[Ko]=[]}update(t){var o;super.update(t),(null===(o=this.reduxReactiveProperties)||void 0===o?void 0:o.some((o=>t.has(o))))&&this.updateFromStores()}getUnnamedStore(){if(this[zo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[zo].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[zo].get(t)}addStore(t,o){var e;o=null!==(e=null!=o?o:Lo(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){const o="string"==typeof t?t:t.name;this.unsubscribeFromStore(o),this[zo].delete(o)}setupStore(t,o){this[zo].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[zo].forEach(((t,o)=>this.subscribeToStore(o,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,o)=>{const e=this.constructor.getPropertyOptions(o);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:o)){const e=this.getStore(t.store);e&&(t.store?this[Fo].has(t.store):this[Fo].size>0)&&(this[o]=t.selector(e.getState(),this))}}))}subscribeToStore(t,o){var e;this[Fo].set(t,o.subscribe((()=>this.updateFromStores()))),Lo(o)&&o.eventBus&&(null===(e=this.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||o.name===t.store)){const r=t=>this[e](t);o.eventBus.addEventListener(t.eventName,r),this[Zo].push((()=>o.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Fo].forEach(((t,o)=>this.unsubscribeFromStore(o))),this[Zo].forEach((t=>t())),this[Zo]=[]}unsubscribeFromStore(t){this[Fo].has(t)&&this[Fo].get(t)(),this[Fo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}$o=Fo,ko=zo,Ko=Zo,window.ftReduxStores||(window.ftReduxStores={});var Mo,Do,Bo;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Do=null===(Mo=window.safari)||void 0===Mo?void 0:Mo.pushNotification)||void 0===Do||Do.toString()),function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(Bo||(Bo={}));var Po=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Ho extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const _o=Symbol("registerInterval");class To extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=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[_o]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[_o]):this.dispatchEvent(new Ho)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=_o,Po([R()],e.prototype,"stateManager",void 0),e}(Ao)){}
106
+ `;const Fo=Symbol("internalReduxEventsUnsubscribers"),zo=Symbol("internalStoresUnsubscribers"),Ao=Symbol("internalStores");class Mo extends Wo{constructor(){super(...arguments),this[ko]=new Map,this[Ko]=new Map,this[Zo]=[]}update(t){var o;super.update(t),(null===(o=this.reduxReactiveProperties)||void 0===o?void 0:o.some((o=>t.has(o))))&&this.updateFromStores()}getUnnamedStore(){if(this[Ao].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ao].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ao].get(t)}addStore(t,o){var e;o=null!==(e=null!=o?o:$o(t)?t.name:void 0)&&void 0!==e?e:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,t)}removeStore(t){const o="string"==typeof t?t:t.name;this.unsubscribeFromStore(o),this[Ao].delete(o)}setupStore(t,o){this[Ao].set(t,o),this.subscribeToStore(t,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ao].forEach(((t,o)=>this.subscribeToStore(o,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,o)=>{const e=this.constructor.getPropertyOptions(o);if(!(null==e?void 0:e.attribute)||!this.hasAttribute("string"==typeof(null==e?void 0:e.attribute)?e.attribute:o)){const e=this.getStore(t.store);e&&(t.store?this[zo].has(t.store):this[zo].size>0)&&(this[o]=t.selector(e.getState(),this))}}))}subscribeToStore(t,o){var e;this[zo].set(t,o.subscribe((()=>this.updateFromStores()))),$o(o)&&o.eventBus&&(null===(e=this.reduxEventListeners)||void 0===e||e.forEach(((t,e)=>{if("function"==typeof this[e]&&(!t.store||o.name===t.store)){const r=t=>this[e](t);o.eventBus.addEventListener(t.eventName,r),this[Fo].push((()=>o.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[zo].forEach(((t,o)=>this.unsubscribeFromStore(o))),this[Fo].forEach((t=>t())),this[Fo]=[]}unsubscribeFromStore(t){this[zo].has(t)&&this[zo].get(t)(),this[zo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}ko=zo,Ko=Ao,Zo=Fo,window.ftReduxStores||(window.ftReduxStores={});var Do,Bo,Po;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Bo=null===(Do=window.safari)||void 0===Do?void 0:Do.pushNotification)||void 0===Bo||Bo.toString()),function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(Po||(Po={}));var Ho=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class _o extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const To=Symbol("registerInterval");class Go extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=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[To]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[To]):this.dispatchEvent(new _o)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=To,Ho([w()],e.prototype,"stateManager",void 0),e}(Mo)){}
103
107
  /**
104
108
  * @license
105
109
  * Copyright 2020 Google LLC
106
110
  * SPDX-License-Identifier: BSD-3-Clause
107
- */const Go=Symbol.for(""),jo=t=>{if(t?.r===Go)return t?._$litStatic$},Yo=t=>({_$litStatic$:t,r:Go}),Jo=new Map,Vo=(t=>(o,...e)=>{const r=e.length;let i,a;const n=[],s=[];let c,l=0,p=!1;for(;l<r;){for(c=o[l];l<r&&void 0!==(a=e[l],i=jo(a));)c+=i+o[++l],p=!0;l!==r&&s.push(a),n.push(c),l++}if(l===r&&n.push(o[r]),p){const t=n.join("$$lit$$");void 0===(o=Jo.get(t))&&(n.raw=n,Jo.set(t,o=n)),e=s}return t(o,...e)})(Y);var qo;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(qo||(qo={}));const Xo=bo.extend("--ft-typography-font-family","",So.titleFont),Qo=bo.extend("--ft-typography-font-family","",So.contentFont),te={fontFamily:Qo,fontSize:bo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:bo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:bo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:bo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:bo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},oe={fontFamily:bo.extend("--ft-typography-title-font-family","",Xo),fontSize:bo.extend("--ft-typography-title-font-size","",te.fontSize,"20px"),fontWeight:bo.extend("--ft-typography-title-font-weight","",te.fontWeight,"normal"),letterSpacing:bo.extend("--ft-typography-title-letter-spacing","",te.letterSpacing,"0.15px"),lineHeight:bo.extend("--ft-typography-title-line-height","",te.lineHeight,"1.2"),textTransform:bo.extend("--ft-typography-title-text-transform","",te.textTransform,"inherit")},ee=bo.extend("--ft-typography-title-dense-font-family","",Xo),re=bo.extend("--ft-typography-title-dense-font-size","",te.fontSize,"14px"),ie=bo.extend("--ft-typography-title-dense-font-weight","",te.fontWeight,"normal"),ae=bo.extend("--ft-typography-title-dense-letter-spacing","",te.letterSpacing,"0.105px"),ne=bo.extend("--ft-typography-title-dense-line-height","",te.lineHeight,"1.7"),se=bo.extend("--ft-typography-title-dense-text-transform","",te.textTransform,"inherit"),ce=bo.extend("--ft-typography-subtitle1-font-family","",Qo),le=bo.extend("--ft-typography-subtitle1-font-size","",te.fontSize,"16px"),pe=bo.extend("--ft-typography-subtitle1-font-weight","",te.fontWeight,"600"),fe=bo.extend("--ft-typography-subtitle1-letter-spacing","",te.letterSpacing,"0.144px"),he=bo.extend("--ft-typography-subtitle1-line-height","",te.lineHeight,"1.5"),de=bo.extend("--ft-typography-subtitle1-text-transform","",te.textTransform,"inherit"),ye=bo.extend("--ft-typography-subtitle2-font-family","",Qo),ge=bo.extend("--ft-typography-subtitle2-font-size","",te.fontSize,"14px"),ue=bo.extend("--ft-typography-subtitle2-font-weight","",te.fontWeight,"normal"),be=bo.extend("--ft-typography-subtitle2-letter-spacing","",te.letterSpacing,"0.098px"),me=bo.extend("--ft-typography-subtitle2-line-height","",te.lineHeight,"1.7"),Oe=bo.extend("--ft-typography-subtitle2-text-transform","",te.textTransform,"inherit"),Ne=bo.extend("--ft-typography-body1-font-family","",Qo),Se=bo.extend("--ft-typography-body1-font-size","",te.fontSize,"16px"),xe=bo.extend("--ft-typography-body1-font-weight","",te.fontWeight,"normal"),ve=bo.extend("--ft-typography-body1-letter-spacing","",te.letterSpacing,"0.496px"),Ce=bo.extend("--ft-typography-body1-line-height","",te.lineHeight,"1.5"),we=bo.extend("--ft-typography-body1-text-transform","",te.textTransform,"inherit"),Re=bo.extend("--ft-typography-body2-font-family","",Qo),Ue=bo.extend("--ft-typography-body2-font-size","",te.fontSize,"14px"),Ee=bo.extend("--ft-typography-body2-font-weight","",te.fontWeight,"normal"),Ie=bo.extend("--ft-typography-body2-letter-spacing","",te.letterSpacing,"0.252px"),We=bo.extend("--ft-typography-body2-line-height","",te.lineHeight,"1.4"),Le=bo.extend("--ft-typography-body2-text-transform","",te.textTransform,"inherit"),$e=bo.extend("--ft-typography-caption-font-family","",Qo),ke=bo.extend("--ft-typography-caption-font-size","",te.fontSize,"12px"),Ke=bo.extend("--ft-typography-caption-font-weight","",te.fontWeight,"normal"),Ze=bo.extend("--ft-typography-caption-letter-spacing","",te.letterSpacing,"0.396px"),Fe=bo.extend("--ft-typography-caption-line-height","",te.lineHeight,"1.33"),ze=bo.extend("--ft-typography-caption-text-transform","",te.textTransform,"inherit"),Ae=bo.extend("--ft-typography-breadcrumb-font-family","",Qo),Me=bo.extend("--ft-typography-breadcrumb-font-size","",te.fontSize,"10px"),De=bo.extend("--ft-typography-breadcrumb-font-weight","",te.fontWeight,"normal"),Be=bo.extend("--ft-typography-breadcrumb-letter-spacing","",te.letterSpacing,"0.33px"),Pe=bo.extend("--ft-typography-breadcrumb-line-height","",te.lineHeight,"1.6"),He=bo.extend("--ft-typography-breadcrumb-text-transform","",te.textTransform,"inherit"),_e=bo.extend("--ft-typography-overline-font-family","",Qo),Te=bo.extend("--ft-typography-overline-font-size","",te.fontSize,"10px"),Ge=bo.extend("--ft-typography-overline-font-weight","",te.fontWeight,"normal"),je=bo.extend("--ft-typography-overline-letter-spacing","",te.letterSpacing,"1.5px"),Ye=bo.extend("--ft-typography-overline-line-height","",te.lineHeight,"1.6"),Je=bo.extend("--ft-typography-overline-text-transform","",te.textTransform,"uppercase"),Ve=bo.extend("--ft-typography-button-font-family","",Qo),qe=bo.extend("--ft-typography-button-font-size","",te.fontSize,"14px"),Xe=bo.extend("--ft-typography-button-font-weight","",te.fontWeight,"600"),Qe=bo.extend("--ft-typography-button-letter-spacing","",te.letterSpacing,"1.246px"),tr=bo.extend("--ft-typography-button-line-height","",te.lineHeight,"1.15"),or=bo.extend("--ft-typography-button-text-transform","",te.textTransform,"uppercase"),er=gt`
111
+ */const jo=Symbol.for(""),Yo=t=>{if(t?.r===jo)return t?._$litStatic$},Jo=t=>({_$litStatic$:t,r:jo}),Vo=new Map,qo=(t=>(o,...e)=>{const r=e.length;let i,a;const n=[],s=[];let c,l=0,p=!1;for(;l<r;){for(c=o[l];l<r&&void 0!==(a=e[l],i=Yo(a));)c+=i+o[++l],p=!0;l!==r&&s.push(a),n.push(c),l++}if(l===r&&n.push(o[r]),p){const t=n.join("$$lit$$");void 0===(o=Vo.get(t))&&(n.raw=n,Vo.set(t,o=n)),e=s}return t(o,...e)})(Y);var Xo;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Xo||(Xo={}));const Qo=bo.extend("--ft-typography-font-family","",So.titleFont),te=bo.extend("--ft-typography-font-family","",So.contentFont),oe={fontFamily:te,fontSize:bo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:bo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:bo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:bo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:bo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ee={fontFamily:bo.extend("--ft-typography-title-font-family","",Qo),fontSize:bo.extend("--ft-typography-title-font-size","",oe.fontSize,"20px"),fontWeight:bo.extend("--ft-typography-title-font-weight","",oe.fontWeight,"normal"),letterSpacing:bo.extend("--ft-typography-title-letter-spacing","",oe.letterSpacing,"0.15px"),lineHeight:bo.extend("--ft-typography-title-line-height","",oe.lineHeight,"1.2"),textTransform:bo.extend("--ft-typography-title-text-transform","",oe.textTransform,"inherit")},re=bo.extend("--ft-typography-title-dense-font-family","",Qo),ie=bo.extend("--ft-typography-title-dense-font-size","",oe.fontSize,"14px"),ae=bo.extend("--ft-typography-title-dense-font-weight","",oe.fontWeight,"normal"),ne=bo.extend("--ft-typography-title-dense-letter-spacing","",oe.letterSpacing,"0.105px"),se=bo.extend("--ft-typography-title-dense-line-height","",oe.lineHeight,"1.7"),ce=bo.extend("--ft-typography-title-dense-text-transform","",oe.textTransform,"inherit"),le=bo.extend("--ft-typography-subtitle1-font-family","",te),pe=bo.extend("--ft-typography-subtitle1-font-size","",oe.fontSize,"16px"),fe=bo.extend("--ft-typography-subtitle1-font-weight","",oe.fontWeight,"600"),he=bo.extend("--ft-typography-subtitle1-letter-spacing","",oe.letterSpacing,"0.144px"),de=bo.extend("--ft-typography-subtitle1-line-height","",oe.lineHeight,"1.5"),ye=bo.extend("--ft-typography-subtitle1-text-transform","",oe.textTransform,"inherit"),ge=bo.extend("--ft-typography-subtitle2-font-family","",te),ue=bo.extend("--ft-typography-subtitle2-font-size","",oe.fontSize,"14px"),be=bo.extend("--ft-typography-subtitle2-font-weight","",oe.fontWeight,"normal"),me=bo.extend("--ft-typography-subtitle2-letter-spacing","",oe.letterSpacing,"0.098px"),Oe=bo.extend("--ft-typography-subtitle2-line-height","",oe.lineHeight,"1.7"),Ne=bo.extend("--ft-typography-subtitle2-text-transform","",oe.textTransform,"inherit"),Se=bo.extend("--ft-typography-body1-font-family","",te),xe=bo.extend("--ft-typography-body1-font-size","",oe.fontSize,"16px"),ve=bo.extend("--ft-typography-body1-font-weight","",oe.fontWeight,"normal"),Ce=bo.extend("--ft-typography-body1-letter-spacing","",oe.letterSpacing,"0.496px"),we=bo.extend("--ft-typography-body1-line-height","",oe.lineHeight,"1.5"),Re=bo.extend("--ft-typography-body1-text-transform","",oe.textTransform,"inherit"),Ue=bo.extend("--ft-typography-body2-font-family","",te),Ee=bo.extend("--ft-typography-body2-font-size","",oe.fontSize,"14px"),Ie=bo.extend("--ft-typography-body2-font-weight","",oe.fontWeight,"normal"),We=bo.extend("--ft-typography-body2-letter-spacing","",oe.letterSpacing,"0.252px"),Le=bo.extend("--ft-typography-body2-line-height","",oe.lineHeight,"1.4"),$e=bo.extend("--ft-typography-body2-text-transform","",oe.textTransform,"inherit"),ke=bo.extend("--ft-typography-caption-font-family","",te),Ke=bo.extend("--ft-typography-caption-font-size","",oe.fontSize,"12px"),Ze=bo.extend("--ft-typography-caption-font-weight","",oe.fontWeight,"normal"),Fe=bo.extend("--ft-typography-caption-letter-spacing","",oe.letterSpacing,"0.396px"),ze=bo.extend("--ft-typography-caption-line-height","",oe.lineHeight,"1.33"),Ae=bo.extend("--ft-typography-caption-text-transform","",oe.textTransform,"inherit"),Me=bo.extend("--ft-typography-breadcrumb-font-family","",te),De=bo.extend("--ft-typography-breadcrumb-font-size","",oe.fontSize,"10px"),Be=bo.extend("--ft-typography-breadcrumb-font-weight","",oe.fontWeight,"normal"),Pe=bo.extend("--ft-typography-breadcrumb-letter-spacing","",oe.letterSpacing,"0.33px"),He=bo.extend("--ft-typography-breadcrumb-line-height","",oe.lineHeight,"1.6"),_e=bo.extend("--ft-typography-breadcrumb-text-transform","",oe.textTransform,"inherit"),Te=bo.extend("--ft-typography-overline-font-family","",te),Ge=bo.extend("--ft-typography-overline-font-size","",oe.fontSize,"10px"),je=bo.extend("--ft-typography-overline-font-weight","",oe.fontWeight,"normal"),Ye=bo.extend("--ft-typography-overline-letter-spacing","",oe.letterSpacing,"1.5px"),Je=bo.extend("--ft-typography-overline-line-height","",oe.lineHeight,"1.6"),Ve=bo.extend("--ft-typography-overline-text-transform","",oe.textTransform,"uppercase"),qe=bo.extend("--ft-typography-button-font-family","",te),Xe=bo.extend("--ft-typography-button-font-size","",oe.fontSize,"14px"),Qe=bo.extend("--ft-typography-button-font-weight","",oe.fontWeight,"600"),tr=bo.extend("--ft-typography-button-letter-spacing","",oe.letterSpacing,"1.246px"),or=bo.extend("--ft-typography-button-line-height","",oe.lineHeight,"1.15"),er=bo.extend("--ft-typography-button-text-transform","",oe.textTransform,"uppercase"),rr=gt`
108
112
  .ft-typography--title {
109
- font-family: ${oe.fontFamily};
110
- font-size: ${oe.fontSize};
111
- font-weight: ${oe.fontWeight};
112
- letter-spacing: ${oe.letterSpacing};
113
- line-height: ${oe.lineHeight};
114
- text-transform: ${oe.textTransform};
113
+ font-family: ${ee.fontFamily};
114
+ font-size: ${ee.fontSize};
115
+ font-weight: ${ee.fontWeight};
116
+ letter-spacing: ${ee.letterSpacing};
117
+ line-height: ${ee.lineHeight};
118
+ text-transform: ${ee.textTransform};
115
119
  }
116
- `,rr=gt`
120
+ `,ir=gt`
117
121
  .ft-typography--title-dense {
118
- font-family: ${ee};
119
- font-size: ${re};
120
- font-weight: ${ie};
121
- letter-spacing: ${ae};
122
- line-height: ${ne};
123
- text-transform: ${se};
122
+ font-family: ${re};
123
+ font-size: ${ie};
124
+ font-weight: ${ae};
125
+ letter-spacing: ${ne};
126
+ line-height: ${se};
127
+ text-transform: ${ce};
124
128
  }
125
- `,ir=gt`
129
+ `,ar=gt`
126
130
  .ft-typography--subtitle1 {
127
- font-family: ${ce};
128
- font-size: ${le};
129
- font-weight: ${pe};
130
- letter-spacing: ${fe};
131
- line-height: ${he};
132
- text-transform: ${de};
131
+ font-family: ${le};
132
+ font-size: ${pe};
133
+ font-weight: ${fe};
134
+ letter-spacing: ${he};
135
+ line-height: ${de};
136
+ text-transform: ${ye};
133
137
  }
134
- `,ar=gt`
138
+ `,nr=gt`
135
139
  .ft-typography--subtitle2 {
136
- font-family: ${ye};
137
- font-size: ${ge};
138
- font-weight: ${ue};
139
- letter-spacing: ${be};
140
- line-height: ${me};
141
- text-transform: ${Oe};
140
+ font-family: ${ge};
141
+ font-size: ${ue};
142
+ font-weight: ${be};
143
+ letter-spacing: ${me};
144
+ line-height: ${Oe};
145
+ text-transform: ${Ne};
142
146
  }
143
147
 
144
- `,nr=gt`
148
+ `,sr=gt`
145
149
  .ft-typography--body1 {
146
- font-family: ${Ne};
147
- font-size: ${Se};
148
- font-weight: ${xe};
149
- letter-spacing: ${ve};
150
- line-height: ${Ce};
151
- text-transform: ${we};
150
+ font-family: ${Se};
151
+ font-size: ${xe};
152
+ font-weight: ${ve};
153
+ letter-spacing: ${Ce};
154
+ line-height: ${we};
155
+ text-transform: ${Re};
152
156
  }
153
- `,sr=gt`
157
+ `,cr=gt`
154
158
  .ft-typography--body2 {
155
- font-family: ${Re};
156
- font-size: ${Ue};
157
- font-weight: ${Ee};
158
- letter-spacing: ${Ie};
159
- line-height: ${We};
160
- text-transform: ${Le};
159
+ font-family: ${Ue};
160
+ font-size: ${Ee};
161
+ font-weight: ${Ie};
162
+ letter-spacing: ${We};
163
+ line-height: ${Le};
164
+ text-transform: ${$e};
161
165
  }
162
- `,cr=gt`
166
+ `,lr=gt`
163
167
  .ft-typography--caption {
164
- font-family: ${$e};
165
- font-size: ${ke};
166
- font-weight: ${Ke};
167
- letter-spacing: ${Ze};
168
- line-height: ${Fe};
169
- text-transform: ${ze};
168
+ font-family: ${ke};
169
+ font-size: ${Ke};
170
+ font-weight: ${Ze};
171
+ letter-spacing: ${Fe};
172
+ line-height: ${ze};
173
+ text-transform: ${Ae};
170
174
  }
171
- `,lr=gt`
175
+ `,pr=gt`
172
176
  .ft-typography--breadcrumb {
173
- font-family: ${Ae};
174
- font-size: ${Me};
175
- font-weight: ${De};
176
- letter-spacing: ${Be};
177
- line-height: ${Pe};
178
- text-transform: ${He};
177
+ font-family: ${Me};
178
+ font-size: ${De};
179
+ font-weight: ${Be};
180
+ letter-spacing: ${Pe};
181
+ line-height: ${He};
182
+ text-transform: ${_e};
179
183
  }
180
- `,pr=gt`
184
+ `,fr=gt`
181
185
  .ft-typography--overline {
182
- font-family: ${_e};
183
- font-size: ${Te};
184
- font-weight: ${Ge};
185
- letter-spacing: ${je};
186
- line-height: ${Ye};
187
- text-transform: ${Je};
186
+ font-family: ${Te};
187
+ font-size: ${Ge};
188
+ font-weight: ${je};
189
+ letter-spacing: ${Ye};
190
+ line-height: ${Je};
191
+ text-transform: ${Ve};
188
192
  }
189
- `,fr=gt`
193
+ `,hr=gt`
190
194
  .ft-typography--button {
191
- font-family: ${Ve};
192
- font-size: ${qe};
193
- font-weight: ${Xe};
194
- letter-spacing: ${Qe};
195
- line-height: ${tr};
196
- text-transform: ${or};
195
+ font-family: ${qe};
196
+ font-size: ${Xe};
197
+ font-weight: ${Qe};
198
+ letter-spacing: ${tr};
199
+ line-height: ${or};
200
+ text-transform: ${er};
197
201
  }
198
- `,hr=gt`
202
+ `,dr=gt`
199
203
  .ft-typography {
200
204
  vertical-align: inherit;
201
205
  }
202
- `,dr=[Object.keys(Oo).map((t=>function(t){const o=Oo[t];return gt`
206
+ `,yr=[Object.keys(Oo).map((t=>function(t){const o=Oo[t];return gt`
203
207
  .ft-typography--${yt(t)} {
204
208
  font-family: ${o.fontFamily};
205
209
  font-size: ${o.fontSize};
@@ -208,13 +212,13 @@ class yo extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
208
212
  line-height: ${o.lineHeight};
209
213
  text-transform: ${o.textCase};
210
214
  }
211
- `}(t)))];var yr=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class gr extends Wo{constructor(){super(...arguments),this.variant=qo.body1}render(){return this.element?Vo`
212
- <${Yo(this.element)}
215
+ `}(t)))];var gr=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ur extends Wo{constructor(){super(...arguments),this.variant=Xo.body1}render(){return this.element?qo`
216
+ <${Jo(this.element)}
213
217
  class="ft-typography ft-typography--${this.variant}">
214
218
  <slot></slot>
215
- </${Yo(this.element)}>
216
- `:Vo`
219
+ </${Jo(this.element)}>
220
+ `:qo`
217
221
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
218
- `}}gr.styles=[er,rr,ir,ar,nr,sr,cr,lr,pr,fr,hr,...dr],yr([w()],gr.prototype,"element",void 0),yr([w()],gr.prototype,"variant",void 0),E("ft-typography")(gr);var ur=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class br extends To{render(){return this.mapTitle?qt`
222
+ `}}ur.styles=[rr,ir,ar,nr,sr,cr,lr,pr,fr,hr,dr,...yr],gr([C()],ur.prototype,"element",void 0),gr([C()],ur.prototype,"variant",void 0),E("ft-typography")(ur);var br=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class mr extends Go{render(){return this.mapTitle?qt`
219
223
  <ft-typography variant="title" part="text">${this.mapTitle}</ft-typography>
220
- `:Qt}}br.elementDefinitions={"ft-typography":gr},ur([(t=>{const o=null!=t?t:{};return(t,e)=>{var r;const i={hasChanged:(t,o)=>!U(t,o),attribute:!1,...o};w(i)(t,e);const a=t;a.reduxProperties=a.reduxProperties||new Map,a.reduxProperties.set(e,{selector:null!==(r=o.selector)&&void 0!==r?r:t=>t[e],store:o.store})}})({selector:t=>{var o;return null===(o=t.map)||void 0===o?void 0:o.title}})],br.prototype,"mapTitle",void 0);const mr={fontSize:bo.extend("--ft-reader-metadata-font-size","",oe.fontSize)};E("ft-reader-title")(br),t.FtReaderTitle=br,t.FtReaderTitleCssVariables=mr}({});
224
+ `:Qt}}mr.elementDefinitions={"ft-typography":ur},br([(t=>{const o=null!=t?t:{};return(t,e)=>{var r;const i={hasChanged:(t,o)=>!U(t,o),attribute:!1,...o};C(i)(t,e);const a=t;a.reduxProperties=a.reduxProperties||new Map,a.reduxProperties.set(e,{selector:null!==(r=o.selector)&&void 0!==r?r:t=>t[e],store:o.store})}})({selector:t=>{var o;return null===(o=t.map)||void 0===o?void 0:o.title}})],mr.prototype,"mapTitle",void 0);const Or={fontSize:bo.extend("--ft-reader-metadata-font-size","",ee.fontSize)};E("ft-reader-title")(mr),t.FtReaderTitle=mr,t.FtReaderTitleCssVariables=Or}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-reader-title",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "Title for integrated reader",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,9 +19,9 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-reader-context": "1.1.1",
23
- "@fluid-topics/ft-wc-utils": "1.1.1",
22
+ "@fluid-topics/ft-reader-context": "1.1.3",
23
+ "@fluid-topics/ft-wc-utils": "1.1.3",
24
24
  "lit": "3.1.0"
25
25
  },
26
- "gitHead": "ceae4aed142c27cbf6034f45bb6e3f562163cc15"
26
+ "gitHead": "0d44a470e710f185c37e42ee87be4481a3bdf793"
27
27
  }