@fluid-topics/ft-reader-feedback 1.1.0 → 1.1.2

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,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);d(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let h=i.call(o,t);h||(h=f(t),e.call(o,t,h)),this===window.customElements&&(a.set(r,c),c.standInClass=h);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),p(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.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=a.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),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,r=o._getDefinition(e);return r?p(i,r):n.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o);const e=this.getAttribute(r);i.call(this,r,t,e)}else n.call(this,r,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t?Object.setPrototypeOf(e,window.HTMLElement):u(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.attributeChangedCallback&&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)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(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===r.get(i).formAssociated)return o?.call(this,...e);throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),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 a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(ya){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 extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,o)=>t((t=>{this.isCanceled?o(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?o(new e("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class o{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class r{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);d(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let h=i.call(o,t);h||(h=f(t),e.call(o,t,h)),this===window.customElements&&(a.set(r,c),c.standInClass=h);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),p(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.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=a.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),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},f=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,r=o._getDefinition(e);return r?p(i,r):n.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o);const e=this.getAttribute(r);i.call(this,r,t,e)}else n.call(this,r,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t?Object.setPrototypeOf(e,window.HTMLElement):u(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.attributeChangedCallback&&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)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(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===r.get(i).formAssociated)return o?.call(this,...e);throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),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 a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(ga){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 extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,o)=>t((t=>{this.isCanceled?o(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?o(new e("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class o{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class r{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -87,7 +87,11 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
87
87
  * @license
88
88
  * Copyright 2019 Google LLC
89
89
  * SPDX-License-Identifier: BSD-3-Clause
90
- */const Te=window,We=Te.ShadowRoot&&(void 0===Te.ShadyCSS||Te.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class De extends $e{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{We?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=Te.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))})(i,t.elementStyles),i}}var Fe,Pe=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Me=Symbol("constructorPrototype"),ze=Symbol("constructorName"),je=Symbol("exportpartsDebouncer");class Be extends De{constructor(){super(),this[Fe]=new r(5),this[ze]=this.constructor.name,this[Me]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ze]&&Object.setPrototypeOf(this,this[Me])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).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[je].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...i).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Fe=je,Pe([k()],Be.prototype,"exportpartsPrefix",void 0),Pe([W([])],Be.prototype,"exportpartsPrefixes",void 0),Pe([k()],Be.prototype,"customStylesheet",void 0);const Ke=Et`
90
+ */const Te=window,We=Te.ShadowRoot&&(void 0===Te.ShadyCSS||Te.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class De extends $e{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{We?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=Te.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))})(i,t.elementStyles),i}}var Fe,Pe=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Me=Symbol("constructorPrototype"),ze=Symbol("constructorName"),je=Symbol("exportpartsDebouncer");class Be extends De{constructor(){super(),this[Fe]=new r(5),this[ze]=this.constructor.name,this[Me]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ze]&&Object.setPrototypeOf(this,this[Me])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).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[je].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...i).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Fe=je,Pe([k()],Be.prototype,"exportpartsPrefix",void 0),Pe([W([])],Be.prototype,"exportpartsPrefixes",void 0),Pe([k()],Be.prototype,"customStylesheet",void 0);const Ke=Ee.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Et`
91
+ .highlight-html-match {
92
+ background: ${Ke};
93
+ }
94
+ `;const Ze=Et`
91
95
  .ft-no-text-select {
92
96
  -webkit-touch-callout: none;
93
97
  -webkit-user-select: none;
@@ -108,7 +112,7 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
108
112
  -webkit-hyphens: auto;
109
113
  hyphens: auto
110
114
  }
111
- `;const Ze=Et`
115
+ `;const He=Et`
112
116
  .ft-safari-ellipsis-fix {
113
117
  margin-right: 0;
114
118
 
@@ -119,7 +123,7 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
119
123
  display: inline-block;
120
124
  width: 0;
121
125
  }
122
- `;class He{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let r=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function Ge(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Ve,qe,Ye;const Xe=Symbol("internalReduxEventsUnsubscribers"),Je=Symbol("internalStoresUnsubscribers"),Qe=Symbol("internalStores");class ti extends Be{constructor(){super(...arguments),this[Ve]=new Map,this[qe]=new Map,this[Ye]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Qe].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Qe].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Qe].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Ge(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[Qe].delete(e)}setupStore(t,e){this[Qe].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Qe].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&&(t.store?this[Je].has(t.store):this[Je].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Je].set(t,e.subscribe((()=>this.updateFromStores()))),Ge(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[Xe].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Je].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Xe].forEach((t=>t())),this[Xe]=[]}unsubscribeFromStore(t){this[Je].has(t)&&this[Je].get(t)(),this[Je].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function ei(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ii(t){return!!t&&!!t[ji]}function oi(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Bi}(t)||Array.isArray(t)||!!t[zi]||!!(null===(e=t.constructor)||void 0===e?void 0:e[zi])||ci(t)||hi(t))}function ri(t,e,i){void 0===i&&(i=!1),0===ni(t)?(i?Object.keys:Ki)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function ni(t){var e=t[ji];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ci(t)?2:hi(t)?3:0}function ai(t,e){return 2===ni(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function si(t,e,i){var o=ni(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function li(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function ci(t){return Di&&t instanceof Map}function hi(t){return Fi&&t instanceof Set}function fi(t){return t.o||t.t}function di(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Zi(t);delete e[ji];for(var i=Ki(e),o=0;o<i.length;o++){var r=i[o],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function ui(t,e){return void 0===e&&(e=!1),yi(t)||ii(t)||!oi(t)||(ni(t)>1&&(t.set=t.add=t.clear=t.delete=pi),Object.freeze(t),e&&ri(t,(function(t,e){return ui(e,!0)}),!0)),t}function pi(){ei(2)}function yi(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function gi(t){var e=Hi[t];return e||ei(18,t),e}function bi(){return Ti}function vi(t,e){e&&(gi("Patches"),t.u=[],t.s=[],t.v=e)}function mi(t){xi(t),t.p.forEach(Oi),t.p=null}function xi(t){t===Ti&&(Ti=t.l)}function wi(t){return Ti={p:[],l:Ti,h:t,m:!0,_:0}}function Oi(t){var e=t[ji];0===e.i||1===e.i?e.j():e.g=!0}function Si(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||gi("ES5").S(e,t,o),o?(i[ji].P&&(mi(e),ei(4)),oi(t)&&(t=$i(e,t),e.l||Ci(e,t)),e.u&&gi("Patches").M(i[ji].t,t,e.u,e.s)):t=$i(e,i,[]),mi(e),e.u&&e.v(e.u,e.s),t!==Mi?t:void 0}function $i(t,e,i){if(yi(e))return e;var o=e[ji];if(!o)return ri(e,(function(r,n){return Ni(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Ci(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=di(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),ri(n,(function(e,n){return Ni(t,o,r,e,n,i,a)})),Ci(t,r,!1),i&&t.u&&gi("Patches").N(o,i,t.u,t.s)}return o.o}function Ni(t,e,i,o,r,n,a){if(ii(r)){var s=$i(t,r,n&&e&&3!==e.i&&!ai(e.R,o)?n.concat(o):void 0);if(si(i,o,s),!ii(s))return;t.m=!1}else a&&i.add(r);if(oi(r)&&!yi(r)){if(!t.h.D&&t._<1)return;$i(t,r),e&&e.A.l||Ci(t,r)}}function Ci(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&ui(e,i)}function Ei(t,e){var i=t[ji];return(i?fi(i):t)[e]}function ki(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function Ri(t){t.P||(t.P=!0,t.l&&Ri(t.l))}function Ii(t){t.o||(t.o=di(t.t))}function Ui(t,e,i){var o=ci(e)?gi("MapSet").F(e,i):hi(e)?gi("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:bi(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=Gi;i&&(r=[o],n=Vi);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):gi("ES5").J(e,i);return(i?i.A:bi()).p.push(o),o}function Li(t){return ii(t)||ei(22,t),function t(e){if(!oi(e))return e;var i,o=e[ji],r=ni(e);if(o){if(!o.P&&(o.i<4||!gi("ES5").K(o)))return o.t;o.I=!0,i=Ai(e,r),o.I=!1}else i=Ai(e,r);return ri(i,(function(e,r){o&&function(t,e){return 2===ni(t)?t.get(e):t[e]}(o.t,e)===r||si(i,e,t(r))})),3===r?new Set(i):i}(t)}function Ai(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return di(t)}Ve=Je,qe=Qe,Ye=Xe;var _i,Ti,Wi="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Di="undefined"!=typeof Map,Fi="undefined"!=typeof Set,Pi="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Mi=Wi?Symbol.for("immer-nothing"):((_i={})["immer-nothing"]=!0,_i),zi=Wi?Symbol.for("immer-draftable"):"__$immer_draftable",ji=Wi?Symbol.for("immer-state"):"__$immer_state",Bi=""+Object.prototype.constructor,Ki="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Zi=Object.getOwnPropertyDescriptors||function(t){var e={};return Ki(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Hi={},Gi={get:function(t,e){if(e===ji)return t;var i=fi(t);if(!ai(i,e))return function(t,e,i){var o,r=ki(e,i);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!oi(o)?o:o===Ei(t.t,e)?(Ii(t),t.o[e]=Ui(t.A.h,o,t)):o},has:function(t,e){return e in fi(t)},ownKeys:function(t){return Reflect.ownKeys(fi(t))},set:function(t,e,i){var o=ki(fi(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=Ei(fi(t),e),n=null==r?void 0:r[ji];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(li(i,r)&&(void 0!==i||ai(t.t,e)))return!0;Ii(t),Ri(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Ei(t.t,e)||e in t.t?(t.R[e]=!1,Ii(t),Ri(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=fi(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){ei(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ei(12)}},Vi={};ri(Gi,(function(t,e){Vi[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Vi.deleteProperty=function(t,e){return Vi.set.call(this,t,e,void 0)},Vi.set=function(t,e,i){return Gi.set.call(this,t[0],e,i,t[0])};var qi=function(){function t(t){var e=this;this.O=Pi,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(a))}))}}var a;if("function"!=typeof i&&ei(6),void 0!==o&&"function"!=typeof o&&ei(7),oi(t)){var s=wi(e),l=Ui(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?mi(s):xi(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return vi(s,o),Si(t,s)}),(function(t){throw mi(s),t})):(vi(s,o),Si(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===Mi&&(a=void 0),e.D&&ui(a,!0),o){var h=[],f=[];gi("Patches").M(t,a,h,f),o(h,f)}return a}ei(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var o,r,n=e.produce(t,i,(function(t,e){o=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,o,r]})):[n,o,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){oi(t)||ei(8),ii(t)&&(t=Li(t));var e=wi(this),i=Ui(this,t,void 0);return i[ji].C=!0,xi(e),i},e.finishDraft=function(t,e){var i=(t&&t[ji]).A;return vi(i,e),Si(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Pi&&ei(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var r=gi("Patches").$;return ii(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Yi=new qi,Xi=Yi.produce;function Ji(t){return Ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ji(t)}function Qi(t){var e=function(t,e){if("object"!==Ji(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==Ji(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ji(e)?e:String(e)}function to(t,e,i){return(e=Qi(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function eo(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function io(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?eo(Object(i),!0).forEach((function(e){to(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):eo(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function oo(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Yi.produceWithPatches.bind(Yi),Yi.setAutoFreeze.bind(Yi),Yi.setUseProxies.bind(Yi),Yi.applyPatches.bind(Yi),Yi.createDraft.bind(Yi),Yi.finishDraft.bind(Yi);var ro="function"==typeof Symbol&&Symbol.observable||"@@observable",no=function(){return Math.random().toString(36).substring(7).split("").join(".")},ao={INIT:"@@redux/INIT"+no(),REPLACE:"@@redux/REPLACE"+no(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+no()}};function so(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(oo(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(oo(1));return i(so)(t,e)}if("function"!=typeof t)throw new Error(oo(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function h(){if(l)throw new Error(oo(3));return n}function f(t){if("function"!=typeof t)throw new Error(oo(4));if(l)throw new Error(oo(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(oo(6));e=!1,c();var i=s.indexOf(t);s.splice(i,1),a=null}}}function d(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(oo(7));if(void 0===t.type)throw new Error(oo(8));if(l)throw new Error(oo(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,i=0;i<e.length;i++){(0,e[i])()}return t}return d({type:ao.INIT}),(o={dispatch:d,subscribe:f,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(oo(10));r=t,d({type:ao.REPLACE})}})[ro]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(oo(11));function i(){t.next&&t.next(h())}return i(),{unsubscribe:e(i)}}})[ro]=function(){return this},t},o}function lo(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var r=e[o];"function"==typeof t[r]&&(i[r]=t[r])}var n,a=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:ao.INIT}))throw new Error(oo(12));if(void 0===i(void 0,{type:ao.PROBE_UNKNOWN_ACTION()}))throw new Error(oo(13))}))}(i)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var o=!1,r={},s=0;s<a.length;s++){var l=a[s],c=i[l],h=t[l],f=c(h,e);if(void 0===f)throw e&&e.type,new Error(oo(14));r[l]=f,o=o||f!==h}return(o=o||a.length!==Object.keys(t).length)?r:t}}function co(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function ho(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(oo(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=co.apply(void 0,n)(i.dispatch),io(io({},i),{},{dispatch:o})}}}function fo(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,o,t):e(r)}}}}var uo=fo();uo.withExtraArgument=fo;var po,yo=uo,go=(po=function(t,e){return po=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},po(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}po(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),bo=function(t,e){var i,o,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},vo=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},mo=Object.defineProperty,xo=Object.defineProperties,wo=Object.getOwnPropertyDescriptors,Oo=Object.getOwnPropertySymbols,So=Object.prototype.hasOwnProperty,$o=Object.prototype.propertyIsEnumerable,No=function(t,e,i){return e in t?mo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Co=function(t,e){for(var i in e||(e={}))So.call(e,i)&&No(t,i,e[i]);if(Oo)for(var o=0,r=Oo(e);o<r.length;o++){i=r[o];$o.call(e,i)&&No(t,i,e[i])}return t},Eo=function(t,e){return xo(t,wo(e))},ko="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?co:co.apply(null,arguments)};var Ro=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return go(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,vo([void 0],t[0].concat(this)))):new(e.bind.apply(e,vo([void 0],t.concat(this))))},e}(Array),Io=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return go(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,vo([void 0],t[0].concat(this)))):new(e.bind.apply(e,vo([void 0],t.concat(this))))},e}(Array);function Uo(t){return oi(t)?Xi(t,(function(){})):t}function Lo(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new Ro;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(yo.withExtraArgument(i.extraArgument)):o.push(yo));return o}(t)}}function Ao(t){var e,i=Lo(),o=t||{},r=o.reducer,n=void 0===r?void 0:r,a=o.middleware,s=void 0===a?i():a,l=o.devTools,c=void 0===l||l,h=o.preloadedState,f=void 0===h?void 0:h,d=o.enhancers,u=void 0===d?void 0:d;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=lo(n)}var p=s;"function"==typeof p&&(p=p(i));var y=ho.apply(void 0,p),g=co;c&&(g=ko(Co({trace:!1},"object"==typeof c&&c)));var b=new Io(y),v=b;return Array.isArray(u)?v=vo([y],u):"function"==typeof u&&(v=u(b)),so(e,f,g.apply(void 0,v))}function _o(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return Co(Co({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function To(t){var e,i={},o=[],r={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,r},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,o,e]}function Wo(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:Uo(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?To(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,h=Co(Co({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?To(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Uo(t())};else{var c=Uo(t);r=function(){return c}}function h(t,e){void 0===t&&(t=r());var i=vo([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var o;if(ii(t))return void 0===(o=i(t,e))?t:o;if(oi(t))return Xi(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return h.getInitialState=r,h}(o,(function(t){for(var e in h)t.addCase(e,h[e]);for(var i=0,o=a;i<o.length;i++){var r=o[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var i,o,n=r[t],c=e+"/"+t;"reducer"in n?(i=n.reducer,o=n.prepare):i=n,a[t]=i,s[c]=i,l[t]=o?_o(c,o):_o(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:a,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var Do=["name","message","stack","code"],Fo=function(t,e){this.payload=t,this.meta=e},Po=function(t,e){this.payload=t,this.meta=e},Mo=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=Do;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function zo(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var o=_o(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:Eo(Co({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=_o(t+"/pending",(function(t,e,i){return{payload:void 0,meta:Eo(Co({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=_o(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Mo)(t||"Rejected"),meta:Eo(Co({},n||{}),{arg:o,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,l,c){var h,f=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),d=new a;function u(t){h=t,d.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,g,b,v;return bo(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),g=null==(a=null==i?void 0:i.condition)?void 0:a.call(i,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=m.sent(),m.label=2;case 2:if(!1===g||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),s(r(f,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:f,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:f,signal:d.signal,abort:u,rejectWithValue:function(t,e){return new Fo(t,e)},fulfillWithValue:function(t,e){return new Po(t,e)}})).then((function(e){if(e instanceof Fo)throw e;return e instanceof Po?o(e.payload,f,t,e.meta):o(e,f,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof Fo?n(null,f,t,v.payload,v.meta):n(v,f,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var i=function(t){try{r(y.next(t))}catch(t){e(t)}},o=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};r((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:u,requestId:f,arg:t,unwrap:function(){return p.then(zo)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var jo="listenerMiddleware";_o(jo+"/add"),_o(jo+"/removeAll"),_o(jo+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[ji];return Gi.get(e,t)},set:function(e){var i=this[ji];Gi.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][ji];if(!r.P)switch(r.i){case 5:o(r)&&Ri(r);break;case 4:i(r)&&Ri(r)}}}function i(t){for(var e=t.t,i=t.k,o=Ki(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==ji){var a=e[n];if(void 0===a&&!ai(e,n))return!0;var s=i[n],l=s&&s[ji];if(l?l.t!==a:!li(s,a))return!0}}var c=!!e[ji];return o.length!==Ki(e).length+(c?0:1)}function o(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var r={};!function(t,e){Hi[t]||(Hi[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),r=function(e,i){if(e){for(var o=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(o,""+r,t(r,!0));return o}var n=Zi(i);delete n[ji];for(var a=Ki(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(i),n)}(o,e),n={i:o?5:4,A:i?i.A:bi(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,ji,{value:n,writable:!0}),r},S:function(t,i,r){r?ii(i)&&i[ji].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[ji];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)ri(n,(function(e){e!==ji&&(void 0!==r[e]||ai(r,e)?a[e]||t(n[e]):(a[e]=!0,Ri(i)))})),ri(r,(function(t){void 0!==n[t]||ai(n,t)||(a[t]=!1,Ri(i))}));else if(5===s){if(o(i)&&(Ri(i),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var h=Math.min(n.length,r.length),f=0;f<h;f++)n.hasOwnProperty(f)||(a[f]=!0),void 0===a[f]&&t(n[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Bo{static get(t){var e;const i="string"==typeof t?t:t.name,o="string"==typeof t?void 0:t,r=window.ftReduxStores[i];if(Ge(r))return r;if(null==o)return;const n=Wo({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=Ao({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[o.name]=new Bo(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=e,r=t[o];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[o]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Ko=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!_(t,e),attribute:!1,...e};k(r)(t,i);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}},Zo=Symbol("elementInternals");function Ho(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Zo].form}constructor(...t){super(t),this[Zo]=this.attachInternals(),this[Zo].role=e}setFormValue(t){this[Zo].setFormValue(t)}}}var Go,Vo,qo;const Yo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(qo=null===(Vo=null===(Go=window.safari)||void 0===Go?void 0:Go.pushNotification)||void 0===Vo?void 0:Vo.toString())&&void 0!==qo?qo:"");var Xo;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(Xo||(Xo={}));var Jo=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Qo extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const tr=Symbol("registerInterval");class er 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[tr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[tr]):this.dispatchEvent(new Qo)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=tr,Jo([R()],i.prototype,"stateManager",void 0),i}(ti)){}const ir=Ee.extend("--ft-ripple-color","",Ae.colorContent),or={color:ir,backgroundColor:Ee.extend("--ft-ripple-background-color","",ir),opacityContentOnSurfacePressed:Ee.external(Ae.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ee.external(Ae.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ee.external(Ae.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ee.external(Ae.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ee.create("--ft-ripple-border-radius","","SIZE","0px")},rr=Ee.extend("--ft-ripple-color","",Ae.colorPrimary),nr=rr,ar=Ee.extend("--ft-ripple-background-color","",rr),sr=Ee.extend("--ft-ripple-color","",Ae.colorSecondary),lr=sr,cr=Ee.extend("--ft-ripple-background-color","",sr),hr=Et`
126
+ `;class Ge{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let r=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(t)}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function Ve(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var qe,Ye,Xe;const Je=Symbol("internalReduxEventsUnsubscribers"),Qe=Symbol("internalStoresUnsubscribers"),ti=Symbol("internalStores");class ei extends Be{constructor(){super(...arguments),this[qe]=new Map,this[Ye]=new Map,this[Xe]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[ti].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ti].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ti].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Ve(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[ti].delete(e)}setupStore(t,e){this[ti].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ti].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&&(t.store?this[Qe].has(t.store):this[Qe].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Qe].set(t,e.subscribe((()=>this.updateFromStores()))),Ve(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[Je].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Qe].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Je].forEach((t=>t())),this[Je]=[]}unsubscribeFromStore(t){this[Qe].has(t)&&this[Qe].get(t)(),this[Qe].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function ii(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function oi(t){return!!t&&!!t[Bi]}function ri(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Ki}(t)||Array.isArray(t)||!!t[ji]||!!(null===(e=t.constructor)||void 0===e?void 0:e[ji])||hi(t)||fi(t))}function ni(t,e,i){void 0===i&&(i=!1),0===ai(t)?(i?Object.keys:Zi)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function ai(t){var e=t[Bi];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:hi(t)?2:fi(t)?3:0}function si(t,e){return 2===ai(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function li(t,e,i){var o=ai(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function ci(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function hi(t){return Fi&&t instanceof Map}function fi(t){return Pi&&t instanceof Set}function di(t){return t.o||t.t}function ui(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Hi(t);delete e[Bi];for(var i=Zi(e),o=0;o<i.length;o++){var r=i[o],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function pi(t,e){return void 0===e&&(e=!1),gi(t)||oi(t)||!ri(t)||(ai(t)>1&&(t.set=t.add=t.clear=t.delete=yi),Object.freeze(t),e&&ni(t,(function(t,e){return pi(e,!0)}),!0)),t}function yi(){ii(2)}function gi(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function bi(t){var e=Gi[t];return e||ii(18,t),e}function vi(){return Wi}function mi(t,e){e&&(bi("Patches"),t.u=[],t.s=[],t.v=e)}function xi(t){wi(t),t.p.forEach(Si),t.p=null}function wi(t){t===Wi&&(Wi=t.l)}function Oi(t){return Wi={p:[],l:Wi,h:t,m:!0,_:0}}function Si(t){var e=t[Bi];0===e.i||1===e.i?e.j():e.g=!0}function $i(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||bi("ES5").S(e,t,o),o?(i[Bi].P&&(xi(e),ii(4)),ri(t)&&(t=Ni(e,t),e.l||Ei(e,t)),e.u&&bi("Patches").M(i[Bi].t,t,e.u,e.s)):t=Ni(e,i,[]),xi(e),e.u&&e.v(e.u,e.s),t!==zi?t:void 0}function Ni(t,e,i){if(gi(e))return e;var o=e[Bi];if(!o)return ni(e,(function(r,n){return Ci(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Ei(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=ui(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),ni(n,(function(e,n){return Ci(t,o,r,e,n,i,a)})),Ei(t,r,!1),i&&t.u&&bi("Patches").N(o,i,t.u,t.s)}return o.o}function Ci(t,e,i,o,r,n,a){if(oi(r)){var s=Ni(t,r,n&&e&&3!==e.i&&!si(e.R,o)?n.concat(o):void 0);if(li(i,o,s),!oi(s))return;t.m=!1}else a&&i.add(r);if(ri(r)&&!gi(r)){if(!t.h.D&&t._<1)return;Ni(t,r),e&&e.A.l||Ei(t,r)}}function Ei(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&pi(e,i)}function ki(t,e){var i=t[Bi];return(i?di(i):t)[e]}function Ri(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function Ii(t){t.P||(t.P=!0,t.l&&Ii(t.l))}function Ui(t){t.o||(t.o=ui(t.t))}function Li(t,e,i){var o=hi(e)?bi("MapSet").F(e,i):fi(e)?bi("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:vi(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=Vi;i&&(r=[o],n=qi);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):bi("ES5").J(e,i);return(i?i.A:vi()).p.push(o),o}function Ai(t){return oi(t)||ii(22,t),function t(e){if(!ri(e))return e;var i,o=e[Bi],r=ai(e);if(o){if(!o.P&&(o.i<4||!bi("ES5").K(o)))return o.t;o.I=!0,i=_i(e,r),o.I=!1}else i=_i(e,r);return ni(i,(function(e,r){o&&function(t,e){return 2===ai(t)?t.get(e):t[e]}(o.t,e)===r||li(i,e,t(r))})),3===r?new Set(i):i}(t)}function _i(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ui(t)}qe=Qe,Ye=ti,Xe=Je;var Ti,Wi,Di="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Fi="undefined"!=typeof Map,Pi="undefined"!=typeof Set,Mi="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,zi=Di?Symbol.for("immer-nothing"):((Ti={})["immer-nothing"]=!0,Ti),ji=Di?Symbol.for("immer-draftable"):"__$immer_draftable",Bi=Di?Symbol.for("immer-state"):"__$immer_state",Ki=""+Object.prototype.constructor,Zi="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Hi=Object.getOwnPropertyDescriptors||function(t){var e={};return Zi(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Gi={},Vi={get:function(t,e){if(e===Bi)return t;var i=di(t);if(!si(i,e))return function(t,e,i){var o,r=Ri(e,i);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!ri(o)?o:o===ki(t.t,e)?(Ui(t),t.o[e]=Li(t.A.h,o,t)):o},has:function(t,e){return e in di(t)},ownKeys:function(t){return Reflect.ownKeys(di(t))},set:function(t,e,i){var o=Ri(di(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=ki(di(t),e),n=null==r?void 0:r[Bi];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(ci(i,r)&&(void 0!==i||si(t.t,e)))return!0;Ui(t),Ii(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==ki(t.t,e)||e in t.t?(t.R[e]=!1,Ui(t),Ii(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=di(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){ii(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ii(12)}},qi={};ni(Vi,(function(t,e){qi[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),qi.deleteProperty=function(t,e){return qi.set.call(this,t,e,void 0)},qi.set=function(t,e,i){return Vi.set.call(this,t[0],e,i,t[0])};var Yi=function(){function t(t){var e=this;this.O=Mi,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(a))}))}}var a;if("function"!=typeof i&&ii(6),void 0!==o&&"function"!=typeof o&&ii(7),ri(t)){var s=Oi(e),l=Li(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?xi(s):wi(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return mi(s,o),$i(t,s)}),(function(t){throw xi(s),t})):(mi(s,o),$i(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===zi&&(a=void 0),e.D&&pi(a,!0),o){var h=[],f=[];bi("Patches").M(t,a,h,f),o(h,f)}return a}ii(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var o,r,n=e.produce(t,i,(function(t,e){o=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,o,r]})):[n,o,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){ri(t)||ii(8),oi(t)&&(t=Ai(t));var e=Oi(this),i=Li(this,t,void 0);return i[Bi].C=!0,wi(e),i},e.finishDraft=function(t,e){var i=(t&&t[Bi]).A;return mi(i,e),$i(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Mi&&ii(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var r=bi("Patches").$;return oi(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Xi=new Yi,Ji=Xi.produce;function Qi(t){return Qi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qi(t)}function to(t){var e=function(t,e){if("object"!==Qi(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==Qi(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Qi(e)?e:String(e)}function eo(t,e,i){return(e=to(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function io(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function oo(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?io(Object(i),!0).forEach((function(e){eo(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):io(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function ro(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}Xi.produceWithPatches.bind(Xi),Xi.setAutoFreeze.bind(Xi),Xi.setUseProxies.bind(Xi),Xi.applyPatches.bind(Xi),Xi.createDraft.bind(Xi),Xi.finishDraft.bind(Xi);var no="function"==typeof Symbol&&Symbol.observable||"@@observable",ao=function(){return Math.random().toString(36).substring(7).split("").join(".")},so={INIT:"@@redux/INIT"+ao(),REPLACE:"@@redux/REPLACE"+ao(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ao()}};function lo(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(ro(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(ro(1));return i(lo)(t,e)}if("function"!=typeof t)throw new Error(ro(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function h(){if(l)throw new Error(ro(3));return n}function f(t){if("function"!=typeof t)throw new Error(ro(4));if(l)throw new Error(ro(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(ro(6));e=!1,c();var i=s.indexOf(t);s.splice(i,1),a=null}}}function d(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(ro(7));if(void 0===t.type)throw new Error(ro(8));if(l)throw new Error(ro(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,i=0;i<e.length;i++){(0,e[i])()}return t}return d({type:so.INIT}),(o={dispatch:d,subscribe:f,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ro(10));r=t,d({type:so.REPLACE})}})[no]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ro(11));function i(){t.next&&t.next(h())}return i(),{unsubscribe:e(i)}}})[no]=function(){return this},t},o}function co(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var r=e[o];"function"==typeof t[r]&&(i[r]=t[r])}var n,a=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:so.INIT}))throw new Error(ro(12));if(void 0===i(void 0,{type:so.PROBE_UNKNOWN_ACTION()}))throw new Error(ro(13))}))}(i)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var o=!1,r={},s=0;s<a.length;s++){var l=a[s],c=i[l],h=t[l],f=c(h,e);if(void 0===f)throw e&&e.type,new Error(ro(14));r[l]=f,o=o||f!==h}return(o=o||a.length!==Object.keys(t).length)?r:t}}function ho(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function fo(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(ro(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=ho.apply(void 0,n)(i.dispatch),oo(oo({},i),{},{dispatch:o})}}}function uo(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,o,t):e(r)}}}}var po=uo();po.withExtraArgument=uo;var yo,go=po,bo=(yo=function(t,e){return yo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},yo(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}yo(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),vo=function(t,e){var i,o,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},mo=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},xo=Object.defineProperty,wo=Object.defineProperties,Oo=Object.getOwnPropertyDescriptors,So=Object.getOwnPropertySymbols,$o=Object.prototype.hasOwnProperty,No=Object.prototype.propertyIsEnumerable,Co=function(t,e,i){return e in t?xo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Eo=function(t,e){for(var i in e||(e={}))$o.call(e,i)&&Co(t,i,e[i]);if(So)for(var o=0,r=So(e);o<r.length;o++){i=r[o];No.call(e,i)&&Co(t,i,e[i])}return t},ko=function(t,e){return wo(t,Oo(e))},Ro="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ho:ho.apply(null,arguments)};var Io=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return bo(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,mo([void 0],t[0].concat(this)))):new(e.bind.apply(e,mo([void 0],t.concat(this))))},e}(Array),Uo=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return bo(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,mo([void 0],t[0].concat(this)))):new(e.bind.apply(e,mo([void 0],t.concat(this))))},e}(Array);function Lo(t){return ri(t)?Ji(t,(function(){})):t}function Ao(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new Io;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(go.withExtraArgument(i.extraArgument)):o.push(go));return o}(t)}}function _o(t){var e,i=Ao(),o=t||{},r=o.reducer,n=void 0===r?void 0:r,a=o.middleware,s=void 0===a?i():a,l=o.devTools,c=void 0===l||l,h=o.preloadedState,f=void 0===h?void 0:h,d=o.enhancers,u=void 0===d?void 0:d;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=co(n)}var p=s;"function"==typeof p&&(p=p(i));var y=fo.apply(void 0,p),g=ho;c&&(g=Ro(Eo({trace:!1},"object"==typeof c&&c)));var b=new Uo(y),v=b;return Array.isArray(u)?v=mo([y],u):"function"==typeof u&&(v=u(b)),lo(e,f,g.apply(void 0,v))}function To(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return Eo(Eo({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function Wo(t){var e,i={},o=[],r={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,r},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,o,e]}function Do(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:Lo(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Wo(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,h=Eo(Eo({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?Wo(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Lo(t())};else{var c=Lo(t);r=function(){return c}}function h(t,e){void 0===t&&(t=r());var i=mo([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var o;if(oi(t))return void 0===(o=i(t,e))?t:o;if(ri(t))return Ji(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return h.getInitialState=r,h}(o,(function(t){for(var e in h)t.addCase(e,h[e]);for(var i=0,o=a;i<o.length;i++){var r=o[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var i,o,n=r[t],c=e+"/"+t;"reducer"in n?(i=n.reducer,o=n.prepare):i=n,a[t]=i,s[c]=i,l[t]=o?To(c,o):To(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:a,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var Fo=["name","message","stack","code"],Po=function(t,e){this.payload=t,this.meta=e},Mo=function(t,e){this.payload=t,this.meta=e},zo=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=Fo;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function jo(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var o=To(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:ko(Eo({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=To(t+"/pending",(function(t,e,i){return{payload:void 0,meta:ko(Eo({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=To(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||zo)(t||"Rejected"),meta:ko(Eo({},n||{}),{arg:o,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,l,c){var h,f=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),d=new a;function u(t){h=t,d.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,g,b,v;return vo(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),g=null==(a=null==i?void 0:i.condition)?void 0:a.call(i,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=m.sent(),m.label=2;case 2:if(!1===g||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),s(r(f,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:f,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:f,signal:d.signal,abort:u,rejectWithValue:function(t,e){return new Po(t,e)},fulfillWithValue:function(t,e){return new Mo(t,e)}})).then((function(e){if(e instanceof Po)throw e;return e instanceof Mo?o(e.payload,f,t,e.meta):o(e,f,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof Po?n(null,f,t,v.payload,v.meta):n(v,f,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var i=function(t){try{r(y.next(t))}catch(t){e(t)}},o=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};r((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:u,requestId:f,arg:t,unwrap:function(){return p.then(jo)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Bo="listenerMiddleware";To(Bo+"/add"),To(Bo+"/removeAll"),To(Bo+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[Bi];return Vi.get(e,t)},set:function(e){var i=this[Bi];Vi.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Bi];if(!r.P)switch(r.i){case 5:o(r)&&Ii(r);break;case 4:i(r)&&Ii(r)}}}function i(t){for(var e=t.t,i=t.k,o=Zi(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==Bi){var a=e[n];if(void 0===a&&!si(e,n))return!0;var s=i[n],l=s&&s[Bi];if(l?l.t!==a:!ci(s,a))return!0}}var c=!!e[Bi];return o.length!==Zi(e).length+(c?0:1)}function o(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var r={};!function(t,e){Gi[t]||(Gi[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),r=function(e,i){if(e){for(var o=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(o,""+r,t(r,!0));return o}var n=Hi(i);delete n[Bi];for(var a=Zi(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(i),n)}(o,e),n={i:o?5:4,A:i?i.A:vi(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Bi,{value:n,writable:!0}),r},S:function(t,i,r){r?oi(i)&&i[Bi].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Bi];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)ni(n,(function(e){e!==Bi&&(void 0!==r[e]||si(r,e)?a[e]||t(n[e]):(a[e]=!0,Ii(i)))})),ni(r,(function(t){void 0!==n[t]||si(n,t)||(a[t]=!1,Ii(i))}));else if(5===s){if(o(i)&&(Ii(i),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var h=Math.min(n.length,r.length),f=0;f<h;f++)n.hasOwnProperty(f)||(a[f]=!0),void 0===a[f]&&t(n[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Ko{static get(t){var e;const i="string"==typeof t?t:t.name,o="string"==typeof t?void 0:t,r=window.ftReduxStores[i];if(Ve(r))return r;if(null==o)return;const n=Do({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=_o({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[o.name]=new Ko(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=e,r=t[o];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[o]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Zo=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!_(t,e),attribute:!1,...e};k(r)(t,i);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}},Ho=Symbol("elementInternals");function Go(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Ho].form}constructor(...t){super(t),this[Ho]=this.attachInternals(),this[Ho].role=e}setFormValue(t){this[Ho].setFormValue(t)}}}var Vo,qo,Yo;const Xo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Yo=null===(qo=null===(Vo=window.safari)||void 0===Vo?void 0:Vo.pushNotification)||void 0===qo?void 0:qo.toString())&&void 0!==Yo?Yo:"");var Jo;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(Jo||(Jo={}));var Qo=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class tr extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const er=Symbol("registerInterval");class ir 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[er]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[er]):this.dispatchEvent(new tr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=er,Qo([R()],i.prototype,"stateManager",void 0),i}(ei)){}const or=Ee.extend("--ft-ripple-color","",Ae.colorContent),rr={color:or,backgroundColor:Ee.extend("--ft-ripple-background-color","",or),opacityContentOnSurfacePressed:Ee.external(Ae.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ee.external(Ae.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ee.external(Ae.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ee.external(Ae.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ee.create("--ft-ripple-border-radius","","SIZE","0px")},nr=Ee.extend("--ft-ripple-color","",Ae.colorPrimary),ar=nr,sr=Ee.extend("--ft-ripple-background-color","",nr),lr=Ee.extend("--ft-ripple-color","",Ae.colorSecondary),cr=lr,hr=Ee.extend("--ft-ripple-background-color","",lr),fr=Et`
123
127
  :host {
124
128
  display: contents;
125
129
  }
@@ -132,7 +136,7 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
132
136
 
133
137
  .ft-ripple:not(.ft-ripple--unbounded) {
134
138
  overflow: hidden;
135
- border-radius: ${or.borderRadius};
139
+ border-radius: ${rr.borderRadius};
136
140
  }
137
141
 
138
142
  .ft-ripple .ft-ripple--background,
@@ -166,27 +170,27 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
166
170
  }
167
171
 
168
172
  .ft-ripple .ft-ripple--background {
169
- background-color: ${or.backgroundColor};
173
+ background-color: ${rr.backgroundColor};
170
174
  }
171
175
 
172
176
  .ft-ripple .ft-ripple--effect {
173
- background-color: ${or.color};
177
+ background-color: ${rr.color};
174
178
  }
175
179
 
176
180
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
177
- background-color: ${cr};
181
+ background-color: ${hr};
178
182
  }
179
183
 
180
184
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
181
- background-color: ${lr};
185
+ background-color: ${cr};
182
186
  }
183
187
 
184
188
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
185
- background-color: ${ar};
189
+ background-color: ${sr};
186
190
  }
