@fluid-topics/ft-reader-feedback 1.0.58 → 1.0.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,n=window.customElements,o=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,o){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(o))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=o.prototype.attributeChangedCallback,l=new Set(o.observedAttributes||[]);d(o,l,a);const c={elementClass:o,connectedCallback:o.prototype.connectedCallback,disconnectedCallback:o.prototype.disconnectedCallback,adoptedCallback:o.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:o.formAssociated,formAssociatedCallback:o.prototype.formAssociatedCallback,formDisabledCallback:o.prototype.formDisabledCallback,formResetCallback:o.prototype.formResetCallback,formStateRestoreCallback:o.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(o,c);let h=i.call(n,t);h||(h=u(t),e.call(n,t,h)),this===window.customElements&&(s.set(o,c),c.standInClass=h);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)r.delete(t),p(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(o),this._whenDefinedPromises.delete(t)),o}upgrade(){b.push(this),n.upgrade.apply(n,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let n=this._awaitingUpgrade.get(e);n||this._awaitingUpgrade.set(e,n=new Set),i?n.add(t):n.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.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),o.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=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},u=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const n=h(i)||window.customElements,o=n._getDefinition(e);return o?p(i,o):r.set(i,n),i}connectedCallback(){const t=o.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=o.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=o.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=o.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=o.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=o.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=o.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o),i.call(this,r,t,o)}else n.call(this,r,o)});const o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n),i.call(this,n,t,null)}else o.call(this,n)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),o.set(t,e),l=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i=void 0)=>{const n=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=n.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const n=e.call(this,...i);return t.set(n,this),n},i.forEach((e=>{const i=window.ElementInternals.prototype,n=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==o.get(i).formAssociated)throw new DOMException(`Failed to execute ${n} on 'ElementInternals': The target element is not a form-associated custom element.`);n?.call(this,...e)}}));class n extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const n=t.getAttribute("name"),o=e.get(n)||[];this[+i]=t,o.push(t),e.set(n,o)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new n(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=o.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Wo){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(null!==i)try{t.bind(window.customElements)(e,i,n)}catch(t){console.info(e,i,n,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,n)=>t((t=>{this.isCanceled?n(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?n(new e("Promise has been canceled",void 0,t)):n(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class n{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,n){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const o=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=o,o.then((e=>(this.content[t]=e,null!=n&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),n)),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 o{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 n=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,o=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void n(t)}o(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,n=window.customElements,o=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,o){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(o))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=o.prototype.attributeChangedCallback,l=new Set(o.observedAttributes||[]);d(o,l,a);const c={elementClass:o,connectedCallback:o.prototype.connectedCallback,disconnectedCallback:o.prototype.disconnectedCallback,adoptedCallback:o.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:o.formAssociated,formAssociatedCallback:o.prototype.formAssociatedCallback,formDisabledCallback:o.prototype.formDisabledCallback,formResetCallback:o.prototype.formResetCallback,formStateRestoreCallback:o.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(o,c);let h=i.call(n,t);h||(h=u(t),e.call(n,t,h)),this===window.customElements&&(s.set(o,c),c.standInClass=h);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)r.delete(t),p(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(o),this._whenDefinedPromises.delete(t)),o}upgrade(){b.push(this),n.upgrade.apply(n,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let n=this._awaitingUpgrade.get(e);n||this._awaitingUpgrade.set(e,n=new Set),i?n.add(t):n.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.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),o.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=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},u=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const n=h(i)||window.customElements,o=n._getDefinition(e);return o?p(i,o):r.set(i,n),i}connectedCallback(){const t=o.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=o.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=o.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=o.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=o.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=o.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=o.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const n=t.prototype.setAttribute;n&&(t.prototype.setAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o),i.call(this,r,t,o)}else n.call(this,r,o)});const o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n),i.call(this,n,t,null)}else o.call(this,n)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),o.set(t,e),l=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i=void 0)=>{const n=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=n.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const n=e.call(this,...i);return t.set(n,this),n},i.forEach((e=>{const i=window.ElementInternals.prototype,n=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==o.get(i).formAssociated)throw new DOMException(`Failed to execute ${n} on 'ElementInternals': The target element is not a form-associated custom element.`);n?.call(this,...e)}}));class n extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const n=t.getAttribute("name"),o=e.get(n)||[];this[+i]=t,o.push(t),e.set(n,o)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new n(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=o.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Vo){const t=window.customElements.define;window.customElements.define=(e,i,n)=>{if(null!==i)try{t.bind(window.customElements)(e,i,n)}catch(t){console.info(e,i,n,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,n)=>t((t=>{this.isCanceled?n(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?n(new e("Promise has been canceled",void 0,t)):n(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class n{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,n){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const o=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=o,o.then((e=>(this.content[t]=e,null!=n&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),n)),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 o{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 n=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,o=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void n(t)}o(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -49,7 +49,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
49
49
  * @license
50
50
  * Copyright 2019 Google LLC
51
51
  * SPDX-License-Identifier: BSD-3-Clause
52
- */const g=window,x=g.ShadowRoot&&(void 0===g.ShadyCSS||g.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,m=Symbol(),w=new WeakMap;let $=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==m)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(x&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=w.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&w.set(e,t))}return t}toString(){return this.cssText}};const S=t=>new $("string"==typeof t?t:t+"",void 0,m),k=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1]),t[0]);return new $(i,t,m)},O=(t,e)=>{x?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),n=g.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=e.cssText,t.appendChild(i)}))},E=x?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return S(e)})(t):t
52
+ */const g=window,m=g.ShadowRoot&&(void 0===g.ShadyCSS||g.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,x=Symbol(),w=new WeakMap;let $=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==x)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(m&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=w.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&w.set(e,t))}return t}toString(){return this.cssText}};const S=t=>new $("string"==typeof t?t:t+"",void 0,x),k=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1]),t[0]);return new $(i,t,x)},O=(t,e)=>{m?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),n=g.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=e.cssText,t.appendChild(i)}))},E=m?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return S(e)})(t):t
53
53
  /**
54
54
  * @license
55
55
  * Copyright 2017 Google LLC
@@ -60,7 +60,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
60
60
  * Copyright 2017 Google LLC
61
61
  * SPDX-License-Identifier: BSD-3-Clause
62
62
  */