187
191
 
188
192
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
189
- background-color: ${nr};
193
+ background-color: ${ar};
190
194
  }
191
195
 
192
196
  .ft-ripple .ft-ripple--background {
@@ -216,32 +220,23 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
216
220
  }
217
221
 
218
222
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
219
- opacity: ${or.opacityContentOnSurfaceHover};
223
+ opacity: ${rr.opacityContentOnSurfaceHover};
220
224
  }
221
225
 
222
226
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
223
- opacity: ${or.opacityContentOnSurfaceSelected};
227
+ opacity: ${rr.opacityContentOnSurfaceSelected};
224
228
  }
225
229
 
226
230
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
227
- opacity: ${or.opacityContentOnSurfaceFocused};
231
+ opacity: ${rr.opacityContentOnSurfaceFocused};
228
232
  }
229
233
 
230
234
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
231
- opacity: ${or.opacityContentOnSurfacePressed};
235
+ opacity: ${rr.opacityContentOnSurfacePressed};
232
236
  transform: translate(-50%, -50%) scale(1);
233
237
  }
234
- `;const fr=Ee.extend("--ft-typography-font-family","",Ae.titleFont),dr=Ee.extend("--ft-typography-font-family","",Ae.contentFont),ur={fontFamily:dr,fontSize:Ee.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ee.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ee.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ee.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ee.create("--ft-typography-text-transform","","UNKNOWN","inherit")},pr={fontFamily:Ee.extend("--ft-typography-title-font-family","",fr),fontSize:Ee.extend("--ft-typography-title-font-size","",ur.fontSize,"20px"),fontWeight:Ee.extend("--ft-typography-title-font-weight","",ur.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-title-letter-spacing","",ur.letterSpacing,"0.15px"),lineHeight:Ee.extend("--ft-typography-title-line-height","",ur.lineHeight,"1.2"),textTransform:Ee.extend("--ft-typography-title-text-transform","",ur.textTransform,"inherit")},yr={fontFamily:Ee.extend("--ft-typography-title-dense-font-family","",fr),fontSize:Ee.extend("--ft-typography-title-dense-font-size","",ur.fontSize,"14px"),fontWeight:Ee.extend("--ft-typography-title-dense-font-weight","",ur.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-title-dense-letter-spacing","",ur.letterSpacing,"0.105px"),lineHeight:Ee.extend("--ft-typography-title-dense-line-height","",ur.lineHeight,"1.7"),textTransform:Ee.extend("--ft-typography-title-dense-text-transform","",ur.textTransform,"inherit")},gr=Ee.extend("--ft-typography-subtitle1-font-family","",dr),br=Ee.extend("--ft-typography-subtitle1-font-size","",ur.fontSize,"16px"),vr=Ee.extend("--ft-typography-subtitle1-font-weight","",ur.fontWeight,"600"),mr=Ee.extend("--ft-typography-subtitle1-letter-spacing","",ur.letterSpacing,"0.144px"),xr=Ee.extend("--ft-typography-subtitle1-line-height","",ur.lineHeight,"1.5"),wr=Ee.extend("--ft-typography-subtitle1-text-transform","",ur.textTransform,"inherit"),Or=Ee.extend("--ft-typography-subtitle2-font-family","",dr),Sr=Ee.extend("--ft-typography-subtitle2-font-size","",ur.fontSize,"14px"),$r=Ee.extend("--ft-typography-subtitle2-font-weight","",ur.fontWeight,"normal"),Nr=Ee.extend("--ft-typography-subtitle2-letter-spacing","",ur.letterSpacing,"0.098px"),Cr=Ee.extend("--ft-typography-subtitle2-line-height","",ur.lineHeight,"1.7"),Er=Ee.extend("--ft-typography-subtitle2-text-transform","",ur.textTransform,"inherit"),kr={fontFamily:Ee.extend("--ft-typography-body1-font-family","",dr),fontSize:Ee.extend("--ft-typography-body1-font-size","",ur.fontSize,"16px"),fontWeight:Ee.extend("--ft-typography-body1-font-weight","",ur.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-body1-letter-spacing","",ur.letterSpacing,"0.496px"),lineHeight:Ee.extend("--ft-typography-body1-line-height","",ur.lineHeight,"1.5"),textTransform:Ee.extend("--ft-typography-body1-text-transform","",ur.textTransform,"inherit")},Rr=Ee.extend("--ft-typography-body2-font-family","",dr),Ir=Ee.extend("--ft-typography-body2-font-size","",ur.fontSize,"14px"),Ur=Ee.extend("--ft-typography-body2-font-weight","",ur.fontWeight,"normal"),Lr=Ee.extend("--ft-typography-body2-letter-spacing","",ur.letterSpacing,"0.252px"),Ar=Ee.extend("--ft-typography-body2-line-height","",ur.lineHeight,"1.4"),_r=Ee.extend("--ft-typography-body2-text-transform","",ur.textTransform,"inherit"),Tr={fontFamily:Ee.extend("--ft-typography-caption-font-family","",dr),fontSize:Ee.extend("--ft-typography-caption-font-size","",ur.fontSize,"12px"),fontWeight:Ee.extend("--ft-typography-caption-font-weight","",ur.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-caption-letter-spacing","",ur.letterSpacing,"0.396px"),lineHeight:Ee.extend("--ft-typography-caption-line-height","",ur.lineHeight,"1.33"),textTransform:Ee.extend("--ft-typography-caption-text-transform","",ur.textTransform,"inherit")},Wr=Ee.extend("--ft-typography-breadcrumb-font-family","",dr),Dr=Ee.extend("--ft-typography-breadcrumb-font-size","",ur.fontSize,"10px"),Fr=Ee.extend("--ft-typography-breadcrumb-font-weight","",ur.fontWeight,"normal"),Pr=Ee.extend("--ft-typography-breadcrumb-letter-spacing","",ur.letterSpacing,"0.33px"),Mr=Ee.extend("--ft-typography-breadcrumb-line-height","",ur.lineHeight,"1.6"),zr=Ee.extend("--ft-typography-breadcrumb-text-transform","",ur.textTransform,"inherit"),jr=Ee.extend("--ft-typography-overline-font-family","",dr),Br=Ee.extend("--ft-typography-overline-font-size","",ur.fontSize,"10px"),Kr=Ee.extend("--ft-typography-overline-font-weight","",ur.fontWeight,"normal"),Zr=Ee.extend("--ft-typography-overline-letter-spacing","",ur.letterSpacing,"1.5px"),Hr=Ee.extend("--ft-typography-overline-line-height","",ur.lineHeight,"1.6"),Gr=Ee.extend("--ft-typography-overline-text-transform","",ur.textTransform,"uppercase"),Vr={fontFamily:Ee.extend("--ft-typography-button-font-family","",dr),fontSize:Ee.extend("--ft-typography-button-font-size","",ur.fontSize,"14px"),fontWeight:Ee.extend("--ft-typography-button-font-weight","",ur.fontWeight,"600"),letterSpacing:Ee.extend("--ft-typography-button-letter-spacing","",ur.letterSpacing,"1.246px"),lineHeight:Ee.extend("--ft-typography-button-line-height","",ur.lineHeight,"1.15"),textTransform:Ee.extend("--ft-typography-button-text-transform","",ur.textTransform,"uppercase")},qr=Et`
238
+ `;const dr=Ee.extend("--ft-typography-font-family","",Ae.titleFont),ur=Ee.extend("--ft-typography-font-family","",Ae.contentFont),pr={fontFamily:ur,fontSize:Ee.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ee.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ee.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ee.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ee.create("--ft-typography-text-transform","","UNKNOWN","inherit")},yr={fontFamily:Ee.extend("--ft-typography-title-font-family","",dr),fontSize:Ee.extend("--ft-typography-title-font-size","",pr.fontSize,"20px"),fontWeight:Ee.extend("--ft-typography-title-font-weight","",pr.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-title-letter-spacing","",pr.letterSpacing,"0.15px"),lineHeight:Ee.extend("--ft-typography-title-line-height","",pr.lineHeight,"1.2"),textTransform:Ee.extend("--ft-typography-title-text-transform","",pr.textTransform,"inherit")},gr={fontFamily:Ee.extend("--ft-typography-title-dense-font-family","",dr),fontSize:Ee.extend("--ft-typography-title-dense-font-size","",pr.fontSize,"14px"),fontWeight:Ee.extend("--ft-typography-title-dense-font-weight","",pr.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-title-dense-letter-spacing","",pr.letterSpacing,"0.105px"),lineHeight:Ee.extend("--ft-typography-title-dense-line-height","",pr.lineHeight,"1.7"),textTransform:Ee.extend("--ft-typography-title-dense-text-transform","",pr.textTransform,"inherit")},br=Ee.extend("--ft-typography-subtitle1-font-family","",ur),vr=Ee.extend("--ft-typography-subtitle1-font-size","",pr.fontSize,"16px"),mr=Ee.extend("--ft-typography-subtitle1-font-weight","",pr.fontWeight,"600"),xr=Ee.extend("--ft-typography-subtitle1-letter-spacing","",pr.letterSpacing,"0.144px"),wr=Ee.extend("--ft-typography-subtitle1-line-height","",pr.lineHeight,"1.5"),Or=Ee.extend("--ft-typography-subtitle1-text-transform","",pr.textTransform,"inherit"),Sr=Ee.extend("--ft-typography-subtitle2-font-family","",ur),$r=Ee.extend("--ft-typography-subtitle2-font-size","",pr.fontSize,"14px"),Nr=Ee.extend("--ft-typography-subtitle2-font-weight","",pr.fontWeight,"normal"),Cr=Ee.extend("--ft-typography-subtitle2-letter-spacing","",pr.letterSpacing,"0.098px"),Er=Ee.extend("--ft-typography-subtitle2-line-height","",pr.lineHeight,"1.7"),kr=Ee.extend("--ft-typography-subtitle2-text-transform","",pr.textTransform,"inherit"),Rr={fontFamily:Ee.extend("--ft-typography-body1-font-family","",ur),fontSize:Ee.extend("--ft-typography-body1-font-size","",pr.fontSize,"16px"),fontWeight:Ee.extend("--ft-typography-body1-font-weight","",pr.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-body1-letter-spacing","",pr.letterSpacing,"0.496px"),lineHeight:Ee.extend("--ft-typography-body1-line-height","",pr.lineHeight,"1.5"),textTransform:Ee.extend("--ft-typography-body1-text-transform","",pr.textTransform,"inherit")},Ir=Ee.extend("--ft-typography-body2-font-family","",ur),Ur=Ee.extend("--ft-typography-body2-font-size","",pr.fontSize,"14px"),Lr=Ee.extend("--ft-typography-body2-font-weight","",pr.fontWeight,"normal"),Ar=Ee.extend("--ft-typography-body2-letter-spacing","",pr.letterSpacing,"0.252px"),_r=Ee.extend("--ft-typography-body2-line-height","",pr.lineHeight,"1.4"),Tr=Ee.extend("--ft-typography-body2-text-transform","",pr.textTransform,"inherit"),Wr={fontFamily:Ee.extend("--ft-typography-caption-font-family","",ur),fontSize:Ee.extend("--ft-typography-caption-font-size","",pr.fontSize,"12px"),fontWeight:Ee.extend("--ft-typography-caption-font-weight","",pr.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-caption-letter-spacing","",pr.letterSpacing,"0.396px"),lineHeight:Ee.extend("--ft-typography-caption-line-height","",pr.lineHeight,"1.33"),textTransform:Ee.extend("--ft-typography-caption-text-transform","",pr.textTransform,"inherit")},Dr=Ee.extend("--ft-typography-breadcrumb-font-family","",ur),Fr=Ee.extend("--ft-typography-breadcrumb-font-size","",pr.fontSize,"10px"),Pr=Ee.extend("--ft-typography-breadcrumb-font-weight","",pr.fontWeight,"normal"),Mr=Ee.extend("--ft-typography-breadcrumb-letter-spacing","",pr.letterSpacing,"0.33px"),zr=Ee.extend("--ft-typography-breadcrumb-line-height","",pr.lineHeight,"1.6"),jr=Ee.extend("--ft-typography-breadcrumb-text-transform","",pr.textTransform,"inherit"),Br=Ee.extend("--ft-typography-overline-font-family","",ur),Kr=Ee.extend("--ft-typography-overline-font-size","",pr.fontSize,"10px"),Zr=Ee.extend("--ft-typography-overline-font-weight","",pr.fontWeight,"normal"),Hr=Ee.extend("--ft-typography-overline-letter-spacing","",pr.letterSpacing,"1.5px"),Gr=Ee.extend("--ft-typography-overline-line-height","",pr.lineHeight,"1.6"),Vr=Ee.extend("--ft-typography-overline-text-transform","",pr.textTransform,"uppercase"),qr={fontFamily:Ee.extend("--ft-typography-button-font-family","",ur),fontSize:Ee.extend("--ft-typography-button-font-size","",pr.fontSize,"14px"),fontWeight:Ee.extend("--ft-typography-button-font-weight","",pr.fontWeight,"600"),letterSpacing:Ee.extend("--ft-typography-button-letter-spacing","",pr.letterSpacing,"1.246px"),lineHeight:Ee.extend("--ft-typography-button-line-height","",pr.lineHeight,"1.15"),textTransform:Ee.extend("--ft-typography-button-text-transform","",pr.textTransform,"uppercase")},Yr=Et`
235
239
  .ft-typography--title {
236
- font-family: ${pr.fontFamily};
237
- font-size: ${pr.fontSize};
238
- font-weight: ${pr.fontWeight};
239
- letter-spacing: ${pr.letterSpacing};
240
- line-height: ${pr.lineHeight};
241
- text-transform: ${pr.textTransform};
242
- }
243
- `,Yr=Et`
244
- .ft-typography--title-dense {
245
240
  font-family: ${yr.fontFamily};
246
241
  font-size: ${yr.fontSize};
247
242
  font-weight: ${yr.fontWeight};
@@ -250,83 +245,92 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
250
245
  text-transform: ${yr.textTransform};
251
246
  }
252
247
  `,Xr=Et`
253
- .ft-typography--subtitle1 {
254
- font-family: ${gr};
255
- font-size: ${br};
256
- font-weight: ${vr};
257
- letter-spacing: ${mr};
258
- line-height: ${xr};
259
- text-transform: ${wr};
248
+ .ft-typography--title-dense {
249
+ font-family: ${gr.fontFamily};
250
+ font-size: ${gr.fontSize};
251
+ font-weight: ${gr.fontWeight};
252
+ letter-spacing: ${gr.letterSpacing};
253
+ line-height: ${gr.lineHeight};
254
+ text-transform: ${gr.textTransform};
260
255
  }
261
256
  `,Jr=Et`
262
- .ft-typography--subtitle2 {
263
- font-family: ${Or};
264
- font-size: ${Sr};
265
- font-weight: ${$r};
266
- letter-spacing: ${Nr};
267
- line-height: ${Cr};
268
- text-transform: ${Er};
257
+ .ft-typography--subtitle1 {
258
+ font-family: ${br};
259
+ font-size: ${vr};
260
+ font-weight: ${mr};
261
+ letter-spacing: ${xr};
262
+ line-height: ${wr};
263
+ text-transform: ${Or};
269
264
  }
270
-
271
265
  `,Qr=Et`
272
- .ft-typography--body1 {
273
- font-family: ${kr.fontFamily};
274
- font-size: ${kr.fontSize};
275
- font-weight: ${kr.fontWeight};
276
- letter-spacing: ${kr.letterSpacing};
277
- line-height: ${kr.lineHeight};
278
- text-transform: ${kr.textTransform};
266
+ .ft-typography--subtitle2 {
267
+ font-family: ${Sr};
268
+ font-size: ${$r};
269
+ font-weight: ${Nr};
270
+ letter-spacing: ${Cr};
271
+ line-height: ${Er};
272
+ text-transform: ${kr};
279
273
  }
274
+
280
275
  `,tn=Et`
281
- .ft-typography--body2 {
282
- font-family: ${Rr};
283
- font-size: ${Ir};
284
- font-weight: ${Ur};
285
- letter-spacing: ${Lr};
286
- line-height: ${Ar};
287
- text-transform: ${_r};
276
+ .ft-typography--body1 {
277
+ font-family: ${Rr.fontFamily};
278
+ font-size: ${Rr.fontSize};
279
+ font-weight: ${Rr.fontWeight};
280
+ letter-spacing: ${Rr.letterSpacing};
281
+ line-height: ${Rr.lineHeight};
282
+ text-transform: ${Rr.textTransform};
288
283
  }
289
284
  `,en=Et`
290
- .ft-typography--caption {
291
- font-family: ${Tr.fontFamily};
292
- font-size: ${Tr.fontSize};
293
- font-weight: ${Tr.fontWeight};
294
- letter-spacing: ${Tr.letterSpacing};
295
- line-height: ${Tr.lineHeight};
296
- text-transform: ${Tr.textTransform};
285
+ .ft-typography--body2 {
286
+ font-family: ${Ir};
287
+ font-size: ${Ur};
288
+ font-weight: ${Lr};
289
+ letter-spacing: ${Ar};
290
+ line-height: ${_r};
291
+ text-transform: ${Tr};
297
292
  }
298
293
  `,on=Et`
299
- .ft-typography--breadcrumb {
300
- font-family: ${Wr};
301
- font-size: ${Dr};
302
- font-weight: ${Fr};
303
- letter-spacing: ${Pr};
304
- line-height: ${Mr};
305
- text-transform: ${zr};
294
+ .ft-typography--caption {
295
+ font-family: ${Wr.fontFamily};
296
+ font-size: ${Wr.fontSize};
297
+ font-weight: ${Wr.fontWeight};
298
+ letter-spacing: ${Wr.letterSpacing};
299
+ line-height: ${Wr.lineHeight};
300
+ text-transform: ${Wr.textTransform};
306
301
  }
307
302
  `,rn=Et`
308
- .ft-typography--overline {
309
- font-family: ${jr};
310
- font-size: ${Br};
311
- font-weight: ${Kr};
312
- letter-spacing: ${Zr};
313
- line-height: ${Hr};
314
- text-transform: ${Gr};
303
+ .ft-typography--breadcrumb {
304
+ font-family: ${Dr};
305
+ font-size: ${Fr};
306
+ font-weight: ${Pr};
307
+ letter-spacing: ${Mr};
308
+ line-height: ${zr};
309
+ text-transform: ${jr};
315
310
  }
316
311
  `,nn=Et`
317
- .ft-typography--button {
318
- font-family: ${Vr.fontFamily};
319
- font-size: ${Vr.fontSize};
320
- font-weight: ${Vr.fontWeight};
321
- letter-spacing: ${Vr.letterSpacing};
322
- line-height: ${Vr.lineHeight};
323
- text-transform: ${Vr.textTransform};
312
+ .ft-typography--overline {
313
+ font-family: ${Br};
314
+ font-size: ${Kr};
315
+ font-weight: ${Zr};
316
+ letter-spacing: ${Hr};
317
+ line-height: ${Gr};
318
+ text-transform: ${Vr};
324
319
  }
325
320
  `,an=Et`
321
+ .ft-typography--button {
322
+ font-family: ${qr.fontFamily};
323
+ font-size: ${qr.fontSize};
324
+ font-weight: ${qr.fontWeight};
325
+ letter-spacing: ${qr.letterSpacing};
326
+ line-height: ${qr.lineHeight};
327
+ text-transform: ${qr.textTransform};
328
+ }
329
+ `,sn=Et`
326
330
  .ft-typography {
327
331
  vertical-align: inherit;
328
332
  }
329
- `,sn=[Object.keys(Ie).map((t=>function(t){const e=Ie[t];return Et`
333
+ `,ln=[Object.keys(Ie).map((t=>function(t){const e=Ie[t];return Et`
330
334
  .ft-typography--${Ct(t)} {
331
335
  font-family: ${e.fontFamily};
332
336
  font-size: ${e.fontSize};
@@ -335,7 +339,7 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
335
339
  line-height: ${e.lineHeight};
336
340
  text-transform: ${e.textCase};
337
341
  }
338
- `}(t)))],ln={color:Ee.extend("--ft-loader-color","",Ae.colorPrimary),size:Ee.create("--ft-loader-size","","SIZE","80px")},cn=Et`
342
+ `}(t)))],cn={color:Ee.extend("--ft-loader-color","",Ae.colorPrimary),size:Ee.create("--ft-loader-size","","SIZE","80px")},hn=Et`
339
343
  :host {
340
344
  line-height: 0;
341
345
  }
@@ -344,8 +348,8 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
344
348
  display: inline-block;
345
349
  position: relative;
346
350
 
347
- width: ${ln.size};
348
- height: ${ln.size};
351
+ width: ${cn.size};
352
+ height: ${cn.size};
349
353
  }
350
354
 
351
355
  .ft-loader div {
@@ -354,7 +358,7 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
354
358
  width: 25%;
355
359
  height: 25%;
356
360
  border-radius: 50%;
357
- background: ${ln.color};
361
+ background: ${cn.color};
358
362
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
359
363
  }
360
364
 
@@ -401,10 +405,10 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
401
405
  transform: translate(0, 0);
402
406
  }
403
407
  100% {
404
- transform: translate(calc(0.35 * ${ln.size}), 0);
408
+ transform: translate(calc(0.35 * ${cn.size}), 0);
405
409
  }
406
410
  }
407
- `,hn={size:Ee.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ee.extend("--ft-icon-fluid-topics-font-family","",Ee.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ee.extend("--ft-icon-file-format-font-family","",Ee.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ee.extend("--ft-icon-material-font-family","",Ee.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ee.create("--ft-icon-vertical-align","","UNKNOWN","unset")},fn=Et`
411
+ `,fn={size:Ee.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ee.extend("--ft-icon-fluid-topics-font-family","",Ee.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ee.extend("--ft-icon-file-format-font-family","",Ee.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ee.extend("--ft-icon-material-font-family","",Ee.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ee.create("--ft-icon-vertical-align","","UNKNOWN","unset")},dn=Et`
408
412
  :host, i.ft-icon {
409
413
  display: inline-flex;
410
414
  align-items: center;
@@ -413,14 +417,14 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
413
417
  }
414
418
 
415
419
  :host {
416
- width: ${hn.size};
417
- height: ${hn.size};
420
+ width: ${fn.size};
421
+ height: ${fn.size};
418
422
  }
419
423
 
420
424
  i.ft-icon {
421
425
  width: 100%;
422
426
  height: 100%;
423
- font-size: ${hn.size};
427
+ font-size: ${fn.size};
424
428
  line-height: 1;
425
429
  font-weight: normal;
426
430
  text-transform: none;
@@ -431,28 +435,28 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
431
435
  text-rendering: auto;
432
436
  -webkit-font-smoothing: antialiased;
433
437
  -moz-osx-font-smoothing: grayscale;
434
- vertical-align: ${hn.verticalAlign};
438
+ vertical-align: ${fn.verticalAlign};
435
439
  }
436
440
 
437
441
  i.ft-icon.ft-icon--fluid-topics {
438
- font-family: ${hn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
442
+ font-family: ${fn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
439
443
 
440
444
  /* Ugly fix because font is broken */
441
- font-size: calc(0.75 * ${hn.size});
442
- line-height: ${hn.size};
445
+ font-size: calc(0.75 * ${fn.size});
446
+ line-height: ${fn.size};
443
447
  position: relative;
444
448
  top: -4%;
445
449
  justify-content: center;
446
450
  }
447
451
 
448
452
  .ft-icon--file-format {
449
- font-family: ${hn.fileFormatFontFamily}, ft-mime, sans-serif;
453
+ font-family: ${fn.fileFormatFontFamily}, ft-mime, sans-serif;
450
454
  }
451
455
 
452
456
  .ft-icon--material {
453
- font-family: ${hn.materialFontFamily}, "Material Icons", sans-serif;
457
+ font-family: ${fn.materialFontFamily}, "Material Icons", sans-serif;
454
458
  }
455
- `,dn=Ee.extend("--ft-button-color","",Ae.colorPrimary),un={backgroundColor:Ee.extend("--ft-button-background-color","",Ae.colorSurface),borderRadius:Ee.extend("--ft-button-border-radius","",Ae.borderRadiusL),color:dn,fontSize:Ee.extend("--ft-button-font-size","",Vr.fontSize),iconSize:Ee.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Ee.extend("--ft-button-ripple-color","",dn),verticalPadding:Ee.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Ee.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Ee.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Ee.external(Ae.colorOpacityDisabled,"Design system")},pn=Ee.extend("--ft-button-primary-color","",Ee.extend("--ft-button-color","",Ae.colorOnPrimary)),yn={backgroundColor:Ee.extend("--ft-button-primary-background-color","",Ee.extend("--ft-button-background-color","",Ae.colorPrimary)),color:pn,rippleColor:Ee.extend("--ft-button-primary-ripple-color","",pn)},gn=Ee.extend("--ft-button-dense-border-radius","",Ee.extend("--ft-button-border-radius","",Ae.borderRadiusM)),bn=Ee.create("--ft-button-dense-vertical-padding","","SIZE","2px"),vn=Ee.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),mn=Ee.create("--ft-button-dense-icon-padding","","SIZE","4px"),xn=[Et`
459
+ `,un=Ee.extend("--ft-button-color","",Ae.colorPrimary),pn={backgroundColor:Ee.extend("--ft-button-background-color","",Ae.colorSurface),borderRadius:Ee.extend("--ft-button-border-radius","",Ae.borderRadiusL),color:un,fontSize:Ee.extend("--ft-button-font-size","",qr.fontSize),iconSize:Ee.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Ee.extend("--ft-button-ripple-color","",un),verticalPadding:Ee.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Ee.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Ee.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Ee.external(Ae.colorOpacityDisabled,"Design system")},yn=Ee.extend("--ft-button-primary-color","",Ee.extend("--ft-button-color","",Ae.colorOnPrimary)),gn={backgroundColor:Ee.extend("--ft-button-primary-background-color","",Ee.extend("--ft-button-background-color","",Ae.colorPrimary)),color:yn,rippleColor:Ee.extend("--ft-button-primary-ripple-color","",yn)},bn=Ee.extend("--ft-button-dense-border-radius","",Ee.extend("--ft-button-border-radius","",Ae.borderRadiusM)),vn=Ee.create("--ft-button-dense-vertical-padding","","SIZE","2px"),mn=Ee.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),xn=Ee.create("--ft-button-dense-icon-padding","","SIZE","4px"),wn=[Et`
456
460
  :host {
457
461
  display: inline-block;
458
462
  max-width: 100%;
@@ -463,7 +467,7 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
463
467
  box-shadow: 0px 0px 0px transparent;
464
468
  border: 0px solid transparent;
465
469
  text-shadow: 0px 0px 0px transparent;
466
- font-size: ${un.fontSize};
470
+ font-size: ${pn.fontSize};
467
471
  }
468
472
 
469
473
  button:hover {
@@ -492,31 +496,31 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
492
496
  border: none;
493
497
  pointer-events: auto;
494
498
 
495
- --ft-button-internal-line-height: max(calc(${un.fontSize} + 2px), ${un.iconSize});
496
- --ft-button-internal-color: ${un.color};
497
- ${ke(hn.size,un.iconSize)};
498
- ${ke(or.color,un.rippleColor)};
499
+ --ft-button-internal-line-height: max(calc(${pn.fontSize} + 2px), ${pn.iconSize});
500
+ --ft-button-internal-color: ${pn.color};
501
+ ${ke(fn.size,pn.iconSize)};
502
+ ${ke(rr.color,pn.rippleColor)};
499
503
 
500
- border-radius: ${un.borderRadius};
501
- padding: ${un.verticalPadding} ${un.horizontalPadding};
502
- background-color: ${un.backgroundColor};
504
+ border-radius: ${pn.borderRadius};
505
+ padding: ${pn.verticalPadding} ${pn.horizontalPadding};
506
+ background-color: ${pn.backgroundColor};
503
507
  color: var(--ft-button-internal-color);
504
508
  -webkit-mask-image: radial-gradient(white, black);
505
509
  }
506
510
 
507
511
  .ft-button.ft-button--outlined {
508
512
  border: 1px solid var(--ft-button-internal-color);
509
- padding: calc(${un.verticalPadding} - 1px) calc(${un.horizontalPadding} - 1px);
513
+ padding: calc(${pn.verticalPadding} - 1px) calc(${pn.horizontalPadding} - 1px);
510
514
  }
511
515
 
512
516
  .ft-button.ft-button--dense {
513
- padding: ${bn} ${vn};
514
- border-radius: ${gn};
515
- gap: ${mn};
517
+ padding: ${vn} ${mn};
518
+ border-radius: ${bn};
519
+ gap: ${xn};
516
520
  }
517
521
 
518
522
  .ft-button.ft-button--dense.ft-button--outlined {
519
- padding: calc(${bn} - 1px) calc(${vn} - 1px);
523
+ padding: calc(${vn} - 1px) calc(${mn} - 1px);
520
524
  }
521
525
 
522
526
  .ft-button:not([disabled]):hover {
@@ -524,22 +528,22 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
524
528
  }
525
529
 
526
530
  .ft-button--round {
527
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${un.verticalPadding});
531
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${pn.verticalPadding});
528
532
  }
529
533
 
530
534
  .ft-button--round.ft-button--dense {
531
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${bn});
535
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${vn});
532
536
  }
533
537
 
534
538
  .ft-button[disabled] {
535
539
  filter: grayscale(1);
536
- opacity: ${un.opacityDisabled};
540
+ opacity: ${pn.opacityDisabled};
537
541
  }
538
542
 
539
543
  .ft-button.ft-button--primary {
540
- background-color: ${yn.backgroundColor};
541
- --ft-button-internal-color: ${yn.color};
542
- ${ke(or.color,yn.rippleColor)};
544
+ background-color: ${gn.backgroundColor};
545
+ --ft-button-internal-color: ${gn.color};
546
+ ${ke(rr.color,gn.rippleColor)};
543
547
  }
544
548
 
545
549
  .ft-button:focus {
@@ -552,13 +556,13 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
552
556
  white-space: nowrap;
553
557
  text-overflow: ellipsis;
554
558
  display: block;
555
- margin: 0 ${un.iconPadding};
556
- ${ke(Vr.fontSize,"1em")};
557
- ${ke(Vr.lineHeight,"var(--ft-button-internal-line-height)")};
559
+ margin: 0 ${pn.iconPadding};
560
+ ${ke(qr.fontSize,"1em")};
561
+ ${ke(qr.lineHeight,"var(--ft-button-internal-line-height)")};
558
562
  }
559
563
 
560
564
  .ft-button--dense .ft-button--label {
561
- margin: 0 ${mn};
565
+ margin: 0 ${xn};
562
566
  }
563
567
 
564
568
  .ft-button--label[hidden] {
@@ -571,13 +575,13 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
571
575
  }
572
576
 
573
577
  .ft-button--label[hidden] + ft-icon {
574
- margin: 0 calc(${un.horizontalPadding} * -1);
575
- padding: 0 ${un.verticalPadding};
578
+ margin: 0 calc(${pn.horizontalPadding} * -1);
579
+ padding: 0 ${pn.verticalPadding};
576
580
  }
577
581
 
578
582
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
579
- margin: 0 calc(${vn} * -1);
580
- padding: 0 ${bn};
583
+ margin: 0 calc(${mn} * -1);
584
+ padding: 0 ${vn};
581
585
  }
582
586
 
583
587
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -586,10 +590,10 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
586
590
  }
587
591
 
588
592
  ft-loader {
589
- ${ke(ln.size,un.iconSize)};
590
- ${ke(ln.color,"var(--ft-button-internal-color)")};
593
+ ${ke(cn.size,pn.iconSize)};
594
+ ${ke(cn.color,"var(--ft-button-internal-color)")};
591
595
  }
592
- `,Ke],wn={textColor:Ee.extend("--ft-switch-text-color","",Ae.colorOnSurfaceHigh),backgroundColor:Ee.extend("--ft-switch-background-color","",Ae.colorSurface),selectedTextColor:Ee.extend("--ft-switch-selected-text-color","",Ae.colorPrimary),selectedBackgroundColor:Ee.extend("--ft-switch-selected-background-color","",Ae.colorPrimary),borderColor:Ee.extend("--ft-switch-border-color","",Ae.colorOutline),borderRadius:Ee.extend("--ft-switch-border-radius","",Ae.borderRadiusL),fontSize:Ee.extend("--ft-switch-font-size","",Vr.fontSize),iconSize:Ee.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:Ee.extend("--ft-switch-text-color","",Ae.colorOnSurfaceMedium),rippleColor:Ee.extend("--ft-switch-ripple-color","",Ae.colorPrimary),outlineColor:Ee.extend("--ft-switch-outline-color","",Ae.colorPrimary)},On={feedbackInputMinWidth:Ee.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:Ee.external(Ae.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:Ee.extend("--ft-reader-feedback-send-feedback-color","",Ae.colorOnPrimary),sendFeedbackBackgroundColor:Ee.extend("--ft-reader-feedback-send-feedback-background-color","",Ae.colorPrimary),filledRatingColor:Ee.extend("--ft-reader-feedback-filled-rating-color","",Ae.colorPrimary),emptyRatingColor:Ee.extend("--ft-reader-feedback-empty-rating-color","",Ae.colorOnSurfaceMedium),mainTitleFontSize:Ee.external(pr.fontSize,"Typography"),sectionTitleFontSize:Ee.external(yr.fontSize,"Typography")},Sn=Et`
596
+ `,Ze],On={textColor:Ee.extend("--ft-switch-text-color","",Ae.colorOnSurfaceHigh),backgroundColor:Ee.extend("--ft-switch-background-color","",Ae.colorSurface),selectedTextColor:Ee.extend("--ft-switch-selected-text-color","",Ae.colorPrimary),selectedBackgroundColor:Ee.extend("--ft-switch-selected-background-color","",Ae.colorPrimary),borderColor:Ee.extend("--ft-switch-border-color","",Ae.colorOutline),borderRadius:Ee.extend("--ft-switch-border-radius","",Ae.borderRadiusL),fontSize:Ee.extend("--ft-switch-font-size","",qr.fontSize),iconSize:Ee.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:Ee.extend("--ft-switch-text-color","",Ae.colorOnSurfaceMedium),rippleColor:Ee.extend("--ft-switch-ripple-color","",Ae.colorPrimary),outlineColor:Ee.extend("--ft-switch-outline-color","",Ae.colorPrimary)},Sn={feedbackInputMinWidth:Ee.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:Ee.external(Ae.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:Ee.extend("--ft-reader-feedback-send-feedback-color","",Ae.colorOnPrimary),sendFeedbackBackgroundColor:Ee.extend("--ft-reader-feedback-send-feedback-background-color","",Ae.colorPrimary),filledRatingColor:Ee.extend("--ft-reader-feedback-filled-rating-color","",Ae.colorPrimary),emptyRatingColor:Ee.extend("--ft-reader-feedback-empty-rating-color","",Ae.colorOnSurfaceMedium),mainTitleFontSize:Ee.external(yr.fontSize,"Typography"),sectionTitleFontSize:Ee.external(gr.fontSize,"Typography")},$n=Et`
593
597
  .ft-reader-feedback {
594
598
  box-sizing: border-box;
595
599
  display: flex;
@@ -635,14 +639,14 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
635
639
  }
636
640
 
637
641
  .ft-reader-feedback--rating {
638
- ${ke(un.color,On.emptyRatingColor)};
639
- ${ke(un.rippleColor,On.filledRatingColor)};
640
- ${ke(wn.textColor,On.emptyRatingColor)};
641
- ${ke(wn.selectedTextColor,On.filledRatingColor)};
642
+ ${ke(pn.color,Sn.emptyRatingColor)};
643
+ ${ke(pn.rippleColor,Sn.filledRatingColor)};
644
+ ${ke(On.textColor,Sn.emptyRatingColor)};
645
+ ${ke(On.selectedTextColor,Sn.filledRatingColor)};
642
646
  }
643
647
 
644
648
  .ft-reader-feedback--rating .ft-reader-feedback--active {
645
- ${ke(un.color,On.filledRatingColor)};
649
+ ${ke(pn.color,Sn.filledRatingColor)};
646
650
  }
647
651
 
648
652
  .ft-reader-feedback--feedback {
@@ -650,47 +654,47 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
650
654
  }
651
655
 
652
656
  .ft-reader-feedback--rating-date {
653
- color: ${On.ratedDateColor};
657
+ color: ${Sn.ratedDateColor};
654
658
  }
655
659
 
656
660
  .ft-reader-feedback--feedback ft-text-area {
657
- min-width: ${On.feedbackInputMinWidth};
661
+ min-width: ${Sn.feedbackInputMinWidth};
658
662
  }
659
663
 
660
664
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
661
665
  align-self: flex-end;
662
- ${ke(un.color,On.sendFeedbackColor)};
663
- ${ke(un.backgroundColor,On.sendFeedbackBackgroundColor)};
666
+ ${ke(pn.color,Sn.sendFeedbackColor)};
667
+ ${ke(pn.backgroundColor,Sn.sendFeedbackBackgroundColor)};
664
668
  }