63
- var M;U.finalized=!0,U.elementProperties=new Map,U.elementStyles=[],U.shadowRootOptions={mode:"open"},null==I||I({ReactiveElement:U}),(null!==(_=R.reactiveElementVersions)&&void 0!==_?_:R.reactiveElementVersions=[]).push("1.6.1");const P=window,D=P.trustedTypes,F=D?D.createPolicy("lit-html",{createHTML:t=>t}):void 0,L="$lit$",B=`lit$${(Math.random()+"").slice(9)}$`,z="?"+B,H=`<${z}>`,W=document,K=()=>W.createComment(""),V=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Z=Array.isArray,q=t=>Z(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),G="[ \t\n\f\r]",X=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,J=/-->/g,Y=/>/g,Q=RegExp(`>|${G}(?:([^\\s"'>=/]+)(${G}*=${G}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),tt=/'/g,et=/"/g,it=/^(?:script|style|textarea|title)$/i,nt=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),ot=Symbol.for("lit-noChange"),rt=Symbol.for("lit-nothing"),st=new WeakMap,at=W.createTreeWalker(W,129,null,!1),lt=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"<svg>":"",s=X;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(s.lastIndex=h,l=s.exec(i),null!==l);)h=s.lastIndex,s===X?"!--"===l[1]?s=J:void 0!==l[1]?s=Y:void 0!==l[2]?(it.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=Q):void 0!==l[3]&&(s=Q):s===Q?">"===l[0]?(s=null!=o?o:X,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Q:'"'===l[3]?et:tt):s===et||s===tt?s=Q:s===J||s===Y?s=X:(s=Q,o=void 0);const u=s===Q&&t[e+1].startsWith("/>")?" ":"";r+=s===X?i+H:c>=0?(n.push(a),i.slice(0,c)+L+i.slice(c)+B+u):i+B+(-2===c?(n.push(void 0),e):u)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(a):a,n]};class ct{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[l,c]=lt(t,e);if(this.el=ct.createElement(l,i),at.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=at.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith(L)||e.startsWith(B)){const i=c[r++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+L).split(B),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?pt:"?"===e[1]?bt:"@"===e[1]?yt:ft})}else a.push({type:6,index:o})}for(const e of t)n.removeAttribute(e)}if(it.test(n.tagName)){const t=n.textContent.split(B),e=t.length-1;if(e>0){n.textContent=D?D.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],K()),at.nextNode(),a.push({type:2,index:++o});n.append(t[e],K())}}}else if(8===n.nodeType)if(n.data===z)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=n.data.indexOf(B,t+1));)a.push({type:7,index:o}),t+=B.length-1}o++}}static createElement(t,e){const i=W.createElement("template");return i.innerHTML=t,i}}function ht(t,e,i=t,n){var o,r,s,a;if(e===ot)return e;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const c=V(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,n)),void 0!==n?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(e=ht(t,l._$AS(t,e.values),l,n)),e}let ut=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:n}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:W).importNode(i,!0);at.currentNode=o;let r=at.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new dt(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new gt(r,this,t)),this._$AV.push(e),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=at.nextNode(),s++)}return o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},dt=class t{constructor(t,e,i,n){var o;this.type=2,this._$AH=rt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cp=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ht(this,t,e),V(t)?t===rt||null==t||""===t?(this._$AH!==rt&&this._$AR(),this._$AH=rt):t!==this._$AH&&t!==ot&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):q(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==rt&&V(this._$AH)?this._$AA.nextSibling.data=t:this.$(W.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:n}=t,o="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=ct.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new ut(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=st.get(t.strings);return void 0===e&&st.set(t.strings,e=new ct(t)),e}T(e){Z(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let n,o=0;for(const r of e)o===i.length?i.push(n=new t(this.k(K()),this.k(K()),this,this.options)):n=i[o],n._$AI(r),o++;o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},ft=class{constructor(t,e,i,n,o){this.type=1,this._$AH=rt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=rt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const o=this.strings;let r=!1;if(void 0===o)t=ht(this,t,e,0),r=!V(t)||t!==this._$AH&&t!==ot,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=ht(this,n[i+s],e,s),a===ot&&(a=this._$AH[s]),r||(r=!V(a)||a!==this._$AH[s]),a===rt?t=rt:t!==rt&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(t)}j(t){t===rt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},pt=class extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===rt?void 0:t}};const vt=D?D.emptyScript:"";let bt=class extends ft{constructor(){super(...arguments),this.type=4}j(t){t&&t!==rt?this.element.setAttribute(this.name,vt):this.element.removeAttribute(this.name)}},yt=class extends ft{constructor(t,e,i,n,o){super(t,e,i,n,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=ht(this,t,e,0))&&void 0!==i?i:rt)===ot)return;const n=this._$AH,o=t===rt&&n!==rt||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==rt&&(n===rt||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}},gt=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ht(this,t)}};const xt={O:L,P:B,A:z,C:1,M:lt,L:ut,D:q,R:ht,I:dt,V:ft,H:bt,N:yt,U:pt,F:gt},mt=P.litHtmlPolyfillSupport;null==mt||mt(ct,dt),(null!==(M=P.litHtmlVersions)&&void 0!==M?M:P.litHtmlVersions=[]).push("2.7.3");
63
+ var M;U.finalized=!0,U.elementProperties=new Map,U.elementStyles=[],U.shadowRootOptions={mode:"open"},null==I||I({ReactiveElement:U}),(null!==(_=R.reactiveElementVersions)&&void 0!==_?_:R.reactiveElementVersions=[]).push("1.6.1");const P=window,D=P.trustedTypes,F=D?D.createPolicy("lit-html",{createHTML:t=>t}):void 0,L="$lit$",B=`lit$${(Math.random()+"").slice(9)}$`,z="?"+B,H=`<${z}>`,W=document,K=()=>W.createComment(""),V=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Z=Array.isArray,q=t=>Z(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),G="[ \t\n\f\r]",X=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,J=/-->/g,Y=/>/g,Q=RegExp(`>|${G}(?:([^\\s"'>=/]+)(${G}*=${G}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),tt=/'/g,et=/"/g,it=/^(?:script|style|textarea|title)$/i,nt=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),ot=Symbol.for("lit-noChange"),rt=Symbol.for("lit-nothing"),st=new WeakMap,at=W.createTreeWalker(W,129,null,!1),lt=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"<svg>":"",s=X;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(s.lastIndex=h,l=s.exec(i),null!==l);)h=s.lastIndex,s===X?"!--"===l[1]?s=J:void 0!==l[1]?s=Y:void 0!==l[2]?(it.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=Q):void 0!==l[3]&&(s=Q):s===Q?">"===l[0]?(s=null!=o?o:X,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?Q:'"'===l[3]?et:tt):s===et||s===tt?s=Q:s===J||s===Y?s=X:(s=Q,o=void 0);const u=s===Q&&t[e+1].startsWith("/>")?" ":"";r+=s===X?i+H:c>=0?(n.push(a),i.slice(0,c)+L+i.slice(c)+B+u):i+B+(-2===c?(n.push(void 0),e):u)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(a):a,n]};class ct{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[l,c]=lt(t,e);if(this.el=ct.createElement(l,i),at.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=at.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith(L)||e.startsWith(B)){const i=c[r++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+L).split(B),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?pt:"?"===e[1]?bt:"@"===e[1]?yt:ft})}else a.push({type:6,index:o})}for(const e of t)n.removeAttribute(e)}if(it.test(n.tagName)){const t=n.textContent.split(B),e=t.length-1;if(e>0){n.textContent=D?D.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],K()),at.nextNode(),a.push({type:2,index:++o});n.append(t[e],K())}}}else if(8===n.nodeType)if(n.data===z)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=n.data.indexOf(B,t+1));)a.push({type:7,index:o}),t+=B.length-1}o++}}static createElement(t,e){const i=W.createElement("template");return i.innerHTML=t,i}}function ht(t,e,i=t,n){var o,r,s,a;if(e===ot)return e;let l=void 0!==n?null===(o=i._$Co)||void 0===o?void 0:o[n]:i._$Cl;const c=V(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,n)),void 0!==n?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[n]=l:i._$Cl=l),void 0!==l&&(e=ht(t,l._$AS(t,e.values),l,n)),e}let ut=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:n}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:W).importNode(i,!0);at.currentNode=o;let r=at.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new dt(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new gt(r,this,t)),this._$AV.push(e),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=at.nextNode(),s++)}return o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},dt=class t{constructor(t,e,i,n){var o;this.type=2,this._$AH=rt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cp=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ht(this,t,e),V(t)?t===rt||null==t||""===t?(this._$AH!==rt&&this._$AR(),this._$AH=rt):t!==this._$AH&&t!==ot&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):q(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==rt&&V(this._$AH)?this._$AA.nextSibling.data=t:this.$(W.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:n}=t,o="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=ct.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new ut(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=st.get(t.strings);return void 0===e&&st.set(t.strings,e=new ct(t)),e}T(e){Z(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let n,o=0;for(const r of e)o===i.length?i.push(n=new t(this.k(K()),this.k(K()),this,this.options)):n=i[o],n._$AI(r),o++;o<i.length&&(this._$AR(n&&n._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},ft=class{constructor(t,e,i,n,o){this.type=1,this._$AH=rt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=rt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const o=this.strings;let r=!1;if(void 0===o)t=ht(this,t,e,0),r=!V(t)||t!==this._$AH&&t!==ot,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=ht(this,n[i+s],e,s),a===ot&&(a=this._$AH[s]),r||(r=!V(a)||a!==this._$AH[s]),a===rt?t=rt:t!==rt&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.j(t)}j(t){t===rt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},pt=class extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===rt?void 0:t}};const vt=D?D.emptyScript:"";let bt=class extends ft{constructor(){super(...arguments),this.type=4}j(t){t&&t!==rt?this.element.setAttribute(this.name,vt):this.element.removeAttribute(this.name)}},yt=class extends ft{constructor(t,e,i,n,o){super(t,e,i,n,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=ht(this,t,e,0))&&void 0!==i?i:rt)===ot)return;const n=this._$AH,o=t===rt&&n!==rt||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==rt&&(n===rt||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}},gt=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ht(this,t)}};const mt={O:L,P:B,A:z,C:1,M:lt,L:ut,D:q,R:ht,I:dt,V:ft,H:bt,N:yt,U:pt,F:gt},xt=P.litHtmlPolyfillSupport;null==xt||xt(ct,dt),(null!==(M=P.litHtmlVersions)&&void 0!==M?M:P.litHtmlVersions=[]).push("2.7.3");
64
64
  /**
65
65
  * @license
66
66
  * Copyright 2017 Google LLC
@@ -98,7 +98,7 @@ var wt,$t;let St=class extends U{constructor(){super(...arguments),this.renderOp
98
98
  display: inline-block;
99
99
  width: 0;
100
100
  }
101
- `;class Dt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let o=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),o}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 Ft(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Lt,Bt,zt;const Ht=Symbol("internalReduxEventsUnsubscribers"),Wt=Symbol("internalStoresUnsubscribers"),Kt=Symbol("internalStores");class Vt extends Ut{constructor(){super(...arguments),this[Lt]=new Map,this[Bt]=new Map,this[zt]=[]}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[Kt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Kt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Kt].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Ft(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[Kt].delete(e)}setupStore(t,e){this[Kt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Kt].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[Wt].has(t.store):this[Wt].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Wt].set(t,e.subscribe((()=>this.updateFromStores()))),Ft(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 n=t=>this[i](t);e.eventBus.addEventListener(t.eventName,n),this[Ht].push((()=>e.eventBus.removeEventListener(t.eventName,n)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Wt].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Ht].forEach((t=>t())),this[Ht]=[]}unsubscribeFromStore(t){this[Wt].has(t)&&this[Wt].get(t)(),this[Wt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Zt(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];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 qt(t){return!!t&&!!t[je]}function Gt(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)===Ue}(t)||Array.isArray(t)||!!t[Ne]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Ne])||ee(t)||ie(t))}function Xt(t,e,i){void 0===i&&(i=!1),0===Jt(t)?(i?Object.keys:Me)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Jt(t){var e=t[je];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ee(t)?2:ie(t)?3:0}function Yt(t,e){return 2===Jt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Qt(t,e,i){var n=Jt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function te(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function ee(t){return Te&&t instanceof Map}function ie(t){return Ce&&t instanceof Set}function ne(t){return t.o||t.t}function oe(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Pe(t);delete e[je];for(var i=Me(e),n=0;n<i.length;n++){var o=i[n],r=e[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function re(t,e){return void 0===e&&(e=!1),ae(t)||qt(t)||!Gt(t)||(Jt(t)>1&&(t.set=t.add=t.clear=t.delete=se),Object.freeze(t),e&&Xt(t,(function(t,e){return re(e,!0)}),!0)),t}function se(){Zt(2)}function ae(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function le(t){var e=De[t];return e||Zt(18,t),e}function ce(){return _e}function he(t,e){e&&(le("Patches"),t.u=[],t.s=[],t.v=e)}function ue(t){de(t),t.p.forEach(pe),t.p=null}function de(t){t===_e&&(_e=t.l)}function fe(t){return _e={p:[],l:_e,h:t,m:!0,_:0}}function pe(t){var e=t[je];0===e.i||1===e.i?e.j():e.g=!0}function ve(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||le("ES5").S(e,t,n),n?(i[je].P&&(ue(e),Zt(4)),Gt(t)&&(t=be(e,t),e.l||ge(e,t)),e.u&&le("Patches").M(i[je].t,t,e.u,e.s)):t=be(e,i,[]),ue(e),e.u&&e.v(e.u,e.s),t!==Ae?t:void 0}function be(t,e,i){if(ae(e))return e;var n=e[je];if(!n)return Xt(e,(function(o,r){return ye(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return ge(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=oe(n.k):n.o,r=o,s=!1;3===n.i&&(r=new Set(o),o.clear(),s=!0),Xt(r,(function(e,r){return ye(t,n,o,e,r,i,s)})),ge(t,o,!1),i&&t.u&&le("Patches").N(n,i,t.u,t.s)}return n.o}function ye(t,e,i,n,o,r,s){if(qt(o)){var a=be(t,o,r&&e&&3!==e.i&&!Yt(e.R,n)?r.concat(n):void 0);if(Qt(i,n,a),!qt(a))return;t.m=!1}else s&&i.add(o);if(Gt(o)&&!ae(o)){if(!t.h.D&&t._<1)return;be(t,o),e&&e.A.l||ge(t,o)}}function ge(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&re(e,i)}function xe(t,e){var i=t[je];return(i?ne(i):t)[e]}function me(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function we(t){t.P||(t.P=!0,t.l&&we(t.l))}function $e(t){t.o||(t.o=oe(t.t))}function Se(t,e,i){var n=ee(e)?le("MapSet").F(e,i):ie(e)?le("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:ce(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=Fe;i&&(o=[n],r=Le);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):le("ES5").J(e,i);return(i?i.A:ce()).p.push(n),n}function ke(t){return qt(t)||Zt(22,t),function t(e){if(!Gt(e))return e;var i,n=e[je],o=Jt(e);if(n){if(!n.P&&(n.i<4||!le("ES5").K(n)))return n.t;n.I=!0,i=Oe(e,o),n.I=!1}else i=Oe(e,o);return Xt(i,(function(e,o){n&&function(t,e){return 2===Jt(t)?t.get(e):t[e]}(n.t,e)===o||Qt(i,e,t(o))})),3===o?new Set(i):i}(t)}function Oe(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return oe(t)}Lt=Wt,Bt=Kt,zt=Ht;var Ee,_e,Re="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Te="undefined"!=typeof Map,Ce="undefined"!=typeof Set,Ie="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ae=Re?Symbol.for("immer-nothing"):((Ee={})["immer-nothing"]=!0,Ee),Ne=Re?Symbol.for("immer-draftable"):"__$immer_draftable",je=Re?Symbol.for("immer-state"):"__$immer_state",Ue=""+Object.prototype.constructor,Me="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Pe=Object.getOwnPropertyDescriptors||function(t){var e={};return Me(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},De={},Fe={get:function(t,e){if(e===je)return t;var i=ne(t);if(!Yt(i,e))return function(t,e,i){var n,o=me(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!Gt(n)?n:n===xe(t.t,e)?($e(t),t.o[e]=Se(t.A.h,n,t)):n},has:function(t,e){return e in ne(t)},ownKeys:function(t){return Reflect.ownKeys(ne(t))},set:function(t,e,i){var n=me(ne(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=xe(ne(t),e),r=null==o?void 0:o[je];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(te(i,o)&&(void 0!==i||Yt(t.t,e)))return!0;$e(t),we(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!==xe(t.t,e)||e in t.t?(t.R[e]=!1,$e(t),we(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=ne(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){Zt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Zt(12)}},Le={};Xt(Fe,(function(t,e){Le[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Le.deleteProperty=function(t,e){return Le.set.call(this,t,e,void 0)},Le.set=function(t,e,i){return Fe.set.call(this,t[0],e,i,t[0])};var Be=function(){function t(t){var e=this;this.O=Ie,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Zt(6),void 0!==n&&"function"!=typeof n&&Zt(7),Gt(t)){var a=fe(e),l=Se(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?ue(a):de(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return he(a,n),ve(t,a)}),(function(t){throw ue(a),t})):(he(a,n),ve(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===Ae&&(s=void 0),e.D&&re(s,!0),n){var h=[],u=[];le("Patches").M(t,s,h,u),n(h,u)}return s}Zt(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"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){Gt(t)||Zt(8),qt(t)&&(t=ke(t));var e=fe(this),i=Se(this,t,void 0);return i[je].C=!0,de(e),i},e.finishDraft=function(t,e){var i=(t&&t[je]).A;return he(i,e),ve(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ie&&Zt(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var o=le("Patches").$;return qt(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),ze=new Be,He=ze.produce;function We(t){return We="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},We(t)}function Ke(t){var e=function(t,e){if("object"!==We(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==We(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===We(e)?e:String(e)}function Ve(t,e,i){return(e=Ke(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ze(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function qe(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ze(Object(i),!0).forEach((function(e){Ve(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ze(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Ge(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. "}ze.produceWithPatches.bind(ze),ze.setAutoFreeze.bind(ze),ze.setUseProxies.bind(ze),ze.applyPatches.bind(ze),ze.createDraft.bind(ze),ze.finishDraft.bind(ze);var Xe="function"==typeof Symbol&&Symbol.observable||"@@observable",Je=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ye={INIT:"@@redux/INIT"+Je(),REPLACE:"@@redux/REPLACE"+Je(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Je()}};function Qe(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Ge(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Ge(1));return i(Qe)(t,e)}if("function"!=typeof t)throw new Error(Ge(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function h(){if(l)throw new Error(Ge(3));return r}function u(t){if("function"!=typeof t)throw new Error(Ge(4));if(l)throw new Error(Ge(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Ge(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=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(Ge(7));if(void 0===t.type)throw new Error(Ge(8));if(l)throw new Error(Ge(9));try{l=!0,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return d({type:Ye.INIT}),(n={dispatch:d,subscribe:u,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ge(10));o=t,d({type:Ye.REPLACE})}})[Xe]=function(){var t,e=u;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ge(11));function i(){t.next&&t.next(h())}return i(),{unsubscribe:e(i)}}})[Xe]=function(){return this},t},n}function ti(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(i[o]=t[o])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Ye.INIT}))throw new Error(Ge(12));if(void 0===i(void 0,{type:Ye.PROBE_UNKNOWN_ACTION()}))throw new Error(Ge(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],h=t[l],u=c(h,e);if(void 0===u)throw e&&e.type,new Error(Ge(14));o[l]=u,n=n||u!==h}return(n=n||s.length!==Object.keys(t).length)?o:t}}function ei(){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 ii(){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),n=function(){throw new Error(Ge(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=ei.apply(void 0,r)(i.dispatch),qe(qe({},i),{},{dispatch:n})}}}function ni(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(i,n,t):e(o)}}}}var oi=ni();oi.withExtraArgument=ni;var ri,si=oi,ai=(ri=function(t,e){return ri=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])},ri(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}ri(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),li=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},ci=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},hi=Object.defineProperty,ui=Object.defineProperties,di=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertySymbols,pi=Object.prototype.hasOwnProperty,vi=Object.prototype.propertyIsEnumerable,bi=function(t,e,i){return e in t?hi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},yi=function(t,e){for(var i in e||(e={}))pi.call(e,i)&&bi(t,i,e[i]);if(fi)for(var n=0,o=fi(e);n<o.length;n++){i=o[n];vi.call(e,i)&&bi(t,i,e[i])}return t},gi=function(t,e){return ui(t,di(e))},xi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ei:ei.apply(null,arguments)};var mi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return ai(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,ci([void 0],t[0].concat(this)))):new(e.bind.apply(e,ci([void 0],t.concat(this))))},e}(Array),wi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return ai(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,ci([void 0],t[0].concat(this)))):new(e.bind.apply(e,ci([void 0],t.concat(this))))},e}(Array);function $i(t){return Gt(t)?He(t,(function(){})):t}function Si(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new mi;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(si.withExtraArgument(i.extraArgument)):n.push(si));return n}(t)}}function ki(t){var e,i=Si(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,h=n.preloadedState,u=void 0===h?void 0:h,d=n.enhancers,f=void 0===d?void 0:d;if("function"==typeof r)e=r;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}(r))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=ti(r)}var p=a;"function"==typeof p&&(p=p(i));var v=ii.apply(void 0,p),b=ei;c&&(b=xi(yi({trace:!1},"object"==typeof c&&c)));var y=new wi(v),g=y;return Array.isArray(f)?g=ci([v],f):"function"==typeof f&&(g=f(y)),Qe(e,u,b.apply(void 0,g))}function Oi(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return yi(yi({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.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 Ei(t){var e,i={},n=[],o={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,o},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[i,n,e]}function _i(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:$i(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Ei(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,h=yi(yi({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?Ei(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return $i(t())};else{var c=$i(t);o=function(){return c}}function h(t,e){void 0===t&&(t=o());var i=ci([s[e.type]],a.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 n;if(qt(t))return void 0===(n=i(t,e))?t:n;if(Gt(t))return He(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return h.getInitialState=o,h}(n,(function(t){for(var e in h)t.addCase(e,h[e]);for(var i=0,n=s;i<n.length;i++){var o=n[i];t.addMatcher(o.matcher,o.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?Oi(c,n):Oi(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var Ri=["name","message","stack","code"],Ti=function(t,e){this.payload=t,this.meta=e},Ci=function(t,e){this.payload=t,this.meta=e},Ii=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=Ri;i<n.length;i++){var o=n[i];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}};function Ai(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 n=Oi(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:gi(yi({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),o=Oi(t+"/pending",(function(t,e,i){return{payload:void 0,meta:gi(yi({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=Oi(t+"/rejected",(function(t,e,n,o,r){return{payload:o,error:(i&&i.serializeError||Ii)(t||"Rejected"),meta:gi(yi({},r||{}),{arg:n,requestId:e,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="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(a,l,c){var h,u=(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 s;function f(t){h=t,d.abort()}var p=function(){return s=this,p=null,v=function(){var s,p,v,b,y,g;return li(this,(function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(m=b)||"object"!=typeof m||"function"!=typeof m.then?[3,2]:[4,b];case 1:b=x.sent(),x.label=2;case 2:if(!1===b||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),a(o(u,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:u,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:u,signal:d.signal,abort:f,rejectWithValue:function(t,e){return new Ti(t,e)},fulfillWithValue:function(t,e){return new Ci(t,e)}})).then((function(e){if(e instanceof Ti)throw e;return e instanceof Ci?n(e.payload,u,t,e.meta):n(e,u,t)}))])];case 3:return v=x.sent(),[3,5];case 4:return g=x.sent(),v=g instanceof Ti?r(null,u,t,g.payload,g.meta):r(g,u,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var m}))},new Promise((function(t,e){var i=function(t){try{o(v.next(t))}catch(t){e(t)}},n=function(t){try{o(v.throw(t))}catch(t){e(t)}},o=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};o((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:f,requestId:u,arg:t,unwrap:function(){return p.then(Ai)}})}}),{pending:o,rejected:r,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var Ni="listenerMiddleware";Oi(Ni+"/add"),Oi(Ni+"/removeAll"),Oi(Ni+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=o[t];return i?i.enumerable=e:o[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[je];return Fe.get(e,t)},set:function(e){var i=this[je];Fe.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][je];if(!o.P)switch(o.i){case 5:n(o)&&we(o);break;case 4:i(o)&&we(o)}}}function i(t){for(var e=t.t,i=t.k,n=Me(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==je){var s=e[r];if(void 0===s&&!Yt(e,r))return!0;var a=i[r],l=a&&a[je];if(l?l.t!==s:!te(a,s))return!0}}var c=!!e[je];return n.length!==Me(e).length+(c?0:1)}function n(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 n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var o={};!function(t,e){De[t]||(De[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),o=function(e,i){if(e){for(var n=Array(i.length),o=0;o<i.length;o++)Object.defineProperty(n,""+o,t(o,!0));return n}var r=Pe(i);delete r[je];for(var s=Me(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(n,e),r={i:n?5:4,A:i?i.A:ce(),P:!1,I:!1,R:{},l:i,t:e,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,je,{value:r,writable:!0}),o},S:function(t,i,o){o?qt(i)&&i[je].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[je];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Xt(r,(function(e){e!==je&&(void 0!==o[e]||Yt(o,e)?s[e]||t(r[e]):(s[e]=!0,we(i)))})),Xt(o,(function(t){void 0!==r[t]||Yt(r,t)||(s[t]=!1,we(i))}));else if(5===a){if(n(i)&&(we(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var h=Math.min(r.length,o.length),u=0;u<h;u++)r.hasOwnProperty(u)||(s[u]=!0),void 0===s[u]&&t(r[u])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class ji{static get(t){var e;const i="string"==typeof t?t:t.name,n="string"==typeof t?void 0:t,o=window.ftReduxStores[i];if(Ft(o))return o;if(null==n)return;const r=_i({...n,reducers:null!==(e=n.reducers)&&void 0!==e?e:{}}),s=ki({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return r.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return r.reducer(t,e)}}});return window.ftReduxStores[n.name]=new ji(r,s)}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 n=e,o=t[n];return o?(...t)=>{const e=o(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[n]: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 Ui=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const o={hasChanged:(t,e)=>!v(t,e),attribute:!1,...e};s(o)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}};var Mi,Pi,Di;const Fi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Di=null===(Pi=null===(Mi=window.safari)||void 0===Mi?void 0:Mi.pushNotification)||void 0===Pi?void 0:Pi.toString())&&void 0!==Di?Di:"");var Li;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(Li||(Li={}));var Bi=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class zi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Hi=Symbol("registerInterval");class Wi 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[Hi]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Hi]):this.dispatchEvent(new zi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Hi,Bi([a()],i.prototype,"stateManager",void 0),i}(Vt)){}const Ki=Ot.extend("--ft-ripple-color",_t.colorContent),Vi={color:Ki,backgroundColor:Ot.extend("--ft-ripple-background-color",Ki),opacityContentOnSurfacePressed:Ot.external(_t.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ot.external(_t.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ot.external(_t.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ot.external(_t.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ot.create("--ft-ripple-border-radius","SIZE","0px")},Zi=Ot.extend("--ft-ripple-color",_t.colorPrimary),qi=Zi,Gi=Ot.extend("--ft-ripple-background-color",Zi),Xi=Ot.extend("--ft-ripple-color",_t.colorSecondary),Ji=Xi,Yi=Ot.extend("--ft-ripple-background-color",Xi),Qi=k`
101
+ `;class Dt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,n;t=this.resolvePluralKey(t,e);let o=null!==(n=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==n?n:"";return e.forEach(((t,e)=>o=o.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),o}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 Ft(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Lt,Bt,zt;const Ht=Symbol("internalReduxEventsUnsubscribers"),Wt=Symbol("internalStoresUnsubscribers"),Kt=Symbol("internalStores");class Vt extends Ut{constructor(){super(...arguments),this[Lt]=new Map,this[Bt]=new Map,this[zt]=[]}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[Kt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Kt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Kt].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Ft(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[Kt].delete(e)}setupStore(t,e){this[Kt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Kt].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[Wt].has(t.store):this[Wt].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Wt].set(t,e.subscribe((()=>this.updateFromStores()))),Ft(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 n=t=>this[i](t);e.eventBus.addEventListener(t.eventName,n),this[Ht].push((()=>e.eventBus.removeEventListener(t.eventName,n)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Wt].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Ht].forEach((t=>t())),this[Ht]=[]}unsubscribeFromStore(t){this[Wt].has(t)&&this[Wt].get(t)(),this[Wt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Zt(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];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 qt(t){return!!t&&!!t[je]}function Gt(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)===Ue}(t)||Array.isArray(t)||!!t[Ne]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Ne])||ee(t)||ie(t))}function Xt(t,e,i){void 0===i&&(i=!1),0===Jt(t)?(i?Object.keys:Me)(t).forEach((function(n){i&&"symbol"==typeof n||e(n,t[n],t)})):t.forEach((function(i,n){return e(n,i,t)}))}function Jt(t){var e=t[je];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ee(t)?2:ie(t)?3:0}function Yt(t,e){return 2===Jt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Qt(t,e,i){var n=Jt(t);2===n?t.set(e,i):3===n?t.add(i):t[e]=i}function te(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function ee(t){return Te&&t instanceof Map}function ie(t){return Ce&&t instanceof Set}function ne(t){return t.o||t.t}function oe(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Pe(t);delete e[je];for(var i=Me(e),n=0;n<i.length;n++){var o=i[n],r=e[o];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[o]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function re(t,e){return void 0===e&&(e=!1),ae(t)||qt(t)||!Gt(t)||(Jt(t)>1&&(t.set=t.add=t.clear=t.delete=se),Object.freeze(t),e&&Xt(t,(function(t,e){return re(e,!0)}),!0)),t}function se(){Zt(2)}function ae(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function le(t){var e=De[t];return e||Zt(18,t),e}function ce(){return _e}function he(t,e){e&&(le("Patches"),t.u=[],t.s=[],t.v=e)}function ue(t){de(t),t.p.forEach(pe),t.p=null}function de(t){t===_e&&(_e=t.l)}function fe(t){return _e={p:[],l:_e,h:t,m:!0,_:0}}function pe(t){var e=t[je];0===e.i||1===e.i?e.j():e.g=!0}function ve(t,e){e._=e.p.length;var i=e.p[0],n=void 0!==t&&t!==i;return e.h.O||le("ES5").S(e,t,n),n?(i[je].P&&(ue(e),Zt(4)),Gt(t)&&(t=be(e,t),e.l||ge(e,t)),e.u&&le("Patches").M(i[je].t,t,e.u,e.s)):t=be(e,i,[]),ue(e),e.u&&e.v(e.u,e.s),t!==Ae?t:void 0}function be(t,e,i){if(ae(e))return e;var n=e[je];if(!n)return Xt(e,(function(o,r){return ye(t,n,e,o,r,i)}),!0),e;if(n.A!==t)return e;if(!n.P)return ge(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=4===n.i||5===n.i?n.o=oe(n.k):n.o,r=o,s=!1;3===n.i&&(r=new Set(o),o.clear(),s=!0),Xt(r,(function(e,r){return ye(t,n,o,e,r,i,s)})),ge(t,o,!1),i&&t.u&&le("Patches").N(n,i,t.u,t.s)}return n.o}function ye(t,e,i,n,o,r,s){if(qt(o)){var a=be(t,o,r&&e&&3!==e.i&&!Yt(e.R,n)?r.concat(n):void 0);if(Qt(i,n,a),!qt(a))return;t.m=!1}else s&&i.add(o);if(Gt(o)&&!ae(o)){if(!t.h.D&&t._<1)return;be(t,o),e&&e.A.l||ge(t,o)}}function ge(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&re(e,i)}function me(t,e){var i=t[je];return(i?ne(i):t)[e]}function xe(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var n=Object.getOwnPropertyDescriptor(i,e);if(n)return n;i=Object.getPrototypeOf(i)}}function we(t){t.P||(t.P=!0,t.l&&we(t.l))}function $e(t){t.o||(t.o=oe(t.t))}function Se(t,e,i){var n=ee(e)?le("MapSet").F(e,i):ie(e)?le("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),n={i:i?1:0,A:e?e.A:ce(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},o=n,r=Fe;i&&(o=[n],r=Le);var s=Proxy.revocable(o,r),a=s.revoke,l=s.proxy;return n.k=l,n.j=a,l}(e,i):le("ES5").J(e,i);return(i?i.A:ce()).p.push(n),n}function ke(t){return qt(t)||Zt(22,t),function t(e){if(!Gt(e))return e;var i,n=e[je],o=Jt(e);if(n){if(!n.P&&(n.i<4||!le("ES5").K(n)))return n.t;n.I=!0,i=Oe(e,o),n.I=!1}else i=Oe(e,o);return Xt(i,(function(e,o){n&&function(t,e){return 2===Jt(t)?t.get(e):t[e]}(n.t,e)===o||Qt(i,e,t(o))})),3===o?new Set(i):i}(t)}function Oe(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return oe(t)}Lt=Wt,Bt=Kt,zt=Ht;var Ee,_e,Re="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Te="undefined"!=typeof Map,Ce="undefined"!=typeof Set,Ie="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ae=Re?Symbol.for("immer-nothing"):((Ee={})["immer-nothing"]=!0,Ee),Ne=Re?Symbol.for("immer-draftable"):"__$immer_draftable",je=Re?Symbol.for("immer-state"):"__$immer_state",Ue=""+Object.prototype.constructor,Me="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Pe=Object.getOwnPropertyDescriptors||function(t){var e={};return Me(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},De={},Fe={get:function(t,e){if(e===je)return t;var i=ne(t);if(!Yt(i,e))return function(t,e,i){var n,o=xe(e,i);return o?"value"in o?o.value:null===(n=o.get)||void 0===n?void 0:n.call(t.k):void 0}(t,i,e);var n=i[e];return t.I||!Gt(n)?n:n===me(t.t,e)?($e(t),t.o[e]=Se(t.A.h,n,t)):n},has:function(t,e){return e in ne(t)},ownKeys:function(t){return Reflect.ownKeys(ne(t))},set:function(t,e,i){var n=xe(ne(t),e);if(null==n?void 0:n.set)return n.set.call(t.k,i),!0;if(!t.P){var o=me(ne(t),e),r=null==o?void 0:o[je];if(r&&r.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(te(i,o)&&(void 0!==i||Yt(t.t,e)))return!0;$e(t),we(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!==me(t.t,e)||e in t.t?(t.R[e]=!1,$e(t),we(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=ne(t),n=Reflect.getOwnPropertyDescriptor(i,e);return n?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:n.enumerable,value:i[e]}:n},defineProperty:function(){Zt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Zt(12)}},Le={};Xt(Fe,(function(t,e){Le[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Le.deleteProperty=function(t,e){return Le.set.call(this,t,e,void 0)},Le.set=function(t,e,i){return Fe.set.call(this,t[0],e,i,t[0])};var Be=function(){function t(t){var e=this;this.O=Ie,this.D=!0,this.produce=function(t,i,n){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=o);for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var n;return(n=i).call.apply(n,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Zt(6),void 0!==n&&"function"!=typeof n&&Zt(7),Gt(t)){var a=fe(e),l=Se(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?ue(a):de(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return he(a,n),ve(t,a)}),(function(t){throw ue(a),t})):(he(a,n),ve(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===Ae&&(s=void 0),e.D&&re(s,!0),n){var h=[],u=[];le("Patches").M(t,s,h,u),n(h,u)}return s}Zt(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(o))}))};var n,o,r=e.produce(t,i,(function(t,e){n=t,o=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,n,o]})):[r,n,o]},"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){Gt(t)||Zt(8),qt(t)&&(t=ke(t));var e=fe(this),i=Se(this,t,void 0);return i[je].C=!0,de(e),i},e.finishDraft=function(t,e){var i=(t&&t[je]).A;return he(i,e),ve(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ie&&Zt(20),this.O=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var n=e[i];if(0===n.path.length&&"replace"===n.op){t=n.value;break}}i>-1&&(e=e.slice(i+1));var o=le("Patches").$;return qt(t)?o(t,e):this.produce(t,(function(t){return o(t,e)}))},t}(),ze=new Be,He=ze.produce;function We(t){return We="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},We(t)}function Ke(t){var e=function(t,e){if("object"!==We(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==We(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===We(e)?e:String(e)}function Ve(t,e,i){return(e=Ke(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ze(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function qe(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ze(Object(i),!0).forEach((function(e){Ve(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ze(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Ge(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. "}ze.produceWithPatches.bind(ze),ze.setAutoFreeze.bind(ze),ze.setUseProxies.bind(ze),ze.applyPatches.bind(ze),ze.createDraft.bind(ze),ze.finishDraft.bind(ze);var Xe="function"==typeof Symbol&&Symbol.observable||"@@observable",Je=function(){return Math.random().toString(36).substring(7).split("").join(".")},Ye={INIT:"@@redux/INIT"+Je(),REPLACE:"@@redux/REPLACE"+Je(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Je()}};function Qe(t,e,i){var n;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(Ge(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(Ge(1));return i(Qe)(t,e)}if("function"!=typeof t)throw new Error(Ge(2));var o=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function h(){if(l)throw new Error(Ge(3));return r}function u(t){if("function"!=typeof t)throw new Error(Ge(4));if(l)throw new Error(Ge(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(Ge(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=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(Ge(7));if(void 0===t.type)throw new Error(Ge(8));if(l)throw new Error(Ge(9));try{l=!0,r=o(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}return d({type:Ye.INIT}),(n={dispatch:d,subscribe:u,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ge(10));o=t,d({type:Ye.REPLACE})}})[Xe]=function(){var t,e=u;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ge(11));function i(){t.next&&t.next(h())}return i(),{unsubscribe:e(i)}}})[Xe]=function(){return this},t},n}function ti(t){for(var e=Object.keys(t),i={},n=0;n<e.length;n++){var o=e[n];"function"==typeof t[o]&&(i[o]=t[o])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Ye.INIT}))throw new Error(Ge(12));if(void 0===i(void 0,{type:Ye.PROBE_UNKNOWN_ACTION()}))throw new Error(Ge(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var n=!1,o={},a=0;a<s.length;a++){var l=s[a],c=i[l],h=t[l],u=c(h,e);if(void 0===u)throw e&&e.type,new Error(Ge(14));o[l]=u,n=n||u!==h}return(n=n||s.length!==Object.keys(t).length)?o:t}}function ei(){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 ii(){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),n=function(){throw new Error(Ge(15))},o={getState:i.getState,dispatch:function(){return n.apply(void 0,arguments)}},r=e.map((function(t){return t(o)}));return n=ei.apply(void 0,r)(i.dispatch),qe(qe({},i),{},{dispatch:n})}}}function ni(t){return function(e){var i=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(i,n,t):e(o)}}}}var oi=ni();oi.withExtraArgument=ni;var ri,si=oi,ai=(ri=function(t,e){return ri=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])},ri(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}ri(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),li=function(t,e){var i,n,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)return o;switch(n=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{i=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}},ci=function(t,e){for(var i=0,n=e.length,o=t.length;i<n;i++,o++)t[o]=e[i];return t},hi=Object.defineProperty,ui=Object.defineProperties,di=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertySymbols,pi=Object.prototype.hasOwnProperty,vi=Object.prototype.propertyIsEnumerable,bi=function(t,e,i){return e in t?hi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},yi=function(t,e){for(var i in e||(e={}))pi.call(e,i)&&bi(t,i,e[i]);if(fi)for(var n=0,o=fi(e);n<o.length;n++){i=o[n];vi.call(e,i)&&bi(t,i,e[i])}return t},gi=function(t,e){return ui(t,di(e))},mi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ei:ei.apply(null,arguments)};var xi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return ai(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,ci([void 0],t[0].concat(this)))):new(e.bind.apply(e,ci([void 0],t.concat(this))))},e}(Array),wi=function(t){function e(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];var o=t.apply(this,i)||this;return Object.setPrototypeOf(o,e.prototype),o}return ai(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,ci([void 0],t[0].concat(this)))):new(e.bind.apply(e,ci([void 0],t.concat(this))))},e}(Array);function $i(t){return Gt(t)?He(t,(function(){})):t}function Si(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var n=new xi;i&&(!function(t){return"boolean"==typeof t}(i)?n.push(si.withExtraArgument(i.extraArgument)):n.push(si));return n}(t)}}function ki(t){var e,i=Si(),n=t||{},o=n.reducer,r=void 0===o?void 0:o,s=n.middleware,a=void 0===s?i():s,l=n.devTools,c=void 0===l||l,h=n.preloadedState,u=void 0===h?void 0:h,d=n.enhancers,f=void 0===d?void 0:d;if("function"==typeof r)e=r;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}(r))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=ti(r)}var p=a;"function"==typeof p&&(p=p(i));var v=ii.apply(void 0,p),b=ei;c&&(b=mi(yi({trace:!1},"object"==typeof c&&c)));var y=new wi(v),g=y;return Array.isArray(f)?g=ci([v],f):"function"==typeof f&&(g=f(y)),Qe(e,u,b.apply(void 0,g))}function Oi(t,e){function i(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var o=e.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return yi(yi({type:t,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.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 Ei(t){var e,i={},n=[],o={addCase:function(t,e){var n="string"==typeof t?t:t.type;if(n in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[n]=e,o},addMatcher:function(t,e){return n.push({matcher:t,reducer:e}),o},addDefaultCase:function(t){return e=t,o}};return t(o),[i,n,e]}function _i(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,n="function"==typeof t.initialState?t.initialState:$i(t.initialState),o=t.reducers||{},r=Object.keys(o),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?Ei(t.extraReducers):[t.extraReducers],i=e[0],o=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,h=yi(yi({},o),a);return function(t,e,i,n){void 0===i&&(i=[]);var o,r="function"==typeof e?Ei(e):[e,i,n],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))o=function(){return $i(t())};else{var c=$i(t);o=function(){return c}}function h(t,e){void 0===t&&(t=o());var i=ci([s[e.type]],a.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 n;if(qt(t))return void 0===(n=i(t,e))?t:n;if(Gt(t))return He(t,(function(t){return i(t,e)}));if(void 0===(n=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return t}),t)}return h.getInitialState=o,h}(n,(function(t){for(var e in h)t.addCase(e,h[e]);for(var i=0,n=s;i<n.length;i++){var o=n[i];t.addMatcher(o.matcher,o.reducer)}c&&t.addDefaultCase(c)}))}return r.forEach((function(t){var i,n,r=o[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,n=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=n?Oi(c,n):Oi(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var Ri=["name","message","stack","code"],Ti=function(t,e){this.payload=t,this.meta=e},Ci=function(t,e){this.payload=t,this.meta=e},Ii=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,n=Ri;i<n.length;i++){var o=n[i];"string"==typeof t[o]&&(e[o]=t[o])}return e}return{message:String(t)}};function Ai(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 n=Oi(t+"/fulfilled",(function(t,e,i,n){return{payload:t,meta:gi(yi({},n||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),o=Oi(t+"/pending",(function(t,e,i){return{payload:void 0,meta:gi(yi({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),r=Oi(t+"/rejected",(function(t,e,n,o,r){return{payload:o,error:(i&&i.serializeError||Ii)(t||"Rejected"),meta:gi(yi({},r||{}),{arg:n,requestId:e,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),s="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(a,l,c){var h,u=(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 s;function f(t){h=t,d.abort()}var p=function(){return s=this,p=null,v=function(){var s,p,v,b,y,g;return li(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(s=null==i?void 0:i.condition)?void 0:s.call(i,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return y=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),a(o(u,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:u,arg:t},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(e(t,{dispatch:a,getState:l,extra:c,requestId:u,signal:d.signal,abort:f,rejectWithValue:function(t,e){return new Ti(t,e)},fulfillWithValue:function(t,e){return new Ci(t,e)}})).then((function(e){if(e instanceof Ti)throw e;return e instanceof Ci?n(e.payload,u,t,e.meta):n(e,u,t)}))])];case 3:return v=m.sent(),[3,5];case 4:return g=m.sent(),v=g instanceof Ti?r(null,u,t,g.payload,g.meta):r(g,u,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&r.match(v)&&v.meta.condition||a(v),[2,v]}var x}))},new Promise((function(t,e){var i=function(t){try{o(v.next(t))}catch(t){e(t)}},n=function(t){try{o(v.throw(t))}catch(t){e(t)}},o=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,n)};o((v=v.apply(s,p)).next())}));var s,p,v}();return Object.assign(p,{abort:f,requestId:u,arg:t,unwrap:function(){return p.then(Ai)}})}}),{pending:o,rejected:r,fulfilled:n,typePrefix:t})}t.withTypes=function(){return t}}();var Ni="listenerMiddleware";Oi(Ni+"/add"),Oi(Ni+"/removeAll"),Oi(Ni+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=o[t];return i?i.enumerable=e:o[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[je];return Fe.get(e,t)},set:function(e){var i=this[je];Fe.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var o=t[e][je];if(!o.P)switch(o.i){case 5:n(o)&&we(o);break;case 4:i(o)&&we(o)}}}function i(t){for(var e=t.t,i=t.k,n=Me(i),o=n.length-1;o>=0;o--){var r=n[o];if(r!==je){var s=e[r];if(void 0===s&&!Yt(e,r))return!0;var a=i[r],l=a&&a[je];if(l?l.t!==s:!te(a,s))return!0}}var c=!!e[je];return n.length!==Me(e).length+(c?0:1)}function n(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 n=0;n<e.length;n++)if(!e.hasOwnProperty(n))return!0;return!1}var o={};!function(t,e){De[t]||(De[t]=e)}("ES5",{J:function(e,i){var n=Array.isArray(e),o=function(e,i){if(e){for(var n=Array(i.length),o=0;o<i.length;o++)Object.defineProperty(n,""+o,t(o,!0));return n}var r=Pe(i);delete r[je];for(var s=Me(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(n,e),r={i:n?5:4,A:i?i.A:ce(),P:!1,I:!1,R:{},l:i,t:e,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,je,{value:r,writable:!0}),o},S:function(t,i,o){o?qt(i)&&i[je].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[je];if(i){var o=i.t,r=i.k,s=i.R,a=i.i;if(4===a)Xt(r,(function(e){e!==je&&(void 0!==o[e]||Yt(o,e)?s[e]||t(r[e]):(s[e]=!0,we(i)))})),Xt(o,(function(t){void 0!==r[t]||Yt(r,t)||(s[t]=!1,we(i))}));else if(5===a){if(n(i)&&(we(i),s.length=!0),r.length<o.length)for(var l=r.length;l<o.length;l++)s[l]=!1;else for(var c=o.length;c<r.length;c++)s[c]=!0;for(var h=Math.min(r.length,o.length),u=0;u<h;u++)r.hasOwnProperty(u)||(s[u]=!0),void 0===s[u]&&t(r[u])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):n(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class ji{static get(t){var e;const i="string"==typeof t?t:t.name,n="string"==typeof t?void 0:t,o=window.ftReduxStores[i];if(Ft(o))return o;if(null==n)return;const r=_i({...n,reducers:null!==(e=n.reducers)&&void 0!==e?e:{}}),s=ki({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return r.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return r.reducer(t,e)}}});return window.ftReduxStores[n.name]=new ji(r,s)}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 n=e,o=t[n];return o?(...t)=>{const e=o(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[n]: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 Ui=t=>{const e=null!=t?t:{};return(t,i)=>{var n;const o={hasChanged:(t,e)=>!v(t,e),attribute:!1,...e};s(o)(t,i);const r=t;r.reduxProperties=r.reduxProperties||new Map,r.reduxProperties.set(i,{selector:null!==(n=e.selector)&&void 0!==n?n:t=>t[i],store:e.store})}},Mi=Symbol("elementInternals");function Pi(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Mi].form}constructor(...t){super(t),this[Mi]=this.attachInternals(),this[Mi].role=e}setFormValue(t){this[Mi].setFormValue(t)}}}var Di,Fi,Li;const Bi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Li=null===(Fi=null===(Di=window.safari)||void 0===Di?void 0:Di.pushNotification)||void 0===Fi?void 0:Fi.toString())&&void 0!==Li?Li:"");var zi;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(zi||(zi={}));var Hi=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Wi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Ki=Symbol("registerInterval");class Vi 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[Ki]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Ki]):this.dispatchEvent(new Wi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Ki,Hi([a()],i.prototype,"stateManager",void 0),i}(Vt)){}const Zi=Ot.extend("--ft-ripple-color",_t.colorContent),qi={color:Zi,backgroundColor:Ot.extend("--ft-ripple-background-color",Zi),opacityContentOnSurfacePressed:Ot.external(_t.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ot.external(_t.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ot.external(_t.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ot.external(_t.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ot.create("--ft-ripple-border-radius","SIZE","0px")},Gi=Ot.extend("--ft-ripple-color",_t.colorPrimary),Xi=Gi,Ji=Ot.extend("--ft-ripple-background-color",Gi),Yi=Ot.extend("--ft-ripple-color",_t.colorSecondary),Qi=Yi,tn=Ot.extend("--ft-ripple-background-color",Yi),en=k`
102
102
  :host {
103
103
  display: contents;
104
104
  }
@@ -111,7 +111,7 @@ var wt,$t;let St=class extends U{constructor(){super(...arguments),this.renderOp
111
111
 
112
112
  .ft-ripple:not(.ft-ripple--unbounded) {
113
113
  overflow: hidden;
114
- border-radius: ${Vi.borderRadius};
114
+ border-radius: ${qi.borderRadius};
115
115
  }
116
116
 
117
117
  .ft-ripple .ft-ripple--background,
@@ -145,27 +145,27 @@ var wt,$t;let St=class extends U{constructor(){super(...arguments),this.renderOp
145
145
  }
146
146
 
147
147
  .ft-ripple .ft-ripple--background {
148
- background-color: ${Vi.backgroundColor};
148
+ background-color: ${qi.backgroundColor};
149
149
  }
150
150
 
151
151
  .ft-ripple .ft-ripple--effect {
152
- background-color: ${Vi.color};
152
+ background-color: ${qi.color};
153
153
  }
154
154
 
155
155
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
156
- background-color: ${Yi};
156
+ background-color: ${tn};
157
157
  }
158
158
 
159
159
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
160
- background-color: ${Ji};
160
+ background-color: ${Qi};
161
161
  }
162
162
 
163
163
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
164
- background-color: ${Gi};
164
+ background-color: ${Ji};
165
165
  }
166
166
 
167
167
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
168
- background-color: ${qi};
168
+ background-color: ${Xi};
169
169
  }
170
170
 
171
171
  .ft-ripple .ft-ripple--background {
@@ -195,117 +195,117 @@ var wt,$t;let St=class extends U{constructor(){super(...arguments),this.renderOp
195
195
  }
196
196
 
197
197
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
198
- opacity: ${Vi.opacityContentOnSurfaceHover};
198
+ opacity: ${qi.opacityContentOnSurfaceHover};
199
199
  }
200
200
 
201
201
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
202
- opacity: ${Vi.opacityContentOnSurfaceSelected};
202
+ opacity: ${qi.opacityContentOnSurfaceSelected};
203
203
  }
204
204
 
205
205
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
206
- opacity: ${Vi.opacityContentOnSurfaceFocused};
206
+ opacity: ${qi.opacityContentOnSurfaceFocused};
207
207
  }
208
208
 
209
209
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
210
- opacity: ${Vi.opacityContentOnSurfacePressed};
210
+ opacity: ${qi.opacityContentOnSurfacePressed};
211
211
  transform: translate(-50%, -50%) scale(1);
212
212
  }
213
- `,tn=Ot.extend("--ft-typography-font-family",_t.titleFont),en=Ot.extend("--ft-typography-font-family",_t.contentFont),nn={fontFamily:en,fontSize:Ot.create("--ft-typography-font-size","SIZE","16px"),fontWeight:Ot.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:Ot.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:Ot.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:Ot.create("--ft-typography-text-transform","UNKNOWN","inherit")},on={fontFamily:Ot.extend("--ft-typography-title-font-family",tn),fontSize:Ot.extend("--ft-typography-title-font-size",nn.fontSize,"20px"),fontWeight:Ot.extend("--ft-typography-title-font-weight",nn.fontWeight,"normal"),letterSpacing:Ot.extend("--ft-typography-title-letter-spacing",nn.letterSpacing,"0.15px"),lineHeight:Ot.extend("--ft-typography-title-line-height",nn.lineHeight,"1.2"),textTransform:Ot.extend("--ft-typography-title-text-transform",nn.textTransform,"inherit")},rn={fontFamily:Ot.extend("--ft-typography-title-dense-font-family",tn),fontSize:Ot.extend("--ft-typography-title-dense-font-size",nn.fontSize,"14px"),fontWeight:Ot.extend("--ft-typography-title-dense-font-weight",nn.fontWeight,"normal"),letterSpacing:Ot.extend("--ft-typography-title-dense-letter-spacing",nn.letterSpacing,"0.105px"),lineHeight:Ot.extend("--ft-typography-title-dense-line-height",nn.lineHeight,"1.7"),textTransform:Ot.extend("--ft-typography-title-dense-text-transform",nn.textTransform,"inherit")},sn=Ot.extend("--ft-typography-subtitle1-font-family",en),an=Ot.extend("--ft-typography-subtitle1-font-size",nn.fontSize,"16px"),ln=Ot.extend("--ft-typography-subtitle1-font-weight",nn.fontWeight,"600"),cn=Ot.extend("--ft-typography-subtitle1-letter-spacing",nn.letterSpacing,"0.144px"),hn=Ot.extend("--ft-typography-subtitle1-line-height",nn.lineHeight,"1.5"),un=Ot.extend("--ft-typography-subtitle1-text-transform",nn.textTransform,"inherit"),dn=Ot.extend("--ft-typography-subtitle2-font-family",en),fn=Ot.extend("--ft-typography-subtitle2-font-size",nn.fontSize,"14px"),pn=Ot.extend("--ft-typography-subtitle2-font-weight",nn.fontWeight,"normal"),vn=Ot.extend("--ft-typography-subtitle2-letter-spacing",nn.letterSpacing,"0.098px"),bn=Ot.extend("--ft-typography-subtitle2-line-height",nn.lineHeight,"1.7"),yn=Ot.extend("--ft-typography-subtitle2-text-transform",nn.textTransform,"inherit"),gn={fontFamily:Ot.extend("--ft-typography-body1-font-family",en),fontSize:Ot.extend("--ft-typography-body1-font-size",nn.fontSize,"16px"),fontWeight:Ot.extend("--ft-typography-body1-font-weight",nn.fontWeight,"normal"),letterSpacing:Ot.extend("--ft-typography-body1-letter-spacing",nn.letterSpacing,"0.496px"),lineHeight:Ot.extend("--ft-typography-body1-line-height",nn.lineHeight,"1.5"),textTransform:Ot.extend("--ft-typography-body1-text-transform",nn.textTransform,"inherit")},xn=Ot.extend("--ft-typography-body2-font-family",en),mn=Ot.extend("--ft-typography-body2-font-size",nn.fontSize,"14px"),wn=Ot.extend("--ft-typography-body2-font-weight",nn.fontWeight,"normal"),$n=Ot.extend("--ft-typography-body2-letter-spacing",nn.letterSpacing,"0.252px"),Sn=Ot.extend("--ft-typography-body2-line-height",nn.lineHeight,"1.4"),kn=Ot.extend("--ft-typography-body2-text-transform",nn.textTransform,"inherit"),On={fontFamily:Ot.extend("--ft-typography-caption-font-family",en),fontSize:Ot.extend("--ft-typography-caption-font-size",nn.fontSize,"12px"),fontWeight:Ot.extend("--ft-typography-caption-font-weight",nn.fontWeight,"normal"),letterSpacing:Ot.extend("--ft-typography-caption-letter-spacing",nn.letterSpacing,"0.396px"),lineHeight:Ot.extend("--ft-typography-caption-line-height",nn.lineHeight,"1.33"),textTransform:Ot.extend("--ft-typography-caption-text-transform",nn.textTransform,"inherit")},En=Ot.extend("--ft-typography-breadcrumb-font-family",en),_n=Ot.extend("--ft-typography-breadcrumb-font-size",nn.fontSize,"10px"),Rn=Ot.extend("--ft-typography-breadcrumb-font-weight",nn.fontWeight,"normal"),Tn=Ot.extend("--ft-typography-breadcrumb-letter-spacing",nn.letterSpacing,"0.33px"),Cn=Ot.extend("--ft-typography-breadcrumb-line-height",nn.lineHeight,"1.6"),In=Ot.extend("--ft-typography-breadcrumb-text-transform",nn.textTransform,"inherit"),An=Ot.extend("--ft-typography-overline-font-family",en),Nn=Ot.extend("--ft-typography-overline-font-size",nn.fontSize,"10px"),jn=Ot.extend("--ft-typography-overline-font-weight",nn.fontWeight,"normal"),Un=Ot.extend("--ft-typography-overline-letter-spacing",nn.letterSpacing,"1.5px"),Mn=Ot.extend("--ft-typography-overline-line-height",nn.lineHeight,"1.6"),Pn=Ot.extend("--ft-typography-overline-text-transform",nn.textTransform,"uppercase"),Dn={fontFamily:Ot.extend("--ft-typography-button-font-family",en),fontSize:Ot.extend("--ft-typography-button-font-size",nn.fontSize,"14px"),fontWeight:Ot.extend("--ft-typography-button-font-weight",nn.fontWeight,"600"),letterSpacing:Ot.extend("--ft-typography-button-letter-spacing",nn.letterSpacing,"1.246px"),lineHeight:Ot.extend("--ft-typography-button-line-height",nn.lineHeight,"1.15"),textTransform:Ot.extend("--ft-typography-button-text-transform",nn.textTransform,"uppercase")},Fn=k`
213
+ `,nn=Ot.extend("--ft-typography-font-family",_t.titleFont),on=Ot.extend("--ft-typography-font-family",_t.contentFont),rn={fontFamily:on,fontSize:Ot.create("--ft-typography-font-size","SIZE","16px"),fontWeight:Ot.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:Ot.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:Ot.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:Ot.create("--ft-typography-text-transform","UNKNOWN","inherit")},sn={fontFamily:Ot.extend("--ft-typography-title-font-family",nn),fontSize:Ot.extend("--ft-typography-title-font-size",rn.fontSize,"20px"),fontWeight:Ot.extend("--ft-typography-title-font-weight",rn.fontWeight,"normal"),letterSpacing:Ot.extend("--ft-typography-title-letter-spacing",rn.letterSpacing,"0.15px"),lineHeight:Ot.extend("--ft-typography-title-line-height",rn.lineHeight,"1.2"),textTransform:Ot.extend("--ft-typography-title-text-transform",rn.textTransform,"inherit")},an={fontFamily:Ot.extend("--ft-typography-title-dense-font-family",nn),fontSize:Ot.extend("--ft-typography-title-dense-font-size",rn.fontSize,"14px"),fontWeight:Ot.extend("--ft-typography-title-dense-font-weight",rn.fontWeight,"normal"),letterSpacing:Ot.extend("--ft-typography-title-dense-letter-spacing",rn.letterSpacing,"0.105px"),lineHeight:Ot.extend("--ft-typography-title-dense-line-height",rn.lineHeight,"1.7"),textTransform:Ot.extend("--ft-typography-title-dense-text-transform",rn.textTransform,"inherit")},ln=Ot.extend("--ft-typography-subtitle1-font-family",on),cn=Ot.extend("--ft-typography-subtitle1-font-size",rn.fontSize,"16px"),hn=Ot.extend("--ft-typography-subtitle1-font-weight",rn.fontWeight,"600"),un=Ot.extend("--ft-typography-subtitle1-letter-spacing",rn.letterSpacing,"0.144px"),dn=Ot.extend("--ft-typography-subtitle1-line-height",rn.lineHeight,"1.5"),fn=Ot.extend("--ft-typography-subtitle1-text-transform",rn.textTransform,"inherit"),pn=Ot.extend("--ft-typography-subtitle2-font-family",on),vn=Ot.extend("--ft-typography-subtitle2-font-size",rn.fontSize,"14px"),bn=Ot.extend("--ft-typography-subtitle2-font-weight",rn.fontWeight,"normal"),yn=Ot.extend("--ft-typography-subtitle2-letter-spacing",rn.letterSpacing,"0.098px"),gn=Ot.extend("--ft-typography-subtitle2-line-height",rn.lineHeight,"1.7"),mn=Ot.extend("--ft-typography-subtitle2-text-transform",rn.textTransform,"inherit"),xn={fontFamily:Ot.extend("--ft-typography-body1-font-family",on),fontSize:Ot.extend("--ft-typography-body1-font-size",rn.fontSize,"16px"),fontWeight:Ot.extend("--ft-typography-body1-font-weight",rn.fontWeight,"normal"),letterSpacing:Ot.extend("--ft-typography-body1-letter-spacing",rn.letterSpacing,"0.496px"),lineHeight:Ot.extend("--ft-typography-body1-line-height",rn.lineHeight,"1.5"),textTransform:Ot.extend("--ft-typography-body1-text-transform",rn.textTransform,"inherit")},wn=Ot.extend("--ft-typography-body2-font-family",on),$n=Ot.extend("--ft-typography-body2-font-size",rn.fontSize,"14px"),Sn=Ot.extend("--ft-typography-body2-font-weight",rn.fontWeight,"normal"),kn=Ot.extend("--ft-typography-body2-letter-spacing",rn.letterSpacing,"0.252px"),On=Ot.extend("--ft-typography-body2-line-height",rn.lineHeight,"1.4"),En=Ot.extend("--ft-typography-body2-text-transform",rn.textTransform,"inherit"),_n={fontFamily:Ot.extend("--ft-typography-caption-font-family",on),fontSize:Ot.extend("--ft-typography-caption-font-size",rn.fontSize,"12px"),fontWeight:Ot.extend("--ft-typography-caption-font-weight",rn.fontWeight,"normal"),letterSpacing:Ot.extend("--ft-typography-caption-letter-spacing",rn.letterSpacing,"0.396px"),lineHeight:Ot.extend("--ft-typography-caption-line-height",rn.lineHeight,"1.33"),textTransform:Ot.extend("--ft-typography-caption-text-transform",rn.textTransform,"inherit")},Rn=Ot.extend("--ft-typography-breadcrumb-font-family",on),Tn=Ot.extend("--ft-typography-breadcrumb-font-size",rn.fontSize,"10px"),Cn=Ot.extend("--ft-typography-breadcrumb-font-weight",rn.fontWeight,"normal"),In=Ot.extend("--ft-typography-breadcrumb-letter-spacing",rn.letterSpacing,"0.33px"),An=Ot.extend("--ft-typography-breadcrumb-line-height",rn.lineHeight,"1.6"),Nn=Ot.extend("--ft-typography-breadcrumb-text-transform",rn.textTransform,"inherit"),jn=Ot.extend("--ft-typography-overline-font-family",on),Un=Ot.extend("--ft-typography-overline-font-size",rn.fontSize,"10px"),Mn=Ot.extend("--ft-typography-overline-font-weight",rn.fontWeight,"normal"),Pn=Ot.extend("--ft-typography-overline-letter-spacing",rn.letterSpacing,"1.5px"),Dn=Ot.extend("--ft-typography-overline-line-height",rn.lineHeight,"1.6"),Fn=Ot.extend("--ft-typography-overline-text-transform",rn.textTransform,"uppercase"),Ln={fontFamily:Ot.extend("--ft-typography-button-font-family",on),fontSize:Ot.extend("--ft-typography-button-font-size",rn.fontSize,"14px"),fontWeight:Ot.extend("--ft-typography-button-font-weight",rn.fontWeight,"600"),letterSpacing:Ot.extend("--ft-typography-button-letter-spacing",rn.letterSpacing,"1.246px"),lineHeight:Ot.extend("--ft-typography-button-line-height",rn.lineHeight,"1.15"),textTransform:Ot.extend("--ft-typography-button-text-transform",rn.textTransform,"uppercase")},Bn=k`
214
214
  .ft-typography--title {
215
- font-family: ${on.fontFamily};
216
- font-size: ${on.fontSize};
217
- font-weight: ${on.fontWeight};
218
- letter-spacing: ${on.letterSpacing};
219
- line-height: ${on.lineHeight};
220
- text-transform: ${on.textTransform};
221
- }
222
- `,Ln=k`
223
- .ft-typography--title-dense {
224
- font-family: ${rn.fontFamily};
225
- font-size: ${rn.fontSize};
226
- font-weight: ${rn.fontWeight};
227
- letter-spacing: ${rn.letterSpacing};
228
- line-height: ${rn.lineHeight};
229
- text-transform: ${rn.textTransform};
230
- }
231
- `,Bn=k`
232
- .ft-typography--subtitle1 {
233
- font-family: ${sn};
234
- font-size: ${an};
235
- font-weight: ${ln};
236
- letter-spacing: ${cn};
237
- line-height: ${hn};
238
- text-transform: ${un};
215
+ font-family: ${sn.fontFamily};
216
+ font-size: ${sn.fontSize};
217
+ font-weight: ${sn.fontWeight};
218
+ letter-spacing: ${sn.letterSpacing};
219
+ line-height: ${sn.lineHeight};
220
+ text-transform: ${sn.textTransform};
239
221
  }
240
222
  `,zn=k`
241
- .ft-typography--subtitle2 {
242
- font-family: ${dn};
243
- font-size: ${fn};
244
- font-weight: ${pn};
245
- letter-spacing: ${vn};
246
- line-height: ${bn};
247
- text-transform: ${yn};
223
+ .ft-typography--title-dense {
224
+ font-family: ${an.fontFamily};
225
+ font-size: ${an.fontSize};
226
+ font-weight: ${an.fontWeight};
227
+ letter-spacing: ${an.letterSpacing};
228
+ line-height: ${an.lineHeight};
229
+ text-transform: ${an.textTransform};
248
230
  }
249
-
250
231
  `,Hn=k`
251
- .ft-typography--body1 {
252
- font-family: ${gn.fontFamily};
253
- font-size: ${gn.fontSize};
254
- font-weight: ${gn.fontWeight};
255
- letter-spacing: ${gn.letterSpacing};
256
- line-height: ${gn.lineHeight};
257
- text-transform: ${gn.textTransform};
232
+ .ft-typography--subtitle1 {
233
+ font-family: ${ln};
234
+ font-size: ${cn};
235
+ font-weight: ${hn};
236
+ letter-spacing: ${un};
237
+ line-height: ${dn};
238
+ text-transform: ${fn};
258
239
  }
259
240
  `,Wn=k`
260
- .ft-typography--body2 {
261
- font-family: ${xn};
262
- font-size: ${mn};
263
- font-weight: ${wn};
264
- letter-spacing: ${$n};
265
- line-height: ${Sn};
266
- text-transform: ${kn};
241
+ .ft-typography--subtitle2 {
242
+ font-family: ${pn};
243
+ font-size: ${vn};
244
+ font-weight: ${bn};
245
+ letter-spacing: ${yn};
246
+ line-height: ${gn};
247
+ text-transform: ${mn};
267
248
  }
249
+
268
250
  `,Kn=k`
269
- .ft-typography--caption {
270
- font-family: ${On.fontFamily};
271
- font-size: ${On.fontSize};
272
- font-weight: ${On.fontWeight};
273
- letter-spacing: ${On.letterSpacing};
274
- line-height: ${On.lineHeight};
275
- text-transform: ${On.textTransform};
251
+ .ft-typography--body1 {
252
+ font-family: ${xn.fontFamily};
253
+ font-size: ${xn.fontSize};
254
+ font-weight: ${xn.fontWeight};
255
+ letter-spacing: ${xn.letterSpacing};
256
+ line-height: ${xn.lineHeight};
257
+ text-transform: ${xn.textTransform};
276
258
  }
277
259
  `,Vn=k`
278
- .ft-typography--breadcrumb {
279
- font-family: ${En};
280
- font-size: ${_n};
281
- font-weight: ${Rn};
282
- letter-spacing: ${Tn};
283
- line-height: ${Cn};
284
- text-transform: ${In};
260
+ .ft-typography--body2 {
261
+ font-family: ${wn};
262
+ font-size: ${$n};
263
+ font-weight: ${Sn};
264
+ letter-spacing: ${kn};
265
+ line-height: ${On};
266
+ text-transform: ${En};
285
267
  }
286
268
  `,Zn=k`
287
- .ft-typography--overline {
288
- font-family: ${An};
289
- font-size: ${Nn};
290
- font-weight: ${jn};
291
- letter-spacing: ${Un};
292
- line-height: ${Mn};
293
- text-transform: ${Pn};
269
+ .ft-typography--caption {
270
+ font-family: ${_n.fontFamily};
271
+ font-size: ${_n.fontSize};
272
+ font-weight: ${_n.fontWeight};
273
+ letter-spacing: ${_n.letterSpacing};
274
+ line-height: ${_n.lineHeight};
275
+ text-transform: ${_n.textTransform};
294
276
  }
295
277
  `,qn=k`
296
- .ft-typography--button {
297
- font-family: ${Dn.fontFamily};
298
- font-size: ${Dn.fontSize};
299
- font-weight: ${Dn.fontWeight};
300
- letter-spacing: ${Dn.letterSpacing};
301
- line-height: ${Dn.lineHeight};
302
- text-transform: ${Dn.textTransform};
278
+ .ft-typography--breadcrumb {
279
+ font-family: ${Rn};
280
+ font-size: ${Tn};
281
+ font-weight: ${Cn};
282
+ letter-spacing: ${In};
283
+ line-height: ${An};
284
+ text-transform: ${Nn};
303
285
  }
304
286
  `,Gn=k`
287
+ .ft-typography--overline {
288
+ font-family: ${jn};
289
+ font-size: ${Un};
290
+ font-weight: ${Mn};
291
+ letter-spacing: ${Pn};
292
+ line-height: ${Dn};
293
+ text-transform: ${Fn};
294
+ }
295
+ `,Xn=k`
296
+ .ft-typography--button {
297
+ font-family: ${Ln.fontFamily};
298
+ font-size: ${Ln.fontSize};
299
+ font-weight: ${Ln.fontWeight};
300
+ letter-spacing: ${Ln.letterSpacing};
301
+ line-height: ${Ln.lineHeight};
302
+ text-transform: ${Ln.textTransform};
303
+ }
304
+ `,Jn=k`
305
305
  .ft-typography {
306
306
  vertical-align: inherit;
307
307
  }
308
- `,Xn={color:Ot.extend("--ft-loader-color",_t.colorPrimary),size:Ot.create("--ft-loader-size","SIZE","80px")},Jn=k`
308
+ `,Yn={color:Ot.extend("--ft-loader-color",_t.colorPrimary),size:Ot.create("--ft-loader-size","SIZE","80px")},Qn=k`
309
309
  :host {
310
310
  line-height: 0;
311
311
  }
@@ -314,8 +314,8 @@ var wt,$t;let St=class extends U{constructor(){super(...arguments),this.renderOp
314
314
  display: inline-block;
315
315
  position: relative;
316
316
 
317
- width: ${Xn.size};
318
- height: ${Xn.size};
317
+ width: ${Yn.size};
318
+ height: ${Yn.size};
319
319
  }
320
320
 
321
321
  .ft-loader div {
@@ -324,7 +324,7 @@ var wt,$t;let St=class extends U{constructor(){super(...arguments),this.renderOp
324
324
  width: 25%;
325
325
  height: 25%;
326
326
  border-radius: 50%;
327
- background: ${Xn.color};
327
+ background: ${Yn.color};
328
328
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
329
329
  }
330
330
 
@@ -371,10 +371,10 @@ var wt,$t;let St=class extends U{constructor(){super(...arguments),this.renderOp
371
371
  transform: translate(0, 0);
372
372
  }
373
373
  100% {
374
- transform: translate(calc(0.35 * ${Xn.size}), 0);
374
+ transform: translate(calc(0.35 * ${Yn.size}), 0);
375
375
  }
376
376
  }
377
- `,Yn={size:Ot.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:Ot.extend("--ft-icon-fluid-topics-font-family",Ot.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:Ot.extend("--ft-icon-file-format-font-family",Ot.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:Ot.extend("--ft-icon-material-font-family",Ot.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:Ot.create("--ft-icon-vertical-align","UNKNOWN","unset")},Qn=k`
377
+ `,to={size:Ot.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:Ot.extend("--ft-icon-fluid-topics-font-family",Ot.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:Ot.extend("--ft-icon-file-format-font-family",Ot.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:Ot.extend("--ft-icon-material-font-family",Ot.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:Ot.create("--ft-icon-vertical-align","UNKNOWN","unset")},eo=k`
378
378
  :host, i.ft-icon {
379
379
  display: inline-flex;
380
380
  align-items: center;
@@ -383,14 +383,14 @@ var wt,$t;let St=class extends U{constructor(){super(...arguments),this.renderOp
383
383
  }
384
384
 
385
385
  :host {
386
- width: ${Yn.size};
387
- height: ${Yn.size};
386
+ width: ${to.size};
387
+ height: ${to.size};
388
388
  }
389
389
 
390
390
  i.ft-icon {
391
391
  width: 100%;
392
392
  height: 100%;
393
- font-size: ${Yn.size};
393
+ font-size: ${to.size};
394
394
  line-height: 1;
395
395
  font-weight: normal;
396
396
  text-transform: none;
@@ -401,28 +401,28 @@ var wt,$t;let St=class extends U{constructor(){super(...arguments),this.renderOp
401
401
  text-rendering: auto;
402
402
  -webkit-font-smoothing: antialiased;
403
403
  -moz-osx-font-smoothing: grayscale;
404
- vertical-align: ${Yn.verticalAlign};
404
+ vertical-align: ${to.verticalAlign};
405
405
  }
406
406
 
407
407
  i.ft-icon.ft-icon--fluid-topics {
408
- font-family: ${Yn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
408
+ font-family: ${to.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
409
409
 
410
410
  /* Ugly fix because font is broken */
411
- font-size: calc(0.75 * ${Yn.size});
412
- line-height: ${Yn.size};
411
+ font-size: calc(0.75 * ${to.size});
412
+ line-height: ${to.size};
413
413
  position: relative;
414
414
  top: -4%;
415
415
  justify-content: center;
416
416
  }
417
417
 
418
418
  .ft-icon--file-format {
419
- font-family: ${Yn.fileFormatFontFamily}, ft-mime, sans-serif;
419
+ font-family: ${to.fileFormatFontFamily}, ft-mime, sans-serif;
420
420
  }
421
421
 
422
422
  .ft-icon--material {
423
- font-family: ${Yn.materialFontFamily}, "Material Icons", sans-serif;
423
+ font-family: ${to.materialFontFamily}, "Material Icons", sans-serif;
424
424
  }
425
- `,to=Ot.extend("--ft-button-color",_t.colorPrimary),eo={backgroundColor:Ot.extend("--ft-button-background-color",_t.colorSurface),borderRadius:Ot.extend("--ft-button-border-radius",_t.borderRadiusL),color:to,fontSize:Ot.extend("--ft-button-font-size",Dn.fontSize),iconSize:Ot.create("--ft-button-icon-size","SIZE","24px"),rippleColor:Ot.extend("--ft-button-ripple-color",to),verticalPadding:Ot.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:Ot.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:Ot.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:Ot.external(_t.colorOpacityDisabled,"Design system")},io=Ot.extend("--ft-button-primary-color",Ot.extend("--ft-button-color",_t.colorOnPrimary)),no={backgroundColor:Ot.extend("--ft-button-primary-background-color",Ot.extend("--ft-button-background-color",_t.colorPrimary)),color:io,rippleColor:Ot.extend("--ft-button-primary-ripple-color",io)},oo=Ot.extend("--ft-button-dense-border-radius",Ot.extend("--ft-button-border-radius",_t.borderRadiusM)),ro=Ot.create("--ft-button-dense-vertical-padding","SIZE","2px"),so=Ot.create("--ft-button-dense-horizontal-padding","SIZE","4px"),ao=Ot.create("--ft-button-dense-icon-padding","SIZE","4px"),lo=[k`
425
+ `,io=Ot.extend("--ft-button-color",_t.colorPrimary),no={backgroundColor:Ot.extend("--ft-button-background-color",_t.colorSurface),borderRadius:Ot.extend("--ft-button-border-radius",_t.borderRadiusL),color:io,fontSize:Ot.extend("--ft-button-font-size",Ln.fontSize),iconSize:Ot.create("--ft-button-icon-size","SIZE","24px"),rippleColor:Ot.extend("--ft-button-ripple-color",io),verticalPadding:Ot.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:Ot.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:Ot.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:Ot.external(_t.colorOpacityDisabled,"Design system")},oo=Ot.extend("--ft-button-primary-color",Ot.extend("--ft-button-color",_t.colorOnPrimary)),ro={backgroundColor:Ot.extend("--ft-button-primary-background-color",Ot.extend("--ft-button-background-color",_t.colorPrimary)),color:oo,rippleColor:Ot.extend("--ft-button-primary-ripple-color",oo)},so=Ot.extend("--ft-button-dense-border-radius",Ot.extend("--ft-button-border-radius",_t.borderRadiusM)),ao=Ot.create("--ft-button-dense-vertical-padding","SIZE","2px"),lo=Ot.create("--ft-button-dense-horizontal-padding","SIZE","4px"),co=Ot.create("--ft-button-dense-icon-padding","SIZE","4px"),ho=[k`
426
426
  :host {
427
427
  display: inline-block;
428
428
  max-width: 100%;
@@ -433,7 +433,7 @@ var wt,$t;let St=class extends U{constructor(){super(...arguments),this.renderOp
433
433
  box-shadow: 0px 0px 0px transparent;
434
434
  border: 0px solid transparent;
435
435
  text-shadow: 0px 0px 0px transparent;
436
- font-size: ${eo.fontSize};
436
+ font-size: ${no.fontSize};
437
437
  }
438
438
 
439
439
  button:hover {
@@ -462,31 +462,31 @@ var wt,$t;let St=class extends U{constructor(){super(...arguments),this.renderOp
462
462
  border: none;
463
463
  pointer-events: auto;
464
464
 
465
- --ft-button-internal-line-height: max(calc(${eo.fontSize} + 2px), ${eo.iconSize});
466
- --ft-button-internal-color: ${eo.color};
467
- ${Et(Yn.size,eo.iconSize)};
468
- ${Et(Vi.color,eo.rippleColor)};
465
+ --ft-button-internal-line-height: max(calc(${no.fontSize} + 2px), ${no.iconSize});
466
+ --ft-button-internal-color: ${no.color};
467
+ ${Et(to.size,no.iconSize)};
468
+ ${Et(qi.color,no.rippleColor)};
469
469
 
470
- border-radius: ${eo.borderRadius};
471
- padding: ${eo.verticalPadding} ${eo.horizontalPadding};
472
- background-color: ${eo.backgroundColor};
470
+ border-radius: ${no.borderRadius};
471
+ padding: ${no.verticalPadding} ${no.horizontalPadding};
472
+ background-color: ${no.backgroundColor};
473
473
  color: var(--ft-button-internal-color);
474
474
  -webkit-mask-image: radial-gradient(white, black);
475
475
  }
476
476
 
477
477
  .ft-button.ft-button--outlined {
478
478
  border: 1px solid var(--ft-button-internal-color);
479
- padding: calc(${eo.verticalPadding} - 1px) calc(${eo.horizontalPadding} - 1px);
479
+ padding: calc(${no.verticalPadding} - 1px) calc(${no.horizontalPadding} - 1px);
480
480
  }
481
481
 
482
482
  .ft-button.ft-button--dense {
483
- padding: ${ro} ${so};
484
- border-radius: ${oo};
485
- gap: ${ao};
483
+ padding: ${ao} ${lo};
484
+ border-radius: ${so};
485
+ gap: ${co};
486
486
  }
487
487
 
488
488
  .ft-button.ft-button--dense.ft-button--outlined {
489
- padding: calc(${ro} - 1px) calc(${so} - 1px);
489
+ padding: calc(${ao} - 1px) calc(${lo} - 1px);
490
490
  }
491
491
 
492
492
  .ft-button:not([disabled]):hover {
@@ -494,22 +494,22 @@ var wt,$t;let St=class extends U{constructor(){super(...arguments),this.renderOp
494
494
  }
495
495
 
496
496
  .ft-button--round {
497
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${eo.verticalPadding});
497
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${no.verticalPadding});
498
498
  }
499
499
 
500
500
  .ft-button--round.ft-button--dense {
501
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ro});
501
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ao});
502
502
  }
503
503
 
504
504
  .ft-button[disabled] {
505
505
  filter: grayscale(1);
506
- opacity: ${eo.opacityDisabled};
506
+ opacity: ${no.opacityDisabled};
507
507
  }
508
508
 
509
509
  .ft-button.ft-button--primary {
510
- background-color: ${no.backgroundColor};
511
- --ft-button-internal-color: ${no.color};
512
- ${Et(Vi.color,no.rippleColor)};
510
+ background-color: ${ro.backgroundColor};
511
+ --ft-button-internal-color: ${ro.color};
512
+ ${Et(qi.color,ro.rippleColor)};
513
513
  }
514
514
 
515
515
  .ft-button:focus {
@@ -522,13 +522,13 @@ var wt,$t;let St=class extends U{constructor(){super(...arguments),this.renderOp
522
522
  white-space: nowrap;
523
523
  text-overflow: ellipsis;
524
524
  display: block;
525
- margin: 0 ${eo.iconPadding};
526
- ${Et(Dn.fontSize,"1em")};
527
- ${Et(Dn.lineHeight,"var(--ft-button-internal-line-height)")};
525
+ margin: 0 ${no.iconPadding};
526
+ ${Et(Ln.fontSize,"1em")};
527
+ ${Et(Ln.lineHeight,"var(--ft-button-internal-line-height)")};
528
528
  }
529
529
 
530
530
  .ft-button--dense .ft-button--label {
531
- margin: 0 ${ao};
531
+ margin: 0 ${co};
532
532
  }
533
533
 
534
534
  .ft-button--label[hidden] {
@@ -541,13 +541,13 @@ var wt,$t;let St=class extends U{constructor(){super(...arguments),this.renderOp
541
541
  }
542
542
 
543
543
  .ft-button--label[hidden] + ft-icon {
544
- margin: 0 calc(${eo.horizontalPadding} * -1);
545
- padding: 0 ${eo.verticalPadding};
544
+ margin: 0 calc(${no.horizontalPadding} * -1);
545
+ padding: 0 ${no.verticalPadding};
546
546
  }
547
547
 
548
548
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
549
- margin: 0 calc(${so} * -1);
550
- padding: 0 ${ro};
549
+ margin: 0 calc(${lo} * -1);
550
+ padding: 0 ${ao};
551
551
  }
552
552
 
553
553
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -556,10 +556,10 @@ var wt,$t;let St=class extends U{constructor(){super(...arguments),this.renderOp
556
556
  }
557
557
 
558
558
  ft-loader {
559
- ${Et(Xn.size,eo.iconSize)};
560
- ${Et(Xn.color,"var(--ft-button-internal-color)")};
559
+ ${Et(Yn.size,no.iconSize)};
560
+ ${Et(Yn.color,"var(--ft-button-internal-color)")};
561
561
  }
562
- `,Mt],co={textColor:Ot.extend("--ft-switch-text-color",_t.colorOnSurfaceHigh),backgroundColor:Ot.extend("--ft-switch-background-color",_t.colorSurface),selectedTextColor:Ot.extend("--ft-switch-selected-text-color",_t.colorPrimary),selectedBackgroundColor:Ot.extend("--ft-switch-selected-background-color",_t.colorPrimary),borderColor:Ot.extend("--ft-switch-border-color",_t.colorOutline),borderRadius:Ot.extend("--ft-switch-border-radius",_t.borderRadiusL),fontSize:Ot.extend("--ft-switch-font-size",Dn.fontSize),iconSize:Ot.create("--ft-switch-icon-size","SIZE","24px"),iconColor:Ot.extend("--ft-switch-text-color",_t.colorOnSurfaceMedium),rippleColor:Ot.extend("--ft-switch-ripple-color",_t.colorPrimary),outlineColor:Ot.extend("--ft-switch-outline-color",_t.colorPrimary)},ho={feedbackInputMinWidth:Ot.create("--ft-reader-feedback-input-min-width","SIZE","300px"),ratedDateColor:Ot.external(_t.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:Ot.extend("--ft-reader-feedback-send-feedback-color",_t.colorOnPrimary),sendFeedbackBackgroundColor:Ot.extend("--ft-reader-feedback-send-feedback-background-color",_t.colorPrimary),filledRatingColor:Ot.extend("--ft-reader-feedback-filled-rating-color",_t.colorPrimary),emptyRatingColor:Ot.extend("--ft-reader-feedback-empty-rating-color",_t.colorOnSurfaceMedium),mainTitleFontSize:Ot.external(on.fontSize,"Typography"),sectionTitleFontSize:Ot.external(rn.fontSize,"Typography")},uo=k`
562
+ `,Mt],uo={textColor:Ot.extend("--ft-switch-text-color",_t.colorOnSurfaceHigh),backgroundColor:Ot.extend("--ft-switch-background-color",_t.colorSurface),selectedTextColor:Ot.extend("--ft-switch-selected-text-color",_t.colorPrimary),selectedBackgroundColor:Ot.extend("--ft-switch-selected-background-color",_t.colorPrimary),borderColor:Ot.extend("--ft-switch-border-color",_t.colorOutline),borderRadius:Ot.extend("--ft-switch-border-radius",_t.borderRadiusL),fontSize:Ot.extend("--ft-switch-font-size",Ln.fontSize),iconSize:Ot.create("--ft-switch-icon-size","SIZE","24px"),iconColor:Ot.extend("--ft-switch-text-color",_t.colorOnSurfaceMedium),rippleColor:Ot.extend("--ft-switch-ripple-color",_t.colorPrimary),outlineColor:Ot.extend("--ft-switch-outline-color",_t.colorPrimary)},fo={feedbackInputMinWidth:Ot.create("--ft-reader-feedback-input-min-width","SIZE","300px"),ratedDateColor:Ot.external(_t.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:Ot.extend("--ft-reader-feedback-send-feedback-color",_t.colorOnPrimary),sendFeedbackBackgroundColor:Ot.extend("--ft-reader-feedback-send-feedback-background-color",_t.colorPrimary),filledRatingColor:Ot.extend("--ft-reader-feedback-filled-rating-color",_t.colorPrimary),emptyRatingColor:Ot.extend("--ft-reader-feedback-empty-rating-color",_t.colorOnSurfaceMedium),mainTitleFontSize:Ot.external(sn.fontSize,"Typography"),sectionTitleFontSize:Ot.external(an.fontSize,"Typography")},po=k`
563
563
  .ft-reader-feedback {
564
564
  box-sizing: border-box;
565
565
  display: flex;
@@ -605,14 +605,14 @@ var wt,$t;let St=class extends U{constructor(){super(...arguments),this.renderOp
605
605
  }
606
606
 
607
607
  .ft-reader-feedback--rating {
608
- ${Et(eo.color,ho.emptyRatingColor)};
609
- ${Et(eo.rippleColor,ho.filledRatingColor)};
610
- ${Et(co.textColor,ho.emptyRatingColor)};
611
- ${Et(co.selectedTextColor,ho.filledRatingColor)};
608
+ ${Et(no.color,fo.emptyRatingColor)};
609
+ ${Et(no.rippleColor,fo.filledRatingColor)};
610
+ ${Et(uo.textColor,fo.emptyRatingColor)};
611
+ ${Et(uo.selectedTextColor,fo.filledRatingColor)};
612
612
  }
613
613
 
614
614
  .ft-reader-feedback--rating .ft-reader-feedback--active {
615
- ${Et(eo.color,ho.filledRatingColor)};
615
+ ${Et(no.color,fo.filledRatingColor)};
616
616
  }
617
617
 
618
618
  .ft-reader-feedback--feedback {
@@ -620,47 +620,47 @@ var wt,$t;let St=class extends U{constructor(){super(...arguments),this.renderOp
620
620
  }
621
621
 
622
622
  .ft-reader-feedback--rating-date {
623
- color: ${ho.ratedDateColor};
623
+ color: ${fo.ratedDateColor};
624
624
  }
625
625
 
626
626
  .ft-reader-feedback--feedback ft-text-area {
627
- min-width: ${ho.feedbackInputMinWidth};
627
+ min-width: ${fo.feedbackInputMinWidth};
628
628
  }
629
629
 
630
630
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
631
631
  align-self: flex-end;
632
- ${Et(eo.color,ho.sendFeedbackColor)};
633
- ${Et(eo.backgroundColor,ho.sendFeedbackBackgroundColor)};
632
+ ${Et(no.color,fo.sendFeedbackColor)};
633
+ ${Et(no.backgroundColor,fo.sendFeedbackBackgroundColor)};
634
634
  }
635
- `;!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 n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(t){return t&&n.indexOf(Object.prototype.toString.call(t))>-1};function r(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 s(t){return"string"!=typeof t&&(t=String(t)),t}function a(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 u(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 f(){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)||o(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(u)}),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),n=0;n<e.length;n++)i[n]=String.fromCharCode(e[n]);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(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=r(t),e=s(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},l.prototype.delete=function(t){delete this.map[r(t)]},l.prototype.get=function(t){return t=r(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(r(t))},l.prototype.set=function(t,e){this.map[r(t)]=s(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)})),a(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),a(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,i){t.push([i,e])})),a(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(t,e){var i,n,o=(e=e||{}).body;if(t instanceof v){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,o||null==t._bodyInit||(o=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",n=i.toUpperCase(),p.indexOf(n)>-1?n:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),n=i.shift().replace(/\+/g," "),o=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function y(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)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},f.call(v.prototype),f.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var g=[301,302,303,307,308];y.redirect=function(t,e){if(-1===g.indexOf(e))throw new RangeError("Invalid status code");return new y(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 x(t,n){return new Promise((function(o,r){var s=new v(t,n);if(s.signal&&s.signal.aborted)return r(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,i={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var i=t.split(":"),n=i.shift().trim();if(n){var o=i.join(":").trim();e.append(n,o)}})),e)};i.url="responseURL"in a?a.responseURL:i.headers.get("X-Request-URL");var n="response"in a?a.response:a.responseText;o(new y(n,i))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.onabort=function(){r(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&i.blob&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}x.polyfill=!0,t.fetch||(t.fetch=x,t.Headers=l,t.Request=v,t.Response=y),e.Headers=l,e.Request=v,e.Response=y,e.fetch=x,Object.defineProperty(e,"B",{value:!0})}({})}("undefined"!=typeof self?self:void 0);const fo=t=>"object"==typeof t&&null!=t,po=t=>"string"==typeof t;var vo,bo,yo,go,xo,mo,wo,$o,So,ko,Oo,Eo;!function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(vo||(vo={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(bo||(bo={})),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"}(yo||(yo={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(go||(go={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(xo||(xo={})),function(t){t.ASC="ASC",t.DESC="DESC"}(mo||(mo={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(wo||(wo={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK"}($o||($o={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(So||(So={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(ko||(ko={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Oo||(Oo={})),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"}(Eo||(Eo={}));const _o=t=>fo(t)&&(null==t.authenticationIdentifier||(t=>fo(t)&&po(t.identifier)&&po(t.realm))(t.authenticationIdentifier))&&(t=>"number"==typeof t)(t.idleTimeoutInMillis)&&Ro(t.profile)&&(t=>"boolean"==typeof t)(t.sessionAuthenticated),Ro=t=>fo(t)&&(null==t.emailAddress||po(t.emailAddress))&&(null==t.displayName||po(t.displayName))&&Array.isArray(t.roles)&&t.roles.every((t=>(t=>["PERSONAL_BOOK_USER","PERSONAL_BOOK_SHARE_USER","HTML_EXPORT_USER","PDF_EXPORT_USER","SAVED_SEARCH_USER","COLLECTION_USER","OFFLINE_USER","ANALYTICS_USER","BETA_USER","DEBUG_USER","PRINT_USER","RATING_USER","FEEDBACK_USER","CONTENT_PUBLISHER","KHUB_ADMIN","USERS_ADMIN","PORTAL_ADMIN","ADMIN","DEVELOPER"].includes(t))(t)))&&(null==t.userId||po(t.userId)),To={[Eo.PERSONAL_BOOK_SHARE_USER]:[Eo.PERSONAL_BOOK_USER],[Eo.HTML_EXPORT_USER]:[Eo.PERSONAL_BOOK_USER],[Eo.PDF_EXPORT_USER]:[Eo.PERSONAL_BOOK_USER],[Eo.KHUB_ADMIN]:[Eo.CONTENT_PUBLISHER],[Eo.ADMIN]:[Eo.KHUB_ADMIN,Eo.USERS_ADMIN,Eo.PORTAL_ADMIN],[Eo.DEVELOPER]:[Eo.BETA_USER,Eo.DEBUG_USER]};function Co(t,e){return t===e||(To[t]??[]).some((t=>Co(t,e)))}function Io(t,e){return(_o(t)?t.profile.roles:Ro(t)?t.roles:t).some((t=>Co(t,e)))}
635
+ `;!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 n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(t){return t&&n.indexOf(Object.prototype.toString.call(t))>-1};function r(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 s(t){return"string"!=typeof t&&(t=String(t)),t}function a(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 u(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 f(){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)||o(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(u)}),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),n=0;n<e.length;n++)i[n]=String.fromCharCode(e[n]);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(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=r(t),e=s(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},l.prototype.delete=function(t){delete this.map[r(t)]},l.prototype.get=function(t){return t=r(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(r(t))},l.prototype.set=function(t,e){this.map[r(t)]=s(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)})),a(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),a(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,i){t.push([i,e])})),a(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(t,e){var i,n,o=(e=e||{}).body;if(t instanceof v){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,o||null==t._bodyInit||(o=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",n=i.toUpperCase(),p.indexOf(n)>-1?n:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),n=i.shift().replace(/\+/g," "),o=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function y(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)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},f.call(v.prototype),f.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var g=[301,302,303,307,308];y.redirect=function(t,e){if(-1===g.indexOf(e))throw new RangeError("Invalid status code");return new y(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,n){return new Promise((function(o,r){var s=new v(t,n);if(s.signal&&s.signal.aborted)return r(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,i={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var i=t.split(":"),n=i.shift().trim();if(n){var o=i.join(":").trim();e.append(n,o)}})),e)};i.url="responseURL"in a?a.responseURL:i.headers.get("X-Request-URL");var n="response"in a?a.response:a.responseText;o(new y(n,i))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.onabort=function(){r(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&i.blob&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=v,t.Response=y),e.Headers=l,e.Request=v,e.Response=y,e.fetch=m,Object.defineProperty(e,"B",{value:!0})}({})}("undefined"!=typeof self?self:void 0);const vo=t=>"object"==typeof t&&null!=t,bo=t=>"string"==typeof t;var yo,go,mo,xo,wo,$o,So,ko,Oo,Eo,_o,Ro;!function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(yo||(yo={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(go||(go={})),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"}(mo||(mo={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(xo||(xo={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(wo||(wo={})),function(t){t.ASC="ASC",t.DESC="DESC"}($o||($o={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(So||(So={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK"}(ko||(ko={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Oo||(Oo={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Eo||(Eo={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(_o||(_o={})),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"}(Ro||(Ro={}));const To=t=>vo(t)&&(null==t.authenticationIdentifier||(t=>vo(t)&&bo(t.identifier)&&bo(t.realm))(t.authenticationIdentifier))&&(t=>"number"==typeof t)(t.idleTimeoutInMillis)&&Co(t.profile)&&(t=>"boolean"==typeof t)(t.sessionAuthenticated),Co=t=>vo(t)&&(null==t.emailAddress||bo(t.emailAddress))&&(null==t.displayName||bo(t.displayName))&&Array.isArray(t.roles)&&t.roles.every((t=>(t=>["PERSONAL_BOOK_USER","PERSONAL_BOOK_SHARE_USER","HTML_EXPORT_USER","PDF_EXPORT_USER","SAVED_SEARCH_USER","COLLECTION_USER","OFFLINE_USER","ANALYTICS_USER","BETA_USER","DEBUG_USER","PRINT_USER","RATING_USER","FEEDBACK_USER","CONTENT_PUBLISHER","KHUB_ADMIN","USERS_ADMIN","PORTAL_ADMIN","ADMIN","DEVELOPER"].includes(t))(t)))&&(null==t.userId||bo(t.userId)),Io={[Ro.PERSONAL_BOOK_SHARE_USER]:[Ro.PERSONAL_BOOK_USER],[Ro.HTML_EXPORT_USER]:[Ro.PERSONAL_BOOK_USER],[Ro.PDF_EXPORT_USER]:[Ro.PERSONAL_BOOK_USER],[Ro.KHUB_ADMIN]:[Ro.CONTENT_PUBLISHER],[Ro.ADMIN]:[Ro.KHUB_ADMIN,Ro.USERS_ADMIN,Ro.PORTAL_ADMIN],[Ro.DEVELOPER]:[Ro.BETA_USER,Ro.DEBUG_USER]};function Ao(t,e){return t===e||(Io[t]??[]).some((t=>Ao(t,e)))}function No(t,e){return(To(t)?t.profile.roles:Co(t)?t.roles:t).some((t=>Ao(t,e)))}
636
636
  /**
637
637
  * @license
638
638
  * Copyright 2020 Google LLC
639
639
  * SPDX-License-Identifier: BSD-3-Clause
640
- */const Ao=Symbol.for(""),No=t=>{if((null==t?void 0:t.r)===Ao)return null==t?void 0:t._$litStatic$},jo=t=>({_$litStatic$:t,r:Ao}),Uo=new Map,Mo=(t=>(e,...i)=>{const n=i.length;let o,r;const s=[],a=[];let l,c=0,h=!1;for(;c<n;){for(l=e[c];c<n&&void 0!==(r=i[c],o=No(r));)l+=o+e[++c],h=!0;c!==n&&a.push(r),s.push(l),c++}if(c===n&&s.push(e[n]),h){const t=s.join("$$lit$$");void 0===(e=Uo.get(t))&&(s.raw=s,Uo.set(t,e=s)),i=a}return t(e,...i)})(nt);var Po;!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"}(Po||(Po={}));var Do=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Fo extends Ut{constructor(){super(...arguments),this.variant=Po.body1}render(){return this.element?Mo`
641
- <${jo(this.element)}
640
+ */const jo=Symbol.for(""),Uo=t=>{if((null==t?void 0:t.r)===jo)return null==t?void 0:t._$litStatic$},Mo=t=>({_$litStatic$:t,r:jo}),Po=new Map,Do=(t=>(e,...i)=>{const n=i.length;let o,r;const s=[],a=[];let l,c=0,h=!1;for(;c<n;){for(l=e[c];c<n&&void 0!==(r=i[c],o=Uo(r));)l+=o+e[++c],h=!0;c!==n&&a.push(r),s.push(l),c++}if(c===n&&s.push(e[n]),h){const t=s.join("$$lit$$");void 0===(e=Po.get(t))&&(s.raw=s,Po.set(t,e=s)),i=a}return t(e,...i)})(nt);var Fo;!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"}(Fo||(Fo={}));var Lo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Bo extends Ut{constructor(){super(...arguments),this.variant=Fo.body1}render(){return this.element?Do`
641
+ <${Mo(this.element)}
642
642
  class="ft-typography ft-typography--${this.variant}">
643
643
  <slot></slot>
644
- </${jo(this.element)}>
645
- `:Mo`
644
+ </${Mo(this.element)}>
645
+ `:Do`
646
646
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
647
- `}}Fo.styles=[Fn,Ln,Bn,zn,Hn,Wn,Kn,Vn,Zn,qn,Gn],Do([s()],Fo.prototype,"element",void 0),Do([s()],Fo.prototype,"variant",void 0),b("ft-typography")(Fo);
647
+ `}}Bo.styles=[Bn,zn,Hn,Wn,Kn,Vn,Zn,qn,Gn,Xn,Jn],Lo([s()],Bo.prototype,"element",void 0),Lo([s()],Bo.prototype,"variant",void 0),b("ft-typography")(Bo);
648
648
  /**
649
649
  * @license
650
650
  * Copyright 2017 Google LLC
651
651
  * SPDX-License-Identifier: BSD-3-Clause
652
652
  */
653
- const Lo=1,Bo=2,zo=t=>(...e)=>({_$litDirective$:t,values:e});class Ho{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)}}
653
+ const zo=1,Ho=2,Wo=t=>(...e)=>({_$litDirective$:t,values:e});class Ko{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)}}
654
654
  /**
655
655
  * @license
656
656
  * Copyright 2017 Google LLC
657
657
  * SPDX-License-Identifier: BSD-3-Clause
658
- */class Wo extends Ho{constructor(t){if(super(t),this.et=rt,t.type!==Bo)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===rt||null==t)return this.ft=void 0,this.et=t;if(t===ot)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Wo.directiveName="unsafeHTML",Wo.resultType=1;const Ko=zo(Wo);var Vo,Zo,qo;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Vo||(Vo={})),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;"}(Zo||(Zo={})),new Map([...["abw"].map((t=>[t,Zo.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,Zo.AUDIO])),...["avi"].map((t=>[t,Zo.AVI])),...["chm","xhs"].map((t=>[t,Zo.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,Zo.CODE])),...["csv"].map((t=>[t,Zo.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Zo.DITA])),...["epub"].map((t=>[t,Zo.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Zo.EXCEL])),...["flac"].map((t=>[t,Zo.FLAC])),...["gif"].map((t=>[t,Zo.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Zo.GZIP])),...["html","htm","xhtml"].map((t=>[t,Zo.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,Zo.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Zo.JPEG])),...["json"].map((t=>[t,Zo.JSON])),...["m4a","m4p"].map((t=>[t,Zo.M4A])),...["mov","qt"].map((t=>[t,Zo.MOV])),...["mp3"].map((t=>[t,Zo.MP3])),...["mp4","m4v"].map((t=>[t,Zo.MP4])),...["ogg","oga"].map((t=>[t,Zo.OGG])),...["pdf","ps"].map((t=>[t,Zo.PDF])),...["png"].map((t=>[t,Zo.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Zo.POWERPOINT])),...["rar"].map((t=>[t,Zo.RAR])),...["stp"].map((t=>[t,Zo.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Zo.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,Zo.VIDEO])),...["wav"].map((t=>[t,Zo.WAV])),...["wma"].map((t=>[t,Zo.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Zo.WORD])),...["xml","xsl","rdf"].map((t=>[t,Zo.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Zo.YAML])),...["zip"].map((t=>[t,Zo.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(qo||(qo={}));var Go=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Xo extends Ut{constructor(){super(...arguments),this.resolvedIcon=rt}render(){const t=this.variant&&Object.values(qo).includes(this.variant)?this.variant:qo.fluid_topics,e=t!==qo.material||!!this.value;return nt`
658
+ */class Vo extends Ko{constructor(t){if(super(t),this.et=rt,t.type!==Ho)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===rt||null==t)return this.ft=void 0,this.et=t;if(t===ot)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Vo.directiveName="unsafeHTML",Vo.resultType=1;const Zo=Wo(Vo);var qo,Go,Xo;!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;"}(qo||(qo={})),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;"}(Go||(Go={})),new Map([...["abw"].map((t=>[t,Go.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,Go.AUDIO])),...["avi"].map((t=>[t,Go.AVI])),...["chm","xhs"].map((t=>[t,Go.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,Go.CODE])),...["csv"].map((t=>[t,Go.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Go.DITA])),...["epub"].map((t=>[t,Go.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Go.EXCEL])),...["flac"].map((t=>[t,Go.FLAC])),...["gif"].map((t=>[t,Go.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Go.GZIP])),...["html","htm","xhtml"].map((t=>[t,Go.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,Go.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Go.JPEG])),...["json"].map((t=>[t,Go.JSON])),...["m4a","m4p"].map((t=>[t,Go.M4A])),...["mov","qt"].map((t=>[t,Go.MOV])),...["mp3"].map((t=>[t,Go.MP3])),...["mp4","m4v"].map((t=>[t,Go.MP4])),...["ogg","oga"].map((t=>[t,Go.OGG])),...["pdf","ps"].map((t=>[t,Go.PDF])),...["png"].map((t=>[t,Go.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Go.POWERPOINT])),...["rar"].map((t=>[t,Go.RAR])),...["stp"].map((t=>[t,Go.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Go.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,Go.VIDEO])),...["wav"].map((t=>[t,Go.WAV])),...["wma"].map((t=>[t,Go.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Go.WORD])),...["xml","xsl","rdf"].map((t=>[t,Go.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Go.YAML])),...["zip"].map((t=>[t,Go.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Xo||(Xo={}));var Jo=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Yo extends Ut{constructor(){super(...arguments),this.resolvedIcon=rt}render(){const t=this.variant&&Object.values(Xo).includes(this.variant)?this.variant:Xo.fluid_topics,e=t!==Xo.material||!!this.value;return nt`
659
659
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
660
- ${Ko(this.resolvedIcon)}
660
+ ${Zo(this.resolvedIcon)}
661
661
  <slot ?hidden=${e}></slot>
662
662
  </i>
663
- `}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 qo.file_format:this.resolvedIcon=null!==(t=Zo[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case qo.material:this.resolvedIcon=this.value||rt;break;default:this.resolvedIcon=null!==(e=Vo[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Xo.elementDefinitions={},Xo.styles=Qn,Go([s()],Xo.prototype,"variant",void 0),Go([s()],Xo.prototype,"value",void 0),Go([a()],Xo.prototype,"resolvedIcon",void 0),Go([c("slot")],Xo.prototype,"slottedContent",void 0),b("ft-icon")(Xo);const Jo=Ot.create("--ft-tooltip-distance","SIZE","4px"),Yo=Ot.create("--ft-tooltip-color","COLOR","#FFFFFF"),Qo=Ot.create("--ft-tooltip-background-color","COLOR","#666666"),tr=Ot.create("--ft-tooltip-z-index","NUMBER","100"),er=Ot.external(_t.borderRadiusS,"Design system"),ir=Ot.create("--ft-tooltip-max-width","SIZE","150px"),nr=k`
663
+ `}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 Xo.file_format:this.resolvedIcon=null!==(t=Go[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Xo.material:this.resolvedIcon=this.value||rt;break;default:this.resolvedIcon=null!==(e=qo[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Yo.elementDefinitions={},Yo.styles=eo,Jo([s()],Yo.prototype,"variant",void 0),Jo([s()],Yo.prototype,"value",void 0),Jo([a()],Yo.prototype,"resolvedIcon",void 0),Jo([c("slot")],Yo.prototype,"slottedContent",void 0),b("ft-icon")(Yo);const Qo=Ot.create("--ft-tooltip-distance","SIZE","4px"),tr=Ot.create("--ft-tooltip-color","COLOR","#FFFFFF"),er=Ot.create("--ft-tooltip-background-color","COLOR","#666666"),ir=Ot.create("--ft-tooltip-z-index","NUMBER","100"),nr=Ot.external(_t.borderRadiusS,"Design system"),or=Ot.create("--ft-tooltip-max-width","SIZE","150px"),rr=k`
664
664
  .ft-tooltip--container {
665
665
  display: block;
666
666
  }
@@ -675,21 +675,21 @@ const Lo=1,Bo=2,zo=t=>(...e)=>({_$litDirective$:t,values:e});class Ho{constructo
675
675
  box-sizing: border-box;
676
676
  overflow: hidden;
677
677
  width: max-content;
678
- max-width: ${ir};
678
+ max-width: ${or};
679
679
  text-align: center;
680
- padding: ${Jo};
681
- z-index: ${tr};
680
+ padding: ${Qo};
681
+ z-index: ${ir};
682
682
  }
683
683
 
684
684
  .ft-tooltip--content {
685
685
  padding: 4px 8px;
686
- border-radius: ${er};
687
- background-color: ${Qo};
688
- color: ${Yo};
686
+ border-radius: ${nr};
687
+ background-color: ${er};
688
+ color: ${tr};
689
689
  position: relative;
690
690
  word-break: break-word;
691
691
  }
692
- `;var or=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class rr extends Ut{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 o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return nt`
692
+ `;var sr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ar extends Ut{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 o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return nt`
693
693
  <div part="container"
694
694
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
695
695
  @mouseenter=${this.onHover}
@@ -707,24 +707,24 @@ const Lo=1,Bo=2,zo=t=>(...e)=>({_$litDirective$:t,values:e});class Ho{constructo
707
707
  </div>
708
708
  </div>
709
709
  </div>
710
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,n=(t.offsetHeight-i)/2,o=(t.offsetWidth-e)/2;let r=0,s=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":s=t.offsetTop-i-this.tooltip.offsetTop,r=t.offsetLeft+o-this.tooltip.offsetLeft;break;case"bottom":s=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,r=t.offsetLeft+o-this.tooltip.offsetLeft;break;case"left":s=t.offsetTop+n-this.tooltip.offsetTop,r=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":s=t.offsetTop+n-this.tooltip.offsetTop,r=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=r+"px",a.top=s+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,h=l.x+l.width-window.innerWidth;a.left=r+Math.round(this.correctOutOfWindowPixels(c,h))+"px";let u=-l.y,d=l.y+l.height-window.innerHeight;a.top=s+Math.round(this.correctOutOfWindowPixels(u,d))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${ir})`}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))}}rr.elementDefinitions={"ft-typography":Fo},rr.styles=nr,or([s()],rr.prototype,"text",void 0),or([s({type:Boolean})],rr.prototype,"manual",void 0),or([s({type:Boolean})],rr.prototype,"inline",void 0),or([s({type:Number})],rr.prototype,"delay",void 0),or([s()],rr.prototype,"position",void 0),or([f("",!0)],rr.prototype,"slotNodes",void 0),or([c(".ft-tooltip--container")],rr.prototype,"container",void 0),or([c(".ft-tooltip")],rr.prototype,"tooltip",void 0),or([c(".ft-tooltip--content")],rr.prototype,"tooltipContent",void 0),or([a()],rr.prototype,"visible",void 0),b("ft-tooltip")(rr);
710
+ `}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,n=(t.offsetHeight-i)/2,o=(t.offsetWidth-e)/2;let r=0,s=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":s=t.offsetTop-i-this.tooltip.offsetTop,r=t.offsetLeft+o-this.tooltip.offsetLeft;break;case"bottom":s=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,r=t.offsetLeft+o-this.tooltip.offsetLeft;break;case"left":s=t.offsetTop+n-this.tooltip.offsetTop,r=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":s=t.offsetTop+n-this.tooltip.offsetTop,r=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=r+"px",a.top=s+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,h=l.x+l.width-window.innerWidth;a.left=r+Math.round(this.correctOutOfWindowPixels(c,h))+"px";let u=-l.y,d=l.y+l.height-window.innerHeight;a.top=s+Math.round(this.correctOutOfWindowPixels(u,d))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${or})`}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))}}ar.elementDefinitions={"ft-typography":Bo},ar.styles=rr,sr([s()],ar.prototype,"text",void 0),sr([s({type:Boolean})],ar.prototype,"manual",void 0),sr([s({type:Boolean})],ar.prototype,"inline",void 0),sr([s({type:Number})],ar.prototype,"delay",void 0),sr([s()],ar.prototype,"position",void 0),sr([f("",!0)],ar.prototype,"slotNodes",void 0),sr([c(".ft-tooltip--container")],ar.prototype,"container",void 0),sr([c(".ft-tooltip")],ar.prototype,"tooltip",void 0),sr([c(".ft-tooltip--content")],ar.prototype,"tooltipContent",void 0),sr([a()],ar.prototype,"visible",void 0),b("ft-tooltip")(ar);
711
711
  /**
712
712
  * @license
713
713
  * Copyright 2018 Google LLC
714
714
  * SPDX-License-Identifier: BSD-3-Clause
715
715
  */
716
- const sr=zo(class extends Ho{constructor(t){var e;if(super(t),t.type!==Lo||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,n;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const o=t.element.classList;this.it.forEach((t=>{t in e||(o.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(n=this.nt)||void 0===n?void 0:n.has(t))||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return ot}});var ar=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class lr extends Ut{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 o(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 o(10),this.moveRipple=t=>{var e,i;let{x:n,y:o}=this.getCoordinates(t),r=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!=n?n-r.x:r.width/2),this.originY=Math.round(null!=o?o-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return nt`
716
+ const lr=Wo(class extends Ko{constructor(t){var e;if(super(t),t.type!==zo||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,n;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const o=t.element.classList;this.it.forEach((t=>{t in e||(o.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(n=this.nt)||void 0===n?void 0:n.has(t))||(i?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return ot}});var cr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class hr extends Ut{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 o(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 o(10),this.moveRipple=t=>{var e,i;let{x:n,y:o}=this.getCoordinates(t),r=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!=n?n-r.x:r.width/2),this.originY=Math.round(null!=o?o-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return nt`
717
717
  <style>
718
718
  .ft-ripple .ft-ripple--effect {
719
719
  left: ${this.originX}px;
720
720
  top: ${this.originY}px;
721
721
  }
722
722
  </style>
723
- <div class="${sr(t)}">
723
+ <div class="${lr(t)}">
724
724
  <div class="ft-ripple--background"></div>
725
725
  <div class="ft-ripple--effect"></div>
726
726
  </div>
727
- `}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"),n=e("touchend","touchcancel"),o=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",n),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",o),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",n),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",o),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 n,o;return null!=e.x?({x:n,y:o}=e):null!=i.touches&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}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()}}lr.elementDefinitions={},lr.styles=Qi,ar([s({type:Boolean})],lr.prototype,"primary",void 0),ar([s({type:Boolean})],lr.prototype,"secondary",void 0),ar([s({type:Boolean})],lr.prototype,"unbounded",void 0),ar([s({type:Boolean})],lr.prototype,"activated",void 0),ar([s({type:Boolean})],lr.prototype,"selected",void 0),ar([s({type:Boolean})],lr.prototype,"disabled",void 0),ar([a()],lr.prototype,"hovered",void 0),ar([a()],lr.prototype,"focused",void 0),ar([a()],lr.prototype,"pressed",void 0),ar([a()],lr.prototype,"rippling",void 0),ar([a()],lr.prototype,"originX",void 0),ar([a()],lr.prototype,"originY",void 0),ar([c(".ft-ripple")],lr.prototype,"ripple",void 0),ar([c(".ft-ripple--effect")],lr.prototype,"rippleEffect",void 0),b("ft-ripple")(lr);const cr={borderRadiusLeft:Ot.extend("--ft-switch-option-border-radius-left",_t.borderRadiusL),borderRadiusRight:Ot.extend("--ft-switch-option-border-radius-right",_t.borderRadiusL),borderWidthLeft:Ot.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:Ot.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:Ot.create("--ft-switch-option-border-width-vertical","SIZE","1px")},hr=k`
727
+ `}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"),n=e("touchend","touchcancel"),o=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",n),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",o),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",n),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",o),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 n,o;return null!=e.x?({x:n,y:o}=e):null!=i.touches&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}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()}}hr.elementDefinitions={},hr.styles=en,cr([s({type:Boolean})],hr.prototype,"primary",void 0),cr([s({type:Boolean})],hr.prototype,"secondary",void 0),cr([s({type:Boolean})],hr.prototype,"unbounded",void 0),cr([s({type:Boolean})],hr.prototype,"activated",void 0),cr([s({type:Boolean})],hr.prototype,"selected",void 0),cr([s({type:Boolean})],hr.prototype,"disabled",void 0),cr([a()],hr.prototype,"hovered",void 0),cr([a()],hr.prototype,"focused",void 0),cr([a()],hr.prototype,"pressed",void 0),cr([a()],hr.prototype,"rippling",void 0),cr([a()],hr.prototype,"originX",void 0),cr([a()],hr.prototype,"originY",void 0),cr([c(".ft-ripple")],hr.prototype,"ripple",void 0),cr([c(".ft-ripple--effect")],hr.prototype,"rippleEffect",void 0),b("ft-ripple")(hr);const ur={borderRadiusLeft:Ot.extend("--ft-switch-option-border-radius-left",_t.borderRadiusL),borderRadiusRight:Ot.extend("--ft-switch-option-border-radius-right",_t.borderRadiusL),borderWidthLeft:Ot.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:Ot.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:Ot.create("--ft-switch-option-border-width-vertical","SIZE","1px")},dr=k`
728
728
  .ft-switch-option {
729
729
  position: relative;
730
730
  display: inline-block;
@@ -738,20 +738,20 @@ const sr=zo(class extends Ho{constructor(t){var e;if(super(t),t.type!==Lo||"clas
738
738
  }
739
739
 
740
740
  .ft-switch-option--content {
741
- --ft-switch-option-internal-line-height: calc(${co.fontSize} + 2px);
742
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${co.iconSize});
741
+ --ft-switch-option-internal-line-height: calc(${uo.fontSize} + 2px);
742
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${uo.iconSize});
743
743
 
744
744
  border-style: solid;
745
- border-color: ${co.borderColor};
746
- border-width: ${cr.borderWidthVertical} ${cr.borderWidthRight} ${cr.borderWidthVertical} ${cr.borderWidthLeft};
747
- border-radius: ${cr.borderRadiusLeft} ${cr.borderRadiusRight} ${cr.borderRadiusRight} ${cr.borderRadiusLeft};
745
+ border-color: ${uo.borderColor};
746
+ border-width: ${ur.borderWidthVertical} ${ur.borderWidthRight} ${ur.borderWidthVertical} ${ur.borderWidthLeft};
747
+ border-radius: ${ur.borderRadiusLeft} ${ur.borderRadiusRight} ${ur.borderRadiusRight} ${ur.borderRadiusLeft};
748
748
  display: flex;
749
749
  align-items: center;
750
750
  justify-content: center;
751
751
  overflow: hidden;
752
- ${Et(Yn.size,co.iconSize)};
752
+ ${Et(to.size,uo.iconSize)};
753
753
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
754
- background-color: ${co.backgroundColor};
754
+ background-color: ${uo.backgroundColor};
755
755
  -webkit-mask-image: radial-gradient(white, black);
756
756
  }
757
757
 
@@ -760,8 +760,8 @@ const sr=zo(class extends Ho{constructor(t){var e;if(super(t),t.type!==Lo||"clas
760
760
  }
761
761
 
762
762
  .ft-switch-option--selected .ft-switch-option--content:before {
763
- background-color: ${co.selectedBackgroundColor};
764
- border-radius: ${cr.borderRadiusLeft} ${cr.borderRadiusRight} ${cr.borderRadiusRight} ${cr.borderRadiusLeft};
763
+ background-color: ${uo.selectedBackgroundColor};
764
+ border-radius: ${ur.borderRadiusLeft} ${ur.borderRadiusRight} ${ur.borderRadiusRight} ${ur.borderRadiusLeft};
765
765
  position: absolute;
766
766
  inset: 0;
767
767
  content: "";
@@ -770,18 +770,18 @@ const sr=zo(class extends Ho{constructor(t){var e;if(super(t),t.type!==Lo||"clas
770
770
  }
771
771
 
772
772
  .ft-switch-option--label {
773
- color: ${co.textColor};
773
+ color: ${uo.textColor};
774
774
  overflow: hidden;
775
775
  white-space: nowrap;
776
776
  text-overflow: ellipsis;
777
777
  display: block;
778
778
  margin: 0 8px;
779
- ${Et(Dn.fontSize,co.fontSize)};
780
- ${Et(Dn.lineHeight,"var(--ft-switch-option-internal-content-height)")}
779
+ ${Et(Ln.fontSize,uo.fontSize)};
780
+ ${Et(Ln.lineHeight,"var(--ft-switch-option-internal-content-height)")}
781
781
  }
782
782
 
783
783
  .ft-switch-option--selected .ft-switch-option--label {
784
- color: ${co.selectedTextColor};
784
+ color: ${uo.selectedTextColor};
785
785
  }
786
786
 
787
787
  .ft-switch-option--label[hidden] {
@@ -789,7 +789,7 @@ const sr=zo(class extends Ho{constructor(t){var e;if(super(t),t.type!==Lo||"clas
789
789
  }
790
790
 
791
791
  .ft-switch-option--ripple {
792
- ${Et(Vi.color,co.rippleColor)};
792
+ ${Et(qi.color,uo.rippleColor)};
793
793
  }
794
794
 
795
795
  ft-icon, ft-ripple, ft-typography {
@@ -802,20 +802,20 @@ const sr=zo(class extends Ho{constructor(t){var e;if(super(t),t.type!==Lo||"clas
802
802
 
803
803
  ft-icon {
804
804
  flex-shrink: 0;
805
- color: ${co.iconColor};
805
+ color: ${uo.iconColor};
806
806
  }
807
807
 
808
808
  .ft-switch-option--selected ft-icon {
809
- color: ${co.selectedTextColor};
809
+ color: ${uo.selectedTextColor};
810
810
  }
811
- `;var ur=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class dr extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class fr extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class pr extends Ut{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 fr(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(nt`
812
- <label part="label" for="input" class=${sr(t)}
811
+ `;var fr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class pr extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class vr extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class br extends Ut{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 vr(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(nt`
812
+ <label part="label" for="input" class=${lr(t)}
813
813
  @click=${this.onChange}>
814
814
  <div class="ft-switch-option--content">
815
815
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
816
816
  <ft-typography part="text"
817
817
  variant="button"
818
- class="ft-switch-option--label ${Fi?"ft-safari-ellipsis-fix":""}"
818
+ class="ft-switch-option--label ${Bi?"ft-safari-ellipsis-fix":""}"
819
819
  ?hidden=${!this.hasTextContent()}>
820
820
  <slot @slotchange=${this.onSlotchange}></slot>
821
821
  </ft-typography>
@@ -830,23 +830,23 @@ const sr=zo(class extends Ho{constructor(t){var e;if(super(t),t.type!==Lo||"clas
830
830
  position="${this.tooltipPosition}">
831
831
  ${t}
832
832
  </ft-tooltip>
833
- `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new dr(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?nt`
833
+ `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new pr(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?nt`
834
834
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
835
- `:rt}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()}}pr.elementDefinitions={"ft-ripple":lr,"ft-typography":Fo,"ft-tooltip":rr,"ft-icon":Xo},pr.styles=[Pt,hr],ur([s()],pr.prototype,"value",void 0),ur([s()],pr.prototype,"icon",void 0),ur([s()],pr.prototype,"iconVariant",void 0),ur([s()],pr.prototype,"label",void 0),ur([s()],pr.prototype,"tooltipPosition",void 0),ur([s({type:Boolean,reflect:!0})],pr.prototype,"selected",void 0),ur([s({type:Boolean})],pr.prototype,"trailingIcon",void 0),ur([s({type:Boolean})],pr.prototype,"unselectable",void 0),ur([c(".ft-switch-option--content slot")],pr.prototype,"slottedContent",void 0),ur([c(".ft-switch-option--input")],pr.prototype,"input",void 0);var vr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class br extends CustomEvent{constructor(t){super("change",{detail:t})}}class yr extends Ut{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 nt`
836
- <div @keydown=${this.onKeyDown} tabindex="0" class="${sr(t)}">
835
+ `:rt}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()}}br.elementDefinitions={"ft-ripple":hr,"ft-typography":Bo,"ft-tooltip":ar,"ft-icon":Yo},br.styles=[Pt,dr],fr([s()],br.prototype,"value",void 0),fr([s()],br.prototype,"icon",void 0),fr([s()],br.prototype,"iconVariant",void 0),fr([s()],br.prototype,"label",void 0),fr([s()],br.prototype,"tooltipPosition",void 0),fr([s({type:Boolean,reflect:!0})],br.prototype,"selected",void 0),fr([s({type:Boolean})],br.prototype,"trailingIcon",void 0),fr([s({type:Boolean})],br.prototype,"unselectable",void 0),fr([c(".ft-switch-option--content slot")],br.prototype,"slottedContent",void 0),fr([c(".ft-switch-option--input")],br.prototype,"input",void 0);var yr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class gr extends CustomEvent{constructor(t){super("change",{detail:t})}}class mr extends Ut{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 nt`
836
+ <div @keydown=${this.onKeyDown} tabindex="0" class="${lr(t)}">
837
837
  <slot @slotchange=${this.onSlotchange}
838
838
  @option-change=${this.onOptionChangeByScript}
839
839
  @option-change-by-user=${this.onOptionChangeByUser}
840
840
  ></slot>
841
841
  </div>
842
- `}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 pr&&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 br(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}))}}yr.elementDefinitions={},yr.styles=k`
842
+ `}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 br&&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 gr(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}))}}mr.elementDefinitions={},mr.styles=k`
843
843
  :host {
844
844
  display: inline-block;
845
845
  }
846
846
 
847
847
  .ft-switch {
848
- border-radius: ${co.borderRadius};
849
- outline-color: ${co.outlineColor};
848
+ border-radius: ${uo.borderRadius};
849
+ outline-color: ${uo.outlineColor};
850
850
  }
851
851
 
852
852
  .ft-switch slot {
@@ -855,25 +855,25 @@ const sr=zo(class extends Ho{constructor(t){var e;if(super(t),t.type!==Lo||"clas
855
855
  }
856
856
 
857
857
  .ft-switch slot::slotted(ft-switch-option) {
858
- ${Et(cr.borderRadiusLeft,"0")};
859
- ${Et(cr.borderRadiusRight,"0")};
860
- ${Et(cr.borderWidthLeft,"0")};
858
+ ${Et(ur.borderRadiusLeft,"0")};
859
+ ${Et(ur.borderRadiusRight,"0")};
860
+ ${Et(ur.borderWidthLeft,"0")};
861
861
  }
862
862
 
863
863
  .ft-switch slot::slotted(ft-switch-option:first-child) {
864
- ${Et(cr.borderRadiusLeft,co.borderRadius)};
865
- ${Et(cr.borderWidthLeft,"1px")};
864
+ ${Et(ur.borderRadiusLeft,uo.borderRadius)};
865
+ ${Et(ur.borderWidthLeft,"1px")};
866
866
  }
867
867
 
868
868
  .ft-switch slot::slotted(ft-switch-option:last-child) {
869
- ${Et(cr.borderRadiusRight,co.borderRadius)};
869
+ ${Et(ur.borderRadiusRight,uo.borderRadius)};
870
870
  }
871
871
 
872
872
  .ft-switch--dense slot::slotted(ft-switch-option) {
873
873
  --ft-switch-internal-vertical-padding: 2px;
874
874
  --ft-switch-internal-horizontal-padding: 4px;
875
875
  }
876
- `,vr([s({type:Boolean})],yr.prototype,"dense",void 0),vr([s({type:Boolean})],yr.prototype,"unselectable",void 0),vr([c(".ft-switch slot")],yr.prototype,"slottedContent",void 0),vr([a()],yr.prototype,"selectedOption",void 0),vr([c(".ft-switch")],yr.prototype,"ftSwitchDiv",void 0),b("ft-switch")(yr),b("ft-switch-option")(pr);const gr=Ot.external(_t.colorOutline,"Design system"),xr=Ot.external(_t.colorOnSurfaceMedium,"Design system"),mr=k`
876
+ `,yr([s({type:Boolean})],mr.prototype,"dense",void 0),yr([s({type:Boolean})],mr.prototype,"unselectable",void 0),yr([c(".ft-switch slot")],mr.prototype,"slottedContent",void 0),yr([a()],mr.prototype,"selectedOption",void 0),yr([c(".ft-switch")],mr.prototype,"ftSwitchDiv",void 0),b("ft-switch")(mr),b("ft-switch-option")(br);const xr=Ot.external(_t.colorOutline,"Design system"),wr=Ot.external(_t.colorOnSurfaceMedium,"Design system"),$r=k`
877
877
  :host {
878
878
  display: block;
879
879
  }
@@ -884,14 +884,14 @@ const sr=zo(class extends Ho{constructor(t){var e;if(super(t),t.type!==Lo||"clas
884
884
 
885
885
  ft-icon {
886
886
  transform: rotate(-45deg);
887
- color: ${gr};
887
+ color: ${xr};
888
888
  }
889
889
 
890
890
  .ft-resizer--dragging ft-icon,
891
891
  .ft-resizer:hover ft-icon {
892
- color: ${xr};
892
+ color: ${wr};
893
893
  }
894
- `;var wr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class $r extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class Sr extends Ut{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=qo.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 nt`
894
+ `;var Sr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class kr extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class Or extends Ut{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Xo.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 nt`
895
895
  <style>
896
896
  .ft-resizer {
897
897
  cursor: ${S(this.cursor)}
@@ -902,25 +902,25 @@ const sr=zo(class extends Ho{constructor(t){var e;if(super(t),t.type!==Lo||"clas
902
902
  @touchstart=${this.initDragFromTouch}>
903
903
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
904
904
  </div>
905
- `}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,n=this.fixedHeight+e-this.startY;this.dispatchEvent(new $r(i,n))}}Sr.elementDefinitions={"ft-icon":Xo},Sr.styles=[Mt,mr],wr([s({type:Number})],Sr.prototype,"initialWidth",void 0),wr([s({type:Number})],Sr.prototype,"initialHeight",void 0),wr([s()],Sr.prototype,"icon",void 0),wr([s()],Sr.prototype,"iconVariant",void 0),wr([s()],Sr.prototype,"cursor",void 0),wr([a()],Sr.prototype,"dragging",void 0),b("ft-resizer")(Sr);const kr={fontSize:Ot.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:Ot.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:Ot.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:Ot.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:Ot.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:Ot.create("--ft-input-label-max-width","SIZE","100%"),borderColor:Ot.extend("--ft-input-label-border-color",_t.colorOutline),textColor:Ot.extend("--ft-input-label-text-color",_t.colorOnSurfaceMedium),disabledTextColor:Ot.extend("--ft-input-label-disabled-text-color",_t.colorOnSurfaceDisabled),colorSurface:Ot.external(_t.colorSurface,"Design system"),borderRadiusS:Ot.external(_t.borderRadiusS,"Design system"),colorError:Ot.external(_t.colorError,"Design system")},Or=k`
905
+ `}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,n=this.fixedHeight+e-this.startY;this.dispatchEvent(new kr(i,n))}}Or.elementDefinitions={"ft-icon":Yo},Or.styles=[Mt,$r],Sr([s({type:Number})],Or.prototype,"initialWidth",void 0),Sr([s({type:Number})],Or.prototype,"initialHeight",void 0),Sr([s()],Or.prototype,"icon",void 0),Sr([s()],Or.prototype,"iconVariant",void 0),Sr([s()],Or.prototype,"cursor",void 0),Sr([a()],Or.prototype,"dragging",void 0),b("ft-resizer")(Or);const Er={fontSize:Ot.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:Ot.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:Ot.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:Ot.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:Ot.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:Ot.create("--ft-input-label-max-width","SIZE","100%"),borderColor:Ot.extend("--ft-input-label-border-color",_t.colorOutline),textColor:Ot.extend("--ft-input-label-text-color",_t.colorOnSurfaceMedium),disabledTextColor:Ot.extend("--ft-input-label-disabled-text-color",_t.colorOnSurfaceDisabled),colorSurface:Ot.external(_t.colorSurface,"Design system"),borderRadiusS:Ot.external(_t.borderRadiusS,"Design system"),colorError:Ot.external(_t.colorError,"Design system")},_r=k`
906
906
  .ft-input-label {
907
907
  position: absolute;
908
908
  inset: 0;
909
909
  display: flex;
910
- background-color: ${kr.colorSurface};
911
- border-radius: ${kr.borderRadiusS} ${kr.borderRadiusS} 0 0;
910
+ background-color: ${Er.colorSurface};
911
+ border-radius: ${Er.borderRadiusS} ${Er.borderRadiusS} 0 0;
912
912
  }
913
913
 
914
914
  .ft-input-label--outlined {
915
- border-radius: ${kr.borderRadiusS};
915
+ border-radius: ${Er.borderRadiusS};
916
916
  }
917
917
 
918
918
  .ft-input-label {
919
- border-color: ${kr.borderColor};
919
+ border-color: ${Er.borderColor};
920
920
  }
921
921
 
922
922
  .ft-input-label.ft-input-label--in-error {
923
- border-color: ${kr.colorError}
923
+ border-color: ${Er.colorError}
924
924
  }
925
925
 
926
926
  .ft-input-label:before,
@@ -933,7 +933,7 @@ const sr=zo(class extends Ho{constructor(t){var e;if(super(t),t.type!==Lo||"clas
933
933
  }
934
934
 
935
935
  .ft-input-label:before {
936
- width: calc(${kr.horizontalSpacing} - 4px);
936
+ width: calc(${Er.horizontalSpacing} - 4px);
937
937
  flex-shrink: 0;
938
938
  }
939
939
 
@@ -949,20 +949,20 @@ const sr=zo(class extends Ho{constructor(t){var e;if(super(t),t.type!==Lo||"clas
949
949
  border-bottom-width: 1px;
950
950
  border-bottom-style: solid;
951
951
  border-color: inherit;
952
- color: ${kr.textColor};
952
+ color: ${Er.textColor};
953
953
  transition: font-size 250ms, line-height 250ms, color 250ms;
954
- max-width: calc(${kr.labelMaxWidth} - 2 * (${kr.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
954
+ max-width: calc(${Er.labelMaxWidth} - 2 * (${Er.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
955
955
  text-overflow: ellipsis;
956
- ${Et(On.fontSize,kr.fontSize)};
957
- ${Et(On.lineHeight,kr.fontSize)};
956
+ ${Et(_n.fontSize,Er.fontSize)};
957
+ ${Et(_n.lineHeight,Er.fontSize)};
958
958
  }
959
959
 
960
960
  .ft-input-label--in-error .ft-input-label--text {
961
- color: ${kr.colorError}
961
+ color: ${Er.colorError}
962
962
  }
963
963
 
964
964
  .ft-input-label--disabled .ft-input-label--text {
965
- color: ${kr.disabledTextColor};
965
+ color: ${Er.disabledTextColor};
966
966
  }
967
967
 
968
968
  .ft-input-label--hidden-text {
@@ -979,19 +979,19 @@ const sr=zo(class extends Ho{constructor(t){var e;if(super(t),t.type!==Lo||"clas
979
979
  overflow: hidden;
980
980
  white-space: nowrap;
981
981
  text-overflow: ellipsis;
982
- padding: ${kr.verticalSpacing} 4px;
983
- margin: calc(${kr.verticalSpacing} * -1) 0;
982
+ padding: ${Er.verticalSpacing} 4px;
983
+ margin: calc(${Er.verticalSpacing} * -1) 0;
984
984
  max-width: 100%;
985
985
  box-sizing: border-box;
986
986
  }
987
987
 
988
988
  .ft-input-label--raised .ft-input-label--text {
989
- ${Et(On.fontSize,kr.raisedFontSize)};
990
- ${Et(On.lineHeight,kr.raisedFontSize)};
989
+ ${Et(_n.fontSize,Er.raisedFontSize)};
990
+ ${Et(_n.lineHeight,Er.raisedFontSize)};
991
991
  }
992
992
 
993
993
  .ft-input-label--raised .ft-input-label--floating-text {
994
- top: ${kr.verticalSpacing};
994
+ top: ${Er.verticalSpacing};
995
995
  }
996
996
 
997
997
  .ft-input-label--outlined .ft-input-label--text,
@@ -1004,28 +1004,28 @@ const sr=zo(class extends Ho{constructor(t){var e;if(super(t),t.type!==Lo||"clas
1004
1004
  .ft-input-label--outlined:before {
1005
1005
  border-left-width: 1px;
1006
1006
  border-left-style: solid;
1007
- border-radius: ${kr.borderRadiusS} 0 0 ${kr.borderRadiusS};
1007
+ border-radius: ${Er.borderRadiusS} 0 0 ${Er.borderRadiusS};
1008
1008
  }
1009
1009
 
1010
1010
  .ft-input-label--outlined:after {
1011
1011
  border-right-width: 1px;
1012
1012
  border-right-style: solid;
1013
- border-radius: 0 ${kr.borderRadiusS} ${kr.borderRadiusS} 0;
1013
+ border-radius: 0 ${Er.borderRadiusS} ${Er.borderRadiusS} 0;
1014
1014
  }
1015
1015
 
1016
1016
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1017
1017
  padding: 2px 4px;
1018
- z-index: ${kr.raisedZIndex};
1019
- background-color: ${kr.colorSurface};
1020
- border-radius: ${kr.borderRadiusS};
1018
+ z-index: ${Er.raisedZIndex};
1019
+ background-color: ${Er.colorSurface};
1020
+ border-radius: ${Er.borderRadiusS};
1021
1021
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
1022
1022
  }
1023
1023
 
1024
1024
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1025
1025
  border-top: none;
1026
1026
  }
1027
- `;var Er=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class _r extends Ut{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 nt`
1028
- <div class="${sr(t)}">
1027
+ `;var Rr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Tr extends Ut{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 nt`
1028
+ <div class="${lr(t)}">
1029
1029
  ${this.text?nt`
1030
1030
  <div class="ft-input-label--text ft-typography--caption">
1031
1031
  <span class="ft-input-label--floating-text">${this.text}</span>
@@ -1033,7 +1033,7 @@ const sr=zo(class extends Ho{constructor(t){var e;if(super(t),t.type!==Lo||"clas
1033
1033
  </div>
1034
1034
  `:null}
1035
1035
  </div>
1036
- `}}_r.elementDefinitions={},_r.styles=[Kn,Or],Er([s({type:String})],_r.prototype,"text",void 0),Er([s({type:Boolean})],_r.prototype,"raised",void 0),Er([s({type:Boolean})],_r.prototype,"outlined",void 0),Er([s({type:Boolean})],_r.prototype,"disabled",void 0),Er([s({type:Boolean})],_r.prototype,"error",void 0),b("ft-input-label")(_r);const Rr={fontSize:Ot.create("--ft-text-area-font-size","SIZE","14px"),labelSize:Ot.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:Ot.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:Ot.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:Ot.extend("--ft-text-area-helper-color",_t.colorOnSurfaceMedium),colorPrimary:Ot.external(_t.colorPrimary,"Design system"),colorOnSurface:Ot.external(_t.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Ot.external(_t.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Ot.external(_t.borderRadiusS,"Design system"),colorError:Ot.external(_t.colorError,"Design system")},Tr=k`
1036
+ `}}Tr.elementDefinitions={},Tr.styles=[Zn,_r],Rr([s({type:String})],Tr.prototype,"text",void 0),Rr([s({type:Boolean})],Tr.prototype,"raised",void 0),Rr([s({type:Boolean})],Tr.prototype,"outlined",void 0),Rr([s({type:Boolean})],Tr.prototype,"disabled",void 0),Rr([s({type:Boolean})],Tr.prototype,"error",void 0),b("ft-input-label")(Tr);const Cr={fontSize:Ot.create("--ft-text-area-font-size","SIZE","14px"),labelSize:Ot.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:Ot.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:Ot.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:Ot.extend("--ft-text-area-helper-color",_t.colorOnSurfaceMedium),colorPrimary:Ot.external(_t.colorPrimary,"Design system"),colorOnSurface:Ot.external(_t.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Ot.external(_t.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Ot.external(_t.borderRadiusS,"Design system"),colorError:Ot.external(_t.colorError,"Design system")},Ir=k`
1037
1037
  *:focus {
1038
1038
  outline: none;
1039
1039
  }
@@ -1045,10 +1045,10 @@ const sr=zo(class extends Ho{constructor(t){var e;if(super(t),t.type!==Lo||"clas
1045
1045
  }
1046
1046
 
1047
1047
  ft-input-label {
1048
- ${Et(kr.fontSize,Rr.fontSize)};
1049
- ${Et(kr.raisedFontSize,Rr.labelSize)};
1050
- ${Et(kr.verticalSpacing,Rr.verticalSpacing)};
1051
- ${Et(kr.horizontalSpacing,Rr.horizontalSpacing)};
1048
+ ${Et(Er.fontSize,Cr.fontSize)};
1049
+ ${Et(Er.raisedFontSize,Cr.labelSize)};
1050
+ ${Et(Er.verticalSpacing,Cr.verticalSpacing)};
1051
+ ${Et(Er.horizontalSpacing,Cr.horizontalSpacing)};
1052
1052
  }
1053
1053
 
1054
1054
  .ft-text-area--main-panel {
@@ -1066,8 +1066,8 @@ const sr=zo(class extends Ho{constructor(t){var e;if(super(t),t.type!==Lo||"clas
1066
1066
  }
1067
1067
 
1068
1068
  .ft-text-area--input-panel ft-ripple {
1069
- ${Et(Vi.opacityContentOnSurfaceHover,"0.08")};
1070
- ${Et(Vi.opacityContentOnSurfacePressed,"0.04")};
1069
+ ${Et(qi.opacityContentOnSurfaceHover,"0.08")};
1070
+ ${Et(qi.opacityContentOnSurfacePressed,"0.04")};
1071
1071
  }
1072
1072
 
1073
1073
  .ft-text-area--input {
@@ -1079,12 +1079,12 @@ const sr=zo(class extends Ho{constructor(t){var e;if(super(t),t.type!==Lo||"clas
1079
1079
  align-self: stretch;
1080
1080
  resize: none;
1081
1081
 
1082
- ${Et(gn.fontSize,Rr.fontSize)};
1083
- ${Et(gn.lineHeight,Rr.fontSize)};
1084
- color: ${Rr.colorOnSurface};
1082
+ ${Et(xn.fontSize,Cr.fontSize)};
1083
+ ${Et(xn.lineHeight,Cr.fontSize)};
1084
+ color: ${Cr.colorOnSurface};
1085
1085
 
1086
- padding: 0 ${Rr.horizontalSpacing};
1087
- margin: calc(${Rr.verticalSpacing} + ${Rr.labelSize} / 2) 0 ${Rr.verticalSpacing} 0;
1086
+ padding: 0 ${Cr.horizontalSpacing};
1087
+ margin: calc(${Cr.verticalSpacing} + ${Cr.labelSize} / 2) 0 ${Cr.verticalSpacing} 0;
1088
1088
 
1089
1089
  border: none;
1090
1090
  background: none;
@@ -1093,7 +1093,7 @@ const sr=zo(class extends Ho{constructor(t){var e;if(super(t),t.type!==Lo||"clas
1093
1093
  }
1094
1094
 
1095
1095
  .ft-text-area--disabled .ft-text-area--input {
1096
- color: ${Rr.colorOnSurfaceDisabled};
1096
+ color: ${Cr.colorOnSurfaceDisabled};
1097
1097
  }
1098
1098
 
1099
1099
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -1101,49 +1101,49 @@ const sr=zo(class extends Ho{constructor(t){var e;if(super(t),t.type!==Lo||"clas
1101
1101
  }
1102
1102
 
1103
1103
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
1104
- ${Et(kr.borderColor,Rr.colorPrimary)};
1105
- ${Et(kr.textColor,Rr.colorPrimary)};
1104
+ ${Et(Er.borderColor,Cr.colorPrimary)};
1105
+ ${Et(Er.textColor,Cr.colorPrimary)};
1106
1106
  }
1107
1107
 
1108
1108
  .ft-text-area--filled .ft-text-area--input-panel {
1109
- border-radius: ${Rr.borderRadiusS} ${Rr.borderRadiusS} 0 0;
1109
+ border-radius: ${Cr.borderRadiusS} ${Cr.borderRadiusS} 0 0;
1110
1110
  }
1111
1111
 
1112
1112
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
1113
1113
  align-self: stretch;
1114
- margin-bottom: ${Rr.verticalSpacing};
1115
- margin-top: calc(${Rr.labelSize} + 2 * ${Rr.verticalSpacing});
1114
+ margin-bottom: ${Cr.verticalSpacing};
1115
+ margin-top: calc(${Cr.labelSize} + 2 * ${Cr.verticalSpacing});
1116
1116
  }
1117
1117
 
1118
1118
  .ft-text-area--outlined .ft-text-area--input-panel {
1119
- border-radius: ${Rr.borderRadiusS};
1119
+ border-radius: ${Cr.borderRadiusS};
1120
1120
  }
1121
1121
 
1122
1122
  .ft-text-area--helper-text {
1123
- padding: 0 12px 0 ${Rr.horizontalSpacing};
1124
- color: ${Rr.helperColor};
1123
+ padding: 0 12px 0 ${Cr.horizontalSpacing};
1124
+ color: ${Cr.helperColor};
1125
1125
  }
1126
1126
 
1127
1127
  .ft-text-area--in-error .ft-text-area--input,
1128
1128
  .ft-text-area--in-error .ft-text-area--helper-text {
1129
- color: ${Rr.colorError};
1129
+ color: ${Cr.colorError};
1130
1130
  }
1131
1131
 
1132
1132
  ft-resizer {
1133
1133
  position: absolute;
1134
1134
  bottom: 0;
1135
1135
  }
1136
- `;var Cr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ir extends Ut{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 nt`
1136
+ `;var Ar=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Nr extends(Pi(Ut,"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 nt`
1137
1137
  <style>
1138
1138
  .ft-text-area--main-panel {
1139
- height: calc(4 * ${Rr.verticalSpacing} + ${Rr.labelSize} + ${Rr.fontSize} + ${this.height}px);
1139
+ height: calc(4 * ${Cr.verticalSpacing} + ${Cr.labelSize} + ${Cr.fontSize} + ${this.height}px);
1140
1140
  }
1141
1141
 
1142
1142
  ft-resizer {
1143
1143
  right: ${null!=this.textarea?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1144
1144
  }
1145
1145
  </style>
1146
- <div class="${sr(t)}">
1146
+ <div class="${lr(t)}">
1147
1147
  <div class="ft-text-area--main-panel">
1148
1148
  <ft-input-label text="${this.label}"
1149
1149
  ?disabled=${this.disabled}
@@ -1175,56 +1175,56 @@ const sr=zo(class extends Ho{constructor(t){var e;if(super(t),t.type!==Lo||"clas
1175
1175
  ${this.helper}
1176
1176
  </ft-typography>`:void 0}
1177
1177
  </div>
1178
- `}setValue(t,e=!1){this.value=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.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}Ir.elementDefinitions={"ft-input-label":_r,"ft-resizer":Sr,"ft-ripple":lr,"ft-typography":Fo},Ir.styles=[Hn,Tr],Cr([s({type:String})],Ir.prototype,"label",void 0),Cr([s({reflect:!0})],Ir.prototype,"value",void 0),Cr([s({type:String})],Ir.prototype,"helper",void 0),Cr([s({type:Boolean})],Ir.prototype,"outlined",void 0),Cr([s({type:Boolean})],Ir.prototype,"disabled",void 0),Cr([s({type:Boolean})],Ir.prototype,"error",void 0),Cr([s({type:Number,reflect:!0})],Ir.prototype,"height",void 0),Cr([c("textarea")],Ir.prototype,"textarea",void 0),Cr([a()],Ir.prototype,"focused",void 0),b("ft-text-area")(Ir);
1178
+ `}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)}}Nr.elementDefinitions={"ft-input-label":Tr,"ft-resizer":Or,"ft-ripple":hr,"ft-typography":Bo},Nr.styles=[Kn,Ir],Ar([s({type:String})],Nr.prototype,"label",void 0),Ar([s({reflect:!0})],Nr.prototype,"value",void 0),Ar([s({type:String})],Nr.prototype,"helper",void 0),Ar([s({type:Boolean})],Nr.prototype,"outlined",void 0),Ar([s({type:Boolean})],Nr.prototype,"disabled",void 0),Ar([s({type:Boolean})],Nr.prototype,"error",void 0),Ar([s({type:Number,reflect:!0})],Nr.prototype,"height",void 0),Ar([c("textarea")],Nr.prototype,"textarea",void 0),Ar([a()],Nr.prototype,"focused",void 0),b("ft-text-area")(Nr);
1179
1179
  /**
1180
1180
  * @license
1181
1181
  * Copyright 2020 Google LLC
1182
1182
  * SPDX-License-Identifier: BSD-3-Clause
1183
1183
  */
1184
- const{I:Ar}=xt,Nr=()=>document.createComment(""),jr=(t,e,i)=>{var n;const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Nr(),r),n=o.insertBefore(Nr(),r);i=new Ar(e,n,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(n=i._$AQ)||void 0===n||n.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$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},Ur=(t,e,i=t)=>(t._$AI(e,i),t),Mr={},Pr=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const n=t._$AB.nextSibling;for(;i!==n;){const t=i.nextSibling;i.remove(),i=t}},Dr=(t,e,i)=>{const n=new Map;for(let o=e;o<=i;o++)n.set(t[o],o);return n},Fr=zo(class extends Ho{constructor(t){if(super(t),t.type!==Bo)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let n;void 0===i?i=e:void 0!==e&&(n=e);const o=[],r=[];let s=0;for(const e of t)o[s]=n?n(e,s):s,r[s]=i(e,s),s++;return{values:r,keys:o}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,n]){var o;const r=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,i,n);if(!Array.isArray(r))return this.ht=a,s;const l=null!==(o=this.ht)&&void 0!==o?o:this.ht=[],c=[];let h,u,d=0,f=r.length-1,p=0,v=s.length-1;for(;d<=f&&p<=v;)if(null===r[d])d++;else if(null===r[f])f--;else if(l[d]===a[p])c[p]=Ur(r[d],s[p]),d++,p++;else if(l[f]===a[v])c[v]=Ur(r[f],s[v]),f--,v--;else if(l[d]===a[v])c[v]=Ur(r[d],s[v]),jr(t,c[v+1],r[d]),d++,v--;else if(l[f]===a[p])c[p]=Ur(r[f],s[p]),jr(t,r[d],r[f]),f--,p++;else if(void 0===h&&(h=Dr(a,p,v),u=Dr(l,d,f)),h.has(l[d]))if(h.has(l[f])){const e=u.get(a[p]),i=void 0!==e?r[e]:null;if(null===i){const e=jr(t,r[d]);Ur(e,s[p]),c[p]=e}else c[p]=Ur(i,s[p]),jr(t,r[d],i),r[e]=null;p++}else Pr(r[f]),f--;else Pr(r[d]),d++;for(;p<=v;){const e=jr(t,c[v+1]);Ur(e,s[p]),c[p++]=e}for(;d<=f;){const t=r[d++];null!==t&&Pr(t)}return this.ht=a,((t,e=Mr)=>{t._$AH=e})(t,c),ot}});
1184
+ const{I:jr}=mt,Ur=()=>document.createComment(""),Mr=(t,e,i)=>{var n;const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Ur(),r),n=o.insertBefore(Ur(),r);i=new jr(e,n,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(n=i._$AQ)||void 0===n||n.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$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},Pr=(t,e,i=t)=>(t._$AI(e,i),t),Dr={},Fr=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const n=t._$AB.nextSibling;for(;i!==n;){const t=i.nextSibling;i.remove(),i=t}},Lr=(t,e,i)=>{const n=new Map;for(let o=e;o<=i;o++)n.set(t[o],o);return n},Br=Wo(class extends Ko{constructor(t){if(super(t),t.type!==Ho)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let n;void 0===i?i=e:void 0!==e&&(n=e);const o=[],r=[];let s=0;for(const e of t)o[s]=n?n(e,s):s,r[s]=i(e,s),s++;return{values:r,keys:o}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,n]){var o;const r=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,i,n);if(!Array.isArray(r))return this.ht=a,s;const l=null!==(o=this.ht)&&void 0!==o?o:this.ht=[],c=[];let h,u,d=0,f=r.length-1,p=0,v=s.length-1;for(;d<=f&&p<=v;)if(null===r[d])d++;else if(null===r[f])f--;else if(l[d]===a[p])c[p]=Pr(r[d],s[p]),d++,p++;else if(l[f]===a[v])c[v]=Pr(r[f],s[v]),f--,v--;else if(l[d]===a[v])c[v]=Pr(r[d],s[v]),Mr(t,c[v+1],r[d]),d++,v--;else if(l[f]===a[p])c[p]=Pr(r[f],s[p]),Mr(t,r[d],r[f]),f--,p++;else if(void 0===h&&(h=Lr(a,p,v),u=Lr(l,d,f)),h.has(l[d]))if(h.has(l[f])){const e=u.get(a[p]),i=void 0!==e?r[e]:null;if(null===i){const e=Mr(t,r[d]);Pr(e,s[p]),c[p]=e}else c[p]=Pr(i,s[p]),Mr(t,r[d],i),r[e]=null;p++}else Fr(r[f]),f--;else Fr(r[d]),d++;for(;p<=v;){const e=Mr(t,c[v+1]);Pr(e,s[p]),c[p++]=e}for(;d<=f;){const t=r[d++];null!==t&&Fr(t)}return this.ht=a,((t,e=Dr)=>{t._$AH=e})(t,c),ot}});
1185
1185
  /**
1186
1186
  * @license
1187
1187
  * Copyright 2017 Google LLC
1188
1188
  * SPDX-License-Identifier: BSD-3-Clause
1189
- */class Lr extends Ut{render(){return nt`
1189
+ */class zr extends Ut{render(){return nt`
1190
1190
  <div class="ft-loader">
1191
1191
  <div></div>
1192
1192
  <div></div>
1193
1193
  <div></div>
1194
1194
  <div></div>
1195
1195
  </div>
1196
- `}}Lr.styles=Jn,b("ft-loader")(Lr);var Br=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class zr extends Ut{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(nt`
1196
+ `}}zr.styles=Qn,b("ft-loader")(zr);var Hr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Wr extends(Pi(Ut,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(nt`
1197
1197
  <button part="button"
1198
- class="${sr(t)}"
1198
+ class="${lr(t)}"
1199
1199
  aria-label="${this.getLabel()}"
1200
1200
  ?disabled=${this.isDisabled()}>
1201
1201
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1202
1202
  <ft-typography part="label"
1203
1203
  variant="button"
1204
1204
  element="span"
1205
- class="ft-button--label ${Fi?"ft-safari-ellipsis-fix":""}"
1205
+ class="ft-button--label ${Bi?"ft-safari-ellipsis-fix":""}"
1206
1206
  ?hidden=${!this.hasTextContent()}>
1207
1207
  <slot @slotchange=${this.onSlotchange}></slot>
1208
1208
  </ft-typography>
1209
1209
  ${this.resolveIcon()}
1210
1210
  </button>
1211
1211
  `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?nt`
1212
- <ft-tooltip part="tooltip"
1213
- text="${this.getLabel()}"
1214
- position="${this.tooltipPosition}">
1215
- ${t}
1216
- </ft-tooltip>
1212
+ <ft-tooltip part="tooltip"
1213
+ text="${this.getLabel()}"
1214
+ position="${this.tooltipPosition}">
1215
+ ${t}
1216
+ </ft-tooltip>
1217
1217
  `:t}resolveIcon(){return this.loading?nt`
1218
1218
  <ft-loader part="loader icon"></ft-loader> `:this.icon?nt`
1219
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:rt}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}}zr.elementDefinitions={"ft-ripple":lr,"ft-tooltip":rr,"ft-typography":Fo,"ft-icon":Xo,"ft-loader":Lr},zr.styles=[Pt,lo],Br([s({type:String,reflect:!0})],zr.prototype,"role",void 0),Br([s({type:Boolean})],zr.prototype,"primary",void 0),Br([s({type:Boolean})],zr.prototype,"outlined",void 0),Br([s({type:Boolean})],zr.prototype,"disabled",void 0),Br([s({type:Boolean})],zr.prototype,"dense",void 0),Br([s({type:Boolean})],zr.prototype,"round",void 0),Br([s()],zr.prototype,"label",void 0),Br([s()],zr.prototype,"icon",void 0),Br([s()],zr.prototype,"iconVariant",void 0),Br([s({type:Boolean})],zr.prototype,"trailingIcon",void 0),Br([s({type:Boolean})],zr.prototype,"loading",void 0),Br([s()],zr.prototype,"tooltipPosition",void 0),Br([s({type:Boolean})],zr.prototype,"hideTooltip",void 0),Br([s({type:Boolean})],zr.prototype,"forceTooltip",void 0),Br([c(".ft-button")],zr.prototype,"button",void 0),Br([c(".ft-button--label slot")],zr.prototype,"slottedContent",void 0),b("ft-button")(zr);const Hr=k`
1220
- `,Wr=k`
1221
- `,Kr=ji.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 Vr{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=Kr.getState(),n=null!=t?t:i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static get(t){var e;return null!=t?Vr.build(t):null!==(e=Vr.API)&&void 0!==e?e:Vr.API=Vr.build()}static await(t){return new Promise((e=>{let i=Vr.get(t);if(i)e(i);else{const n=Kr.subscribe((()=>{i=Vr.get(t),i&&(n(),e(i))}))}}))}}var Zr;const qr=Symbol("clearAfterUnitTest");class Gr{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new n,this.listeners={},this.currentUiLocale="",this[Zr]=()=>{this.defaultMessages={},this.cache=new n,this.listeners={}},this.currentUiLocale=Kr.getState().uiLocale,Kr.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Kr.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 n={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};v(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var n,o,r;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(o=null===(n=this.cache.getNow(t))||void 0===n?void 0:n.messages)&&void 0!==o?o:{};return new Dt(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},s).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=>p(0).then((()=>t())).catch((()=>null)))))}}Zr=qr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Gr((async(t,e)=>(await Vr.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Gr((async(t,e)=>(await Vr.await()).getCustomMessageContext(t,e))));const Xr=window.FluidTopicsI18nService,Jr=window.FluidTopicsCustomI18nService;var Yr=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Qr extends Ut{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=()=>Vr.get(),this.cache=new n,this.cleanSessionDebouncer=new o}render(){return nt`
1219
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:rt}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}}Wr.elementDefinitions={"ft-ripple":hr,"ft-tooltip":ar,"ft-typography":Bo,"ft-icon":Yo,"ft-loader":zr},Wr.styles=[Pt,ho],Hr([s({type:String,reflect:!0})],Wr.prototype,"role",void 0),Hr([s()],Wr.prototype,"type",void 0),Hr([s({type:Boolean})],Wr.prototype,"primary",void 0),Hr([s({type:Boolean})],Wr.prototype,"outlined",void 0),Hr([s({type:Boolean})],Wr.prototype,"disabled",void 0),Hr([s({type:Boolean})],Wr.prototype,"dense",void 0),Hr([s({type:Boolean})],Wr.prototype,"round",void 0),Hr([s()],Wr.prototype,"label",void 0),Hr([s()],Wr.prototype,"icon",void 0),Hr([s()],Wr.prototype,"iconVariant",void 0),Hr([s({type:Boolean})],Wr.prototype,"trailingIcon",void 0),Hr([s({type:Boolean})],Wr.prototype,"loading",void 0),Hr([s()],Wr.prototype,"tooltipPosition",void 0),Hr([s({type:Boolean})],Wr.prototype,"hideTooltip",void 0),Hr([s({type:Boolean})],Wr.prototype,"forceTooltip",void 0),Hr([c(".ft-button")],Wr.prototype,"button",void 0),Hr([c(".ft-button--label slot")],Wr.prototype,"slottedContent",void 0),b("ft-button")(Wr);const Kr=k`
1220
+ `,Vr=k`
1221
+ `,Zr=ji.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 qr{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=Zr.getState(),n=null!=t?t:i;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static get(t){var e;return null!=t?qr.build(t):null!==(e=qr.API)&&void 0!==e?e:qr.API=qr.build()}static await(t){return new Promise((e=>{let i=qr.get(t);if(i)e(i);else{const n=Zr.subscribe((()=>{i=qr.get(t),i&&(n(),e(i))}))}}))}}var Gr;const Xr=Symbol("clearAfterUnitTest");class Jr{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new n,this.listeners={},this.currentUiLocale="",this[Gr]=()=>{this.defaultMessages={},this.cache=new n,this.listeners={}},this.currentUiLocale=Zr.getState().uiLocale,Zr.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Zr.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 n={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};v(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var n,o,r;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(o=null===(n=this.cache.getNow(t))||void 0===n?void 0:n.messages)&&void 0!==o?o:{};return new Dt(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},s).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=>p(0).then((()=>t())).catch((()=>null)))))}}Gr=Xr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Jr((async(t,e)=>(await qr.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Jr((async(t,e)=>(await qr.await()).getCustomMessageContext(t,e))));const Yr=window.FluidTopicsI18nService,Qr=window.FluidTopicsCustomI18nService;var ts=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class es extends Ut{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=()=>qr.get(),this.cache=new n,this.cleanSessionDebouncer=new o}render(){return nt`
1222
1222
  <slot></slot>
1223
- `}update(t){super.update(t),t.has("baseUrl")&&Kr.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Kr.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Kr.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Kr.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Kr.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Kr.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Kr.actions.setSession(this.session),t.has("availableUiLocales")&&Kr.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Xr.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()))))}}Qr.elementDefinitions={},Qr.styles=Wr,Yr([s()],Qr.prototype,"baseUrl",void 0),Yr([s()],Qr.prototype,"apiIntegrationIdentifier",void 0),Yr([s()],Qr.prototype,"uiLocale",void 0),Yr([y([])],Qr.prototype,"availableUiLocales",void 0),Yr([s({type:Boolean})],Qr.prototype,"editorMode",void 0),Yr([s({type:Boolean})],Qr.prototype,"noCustom",void 0),Yr([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Qr.prototype,"noCustomComponent",void 0),Yr([s({type:Boolean})],Qr.prototype,"withManualResources",void 0),Yr([y([])],Qr.prototype,"messageContexts",void 0),Yr([y(void 0)],Qr.prototype,"session",void 0),Yr([s({type:Object})],Qr.prototype,"apiProvider",void 0);class ts{async listMySearches(){var t;return(null===(t=Kr.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Vr.await()).listMySearches(Kr.getState().session.profile.userId):[]}}const es=new n;class is{async listMyBookmarks(){return es.get("bookmarks",(async()=>(await Vr.await()).listMyBookmarks(Kr.getState().session.profile.userId)))}clearCache(){es.clear("bookmarks")}}const ns=ji.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const os=new class{constructor(){this.currentSession=Kr.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new is,Kr.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Kr.getState();v(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(){ns.actions.savedSearches(void 0)}clearMyBookmarks(){ns.actions.bookmarks(void 0)}async reloadMySearches(){const t=new ts,e=await t.listMySearches();ns.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;ns.actions.bookmarks(e)}}};b("ft-app-context")(Qr);var rs=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const ss=Symbol("i18nProperties"),as=Symbol("i18nUnsubs");function ls(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Jr:Xr}i18n(t,e,...i){var n;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const o=null!==(n=t.args)&&void 0!==n?n:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...o)}onI18nUpdate(t){var e;null===(e=this[ss])||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[ss])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ss]&&new Set([...this[ss].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[as].has(t)||this[as].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[as].forEach((t=>t())),this[as].clear()}}return e=as,rs([s({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class cs extends(ls(Ut)){}class hs extends(ls(Vt)){}var us=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ds extends hs{constructor(){super(),this.editorMode=!1,this.addStore(Kr)}render(){return this.key&&this.context?nt`
1223
+ `}update(t){super.update(t),t.has("baseUrl")&&Zr.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Zr.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Zr.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Zr.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Zr.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Zr.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Zr.actions.setSession(this.session),t.has("availableUiLocales")&&Zr.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Yr.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()))))}}es.elementDefinitions={},es.styles=Vr,ts([s()],es.prototype,"baseUrl",void 0),ts([s()],es.prototype,"apiIntegrationIdentifier",void 0),ts([s()],es.prototype,"uiLocale",void 0),ts([y([])],es.prototype,"availableUiLocales",void 0),ts([s({type:Boolean})],es.prototype,"editorMode",void 0),ts([s({type:Boolean})],es.prototype,"noCustom",void 0),ts([s({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],es.prototype,"noCustomComponent",void 0),ts([s({type:Boolean})],es.prototype,"withManualResources",void 0),ts([y([])],es.prototype,"messageContexts",void 0),ts([y(void 0)],es.prototype,"session",void 0),ts([s({type:Object})],es.prototype,"apiProvider",void 0);class is{async listMySearches(){var t;return(null===(t=Zr.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await qr.await()).listMySearches(Zr.getState().session.profile.userId):[]}}const ns=new n;class os{async listMyBookmarks(){return ns.get("bookmarks",(async()=>(await qr.await()).listMyBookmarks(Zr.getState().session.profile.userId)))}clearCache(){ns.clear("bookmarks")}}const rs=ji.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const ss=new class{constructor(){this.currentSession=Zr.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new os,Zr.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Zr.getState();v(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(){rs.actions.savedSearches(void 0)}clearMyBookmarks(){rs.actions.bookmarks(void 0)}async reloadMySearches(){const t=new is,e=await t.listMySearches();rs.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;rs.actions.bookmarks(e)}}};b("ft-app-context")(es);var as=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const ls=Symbol("i18nProperties"),cs=Symbol("i18nUnsubs");function hs(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Qr:Yr}i18n(t,e,...i){var n;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const o=null!==(n=t.args)&&void 0!==n?n:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...o)}onI18nUpdate(t){var e;null===(e=this[ls])||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[ls])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ls]&&new Set([...this[ls].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[cs].has(t)||this[cs].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[cs].forEach((t=>t())),this[cs].clear()}}return e=cs,as([s({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class us extends(hs(Ut)){}class ds extends(hs(Vt)){}var fs=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ps extends ds{constructor(){super(),this.editorMode=!1,this.addStore(Zr)}render(){return this.key&&this.context?nt`
1224
1224
  <span class="ft-i18n">
1225
1225
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1226
1226
  </span>
1227
- `:this.editorMode?"Select a context and a label key.":rt}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}ds.elementDefinitions={},ds.styles=Hr,us([Ui()],ds.prototype,"editorMode",void 0),us([s()],ds.prototype,"context",void 0),us([s()],ds.prototype,"key",void 0),us([y([])],ds.prototype,"args",void 0),us([s()],ds.prototype,"defaultMessage",void 0);class fs{static build(t){return new fs(t)}static fromGwt(t){return new fs(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)=>Xr.resolveMessage(this.name,e,...t)})}}const ps=(t,e)=>(i,n)=>{var o,r;i.constructor.createProperty(n,null!=e?e:{attribute:!1,type:String});const s={...t,key:null!==(o=t.key)&&void 0!==o?o:n};i[ss]=null!==(r=i[ss])&&void 0!==r?r:new Map,i[ss].set(n,s)};b("ft-i18n")(ds);const vs=fs.build("integratedFeedbackComponent"),bs={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"},ys=fs.build("inDesignerFeedbackComponent"),gs={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."},xs={fontSize:Ot.create("--ft-text-field-font-size","SIZE","14px"),labelSize:Ot.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:Ot.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:Ot.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:Ot.extend("--ft-text-field-helper-color",_t.colorOnSurfaceMedium),colorPrimary:Ot.external(_t.colorPrimary,"Design system"),colorOnSurface:Ot.external(_t.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Ot.external(_t.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Ot.external(_t.borderRadiusS,"Design system"),colorError:Ot.external(_t.colorError,"Design system"),prefixColor:Ot.extend("--ft-text-field-prefix-color",_t.colorOnSurfaceMedium),iconColor:Ot.extend("--ft-text-field-icon-color",_t.colorOnSurfaceMedium),floatingZIndex:Ot.create("--ft-text-field-floating-components-z-index","NUMBER","3"),colorSurface:Ot.external(_t.colorSurface,"Design system"),colorOutline:Ot.external(_t.colorOutline,"Design system"),elevation02:Ot.external(_t.elevation02,"Design system"),suggestSize:Ot.create("--ft-text-field-suggest-size","SIZE","300px")},ms=k`
1227
+ `:this.editorMode?"Select a context and a label key.":rt}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}ps.elementDefinitions={},ps.styles=Kr,fs([Ui()],ps.prototype,"editorMode",void 0),fs([s()],ps.prototype,"context",void 0),fs([s()],ps.prototype,"key",void 0),fs([y([])],ps.prototype,"args",void 0),fs([s()],ps.prototype,"defaultMessage",void 0);class vs{static build(t){return new vs(t)}static fromGwt(t){return new vs(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)=>Yr.resolveMessage(this.name,e,...t)})}}const bs=(t,e)=>(i,n)=>{var o,r;i.constructor.createProperty(n,null!=e?e:{attribute:!1,type:String});const s={...t,key:null!==(o=t.key)&&void 0!==o?o:n};i[ls]=null!==(r=i[ls])&&void 0!==r?r:new Map,i[ls].set(n,s)};b("ft-i18n")(ps);const ys=vs.build("integratedFeedbackComponent"),gs={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"},ms=vs.build("inDesignerFeedbackComponent"),xs={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."},ws={fontSize:Ot.create("--ft-text-field-font-size","SIZE","14px"),labelSize:Ot.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:Ot.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:Ot.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:Ot.extend("--ft-text-field-helper-color",_t.colorOnSurfaceMedium),colorPrimary:Ot.external(_t.colorPrimary,"Design system"),colorOnSurface:Ot.external(_t.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Ot.external(_t.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Ot.external(_t.borderRadiusS,"Design system"),colorError:Ot.external(_t.colorError,"Design system"),prefixColor:Ot.extend("--ft-text-field-prefix-color",_t.colorOnSurfaceMedium),iconColor:Ot.extend("--ft-text-field-icon-color",_t.colorOnSurfaceMedium),floatingZIndex:Ot.create("--ft-text-field-floating-components-z-index","NUMBER","3"),colorSurface:Ot.external(_t.colorSurface,"Design system"),colorOutline:Ot.external(_t.colorOutline,"Design system"),elevation02:Ot.external(_t.elevation02,"Design system"),suggestSize:Ot.create("--ft-text-field-suggest-size","SIZE","300px")},$s=k`
1228
1228
  *:focus {
1229
1229
  outline: none;
1230
1230
  }
@@ -1237,16 +1237,16 @@ const{I:Ar}=xt,Nr=()=>document.createComment(""),jr=(t,e,i)=>{var n;const o=t._$
1237
1237
  }
1238
1238
 
1239
1239
  ft-input-label {
1240
- ${Et(kr.fontSize,xs.fontSize)};
1241
- ${Et(kr.raisedFontSize,xs.labelSize)};
1242
- ${Et(kr.verticalSpacing,xs.verticalSpacing)};
1243
- ${Et(kr.horizontalSpacing,xs.horizontalSpacing)};
1240
+ ${Et(Er.fontSize,ws.fontSize)};
1241
+ ${Et(Er.raisedFontSize,ws.labelSize)};
1242
+ ${Et(Er.verticalSpacing,ws.verticalSpacing)};
1243
+ ${Et(Er.horizontalSpacing,ws.horizontalSpacing)};
1244
1244
  }
1245
1245
 
1246
1246
  .ft-text-field--main-panel {
1247
1247
  position: relative;
1248
1248
  display: flex;
1249
- height: calc(4 * ${xs.verticalSpacing} + ${xs.labelSize} + ${xs.fontSize});
1249
+ height: calc(4 * ${ws.verticalSpacing} + ${ws.labelSize} + ${ws.fontSize});
1250
1250
  }
1251
1251
 
1252
1252
  .ft-text-field--input-panel {
@@ -1255,24 +1255,24 @@ const{I:Ar}=xt,Nr=()=>document.createComment(""),jr=(t,e,i)=>{var n;const o=t._$
1255
1255
  display: flex;
1256
1256
  align-items: center;
1257
1257
  overflow: hidden;
1258
- padding: 0 ${xs.horizontalSpacing};
1258
+ padding: 0 ${ws.horizontalSpacing};
1259
1259
 
1260
- ${Et(gn.fontSize,xs.fontSize)};
1261
- ${Et(gn.lineHeight,xs.fontSize)};
1260
+ ${Et(xn.fontSize,ws.fontSize)};
1261
+ ${Et(xn.lineHeight,ws.fontSize)};
1262
1262
  }
1263
1263
 
1264
1264
  .ft-text-field--input-panel ft-ripple {
1265
- ${Et(Vi.opacityContentOnSurfaceHover,"0.08")};
1266
- ${Et(Vi.opacityContentOnSurfacePressed,"0.04")};
1265
+ ${Et(qi.opacityContentOnSurfaceHover,"0.08")};
1266
+ ${Et(qi.opacityContentOnSurfacePressed,"0.04")};
1267
1267
  }
1268
1268
 
1269
1269
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
1270
1270
  align-items: flex-end;
1271
- padding: 0 ${xs.horizontalSpacing} ${xs.verticalSpacing} ${xs.horizontalSpacing};
1271
+ padding: 0 ${ws.horizontalSpacing} ${ws.verticalSpacing} ${ws.horizontalSpacing};
1272
1272
  }
1273
1273
 
1274
1274
  .ft-text-field--prefix {
1275
- color: ${xs.prefixColor};
1275
+ color: ${ws.prefixColor};
1276
1276
  margin-right: 2px;
1277
1277
  flex-shrink: 1;
1278
1278
  overflow: hidden;
@@ -1291,15 +1291,15 @@ const{I:Ar}=xt,Nr=()=>document.createComment(""),jr=(t,e,i)=>{var n;const o=t._$
1291
1291
  flex-shrink: 1;
1292
1292
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
1293
1293
 
1294
- color: ${xs.colorOnSurface};
1295
- padding: calc(2 * ${xs.verticalSpacing}) 0;
1294
+ color: ${ws.colorOnSurface};
1295
+ padding: calc(2 * ${ws.verticalSpacing}) 0;
1296
1296
  border: none;
1297
1297
  background: none;
1298
1298
  }
1299
1299
 
1300
1300
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
1301
1301
  padding-bottom: 0;
1302
- padding-top: calc(${xs.labelSize} + 2 * ${xs.verticalSpacing});
1302
+ padding-top: calc(${ws.labelSize} + 2 * ${ws.verticalSpacing});
1303
1303
  }
1304
1304
 
1305
1305
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -1308,37 +1308,37 @@ const{I:Ar}=xt,Nr=()=>document.createComment(""),jr=(t,e,i)=>{var n;const o=t._$
1308
1308
  }
1309
1309
 
1310
1310
  .ft-text-field--disabled .ft-text-field--input {
1311
- color: ${xs.colorOnSurfaceDisabled};
1311
+ color: ${ws.colorOnSurfaceDisabled};
1312
1312
  }
1313
1313
 
1314
1314
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1315
- ${Et(kr.borderColor,xs.colorPrimary)};
1316
- ${Et(kr.textColor,xs.colorPrimary)};
1315
+ ${Et(Er.borderColor,ws.colorPrimary)};
1316
+ ${Et(Er.textColor,ws.colorPrimary)};
1317
1317
  }
1318
1318
 
1319
1319
  .ft-text-field--filled .ft-text-field--input-panel {
1320
- border-radius: ${xs.borderRadiusS} ${xs.borderRadiusS} 0 0;
1320
+ border-radius: ${ws.borderRadiusS} ${ws.borderRadiusS} 0 0;
1321
1321
  }
1322
1322
 
1323
1323
  .ft-text-field--outlined .ft-text-field--input-panel {
1324
- border-radius: ${xs.borderRadiusS};
1324
+ border-radius: ${ws.borderRadiusS};
1325
1325
  }
1326
1326
 
1327
1327
  .ft-text-field--helper-text {
1328
- padding: 0 12px 0 ${xs.horizontalSpacing};
1329
- color: ${xs.helperColor};
1328
+ padding: 0 12px 0 ${ws.horizontalSpacing};
1329
+ color: ${ws.helperColor};
1330
1330
  }
1331
1331
 
1332
1332
  .ft-text-field--in-error .ft-text-field--input,
1333
1333
  .ft-text-field--in-error .ft-text-field--helper-text,
1334
1334
  .ft-text-field--in-error .ft-text-field--prefix {
1335
- color: ${xs.colorError};
1335
+ color: ${ws.colorError};
1336
1336
  }
1337
1337
 
1338
1338
  .ft-text-field--icon {
1339
1339
  align-self: center;
1340
1340
  margin-left: 8px;
1341
- color: ${xs.iconColor};
1341
+ color: ${ws.iconColor};
1342
1342
  }
1343
1343
 
1344
1344
  .ft-text-field--container {
@@ -1351,13 +1351,13 @@ const{I:Ar}=xt,Nr=()=>document.createComment(""),jr=(t,e,i)=>{var n;const o=t._$
1351
1351
  position: absolute;
1352
1352
  left: 0;
1353
1353
  right: 0;
1354
- z-index: ${xs.floatingZIndex};
1355
- background: ${xs.colorSurface};
1356
- border: 1px solid ${xs.colorOutline};
1357
- border-radius: 0 0 ${xs.borderRadiusS} ${xs.borderRadiusS};
1358
- box-shadow: ${xs.elevation02};
1354
+ z-index: ${ws.floatingZIndex};
1355
+ background: ${ws.colorSurface};
1356
+ border: 1px solid ${ws.colorOutline};
1357
+ border-radius: 0 0 ${ws.borderRadiusS} ${ws.borderRadiusS};
1358
+ box-shadow: ${ws.elevation02};
1359
1359
  outline: none;
1360
- max-height: ${xs.suggestSize};
1360
+ max-height: ${ws.suggestSize};
1361
1361
  overflow-y: auto;
1362
1362
  }
1363
1363
 
@@ -1374,14 +1374,14 @@ const{I:Ar}=xt,Nr=()=>document.createComment(""),jr=(t,e,i)=>{var n;const o=t._$
1374
1374
  }
1375
1375
 
1376
1376
  .ft-text-field--with-icon {
1377
- ${Et(kr.labelMaxWidth,`calc(100% - ${Yn.size} - ${kr.horizontalSpacing})`)};
1377
+ ${Et(Er.labelMaxWidth,`calc(100% - ${to.size} - ${Er.horizontalSpacing})`)};
1378
1378
  }
1379
1379
 
1380
1380
  .ft-text-field--with-password ft-icon:hover {
1381
1381
  cursor: pointer;
1382
1382
  }
1383
- `;var ws=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class $s extends Ut{constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=Vo.EYE_SLASH,this.passwordRevealedIcon=Vo.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.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 nt`
1384
- <div class="${sr(t)}">
1383
+ `;var Ss=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ks extends(Pi(Ut,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=qo.EYE_SLASH,this.passwordRevealedIcon=qo.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 nt`
1384
+ <div class="${lr(t)}">
1385
1385
  <div class="ft-text-field--main-panel"
1386
1386
  @keydown=${this.handleKeyboardNavigation}
1387
1387
  @focusout=${this.onMainPanelBlur}>
@@ -1395,10 +1395,10 @@ const{I:Ar}=xt,Nr=()=>document.createComment(""),jr=(t,e,i)=>{var n;const o=t._$
1395
1395
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1396
1396
  `}
1397
1397
  ${this.prefix?nt`
1398
- <ft-typography class="ft-text-field--prefix" vaiant="body1">
1399
- ${this.prefix}
1400
- </ft-typography>
1401
- `:rt}
1398
+ <ft-typography class="ft-text-field--prefix" vaiant="body1">
1399
+ ${this.prefix}
1400
+ </ft-typography>
1401
+ `:rt}
1402
1402
  <input type=${this.password&&this.hidePassword?"password":"text"}
1403
1403
  maxlength=${(t=>null!=t?t:rt)(this.maxLength||void 0)}
1404
1404
  aria-label="${this.label}"
@@ -1431,7 +1431,7 @@ const{I:Ar}=xt,Nr=()=>document.createComment(""),jr=(t,e,i)=>{var n;const o=t._$
1431
1431
  .variant=${this.iconVariant}
1432
1432
  .value=${this.icon}
1433
1433
  @click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
1434
- `:rt}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(),n=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&n&&(this.suggestionsOnTop=t.bottom+n.height>window.innerHeight&&t.top-n.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 n;n="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[n])||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}}$s.elementDefinitions={"ft-input-label":_r,"ft-ripple":lr,"ft-typography":Fo,"ft-icon":Xo},$s.styles=[Hn,ms],ws([s()],$s.prototype,"label",void 0),ws([s({noAccessor:!0})],$s.prototype,"value",null),ws([a()],$s.prototype,"dispatchedValue",void 0),ws([s()],$s.prototype,"helper",void 0),ws([s({type:Boolean})],$s.prototype,"outlined",void 0),ws([s({type:Boolean})],$s.prototype,"disabled",void 0),ws([s({type:Boolean})],$s.prototype,"error",void 0),ws([s()],$s.prototype,"prefix",void 0),ws([s()],$s.prototype,"icon",void 0),ws([s()],$s.prototype,"passwordHiddenIcon",void 0),ws([s()],$s.prototype,"passwordRevealedIcon",void 0),ws([s()],$s.prototype,"iconVariant",void 0),ws([s({type:Boolean})],$s.prototype,"filterSuggestions",void 0),ws([s({type:Number})],$s.prototype,"maxLength",void 0),ws([s({type:Boolean})],$s.prototype,"password",void 0),ws([a()],$s.prototype,"focused",void 0),ws([a()],$s.prototype,"hidePassword",void 0),ws([a()],$s.prototype,"suggestionsOnTop",void 0),ws([a()],$s.prototype,"hideSuggestions",void 0),ws([a()],$s.prototype,"visibleSuggestions",void 0),ws([c(".ft-text-field--main-panel")],$s.prototype,"mainPanel",void 0),ws([c(".ft-text-field--input")],$s.prototype,"input",void 0),ws([c(".ft-text-field--suggestions")],$s.prototype,"suggestionsContainer",void 0),ws([d({selector:"ft-text-field-suggestion"})],$s.prototype,"suggestions",void 0);const Ss=k`
1434
+ `:rt}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(),n=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&n&&(this.suggestionsOnTop=t.bottom+n.height>window.innerHeight&&t.top-n.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 n;n="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[n])||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}}ks.elementDefinitions={"ft-input-label":Tr,"ft-ripple":hr,"ft-typography":Bo,"ft-icon":Yo},ks.styles=[Kn,$s],Ss([s()],ks.prototype,"label",void 0),Ss([s({noAccessor:!0})],ks.prototype,"value",null),Ss([a()],ks.prototype,"dispatchedValue",void 0),Ss([s()],ks.prototype,"helper",void 0),Ss([s({type:Boolean})],ks.prototype,"outlined",void 0),Ss([s({type:Boolean})],ks.prototype,"disabled",void 0),Ss([s({type:Boolean})],ks.prototype,"error",void 0),Ss([s()],ks.prototype,"prefix",void 0),Ss([s()],ks.prototype,"icon",void 0),Ss([s()],ks.prototype,"passwordHiddenIcon",void 0),Ss([s()],ks.prototype,"passwordRevealedIcon",void 0),Ss([s()],ks.prototype,"iconVariant",void 0),Ss([s({type:Boolean})],ks.prototype,"filterSuggestions",void 0),Ss([s({type:Number})],ks.prototype,"maxLength",void 0),Ss([s({type:Boolean})],ks.prototype,"password",void 0),Ss([a()],ks.prototype,"focused",void 0),Ss([a()],ks.prototype,"hidePassword",void 0),Ss([a()],ks.prototype,"suggestionsOnTop",void 0),Ss([a()],ks.prototype,"hideSuggestions",void 0),Ss([a()],ks.prototype,"visibleSuggestions",void 0),Ss([c(".ft-text-field--main-panel")],ks.prototype,"mainPanel",void 0),Ss([c(".ft-text-field--input")],ks.prototype,"input",void 0),Ss([c(".ft-text-field--suggestions")],ks.prototype,"suggestionsContainer",void 0),Ss([d({selector:"ft-text-field-suggestion"})],ks.prototype,"suggestions",void 0);const Os=k`
1435
1435
  .ft-text-field-suggestion {
1436
1436
  position: relative;
1437
1437
  padding: 8px 16px;
@@ -1456,7 +1456,7 @@ const{I:Ar}=xt,Nr=()=>document.createComment(""),jr=(t,e,i)=>{var n;const o=t._$
1456
1456
  slot {
1457
1457
  pointer-events: none;
1458
1458
  }
1459
- `;var ks=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Os extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Es extends Ut{render(){return nt`
1459
+ `;var Es=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class _s extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Rs extends Ut{render(){return nt`
1460
1460
  <div class="ft-text-field-suggestion"
1461
1461
  tabindex="-1"
1462
1462
  @keydown=${this.onKeyDown}
@@ -1468,21 +1468,21 @@ const{I:Ar}=xt,Nr=()=>document.createComment(""),jr=(t,e,i)=>{var n;const o=t._$
1468
1468
  <slot></slot>
1469
1469
  </ft-typography>
1470
1470
  </div>
1471
- `}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 Os(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())}}Es.elementDefinitions={"ft-ripple":lr,"ft-typography":Fo,"ft-icon":Xo},Es.styles=Ss,ks([s()],Es.prototype,"value",void 0),ks([c(".ft-text-field-suggestion")],Es.prototype,"container",void 0),ks([f()],Es.prototype,"assignedNodes",void 0),b("ft-text-field")($s),b("ft-text-field-suggestion")(Es);class _s{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 n,o,r;if(null==t.tocId)return[...this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let s=null===(o=t.prettyUrl)||void 0===o?void 0:o.replace(/^\//,"");const a={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:s,depth:e,parentTocId:i,children:[]};this.register(a);const l=this.convertSectionNodes(null!==(r=t.pageToc)&&void 0!==r?r:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,a.tocId);return a.children=[...l,...c],[a]}))}convertSectionNodes(t,e,i){return t.flatMap((t=>{var n;let o=null===(n=t.prettyUrl)||void 0===n?void 0:n.replace(/^\//,"");const r={...t,prettyUrl:o,depth:e,parentTocId:i,children:[]};return this.register(r),r.children=this.convertSectionNodes(t.children,e+1,t.tocId),[r]}))}buildPage(t,e){var i,n,o,r,s,a;const l={number:this.pages.length+1,title:null!==(i=t.title)&&void 0!==i?i:"",rootTocId:null!==(n=t.tocId)&&void 0!==n?n:"root",toc:(null!==(o=t.pageToc)&&void 0!==o?o:[]).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!==(s=null===(r=t.pageConfiguration)||void 0===r?void 0:r.parentsVisibility)&&void 0!==s?s:[];return l.breadcrumb.forEach(((t,e)=>{c(t,h[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(a=t.pageToc)&&void 0!==a?a:[])),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 Rs{convertPaginatedToc(t){return new _s(t).build()}}class Ts{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i,n){this.converter=t,this.api=e,this.cache=i,this._mapId=n,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 Io(null!==(e=null===(t=Kr.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 n=this.getNavigationData(t,e,i),o=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),r=new URL(o,this.api.tenantBaseUrl);return null!=n.page&&r.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&r.searchParams.set("tocId",n.tocId),null!=n.section&&r.searchParams.set("section",n.section),r.href}getNavigationData(t,e,i){var n,o;t=t||"root";const r=this.enrichedToc,s=null==r?void 0:r.pageByTocId[t],a=null==r?void 0:r.nodeByTocId[t],l=null==a?void 0:a.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(n=null==a?void 0:a.title)&&void 0!==n?n:"",page:e&&s&&s.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(o=null==r?void 0:r.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==o&&o,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=Kr.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}],n=this.getTocNodeNow(e.parentTocId);for(;n;)i.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){if(!this.isFeatureAvailable(t))return!1;switch(t){case Li.FEEDBACK:return Io(null!=e?e:[],Eo.FEEDBACK_USER);case Li.RATING:return Io(null!=e?e:[],Eo.RATING_USER)&&null!=i&&i!==go.NO_RATING;case Li.PRINT:return Io(null!=e?e:[],Eo.PRINT_USER);case Li.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case Li.COLLECTIONS:return Io(null!=e?e:[],Eo.COLLECTION_USER);default:return!1}}}class Cs extends Ts{static async build(t){return new Cs(new Rs,await Vr.await(),new n,t)}fetchMap(t){return this.api.getMap(t)}fetchMapRating(t){return this.api.getMapRating(t)}fetchPages(t){return this.api.getPages(t)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER")}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId)}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 Is{static build(t,e){return new Is((t=>ji.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:Cs.build)}constructor(t,e){this.store=t,this.reloadDebouncer=new o(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 p(5);return this.service}async navigateToTopic(t,e,i){const n=await this.awaitService(),o=await(null!=i?n.getPage(i):n.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(o),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,o),section:e})}resolveValidNonRootTocId(t,e){var i,n,o;let r=null!==(i="root"===t?void 0:t)&&void 0!==i?i:e.rootTocId;return e.topics.includes(r)?r:null!==(o=null!==(n=e.topics[0])&&void 0!==n?n:e.hiddenTopics[0])&&void 0!==o?o:"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,n,o,r;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===(n=this.service)||void 0===n?void 0:n.getToc().then((t=>this.store.actions.toc(t))),null===(o=this.service)||void 0===o?void 0:o.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(r=this.service)||void 0===r?void 0:r.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))])}catch(t){!this.errorHandler||t instanceof e||this.errorHandler(t)}}}const As=k`
1472
- `;class Ns extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class js extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Us extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Ms extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class Ps extends Event{constructor(){super("ft-reader-map-not-found")}}class Ds extends Event{constructor(){super("ft-reader-map-unauthorized")}}var Fs=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ls extends Vt{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new o(5),this.navigationDebouncer=new o(10),this.addStore(Kr)}render(){return nt`
1471
+ `}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 _s(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())}}Rs.elementDefinitions={"ft-ripple":hr,"ft-typography":Bo,"ft-icon":Yo},Rs.styles=Os,Es([s()],Rs.prototype,"value",void 0),Es([c(".ft-text-field-suggestion")],Rs.prototype,"container",void 0),Es([f()],Rs.prototype,"assignedNodes",void 0),b("ft-text-field")(ks),b("ft-text-field-suggestion")(Rs);class Ts{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 n,o,r;if(null==t.tocId)return[...this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let s=null===(o=t.prettyUrl)||void 0===o?void 0:o.replace(/^\//,"");const a={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:s,depth:e,parentTocId:i,children:[]};this.register(a);const l=this.convertSectionNodes(null!==(r=t.pageToc)&&void 0!==r?r:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,a.tocId);return a.children=[...l,...c],[a]}))}convertSectionNodes(t,e,i){return t.flatMap((t=>{var n;let o=null===(n=t.prettyUrl)||void 0===n?void 0:n.replace(/^\//,"");const r={...t,prettyUrl:o,depth:e,parentTocId:i,children:[]};return this.register(r),r.children=this.convertSectionNodes(t.children,e+1,t.tocId),[r]}))}buildPage(t,e){var i,n,o,r,s,a;const l={number:this.pages.length+1,title:null!==(i=t.title)&&void 0!==i?i:"",rootTocId:null!==(n=t.tocId)&&void 0!==n?n:"root",toc:(null!==(o=t.pageToc)&&void 0!==o?o:[]).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!==(s=null===(r=t.pageConfiguration)||void 0===r?void 0:r.parentsVisibility)&&void 0!==s?s:[];return l.breadcrumb.forEach(((t,e)=>{c(t,h[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(a=t.pageToc)&&void 0!==a?a:[])),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 Cs{convertPaginatedToc(t){return new Ts(t).build()}}class Is{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i,n){this.converter=t,this.api=e,this.cache=i,this._mapId=n,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 No(null!==(e=null===(t=Zr.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 n=this.getNavigationData(t,e,i),o=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),r=new URL(o,this.api.tenantBaseUrl);return null!=n.page&&r.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&r.searchParams.set("tocId",n.tocId),null!=n.section&&r.searchParams.set("section",n.section),r.href}getNavigationData(t,e,i){var n,o;t=t||"root";const r=this.enrichedToc,s=null==r?void 0:r.pageByTocId[t],a=null==r?void 0:r.nodeByTocId[t],l=null==a?void 0:a.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(n=null==a?void 0:a.title)&&void 0!==n?n:"",page:e&&s&&s.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(o=null==r?void 0:r.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==o&&o,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=Zr.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}],n=this.getTocNodeNow(e.parentTocId);for(;n;)i.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){if(!this.isFeatureAvailable(t))return!1;switch(t){case zi.FEEDBACK:return No(null!=e?e:[],Ro.FEEDBACK_USER);case zi.RATING:return No(null!=e?e:[],Ro.RATING_USER)&&null!=i&&i!==xo.NO_RATING;case zi.PRINT:return No(null!=e?e:[],Ro.PRINT_USER);case zi.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case zi.COLLECTIONS:return No(null!=e?e:[],Ro.COLLECTION_USER);default:return!1}}}class As extends Is{static async build(t){return new As(new Cs,await qr.await(),new n,t)}fetchMap(t){return this.api.getMap(t)}fetchMapRating(t){return this.api.getMapRating(t)}fetchPages(t){return this.api.getPages(t)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER")}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId)}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 Ns{static build(t,e){return new Ns((t=>ji.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:As.build)}constructor(t,e){this.store=t,this.reloadDebouncer=new o(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 p(5);return this.service}async navigateToTopic(t,e,i){const n=await this.awaitService(),o=await(null!=i?n.getPage(i):n.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(o),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,o),section:e})}resolveValidNonRootTocId(t,e){var i,n,o;let r=null!==(i="root"===t?void 0:t)&&void 0!==i?i:e.rootTocId;return e.topics.includes(r)?r:null!==(o=null!==(n=e.topics[0])&&void 0!==n?n:e.hiddenTopics[0])&&void 0!==o?o:"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,n,o,r;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===(n=this.service)||void 0===n?void 0:n.getToc().then((t=>this.store.actions.toc(t))),null===(o=this.service)||void 0===o?void 0:o.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(r=this.service)||void 0===r?void 0:r.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))])}catch(t){!this.errorHandler||t instanceof e||this.errorHandler(t)}}}const js=k`
1472
+ `;class Us extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Ms extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Ps extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Ds extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class Fs extends Event{constructor(){super("ft-reader-map-not-found")}}class Ls extends Event{constructor(){super("ft-reader-map-unauthorized")}}var Bs=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class zs extends Vt{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new o(5),this.navigationDebouncer=new o(10),this.addStore(Zr)}render(){return nt`
1473
1473
  ${this.importStyleIfNeeded()}
1474
1474
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1475
1475
  `}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:"")?rt:nt`
1476
1476
  <style>
1477
1477
  @import "${i}"
1478
1478
  </style>
1479
- `}get stateManager(){return null==this._stateManager&&(this._stateManager=Is.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 Ns(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 Us(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 js(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 Ps):401===e.status?this.dispatchEvent(new Ds):this.dispatchEvent(new Ms(t))}reloadBookmarks(){os.reloadBookmarks()}}var Bs;Ls.styles=As,Fs([Ui({store:Kr.name})],Ls.prototype,"baseUrl",void 0),Fs([s()],Ls.prototype,"mapId",void 0),Fs([s()],Ls.prototype,"tocId",void 0),Fs([s()],Ls.prototype,"section",void 0),Fs([s({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:Bs}})],Ls.prototype,"page",void 0),Fs([Ui({store:"reader"})],Ls.prototype,"map",void 0),Fs([Ui({store:"reader"})],Ls.prototype,"toc",void 0),Fs([Ui({store:"reader"})],Ls.prototype,"visibleTopics",void 0),Fs([Ui({store:"reader"})],Ls.prototype,"currentPage",void 0),Fs([Ui({store:"reader"})],Ls.prototype,"scrollTarget",void 0),Fs([s({attribute:!1})],Ls.prototype,"readerServiceProvider",void 0),b("ft-reader-context")(Ls);var zs=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Hs extends(ls(Wi)){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(vs,bs),this.addI18nContext(ys,gs)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Li.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Li.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get userHasRatingRole(){return this.session&&Io(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?((n=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(n=n.replace(/-/g,"/")),n=n.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,n)=>e+i+":"+n)),new Date(n)):i;var n}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?nt`
1479
+ `}get stateManager(){return null==this._stateManager&&(this._stateManager=Ns.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 Us(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 Ps(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 Ms(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 Fs):401===e.status?this.dispatchEvent(new Ls):this.dispatchEvent(new Ds(t))}reloadBookmarks(){ss.reloadBookmarks()}}var Hs;zs.styles=js,Bs([Ui({store:Zr.name})],zs.prototype,"baseUrl",void 0),Bs([s()],zs.prototype,"mapId",void 0),Bs([s()],zs.prototype,"tocId",void 0),Bs([s()],zs.prototype,"section",void 0),Bs([s({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:Hs}})],zs.prototype,"page",void 0),Bs([Ui({store:"reader"})],zs.prototype,"map",void 0),Bs([Ui({store:"reader"})],zs.prototype,"toc",void 0),Bs([Ui({store:"reader"})],zs.prototype,"visibleTopics",void 0),Bs([Ui({store:"reader"})],zs.prototype,"currentPage",void 0),Bs([Ui({store:"reader"})],zs.prototype,"scrollTarget",void 0),Bs([s({attribute:!1})],zs.prototype,"readerServiceProvider",void 0),b("ft-reader-context")(zs);var Ws=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ks extends(hs(Vi)){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(ys,gs),this.addI18nContext(ms,xs)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(zi.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(zi.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get userHasRatingRole(){return this.session&&No(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?((n=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(n=n.replace(/-/g,"/")),n=n.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,n)=>e+i+":"+n)),new Date(n)):i;var n}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?nt`
1480
1480
  <div class="ft-reader-feedback">
1481
1481
  ${this.hideTitle?rt:nt`
1482
- <ft-typography variant="title" part="main-title">
1483
- ${this.i18n(this.i18nProperties.feedbackMainTitle)}
1484
- </ft-typography>
1485
- `}
1482
+ <ft-typography variant="title" part="main-title">
1483
+ ${this.i18n(this.i18nProperties.feedbackMainTitle)}
1484
+ </ft-typography>
1485
+ `}
1486
1486
  ${this.renderRatingSection()}
1487
1487
  ${this.renderFeedbackSection()}
1488
1488
  </div>
@@ -1496,18 +1496,18 @@ const{I:Ar}=xt,Nr=()=>document.createComment(""),jr=(t,e,i)=>{var n;const o=t._$
1496
1496
  ${this.renderRatingDate()}
1497
1497
  </ft-typography>
1498
1498
  </div>
1499
- `:this.placeholderInEditor(this.userHasRatingRole?ys.messages.ratingNotConfigured():ys.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return vs.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return vs.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?vs.messages.ratedToday():vs.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return nt`
1499
+ `:this.placeholderInEditor(this.userHasRatingRole?ms.messages.ratingNotConfigured():ms.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return ys.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return ys.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?ys.messages.ratedToday():ys.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return nt`
1500
1500
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1501
- ${Fr(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const n=e+1;return nt`
1502
- <ft-button round part="rating-stars-${n}"
1503
- label="${vs.messages.starsRating(n)}"
1504
- tooltipPosition="top"
1505
- .iconVariant=${this.iconVariant}
1506
- icon="${i?this.filledStarIcon:this.emptyStarIcon}"
1507
- class="ft-reader-feedback--${i?"active":"inactive"}"
1508
- @click=${()=>this.rate(this.ratingValue===n?void 0:n)}
1509
- ></ft-button>
1510
- `}))}
1501
+ ${Br(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const n=e+1;return nt`
1502
+ <ft-button round part="rating-stars-${n}"
1503
+ label="${ys.messages.starsRating(n)}"
1504
+ tooltipPosition="top"
1505
+ .iconVariant=${this.iconVariant}
1506
+ icon="${i?this.filledStarIcon:this.emptyStarIcon}"
1507
+ class="ft-reader-feedback--${i?"active":"inactive"}"
1508
+ @click=${()=>this.rate(this.ratingValue===n?void 0:n)}
1509
+ ></ft-button>
1510
+ `}))}
1511
1511
  </div>
1512
1512
  `;case"LIKE":const t="LIKE"===this.ratingType&&0===this.ratingValue,e="LIKE"===this.ratingType&&1===this.ratingValue;return nt`
1513
1513
  <ft-switch unselectable
@@ -1517,13 +1517,13 @@ const{I:Ar}=xt,Nr=()=>document.createComment(""),jr=(t,e,i)=>{var n;const o=t._$
1517
1517
  ?selected=${e}
1518
1518
  .iconVariant=${this.iconVariant}
1519
1519
  icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
1520
- ${vs.messages.like()}
1520
+ ${ys.messages.like()}
1521
1521
  </ft-switch-option>
1522
1522
  <ft-switch-option .value=${0}
1523
1523
  ?selected=${t}
1524
1524
  .iconVariant=${this.iconVariant}
1525
1525
  icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
1526
- ${vs.messages.dislike()}
1526
+ ${ys.messages.dislike()}
1527
1527
  </ft-switch-option>
1528
1528
  </ft-switch>
1529
1529
  `;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,n="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return nt`
@@ -1532,55 +1532,56 @@ const{I:Ar}=xt,Nr=()=>document.createComment(""),jr=(t,e,i)=>{var n;const o=t._$
1532
1532
  part="rating rating-dichotomous">
1533
1533
  <ft-switch-option .value=${1}
1534
1534
  ?selected=${n}>
1535
- ${vs.messages.dichotomousYes()}
1535
+ ${ys.messages.dichotomousYes()}
1536
1536
  </ft-switch-option>
1537
1537
  <ft-switch-option .value=${0}
1538
1538
  ?selected=${i}>
1539
- ${vs.messages.dichotomousNo()}
1539
+ ${ys.messages.dichotomousNo()}
1540
1540
  </ft-switch-option>
1541
1541
  </ft-switch>
1542
1542
  `}return rt}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,i;if(this.canAccessFeedback){const n=this.feedbackMailLinkBuilder(this.feedbackMessage);let o=nt`
1543
1543
  <ft-button primary
1544
+ type="submit" name="submit"
1544
1545
  class="ft-reader-feedback--send-feedback"
1545
1546
  ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1546
- @click=${()=>n?this.onMailerFeedbackSent():this.sendFeedback()}
1547
1547
  part="send-feedback">
1548
- ${vs.messages.okButton()}
1548
+ ${ys.messages.okButton()}
1549
1549
  </ft-button>
1550
1550
  `;return n&&(o=nt`
1551
1551
  <a class="ft-reader-feedback--feedback-link" href="${n}">
1552
1552
  ${o}
1553
1553
  </a>
1554
1554
  `),nt`
1555
- <div class="ft-reader-feedback--feedback" part="feedback-container">
1555
+ <form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
1556
+ @submit="${t=>this.onFormSubmitEvent(t,!!n)}">
1556
1557
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1557
1558
  ${this.i18n(this.i18nProperties.feedbackSectionTitle)}
1558
1559
  </ft-typography>
1559
1560
  ${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)?nt`
1560
- <ft-text-field outlined
1561
+ <ft-text-field outlined name="email" type="email" autocomplete="email"
1561
1562
  class="ft-reader-feedback--from-input"
1562
- label=${vs.messages.feedbackfromEmail()}
1563
- @live-change=${t=>this.from=t.detail.trim()}
1563
+ label=${ys.messages.feedbackfromEmail()}
1564
+ @change=${t=>this.from=t.detail.trim()}
1564
1565
  ?error=${this.from&&!this.validFromEmail()}
1565
- helper=${this.from&&!this.validFromEmail()?vs.messages.feedbackfromEmailInvalid():""}
1566
+ helper=${this.from&&!this.validFromEmail()?ys.messages.feedbackfromEmailInvalid():""}
1566
1567
  />
1567
1568
  `:rt}
1568
1569
  <ft-text-area outlined
1569
1570
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1570
- label="${vs.messages.feedbackInputLabel()}"
1571
+ label="${ys.messages.feedbackInputLabel()}"
1571
1572
  @live-change=${t=>this.feedbackMessage=t.detail.trim()}
1572
1573
  ></ft-text-area>
1573
1574
  ${o}
1574
- </div>
1575
- `}return this.placeholderInEditor(ys.messages.missingFeedbackRole())}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?nt`
1575
+ </form>
1576
+ `}return this.placeholderInEditor(ms.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?nt`
1576
1577
  <div class="ft-reader-feedback--placeholder">
1577
1578
  <ft-typography variant="caption">${t}</ft-typography>
1578
1579
  <ft-tooltip position="left"
1579
- text="${ys.messages.inDesignerOnlyNotice()}">
1580
+ text="${ms.messages.inDesignerOnlyNotice()}">
1580
1581
  <ft-icon>INFO</ft-icon>
1581
1582
  </ft-tooltip>
1582
1583
  </div>
1583
- `:rt}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Hs.elementDefinitions={"ft-button":zr,"ft-typography":Fo,"ft-icon":Xo,"ft-tooltip":rr,"ft-switch":yr,"ft-switch-option":pr,"ft-text-area":Ir,"ft-text-field":$s},Hs.styles=uo,zs([s({type:Boolean})],Hs.prototype,"editorMode",void 0),zs([s({type:Boolean})],Hs.prototype,"hideTitle",void 0),zs([s({type:Boolean})],Hs.prototype,"ratingAllowed",void 0),zs([s({attribute:!1})],Hs.prototype,"i18nProperties",void 0),zs([s({attribute:!1})],Hs.prototype,"ratingSummary",void 0),zs([s({attribute:!1})],Hs.prototype,"session",void 0),zs([c(".ft-reader-feedback--feedback-input")],Hs.prototype,"feedbackInput",void 0),zs([a()],Hs.prototype,"from",void 0),zs([a()],Hs.prototype,"feedbackMessage",void 0),zs([s()],Hs.prototype,"iconVariant",void 0),zs([s()],Hs.prototype,"emptyStarIcon",void 0),zs([s()],Hs.prototype,"filledStarIcon",void 0),zs([s()],Hs.prototype,"emptyLikeIcon",void 0),zs([s()],Hs.prototype,"filledLikeIcon",void 0),zs([s()],Hs.prototype,"emptyDislikeIcon",void 0),zs([s()],Hs.prototype,"filledDislikeIcon",void 0),zs([Ui({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Hs.prototype,"configuration",void 0),zs([s()],Hs.prototype,"feedbackMailLinkBuilder",void 0);const Ws=fs.fromGwt("server");class Ks{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,n,o){var r;this.subject=t,this.url=e,this.configuration=n,this.isAuthenticated=o,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(r=n.bodyMetadataIds)&&void 0!==r?r:[]).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,n;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 o=encodeURIComponent(this.subject+" "+this.subjectMetadata),r=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${Ws.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(n=this.configuration)||void 0===n?void 0:n.recipients.join(",")}?subject=${o}&body=${r}`}}var Vs=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Zs extends(ls(Wi)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=qo.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 Ks,this.i18nProperties={feedbackMainTitle:vs.properties.mapFeedbackMainTitle(),ratingSectionTitle:vs.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:vs.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:vs.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new o(100),this.sendRatingDebouncer=new o(500),this.addStore(Kr)}render(){return this.map&&(this.editorMode||this.componentVisible)?nt`
1584
+ `:rt}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Ks.elementDefinitions={"ft-button":Wr,"ft-typography":Bo,"ft-icon":Yo,"ft-tooltip":ar,"ft-switch":mr,"ft-switch-option":br,"ft-text-area":Nr,"ft-text-field":ks},Ks.styles=po,Ws([s({type:Boolean})],Ks.prototype,"editorMode",void 0),Ws([s({type:Boolean})],Ks.prototype,"hideTitle",void 0),Ws([s({type:Boolean})],Ks.prototype,"ratingAllowed",void 0),Ws([s({attribute:!1})],Ks.prototype,"i18nProperties",void 0),Ws([s({attribute:!1})],Ks.prototype,"ratingSummary",void 0),Ws([s({attribute:!1})],Ks.prototype,"session",void 0),Ws([c(".ft-reader-feedback--feedback-input")],Ks.prototype,"feedbackInput",void 0),Ws([a()],Ks.prototype,"from",void 0),Ws([a()],Ks.prototype,"feedbackMessage",void 0),Ws([s()],Ks.prototype,"iconVariant",void 0),Ws([s()],Ks.prototype,"emptyStarIcon",void 0),Ws([s()],Ks.prototype,"filledStarIcon",void 0),Ws([s()],Ks.prototype,"emptyLikeIcon",void 0),Ws([s()],Ks.prototype,"filledLikeIcon",void 0),Ws([s()],Ks.prototype,"emptyDislikeIcon",void 0),Ws([s()],Ks.prototype,"filledDislikeIcon",void 0),Ws([Ui({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Ks.prototype,"configuration",void 0),Ws([s()],Ks.prototype,"feedbackMailLinkBuilder",void 0);const Vs=vs.fromGwt("server");class Zs{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,n,o){var r;this.subject=t,this.url=e,this.configuration=n,this.isAuthenticated=o,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(r=n.bodyMetadataIds)&&void 0!==r?r:[]).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,n;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 o=encodeURIComponent(this.subject+" "+this.subjectMetadata),r=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${Vs.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(n=this.configuration)||void 0===n?void 0:n.recipients.join(",")}?subject=${o}&body=${r}`}}var qs=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Gs extends(hs(Vi)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Xo.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 Zs,this.i18nProperties={feedbackMainTitle:ys.properties.mapFeedbackMainTitle(),ratingSectionTitle:ys.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:ys.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:ys.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new o(100),this.sendRatingDebouncer=new o(500),this.addStore(Zr)}render(){return this.map&&(this.editorMode||this.componentVisible)?nt`
1584
1585
  <ft-reader-feedback
1585
1586
  ratingAllowed
1586
1587
  .i18nProperties=${this.i18nProperties}
@@ -1606,7 +1607,7 @@ const{I:Ar}=xt,Nr=()=>document.createComment(""),jr=(t,e,i)=>{var n;const o=t._$
1606
1607
  display: none !important;
1607
1608
  }
1608
1609
  </style>
1609
- `}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Li.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(Li.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,n,o;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===(o=null===(n=this.session)||void 0===n?void 0:n.profile)||void 0===o?void 0:o.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,n;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===(n=this.ratingSummary)||void 0===n?void 0:n.type,t))}catch{this.dispatchEvent(new Rt({type:"error",message:vs.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Rt({type:"info",message:ys.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new Rt({type:"info",message:ys.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Rt({type:"info",message:vs.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Rt({type:"error",message:vs.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}Zs.elementDefinitions={"ft-reader-feedback":Hs},Vs([Ui({store:Kr.name})],Zs.prototype,"session",void 0),Vs([Ui({store:"reader"})],Zs.prototype,"map",void 0),Vs([Ui({store:Kr.name})],Zs.prototype,"editorMode",void 0),Vs([Ui({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Zs.prototype,"configuration",void 0),Vs([a()],Zs.prototype,"ratingSummary",void 0),Vs([s({type:Boolean})],Zs.prototype,"hideTitle",void 0),Vs([s()],Zs.prototype,"iconVariant",void 0),Vs([s()],Zs.prototype,"emptyStarIcon",void 0),Vs([s()],Zs.prototype,"filledStarIcon",void 0),Vs([s()],Zs.prototype,"emptyLikeIcon",void 0),Vs([s()],Zs.prototype,"filledLikeIcon",void 0),Vs([s()],Zs.prototype,"emptyDislikeIcon",void 0),Vs([s()],Zs.prototype,"filledDislikeIcon",void 0),Vs([c("ft-reader-feedback")],Zs.prototype,"readerFeedback",void 0),Vs([ps(Ws.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],Zs.prototype,"mailSubject",void 0);var qs=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Gs extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Xs=Symbol("registerInterval");class Js extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Xs]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Xs]):this.dispatchEvent(new Gs)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Xs,qs([a()],i.prototype,"tocNode",void 0),qs([a()],i.prototype,"disableContextInteractions",void 0),i}(Wi)){}var Ys=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Qs extends(ls(Js)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=qo.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 Ks,this.i18nProperties={feedbackMainTitle:vs.properties.topicFeedbackMainTitle(),ratingSectionTitle:vs.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:vs.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:vs.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new o(100),this.sendRatingDebouncer=new o(500),this.addStore(Kr)}render(){return this.map&&this.tocNode&&(this.editorMode||this.componentVisible)?nt`
1610
+ `}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(zi.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(zi.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,n,o;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===(o=null===(n=this.session)||void 0===n?void 0:n.profile)||void 0===o?void 0:o.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,n;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===(n=this.ratingSummary)||void 0===n?void 0:n.type,t))}catch{this.dispatchEvent(new Rt({type:"error",message:ys.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Rt({type:"info",message:ms.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new Rt({type:"info",message:ms.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Rt({type:"info",message:ys.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Rt({type:"error",message:ys.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}Gs.elementDefinitions={"ft-reader-feedback":Ks},qs([Ui({store:Zr.name})],Gs.prototype,"session",void 0),qs([Ui({store:"reader"})],Gs.prototype,"map",void 0),qs([Ui({store:Zr.name})],Gs.prototype,"editorMode",void 0),qs([Ui({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Gs.prototype,"configuration",void 0),qs([a()],Gs.prototype,"ratingSummary",void 0),qs([s({type:Boolean})],Gs.prototype,"hideTitle",void 0),qs([s()],Gs.prototype,"iconVariant",void 0),qs([s()],Gs.prototype,"emptyStarIcon",void 0),qs([s()],Gs.prototype,"filledStarIcon",void 0),qs([s()],Gs.prototype,"emptyLikeIcon",void 0),qs([s()],Gs.prototype,"filledLikeIcon",void 0),qs([s()],Gs.prototype,"emptyDislikeIcon",void 0),qs([s()],Gs.prototype,"filledDislikeIcon",void 0),qs([c("ft-reader-feedback")],Gs.prototype,"readerFeedback",void 0),qs([bs(Vs.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],Gs.prototype,"mailSubject",void 0);var Xs=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Js extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Ys=Symbol("registerInterval");class Qs extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Ys]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Ys]):this.dispatchEvent(new Js)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Ys,Xs([a()],i.prototype,"tocNode",void 0),Xs([a()],i.prototype,"disableContextInteractions",void 0),i}(Vi)){}var ta=function(t,e,i,n){for(var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ea extends(hs(Qs)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Xo.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 Zs,this.i18nProperties={feedbackMainTitle:ys.properties.topicFeedbackMainTitle(),ratingSectionTitle:ys.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:ys.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:ys.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new o(100),this.sendRatingDebouncer=new o(500),this.addStore(Zr)}render(){return this.map&&this.tocNode&&(this.editorMode||this.componentVisible)?nt`
1610
1611
  <ft-reader-feedback
1611
1612
  .i18nProperties=${this.i18nProperties}
1612
1613
  ?ratingAllowed=${this.tocNode.hasRating}
@@ -1632,4 +1633,4 @@ const{I:Ar}=xt,Nr=()=>document.createComment(""),jr=(t,e,i)=>{var n;const o=t._$
1632
1633
  display: none !important;
1633
1634
  }
1634
1635
  </style>
1635
- `}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Li.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(Li.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,n,o;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===(o=null===(n=this.session)||void 0===n?void 0:n.profile)||void 0===o?void 0:o.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,n;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===(n=this.ratingSummary)||void 0===n?void 0:n.type,t))}catch{this.dispatchEvent(new Rt({type:"error",message:vs.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Rt({type:"info",message:ys.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 Rt({type:"info",message:vs.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Rt({type:"info",message:ys.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Rt({type:"error",message:vs.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}Qs.elementDefinitions={"ft-reader-feedback":Hs},Ys([Ui({store:Kr.name})],Qs.prototype,"session",void 0),Ys([Ui({store:"reader"})],Qs.prototype,"map",void 0),Ys([Ui({store:Kr.name})],Qs.prototype,"editorMode",void 0),Ys([Ui({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Qs.prototype,"configuration",void 0),Ys([a()],Qs.prototype,"ratingSummary",void 0),Ys([s({type:Boolean})],Qs.prototype,"hideTitle",void 0),Ys([s()],Qs.prototype,"iconVariant",void 0),Ys([s()],Qs.prototype,"emptyStarIcon",void 0),Ys([s()],Qs.prototype,"filledStarIcon",void 0),Ys([s()],Qs.prototype,"emptyLikeIcon",void 0),Ys([s()],Qs.prototype,"filledLikeIcon",void 0),Ys([s()],Qs.prototype,"emptyDislikeIcon",void 0),Ys([s()],Qs.prototype,"filledDislikeIcon",void 0),Ys([c("ft-reader-feedback")],Qs.prototype,"readerFeedback",void 0),Ys([ps(Ws.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]})))],Qs.prototype,"mailSubject",void 0),b("ft-reader-map-feedback")(Zs),b("ft-reader-topic-feedback")(Qs),t.FtReaderFeedbackCssVariables=ho,t.FtReaderMapFeedback=Zs,t.FtReaderTopicFeedback=Qs,t.styles=uo}({});
1636
+ `}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(zi.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(zi.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,n,o;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===(o=null===(n=this.session)||void 0===n?void 0:n.profile)||void 0===o?void 0:o.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,n;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===(n=this.ratingSummary)||void 0===n?void 0:n.type,t))}catch{this.dispatchEvent(new Rt({type:"error",message:ys.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Rt({type:"info",message:ms.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 Rt({type:"info",message:ys.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Rt({type:"info",message:ms.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Rt({type:"error",message:ys.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}ea.elementDefinitions={"ft-reader-feedback":Ks},ta([Ui({store:Zr.name})],ea.prototype,"session",void 0),ta([Ui({store:"reader"})],ea.prototype,"map",void 0),ta([Ui({store:Zr.name})],ea.prototype,"editorMode",void 0),ta([Ui({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],ea.prototype,"configuration",void 0),ta([a()],ea.prototype,"ratingSummary",void 0),ta([s({type:Boolean})],ea.prototype,"hideTitle",void 0),ta([s()],ea.prototype,"iconVariant",void 0),ta([s()],ea.prototype,"emptyStarIcon",void 0),ta([s()],ea.prototype,"filledStarIcon",void 0),ta([s()],ea.prototype,"emptyLikeIcon",void 0),ta([s()],ea.prototype,"filledLikeIcon",void 0),ta([s()],ea.prototype,"emptyDislikeIcon",void 0),ta([s()],ea.prototype,"filledDislikeIcon",void 0),ta([c("ft-reader-feedback")],ea.prototype,"readerFeedback",void 0),ta([bs(Vs.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]})))],ea.prototype,"mailSubject",void 0),b("ft-reader-map-feedback")(Gs),b("ft-reader-topic-feedback")(ea),t.FtReaderFeedbackCssVariables=fo,t.FtReaderMapFeedback=Gs,t.FtReaderTopicFeedback=ea,t.styles=po}({});