665
- `;var $n,Nn,Cn,En,kn,Rn,In,Un,Ln,An,_n,Tn,Wn,Dn;!function(t){!function(e){var i={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function f(t){var e=new FileReader,i=h(e);return e.readAsArrayBuffer(t),i}function d(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,i=h(e);return e.readAsText(t),i}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),o=0;o<e.length;o++)i[o]=String.fromCharCode(e[o]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,i){t.push([i,e])})),s(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var i,o,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(i=e.method||this.method||"GET",o=i.toUpperCase(),p.indexOf(o)>-1?o:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),o=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.prototype),u.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];b.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,o){return new Promise((function(r,n){var a=new y(t,o);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,i={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var i=t.split(":"),o=i.shift().trim();if(o){var r=i.join(":").trim();e.append(o,r)}})),e)};i.url="responseURL"in s?s.responseURL:i.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new b(o,i))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=y,t.Response=b),e.Headers=l,e.Request=y,e.Response=b,e.fetch=m,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}($n||($n={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Nn||(Nn={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Cn||(Cn={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(En||(En={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(kn||(kn={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Rn||(Rn={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(In||(In={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Un||(Un={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ln||(Ln={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(An||(An={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(_n||(_n={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Tn||(Tn={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Wn||(Wn={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Dn||(Dn={}));const Fn={[Dn.PERSONAL_BOOK_SHARE_USER]:[Dn.PERSONAL_BOOK_USER],[Dn.HTML_EXPORT_USER]:[Dn.PERSONAL_BOOK_USER],[Dn.PDF_EXPORT_USER]:[Dn.PERSONAL_BOOK_USER],[Dn.KHUB_ADMIN]:[Dn.CONTENT_PUBLISHER],[Dn.ADMIN]:[Dn.KHUB_ADMIN,Dn.USERS_ADMIN,Dn.PORTAL_ADMIN],[Dn.DEVELOPER]:[Dn.BETA_USER,Dn.DEBUG_USER]};function Pn(t,e){return t===e||(Fn[t]??[]).some((t=>Pn(t,e)))}function Mn(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>Pn(t,e)))}
669
+ `;var Nn,Cn,En,kn,Rn,In,Un,Ln,An,_n,Tn,Wn,Dn,Fn;!function(t){!function(e){var i={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function f(t){var e=new FileReader,i=h(e);return e.readAsArrayBuffer(t),i}function d(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,i=h(e);return e.readAsText(t),i}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),o=0;o<e.length;o++)i[o]=String.fromCharCode(e[o]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,i){t.push([i,e])})),s(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var i,o,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(i=e.method||this.method||"GET",o=i.toUpperCase(),p.indexOf(o)>-1?o:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),o=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.prototype),u.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];b.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,o){return new Promise((function(r,n){var a=new y(t,o);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,i={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var i=t.split(":"),o=i.shift().trim();if(o){var r=i.join(":").trim();e.append(o,r)}})),e)};i.url="responseURL"in s?s.responseURL:i.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new b(o,i))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=y,t.Response=b),e.Headers=l,e.Request=y,e.Response=b,e.fetch=m,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Nn||(Nn={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Cn||(Cn={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(En||(En={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(kn||(kn={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Rn||(Rn={})),function(t){t.ASC="ASC",t.DESC="DESC"}(In||(In={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Un||(Un={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Ln||(Ln={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(An||(An={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(_n||(_n={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Tn||(Tn={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Wn||(Wn={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Dn||(Dn={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Fn||(Fn={}));const Pn={[Fn.PERSONAL_BOOK_SHARE_USER]:[Fn.PERSONAL_BOOK_USER],[Fn.HTML_EXPORT_USER]:[Fn.PERSONAL_BOOK_USER],[Fn.PDF_EXPORT_USER]:[Fn.PERSONAL_BOOK_USER],[Fn.KHUB_ADMIN]:[Fn.CONTENT_PUBLISHER],[Fn.ADMIN]:[Fn.KHUB_ADMIN,Fn.USERS_ADMIN,Fn.PORTAL_ADMIN],[Fn.DEVELOPER]:[Fn.BETA_USER,Fn.DEBUG_USER]};function Mn(t,e){return t===e||(Pn[t]??[]).some((t=>Mn(t,e)))}function zn(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>Mn(t,e)))}
666
670
  /**
667
671
  * @license
668
672
  * Copyright 2020 Google LLC
669
673
  * SPDX-License-Identifier: BSD-3-Clause
670
- */const zn=Symbol.for(""),jn=t=>{if(t?.r===zn)return t?._$litStatic$},Bn=t=>({_$litStatic$:t,r:zn}),Kn=new Map,Zn=(t=>(e,...i)=>{const o=i.length;let r,n;const a=[],s=[];let l,c=0,h=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(n=i[c],r=jn(n));)l+=r+e[++c],h=!0;c!==o&&s.push(n),a.push(l),c++}if(c===o&&a.push(e[o]),h){const t=a.join("$$lit$$");void 0===(e=Kn.get(t))&&(a.raw=a,Kn.set(t,e=a)),i=s}return t(e,...i)})(ot);var Hn;!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"}(Hn||(Hn={}));var Gn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Vn extends Be{constructor(){super(...arguments),this.variant=Hn.body1}render(){return this.element?Zn`
671
- <${Bn(this.element)}
674
+ */const jn=Symbol.for(""),Bn=t=>{if(t?.r===jn)return t?._$litStatic$},Kn=t=>({_$litStatic$:t,r:jn}),Zn=new Map,Hn=(t=>(e,...i)=>{const o=i.length;let r,n;const a=[],s=[];let l,c=0,h=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(n=i[c],r=Bn(n));)l+=r+e[++c],h=!0;c!==o&&s.push(n),a.push(l),c++}if(c===o&&a.push(e[o]),h){const t=a.join("$$lit$$");void 0===(e=Zn.get(t))&&(a.raw=a,Zn.set(t,e=a)),i=s}return t(e,...i)})(ot);var Gn;!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"}(Gn||(Gn={}));var Vn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class qn extends Be{constructor(){super(...arguments),this.variant=Gn.body1}render(){return this.element?Hn`
675
+ <${Kn(this.element)}
672
676
  class="ft-typography ft-typography--${this.variant}">
673
677
  <slot></slot>
674
- </${Bn(this.element)}>
675
- `:Zn`
678
+ </${Kn(this.element)}>
679
+ `:Hn`
676
680
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
677
- `}}Vn.styles=[qr,Yr,Xr,Jr,Qr,tn,en,on,rn,nn,an,...sn],Gn([k()],Vn.prototype,"element",void 0),Gn([k()],Vn.prototype,"variant",void 0),T("ft-typography")(Vn);
681
+ `}}qn.styles=[Yr,Xr,Jr,Qr,tn,en,on,rn,nn,an,sn,...ln],Vn([k()],qn.prototype,"element",void 0),Vn([k()],qn.prototype,"variant",void 0),T("ft-typography")(qn);
678
682
  /**
679
683
  * @license
680
684
  * Copyright 2017 Google LLC
681
685
  * SPDX-License-Identifier: BSD-3-Clause
682
686
  */
683
- const qn=1,Yn=2,Xn=t=>(...e)=>({_$litDirective$:t,values:e});class Jn{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)}}
687
+ const Yn=1,Xn=2,Jn=t=>(...e)=>({_$litDirective$:t,values:e});class Qn{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)}}
684
688
  /**
685
689
  * @license
686
690
  * Copyright 2017 Google LLC
687
691
  * SPDX-License-Identifier: BSD-3-Clause
688
- */let Qn=class extends Jn{constructor(t){if(super(t),this.et=nt,t.type!==Yn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===nt||null==t)return this.vt=void 0,this.et=t;if(t===rt)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Qn.directiveName="unsafeHTML",Qn.resultType=1;const ta=Xn(Qn);var ea,ia,oa;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(ea||(ea={})),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;"}(ia||(ia={})),new Map([...["abw"].map((t=>[t,ia.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,ia.AUDIO])),...["avi"].map((t=>[t,ia.AVI])),...["chm","xhs"].map((t=>[t,ia.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,ia.CODE])),...["csv"].map((t=>[t,ia.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ia.DITA])),...["epub"].map((t=>[t,ia.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ia.EXCEL])),...["flac"].map((t=>[t,ia.FLAC])),...["gif"].map((t=>[t,ia.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ia.GZIP])),...["html","htm","xhtml"].map((t=>[t,ia.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,ia.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ia.JPEG])),...["json"].map((t=>[t,ia.JSON])),...["m4a","m4p"].map((t=>[t,ia.M4A])),...["mov","qt"].map((t=>[t,ia.MOV])),...["mp3"].map((t=>[t,ia.MP3])),...["mp4","m4v"].map((t=>[t,ia.MP4])),...["ogg","oga"].map((t=>[t,ia.OGG])),...["pdf","ps"].map((t=>[t,ia.PDF])),...["png"].map((t=>[t,ia.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ia.POWERPOINT])),...["rar"].map((t=>[t,ia.RAR])),...["stp"].map((t=>[t,ia.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ia.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,ia.VIDEO])),...["wav"].map((t=>[t,ia.WAV])),...["wma"].map((t=>[t,ia.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ia.WORD])),...["xml","xsl","rdf"].map((t=>[t,ia.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ia.YAML])),...["zip"].map((t=>[t,ia.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(oa||(oa={}));var ra=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class na extends Be{constructor(){super(...arguments),this.resolvedIcon=fe}render(){const t=this.variant&&Object.values(oa).includes(this.variant)?this.variant:oa.fluid_topics,e=t!==oa.material||!!this.value;return ce`
692
+ */let ta=class extends Qn{constructor(t){if(super(t),this.et=nt,t.type!==Xn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===nt||null==t)return this.vt=void 0,this.et=t;if(t===rt)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};ta.directiveName="unsafeHTML",ta.resultType=1;const ea=Jn(ta);var ia,oa,ra;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(ia||(ia={})),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;"}(oa||(oa={})),new Map([...["abw"].map((t=>[t,oa.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,oa.AUDIO])),...["avi"].map((t=>[t,oa.AVI])),...["chm","xhs"].map((t=>[t,oa.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,oa.CODE])),...["csv"].map((t=>[t,oa.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,oa.DITA])),...["epub"].map((t=>[t,oa.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,oa.EXCEL])),...["flac"].map((t=>[t,oa.FLAC])),...["gif"].map((t=>[t,oa.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,oa.GZIP])),...["html","htm","xhtml"].map((t=>[t,oa.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,oa.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,oa.JPEG])),...["json"].map((t=>[t,oa.JSON])),...["m4a","m4p"].map((t=>[t,oa.M4A])),...["mov","qt"].map((t=>[t,oa.MOV])),...["mp3"].map((t=>[t,oa.MP3])),...["mp4","m4v"].map((t=>[t,oa.MP4])),...["ogg","oga"].map((t=>[t,oa.OGG])),...["pdf","ps"].map((t=>[t,oa.PDF])),...["png"].map((t=>[t,oa.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,oa.POWERPOINT])),...["rar"].map((t=>[t,oa.RAR])),...["stp"].map((t=>[t,oa.STP])),...["txt","rtf","md","mdown"].map((t=>[t,oa.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,oa.VIDEO])),...["wav"].map((t=>[t,oa.WAV])),...["wma"].map((t=>[t,oa.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,oa.WORD])),...["xml","xsl","rdf"].map((t=>[t,oa.XML])),...["yaml","yml","x-yaml"].map((t=>[t,oa.YAML])),...["zip"].map((t=>[t,oa.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ra||(ra={}));var na=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class aa extends Be{constructor(){super(...arguments),this.resolvedIcon=fe}render(){const t=this.variant&&Object.values(ra).includes(this.variant)?this.variant:ra.fluid_topics,e=t!==ra.material||!!this.value;return ce`
689
693
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
690
- ${ta(this.resolvedIcon)}
694
+ ${ea(this.resolvedIcon)}
691
695
  <slot ?hidden=${e}></slot>
692
696
  </i>
693
- `}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 oa.file_format:this.resolvedIcon=null!==(t=ia[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case oa.material:this.resolvedIcon=this.value||fe;break;default:this.resolvedIcon=null!==(e=ea[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}na.elementDefinitions={},na.styles=fn,ra([k()],na.prototype,"variant",void 0),ra([k()],na.prototype,"value",void 0),ra([R()],na.prototype,"resolvedIcon",void 0),ra([U("slot")],na.prototype,"slottedContent",void 0),T("ft-icon")(na);const aa=Ee.create("--ft-tooltip-distance","","SIZE","4px"),sa=Ee.create("--ft-tooltip-color","","COLOR","#FFFFFF"),la=Ee.create("--ft-tooltip-background-color","","COLOR","#666666"),ca=Ee.create("--ft-tooltip-z-index","","NUMBER","100"),ha=Ee.external(Ae.borderRadiusS,"Design system"),fa=Ee.create("--ft-tooltip-max-width","","SIZE","150px"),da=Et`
697
+ `}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 ra.file_format:this.resolvedIcon=null!==(t=oa[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case ra.material:this.resolvedIcon=this.value||fe;break;default:this.resolvedIcon=null!==(e=ia[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}aa.elementDefinitions={},aa.styles=dn,na([k()],aa.prototype,"variant",void 0),na([k()],aa.prototype,"value",void 0),na([R()],aa.prototype,"resolvedIcon",void 0),na([U("slot")],aa.prototype,"slottedContent",void 0),T("ft-icon")(aa);const sa=Ee.create("--ft-tooltip-distance","","SIZE","4px"),la=Ee.create("--ft-tooltip-color","","COLOR","#FFFFFF"),ca=Ee.create("--ft-tooltip-background-color","","COLOR","#666666"),ha=Ee.create("--ft-tooltip-z-index","","NUMBER","100"),fa=Ee.external(Ae.borderRadiusS,"Design system"),da=Ee.create("--ft-tooltip-max-width","","SIZE","150px"),ua=Et`
694
698
  .ft-tooltip--container {
695
699
  display: block;
696
700
  }
@@ -705,21 +709,21 @@ const qn=1,Yn=2,Xn=t=>(...e)=>({_$litDirective$:t,values:e});class Jn{constructo
705
709
  box-sizing: border-box;
706
710
  overflow: hidden;
707
711
  width: max-content;
708
- max-width: ${fa};
712
+ max-width: ${da};
709
713
  text-align: center;
710
- padding: ${aa};
711
- z-index: ${ca};
714
+ padding: ${sa};
715
+ z-index: ${ha};
712
716
  }
713
717
 
714
718
  .ft-tooltip--content {
715
719
  padding: 4px 8px;
716
- border-radius: ${ha};
717
- background-color: ${la};
718
- color: ${sa};
720
+ border-radius: ${fa};
721
+ background-color: ${ca};
722
+ color: ${la};
719
723
  position: relative;
720
724
  word-break: break-word;
721
725
  }
722
- `;var ua=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class pa extends Be{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new r,this.revealDebouncer=new r}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ce`
726
+ `;var pa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ya extends Be{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new r,this.revealDebouncer=new r}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ce`
723
727
  <div part="container"
724
728
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
725
729
  @mouseenter=${this.onHover}
@@ -737,24 +741,24 @@ const qn=1,Yn=2,Xn=t=>(...e)=>({_$litDirective$:t,values:e});class Jn{constructo
737
741
  </div>
738
742
  </div>
739
743
  </div>
740
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(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=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,r=(t.offsetWidth-e)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-i-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,h=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,h))+"px";let f=-l.y,d=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(f,d))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${fa})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}pa.elementDefinitions={"ft-typography":Vn},pa.styles=da,ua([k()],pa.prototype,"text",void 0),ua([k({type:Boolean})],pa.prototype,"manual",void 0),ua([k({type:Boolean})],pa.prototype,"inline",void 0),ua([k({type:Number})],pa.prototype,"delay",void 0),ua([k()],pa.prototype,"position",void 0),ua([L()],pa.prototype,"slotNodes",void 0),ua([U(".ft-tooltip--container")],pa.prototype,"container",void 0),ua([U(".ft-tooltip")],pa.prototype,"tooltip",void 0),ua([U(".ft-tooltip--content")],pa.prototype,"tooltipContent",void 0),ua([R()],pa.prototype,"visible",void 0),T("ft-tooltip")(pa);
744
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(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=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,r=(t.offsetWidth-e)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-i-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,h=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,h))+"px";let f=-l.y,d=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(f,d))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${da})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}ya.elementDefinitions={"ft-typography":qn},ya.styles=ua,pa([k()],ya.prototype,"text",void 0),pa([k({type:Boolean})],ya.prototype,"manual",void 0),pa([k({type:Boolean})],ya.prototype,"inline",void 0),pa([k({type:Number})],ya.prototype,"delay",void 0),pa([k()],ya.prototype,"position",void 0),pa([L()],ya.prototype,"slotNodes",void 0),pa([U(".ft-tooltip--container")],ya.prototype,"container",void 0),pa([U(".ft-tooltip")],ya.prototype,"tooltip",void 0),pa([U(".ft-tooltip--content")],ya.prototype,"tooltipContent",void 0),pa([R()],ya.prototype,"visible",void 0),T("ft-tooltip")(ya);
741
745
  /**
742
746
  * @license
743
747
  * Copyright 2018 Google LLC
744
748
  * SPDX-License-Identifier: BSD-3-Clause
745
749
  */
746
- const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const i=t.element.classList;for(const t of this.it)t in e||(i.remove(t),this.it.delete(t));for(const t in e){const o=!!e[t];o===this.it.has(t)||this.st?.has(t)||(o?(i.add(t),this.it.add(t)):(i.remove(t),this.it.delete(t)))}return rt}});var ga=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ba extends Be{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new r(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new r(10),this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),n=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-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return ce`
750
+ const ga=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Yn||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const i=t.element.classList;for(const t of this.it)t in e||(i.remove(t),this.it.delete(t));for(const t in e){const o=!!e[t];o===this.it.has(t)||this.st?.has(t)||(o?(i.add(t),this.it.add(t)):(i.remove(t),this.it.delete(t)))}return rt}});var ba=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class va extends Be{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new r(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new r(10),this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),n=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-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return ce`
747
751
  <style>
748
752
  .ft-ripple .ft-ripple--effect {
749
753
  left: ${this.originX}px;
750
754
  top: ${this.originY}px;
751
755
  }
752
756
  </style>
753
- <div class="${ya(t)}">
757
+ <div class="${ga(t)}">
754
758
  <div class="ft-ripple--background"></div>
755
759
  <div class="ft-ripple--effect"></div>
756
760
  </div>
757
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const 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)}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"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}ba.elementDefinitions={},ba.styles=hr,ga([k({type:Boolean})],ba.prototype,"primary",void 0),ga([k({type:Boolean})],ba.prototype,"secondary",void 0),ga([k({type:Boolean})],ba.prototype,"unbounded",void 0),ga([k({type:Boolean})],ba.prototype,"activated",void 0),ga([k({type:Boolean})],ba.prototype,"selected",void 0),ga([k({type:Boolean})],ba.prototype,"disabled",void 0),ga([R()],ba.prototype,"hovered",void 0),ga([R()],ba.prototype,"focused",void 0),ga([R()],ba.prototype,"pressed",void 0),ga([R()],ba.prototype,"rippling",void 0),ga([R()],ba.prototype,"originX",void 0),ga([R()],ba.prototype,"originY",void 0),ga([U(".ft-ripple")],ba.prototype,"ripple",void 0),ga([U(".ft-ripple--effect")],ba.prototype,"rippleEffect",void 0),T("ft-ripple")(ba);const va={borderRadiusLeft:Ee.extend("--ft-switch-option-border-radius-left","",Ae.borderRadiusL),borderRadiusRight:Ee.extend("--ft-switch-option-border-radius-right","",Ae.borderRadiusL),borderWidthLeft:Ee.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Ee.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Ee.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},ma=Et`
761
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const 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)}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"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}va.elementDefinitions={},va.styles=fr,ba([k({type:Boolean})],va.prototype,"primary",void 0),ba([k({type:Boolean})],va.prototype,"secondary",void 0),ba([k({type:Boolean})],va.prototype,"unbounded",void 0),ba([k({type:Boolean})],va.prototype,"activated",void 0),ba([k({type:Boolean})],va.prototype,"selected",void 0),ba([k({type:Boolean})],va.prototype,"disabled",void 0),ba([R()],va.prototype,"hovered",void 0),ba([R()],va.prototype,"focused",void 0),ba([R()],va.prototype,"pressed",void 0),ba([R()],va.prototype,"rippling",void 0),ba([R()],va.prototype,"originX",void 0),ba([R()],va.prototype,"originY",void 0),ba([U(".ft-ripple")],va.prototype,"ripple",void 0),ba([U(".ft-ripple--effect")],va.prototype,"rippleEffect",void 0),T("ft-ripple")(va);const ma={borderRadiusLeft:Ee.extend("--ft-switch-option-border-radius-left","",Ae.borderRadiusL),borderRadiusRight:Ee.extend("--ft-switch-option-border-radius-right","",Ae.borderRadiusL),borderWidthLeft:Ee.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Ee.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Ee.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},xa=Et`
758
762
  .ft-switch-option {
759
763
  position: relative;
760
764
  display: inline-block;
@@ -768,20 +772,20 @@ const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t
768
772
  }
769
773
 
770
774
  .ft-switch-option--content {
771
- --ft-switch-option-internal-line-height: calc(${wn.fontSize} + 2px);
772
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${wn.iconSize});
775
+ --ft-switch-option-internal-line-height: calc(${On.fontSize} + 2px);
776
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${On.iconSize});
773
777
 
774
778
  border-style: solid;
775
- border-color: ${wn.borderColor};
776
- border-width: ${va.borderWidthVertical} ${va.borderWidthRight} ${va.borderWidthVertical} ${va.borderWidthLeft};
777
- border-radius: ${va.borderRadiusLeft} ${va.borderRadiusRight} ${va.borderRadiusRight} ${va.borderRadiusLeft};
779
+ border-color: ${On.borderColor};
780
+ border-width: ${ma.borderWidthVertical} ${ma.borderWidthRight} ${ma.borderWidthVertical} ${ma.borderWidthLeft};
781
+ border-radius: ${ma.borderRadiusLeft} ${ma.borderRadiusRight} ${ma.borderRadiusRight} ${ma.borderRadiusLeft};
778
782
  display: flex;
779
783
  align-items: center;
780
784
  justify-content: center;
781
785
  overflow: hidden;
782
- ${ke(hn.size,wn.iconSize)};
786
+ ${ke(fn.size,On.iconSize)};
783
787
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
784
- background-color: ${wn.backgroundColor};
788
+ background-color: ${On.backgroundColor};
785
789
  -webkit-mask-image: radial-gradient(white, black);
786
790
  }
787
791
 
@@ -790,8 +794,8 @@ const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t
790
794
  }
791
795
 
792
796
  .ft-switch-option--selected .ft-switch-option--content:before {
793
- background-color: ${wn.selectedBackgroundColor};
794
- border-radius: ${va.borderRadiusLeft} ${va.borderRadiusRight} ${va.borderRadiusRight} ${va.borderRadiusLeft};
797
+ background-color: ${On.selectedBackgroundColor};
798
+ border-radius: ${ma.borderRadiusLeft} ${ma.borderRadiusRight} ${ma.borderRadiusRight} ${ma.borderRadiusLeft};
795
799
  position: absolute;
796
800
  inset: 0;
797
801
  content: "";
@@ -800,18 +804,18 @@ const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t
800
804
  }
801
805
 
802
806
  .ft-switch-option--label {
803
- color: ${wn.textColor};
807
+ color: ${On.textColor};
804
808
  overflow: hidden;
805
809
  white-space: nowrap;
806
810
  text-overflow: ellipsis;
807
811
  display: block;
808
812
  margin: 0 8px;
809
- ${ke(Vr.fontSize,wn.fontSize)};
810
- ${ke(Vr.lineHeight,"var(--ft-switch-option-internal-content-height)")}
813
+ ${ke(qr.fontSize,On.fontSize)};
814
+ ${ke(qr.lineHeight,"var(--ft-switch-option-internal-content-height)")}
811
815
  }
812
816
 
813
817
  .ft-switch-option--selected .ft-switch-option--label {
814
- color: ${wn.selectedTextColor};
818
+ color: ${On.selectedTextColor};
815
819
  }
816
820
 
817
821
  .ft-switch-option--label[hidden] {
@@ -819,7 +823,7 @@ const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t
819
823
  }
820
824
 
821
825
  .ft-switch-option--ripple {
822
- ${ke(or.color,wn.rippleColor)};
826
+ ${ke(rr.color,On.rippleColor)};
823
827
  }
824
828
 
825
829
  ft-icon, ft-ripple, ft-typography {
@@ -832,20 +836,20 @@ const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t
832
836
 
833
837
  ft-icon {
834
838
  flex-shrink: 0;
835
- color: ${wn.iconColor};
839
+ color: ${On.iconColor};
836
840
  }
837
841
 
838
842
  .ft-switch-option--selected ft-icon {
839
- color: ${wn.selectedTextColor};
843
+ color: ${On.selectedTextColor};
840
844
  }
841
- `;var xa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class wa extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class Oa extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class Sa extends Be{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new Oa(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(ce`
842
- <label part="label" for="input" class=${ya(t)}
845
+ `;var wa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Oa extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class Sa extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class $a extends Be{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new Sa(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(ce`
846
+ <label part="label" for="input" class=${ga(t)}
843
847
  @click=${this.onChange}>
844
848
  <div class="ft-switch-option--content">
845
849
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
846
850
  <ft-typography part="text"
847
851
  variant="button"
848
- class="ft-switch-option--label ${Yo?"ft-safari-ellipsis-fix":""}"
852
+ class="ft-switch-option--label ${Xo?"ft-safari-ellipsis-fix":""}"
849
853
  ?hidden=${!this.hasTextContent()}>
850
854
  <slot @slotchange=${this.onSlotchange}></slot>
851
855
  </ft-typography>
@@ -860,23 +864,23 @@ const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t
860
864
  position="${this.tooltipPosition}">
861
865
  ${t}
862
866
  </ft-tooltip>
863
- `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new wa(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?ce`
867
+ `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new Oa(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?ce`
864
868
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
865
- `:fe}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Sa.elementDefinitions={"ft-ripple":ba,"ft-typography":Vn,"ft-tooltip":pa,"ft-icon":na},Sa.styles=[Ze,ma],xa([k()],Sa.prototype,"value",void 0),xa([k()],Sa.prototype,"icon",void 0),xa([k()],Sa.prototype,"iconVariant",void 0),xa([k()],Sa.prototype,"label",void 0),xa([k()],Sa.prototype,"tooltipPosition",void 0),xa([k({type:Boolean,reflect:!0})],Sa.prototype,"selected",void 0),xa([k({type:Boolean})],Sa.prototype,"trailingIcon",void 0),xa([k({type:Boolean})],Sa.prototype,"unselectable",void 0),xa([U(".ft-switch-option--content slot")],Sa.prototype,"slottedContent",void 0),xa([U(".ft-switch-option--input")],Sa.prototype,"input",void 0);var $a=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Na extends CustomEvent{constructor(t){super("change",{detail:t})}}class Ca extends Be{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return ce`
866
- <div @keydown=${this.onKeyDown} tabindex="0" class="${ya(t)}">
869
+ `:fe}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}$a.elementDefinitions={"ft-ripple":va,"ft-typography":qn,"ft-tooltip":ya,"ft-icon":aa},$a.styles=[He,xa],wa([k()],$a.prototype,"value",void 0),wa([k()],$a.prototype,"icon",void 0),wa([k()],$a.prototype,"iconVariant",void 0),wa([k()],$a.prototype,"label",void 0),wa([k()],$a.prototype,"tooltipPosition",void 0),wa([k({type:Boolean,reflect:!0})],$a.prototype,"selected",void 0),wa([k({type:Boolean})],$a.prototype,"trailingIcon",void 0),wa([k({type:Boolean})],$a.prototype,"unselectable",void 0),wa([U(".ft-switch-option--content slot")],$a.prototype,"slottedContent",void 0),wa([U(".ft-switch-option--input")],$a.prototype,"input",void 0);var Na=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ca extends CustomEvent{constructor(t){super("change",{detail:t})}}class Ea extends Be{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return ce`
870
+ <div @keydown=${this.onKeyDown} tabindex="0" class="${ga(t)}">
867
871
  <slot @slotchange=${this.onSlotchange}
868
872
  @option-change=${this.onOptionChangeByScript}
869
873
  @option-change-by-user=${this.onOptionChangeByUser}
870
874
  ></slot>
871
875
  </div>
872
- `}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof Sa&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new Na(null===(e=this.selectedOption)||void 0===e?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}Ca.elementDefinitions={},Ca.styles=Et`
876
+ `}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof $a&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new Ca(null===(e=this.selectedOption)||void 0===e?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}Ea.elementDefinitions={},Ea.styles=Et`
873
877
  :host {
874
878
  display: inline-block;
875
879
  }
876
880
 
877
881
  .ft-switch {
878
- border-radius: ${wn.borderRadius};
879
- outline-color: ${wn.outlineColor};
882
+ border-radius: ${On.borderRadius};
883
+ outline-color: ${On.outlineColor};
880
884
  }
881
885
 
882
886
  .ft-switch slot {
@@ -885,25 +889,25 @@ const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t
885
889
  }
886
890
 
887
891
  .ft-switch slot::slotted(ft-switch-option) {
888
- ${ke(va.borderRadiusLeft,"0")};
889
- ${ke(va.borderRadiusRight,"0")};
890
- ${ke(va.borderWidthLeft,"0")};
892
+ ${ke(ma.borderRadiusLeft,"0")};
893
+ ${ke(ma.borderRadiusRight,"0")};
894
+ ${ke(ma.borderWidthLeft,"0")};
891
895
  }
892
896
 
893
897
  .ft-switch slot::slotted(ft-switch-option:first-child) {
894
- ${ke(va.borderRadiusLeft,wn.borderRadius)};
895
- ${ke(va.borderWidthLeft,"1px")};
898
+ ${ke(ma.borderRadiusLeft,On.borderRadius)};
899
+ ${ke(ma.borderWidthLeft,"1px")};
896
900
  }
897
901
 
898
902
  .ft-switch slot::slotted(ft-switch-option:last-child) {
899
- ${ke(va.borderRadiusRight,wn.borderRadius)};
903
+ ${ke(ma.borderRadiusRight,On.borderRadius)};
900
904
  }
901
905
 
902
906
  .ft-switch--dense slot::slotted(ft-switch-option) {
903
907
  --ft-switch-internal-vertical-padding: 2px;
904
908
  --ft-switch-internal-horizontal-padding: 4px;
905
909
  }
906
- `,$a([k({type:Boolean})],Ca.prototype,"dense",void 0),$a([k({type:Boolean})],Ca.prototype,"unselectable",void 0),$a([U(".ft-switch slot")],Ca.prototype,"slottedContent",void 0),$a([R()],Ca.prototype,"selectedOption",void 0),$a([U(".ft-switch")],Ca.prototype,"ftSwitchDiv",void 0),T("ft-switch")(Ca),T("ft-switch-option")(Sa);const Ea=Ee.external(Ae.colorOutline,"Design system"),ka=Ee.external(Ae.colorOnSurfaceMedium,"Design system"),Ra=Et`
910
+ `,Na([k({type:Boolean})],Ea.prototype,"dense",void 0),Na([k({type:Boolean})],Ea.prototype,"unselectable",void 0),Na([U(".ft-switch slot")],Ea.prototype,"slottedContent",void 0),Na([R()],Ea.prototype,"selectedOption",void 0),Na([U(".ft-switch")],Ea.prototype,"ftSwitchDiv",void 0),T("ft-switch")(Ea),T("ft-switch-option")($a);const ka=Ee.external(Ae.colorOutline,"Design system"),Ra=Ee.external(Ae.colorOnSurfaceMedium,"Design system"),Ia=Et`
907
911
  :host {
908
912
  display: block;
909
913
  }
@@ -914,14 +918,14 @@ const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t
914
918
 
915
919
  ft-icon {
916
920
  transform: rotate(-45deg);
917
- color: ${Ea};
921
+ color: ${ka};
918
922
  }
919
923
 
920
924
  .ft-resizer--dragging ft-icon,
921
925
  .ft-resizer:hover ft-icon {
922
- color: ${ka};
926
+ color: ${Ra};
923
927
  }
924
- `;var Ia=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ua extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class La extends Be{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=oa.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return ce`
928
+ `;var Ua=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class La extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class Aa extends Be{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=ra.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return ce`
925
929
  <style>
926
930
  .ft-resizer {
927
931
  cursor: ${Ct(this.cursor)}
@@ -932,25 +936,25 @@ const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t
932
936
  @touchstart=${this.initDragFromTouch}>
933
937
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
934
938
  </div>
935
- `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new Ua(i,o))}}La.elementDefinitions={"ft-icon":na},La.styles=[Ke,Ra],Ia([k({type:Number})],La.prototype,"initialWidth",void 0),Ia([k({type:Number})],La.prototype,"initialHeight",void 0),Ia([k()],La.prototype,"icon",void 0),Ia([k()],La.prototype,"iconVariant",void 0),Ia([k()],La.prototype,"cursor",void 0),Ia([R()],La.prototype,"dragging",void 0),T("ft-resizer")(La);const Aa={fontSize:Ee.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Ee.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Ee.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Ee.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ee.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Ee.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Ee.extend("--ft-input-label-border-color","",Ae.colorOutline),textColor:Ee.extend("--ft-input-label-text-color","",Ae.colorOnSurfaceMedium),disabledTextColor:Ee.extend("--ft-input-label-disabled-text-color","",Ae.colorOnSurfaceDisabled),colorSurface:Ee.external(Ae.colorSurface,"Design system"),borderRadiusS:Ee.external(Ae.borderRadiusS,"Design system"),colorError:Ee.external(Ae.colorError,"Design system")},_a=Et`
939
+ `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new La(i,o))}}Aa.elementDefinitions={"ft-icon":aa},Aa.styles=[Ze,Ia],Ua([k({type:Number})],Aa.prototype,"initialWidth",void 0),Ua([k({type:Number})],Aa.prototype,"initialHeight",void 0),Ua([k()],Aa.prototype,"icon",void 0),Ua([k()],Aa.prototype,"iconVariant",void 0),Ua([k()],Aa.prototype,"cursor",void 0),Ua([R()],Aa.prototype,"dragging",void 0),T("ft-resizer")(Aa);const _a={fontSize:Ee.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Ee.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Ee.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Ee.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ee.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Ee.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Ee.extend("--ft-input-label-border-color","",Ae.colorOutline),textColor:Ee.extend("--ft-input-label-text-color","",Ae.colorOnSurfaceMedium),disabledTextColor:Ee.extend("--ft-input-label-disabled-text-color","",Ae.colorOnSurfaceDisabled),colorSurface:Ee.external(Ae.colorSurface,"Design system"),borderRadiusS:Ee.external(Ae.borderRadiusS,"Design system"),colorError:Ee.external(Ae.colorError,"Design system")},Ta=Et`
936
940
  .ft-input-label {
937
941
  position: absolute;
938
942
  inset: 0;
939
943
  display: flex;
940
- background-color: ${Aa.colorSurface};
941
- border-radius: ${Aa.borderRadiusS} ${Aa.borderRadiusS} 0 0;
944
+ background-color: ${_a.colorSurface};
945
+ border-radius: ${_a.borderRadiusS} ${_a.borderRadiusS} 0 0;
942
946
  }
943
947
 
944
948
  .ft-input-label--outlined {
945
- border-radius: ${Aa.borderRadiusS};
949
+ border-radius: ${_a.borderRadiusS};
946
950
  }
947
951
 
948
952
  .ft-input-label {
949
- border-color: ${Aa.borderColor};
953
+ border-color: ${_a.borderColor};
950
954
  }
951
955
 
952
956
  .ft-input-label.ft-input-label--in-error {
953
- border-color: ${Aa.colorError}
957
+ border-color: ${_a.colorError}
954
958
  }
955
959
 
956
960
  .ft-input-label:before,
@@ -963,7 +967,7 @@ const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t
963
967
  }
964
968
 
965
969
  .ft-input-label:before {
966
- width: calc(${Aa.horizontalSpacing} - 4px);
970
+ width: calc(${_a.horizontalSpacing} - 4px);
967
971
  flex-shrink: 0;
968
972
  }
969
973
 
@@ -979,20 +983,20 @@ const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t
979
983
  border-bottom-width: 1px;
980
984
  border-bottom-style: solid;
981
985
  border-color: inherit;
982
- color: ${Aa.textColor};
986
+ color: ${_a.textColor};
983
987
  transition: font-size 250ms, line-height 250ms, color 250ms;
984
- max-width: calc(${Aa.labelMaxWidth} - 2 * (${Aa.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
988
+ max-width: calc(${_a.labelMaxWidth} - 2 * (${_a.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
985
989
  text-overflow: ellipsis;
986
- ${ke(Tr.fontSize,Aa.fontSize)};
987
- ${ke(Tr.lineHeight,Aa.fontSize)};
990
+ ${ke(Wr.fontSize,_a.fontSize)};
991
+ ${ke(Wr.lineHeight,_a.fontSize)};
988
992
  }
989
993
 
990
994
  .ft-input-label--in-error .ft-input-label--text {
991
- color: ${Aa.colorError}
995
+ color: ${_a.colorError}
992
996
  }
993
997
 
994
998
  .ft-input-label--disabled .ft-input-label--text {
995
- color: ${Aa.disabledTextColor};
999
+ color: ${_a.disabledTextColor};
996
1000
  }
997
1001
 
998
1002
  .ft-input-label--hidden-text {
@@ -1009,19 +1013,19 @@ const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t
1009
1013
  overflow: hidden;
1010
1014
  white-space: nowrap;
1011
1015
  text-overflow: ellipsis;
1012
- padding: ${Aa.verticalSpacing} 4px;
1013
- margin: calc(${Aa.verticalSpacing} * -1) 0;
1016
+ padding: ${_a.verticalSpacing} 4px;
1017
+ margin: calc(${_a.verticalSpacing} * -1) 0;
1014
1018
  max-width: 100%;
1015
1019
  box-sizing: border-box;
1016
1020
  }
1017
1021
 
1018
1022
  .ft-input-label--raised .ft-input-label--text {
1019
- ${ke(Tr.fontSize,Aa.raisedFontSize)};
1020
- ${ke(Tr.lineHeight,Aa.raisedFontSize)};
1023
+ ${ke(Wr.fontSize,_a.raisedFontSize)};
1024
+ ${ke(Wr.lineHeight,_a.raisedFontSize)};
1021
1025
  }
1022
1026
 
1023
1027
  .ft-input-label--raised .ft-input-label--floating-text {
1024
- top: ${Aa.verticalSpacing};
1028
+ top: ${_a.verticalSpacing};
1025
1029
  }
1026
1030
 
1027
1031
  .ft-input-label--outlined .ft-input-label--text,
@@ -1034,28 +1038,28 @@ const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t
1034
1038
  .ft-input-label--outlined:before {
1035
1039
  border-left-width: 1px;
1036
1040
  border-left-style: solid;
1037
- border-radius: ${Aa.borderRadiusS} 0 0 ${Aa.borderRadiusS};
1041
+ border-radius: ${_a.borderRadiusS} 0 0 ${_a.borderRadiusS};
1038
1042
  }
1039
1043
 
1040
1044
  .ft-input-label--outlined:after {
1041
1045
  border-right-width: 1px;
1042
1046
  border-right-style: solid;
1043
- border-radius: 0 ${Aa.borderRadiusS} ${Aa.borderRadiusS} 0;
1047
+ border-radius: 0 ${_a.borderRadiusS} ${_a.borderRadiusS} 0;
1044
1048
  }
1045
1049
 
1046
1050
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1047
1051
  padding: 2px 4px;
1048
- z-index: ${Aa.raisedZIndex};
1049
- background-color: ${Aa.colorSurface};
1050
- border-radius: ${Aa.borderRadiusS};
1052
+ z-index: ${_a.raisedZIndex};
1053
+ background-color: ${_a.colorSurface};
1054
+ border-radius: ${_a.borderRadiusS};
1051
1055
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
1052
1056
  }
1053
1057
 
1054
1058
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1055
1059
  border-top: none;
1056
1060
  }
1057
- `;var Ta=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Wa extends Be{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return ce`
1058
- <div class="${ya(t)}">
1061
+ `;var Wa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Da extends Be{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return ce`
1062
+ <div class="${ga(t)}">
1059
1063
  ${this.text?ce`
1060
1064
  <div class="ft-input-label--text ft-typography--caption">
1061
1065
  <span class="ft-input-label--floating-text">${this.text}</span>
@@ -1063,7 +1067,7 @@ const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t
1063
1067
  </div>
1064
1068
  `:null}
1065
1069
  </div>
1066
- `}}Wa.elementDefinitions={},Wa.styles=[en,_a],Ta([k({type:String})],Wa.prototype,"text",void 0),Ta([k({type:Boolean})],Wa.prototype,"raised",void 0),Ta([k({type:Boolean})],Wa.prototype,"outlined",void 0),Ta([k({type:Boolean})],Wa.prototype,"disabled",void 0),Ta([k({type:Boolean})],Wa.prototype,"error",void 0),T("ft-input-label")(Wa);const Da={fontSize:Ee.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:Ee.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:Ee.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ee.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:Ee.extend("--ft-text-area-helper-color","",Ae.colorOnSurfaceMedium),colorPrimary:Ee.external(Ae.colorPrimary,"Design system"),colorOnSurface:Ee.external(Ae.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Ee.external(Ae.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Ee.external(Ae.borderRadiusS,"Design system"),colorError:Ee.external(Ae.colorError,"Design system")},Fa=Et`
1070
+ `}}Da.elementDefinitions={},Da.styles=[on,Ta],Wa([k({type:String})],Da.prototype,"text",void 0),Wa([k({type:Boolean})],Da.prototype,"raised",void 0),Wa([k({type:Boolean})],Da.prototype,"outlined",void 0),Wa([k({type:Boolean})],Da.prototype,"disabled",void 0),Wa([k({type:Boolean})],Da.prototype,"error",void 0),T("ft-input-label")(Da);const Fa={fontSize:Ee.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:Ee.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:Ee.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ee.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:Ee.extend("--ft-text-area-helper-color","",Ae.colorOnSurfaceMedium),colorPrimary:Ee.external(Ae.colorPrimary,"Design system"),colorOnSurface:Ee.external(Ae.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Ee.external(Ae.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Ee.external(Ae.borderRadiusS,"Design system"),colorError:Ee.external(Ae.colorError,"Design system")},Pa=Et`
1067
1071
  *:focus {
1068
1072
  outline: none;
1069
1073
  }
@@ -1075,10 +1079,10 @@ const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t
1075
1079
  }
1076
1080
 
1077
1081
  ft-input-label {
1078
- ${ke(Aa.fontSize,Da.fontSize)};
1079
- ${ke(Aa.raisedFontSize,Da.labelSize)};
1080
- ${ke(Aa.verticalSpacing,Da.verticalSpacing)};
1081
- ${ke(Aa.horizontalSpacing,Da.horizontalSpacing)};
1082
+ ${ke(_a.fontSize,Fa.fontSize)};
1083
+ ${ke(_a.raisedFontSize,Fa.labelSize)};
1084
+ ${ke(_a.verticalSpacing,Fa.verticalSpacing)};
1085
+ ${ke(_a.horizontalSpacing,Fa.horizontalSpacing)};
1082
1086
  }
1083
1087
 
1084
1088
  .ft-text-area--main-panel {
@@ -1096,8 +1100,8 @@ const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t
1096
1100
  }
1097
1101
 
1098
1102
  .ft-text-area--input-panel ft-ripple {
1099
- ${ke(or.opacityContentOnSurfaceHover,"0.08")};
1100
- ${ke(or.opacityContentOnSurfacePressed,"0.04")};
1103
+ ${ke(rr.opacityContentOnSurfaceHover,"0.08")};
1104
+ ${ke(rr.opacityContentOnSurfacePressed,"0.04")};
1101
1105
  }
1102
1106
 
1103
1107
  .ft-text-area--input {
@@ -1109,12 +1113,12 @@ const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t
1109
1113
  align-self: stretch;
1110
1114
  resize: none;
1111
1115
 
1112
- ${ke(kr.fontSize,Da.fontSize)};
1113
- ${ke(kr.lineHeight,Da.fontSize)};
1114
- color: ${Da.colorOnSurface};
1116
+ ${ke(Rr.fontSize,Fa.fontSize)};
1117
+ ${ke(Rr.lineHeight,Fa.fontSize)};
1118
+ color: ${Fa.colorOnSurface};
1115
1119
 
1116
- padding: 0 ${Da.horizontalSpacing};
1117
- margin: calc(${Da.verticalSpacing} + ${Da.labelSize} / 2) 0 ${Da.verticalSpacing} 0;
1120
+ padding: 0 ${Fa.horizontalSpacing};
1121
+ margin: calc(${Fa.verticalSpacing} + ${Fa.labelSize} / 2) 0 ${Fa.verticalSpacing} 0;
1118
1122
 
1119
1123
  border: none;
1120
1124
  background: none;
@@ -1123,7 +1127,7 @@ const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t
1123
1127
  }
1124
1128
 
1125
1129
  .ft-text-area--disabled .ft-text-area--input {
1126
- color: ${Da.colorOnSurfaceDisabled};
1130
+ color: ${Fa.colorOnSurfaceDisabled};
1127
1131
  }
1128
1132
 
1129
1133
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -1131,49 +1135,49 @@ const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t
1131
1135
  }
1132
1136
 
1133
1137
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
1134
- ${ke(Aa.borderColor,Da.colorPrimary)};
1135
- ${ke(Aa.textColor,Da.colorPrimary)};
1138
+ ${ke(_a.borderColor,Fa.colorPrimary)};
1139
+ ${ke(_a.textColor,Fa.colorPrimary)};
1136
1140
  }
1137
1141
 
1138
1142
  .ft-text-area--filled .ft-text-area--input-panel {
1139
- border-radius: ${Da.borderRadiusS} ${Da.borderRadiusS} 0 0;
1143
+ border-radius: ${Fa.borderRadiusS} ${Fa.borderRadiusS} 0 0;
1140
1144
  }
1141
1145
 
1142
1146
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
1143
1147
  align-self: stretch;
1144
- margin-bottom: ${Da.verticalSpacing};
1145
- margin-top: calc(${Da.labelSize} + 2 * ${Da.verticalSpacing});
1148
+ margin-bottom: ${Fa.verticalSpacing};
1149
+ margin-top: calc(${Fa.labelSize} + 2 * ${Fa.verticalSpacing});
1146
1150
  }
1147
1151
 
1148
1152
  .ft-text-area--outlined .ft-text-area--input-panel {
1149
- border-radius: ${Da.borderRadiusS};
1153
+ border-radius: ${Fa.borderRadiusS};
1150
1154
  }
1151
1155
 
1152
1156
  .ft-text-area--helper-text {
1153
- padding: 0 12px 0 ${Da.horizontalSpacing};
1154
- color: ${Da.helperColor};
1157
+ padding: 0 12px 0 ${Fa.horizontalSpacing};
1158
+ color: ${Fa.helperColor};
1155
1159
  }
1156
1160
 
1157
1161
  .ft-text-area--in-error .ft-text-area--input,
1158
1162
  .ft-text-area--in-error .ft-text-area--helper-text {
1159
- color: ${Da.colorError};
1163
+ color: ${Fa.colorError};
1160
1164
  }
1161
1165
 
1162
1166
  ft-resizer {
1163
1167
  position: absolute;
1164
1168
  bottom: 0;
1165
1169
  }
1166
- `;var Pa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ma extends(Ho(Be,"textbox")){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return ce`
1170
+ `;var Ma=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class za extends(Go(Be,"textbox")){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return ce`
1167
1171
  <style>
1168
1172
  .ft-text-area--main-panel {
1169
- height: calc(4 * ${Da.verticalSpacing} + ${Da.labelSize} + ${Da.fontSize} + ${this.height}px);
1173
+ height: calc(4 * ${Fa.verticalSpacing} + ${Fa.labelSize} + ${Fa.fontSize} + ${this.height}px);
1170
1174
  }
1171
1175
 
1172
1176
  ft-resizer {
1173
1177
  right: ${null!=this.textarea?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1174
1178
  }
1175
1179
  </style>
1176
- <div class="${ya(t)}">
1180
+ <div class="${ga(t)}">
1177
1181
  <div class="ft-text-area--main-panel">
1178
1182
  <ft-input-label text="${this.label}"
1179
1183
  ?disabled=${this.disabled}
@@ -1205,34 +1209,34 @@ const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t
1205
1209
  ${this.helper}
1206
1210
  </ft-typography>`:void 0}
1207
1211
  </div>
1208
- `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.requestUpdate()}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}Ma.elementDefinitions={"ft-input-label":Wa,"ft-resizer":La,"ft-ripple":ba,"ft-typography":Vn},Ma.styles=[Qr,Fa],Pa([k({type:String})],Ma.prototype,"label",void 0),Pa([k({reflect:!0})],Ma.prototype,"value",void 0),Pa([k({type:String})],Ma.prototype,"helper",void 0),Pa([k({type:Boolean})],Ma.prototype,"outlined",void 0),Pa([k({type:Boolean})],Ma.prototype,"disabled",void 0),Pa([k({type:Boolean})],Ma.prototype,"error",void 0),Pa([k({type:Number,reflect:!0})],Ma.prototype,"height",void 0),Pa([U("textarea")],Ma.prototype,"textarea",void 0),Pa([R()],Ma.prototype,"focused",void 0),T("ft-text-area")(Ma);
1212
+ `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.requestUpdate()}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}za.elementDefinitions={"ft-input-label":Da,"ft-resizer":Aa,"ft-ripple":va,"ft-typography":qn},za.styles=[tn,Pa],Ma([k({type:String})],za.prototype,"label",void 0),Ma([k({reflect:!0})],za.prototype,"value",void 0),Ma([k({type:String})],za.prototype,"helper",void 0),Ma([k({type:Boolean})],za.prototype,"outlined",void 0),Ma([k({type:Boolean})],za.prototype,"disabled",void 0),Ma([k({type:Boolean})],za.prototype,"error",void 0),Ma([k({type:Number,reflect:!0})],za.prototype,"height",void 0),Ma([U("textarea")],za.prototype,"textarea",void 0),Ma([R()],za.prototype,"focused",void 0),T("ft-text-area")(za);
1209
1213
  /**
1210
1214
  * @license
1211
1215
  * Copyright 2020 Google LLC
1212
1216
  * SPDX-License-Identifier: BSD-3-Clause
1213
1217
  */
1214
- const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(ja(),r),n=o.insertBefore(ja(),r);i=new za(e,n,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,a=n!==t;if(a){let e;i._$AQ?.(t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,r),t=e}}}return i},Ka=(t,e,i=t)=>(t._$AI(e,i),t),Za={},Ha=t=>{t._$AP?.(!1,!0);let e=t._$AA;const i=t._$AB.nextSibling;for(;e!==i;){const t=e.nextSibling;e.remove(),e=t}},Ga=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},Va=Xn(class extends Jn{constructor(t){if(super(t),t.type!==Yn)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const r=[],n=[];let a=0;for(const e of t)r[a]=o?o(e,a):a,n[a]=i(e,a),a++;return{values:n,keys:r}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,i,o);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,h,f=0,d=r.length-1,u=0,p=n.length-1;for(;f<=d&&u<=p;)if(null===r[f])f++;else if(null===r[d])d--;else if(s[f]===a[u])l[u]=Ka(r[f],n[u]),f++,u++;else if(s[d]===a[p])l[p]=Ka(r[d],n[p]),d--,p--;else if(s[f]===a[p])l[p]=Ka(r[f],n[p]),Ba(t,l[p+1],r[f]),f++,p--;else if(s[d]===a[u])l[u]=Ka(r[d],n[u]),Ba(t,r[f],r[d]),d--,u++;else if(void 0===c&&(c=Ga(a,u,p),h=Ga(s,f,d)),c.has(s[f]))if(c.has(s[d])){const e=h.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=Ba(t,r[f]);Ka(e,n[u]),l[u]=e}else l[u]=Ka(i,n[u]),Ba(t,r[f],i),r[e]=null;u++}else Ha(r[d]),d--;else Ha(r[f]),f++;for(;u<=p;){const e=Ba(t,l[p+1]);Ka(e,n[u]),l[u++]=e}for(;f<=d;){const t=r[f++];null!==t&&Ha(t)}return this.dt=a,((t,e=Za)=>{t._$AH=e})(t,l),rt}});
1218
+ const{D:ja}=mt,Ba=()=>document.createComment(""),Ka=(t,e,i)=>{const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Ba(),r),n=o.insertBefore(Ba(),r);i=new ja(e,n,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,a=n!==t;if(a){let e;i._$AQ?.(t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,r),t=e}}}return i},Za=(t,e,i=t)=>(t._$AI(e,i),t),Ha={},Ga=t=>{t._$AP?.(!1,!0);let e=t._$AA;const i=t._$AB.nextSibling;for(;e!==i;){const t=e.nextSibling;e.remove(),e=t}},Va=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},qa=Jn(class extends Qn{constructor(t){if(super(t),t.type!==Xn)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const r=[],n=[];let a=0;for(const e of t)r[a]=o?o(e,a):a,n[a]=i(e,a),a++;return{values:n,keys:r}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,i,o);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,h,f=0,d=r.length-1,u=0,p=n.length-1;for(;f<=d&&u<=p;)if(null===r[f])f++;else if(null===r[d])d--;else if(s[f]===a[u])l[u]=Za(r[f],n[u]),f++,u++;else if(s[d]===a[p])l[p]=Za(r[d],n[p]),d--,p--;else if(s[f]===a[p])l[p]=Za(r[f],n[p]),Ka(t,l[p+1],r[f]),f++,p--;else if(s[d]===a[u])l[u]=Za(r[d],n[u]),Ka(t,r[f],r[d]),d--,u++;else if(void 0===c&&(c=Va(a,u,p),h=Va(s,f,d)),c.has(s[f]))if(c.has(s[d])){const e=h.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=Ka(t,r[f]);Za(e,n[u]),l[u]=e}else l[u]=Za(i,n[u]),Ka(t,r[f],i),r[e]=null;u++}else Ga(r[d]),d--;else Ga(r[f]),f++;for(;u<=p;){const e=Ka(t,l[p+1]);Za(e,n[u]),l[u++]=e}for(;f<=d;){const t=r[f++];null!==t&&Ga(t)}return this.dt=a,((t,e=Ha)=>{t._$AH=e})(t,l),rt}});
1215
1219
  /**
1216
1220
  * @license
1217
1221
  * Copyright 2017 Google LLC
1218
1222
  * SPDX-License-Identifier: BSD-3-Clause
1219
- */class qa extends Be{render(){return ce`
1223
+ */class Ya extends Be{render(){return ce`
1220
1224
  <div class="ft-loader">
1221
1225
  <div></div>
1222
1226
  <div></div>
1223
1227
  <div></div>
1224
1228
  <div></div>
1225
1229
  </div>
1226
- `}}qa.styles=cn,T("ft-loader")(qa);var Ya=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Xa extends(Ho(Be,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(ce`
1230
+ `}}Ya.styles=hn,T("ft-loader")(Ya);var Xa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ja extends(Go(Be,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(ce`
1227
1231
  <button part="button"
1228
- class="${ya(this.buttonClasses)}"
1232
+ class="${ga(this.buttonClasses)}"
1229
1233
  aria-label="${this.getLabel()}"
1230
1234
  ?disabled=${this.isDisabled()}>
1231
1235
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1232
1236
  <ft-typography part="label"
1233
1237
  variant=${this.typographyVariant}
1234
1238
  element="span"
1235
- class="ft-button--label ${Yo?"ft-safari-ellipsis-fix":""}"
1239
+ class="ft-button--label ${Xo?"ft-safari-ellipsis-fix":""}"
1236
1240
  ?hidden=${!this.hasTextContent()}>
1237
1241
  <slot @slotchange=${this.onSlotchange}></slot>
1238
1242
  </ft-typography>
@@ -1246,7 +1250,7 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1246
1250
  </ft-tooltip>
1247
1251
  `:t}resolveIcon(){return this.loading?ce`
1248
1252
  <ft-loader part="loader icon"></ft-loader> `:this.icon?ce`
1249
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:fe}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}}Xa.elementDefinitions={"ft-ripple":ba,"ft-tooltip":pa,"ft-typography":Vn,"ft-icon":na,"ft-loader":qa},Ya([k({type:String,reflect:!0})],Xa.prototype,"role",void 0),Ya([k()],Xa.prototype,"type",void 0),Ya([k({type:Boolean})],Xa.prototype,"disabled",void 0),Ya([k()],Xa.prototype,"label",void 0),Ya([k()],Xa.prototype,"icon",void 0),Ya([k()],Xa.prototype,"iconVariant",void 0),Ya([k({type:Boolean})],Xa.prototype,"trailingIcon",void 0),Ya([k({type:Boolean})],Xa.prototype,"loading",void 0),Ya([k()],Xa.prototype,"tooltipPosition",void 0),Ya([k({type:Boolean})],Xa.prototype,"hideTooltip",void 0),Ya([k({type:Boolean})],Xa.prototype,"forceTooltip",void 0),Ya([U(".ft-button")],Xa.prototype,"button",void 0),Ya([U(".ft-button--label slot")],Xa.prototype,"slottedContent",void 0);var Ja=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Qa extends Xa{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}Qa.styles=[Ze,xn],Ja([k({type:Boolean})],Qa.prototype,"primary",void 0),Ja([k({type:Boolean})],Qa.prototype,"outlined",void 0),Ja([k({type:Boolean})],Qa.prototype,"dense",void 0),Ja([k({type:Boolean})],Qa.prototype,"round",void 0);const ts=[Et`
1253
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:fe}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}}Ja.elementDefinitions={"ft-ripple":va,"ft-tooltip":ya,"ft-typography":qn,"ft-icon":aa,"ft-loader":Ya},Xa([k({type:String,reflect:!0})],Ja.prototype,"role",void 0),Xa([k()],Ja.prototype,"type",void 0),Xa([k({type:Boolean})],Ja.prototype,"disabled",void 0),Xa([k()],Ja.prototype,"label",void 0),Xa([k()],Ja.prototype,"icon",void 0),Xa([k()],Ja.prototype,"iconVariant",void 0),Xa([k({type:Boolean})],Ja.prototype,"trailingIcon",void 0),Xa([k({type:Boolean})],Ja.prototype,"loading",void 0),Xa([k()],Ja.prototype,"tooltipPosition",void 0),Xa([k({type:Boolean})],Ja.prototype,"hideTooltip",void 0),Xa([k({type:Boolean})],Ja.prototype,"forceTooltip",void 0),Xa([U(".ft-button")],Ja.prototype,"button",void 0),Xa([U(".ft-button--label slot")],Ja.prototype,"slottedContent",void 0);var Qa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ts extends Ja{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}ts.styles=[He,wn],Qa([k({type:Boolean})],ts.prototype,"primary",void 0),Qa([k({type:Boolean})],ts.prototype,"outlined",void 0),Qa([k({type:Boolean})],ts.prototype,"dense",void 0),Qa([k({type:Boolean})],ts.prototype,"round",void 0);const es=[Et`
1250
1254
  :host {
1251
1255
  display: inline-block;
1252
1256
  max-width: 100%;
@@ -1325,13 +1329,13 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1325
1329
  /** Primary styles **/
1326
1330
 
1327
1331
  .ft-button--primary {
1328
- ${ke(ln.color,Le.primaryIconColor)};
1332
+ ${ke(cn.color,Le.primaryIconColor)};
1329
1333
 
1330
- ${ke(or.color,Le.primaryStateLayerColor)};
1331
- ${ke(or.opacityContentOnSurfaceHover,Le.primaryStateLayerOpacityHover)};
1332
- ${ke(or.opacityContentOnSurfaceFocused,Le.primaryStateLayerOpacityFocus)};
1333
- ${ke(or.opacityContentOnSurfaceSelected,Le.primaryStateLayerOpacityActive)};
1334
- ${ke(or.opacityContentOnSurfacePressed,Le.primaryStateLayerOpacityActive)};
1334
+ ${ke(rr.color,Le.primaryStateLayerColor)};
1335
+ ${ke(rr.opacityContentOnSurfaceHover,Le.primaryStateLayerOpacityHover)};
1336
+ ${ke(rr.opacityContentOnSurfaceFocused,Le.primaryStateLayerOpacityFocus)};
1337
+ ${ke(rr.opacityContentOnSurfaceSelected,Le.primaryStateLayerOpacityActive)};
1338
+ ${ke(rr.opacityContentOnSurfacePressed,Le.primaryStateLayerOpacityActive)};
1335
1339
 
1336
1340
  background-color: ${Le.primaryBackgroundColor};
1337
1341
  color: ${Le.primaryColor};
@@ -1349,13 +1353,13 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1349
1353
  /** Secondary styles **/
1350
1354
 
1351
1355
  .ft-button--secondary {
1352
- ${ke(ln.color,Le.secondaryIconColor)};
1356
+ ${ke(cn.color,Le.secondaryIconColor)};
1353
1357
 
1354
- ${ke(or.color,Le.secondaryStateLayerColor)};
1355
- ${ke(or.opacityContentOnSurfaceHover,Le.secondaryStateLayerOpacityHover)};
1356
- ${ke(or.opacityContentOnSurfaceFocused,Le.secondaryStateLayerOpacityFocus)};
1357
- ${ke(or.opacityContentOnSurfaceSelected,Le.secondaryStateLayerOpacityActive)};
1358
- ${ke(or.opacityContentOnSurfacePressed,Le.secondaryStateLayerOpacityActive)};
1358
+ ${ke(rr.color,Le.secondaryStateLayerColor)};
1359
+ ${ke(rr.opacityContentOnSurfaceHover,Le.secondaryStateLayerOpacityHover)};
1360
+ ${ke(rr.opacityContentOnSurfaceFocused,Le.secondaryStateLayerOpacityFocus)};
1361
+ ${ke(rr.opacityContentOnSurfaceSelected,Le.secondaryStateLayerOpacityActive)};
1362
+ ${ke(rr.opacityContentOnSurfacePressed,Le.secondaryStateLayerOpacityActive)};
1359
1363
 
1360
1364
  background-color: ${Le.secondaryBackgroundColor};
1361
1365
  color: ${Le.secondaryColor};
@@ -1374,13 +1378,13 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1374
1378
  /** Tertiary styles **/
1375
1379
 
1376
1380
  .ft-button--tertiary {
1377
- ${ke(ln.color,Le.tertiaryIconColor)};
1381
+ ${ke(cn.color,Le.tertiaryIconColor)};
1378
1382
 
1379
- ${ke(or.color,Le.tertiaryStateLayerColor)};
1380
- ${ke(or.opacityContentOnSurfaceHover,Le.tertiaryStateLayerOpacityHover)};
1381
- ${ke(or.opacityContentOnSurfaceFocused,Le.tertiaryStateLayerOpacityFocus)};
1382
- ${ke(or.opacityContentOnSurfaceSelected,Le.tertiaryStateLayerOpacityActive)};
1383
- ${ke(or.opacityContentOnSurfacePressed,Le.tertiaryStateLayerOpacityActive)};
1383
+ ${ke(rr.color,Le.tertiaryStateLayerColor)};
1384
+ ${ke(rr.opacityContentOnSurfaceHover,Le.tertiaryStateLayerOpacityHover)};
1385
+ ${ke(rr.opacityContentOnSurfaceFocused,Le.tertiaryStateLayerOpacityFocus)};
1386
+ ${ke(rr.opacityContentOnSurfaceSelected,Le.tertiaryStateLayerOpacityActive)};
1387
+ ${ke(rr.opacityContentOnSurfacePressed,Le.tertiaryStateLayerOpacityActive)};
1384
1388
 
1385
1389
  background-color: ${Le.tertiaryBackgroundColor};
1386
1390
  color: ${Le.tertiaryColor};
@@ -1398,13 +1402,13 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1398
1402
  /** Neutral styles **/
1399
1403
 
1400
1404
  .ft-button--neutral {
1401
- ${ke(ln.color,Le.neutralIconColor)};
1405
+ ${ke(cn.color,Le.neutralIconColor)};
1402
1406
 
1403
- ${ke(or.backgroundColor,Le.neutralStateLayerColor)};
1404
- ${ke(or.opacityContentOnSurfaceHover,Le.neutralStateLayerOpacityHover)};
1405
- ${ke(or.opacityContentOnSurfaceFocused,Le.neutralStateLayerOpacityFocus)};
1406
- ${ke(or.opacityContentOnSurfaceSelected,Le.neutralStateLayerOpacityActive)};
1407
- ${ke(or.opacityContentOnSurfacePressed,Le.neutralStateLayerOpacityActive)};
1407
+ ${ke(rr.backgroundColor,Le.neutralStateLayerColor)};
1408
+ ${ke(rr.opacityContentOnSurfaceHover,Le.neutralStateLayerOpacityHover)};
1409
+ ${ke(rr.opacityContentOnSurfaceFocused,Le.neutralStateLayerOpacityFocus)};
1410
+ ${ke(rr.opacityContentOnSurfaceSelected,Le.neutralStateLayerOpacityActive)};
1411
+ ${ke(rr.opacityContentOnSurfacePressed,Le.neutralStateLayerOpacityActive)};
1408
1412
 
1409
1413
  background-color: ${Le.neutralBackgroundColor};
1410
1414
  color: ${Le.neutralColor};
@@ -1422,8 +1426,8 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1422
1426
  /** Large styles **/
1423
1427
 
1424
1428
  .ft-button--large {
1425
- ${ke(hn.size,Le.largeIconSize)};
1426
- ${ke(ln.size,Le.largeIconSize)};
1429
+ ${ke(fn.size,Le.largeIconSize)};
1430
+ ${ke(cn.size,Le.largeIconSize)};
1427
1431
 
1428
1432
  height: ${Le.largeHeight};
1429
1433
  padding: 0 ${Le.largeHorizontalPadding};
@@ -1445,8 +1449,8 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1445
1449
  /** Small styles **/
1446
1450
 
1447
1451
  .ft-button--small {
1448
- ${ke(hn.size,Le.smallIconSize)};
1449
- ${ke(ln.size,Le.smallIconSize)};
1452
+ ${ke(fn.size,Le.smallIconSize)};
1453
+ ${ke(cn.size,Le.smallIconSize)};
1450
1454
 
1451
1455
  height: ${Le.smallHeight};
1452
1456
  padding: 0 ${Le.smallHorizontalPadding};
@@ -1464,15 +1468,15 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1464
1468
  width: ${Le.smallIconOnlyWidth};
1465
1469
  padding: unset;
1466
1470
  }
1467
- `,Ke];var es=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class is extends Xa{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Hn.caption1medium:Hn.body2medium}}is.styles=[Ze,ts],es([k({type:Boolean})],is.prototype,"primary",void 0),es([k({type:Boolean})],is.prototype,"secondary",void 0),es([k({type:Boolean})],is.prototype,"tertiary",void 0),es([k({type:Boolean})],is.prototype,"neutral",void 0),es([k({type:Boolean})],is.prototype,"small",void 0),T("ft-button")(Qa),T("ftds-button")(is);const os=Et`
1468
- `,rs=Et`
1469
- `,ns=Bo.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class as{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=ns.getState(),o=null!=t?t:i;if(e&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,o,!0)}static get(t){var e;return null!=t?as.build(t):null!==(e=as.API)&&void 0!==e?e:as.API=as.build()}static await(t){return new Promise((e=>{let i=as.get(t);if(i)e(i);else{const o=ns.subscribe((()=>{i=as.get(t),i&&(o(),e(i))}))}}))}}var ss;const ls=Symbol("clearAfterUnitTest");class cs{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[ss]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=ns.getState().uiLocale,ns.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=ns.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const o={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};_(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var o,r,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(r=null===(o=this.cache.getNow(t))||void 0===o?void 0:o.messages)&&void 0!==r?r:{};return new He(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>A(0).then((()=>t())).catch((()=>null)))))}}ss=ls,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new cs((async(t,e)=>(await as.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new cs((async(t,e)=>(await as.await()).getCustomMessageContext(t,e))));const hs=window.FluidTopicsI18nService,fs=window.FluidTopicsCustomI18nService;var ds=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class us extends Be{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>as.get(),this.cache=new o,this.cleanSessionDebouncer=new r}render(){return ce`
1471
+ `,Ze];var is=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class os extends Ja{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Gn.caption1medium:Gn.body2medium}}os.styles=[He,es],is([k({type:Boolean})],os.prototype,"primary",void 0),is([k({type:Boolean})],os.prototype,"secondary",void 0),is([k({type:Boolean})],os.prototype,"tertiary",void 0),is([k({type:Boolean})],os.prototype,"neutral",void 0),is([k({type:Boolean})],os.prototype,"small",void 0),T("ft-button")(ts),T("ftds-button")(os);const rs=Et`
1472
+ `,ns=Et`
1473
+ `,as=Ko.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class ss{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=as.getState(),o=null!=t?t:i;if(e&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,o,!0)}static get(t){var e;return null!=t?ss.build(t):null!==(e=ss.API)&&void 0!==e?e:ss.API=ss.build()}static await(t){return new Promise((e=>{let i=ss.get(t);if(i)e(i);else{const o=as.subscribe((()=>{i=ss.get(t),i&&(o(),e(i))}))}}))}}var ls;const cs=Symbol("clearAfterUnitTest");class hs{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[ls]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=as.getState().uiLocale,as.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=as.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const o={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};_(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var o,r,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(r=null===(o=this.cache.getNow(t))||void 0===o?void 0:o.messages)&&void 0!==r?r:{};return new Ge(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>A(0).then((()=>t())).catch((()=>null)))))}}ls=cs,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new hs((async(t,e)=>(await ss.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new hs((async(t,e)=>(await ss.await()).getCustomMessageContext(t,e))));const fs=window.FluidTopicsI18nService,ds=window.FluidTopicsCustomI18nService;var us=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ps extends Be{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>ss.get(),this.cache=new o,this.cleanSessionDebouncer=new r}render(){return ce`
1470
1474
  <slot></slot>
1471
- `}update(t){super.update(t),t.has("baseUrl")&&ns.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&ns.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&ns.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&ns.actions.setNoCustom(this.noCustom),t.has("editorMode")&&ns.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&ns.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&ns.actions.setSession(this.session),t.has("availableUiLocales")&&ns.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>hs.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}us.elementDefinitions={},us.styles=rs,ds([k()],us.prototype,"baseUrl",void 0),ds([k()],us.prototype,"apiIntegrationIdentifier",void 0),ds([k()],us.prototype,"uiLocale",void 0),ds([W([])],us.prototype,"availableUiLocales",void 0),ds([k({type:Boolean})],us.prototype,"editorMode",void 0),ds([k({type:Boolean})],us.prototype,"noCustom",void 0),ds([k({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],us.prototype,"noCustomComponent",void 0),ds([k({type:Boolean})],us.prototype,"withManualResources",void 0),ds([W([])],us.prototype,"messageContexts",void 0),ds([W(void 0)],us.prototype,"session",void 0),ds([k({type:Object})],us.prototype,"apiProvider",void 0);class ps{async listMySearches(){var t;return(null===(t=ns.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await as.await()).listMySearches(ns.getState().session.profile.userId):[]}}const ys=new o;class gs{async listMyBookmarks(){return ys.get("bookmarks",(async()=>(await as.await()).listMyBookmarks(ns.getState().session.profile.userId)))}clearCache(){ys.clear("bookmarks")}}const bs=Bo.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const vs=new class{constructor(){this.currentSession=ns.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new gs,ns.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=ns.getState();_(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){bs.actions.savedSearches(void 0)}clearMyBookmarks(){bs.actions.bookmarks(void 0)}async reloadMySearches(){const t=new ps,e=await t.listMySearches();bs.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;bs.actions.bookmarks(e)}}};T("ft-app-context")(us);var ms=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const xs=Symbol("i18nProperties"),ws=Symbol("i18nUnsubs");function Os(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?fs:hs}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const r=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[xs])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[xs])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[xs]&&new Set([...this[xs].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[ws].has(t)||this[ws].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[ws].forEach((t=>t())),this[ws].clear()}}return e=ws,ms([k({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class Ss extends(Os(Be)){}class $s extends(Os(ti)){}var Ns=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Cs extends $s{constructor(){super(),this.editorMode=!1,this.addStore(ns)}render(){return this.key&&this.context?ce`
1475
+ `}update(t){super.update(t),t.has("baseUrl")&&as.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&as.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&as.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&as.actions.setNoCustom(this.noCustom),t.has("editorMode")&&as.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&as.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&as.actions.setSession(this.session),t.has("availableUiLocales")&&as.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>fs.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}ps.elementDefinitions={},ps.styles=ns,us([k()],ps.prototype,"baseUrl",void 0),us([k()],ps.prototype,"apiIntegrationIdentifier",void 0),us([k()],ps.prototype,"uiLocale",void 0),us([W([])],ps.prototype,"availableUiLocales",void 0),us([k({type:Boolean})],ps.prototype,"editorMode",void 0),us([k({type:Boolean})],ps.prototype,"noCustom",void 0),us([k({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],ps.prototype,"noCustomComponent",void 0),us([k({type:Boolean})],ps.prototype,"withManualResources",void 0),us([W([])],ps.prototype,"messageContexts",void 0),us([W(void 0)],ps.prototype,"session",void 0),us([k({type:Object})],ps.prototype,"apiProvider",void 0);class ys{async listMySearches(){var t;return(null===(t=as.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await ss.await()).listMySearches(as.getState().session.profile.userId):[]}}const gs=new o;class bs{async listMyBookmarks(){return gs.get("bookmarks",(async()=>(await ss.await()).listMyBookmarks(as.getState().session.profile.userId)))}clearCache(){gs.clear("bookmarks")}}const vs=Ko.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const ms=new class{constructor(){this.currentSession=as.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new bs,as.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=as.getState();_(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){vs.actions.savedSearches(void 0)}clearMyBookmarks(){vs.actions.bookmarks(void 0)}async reloadMySearches(){const t=new ys,e=await t.listMySearches();vs.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;vs.actions.bookmarks(e)}}};T("ft-app-context")(ps);var xs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const ws=Symbol("i18nProperties"),Os=Symbol("i18nUnsubs");function Ss(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?ds:fs}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const r=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[ws])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[ws])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ws]&&new Set([...this[ws].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Os].has(t)||this[Os].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Os].forEach((t=>t())),this[Os].clear()}}return e=Os,xs([k({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class $s extends(Ss(Be)){}class Ns extends(Ss(ei)){}var Cs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Es extends Ns{constructor(){super(),this.editorMode=!1,this.addStore(as)}render(){return this.key&&this.context?ce`
1472
1476
  <span class="ft-i18n">
1473
1477
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1474
1478
  </span>
1475
- `:this.editorMode?"Select a context and a label key.":fe}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Cs.elementDefinitions={},Cs.styles=os,Ns([Ko()],Cs.prototype,"editorMode",void 0),Ns([k()],Cs.prototype,"context",void 0),Ns([k()],Cs.prototype,"key",void 0),Ns([W([])],Cs.prototype,"args",void 0),Ns([k()],Cs.prototype,"defaultMessage",void 0);class Es{static build(t){return new Es(t)}static fromGwt(t){return new Es(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>hs.resolveMessage(this.name,e,...t)})}}const ks=(t,e)=>(i,o)=>{var r,n;i.constructor.createProperty(o,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:o};i[xs]=null!==(n=i[xs])&&void 0!==n?n:new Map,i[xs].set(o,a)};T("ft-i18n")(Cs);const Rs=Es.build("integratedFeedbackComponent"),Is={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},Us=Es.build("inDesignerFeedbackComponent"),Ls={ratingNotConfigured:"Rating unavailable: no rating configured for this content.",missingRatingRole:"Rating unavailable: missing role RATING_USER.",missingFeedbackRole:"Feedback unavailable: missing role FEEDBACK_USER.",inDesignerOnlyNotice:"This notice will not appear outside this designer.",feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."},As={fontSize:Ee.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:Ee.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:Ee.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ee.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:Ee.extend("--ft-text-field-helper-color","",Ae.colorOnSurfaceMedium),colorPrimary:Ee.external(Ae.colorPrimary,"Design system"),colorOnSurface:Ee.external(Ae.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Ee.external(Ae.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Ee.external(Ae.borderRadiusS,"Design system"),colorError:Ee.external(Ae.colorError,"Design system"),prefixColor:Ee.extend("--ft-text-field-prefix-color","",Ae.colorOnSurfaceMedium),iconColor:Ee.extend("--ft-text-field-icon-color","",Ae.colorOnSurfaceMedium),floatingZIndex:Ee.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:Ee.external(Ae.colorSurface,"Design system"),colorOutline:Ee.external(Ae.colorOutline,"Design system"),elevation02:Ee.external(Ae.elevation02,"Design system"),suggestSize:Ee.create("--ft-text-field-suggest-size","","SIZE","300px")},_s=Et`
1479
+ `:this.editorMode?"Select a context and a label key.":fe}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Es.elementDefinitions={},Es.styles=rs,Cs([Zo()],Es.prototype,"editorMode",void 0),Cs([k()],Es.prototype,"context",void 0),Cs([k()],Es.prototype,"key",void 0),Cs([W([])],Es.prototype,"args",void 0),Cs([k()],Es.prototype,"defaultMessage",void 0);class ks{static build(t){return new ks(t)}static fromGwt(t){return new ks(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>fs.resolveMessage(this.name,e,...t)})}}const Rs=(t,e)=>(i,o)=>{var r,n;i.constructor.createProperty(o,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:o};i[ws]=null!==(n=i[ws])&&void 0!==n?n:new Map,i[ws].set(o,a)};T("ft-i18n")(Es);const Is=ks.build("integratedFeedbackComponent"),Us={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},Ls=ks.build("inDesignerFeedbackComponent"),As={ratingNotConfigured:"Rating unavailable: no rating configured for this content.",missingRatingRole:"Rating unavailable: missing role RATING_USER.",missingFeedbackRole:"Feedback unavailable: missing role FEEDBACK_USER.",inDesignerOnlyNotice:"This notice will not appear outside this designer.",feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."},_s={fontSize:Ee.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:Ee.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:Ee.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ee.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:Ee.extend("--ft-text-field-helper-color","",Ae.colorOnSurfaceMedium),colorPrimary:Ee.external(Ae.colorPrimary,"Design system"),colorOnSurface:Ee.external(Ae.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Ee.external(Ae.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Ee.external(Ae.borderRadiusS,"Design system"),colorError:Ee.external(Ae.colorError,"Design system"),prefixColor:Ee.extend("--ft-text-field-prefix-color","",Ae.colorOnSurfaceMedium),iconColor:Ee.extend("--ft-text-field-icon-color","",Ae.colorOnSurfaceMedium),floatingZIndex:Ee.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:Ee.external(Ae.colorSurface,"Design system"),colorOutline:Ee.external(Ae.colorOutline,"Design system"),elevation02:Ee.external(Ae.elevation02,"Design system"),suggestSize:Ee.create("--ft-text-field-suggest-size","","SIZE","300px")},Ts=Et`
1476
1480
  *:focus {
1477
1481
  outline: none;
1478
1482
  }
@@ -1485,16 +1489,16 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1485
1489
  }
1486
1490
 
1487
1491
  ft-input-label {
1488
- ${ke(Aa.fontSize,As.fontSize)};
1489
- ${ke(Aa.raisedFontSize,As.labelSize)};
1490
- ${ke(Aa.verticalSpacing,As.verticalSpacing)};
1491
- ${ke(Aa.horizontalSpacing,As.horizontalSpacing)};
1492
+ ${ke(_a.fontSize,_s.fontSize)};
1493
+ ${ke(_a.raisedFontSize,_s.labelSize)};
1494
+ ${ke(_a.verticalSpacing,_s.verticalSpacing)};
1495
+ ${ke(_a.horizontalSpacing,_s.horizontalSpacing)};
1492
1496
  }
1493
1497
 
1494
1498
  .ft-text-field--main-panel {
1495
1499
  position: relative;
1496
1500
  display: flex;
1497
- height: calc(4 * ${As.verticalSpacing} + ${As.labelSize} + ${As.fontSize});
1501
+ height: calc(4 * ${_s.verticalSpacing} + ${_s.labelSize} + ${_s.fontSize});
1498
1502
  }
1499
1503
 
1500
1504
  .ft-text-field--input-panel {
@@ -1503,24 +1507,24 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1503
1507
  display: flex;
1504
1508
  align-items: center;
1505
1509
  overflow: hidden;
1506
- padding: 0 ${As.horizontalSpacing};
1510
+ padding: 0 ${_s.horizontalSpacing};
1507
1511
 
1508
- ${ke(kr.fontSize,As.fontSize)};
1509
- ${ke(kr.lineHeight,As.fontSize)};
1512
+ ${ke(Rr.fontSize,_s.fontSize)};
1513
+ ${ke(Rr.lineHeight,_s.fontSize)};
1510
1514
  }
1511
1515
 
1512
1516
  .ft-text-field--input-panel ft-ripple {
1513
- ${ke(or.opacityContentOnSurfaceHover,"0.08")};
1514
- ${ke(or.opacityContentOnSurfacePressed,"0.04")};
1517
+ ${ke(rr.opacityContentOnSurfaceHover,"0.08")};
1518
+ ${ke(rr.opacityContentOnSurfacePressed,"0.04")};
1515
1519
  }
1516
1520
 
1517
1521
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
1518
1522
  align-items: flex-end;
1519
- padding: 0 ${As.horizontalSpacing} ${As.verticalSpacing} ${As.horizontalSpacing};
1523
+ padding: 0 ${_s.horizontalSpacing} ${_s.verticalSpacing} ${_s.horizontalSpacing};
1520
1524
  }
1521
1525
 
1522
1526
  .ft-text-field--prefix {
1523
- color: ${As.prefixColor};
1527
+ color: ${_s.prefixColor};
1524
1528
  margin-right: 2px;
1525
1529
  flex-shrink: 1;
1526
1530
  overflow: hidden;
@@ -1539,15 +1543,15 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1539
1543
  flex-shrink: 1;
1540
1544
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
1541
1545
 
1542
- color: ${As.colorOnSurface};
1543
- padding: calc(2 * ${As.verticalSpacing}) 0;
1546
+ color: ${_s.colorOnSurface};
1547
+ padding: calc(2 * ${_s.verticalSpacing}) 0;
1544
1548
  border: none;
1545
1549
  background: none;
1546
1550
  }
1547
1551
 
1548
1552
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
1549
1553
  padding-bottom: 0;
1550
- padding-top: calc(${As.labelSize} + 2 * ${As.verticalSpacing});
1554
+ padding-top: calc(${_s.labelSize} + 2 * ${_s.verticalSpacing});
1551
1555
  }
1552
1556
 
1553
1557
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -1556,37 +1560,37 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1556
1560
  }
1557
1561
 
1558
1562
  .ft-text-field--disabled .ft-text-field--input {
1559
- color: ${As.colorOnSurfaceDisabled};
1563
+ color: ${_s.colorOnSurfaceDisabled};
1560
1564
  }
1561
1565
 
1562
1566
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1563
- ${ke(Aa.borderColor,As.colorPrimary)};
1564
- ${ke(Aa.textColor,As.colorPrimary)};
1567
+ ${ke(_a.borderColor,_s.colorPrimary)};
1568
+ ${ke(_a.textColor,_s.colorPrimary)};
1565
1569
  }
1566
1570
 
1567
1571
  .ft-text-field--filled .ft-text-field--input-panel {
1568
- border-radius: ${As.borderRadiusS} ${As.borderRadiusS} 0 0;
1572
+ border-radius: ${_s.borderRadiusS} ${_s.borderRadiusS} 0 0;
1569
1573
  }
1570
1574
 
1571
1575
  .ft-text-field--outlined .ft-text-field--input-panel {
1572
- border-radius: ${As.borderRadiusS};
1576
+ border-radius: ${_s.borderRadiusS};
1573
1577
  }
1574
1578
 
1575
1579
  .ft-text-field--helper-text {
1576
- padding: 0 12px 0 ${As.horizontalSpacing};
1577
- color: ${As.helperColor};
1580
+ padding: 0 12px 0 ${_s.horizontalSpacing};
1581
+ color: ${_s.helperColor};
1578
1582
  }
1579
1583
 
1580
1584
  .ft-text-field--in-error .ft-text-field--input,
1581
1585
  .ft-text-field--in-error .ft-text-field--helper-text,
1582
1586
  .ft-text-field--in-error .ft-text-field--prefix {
1583
- color: ${As.colorError};
1587
+ color: ${_s.colorError};
1584
1588
  }
1585
1589
 
1586
1590
  .ft-text-field--icon {
1587
1591
  align-self: center;
1588
1592
  margin-left: 8px;
1589
- color: ${As.iconColor};
1593
+ color: ${_s.iconColor};
1590
1594
  }
1591
1595
 
1592
1596
  .ft-text-field--container {
@@ -1599,13 +1603,13 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1599
1603
  position: absolute;
1600
1604
  left: 0;
1601
1605
  right: 0;
1602
- z-index: ${As.floatingZIndex};
1603
- background: ${As.colorSurface};
1604
- border: 1px solid ${As.colorOutline};
1605
- border-radius: 0 0 ${As.borderRadiusS} ${As.borderRadiusS};
1606
- box-shadow: ${As.elevation02};
1606
+ z-index: ${_s.floatingZIndex};
1607
+ background: ${_s.colorSurface};
1608
+ border: 1px solid ${_s.colorOutline};
1609
+ border-radius: 0 0 ${_s.borderRadiusS} ${_s.borderRadiusS};
1610
+ box-shadow: ${_s.elevation02};
1607
1611
  outline: none;
1608
- max-height: ${As.suggestSize};
1612
+ max-height: ${_s.suggestSize};
1609
1613
  overflow-y: auto;
1610
1614
  }
1611
1615
 
@@ -1622,14 +1626,14 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1622
1626
  }
1623
1627
 
1624
1628
  .ft-text-field--with-icon {
1625
- ${ke(Aa.labelMaxWidth,`calc(100% - ${hn.size} - ${Aa.horizontalSpacing})`)};
1629
+ ${ke(_a.labelMaxWidth,`calc(100% - ${fn.size} - ${_a.horizontalSpacing})`)};
1626
1630
  }
1627
1631
 
1628
1632
  .ft-text-field--with-password ft-icon:hover {
1629
1633
  cursor: pointer;
1630
1634
  }
1631
- `;var Ts=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ws extends(Ho(Be,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=ea.EYE_SLASH,this.passwordRevealedIcon=ea.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return ce`
1632
- <div class="${ya(t)}">
1635
+ `;var Ws=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ds extends(Go(Be,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=ia.EYE_SLASH,this.passwordRevealedIcon=ia.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return ce`
1636
+ <div class="${ga(t)}">
1633
1637
  <div class="ft-text-field--main-panel"
1634
1638
  @keydown=${this.handleKeyboardNavigation}
1635
1639
  @focusout=${this.onMainPanelBlur}>
@@ -1679,7 +1683,7 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1679
1683
  .variant=${this.iconVariant}
1680
1684
  .value=${this.icon}
1681
1685
  @click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
1682
- `:fe}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}Ws.elementDefinitions={"ft-input-label":Wa,"ft-ripple":ba,"ft-typography":Vn,"ft-icon":na},Ws.styles=[Qr,_s],Ts([k()],Ws.prototype,"label",void 0),Ts([k({noAccessor:!0})],Ws.prototype,"value",null),Ts([R()],Ws.prototype,"dispatchedValue",void 0),Ts([k()],Ws.prototype,"helper",void 0),Ts([k({type:Boolean})],Ws.prototype,"outlined",void 0),Ts([k({type:Boolean})],Ws.prototype,"disabled",void 0),Ts([k({type:Boolean})],Ws.prototype,"error",void 0),Ts([k()],Ws.prototype,"prefix",void 0),Ts([k()],Ws.prototype,"icon",void 0),Ts([k()],Ws.prototype,"passwordHiddenIcon",void 0),Ts([k()],Ws.prototype,"passwordRevealedIcon",void 0),Ts([k()],Ws.prototype,"iconVariant",void 0),Ts([k({type:Boolean})],Ws.prototype,"filterSuggestions",void 0),Ts([k({type:Number})],Ws.prototype,"maxLength",void 0),Ts([k({type:Boolean})],Ws.prototype,"password",void 0),Ts([R()],Ws.prototype,"focused",void 0),Ts([R()],Ws.prototype,"hidePassword",void 0),Ts([R()],Ws.prototype,"suggestionsOnTop",void 0),Ts([R()],Ws.prototype,"hideSuggestions",void 0),Ts([R()],Ws.prototype,"visibleSuggestions",void 0),Ts([U(".ft-text-field--main-panel")],Ws.prototype,"mainPanel",void 0),Ts([U(".ft-text-field--input")],Ws.prototype,"input",void 0),Ts([U(".ft-text-field--suggestions")],Ws.prototype,"suggestionsContainer",void 0),Ts([function(t){return(e,i)=>{const{slot:o,selector:r}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return I(0,0,{get(){const e=this.renderRoot?.querySelector(n),i=e?.assignedElements(t)??[];return void 0===r?i:i.filter((t=>t.matches(r)))}})}}({selector:"ft-text-field-suggestion"})],Ws.prototype,"suggestions",void 0);const Ds=Et`
1686
+ `:fe}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}Ds.elementDefinitions={"ft-input-label":Da,"ft-ripple":va,"ft-typography":qn,"ft-icon":aa},Ds.styles=[tn,Ts],Ws([k()],Ds.prototype,"label",void 0),Ws([k({noAccessor:!0})],Ds.prototype,"value",null),Ws([R()],Ds.prototype,"dispatchedValue",void 0),Ws([k()],Ds.prototype,"helper",void 0),Ws([k({type:Boolean})],Ds.prototype,"outlined",void 0),Ws([k({type:Boolean})],Ds.prototype,"disabled",void 0),Ws([k({type:Boolean})],Ds.prototype,"error",void 0),Ws([k()],Ds.prototype,"prefix",void 0),Ws([k()],Ds.prototype,"icon",void 0),Ws([k()],Ds.prototype,"passwordHiddenIcon",void 0),Ws([k()],Ds.prototype,"passwordRevealedIcon",void 0),Ws([k()],Ds.prototype,"iconVariant",void 0),Ws([k({type:Boolean})],Ds.prototype,"filterSuggestions",void 0),Ws([k({type:Number})],Ds.prototype,"maxLength",void 0),Ws([k({type:Boolean})],Ds.prototype,"password",void 0),Ws([R()],Ds.prototype,"focused",void 0),Ws([R()],Ds.prototype,"hidePassword",void 0),Ws([R()],Ds.prototype,"suggestionsOnTop",void 0),Ws([R()],Ds.prototype,"hideSuggestions",void 0),Ws([R()],Ds.prototype,"visibleSuggestions",void 0),Ws([U(".ft-text-field--main-panel")],Ds.prototype,"mainPanel",void 0),Ws([U(".ft-text-field--input")],Ds.prototype,"input",void 0),Ws([U(".ft-text-field--suggestions")],Ds.prototype,"suggestionsContainer",void 0),Ws([function(t){return(e,i)=>{const{slot:o,selector:r}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return I(0,0,{get(){const e=this.renderRoot?.querySelector(n),i=e?.assignedElements(t)??[];return void 0===r?i:i.filter((t=>t.matches(r)))}})}}({selector:"ft-text-field-suggestion"})],Ds.prototype,"suggestions",void 0);const Fs=Et`
1683
1687
  .ft-text-field-suggestion {
1684
1688
  position: relative;
1685
1689
  padding: 8px 16px;
@@ -1704,7 +1708,7 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1704
1708
  slot {
1705
1709
  pointer-events: none;
1706
1710
  }
1707
- `;var Fs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ps extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Ms extends Be{render(){return ce`
1711
+ `;var Ps=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ms extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class zs extends Be{render(){return ce`
1708
1712
  <div class="ft-text-field-suggestion"
1709
1713
  tabindex="-1"
1710
1714
  @keydown=${this.onKeyDown}
@@ -1716,15 +1720,15 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1716
1720
  <slot></slot>
1717
1721
  </ft-typography>
1718
1722
  </div>
1719
- `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Ps(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Ms.elementDefinitions={"ft-ripple":ba,"ft-typography":Vn,"ft-icon":na},Ms.styles=Ds,Fs([k()],Ms.prototype,"value",void 0),Fs([U(".ft-text-field-suggestion")],Ms.prototype,"container",void 0),Fs([L()],Ms.prototype,"assignedNodes",void 0),T("ft-text-field")(Ws),T("ft-text-field-suggestion")(Ms);class zs{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,i){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,i)),null==t.tocId?this.extractPagesToc(t.children,e,i):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,i){return t.flatMap((t=>{var o,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(o=t.pageToc)&&void 0!==o?o:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:i,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,i){return t.flatMap((t=>{var o;let r=null===(o=t.prettyUrl)||void 0===o?void 0:o.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:i,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var i,o,r,n,a,s;const l={number:this.pages.length+1,title:null!==(i=t.title)&&void 0!==i?i:"",rootTocId:null!==(o=t.tocId)&&void 0!==o?o:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),h=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,h[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class js{convertPaginatedToc(t){return new zs(t).build()}}class Bs{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i,o){this.converter=t,this.api=e,this.cache=i,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return Mn(null!==(e=null===(t=ns.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getLink(t,e,i){const o=this.getNavigationData(t,e,i),r=this.getReaderLinkPrefix()+(o.prettyUrl?o.prettyUrl:`${o.mapId}/${o.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=o.page&&n.searchParams.set("page",`${o.page}`),o.prettyUrlDuplicated&&n.searchParams.set("tocId",o.tocId),null!=o.section&&n.searchParams.set("section",o.section),n.href}getNavigationData(t,e,i){var o,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(o=null==s?void 0:s.title)&&void 0!==o?o:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var i;return e?{type:e.topics.type,rating:null===(i=e.topics)||void 0===i?void 0:i.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,i){return this.makeRateTopicRequest(t,e,i).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=ns.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),i=[{tocId:e.tocId,title:e.title}],o=this.getTocNodeNow(e.parentTocId);for(;o;)i.unshift({tocId:o.tocId,title:o.title}),o=this.getTocNodeNow(o.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){if(!this.isFeatureAvailable(t))return!1;switch(t){case Xo.FEEDBACK:return Mn(null!=e?e:[],Dn.FEEDBACK_USER);case Xo.RATING:return Mn(null!=e?e:[],Dn.RATING_USER)&&null!=i&&i!==En.NO_RATING;case Xo.PRINT:return Mn(null!=e?e:[],Dn.PRINT_USER);case Xo.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case Xo.COLLECTIONS:return Mn(null!=e?e:[],Dn.COLLECTION_USER);default:return!1}}}class Ks extends Bs{static async build(t){return new Ks(new js,await as.await(),new o,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){var e;const i=await this.api.getMap(t);return this.fingerprint=null===(e=i.lastPublication)||void 0===e?void 0:e.replace(/\D/g,""),i}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Zs{static build(t,e){return new Zs((t=>Bo.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0}}))(t.trim()||"context"),null!=e?e:Ks.build)}constructor(t,e){this.store=t,this.reloadDebouncer=new r(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){for(;null==this.service;)await A(5);return this.service}async navigateToTopic(t,e,i){const o=await this.awaitService(),r=await(null!=i?o.getPage(i):o.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var i,o,r;let n=null!==(i="root"===t?void 0:t)&&void 0!==i?i:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(o=e.topics[0])&&void 0!==o?o:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let i=await e.getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async reload(){var t,e;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),null===(t=this.service)||void 0===t||t.clear(),(null===(e=this.service)||void 0===e?void 0:e.mapId)&&await this.reloadDebouncer.run((()=>this.fetchData()))}async fetchData(){var t,i,o,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(i=this.service)||void 0===i?void 0:i.getMap().then((t=>this.store.actions.map(t))),null===(o=this.service)||void 0===o?void 0:o.getToc().then((t=>this.store.actions.toc(t))),null===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))])}catch(t){!this.errorHandler||t instanceof e||this.errorHandler(t)}}}const Hs=Et`
1720
- `;class Gs extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Vs extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class qs extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Ys extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class Xs extends Event{constructor(){super("ft-reader-map-not-found")}}class Js extends Event{constructor(){super("ft-reader-map-unauthorized")}}var Qs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class tl extends ti{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new r(5),this.navigationDebouncer=new r(10),this.addStore(ns)}render(){return ce`
1723
+ `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Ms(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}zs.elementDefinitions={"ft-ripple":va,"ft-typography":qn,"ft-icon":aa},zs.styles=Fs,Ps([k()],zs.prototype,"value",void 0),Ps([U(".ft-text-field-suggestion")],zs.prototype,"container",void 0),Ps([L()],zs.prototype,"assignedNodes",void 0),T("ft-text-field")(Ds),T("ft-text-field-suggestion")(zs);class js{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,i){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,i)),null==t.tocId?this.extractPagesToc(t.children,e,i):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,i){return t.flatMap((t=>{var o,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(o=t.pageToc)&&void 0!==o?o:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:i,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,i){return t.flatMap((t=>{var o;let r=null===(o=t.prettyUrl)||void 0===o?void 0:o.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:i,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var i,o,r,n,a,s;const l={number:this.pages.length+1,title:null!==(i=t.title)&&void 0!==i?i:"",rootTocId:null!==(o=t.tocId)&&void 0!==o?o:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),h=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,h[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class Bs{convertPaginatedToc(t){return new js(t).build()}}class Ks{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i,o){this.converter=t,this.api=e,this.cache=i,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return zn(null!==(e=null===(t=as.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getLink(t,e,i){const o=this.getNavigationData(t,e,i),r=this.getReaderLinkPrefix()+(o.prettyUrl?o.prettyUrl:`${o.mapId}/${o.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=o.page&&n.searchParams.set("page",`${o.page}`),o.prettyUrlDuplicated&&n.searchParams.set("tocId",o.tocId),null!=o.section&&n.searchParams.set("section",o.section),n.href}getNavigationData(t,e,i){var o,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(o=null==s?void 0:s.title)&&void 0!==o?o:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var i;return e?{type:e.topics.type,rating:null===(i=e.topics)||void 0===i?void 0:i.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,i){return this.makeRateTopicRequest(t,e,i).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=as.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),i=[{tocId:e.tocId,title:e.title}],o=this.getTocNodeNow(e.parentTocId);for(;o;)i.unshift({tocId:o.tocId,title:o.title}),o=this.getTocNodeNow(o.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){if(!this.isFeatureAvailable(t))return!1;switch(t){case Jo.FEEDBACK:return zn(null!=e?e:[],Fn.FEEDBACK_USER);case Jo.RATING:return zn(null!=e?e:[],Fn.RATING_USER)&&null!=i&&i!==kn.NO_RATING;case Jo.PRINT:return zn(null!=e?e:[],Fn.PRINT_USER);case Jo.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case Jo.COLLECTIONS:return zn(null!=e?e:[],Fn.COLLECTION_USER);case Jo.PERSONAL_BOOKS:return zn(null!=e?e:[],Fn.PERSONAL_BOOK_USER);default:return!1}}}class Zs extends Ks{static async build(t){return new Zs(new Bs,await ss.await(),new o,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){var e;const i=await this.api.getMap(t);return this.fingerprint=null===(e=i.lastPublication)||void 0===e?void 0:e.replace(/\D/g,""),i}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Hs{static build(t,e){return new Hs((t=>Ko.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0}}))(t.trim()||"context"),null!=e?e:Zs.build)}constructor(t,e){this.store=t,this.reloadDebouncer=new r(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){for(;null==this.service;)await A(5);return this.service}async navigateToTopic(t,e,i){const o=await this.awaitService(),r=await(null!=i?o.getPage(i):o.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var i,o,r;let n=null!==(i="root"===t?void 0:t)&&void 0!==i?i:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(o=e.topics[0])&&void 0!==o?o:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let i=await e.getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async reload(){var t,e;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),null===(t=this.service)||void 0===t||t.clear(),(null===(e=this.service)||void 0===e?void 0:e.mapId)&&await this.reloadDebouncer.run((()=>this.fetchData()))}async fetchData(){var t,i,o,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(i=this.service)||void 0===i?void 0:i.getMap().then((t=>this.store.actions.map(t))),null===(o=this.service)||void 0===o?void 0:o.getToc().then((t=>this.store.actions.toc(t))),null===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))])}catch(t){!this.errorHandler||t instanceof e||this.errorHandler(t)}}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}}const Gs=Et`
1724
+ `;class Vs extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class qs extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Ys extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Xs extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class Js extends Event{constructor(){super("ft-reader-map-not-found")}}class Qs extends Event{constructor(){super("ft-reader-map-unauthorized")}}var tl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class el extends ei{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new r(5),this.navigationDebouncer=new r(10),this.addStore(as)}render(){return ce`
1721
1725
  ${this.importStyleIfNeeded()}
1722
1726
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1723
1727
  `}importStyleIfNeeded(){var t,e;const i=null===(t=this.stateManager.service)||void 0===t?void 0:t.themeStylesheet();return!i||window.location.href.startsWith(null!==(e=this.baseUrl)&&void 0!==e?e:"")?fe:ce`
1724
1728
  <style>
1725
1729
  @import "${i}"
1726
1730
  </style>
1727
- `}get stateManager(){return null==this._stateManager&&(this._stateManager=Zs.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&this.stateManager.setMapId(this.mapId),["tocId","section","page","mapId"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.map&&this.toc&&this.dispatchEvent(new Gs(this.map,this.toc)),t.has("scrollTarget")&&null==(null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)){const e=t.get("scrollTarget");null!=(null==e?void 0:e.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(e.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,e.section).then((t=>this.dispatchEvent(new qs(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var e;return this.stateManager.service.getAccurateNavigationData(t,null===(e=this.currentPage)||void 0===e?void 0:e.number)}))).then((t=>{let e=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var e;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(e=this.stateManager.service)||void 0===e?void 0:e.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new Vs(this.map,e))}))}async reload(){await this.stateManager.reload(),this.navigateToTarget()}navigateToTarget(){this.navigationDebouncer.run((()=>{null!=this.tocId?this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const e=t;404===e.status?this.dispatchEvent(new Xs):401===e.status?this.dispatchEvent(new Js):this.dispatchEvent(new Ys(t))}reloadBookmarks(){vs.reloadBookmarks()}}var el;tl.styles=Hs,Qs([Ko({store:ns.name})],tl.prototype,"baseUrl",void 0),Qs([k()],tl.prototype,"mapId",void 0),Qs([k()],tl.prototype,"tocId",void 0),Qs([k()],tl.prototype,"section",void 0),Qs([k({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:el}})],tl.prototype,"page",void 0),Qs([Ko({store:"reader"})],tl.prototype,"map",void 0),Qs([Ko({store:"reader"})],tl.prototype,"toc",void 0),Qs([Ko({store:"reader"})],tl.prototype,"visibleTopics",void 0),Qs([Ko({store:"reader"})],tl.prototype,"currentPage",void 0),Qs([Ko({store:"reader"})],tl.prototype,"scrollTarget",void 0),Qs([k({attribute:!1})],tl.prototype,"readerServiceProvider",void 0),T("ft-reader-context")(tl);var il=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ol extends(Os(er)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(Rs,Is),this.addI18nContext(Us,Ls)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Xo.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Xo.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get userHasRatingRole(){return this.session&&Mn(this.session,"RATING_USER")}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==i?i:"NO_RATING"}get ratingValue(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==i?i:-1}get ratingDate(){var t,e;const i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.date;return"string"==typeof i?((o=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(o=o.replace(/-/g,"/")),o=o.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,o)=>e+i+":"+o)),new Date(o)):i;var o}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?ce`
1731
+ `}get stateManager(){return null==this._stateManager&&(this._stateManager=Hs.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&this.stateManager.setMapId(this.mapId),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.map&&this.toc&&this.dispatchEvent(new Vs(this.map,this.toc)),t.has("scrollTarget")&&null==(null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)){const e=t.get("scrollTarget");null!=(null==e?void 0:e.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(e.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,e.section).then((t=>this.dispatchEvent(new Ys(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var e;return this.stateManager.service.getAccurateNavigationData(t,null===(e=this.currentPage)||void 0===e?void 0:e.number)}))).then((t=>{let e=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var e;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(e=this.stateManager.service)||void 0===e?void 0:e.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new qs(this.map,e))}))}async reload(){await this.stateManager.reload(),this.navigateToTarget()}navigateToTarget(){this.navigationDebouncer.run((()=>{null!=this.tocId?this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const e=t;404===e.status?this.dispatchEvent(new Js):401===e.status?this.dispatchEvent(new Qs):this.dispatchEvent(new Xs(t))}reloadBookmarks(){ms.reloadBookmarks()}}var il;el.styles=Gs,tl([Zo({store:as.name})],el.prototype,"baseUrl",void 0),tl([k()],el.prototype,"mapId",void 0),tl([k()],el.prototype,"tocId",void 0),tl([k()],el.prototype,"section",void 0),tl([k()],el.prototype,"searchInDocumentQuery",void 0),tl([k({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:il}})],el.prototype,"page",void 0),tl([Zo({store:"reader"})],el.prototype,"map",void 0),tl([Zo({store:"reader"})],el.prototype,"toc",void 0),tl([Zo({store:"reader"})],el.prototype,"visibleTopics",void 0),tl([Zo({store:"reader"})],el.prototype,"currentPage",void 0),tl([Zo({store:"reader"})],el.prototype,"scrollTarget",void 0),tl([k({attribute:!1})],el.prototype,"readerServiceProvider",void 0),T("ft-reader-context")(el);var ol=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class rl extends(Ss(ir)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(Is,Us),this.addI18nContext(Ls,As)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Jo.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Jo.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get userHasRatingRole(){return this.session&&zn(this.session,"RATING_USER")}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==i?i:"NO_RATING"}get ratingValue(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==i?i:-1}get ratingDate(){var t,e;const i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.date;return"string"==typeof i?((o=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(o=o.replace(/-/g,"/")),o=o.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,o)=>e+i+":"+o)),new Date(o)):i;var o}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?ce`
1728
1732
  <div class="ft-reader-feedback">
1729
1733
  ${this.hideTitle?fe:ce`
1730
1734
  <ft-typography variant="title" part="main-title">
@@ -1744,11 +1748,11 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1744
1748
  ${this.renderRatingDate()}
1745
1749
  </ft-typography>
1746
1750
  </div>
1747
- `:this.placeholderInEditor(this.userHasRatingRole?Us.messages.ratingNotConfigured():Us.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return Rs.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return Rs.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?Rs.messages.ratedToday():Rs.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return ce`
1751
+ `:this.placeholderInEditor(this.userHasRatingRole?Ls.messages.ratingNotConfigured():Ls.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return Is.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return Is.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?Is.messages.ratedToday():Is.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return ce`
1748
1752
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1749
- ${Va(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const o=e+1;return ce`
1753
+ ${qa(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const o=e+1;return ce`
1750
1754
  <ft-button round part="rating-stars-${o}"
1751
- label="${Rs.messages.starsRating(o)}"
1755
+ label="${Is.messages.starsRating(o)}"
1752
1756
  tooltipPosition="top"
1753
1757
  .iconVariant=${this.iconVariant}
1754
1758
  icon="${i?this.filledStarIcon:this.emptyStarIcon}"
@@ -1765,13 +1769,13 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1765
1769
  ?selected=${e}
1766
1770
  .iconVariant=${this.iconVariant}
1767
1771
  icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
1768
- ${Rs.messages.like()}
1772
+ ${Is.messages.like()}
1769
1773
  </ft-switch-option>
1770
1774
  <ft-switch-option .value=${0}
1771
1775
  ?selected=${t}
1772
1776
  .iconVariant=${this.iconVariant}
1773
1777
  icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
1774
- ${Rs.messages.dislike()}
1778
+ ${Is.messages.dislike()}
1775
1779
  </ft-switch-option>
1776
1780
  </ft-switch>
1777
1781
  `;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,o="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return ce`
@@ -1780,11 +1784,11 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1780
1784
  part="rating rating-dichotomous">
1781
1785
  <ft-switch-option .value=${1}
1782
1786
  ?selected=${o}>
1783
- ${Rs.messages.dichotomousYes()}
1787
+ ${Is.messages.dichotomousYes()}
1784
1788
  </ft-switch-option>
1785
1789
  <ft-switch-option .value=${0}
1786
1790
  ?selected=${i}>
1787
- ${Rs.messages.dichotomousNo()}
1791
+ ${Is.messages.dichotomousNo()}
1788
1792
  </ft-switch-option>
1789
1793
  </ft-switch>
1790
1794
  `}return fe}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,i;if(this.canAccessFeedback){const o=this.feedbackMailLinkBuilder(this.feedbackMessage);let r=ce`
@@ -1793,7 +1797,7 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1793
1797
  class="ft-reader-feedback--send-feedback"
1794
1798
  ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1795
1799
  part="send-feedback">
1796
- ${Rs.messages.okButton()}
1800
+ ${Is.messages.okButton()}
1797
1801
  </ft-button>
1798
1802
  `;return o&&(r=ce`
1799
1803
  <a class="ft-reader-feedback--feedback-link" href="${o}">
@@ -1808,28 +1812,28 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1808
1812
  ${null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers)?ce`
1809
1813
  <ft-text-field outlined name="email" type="email" autocomplete="email"
1810
1814
  class="ft-reader-feedback--from-input"
1811
- label=${Rs.messages.feedbackfromEmail()}
1815
+ label=${Is.messages.feedbackfromEmail()}
1812
1816
  @change=${t=>this.from=t.detail.trim()}
1813
1817
  ?error=${this.from&&!this.validFromEmail()}
1814
- helper=${this.from&&!this.validFromEmail()?Rs.messages.feedbackfromEmailInvalid():""}
1818
+ helper=${this.from&&!this.validFromEmail()?Is.messages.feedbackfromEmailInvalid():""}
1815
1819
  />
1816
1820
  `:fe}
1817
1821
  <ft-text-area outlined
1818
1822
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1819
- label="${Rs.messages.feedbackInputLabel()}"
1823
+ label="${Is.messages.feedbackInputLabel()}"
1820
1824
  @live-change=${t=>this.feedbackMessage=t.detail.trim()}
1821
1825
  ></ft-text-area>
1822
1826
  ${r}
1823
1827
  </form>
1824
- `}return this.placeholderInEditor(Us.messages.missingFeedbackRole())}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,i;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new CustomEvent("send-feedback",{detail:{message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}}))}placeholderInEditor(t){return this.editorMode?ce`
1828
+ `}return this.placeholderInEditor(Ls.messages.missingFeedbackRole())}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,i;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new CustomEvent("send-feedback",{detail:{message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}}))}placeholderInEditor(t){return this.editorMode?ce`
1825
1829
  <div class="ft-reader-feedback--placeholder">
1826
1830
  <ft-typography variant="caption">${t}</ft-typography>
1827
1831
  <ft-tooltip position="left"
1828
- text="${Us.messages.inDesignerOnlyNotice()}">
1832
+ text="${Ls.messages.inDesignerOnlyNotice()}">
1829
1833
  <ft-icon>INFO</ft-icon>
1830
1834
  </ft-tooltip>
1831
1835
  </div>
1832
- `:fe}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}ol.elementDefinitions={"ft-button":Qa,"ft-typography":Vn,"ft-icon":na,"ft-tooltip":pa,"ft-switch":Ca,"ft-switch-option":Sa,"ft-text-area":Ma,"ft-text-field":Ws},ol.styles=Sn,il([k({type:Boolean})],ol.prototype,"editorMode",void 0),il([k({type:Boolean})],ol.prototype,"hideTitle",void 0),il([k({type:Boolean})],ol.prototype,"ratingAllowed",void 0),il([k({attribute:!1})],ol.prototype,"i18nProperties",void 0),il([k({attribute:!1})],ol.prototype,"ratingSummary",void 0),il([k({attribute:!1})],ol.prototype,"session",void 0),il([U(".ft-reader-feedback--feedback-input")],ol.prototype,"feedbackInput",void 0),il([R()],ol.prototype,"from",void 0),il([R()],ol.prototype,"feedbackMessage",void 0),il([k()],ol.prototype,"iconVariant",void 0),il([k()],ol.prototype,"emptyStarIcon",void 0),il([k()],ol.prototype,"filledStarIcon",void 0),il([k()],ol.prototype,"emptyLikeIcon",void 0),il([k()],ol.prototype,"filledLikeIcon",void 0),il([k()],ol.prototype,"emptyDislikeIcon",void 0),il([k()],ol.prototype,"filledDislikeIcon",void 0),il([Ko({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],ol.prototype,"configuration",void 0),il([k()],ol.prototype,"feedbackMailLinkBuilder",void 0);const rl=Es.fromGwt("server");class nl{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,o,r){var n;this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(i,o.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(n=o.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}build(t){var e,i,o;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics))||(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))return;const r=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${rl.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${r}&body=${n}`}}var al=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class sl extends(Os(er)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=oa.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new nl,this.i18nProperties={feedbackMainTitle:Rs.properties.mapFeedbackMainTitle(),ratingSectionTitle:Rs.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Rs.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Rs.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new r(100),this.sendRatingDebouncer=new r(500),this.addStore(ns)}render(){return this.map&&(this.editorMode||this.componentVisible)?ce`
1836
+ `:fe}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}rl.elementDefinitions={"ft-button":ts,"ft-typography":qn,"ft-icon":aa,"ft-tooltip":ya,"ft-switch":Ea,"ft-switch-option":$a,"ft-text-area":za,"ft-text-field":Ds},rl.styles=$n,ol([k({type:Boolean})],rl.prototype,"editorMode",void 0),ol([k({type:Boolean})],rl.prototype,"hideTitle",void 0),ol([k({type:Boolean})],rl.prototype,"ratingAllowed",void 0),ol([k({attribute:!1})],rl.prototype,"i18nProperties",void 0),ol([k({attribute:!1})],rl.prototype,"ratingSummary",void 0),ol([k({attribute:!1})],rl.prototype,"session",void 0),ol([U(".ft-reader-feedback--feedback-input")],rl.prototype,"feedbackInput",void 0),ol([R()],rl.prototype,"from",void 0),ol([R()],rl.prototype,"feedbackMessage",void 0),ol([k()],rl.prototype,"iconVariant",void 0),ol([k()],rl.prototype,"emptyStarIcon",void 0),ol([k()],rl.prototype,"filledStarIcon",void 0),ol([k()],rl.prototype,"emptyLikeIcon",void 0),ol([k()],rl.prototype,"filledLikeIcon",void 0),ol([k()],rl.prototype,"emptyDislikeIcon",void 0),ol([k()],rl.prototype,"filledDislikeIcon",void 0),ol([Zo({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],rl.prototype,"configuration",void 0),ol([k()],rl.prototype,"feedbackMailLinkBuilder",void 0);const nl=ks.fromGwt("server");class al{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,o,r){var n;this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(i,o.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(n=o.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}build(t){var e,i,o;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics))||(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))return;const r=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${nl.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${r}&body=${n}`}}var sl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ll extends(Ss(ir)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=ra.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new al,this.i18nProperties={feedbackMainTitle:Is.properties.mapFeedbackMainTitle(),ratingSectionTitle:Is.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Is.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Is.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new r(100),this.sendRatingDebouncer=new r(500),this.addStore(as)}render(){return this.map&&(this.editorMode||this.componentVisible)?ce`
1833
1837
  <ft-reader-feedback
1834
1838
  ratingAllowed
1835
1839
  .i18nProperties=${this.i18nProperties}
@@ -1855,7 +1859,7 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1855
1859
  display: none !important;
1856
1860
  }
1857
1861
  </style>
1858
- `}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Xo.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(Xo.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,o,r;super.update(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new _e({type:"error",message:Rs.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _e({type:"info",message:Us.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new _e({type:"info",message:Us.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new _e({type:"info",message:Rs.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new _e({type:"error",message:Rs.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}sl.elementDefinitions={"ft-reader-feedback":ol},al([Ko({store:ns.name})],sl.prototype,"session",void 0),al([Ko({store:"reader"})],sl.prototype,"map",void 0),al([Ko({store:ns.name})],sl.prototype,"editorMode",void 0),al([Ko({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],sl.prototype,"configuration",void 0),al([R()],sl.prototype,"ratingSummary",void 0),al([k({type:Boolean})],sl.prototype,"hideTitle",void 0),al([k()],sl.prototype,"iconVariant",void 0),al([k()],sl.prototype,"emptyStarIcon",void 0),al([k()],sl.prototype,"filledStarIcon",void 0),al([k()],sl.prototype,"emptyLikeIcon",void 0),al([k()],sl.prototype,"filledLikeIcon",void 0),al([k()],sl.prototype,"emptyDislikeIcon",void 0),al([k()],sl.prototype,"filledDislikeIcon",void 0),al([U("ft-reader-feedback")],sl.prototype,"readerFeedback",void 0),al([ks(rl.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],sl.prototype,"mailSubject",void 0);var ll=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class cl extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const hl=Symbol("registerInterval");class fl extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[hl]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[hl]):this.dispatchEvent(new cl)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=hl,ll([R()],i.prototype,"tocNode",void 0),ll([R()],i.prototype,"disableContextInteractions",void 0),i}(er)){}var dl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ul extends(Os(fl)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=oa.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new nl,this.i18nProperties={feedbackMainTitle:Rs.properties.topicFeedbackMainTitle(),ratingSectionTitle:Rs.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Rs.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Rs.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new r(100),this.sendRatingDebouncer=new r(500),this.addStore(ns)}render(){return this.map&&this.tocNode&&(this.editorMode||this.componentVisible)?ce`
1862
+ `}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Jo.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(Jo.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,o,r;super.update(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new _e({type:"error",message:Is.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _e({type:"info",message:Ls.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new _e({type:"info",message:Ls.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new _e({type:"info",message:Is.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new _e({type:"error",message:Is.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}ll.elementDefinitions={"ft-reader-feedback":rl},sl([Zo({store:as.name})],ll.prototype,"session",void 0),sl([Zo({store:"reader"})],ll.prototype,"map",void 0),sl([Zo({store:as.name})],ll.prototype,"editorMode",void 0),sl([Zo({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],ll.prototype,"configuration",void 0),sl([R()],ll.prototype,"ratingSummary",void 0),sl([k({type:Boolean})],ll.prototype,"hideTitle",void 0),sl([k()],ll.prototype,"iconVariant",void 0),sl([k()],ll.prototype,"emptyStarIcon",void 0),sl([k()],ll.prototype,"filledStarIcon",void 0),sl([k()],ll.prototype,"emptyLikeIcon",void 0),sl([k()],ll.prototype,"filledLikeIcon",void 0),sl([k()],ll.prototype,"emptyDislikeIcon",void 0),sl([k()],ll.prototype,"filledDislikeIcon",void 0),sl([U("ft-reader-feedback")],ll.prototype,"readerFeedback",void 0),sl([Rs(nl.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],ll.prototype,"mailSubject",void 0);var cl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class hl extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const fl=Symbol("registerInterval");class dl extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[fl]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[fl]):this.dispatchEvent(new hl)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=fl,cl([R()],i.prototype,"tocNode",void 0),cl([R()],i.prototype,"disableContextInteractions",void 0),i}(ir)){}var ul=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class pl extends(Ss(dl)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=ra.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new al,this.i18nProperties={feedbackMainTitle:Is.properties.topicFeedbackMainTitle(),ratingSectionTitle:Is.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Is.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Is.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new r(100),this.sendRatingDebouncer=new r(500),this.addStore(as)}render(){return this.map&&this.tocNode&&(this.editorMode||this.componentVisible)?ce`
1859
1863
  <ft-reader-feedback
1860
1864
  .i18nProperties=${this.i18nProperties}
1861
1865
  ?ratingAllowed=${this.tocNode.hasRating}
@@ -1881,4 +1885,4 @@ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.par
1881
1885
  display: none !important;
1882
1886
  }
1883
1887
  </style>
1884
- `}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Xo.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(Xo.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,o,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new _e({type:"error",message:Rs.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _e({type:"info",message:Us.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await(null===(e=this.service)||void 0===e?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new _e({type:"info",message:Rs.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new _e({type:"info",message:Us.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new _e({type:"error",message:Rs.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}ul.elementDefinitions={"ft-reader-feedback":ol},dl([Ko({store:ns.name})],ul.prototype,"session",void 0),dl([Ko({store:"reader"})],ul.prototype,"map",void 0),dl([Ko({store:ns.name})],ul.prototype,"editorMode",void 0),dl([Ko({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],ul.prototype,"configuration",void 0),dl([R()],ul.prototype,"ratingSummary",void 0),dl([k({type:Boolean})],ul.prototype,"hideTitle",void 0),dl([k()],ul.prototype,"iconVariant",void 0),dl([k()],ul.prototype,"emptyStarIcon",void 0),dl([k()],ul.prototype,"filledStarIcon",void 0),dl([k()],ul.prototype,"emptyLikeIcon",void 0),dl([k()],ul.prototype,"filledLikeIcon",void 0),dl([k()],ul.prototype,"emptyDislikeIcon",void 0),dl([k()],ul.prototype,"filledDislikeIcon",void 0),dl([U("ft-reader-feedback")],ul.prototype,"readerFeedback",void 0),dl([ks(rl.properties["mail.feedback.subject"]((t=>{var e,i;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(i=t.map)||void 0===i?void 0:i.title]})))],ul.prototype,"mailSubject",void 0),T("ft-reader-map-feedback")(sl),T("ft-reader-topic-feedback")(ul),t.FtReaderFeedbackCssVariables=On,t.FtReaderMapFeedback=sl,t.FtReaderTopicFeedback=ul,t.styles=Sn}({});
1888
+ `}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Jo.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(Jo.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,o,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new _e({type:"error",message:Is.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _e({type:"info",message:Ls.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await(null===(e=this.service)||void 0===e?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new _e({type:"info",message:Is.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new _e({type:"info",message:Ls.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new _e({type:"error",message:Is.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}pl.elementDefinitions={"ft-reader-feedback":rl},ul([Zo({store:as.name})],pl.prototype,"session",void 0),ul([Zo({store:"reader"})],pl.prototype,"map",void 0),ul([Zo({store:as.name})],pl.prototype,"editorMode",void 0),ul([Zo({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],pl.prototype,"configuration",void 0),ul([R()],pl.prototype,"ratingSummary",void 0),ul([k({type:Boolean})],pl.prototype,"hideTitle",void 0),ul([k()],pl.prototype,"iconVariant",void 0),ul([k()],pl.prototype,"emptyStarIcon",void 0),ul([k()],pl.prototype,"filledStarIcon",void 0),ul([k()],pl.prototype,"emptyLikeIcon",void 0),ul([k()],pl.prototype,"filledLikeIcon",void 0),ul([k()],pl.prototype,"emptyDislikeIcon",void 0),ul([k()],pl.prototype,"filledDislikeIcon",void 0),ul([U("ft-reader-feedback")],pl.prototype,"readerFeedback",void 0),ul([Rs(nl.properties["mail.feedback.subject"]((t=>{var e,i;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(i=t.map)||void 0===i?void 0:i.title]})))],pl.prototype,"mailSubject",void 0),T("ft-reader-map-feedback")(ll),T("ft-reader-topic-feedback")(pl),t.FtReaderFeedbackCssVariables=Sn,t.FtReaderMapFeedback=ll,t.FtReaderTopicFeedback=pl,t.styles=$n}({});