@fluid-topics/ft-reader-search-in-document 1.1.9 → 1.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);u(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let f=o.call(r,t);f||(f=h(t),e.call(r,t,f)),this===window.customElements&&(a.set(i,l),l.standInClass=f);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)n.delete(t),d(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),i.set(e,o),e},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!l(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),l(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,i=r._getDefinition(e);return i?d(o,i):n.set(o,r),o}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n,i),o.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),o.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const e=this.getAttribute(i);o.call(this,i,t,e)}else n.call(this,i,r)})},p=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):p(o)},d=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),i.set(t,e),c=t;try{new e.elementClass}catch(t){p(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===i.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),i=e.get(r)||[];this[+o]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=i.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(is){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,t)}}}class e extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class o extends Promise{constructor(t){super(((o,r)=>t((t=>{this.isCanceled?r(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?r(new e("Promise has been canceled",void 0,t)):r(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const r=t=>new o(((e,o)=>t.then(e).catch(o)));class i{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 o&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const i=r(e());return this.content[t]=i,i.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);u(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let f=o.call(r,t);f||(f=h(t),e.call(r,t,f)),this===window.customElements&&(a.set(i,l),l.standInClass=f);const p=this._awaitingUpgrade.get(t);if(p){this._awaitingUpgrade.delete(t);for(const t of p)n.delete(t),d(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),i.set(e,o),e},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!l(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),l(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,i=r._getDefinition(e);return i?d(o,i):n.set(o,r),o}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},u=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n,i),o.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),o.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const e=this.getAttribute(i);o.call(this,i,t,e)}else n.call(this,i,r)})},p=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):p(o)},d=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),i.set(t,e),c=t;try{new e.elementClass}catch(t){p(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===i.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),i=e.get(r)||[];this[+o]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=i.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(as){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,t)}}}class e extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class o extends Promise{constructor(t){super(((o,r)=>t((t=>{this.isCanceled?r(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?r(new e("Promise has been canceled",void 0,t)):r(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const r=t=>new o(((e,o)=>t.then(e).catch(o)));class i{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 o&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const i=r(e());return this.content[t]=i,i.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2017 Google LLC
@@ -63,7 +63,7 @@ const E={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:S},$=(t=E,e,
63
63
  * @license
64
64
  * Copyright 2017 Google LLC
65
65
  * SPDX-License-Identifier: BSD-3-Clause
66
- */const B=globalThis,D=B.trustedTypes,K=D?D.createPolicy("lit-html",{createHTML:t=>t}):void 0,M="$lit$",T=`lit$${(Math.random()+"").slice(9)}$`,z="?"+T,Z=`<${z}>`,_=document,H=()=>_.createComment(""),G=t=>null===t||"object"!=typeof t&&"function"!=typeof t,q=Array.isArray,V=t=>q(t)||"function"==typeof t?.[Symbol.iterator],Y="[ \t\n\f\r]",X=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Q=/-->/g,J=/>/g,tt=RegExp(`>|${Y}(?:([^\\s"'>=/]+)(${Y}*=${Y}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),et=/'/g,ot=/"/g,rt=/^(?:script|style|textarea|title)$/i,it=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),nt=Symbol.for("lit-noChange"),at=Symbol.for("lit-nothing"),st=new WeakMap,ct=_.createTreeWalker(_,129);function lt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==K?K.createHTML(e):e}const ft=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":"",a=X;for(let e=0;e<o;e++){const o=t[e];let s,c,l=-1,f=0;for(;f<o.length&&(a.lastIndex=f,c=a.exec(o),null!==c);)f=a.lastIndex,a===X?"!--"===c[1]?a=Q:void 0!==c[1]?a=J:void 0!==c[2]?(rt.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=tt):void 0!==c[3]&&(a=tt):a===tt?">"===c[0]?(a=i??X,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?tt:'"'===c[3]?ot:et):a===ot||a===et?a=tt:a===Q||a===J?a=X:(a=tt,i=void 0);const h=a===tt&&t[e+1].startsWith("/>")?" ":"";n+=a===X?o+Z:l>=0?(r.push(s),o.slice(0,l)+M+o.slice(l)+T+h):o+T+(-2===l?e:h)}return[lt(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),r]};let ht=class t{constructor({strings:e,_$litType$:o},r){let i;this.parts=[];let n=0,a=0;const s=e.length-1,c=this.parts,[l,f]=ft(e,o);if(this.el=t.createElement(l,r),ct.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=ct.nextNode())&&c.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(M)){const e=f[a++],o=i.getAttribute(t).split(T),r=/([.?@])?(.*)/.exec(e);c.push({type:1,index:n,name:r[2],strings:o,ctor:"."===r[1]?gt:"?"===r[1]?bt:"@"===r[1]?mt:yt}),i.removeAttribute(t)}else t.startsWith(T)&&(c.push({type:6,index:n}),i.removeAttribute(t));if(rt.test(i.tagName)){const t=i.textContent.split(T),e=t.length-1;if(e>0){i.textContent=D?D.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],H()),ct.nextNode(),c.push({type:2,index:++n});i.append(t[e],H())}}}else if(8===i.nodeType)if(i.data===z)c.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(T,t+1));)c.push({type:7,index:n}),t+=T.length-1}n++}}static createElement(t,e){const o=_.createElement("template");return o.innerHTML=t,o}};function ut(t,e,o=t,r){if(e===nt)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=G(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=i:o._$Cl=i),void 0!==i&&(e=ut(t,i._$AS(t,e.values),i,r)),e}let pt=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){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??_).importNode(e,!0);ct.currentNode=r;let i=ct.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new dt(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new vt(i,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(i=ct.nextNode(),n++)}return ct.currentNode=_,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},dt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=at,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ut(this,t,e),G(t)?t===at||null==t||""===t?(this._$AH!==at&&this._$AR(),this._$AH=at):t!==this._$AH&&t!==nt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):V(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!==at&&G(this._$AH)?this._$AA.nextSibling.data=t:this.$(_.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ht.createElement(lt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new pt(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=st.get(t.strings);return void 0===e&&st.set(t.strings,e=new ht(t)),e}T(e){q(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,i=0;for(const n of e)i===o.length?o.push(r=new t(this.k(H()),this.k(H()),this,this.options)):r=o[i],r._$AI(n),i++;i<o.length&&(this._$AR(r&&r._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},yt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=at,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=at}_$AI(t,e=this,o,r){const i=this.strings;let n=!1;if(void 0===i)t=ut(this,t,e,0),n=!G(t)||t!==this._$AH&&t!==nt,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=ut(this,r[o+a],e,a),s===nt&&(s=this._$AH[a]),n||=!G(s)||s!==this._$AH[a],s===at?t=at:t!==at&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===at?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},gt=class extends yt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===at?void 0:t}},bt=class extends yt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==at)}},mt=class extends yt{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=ut(this,t,e,0)??at)===nt)return;const o=this._$AH,r=t===at&&o!==at||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==at&&(o===at||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},vt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ut(this,t)}};const xt={j:M,P:T,A:z,C:1,M:ft,L:pt,R:V,V:ut,D:dt,I:yt,H:bt,N:mt,U:gt,B:vt},Ot=B.litHtmlPolyfillSupport;Ot?.(ht,dt),(B.litHtmlVersions??=[]).push("3.1.0");
66
+ */const B=globalThis,K=B.trustedTypes,M=K?K.createPolicy("lit-html",{createHTML:t=>t}):void 0,T="$lit$",D=`lit$${(Math.random()+"").slice(9)}$`,z="?"+D,Z=`<${z}>`,_=document,H=()=>_.createComment(""),G=t=>null===t||"object"!=typeof t&&"function"!=typeof t,q=Array.isArray,V=t=>q(t)||"function"==typeof t?.[Symbol.iterator],Y="[ \t\n\f\r]",X=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Q=/-->/g,J=/>/g,tt=RegExp(`>|${Y}(?:([^\\s"'>=/]+)(${Y}*=${Y}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),et=/'/g,ot=/"/g,rt=/^(?:script|style|textarea|title)$/i,it=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),nt=Symbol.for("lit-noChange"),at=Symbol.for("lit-nothing"),st=new WeakMap,ct=_.createTreeWalker(_,129);function lt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==M?M.createHTML(e):e}const ft=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":"",a=X;for(let e=0;e<o;e++){const o=t[e];let s,c,l=-1,f=0;for(;f<o.length&&(a.lastIndex=f,c=a.exec(o),null!==c);)f=a.lastIndex,a===X?"!--"===c[1]?a=Q:void 0!==c[1]?a=J:void 0!==c[2]?(rt.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=tt):void 0!==c[3]&&(a=tt):a===tt?">"===c[0]?(a=i??X,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?tt:'"'===c[3]?ot:et):a===ot||a===et?a=tt:a===Q||a===J?a=X:(a=tt,i=void 0);const h=a===tt&&t[e+1].startsWith("/>")?" ":"";n+=a===X?o+Z:l>=0?(r.push(s),o.slice(0,l)+T+o.slice(l)+D+h):o+D+(-2===l?e:h)}return[lt(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),r]};let ht=class t{constructor({strings:e,_$litType$:o},r){let i;this.parts=[];let n=0,a=0;const s=e.length-1,c=this.parts,[l,f]=ft(e,o);if(this.el=t.createElement(l,r),ct.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=ct.nextNode())&&c.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(T)){const e=f[a++],o=i.getAttribute(t).split(D),r=/([.?@])?(.*)/.exec(e);c.push({type:1,index:n,name:r[2],strings:o,ctor:"."===r[1]?gt:"?"===r[1]?bt:"@"===r[1]?mt:yt}),i.removeAttribute(t)}else t.startsWith(D)&&(c.push({type:6,index:n}),i.removeAttribute(t));if(rt.test(i.tagName)){const t=i.textContent.split(D),e=t.length-1;if(e>0){i.textContent=K?K.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],H()),ct.nextNode(),c.push({type:2,index:++n});i.append(t[e],H())}}}else if(8===i.nodeType)if(i.data===z)c.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(D,t+1));)c.push({type:7,index:n}),t+=D.length-1}n++}}static createElement(t,e){const o=_.createElement("template");return o.innerHTML=t,o}};function ut(t,e,o=t,r){if(e===nt)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=G(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=i:o._$Cl=i),void 0!==i&&(e=ut(t,i._$AS(t,e.values),i,r)),e}let pt=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){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??_).importNode(e,!0);ct.currentNode=r;let i=ct.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new dt(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new vt(i,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(i=ct.nextNode(),n++)}return ct.currentNode=_,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},dt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=at,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ut(this,t,e),G(t)?t===at||null==t||""===t?(this._$AH!==at&&this._$AR(),this._$AH=at):t!==this._$AH&&t!==nt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):V(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!==at&&G(this._$AH)?this._$AA.nextSibling.data=t:this.$(_.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ht.createElement(lt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new pt(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=st.get(t.strings);return void 0===e&&st.set(t.strings,e=new ht(t)),e}T(e){q(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,i=0;for(const n of e)i===o.length?o.push(r=new t(this.k(H()),this.k(H()),this,this.options)):r=o[i],r._$AI(n),i++;i<o.length&&(this._$AR(r&&r._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},yt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=at,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=at}_$AI(t,e=this,o,r){const i=this.strings;let n=!1;if(void 0===i)t=ut(this,t,e,0),n=!G(t)||t!==this._$AH&&t!==nt,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=ut(this,r[o+a],e,a),s===nt&&(s=this._$AH[a]),n||=!G(s)||s!==this._$AH[a],s===at?t=at:t!==at&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===at?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},gt=class extends yt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===at?void 0:t}},bt=class extends yt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==at)}},mt=class extends yt{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=ut(this,t,e,0)??at)===nt)return;const o=this._$AH,r=t===at&&o!==at||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==at&&(o===at||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},vt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ut(this,t)}};const xt={j:T,P:D,A:z,C:1,M:ft,L:pt,R:V,V:ut,D:dt,I:yt,H:bt,N:mt,U:gt,B:vt},Ot=B.litHtmlPolyfillSupport;Ot?.(ht,dt),(B.litHtmlVersions??=[]).push("3.1.0");
67
67
  /**
68
68
  * @license
69
69
  * Copyright 2019 Google LLC
@@ -74,7 +74,7 @@ const wt=globalThis,St=wt.ShadowRoot&&(void 0===wt.ShadyCSS||wt.ShadyCSS.nativeS
74
74
  * @license
75
75
  * Copyright 2017 Google LLC
76
76
  * SPDX-License-Identifier: BSD-3-Clause
77
- */,{is:Ut,defineProperty:It,getOwnPropertyDescriptor:Lt,getOwnPropertyNames:At,getOwnPropertySymbols:Wt,getPrototypeOf:jt}=Object,Ft=globalThis,Pt=Ft.trustedTypes,Bt=Pt?Pt.emptyScript:"",Dt=Ft.reactiveElementPolyfillSupport,Kt=(t,e)=>t,Mt={toAttribute(t,e){switch(e){case Boolean:t=t?Bt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},Tt=(t,e)=>!Ut(t,e),zt={attribute:!0,type:String,converter:Mt,reflect:!1,hasChanged:Tt};Symbol.metadata??=Symbol("metadata"),Ft.litPropertyMetadata??=new WeakMap;let Zt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=zt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&It(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:i}=Lt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const n=r?.call(this);i.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??zt}static _$Ei(){if(this.hasOwnProperty(Kt("elementProperties")))return;const t=jt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Kt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Kt("properties"))){const t=this.properties,e=[...At(t),...Wt(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(kt(t))}else void 0!==t&&e.push(kt(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(St)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=wt.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const i=(void 0!==o.converter?.toAttribute?o.converter:Mt).toAttribute(e,o.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Mt;this._$Em=r,this[r]=i.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,r=!1,i){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Tt)(r?i:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};Zt.elementStyles=[],Zt.shadowRootOptions={mode:"open"},Zt[Kt("elementProperties")]=new Map,Zt[Kt("finalized")]=new Map,Dt?.({ReactiveElement:Zt}),(Ft.reactiveElementVersions??=[]).push("2.0.2");
77
+ */,{is:Ut,defineProperty:It,getOwnPropertyDescriptor:Lt,getOwnPropertyNames:At,getOwnPropertySymbols:Wt,getPrototypeOf:jt}=Object,Ft=globalThis,Pt=Ft.trustedTypes,Bt=Pt?Pt.emptyScript:"",Kt=Ft.reactiveElementPolyfillSupport,Mt=(t,e)=>t,Tt={toAttribute(t,e){switch(e){case Boolean:t=t?Bt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},Dt=(t,e)=>!Ut(t,e),zt={attribute:!0,type:String,converter:Tt,reflect:!1,hasChanged:Dt};Symbol.metadata??=Symbol("metadata"),Ft.litPropertyMetadata??=new WeakMap;let Zt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=zt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&It(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:i}=Lt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const n=r?.call(this);i.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??zt}static _$Ei(){if(this.hasOwnProperty(Mt("elementProperties")))return;const t=jt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Mt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Mt("properties"))){const t=this.properties,e=[...At(t),...Wt(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(kt(t))}else void 0!==t&&e.push(kt(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(St)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=wt.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const i=(void 0!==o.converter?.toAttribute?o.converter:Tt).toAttribute(e,o.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Tt;this._$Em=r,this[r]=i.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,r=!1,i){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Dt)(r?i:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};Zt.elementStyles=[],Zt.shadowRootOptions={mode:"open"},Zt[Mt("elementProperties")]=new Map,Zt[Mt("finalized")]=new Map,Kt?.({ReactiveElement:Zt}),(Ft.reactiveElementVersions??=[]).push("2.0.2");
78
78
  /**
79
79
  * @license
80
80
  * Copyright 2017 Google LLC
@@ -91,7 +91,7 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
91
91
  * @license
92
92
  * Copyright 2019 Google LLC
93
93
  * SPDX-License-Identifier: BSD-3-Clause
94
- */class Pe extends Ce{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Fe?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),r=je.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Be,De=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ke=Symbol("constructorPrototype"),Me=Symbol("constructorName"),Te=Symbol("exportpartsDebouncer");class ze extends Pe{constructor(){super(),this[Be]=new A(5),this[Me]=this.constructor.name,this[Ke]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Me]&&Object.setPrototypeOf(this,this[Ke])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Te].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,r,i,n,a;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const f=[...l.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Be=Te,De([R()],ze.prototype,"exportpartsPrefix",void 0),De([P([])],ze.prototype,"exportpartsPrefixes",void 0),De([R()],ze.prototype,"customStylesheet",void 0);const Ze=Re.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Rt`
94
+ */class Pe extends Ce{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Fe?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),r=je.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Be,Ke=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Me=Symbol("constructorPrototype"),Te=Symbol("constructorName"),De=Symbol("exportpartsDebouncer");class ze extends Pe{constructor(){super(),this[Be]=new A(5),this[Te]=this.constructor.name,this[Me]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Te]&&Object.setPrototypeOf(this,this[Me])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[De].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,r,i,n,a;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const f=[...l.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Be=De,Ke([R()],ze.prototype,"exportpartsPrefix",void 0),Ke([P([])],ze.prototype,"exportpartsPrefixes",void 0),Ke([R()],ze.prototype,"customStylesheet",void 0);const Ze=Re.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Rt`
95
95
  .highlight-html-match {
96
96
  background: ${Ze};
97
97
  }
@@ -127,7 +127,7 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
127
127
  display: inline-block;
128
128
  width: 0;
129
129
  }
130
- `;class qe{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;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 o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}const Ve=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!j(t,e),attribute:!1,...e};R(i)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};class Ye{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function Xe(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Qe,Je,to;const eo=Symbol("internalReduxEventsUnsubscribers"),oo=Symbol("internalStoresUnsubscribers"),ro=Symbol("internalStores");class io extends ze{constructor(){super(...arguments),this[Qe]=new Map,this[Je]=new Map,this[to]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[ro].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ro].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ro].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Xe(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[ro].delete(e)}setupStore(t,e){this[ro].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ro].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[oo].has(t.store):this[oo].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[oo].set(t,e.subscribe((()=>this.updateFromStores()))),Xe(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[eo].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[oo].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[eo].forEach((t=>t())),this[eo]=[]}unsubscribeFromStore(t){this[oo].has(t)&&this[oo].get(t)(),this[oo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function no(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ao(t){return!!t&&!!t[Go]}function so(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 o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===qo}(t)||Array.isArray(t)||!!t[Ho]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Ho])||po(t)||yo(t))}function co(t,e,o){void 0===o&&(o=!1),0===lo(t)?(o?Object.keys:Vo)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function lo(t){var e=t[Go];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:po(t)?2:yo(t)?3:0}function fo(t,e){return 2===lo(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function ho(t,e,o){var r=lo(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function uo(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function po(t){return To&&t instanceof Map}function yo(t){return zo&&t instanceof Set}function go(t){return t.o||t.t}function bo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Yo(t);delete e[Go];for(var o=Vo(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function mo(t,e){return void 0===e&&(e=!1),xo(t)||ao(t)||!so(t)||(lo(t)>1&&(t.set=t.add=t.clear=t.delete=vo),Object.freeze(t),e&&co(t,(function(t,e){return mo(e,!0)}),!0)),t}function vo(){no(2)}function xo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Oo(t){var e=Xo[t];return e||no(18,t),e}function wo(){return Ko}function So(t,e){e&&(Oo("Patches"),t.u=[],t.s=[],t.v=e)}function No(t){Co(t),t.p.forEach($o),t.p=null}function Co(t){t===Ko&&(Ko=t.l)}function Eo(t){return Ko={p:[],l:Ko,h:t,m:!0,_:0}}function $o(t){var e=t[Go];0===e.i||1===e.i?e.j():e.g=!0}function Ro(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||Oo("ES5").S(e,t,r),r?(o[Go].P&&(No(e),no(4)),so(t)&&(t=ko(e,t),e.l||Io(e,t)),e.u&&Oo("Patches").M(o[Go].t,t,e.u,e.s)):t=ko(e,o,[]),No(e),e.u&&e.v(e.u,e.s),t!==_o?t:void 0}function ko(t,e,o){if(xo(e))return e;var r=e[Go];if(!r)return co(e,(function(i,n){return Uo(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return Io(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=bo(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),co(n,(function(e,n){return Uo(t,r,i,e,n,o,a)})),Io(t,i,!1),o&&t.u&&Oo("Patches").N(r,o,t.u,t.s)}return r.o}function Uo(t,e,o,r,i,n,a){if(ao(i)){var s=ko(t,i,n&&e&&3!==e.i&&!fo(e.R,r)?n.concat(r):void 0);if(ho(o,r,s),!ao(s))return;t.m=!1}else a&&o.add(i);if(so(i)&&!xo(i)){if(!t.h.D&&t._<1)return;ko(t,i),e&&e.A.l||Io(t,i)}}function Io(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&mo(e,o)}function Lo(t,e){var o=t[Go];return(o?go(o):t)[e]}function Ao(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function Wo(t){t.P||(t.P=!0,t.l&&Wo(t.l))}function jo(t){t.o||(t.o=bo(t.t))}function Fo(t,e,o){var r=po(e)?Oo("MapSet").F(e,o):yo(e)?Oo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:wo(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=Qo;o&&(i=[r],n=Jo);var a=Proxy.revocable(i,n),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):Oo("ES5").J(e,o);return(o?o.A:wo()).p.push(r),r}function Po(t){return ao(t)||no(22,t),function t(e){if(!so(e))return e;var o,r=e[Go],i=lo(e);if(r){if(!r.P&&(r.i<4||!Oo("ES5").K(r)))return r.t;r.I=!0,o=Bo(e,i),r.I=!1}else o=Bo(e,i);return co(o,(function(e,i){r&&function(t,e){return 2===lo(t)?t.get(e):t[e]}(r.t,e)===i||ho(o,e,t(i))})),3===i?new Set(o):o}(t)}function Bo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return bo(t)}Qe=oo,Je=ro,to=eo,io.reduxProperties=new Map,io.reduxReactiveProperties=new Set,io.reduxEventListeners=new Map;var Do,Ko,Mo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),To="undefined"!=typeof Map,zo="undefined"!=typeof Set,Zo="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,_o=Mo?Symbol.for("immer-nothing"):((Do={})["immer-nothing"]=!0,Do),Ho=Mo?Symbol.for("immer-draftable"):"__$immer_draftable",Go=Mo?Symbol.for("immer-state"):"__$immer_state",qo=""+Object.prototype.constructor,Vo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Yo=Object.getOwnPropertyDescriptors||function(t){var e={};return Vo(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Xo={},Qo={get:function(t,e){if(e===Go)return t;var o=go(t);if(!fo(o,e))return function(t,e,o){var r,i=Ao(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!so(r)?r:r===Lo(t.t,e)?(jo(t),t.o[e]=Fo(t.A.h,r,t)):r},has:function(t,e){return e in go(t)},ownKeys:function(t){return Reflect.ownKeys(go(t))},set:function(t,e,o){var r=Ao(go(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=Lo(go(t),e),n=null==i?void 0:i[Go];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(uo(o,i)&&(void 0!==o||fo(t.t,e)))return!0;jo(t),Wo(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Lo(t.t,e)||e in t.t?(t.R[e]=!1,jo(t),Wo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=go(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){no(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){no(12)}},Jo={};co(Qo,(function(t,e){Jo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Jo.deleteProperty=function(t,e){return Jo.set.call(this,t,e,void 0)},Jo.set=function(t,e,o){return Qo.set.call(this,t[0],e,o,t[0])};var tr=function(){function t(t){var e=this;this.O=Zo,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&no(6),void 0!==r&&"function"!=typeof r&&no(7),so(t)){var s=Eo(e),c=Fo(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?No(s):Co(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return So(s,r),Ro(t,s)}),(function(t){throw No(s),t})):(So(s,r),Ro(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===_o&&(a=void 0),e.D&&mo(a,!0),r){var f=[],h=[];Oo("Patches").M(t,a,f,h),r(f,h)}return a}no(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"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){so(t)||no(8),ao(t)&&(t=Po(t));var e=Eo(this),o=Fo(this,t,void 0);return o[Go].C=!0,Co(e),o},e.finishDraft=function(t,e){var o=(t&&t[Go]).A;return So(o,e),Ro(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Zo&&no(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var i=Oo("Patches").$;return ao(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),er=new tr,or=er.produce;function rr(t){return rr="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},rr(t)}function ir(t){var e=function(t,e){if("object"!==rr(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==rr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===rr(e)?e:String(e)}function nr(t,e,o){return(e=ir(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ar(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function sr(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ar(Object(o),!0).forEach((function(e){nr(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ar(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function cr(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. "}er.produceWithPatches.bind(er),er.setAutoFreeze.bind(er),er.setUseProxies.bind(er),er.applyPatches.bind(er),er.createDraft.bind(er),er.finishDraft.bind(er);var lr="function"==typeof Symbol&&Symbol.observable||"@@observable",fr=function(){return Math.random().toString(36).substring(7).split("").join(".")},hr={INIT:"@@redux/INIT"+fr(),REPLACE:"@@redux/REPLACE"+fr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fr()}};function ur(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(cr(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(cr(1));return o(ur)(t,e)}if("function"!=typeof t)throw new Error(cr(2));var i=t,n=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(cr(3));return n}function h(t){if("function"!=typeof t)throw new Error(cr(4));if(c)throw new Error(cr(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(cr(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function u(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(cr(7));if(void 0===t.type)throw new Error(cr(8));if(c)throw new Error(cr(9));try{c=!0,n=i(n,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:hr.INIT}),(r={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(cr(10));i=t,u({type:hr.REPLACE})}})[lr]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(cr(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[lr]=function(){return this},t},r}function pr(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:hr.INIT}))throw new Error(cr(12));if(void 0===o(void 0,{type:hr.PROBE_UNKNOWN_ACTION()}))throw new Error(cr(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],h=l(f,e);if(void 0===h)throw e&&e.type,new Error(cr(14));i[c]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function dr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];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 yr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(cr(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=dr.apply(void 0,n)(o.dispatch),sr(sr({},o),{},{dispatch:r})}}}function gr(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var br=gr();br.withExtraArgument=gr;var mr,vr=br,xr=(mr=function(t,e){return mr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},mr(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 o(){this.constructor=t}mr(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Or=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},wr=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},Sr=Object.defineProperty,Nr=Object.defineProperties,Cr=Object.getOwnPropertyDescriptors,Er=Object.getOwnPropertySymbols,$r=Object.prototype.hasOwnProperty,Rr=Object.prototype.propertyIsEnumerable,kr=function(t,e,o){return e in t?Sr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ur=function(t,e){for(var o in e||(e={}))$r.call(e,o)&&kr(t,o,e[o]);if(Er)for(var r=0,i=Er(e);r<i.length;r++){o=i[r];Rr.call(e,o)&&kr(t,o,e[o])}return t},Ir=function(t,e){return Nr(t,Cr(e))},Lr="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?dr:dr.apply(null,arguments)};var Ar=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return xr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,wr([void 0],t[0].concat(this)))):new(e.bind.apply(e,wr([void 0],t.concat(this))))},e}(Array),Wr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return xr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,wr([void 0],t[0].concat(this)))):new(e.bind.apply(e,wr([void 0],t.concat(this))))},e}(Array);function jr(t){return so(t)?or(t,(function(){})):t}function Fr(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new Ar;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(vr.withExtraArgument(o.extraArgument)):r.push(vr));return r}(t)}}function Pr(t){var e,o=Fr(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,h=void 0===f?void 0:f,u=r.enhancers,p=void 0===u?void 0:u;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=pr(n)}var d=s;"function"==typeof d&&(d=d(o));var y=yr.apply(void 0,d),g=dr;l&&(g=Lr(Ur({trace:!1},"object"==typeof l&&l)));var b=new Wr(y),m=b;return Array.isArray(p)?m=wr([y],p):"function"==typeof p&&(m=p(b)),ur(e,h,g.apply(void 0,m))}function Br(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return Ur(Ur({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Dr(t){var e,o={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function Kr(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:jr(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Dr(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,c=e[2],l=void 0===c?void 0:c,f=Ur(Ur({},i),s);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?Dr(e):[e,o,r],a=n[0],s=n[1],c=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return jr(t())};else{var l=jr(t);i=function(){return l}}function f(t,e){void 0===t&&(t=i());var o=wr([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(ao(t))return void 0===(r=o(t,e))?t:r;if(so(t))return or(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}l&&t.addDefaultCase(l)}))}return n.forEach((function(t){var o,r,n=i[t],l=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,s[l]=o,c[t]=r?Br(l,r):Br(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var Mr=["name","message","stack","code"],Tr=function(t,e){this.payload=t,this.meta=e},zr=function(t,e){this.payload=t,this.meta=e},Zr=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Mr;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function _r(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=Br(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Ir(Ur({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=Br(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Ir(Ur({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Br(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||Zr)(t||"Rejected"),meta:Ir(Ur({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,c,l){var f,h=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),u=new a;function p(t){f=t,u.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,g,b,m;return Or(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:c,extra:l}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(i(h,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:h,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:h,signal:u.signal,abort:p,rejectWithValue:function(t,e){return new Tr(t,e)},fulfillWithValue:function(t,e){return new zr(t,e)}})).then((function(e){if(e instanceof Tr)throw e;return e instanceof zr?r(e.payload,h,t,e.meta):r(e,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Tr?n(null,h,t,m.payload,m.meta):n(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{i(y.next(t))}catch(t){e(t)}},r=function(t){try{i(y.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:p,requestId:h,arg:t,unwrap:function(){return d.then(_r)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Hr="listenerMiddleware";Br(Hr+"/add"),Br(Hr+"/removeAll"),Br(Hr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Go];return Qo.get(e,t)},set:function(e){var o=this[Go];Qo.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][Go];if(!i.P)switch(i.i){case 5:r(i)&&Wo(i);break;case 4:o(i)&&Wo(i)}}}function o(t){for(var e=t.t,o=t.k,r=Vo(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==Go){var a=e[n];if(void 0===a&&!fo(e,n))return!0;var s=o[n],c=s&&s[Go];if(c?c.t!==a:!uo(s,a))return!0}}var l=!!e[Go];return r.length!==Vo(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){Xo[t]||(Xo[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=Yo(o);delete n[Go];for(var a=Vo(n),s=0;s<a.length;s++){var c=a[s];n[c]=t(c,e||!!n[c].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:wo(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Go,{value:n,writable:!0}),i},S:function(t,o,i){i?ao(o)&&o[Go].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Go];if(o){var i=o.t,n=o.k,a=o.R,s=o.i;if(4===s)co(n,(function(e){e!==Go&&(void 0!==i[e]||fo(i,e)?a[e]||t(n[e]):(a[e]=!0,Wo(o)))})),co(i,(function(t){void 0!==n[t]||fo(n,t)||(a[t]=!1,Wo(o))}));else if(5===s){if(r(o)&&(Wo(o),a.length=!0),n.length<i.length)for(var c=n.length;c<i.length;c++)a[c]=!1;else for(var l=i.length;l<n.length;l++)a[l]=!0;for(var f=Math.min(n.length,i.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Gr{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(Xe(i))return i;if(null==r)return;const n=Kr({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Pr({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[r.name]=new Gr(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ye,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,i=t[r];return i?(...t)=>{const e=i(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]: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 qr=Symbol("elementInternals");var Vr,Yr,Xr;const Qr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Xr=null===(Yr=null===(Vr=window.safari)||void 0===Vr?void 0:Vr.pushNotification)||void 0===Yr?void 0:Yr.toString())&&void 0!==Xr?Xr:""),Jr=Re.extend("--ft-ripple-color","",We.colorContent),ti={color:Jr,backgroundColor:Re.extend("--ft-ripple-background-color","",Jr),opacityContentOnSurfacePressed:Re.external(We.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Re.external(We.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Re.external(We.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Re.external(We.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Re.create("--ft-ripple-border-radius","","SIZE","0px")},ei=Re.extend("--ft-ripple-color","",We.colorPrimary),oi=ei,ri=Re.extend("--ft-ripple-background-color","",ei),ii=Re.extend("--ft-ripple-color","",We.colorSecondary),ni=ii,ai=Re.extend("--ft-ripple-background-color","",ii),si=Rt`
130
+ `;class qe{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;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 o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}const Ve=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!j(t,e),attribute:!1,...e};R(i)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};class Ye{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function Xe(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Qe,Je,to;const eo=Symbol("internalReduxEventsUnsubscribers"),oo=Symbol("internalStoresUnsubscribers"),ro=Symbol("internalStores");class io extends ze{constructor(){super(...arguments),this[Qe]=new Map,this[Je]=new Map,this[to]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[ro].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ro].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ro].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Xe(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[ro].delete(e)}setupStore(t,e){this[ro].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ro].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[oo].has(t.store):this[oo].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[oo].set(t,e.subscribe((()=>this.updateFromStores()))),Xe(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[eo].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[oo].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[eo].forEach((t=>t())),this[eo]=[]}unsubscribeFromStore(t){this[oo].has(t)&&this[oo].get(t)(),this[oo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function no(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ao(t){return!!t&&!!t[Go]}function so(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 o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===qo}(t)||Array.isArray(t)||!!t[Ho]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Ho])||po(t)||yo(t))}function co(t,e,o){void 0===o&&(o=!1),0===lo(t)?(o?Object.keys:Vo)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function lo(t){var e=t[Go];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:po(t)?2:yo(t)?3:0}function fo(t,e){return 2===lo(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function ho(t,e,o){var r=lo(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function uo(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function po(t){return Do&&t instanceof Map}function yo(t){return zo&&t instanceof Set}function go(t){return t.o||t.t}function bo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Yo(t);delete e[Go];for(var o=Vo(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function mo(t,e){return void 0===e&&(e=!1),xo(t)||ao(t)||!so(t)||(lo(t)>1&&(t.set=t.add=t.clear=t.delete=vo),Object.freeze(t),e&&co(t,(function(t,e){return mo(e,!0)}),!0)),t}function vo(){no(2)}function xo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Oo(t){var e=Xo[t];return e||no(18,t),e}function wo(){return Mo}function So(t,e){e&&(Oo("Patches"),t.u=[],t.s=[],t.v=e)}function No(t){Co(t),t.p.forEach($o),t.p=null}function Co(t){t===Mo&&(Mo=t.l)}function Eo(t){return Mo={p:[],l:Mo,h:t,m:!0,_:0}}function $o(t){var e=t[Go];0===e.i||1===e.i?e.j():e.g=!0}function Ro(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||Oo("ES5").S(e,t,r),r?(o[Go].P&&(No(e),no(4)),so(t)&&(t=ko(e,t),e.l||Io(e,t)),e.u&&Oo("Patches").M(o[Go].t,t,e.u,e.s)):t=ko(e,o,[]),No(e),e.u&&e.v(e.u,e.s),t!==_o?t:void 0}function ko(t,e,o){if(xo(e))return e;var r=e[Go];if(!r)return co(e,(function(i,n){return Uo(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return Io(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=bo(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),co(n,(function(e,n){return Uo(t,r,i,e,n,o,a)})),Io(t,i,!1),o&&t.u&&Oo("Patches").N(r,o,t.u,t.s)}return r.o}function Uo(t,e,o,r,i,n,a){if(ao(i)){var s=ko(t,i,n&&e&&3!==e.i&&!fo(e.R,r)?n.concat(r):void 0);if(ho(o,r,s),!ao(s))return;t.m=!1}else a&&o.add(i);if(so(i)&&!xo(i)){if(!t.h.D&&t._<1)return;ko(t,i),e&&e.A.l||Io(t,i)}}function Io(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&mo(e,o)}function Lo(t,e){var o=t[Go];return(o?go(o):t)[e]}function Ao(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function Wo(t){t.P||(t.P=!0,t.l&&Wo(t.l))}function jo(t){t.o||(t.o=bo(t.t))}function Fo(t,e,o){var r=po(e)?Oo("MapSet").F(e,o):yo(e)?Oo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:wo(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=Qo;o&&(i=[r],n=Jo);var a=Proxy.revocable(i,n),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):Oo("ES5").J(e,o);return(o?o.A:wo()).p.push(r),r}function Po(t){return ao(t)||no(22,t),function t(e){if(!so(e))return e;var o,r=e[Go],i=lo(e);if(r){if(!r.P&&(r.i<4||!Oo("ES5").K(r)))return r.t;r.I=!0,o=Bo(e,i),r.I=!1}else o=Bo(e,i);return co(o,(function(e,i){r&&function(t,e){return 2===lo(t)?t.get(e):t[e]}(r.t,e)===i||ho(o,e,t(i))})),3===i?new Set(o):o}(t)}function Bo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return bo(t)}Qe=oo,Je=ro,to=eo,io.reduxProperties=new Map,io.reduxReactiveProperties=new Set,io.reduxEventListeners=new Map;var Ko,Mo,To="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Do="undefined"!=typeof Map,zo="undefined"!=typeof Set,Zo="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,_o=To?Symbol.for("immer-nothing"):((Ko={})["immer-nothing"]=!0,Ko),Ho=To?Symbol.for("immer-draftable"):"__$immer_draftable",Go=To?Symbol.for("immer-state"):"__$immer_state",qo=""+Object.prototype.constructor,Vo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Yo=Object.getOwnPropertyDescriptors||function(t){var e={};return Vo(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Xo={},Qo={get:function(t,e){if(e===Go)return t;var o=go(t);if(!fo(o,e))return function(t,e,o){var r,i=Ao(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!so(r)?r:r===Lo(t.t,e)?(jo(t),t.o[e]=Fo(t.A.h,r,t)):r},has:function(t,e){return e in go(t)},ownKeys:function(t){return Reflect.ownKeys(go(t))},set:function(t,e,o){var r=Ao(go(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=Lo(go(t),e),n=null==i?void 0:i[Go];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(uo(o,i)&&(void 0!==o||fo(t.t,e)))return!0;jo(t),Wo(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Lo(t.t,e)||e in t.t?(t.R[e]=!1,jo(t),Wo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=go(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){no(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){no(12)}},Jo={};co(Qo,(function(t,e){Jo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Jo.deleteProperty=function(t,e){return Jo.set.call(this,t,e,void 0)},Jo.set=function(t,e,o){return Qo.set.call(this,t[0],e,o,t[0])};var tr=function(){function t(t){var e=this;this.O=Zo,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&no(6),void 0!==r&&"function"!=typeof r&&no(7),so(t)){var s=Eo(e),c=Fo(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?No(s):Co(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return So(s,r),Ro(t,s)}),(function(t){throw No(s),t})):(So(s,r),Ro(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===_o&&(a=void 0),e.D&&mo(a,!0),r){var f=[],h=[];Oo("Patches").M(t,a,f,h),r(f,h)}return a}no(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"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){so(t)||no(8),ao(t)&&(t=Po(t));var e=Eo(this),o=Fo(this,t,void 0);return o[Go].C=!0,Co(e),o},e.finishDraft=function(t,e){var o=(t&&t[Go]).A;return So(o,e),Ro(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Zo&&no(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var i=Oo("Patches").$;return ao(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),er=new tr,or=er.produce;function rr(t){return rr="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},rr(t)}function ir(t){var e=function(t,e){if("object"!==rr(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==rr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===rr(e)?e:String(e)}function nr(t,e,o){return(e=ir(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ar(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function sr(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ar(Object(o),!0).forEach((function(e){nr(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ar(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function cr(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. "}er.produceWithPatches.bind(er),er.setAutoFreeze.bind(er),er.setUseProxies.bind(er),er.applyPatches.bind(er),er.createDraft.bind(er),er.finishDraft.bind(er);var lr="function"==typeof Symbol&&Symbol.observable||"@@observable",fr=function(){return Math.random().toString(36).substring(7).split("").join(".")},hr={INIT:"@@redux/INIT"+fr(),REPLACE:"@@redux/REPLACE"+fr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+fr()}};function ur(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(cr(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(cr(1));return o(ur)(t,e)}if("function"!=typeof t)throw new Error(cr(2));var i=t,n=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(cr(3));return n}function h(t){if("function"!=typeof t)throw new Error(cr(4));if(c)throw new Error(cr(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(cr(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function u(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(cr(7));if(void 0===t.type)throw new Error(cr(8));if(c)throw new Error(cr(9));try{c=!0,n=i(n,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return u({type:hr.INIT}),(r={dispatch:u,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(cr(10));i=t,u({type:hr.REPLACE})}})[lr]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(cr(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[lr]=function(){return this},t},r}function pr(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:hr.INIT}))throw new Error(cr(12));if(void 0===o(void 0,{type:hr.PROBE_UNKNOWN_ACTION()}))throw new Error(cr(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],h=l(f,e);if(void 0===h)throw e&&e.type,new Error(cr(14));i[c]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function dr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];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 yr(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(cr(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=dr.apply(void 0,n)(o.dispatch),sr(sr({},o),{},{dispatch:r})}}}function gr(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var br=gr();br.withExtraArgument=gr;var mr,vr=br,xr=(mr=function(t,e){return mr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},mr(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 o(){this.constructor=t}mr(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Or=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},wr=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},Sr=Object.defineProperty,Nr=Object.defineProperties,Cr=Object.getOwnPropertyDescriptors,Er=Object.getOwnPropertySymbols,$r=Object.prototype.hasOwnProperty,Rr=Object.prototype.propertyIsEnumerable,kr=function(t,e,o){return e in t?Sr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ur=function(t,e){for(var o in e||(e={}))$r.call(e,o)&&kr(t,o,e[o]);if(Er)for(var r=0,i=Er(e);r<i.length;r++){o=i[r];Rr.call(e,o)&&kr(t,o,e[o])}return t},Ir=function(t,e){return Nr(t,Cr(e))},Lr="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?dr:dr.apply(null,arguments)};var Ar=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return xr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,wr([void 0],t[0].concat(this)))):new(e.bind.apply(e,wr([void 0],t.concat(this))))},e}(Array),Wr=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return xr(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,wr([void 0],t[0].concat(this)))):new(e.bind.apply(e,wr([void 0],t.concat(this))))},e}(Array);function jr(t){return so(t)?or(t,(function(){})):t}function Fr(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new Ar;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(vr.withExtraArgument(o.extraArgument)):r.push(vr));return r}(t)}}function Pr(t){var e,o=Fr(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,h=void 0===f?void 0:f,u=r.enhancers,p=void 0===u?void 0:u;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=pr(n)}var d=s;"function"==typeof d&&(d=d(o));var y=yr.apply(void 0,d),g=dr;l&&(g=Lr(Ur({trace:!1},"object"==typeof l&&l)));var b=new Wr(y),m=b;return Array.isArray(p)?m=wr([y],p):"function"==typeof p&&(m=p(b)),ur(e,h,g.apply(void 0,m))}function Br(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return Ur(Ur({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Kr(t){var e,o={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function Mr(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:jr(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Kr(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,c=e[2],l=void 0===c?void 0:c,f=Ur(Ur({},i),s);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?Kr(e):[e,o,r],a=n[0],s=n[1],c=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return jr(t())};else{var l=jr(t);i=function(){return l}}function f(t,e){void 0===t&&(t=i());var o=wr([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(ao(t))return void 0===(r=o(t,e))?t:r;if(so(t))return or(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}l&&t.addDefaultCase(l)}))}return n.forEach((function(t){var o,r,n=i[t],l=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,s[l]=o,c[t]=r?Br(l,r):Br(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var Tr=["name","message","stack","code"],Dr=function(t,e){this.payload=t,this.meta=e},zr=function(t,e){this.payload=t,this.meta=e},Zr=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Tr;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function _r(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=Br(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Ir(Ur({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=Br(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Ir(Ur({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Br(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||Zr)(t||"Rejected"),meta:Ir(Ur({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,c,l){var f,h=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),u=new a;function p(t){f=t,u.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,g,b,m;return Or(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:c,extra:l}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||u.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return u.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(i(h,t,null==(d=null==o?void 0:o.getPendingMeta)?void 0:d.call(o,{requestId:h,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:h,signal:u.signal,abort:p,rejectWithValue:function(t,e){return new Dr(t,e)},fulfillWithValue:function(t,e){return new zr(t,e)}})).then((function(e){if(e instanceof Dr)throw e;return e instanceof zr?r(e.payload,h,t,e.meta):r(e,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Dr?n(null,h,t,m.payload,m.meta):n(m,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{i(y.next(t))}catch(t){e(t)}},r=function(t){try{i(y.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:p,requestId:h,arg:t,unwrap:function(){return d.then(_r)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Hr="listenerMiddleware";Br(Hr+"/add"),Br(Hr+"/removeAll"),Br(Hr+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Go];return Qo.get(e,t)},set:function(e){var o=this[Go];Qo.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][Go];if(!i.P)switch(i.i){case 5:r(i)&&Wo(i);break;case 4:o(i)&&Wo(i)}}}function o(t){for(var e=t.t,o=t.k,r=Vo(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==Go){var a=e[n];if(void 0===a&&!fo(e,n))return!0;var s=o[n],c=s&&s[Go];if(c?c.t!==a:!uo(s,a))return!0}}var l=!!e[Go];return r.length!==Vo(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){Xo[t]||(Xo[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=Yo(o);delete n[Go];for(var a=Vo(n),s=0;s<a.length;s++){var c=a[s];n[c]=t(c,e||!!n[c].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:wo(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Go,{value:n,writable:!0}),i},S:function(t,o,i){i?ao(o)&&o[Go].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Go];if(o){var i=o.t,n=o.k,a=o.R,s=o.i;if(4===s)co(n,(function(e){e!==Go&&(void 0!==i[e]||fo(i,e)?a[e]||t(n[e]):(a[e]=!0,Wo(o)))})),co(i,(function(t){void 0!==n[t]||fo(n,t)||(a[t]=!1,Wo(o))}));else if(5===s){if(r(o)&&(Wo(o),a.length=!0),n.length<i.length)for(var c=n.length;c<i.length;c++)a[c]=!1;else for(var l=i.length;l<n.length;l++)a[l]=!0;for(var f=Math.min(n.length,i.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Gr{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(Xe(i))return i;if(null==r)return;const n=Mr({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Pr({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[r.name]=new Gr(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ye,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,i=t[r];return i?(...t)=>{const e=i(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]: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 qr=Symbol("elementInternals");var Vr,Yr,Xr;const Qr=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Xr=null===(Yr=null===(Vr=window.safari)||void 0===Vr?void 0:Vr.pushNotification)||void 0===Yr?void 0:Yr.toString())&&void 0!==Xr?Xr:""),Jr=Re.extend("--ft-ripple-color","",We.colorContent),ti={color:Jr,backgroundColor:Re.extend("--ft-ripple-background-color","",Jr),opacityContentOnSurfacePressed:Re.external(We.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Re.external(We.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Re.external(We.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Re.external(We.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Re.create("--ft-ripple-border-radius","","SIZE","0px")},ei=Re.extend("--ft-ripple-color","",We.colorPrimary),oi=ei,ri=Re.extend("--ft-ripple-background-color","",ei),ii=Re.extend("--ft-ripple-color","",We.colorSecondary),ni=ii,ai=Re.extend("--ft-ripple-background-color","",ii),si=Rt`
131
131
  :host {
132
132
  display: contents;
133
133
  }
@@ -239,7 +239,7 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
239
239
  opacity: ${ti.opacityContentOnSurfacePressed};
240
240
  transform: translate(-50%, -50%) scale(1);
241
241
  }
242
- `,ci={padding:Re.create("--ft-card-padding","","SIZE","12px"),borderRadius:Re.extend("--ft-card-border-radius","",We.borderRadiusM),borderStyle:Re.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:Re.extend("--ft-card-border-color","",We.colorOutline),hoverBorderColor:Re.extend("--ft-card-hover-border-color","",We.colorPrimary),outlineStyle:Re.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:Re.create("--ft-card-outline-width","","SIZE","0"),outlineColor:Re.extend("--ft-card-outline-color","",We.colorPrimary),selectedOutlineStyle:Re.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:Re.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:Re.extend("--ft-card-selected-outline-color","",We.colorPrimary),selectedBorderRadius:Re.extend("--ft-card-selected-border-radius","",We.borderRadiusM),colorSurface:Re.external(We.colorSurface,"Design system"),colorOnSurfaceMedium:Re.external(We.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:Re.external(We.colorOnSurfaceHigh,"Design system"),elevation02:Re.external(We.elevation02,"Design system"),elevation04:Re.external(We.elevation04,"Design system")},li=Rt`
242
+ `,ci={padding:Re.create("--ft-card-padding","","SIZE","12px"),borderRadius:Re.extend("--ft-card-border-radius","",We.borderRadiusM),borderStyle:Re.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:Re.extend("--ft-card-border-color","",We.colorOutline),hoverBorderColor:Re.extend("--ft-card-hover-border-color","",We.colorPrimary),outlineStyle:Re.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:Re.create("--ft-card-outline-width","","SIZE","0"),outlineColor:Re.extend("--ft-card-outline-color","",We.colorPrimary),selectedOutlineStyle:Re.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:Re.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:Re.extend("--ft-card-selected-outline-color","",We.colorPrimary),selectedBorderRadius:Re.extend("--ft-card-selected-border-radius","",We.borderRadiusM),colorSurface:Re.extend("--ft-card-background-color","",We.colorSurface),colorOnSurfaceMedium:Re.extend("--ft-card-content-color","",We.colorOnSurfaceMedium),colorOnSurfaceHigh:Re.extend("--ft-card-title-color","",We.colorOnSurfaceHigh),elevation02:Re.extend("--ft-card-elevation","",We.elevation02),elevation04:Re.extend("--ft-card-selected-elevation","",We.elevation04)},li=Rt`
243
243
  :host {
244
244
  display: block;
245
245
  }
@@ -317,7 +317,7 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
317
317
  #action {
318
318
  grid-area: actions;
319
319
  }
320
- `;const fi=Re.extend("--ft-typography-font-family","",We.titleFont),hi=Re.extend("--ft-typography-font-family","",We.contentFont),ui={fontFamily:hi,fontSize:Re.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Re.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Re.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Re.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Re.create("--ft-typography-text-transform","","UNKNOWN","inherit")},pi=Re.extend("--ft-typography-title-font-family","",fi),di=Re.extend("--ft-typography-title-font-size","",ui.fontSize,"20px"),yi=Re.extend("--ft-typography-title-font-weight","",ui.fontWeight,"normal"),gi=Re.extend("--ft-typography-title-letter-spacing","",ui.letterSpacing,"0.15px"),bi=Re.extend("--ft-typography-title-line-height","",ui.lineHeight,"1.2"),mi=Re.extend("--ft-typography-title-text-transform","",ui.textTransform,"inherit"),vi=Re.extend("--ft-typography-title-dense-font-family","",fi),xi=Re.extend("--ft-typography-title-dense-font-size","",ui.fontSize,"14px"),Oi=Re.extend("--ft-typography-title-dense-font-weight","",ui.fontWeight,"normal"),wi=Re.extend("--ft-typography-title-dense-letter-spacing","",ui.letterSpacing,"0.105px"),Si=Re.extend("--ft-typography-title-dense-line-height","",ui.lineHeight,"1.7"),Ni=Re.extend("--ft-typography-title-dense-text-transform","",ui.textTransform,"inherit"),Ci=Re.extend("--ft-typography-subtitle1-font-family","",hi),Ei=Re.extend("--ft-typography-subtitle1-font-size","",ui.fontSize,"16px"),$i=Re.extend("--ft-typography-subtitle1-font-weight","",ui.fontWeight,"600"),Ri=Re.extend("--ft-typography-subtitle1-letter-spacing","",ui.letterSpacing,"0.144px"),ki=Re.extend("--ft-typography-subtitle1-line-height","",ui.lineHeight,"1.5"),Ui=Re.extend("--ft-typography-subtitle1-text-transform","",ui.textTransform,"inherit"),Ii=Re.extend("--ft-typography-subtitle2-font-family","",hi),Li=Re.extend("--ft-typography-subtitle2-font-size","",ui.fontSize,"14px"),Ai=Re.extend("--ft-typography-subtitle2-font-weight","",ui.fontWeight,"normal"),Wi=Re.extend("--ft-typography-subtitle2-letter-spacing","",ui.letterSpacing,"0.098px"),ji=Re.extend("--ft-typography-subtitle2-line-height","",ui.lineHeight,"1.7"),Fi=Re.extend("--ft-typography-subtitle2-text-transform","",ui.textTransform,"inherit"),Pi=Re.extend("--ft-typography-body1-font-family","",hi),Bi=Re.extend("--ft-typography-body1-font-size","",ui.fontSize,"16px"),Di=Re.extend("--ft-typography-body1-font-weight","",ui.fontWeight,"normal"),Ki=Re.extend("--ft-typography-body1-letter-spacing","",ui.letterSpacing,"0.496px"),Mi=Re.extend("--ft-typography-body1-line-height","",ui.lineHeight,"1.5"),Ti=Re.extend("--ft-typography-body1-text-transform","",ui.textTransform,"inherit"),zi=Re.extend("--ft-typography-body2-font-family","",hi),Zi=Re.extend("--ft-typography-body2-font-size","",ui.fontSize,"14px"),_i=Re.extend("--ft-typography-body2-font-weight","",ui.fontWeight,"normal"),Hi=Re.extend("--ft-typography-body2-letter-spacing","",ui.letterSpacing,"0.252px"),Gi=Re.extend("--ft-typography-body2-line-height","",ui.lineHeight,"1.4"),qi=Re.extend("--ft-typography-body2-text-transform","",ui.textTransform,"inherit"),Vi=Re.extend("--ft-typography-caption-font-family","",hi),Yi=Re.extend("--ft-typography-caption-font-size","",ui.fontSize,"12px"),Xi=Re.extend("--ft-typography-caption-font-weight","",ui.fontWeight,"normal"),Qi=Re.extend("--ft-typography-caption-letter-spacing","",ui.letterSpacing,"0.396px"),Ji=Re.extend("--ft-typography-caption-line-height","",ui.lineHeight,"1.33"),tn=Re.extend("--ft-typography-caption-text-transform","",ui.textTransform,"inherit"),en=Re.extend("--ft-typography-breadcrumb-font-family","",hi),on=Re.extend("--ft-typography-breadcrumb-font-size","",ui.fontSize,"10px"),rn=Re.extend("--ft-typography-breadcrumb-font-weight","",ui.fontWeight,"normal"),nn=Re.extend("--ft-typography-breadcrumb-letter-spacing","",ui.letterSpacing,"0.33px"),an=Re.extend("--ft-typography-breadcrumb-line-height","",ui.lineHeight,"1.6"),sn=Re.extend("--ft-typography-breadcrumb-text-transform","",ui.textTransform,"inherit"),cn=Re.extend("--ft-typography-overline-font-family","",hi),ln=Re.extend("--ft-typography-overline-font-size","",ui.fontSize,"10px"),fn=Re.extend("--ft-typography-overline-font-weight","",ui.fontWeight,"normal"),hn=Re.extend("--ft-typography-overline-letter-spacing","",ui.letterSpacing,"1.5px"),un=Re.extend("--ft-typography-overline-line-height","",ui.lineHeight,"1.6"),pn=Re.extend("--ft-typography-overline-text-transform","",ui.textTransform,"uppercase"),dn={fontFamily:Re.extend("--ft-typography-button-font-family","",hi),fontSize:Re.extend("--ft-typography-button-font-size","",ui.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-button-font-weight","",ui.fontWeight,"600"),letterSpacing:Re.extend("--ft-typography-button-letter-spacing","",ui.letterSpacing,"1.246px"),lineHeight:Re.extend("--ft-typography-button-line-height","",ui.lineHeight,"1.15"),textTransform:Re.extend("--ft-typography-button-text-transform","",ui.textTransform,"uppercase")},yn=Rt`
320
+ `;const fi=Re.extend("--ft-typography-font-family","",We.titleFont),hi=Re.extend("--ft-typography-font-family","",We.contentFont),ui={fontFamily:hi,fontSize:Re.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Re.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Re.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Re.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Re.create("--ft-typography-text-transform","","UNKNOWN","inherit")},pi=Re.extend("--ft-typography-title-font-family","",fi),di=Re.extend("--ft-typography-title-font-size","",ui.fontSize,"20px"),yi=Re.extend("--ft-typography-title-font-weight","",ui.fontWeight,"normal"),gi=Re.extend("--ft-typography-title-letter-spacing","",ui.letterSpacing,"0.15px"),bi=Re.extend("--ft-typography-title-line-height","",ui.lineHeight,"1.2"),mi=Re.extend("--ft-typography-title-text-transform","",ui.textTransform,"inherit"),vi=Re.extend("--ft-typography-title-dense-font-family","",fi),xi=Re.extend("--ft-typography-title-dense-font-size","",ui.fontSize,"14px"),Oi=Re.extend("--ft-typography-title-dense-font-weight","",ui.fontWeight,"normal"),wi=Re.extend("--ft-typography-title-dense-letter-spacing","",ui.letterSpacing,"0.105px"),Si=Re.extend("--ft-typography-title-dense-line-height","",ui.lineHeight,"1.7"),Ni=Re.extend("--ft-typography-title-dense-text-transform","",ui.textTransform,"inherit"),Ci=Re.extend("--ft-typography-subtitle1-font-family","",hi),Ei=Re.extend("--ft-typography-subtitle1-font-size","",ui.fontSize,"16px"),$i=Re.extend("--ft-typography-subtitle1-font-weight","",ui.fontWeight,"600"),Ri=Re.extend("--ft-typography-subtitle1-letter-spacing","",ui.letterSpacing,"0.144px"),ki=Re.extend("--ft-typography-subtitle1-line-height","",ui.lineHeight,"1.5"),Ui=Re.extend("--ft-typography-subtitle1-text-transform","",ui.textTransform,"inherit"),Ii=Re.extend("--ft-typography-subtitle2-font-family","",hi),Li=Re.extend("--ft-typography-subtitle2-font-size","",ui.fontSize,"14px"),Ai=Re.extend("--ft-typography-subtitle2-font-weight","",ui.fontWeight,"normal"),Wi=Re.extend("--ft-typography-subtitle2-letter-spacing","",ui.letterSpacing,"0.098px"),ji=Re.extend("--ft-typography-subtitle2-line-height","",ui.lineHeight,"1.7"),Fi=Re.extend("--ft-typography-subtitle2-text-transform","",ui.textTransform,"inherit"),Pi=Re.extend("--ft-typography-body1-font-family","",hi),Bi=Re.extend("--ft-typography-body1-font-size","",ui.fontSize,"16px"),Ki=Re.extend("--ft-typography-body1-font-weight","",ui.fontWeight,"normal"),Mi=Re.extend("--ft-typography-body1-letter-spacing","",ui.letterSpacing,"0.496px"),Ti=Re.extend("--ft-typography-body1-line-height","",ui.lineHeight,"1.5"),Di=Re.extend("--ft-typography-body1-text-transform","",ui.textTransform,"inherit"),zi=Re.extend("--ft-typography-body2-font-family","",hi),Zi=Re.extend("--ft-typography-body2-font-size","",ui.fontSize,"14px"),_i=Re.extend("--ft-typography-body2-font-weight","",ui.fontWeight,"normal"),Hi=Re.extend("--ft-typography-body2-letter-spacing","",ui.letterSpacing,"0.252px"),Gi=Re.extend("--ft-typography-body2-line-height","",ui.lineHeight,"1.4"),qi=Re.extend("--ft-typography-body2-text-transform","",ui.textTransform,"inherit"),Vi=Re.extend("--ft-typography-caption-font-family","",hi),Yi=Re.extend("--ft-typography-caption-font-size","",ui.fontSize,"12px"),Xi=Re.extend("--ft-typography-caption-font-weight","",ui.fontWeight,"normal"),Qi=Re.extend("--ft-typography-caption-letter-spacing","",ui.letterSpacing,"0.396px"),Ji=Re.extend("--ft-typography-caption-line-height","",ui.lineHeight,"1.33"),tn=Re.extend("--ft-typography-caption-text-transform","",ui.textTransform,"inherit"),en=Re.extend("--ft-typography-breadcrumb-font-family","",hi),on=Re.extend("--ft-typography-breadcrumb-font-size","",ui.fontSize,"10px"),rn=Re.extend("--ft-typography-breadcrumb-font-weight","",ui.fontWeight,"normal"),nn=Re.extend("--ft-typography-breadcrumb-letter-spacing","",ui.letterSpacing,"0.33px"),an=Re.extend("--ft-typography-breadcrumb-line-height","",ui.lineHeight,"1.6"),sn=Re.extend("--ft-typography-breadcrumb-text-transform","",ui.textTransform,"inherit"),cn=Re.extend("--ft-typography-overline-font-family","",hi),ln=Re.extend("--ft-typography-overline-font-size","",ui.fontSize,"10px"),fn=Re.extend("--ft-typography-overline-font-weight","",ui.fontWeight,"normal"),hn=Re.extend("--ft-typography-overline-letter-spacing","",ui.letterSpacing,"1.5px"),un=Re.extend("--ft-typography-overline-line-height","",ui.lineHeight,"1.6"),pn=Re.extend("--ft-typography-overline-text-transform","",ui.textTransform,"uppercase"),dn={fontFamily:Re.extend("--ft-typography-button-font-family","",hi),fontSize:Re.extend("--ft-typography-button-font-size","",ui.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-button-font-weight","",ui.fontWeight,"600"),letterSpacing:Re.extend("--ft-typography-button-letter-spacing","",ui.letterSpacing,"1.246px"),lineHeight:Re.extend("--ft-typography-button-line-height","",ui.lineHeight,"1.15"),textTransform:Re.extend("--ft-typography-button-text-transform","",ui.textTransform,"uppercase")},yn=Rt`
321
321
  .ft-typography--title {
322
322
  font-family: ${pi};
323
323
  font-size: ${di};
@@ -358,10 +358,10 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
358
358
  .ft-typography--body1 {
359
359
  font-family: ${Pi};
360
360
  font-size: ${Bi};
361
- font-weight: ${Di};
362
- letter-spacing: ${Ki};
363
- line-height: ${Mi};
364
- text-transform: ${Ti};
361
+ font-weight: ${Ki};
362
+ letter-spacing: ${Mi};
363
+ line-height: ${Ti};
364
+ text-transform: ${Di};
365
365
  }
366
366
  `,xn=Rt`
367
367
  .ft-typography--body2 {
@@ -538,7 +538,7 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
538
538
  .ft-icon--material {
539
539
  font-family: ${kn.materialFontFamily}, "Material Icons", sans-serif;
540
540
  }
541
- `,In=Re.extend("--ft-button-color","",We.colorPrimary),Ln={backgroundColor:Re.extend("--ft-button-background-color","",We.colorSurface),borderRadius:Re.extend("--ft-button-border-radius","",We.borderRadiusL),color:In,fontSize:Re.extend("--ft-button-font-size","",dn.fontSize),iconSize:Re.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Re.extend("--ft-button-ripple-color","",In),verticalPadding:Re.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Re.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Re.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Re.external(We.colorOpacityDisabled,"Design system")},An=Re.extend("--ft-button-primary-color","",Re.extend("--ft-button-color","",We.colorOnPrimary)),Wn={backgroundColor:Re.extend("--ft-button-primary-background-color","",Re.extend("--ft-button-background-color","",We.colorPrimary)),color:An,rippleColor:Re.extend("--ft-button-primary-ripple-color","",An)},jn=Re.extend("--ft-button-dense-border-radius","",Re.extend("--ft-button-border-radius","",We.borderRadiusM)),Fn=Re.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Pn=Re.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Bn=Re.create("--ft-button-dense-icon-padding","","SIZE","4px"),Dn=[Rt`
541
+ `,In=Re.extend("--ft-button-color","",We.colorPrimary),Ln={backgroundColor:Re.extend("--ft-button-background-color","",We.colorSurface),borderRadius:Re.extend("--ft-button-border-radius","",We.borderRadiusL),color:In,fontSize:Re.extend("--ft-button-font-size","",dn.fontSize),iconSize:Re.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Re.extend("--ft-button-ripple-color","",In),verticalPadding:Re.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Re.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Re.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Re.external(We.colorOpacityDisabled,"Design system")},An=Re.extend("--ft-button-primary-color","",Re.extend("--ft-button-color","",We.colorOnPrimary)),Wn={backgroundColor:Re.extend("--ft-button-primary-background-color","",Re.extend("--ft-button-background-color","",We.colorPrimary)),color:An,rippleColor:Re.extend("--ft-button-primary-ripple-color","",An)},jn=Re.extend("--ft-button-dense-border-radius","",Re.extend("--ft-button-border-radius","",We.borderRadiusM)),Fn=Re.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Pn=Re.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Bn=Re.create("--ft-button-dense-icon-padding","","SIZE","4px"),Kn=[Rt`
542
542
  :host {
543
543
  display: inline-block;
544
544
  max-width: 100%;
@@ -675,12 +675,12 @@ let Ce=class extends Zt{constructor(){super(...arguments),this.renderOptions={ho
675
675
  ${ke($n.size,Ln.iconSize)};
676
676
  ${ke($n.color,"var(--ft-button-internal-color)")};
677
677
  }
678
- `,_e],Kn=1,Mn=2,Tn=t=>(...e)=>({_$litDirective$:t,values:e});let zn=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
678
+ `,_e],Mn=1,Tn=2,Dn=t=>(...e)=>({_$litDirective$:t,values:e});let zn=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
679
679
  /**
680
680
  * @license
681
681
  * Copyright 2018 Google LLC
682
682
  * SPDX-License-Identifier: BSD-3-Clause
683
- */const Zn=Tn(class extends zn{constructor(t){if(super(t),t.type!==Kn||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const r=!!e[t];r===this.it.has(t)||this.st?.has(t)||(r?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return nt}});var _n=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Hn extends ze{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 A(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 A(10),this.moveRipple=t=>{var e,o;let{x:r,y:i}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-n.x:n.width/2),this.originY=Math.round(null!=i?i-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return fe`
683
+ */const Zn=Dn(class extends zn{constructor(t){if(super(t),t.type!==Mn||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const r=!!e[t];r===this.it.has(t)||this.st?.has(t)||(r?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return nt}});var _n=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Hn extends ze{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 A(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 A(10),this.moveRipple=t=>{var e,o;let{x:r,y:i}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-n.x:n.width/2),this.originY=Math.round(null!=i?i-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return fe`
684
684
  <style>
685
685
  .ft-ripple .ft-ripple--effect {
686
686
  left: ${this.originX}px;
@@ -715,7 +715,7 @@ const Gn=Symbol.for(""),qn=t=>{if(t?.r===Gn)return t?._$litStatic$},Vn=t=>({_$li
715
715
  }
716
716
 
717
717
  .ft-tooltip {
718
- position: absolute;
718
+ position: fixed;
719
719
  box-sizing: border-box;
720
720
  overflow: hidden;
721
721
  width: max-content;
@@ -733,7 +733,7 @@ const Gn=Symbol.for(""),qn=t=>{if(t?.r===Gn)return t?._$litStatic$},Vn=t=>({_$li
733
733
  position: relative;
734
734
  word-break: break-word;
735
735
  }
736
- `,ra=["start","end"],ia=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ra[0],e+"-"+ra[1])),[]),na=Math.min,aa=Math.max,sa=Math.round,ca=t=>({x:t,y:t}),la={left:"right",right:"left",bottom:"top",top:"bottom"},fa={start:"end",end:"start"};function ha(t,e,o){return aa(t,na(e,o))}function ua(t,e){return"function"==typeof t?t(e):t}function pa(t){return t.split("-")[0]}function da(t){return t.split("-")[1]}function ya(t){return"x"===t?"y":"x"}function ga(t){return"y"===t?"height":"width"}function ba(t){return["top","bottom"].includes(pa(t))?"y":"x"}function ma(t){return ya(ba(t))}function va(t){return t.replace(/left|right|bottom|top/g,(t=>la[t]))}function xa(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Oa(t,e,o){let{reference:r,floating:i}=t;const n=ba(e),a=ma(e),s=ga(a),c=pa(e),l="y"===n,f=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,u=r[s]/2-i[s]/2;let p;switch(c){case"top":p={x:f,y:r.y-i.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-i.width,y:h};break;default:p={x:r.x,y:r.y}}switch(da(e)){case"start":p[a]-=u*(o&&l?-1:1);break;case"end":p[a]+=u*(o&&l?-1:1)}return p}async function wa(t,e){var o;void 0===e&&(e={});const{x:r,y:i,platform:n,rects:a,elements:s,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:u=!1,padding:p=0}=ua(e,t),d=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(p),y=s[u?"floating"===h?"reference":"floating":h],g=xa(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(y)))||o?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:l,rootBoundary:f,strategy:c})),b="floating"===h?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},x=xa(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:c}):b);return{top:(g.top-x.top+d.top)/v.y,bottom:(x.bottom-g.bottom+d.bottom)/v.y,left:(g.left-x.left+d.left)/v.x,right:(x.right-g.right+d.right)/v.x}}function Sa(t,e,o){return(t?[...o.filter((e=>da(e)===t)),...o.filter((e=>da(e)!==t))]:o.filter((t=>pa(t)===t))).filter((o=>!t||(da(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>fa[t]))}(o)!==o)))}const Na=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,r,i;const{rects:n,middlewareData:a,placement:s,platform:c,elements:l}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:u=ia,autoAlignment:p=!0,...d}=ua(t,e),y=void 0!==h||u===ia?Sa(h||null,p,u):u,g=await wa(e,d),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=y[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const r=da(t),i=ma(t),n=ga(i);let a="x"===i?r===(o?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=va(a)),[a,va(a)]}(m,n,await(null==c.isRTL?void 0:c.isRTL(l.floating)));if(s!==m)return{reset:{placement:y[0]}};const x=[g[pa(m)],g[v[0]],g[v[1]]],O=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:x}],w=y[b+1];if(w)return{data:{index:b+1,overflows:O},reset:{placement:w}};const S=O.map((t=>{const e=da(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=S.filter((t=>t[2].slice(0,da(t[0])?2:3).every((t=>t<=0)))),C=(null==(i=N[0])?void 0:i[0])||S[0][0];return C!==s?{data:{index:b+1,overflows:O},reset:{placement:C}}:{}}}};function Ca(t){return Ra(t)?(t.nodeName||"").toLowerCase():"#document"}function Ea(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function $a(t){var e;return null==(e=(Ra(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Ra(t){return t instanceof Node||t instanceof Ea(t).Node}function ka(t){return t instanceof Element||t instanceof Ea(t).Element}function Ua(t){return t instanceof HTMLElement||t instanceof Ea(t).HTMLElement}function Ia(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Ea(t).ShadowRoot)}function La(t){const{overflow:e,overflowX:o,overflowY:r,display:i}=Pa(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+o)&&!["inline","contents"].includes(i)}function Aa(t){return["table","td","th"].includes(Ca(t))}function Wa(t){const e=ja(),o=Pa(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function ja(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Fa(t){return["html","body","#document"].includes(Ca(t))}function Pa(t){return Ea(t).getComputedStyle(t)}function Ba(t){return ka(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Da(t){if("html"===Ca(t))return t;const e=t.assignedSlot||t.parentNode||Ia(t)&&t.host||$a(t);return Ia(e)?e.host:e}function Ka(t){const e=Da(t);return Fa(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ua(e)&&La(e)?e:Ka(e)}function Ma(t,e,o){var r;void 0===e&&(e=[]),void 0===o&&(o=!0);const i=Ka(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=Ea(i);return n?e.concat(a,a.visualViewport||[],La(i)?i:[],a.frameElement&&o?Ma(a.frameElement):[]):e.concat(i,Ma(i,[],o))}function Ta(t){const e=Pa(t);let o=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=Ua(t),n=i?t.offsetWidth:o,a=i?t.offsetHeight:r,s=sa(o)!==n||sa(r)!==a;return s&&(o=n,r=a),{width:o,height:r,$:s}}function za(t){return ka(t)?t:t.contextElement}function Za(t){const e=za(t);if(!Ua(e))return ca(1);const o=e.getBoundingClientRect(),{width:r,height:i,$:n}=Ta(e);let a=(n?sa(o.width):o.width)/r,s=(n?sa(o.height):o.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const _a=ca(0);function Ha(t){const e=Ea(t);return ja()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:_a}function Ga(t,e,o,r){void 0===e&&(e=!1),void 0===o&&(o=!1);const i=t.getBoundingClientRect(),n=za(t);let a=ca(1);e&&(r?ka(r)&&(a=Za(r)):a=Za(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Ea(t))&&e}(n,o,r)?Ha(n):ca(0);let c=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,f=i.width/a.x,h=i.height/a.y;if(n){const t=Ea(n),e=r&&ka(r)?Ea(r):r;let o=t.frameElement;for(;o&&r&&e!==t;){const t=Za(o),e=o.getBoundingClientRect(),r=Pa(o),i=e.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,l*=t.y,f*=t.x,h*=t.y,c+=i,l+=n,o=Ea(o).frameElement}}return xa({width:f,height:h,x:c,y:l})}function qa(t){return Ga($a(t)).left+Ba(t).scrollLeft}function Va(t,e,o){let r;if("viewport"===e)r=function(t,e){const o=Ea(t),r=$a(t),i=o.visualViewport;let n=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){n=i.width,a=i.height;const t=ja();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:n,height:a,x:s,y:c}}(t,o);else if("document"===e)r=function(t){const e=$a(t),o=Ba(t),r=t.ownerDocument.body,i=aa(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=aa(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-o.scrollLeft+qa(t);const s=-o.scrollTop;return"rtl"===Pa(r).direction&&(a+=aa(e.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:s}}($a(t));else if(ka(e))r=function(t,e){const o=Ga(t,!0,"fixed"===e),r=o.top+t.clientTop,i=o.left+t.clientLeft,n=Ua(t)?Za(t):ca(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(e,o);else{const o=Ha(t);r={...e,x:e.x-o.x,y:e.y-o.y}}return xa(r)}function Ya(t,e){const o=Da(t);return!(o===e||!ka(o)||Fa(o))&&("fixed"===Pa(o).position||Ya(o,e))}function Xa(t,e,o){const r=Ua(e),i=$a(e),n="fixed"===o,a=Ga(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const c=ca(0);if(r||!r&&!n)if(("body"!==Ca(e)||La(i))&&(s=Ba(e)),r){const t=Ga(e,!0,n,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&(c.x=qa(i));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Qa(t,e){return Ua(t)&&"fixed"!==Pa(t).position?e?e(t):t.offsetParent:null}function Ja(t,e){const o=Ea(t);if(!Ua(t))return o;let r=Qa(t,e);for(;r&&Aa(r)&&"static"===Pa(r).position;)r=Qa(r,e);return r&&("html"===Ca(r)||"body"===Ca(r)&&"static"===Pa(r).position&&!Wa(r))?o:r||function(t){let e=Da(t);for(;Ua(e)&&!Fa(e);){if(Wa(e))return e;e=Da(e)}return null}(t)||o}const ts={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:r}=t;const i=Ua(o),n=$a(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=ca(1);const c=ca(0);if((i||!i&&"fixed"!==r)&&(("body"!==Ca(o)||La(n))&&(a=Ba(o)),Ua(o))){const t=Ga(o);s=Za(o),c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+c.x,y:e.y*s.y-a.scrollTop*s.y+c.y}},getDocumentElement:$a,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:r,strategy:i}=t;const n="clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let r=Ma(t,[],!1).filter((t=>ka(t)&&"body"!==Ca(t))),i=null;const n="fixed"===Pa(t).position;let a=n?Da(t):t;for(;ka(a)&&!Fa(a);){const e=Pa(a),o=Wa(a);o||"fixed"!==e.position||(i=null),(n?!o&&!i:!o&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||La(a)&&!o&&Ya(t,a))?r=r.filter((t=>t!==a)):i=e,a=Da(a)}return e.set(t,r),r}(e,this._c):[].concat(o),a=[...n,r],s=a[0],c=a.reduce(((t,o)=>{const r=Va(e,o,i);return t.top=aa(r.top,t.top),t.right=na(r.right,t.right),t.bottom=na(r.bottom,t.bottom),t.left=aa(r.left,t.left),t}),Va(e,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:Ja,getElementRects:async function(t){let{reference:e,floating:o,strategy:r}=t;const i=this.getOffsetParent||Ja,n=this.getDimensions;return{reference:Xa(e,await i(o),r),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Ta(t)},getScale:Za,isElement:ka,isRTL:function(t){return"rtl"===Pa(t).direction}},es=(t,e,o)=>{const r=new Map,i={platform:ts,...o},n={...i.platform,_c:r};return(async(t,e,o)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:h}=Oa(l,r,c),u=r,p={},d=0;for(let o=0;o<s.length;o++){const{name:n,fn:y}=s[o],{x:g,y:b,data:m,reset:v}=await y({x:f,y:h,initialPlacement:r,placement:u,strategy:i,middlewareData:p,rects:l,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,p={...p,[n]:{...p[n],...m}},v&&d<=50&&(d++,"object"==typeof v&&(v.placement&&(u=v.placement),v.rects&&(l=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:i}):v.rects),({x:f,y:h}=Oa(l,u,c))),o=-1)}return{x:f,y:h,placement:u,strategy:i,middlewareData:p}})(t,e,{...i,platform:n})};var os=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class rs extends ze{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 A,this.revealDebouncer=new A}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return fe`
736
+ `,ra=["start","end"],ia=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ra[0],e+"-"+ra[1])),[]),na=Math.min,aa=Math.max,sa=Math.round,ca=t=>({x:t,y:t}),la={left:"right",right:"left",bottom:"top",top:"bottom"},fa={start:"end",end:"start"};function ha(t,e,o){return aa(t,na(e,o))}function ua(t,e){return"function"==typeof t?t(e):t}function pa(t){return t.split("-")[0]}function da(t){return t.split("-")[1]}function ya(t){return"x"===t?"y":"x"}function ga(t){return"y"===t?"height":"width"}function ba(t){return["top","bottom"].includes(pa(t))?"y":"x"}function ma(t){return ya(ba(t))}function va(t){return t.replace(/left|right|bottom|top/g,(t=>la[t]))}function xa(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Oa(t,e,o){let{reference:r,floating:i}=t;const n=ba(e),a=ma(e),s=ga(a),c=pa(e),l="y"===n,f=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,u=r[s]/2-i[s]/2;let p;switch(c){case"top":p={x:f,y:r.y-i.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-i.width,y:h};break;default:p={x:r.x,y:r.y}}switch(da(e)){case"start":p[a]-=u*(o&&l?-1:1);break;case"end":p[a]+=u*(o&&l?-1:1)}return p}async function wa(t,e){var o;void 0===e&&(e={});const{x:r,y:i,platform:n,rects:a,elements:s,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:u=!1,padding:p=0}=ua(e,t),d=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(p),y=s[u?"floating"===h?"reference":"floating":h],g=xa(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(y)))||o?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:l,rootBoundary:f,strategy:c})),b="floating"===h?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},x=xa(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:c}):b);return{top:(g.top-x.top+d.top)/v.y,bottom:(x.bottom-g.bottom+d.bottom)/v.y,left:(g.left-x.left+d.left)/v.x,right:(x.right-g.right+d.right)/v.x}}function Sa(t,e,o){return(t?[...o.filter((e=>da(e)===t)),...o.filter((e=>da(e)!==t))]:o.filter((t=>pa(t)===t))).filter((o=>!t||(da(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>fa[t]))}(o)!==o)))}const Na=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,r,i;const{rects:n,middlewareData:a,placement:s,platform:c,elements:l}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:u=ia,autoAlignment:p=!0,...d}=ua(t,e),y=void 0!==h||u===ia?Sa(h||null,p,u):u,g=await wa(e,d),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=y[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const r=da(t),i=ma(t),n=ga(i);let a="x"===i?r===(o?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=va(a)),[a,va(a)]}(m,n,await(null==c.isRTL?void 0:c.isRTL(l.floating)));if(s!==m)return{reset:{placement:y[0]}};const x=[g[pa(m)],g[v[0]],g[v[1]]],O=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:x}],w=y[b+1];if(w)return{data:{index:b+1,overflows:O},reset:{placement:w}};const S=O.map((t=>{const e=da(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=S.filter((t=>t[2].slice(0,da(t[0])?2:3).every((t=>t<=0)))),C=(null==(i=N[0])?void 0:i[0])||S[0][0];return C!==s?{data:{index:b+1,overflows:O},reset:{placement:C}}:{}}}};function Ca(t){return Ra(t)?(t.nodeName||"").toLowerCase():"#document"}function Ea(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function $a(t){var e;return null==(e=(Ra(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Ra(t){return t instanceof Node||t instanceof Ea(t).Node}function ka(t){return t instanceof Element||t instanceof Ea(t).Element}function Ua(t){return t instanceof HTMLElement||t instanceof Ea(t).HTMLElement}function Ia(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Ea(t).ShadowRoot)}function La(t){const{overflow:e,overflowX:o,overflowY:r,display:i}=Pa(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+o)&&!["inline","contents"].includes(i)}function Aa(t){return["table","td","th"].includes(Ca(t))}function Wa(t){const e=ja(),o=Pa(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function ja(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Fa(t){return["html","body","#document"].includes(Ca(t))}function Pa(t){return Ea(t).getComputedStyle(t)}function Ba(t){return ka(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ka(t){if("html"===Ca(t))return t;const e=t.assignedSlot||t.parentNode||Ia(t)&&t.host||$a(t);return Ia(e)?e.host:e}function Ma(t){const e=Ka(t);return Fa(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ua(e)&&La(e)?e:Ma(e)}function Ta(t,e,o){var r;void 0===e&&(e=[]),void 0===o&&(o=!0);const i=Ma(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=Ea(i);return n?e.concat(a,a.visualViewport||[],La(i)?i:[],a.frameElement&&o?Ta(a.frameElement):[]):e.concat(i,Ta(i,[],o))}function Da(t){const e=Pa(t);let o=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=Ua(t),n=i?t.offsetWidth:o,a=i?t.offsetHeight:r,s=sa(o)!==n||sa(r)!==a;return s&&(o=n,r=a),{width:o,height:r,$:s}}function za(t){return ka(t)?t:t.contextElement}function Za(t){const e=za(t);if(!Ua(e))return ca(1);const o=e.getBoundingClientRect(),{width:r,height:i,$:n}=Da(e);let a=(n?sa(o.width):o.width)/r,s=(n?sa(o.height):o.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const _a=ca(0);function Ha(t){const e=Ea(t);return ja()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:_a}function Ga(t,e,o,r){void 0===e&&(e=!1),void 0===o&&(o=!1);const i=t.getBoundingClientRect(),n=za(t);let a=ca(1);e&&(r?ka(r)&&(a=Za(r)):a=Za(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Ea(t))&&e}(n,o,r)?Ha(n):ca(0);let c=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,f=i.width/a.x,h=i.height/a.y;if(n){const t=Ea(n),e=r&&ka(r)?Ea(r):r;let o=t.frameElement;for(;o&&r&&e!==t;){const t=Za(o),e=o.getBoundingClientRect(),r=Pa(o),i=e.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,l*=t.y,f*=t.x,h*=t.y,c+=i,l+=n,o=Ea(o).frameElement}}return xa({width:f,height:h,x:c,y:l})}function qa(t){return Ga($a(t)).left+Ba(t).scrollLeft}function Va(t,e,o){let r;if("viewport"===e)r=function(t,e){const o=Ea(t),r=$a(t),i=o.visualViewport;let n=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){n=i.width,a=i.height;const t=ja();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:n,height:a,x:s,y:c}}(t,o);else if("document"===e)r=function(t){const e=$a(t),o=Ba(t),r=t.ownerDocument.body,i=aa(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=aa(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-o.scrollLeft+qa(t);const s=-o.scrollTop;return"rtl"===Pa(r).direction&&(a+=aa(e.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:s}}($a(t));else if(ka(e))r=function(t,e){const o=Ga(t,!0,"fixed"===e),r=o.top+t.clientTop,i=o.left+t.clientLeft,n=Ua(t)?Za(t):ca(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(e,o);else{const o=Ha(t);r={...e,x:e.x-o.x,y:e.y-o.y}}return xa(r)}function Ya(t,e){const o=Ka(t);return!(o===e||!ka(o)||Fa(o))&&("fixed"===Pa(o).position||Ya(o,e))}function Xa(t,e,o){const r=Ua(e),i=$a(e),n="fixed"===o,a=Ga(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const c=ca(0);if(r||!r&&!n)if(("body"!==Ca(e)||La(i))&&(s=Ba(e)),r){const t=Ga(e,!0,n,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&(c.x=qa(i));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Qa(t,e){return Ua(t)&&"fixed"!==Pa(t).position?e?e(t):t.offsetParent:null}function Ja(t,e){const o=Ea(t);if(!Ua(t))return o;let r=Qa(t,e);for(;r&&Aa(r)&&"static"===Pa(r).position;)r=Qa(r,e);return r&&("html"===Ca(r)||"body"===Ca(r)&&"static"===Pa(r).position&&!Wa(r))?o:r||function(t){let e=Ka(t);for(;Ua(e)&&!Fa(e);){if(Wa(e))return e;e=Ka(e)}return null}(t)||o}const ts={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:r}=t;const i=Ua(o),n=$a(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=ca(1);const c=ca(0);if((i||!i&&"fixed"!==r)&&(("body"!==Ca(o)||La(n))&&(a=Ba(o)),Ua(o))){const t=Ga(o);s=Za(o),c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+c.x,y:e.y*s.y-a.scrollTop*s.y+c.y}},getDocumentElement:$a,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:r,strategy:i}=t;const n="clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let r=Ta(t,[],!1).filter((t=>ka(t)&&"body"!==Ca(t))),i=null;const n="fixed"===Pa(t).position;let a=n?Ka(t):t;for(;ka(a)&&!Fa(a);){const e=Pa(a),o=Wa(a);o||"fixed"!==e.position||(i=null),(n?!o&&!i:!o&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||La(a)&&!o&&Ya(t,a))?r=r.filter((t=>t!==a)):i=e,a=Ka(a)}return e.set(t,r),r}(e,this._c):[].concat(o),a=[...n,r],s=a[0],c=a.reduce(((t,o)=>{const r=Va(e,o,i);return t.top=aa(r.top,t.top),t.right=na(r.right,t.right),t.bottom=na(r.bottom,t.bottom),t.left=aa(r.left,t.left),t}),Va(e,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:Ja,getElementRects:async function(t){let{reference:e,floating:o,strategy:r}=t;const i=this.getOffsetParent||Ja,n=this.getDimensions;return{reference:Xa(e,await i(o),r),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return Da(t)},getScale:Za,isElement:ka,isRTL:function(t){return"rtl"===Pa(t).direction}},es=(t,e,o)=>{const r=new Map,i={platform:ts,...o},n={...i.platform,_c:r};return(async(t,e,o)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:h}=Oa(l,r,c),u=r,p={},d=0;for(let o=0;o<s.length;o++){const{name:n,fn:y}=s[o],{x:g,y:b,data:m,reset:v}=await y({x:f,y:h,initialPlacement:r,placement:u,strategy:i,middlewareData:p,rects:l,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,p={...p,[n]:{...p[n],...m}},v&&d<=50&&(d++,"object"==typeof v&&(v.placement&&(u=v.placement),v.rects&&(l=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:i}):v.rects),({x:f,y:h}=Oa(l,u,c))),o=-1)}return{x:f,y:h,placement:u,strategy:i,middlewareData:p}})(t,e,{...i,platform:n})};function os(t){return function(t){for(let e=t;e;e=rs(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=rs(t);e;e=rs(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function rs(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var is=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ns extends ze{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 A,this.revealDebouncer=new A}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return fe`
737
737
  <div part="container"
738
738
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
739
739
  @mouseenter=${this.onHover}
@@ -741,7 +741,7 @@ const Gn=Symbol.for(""),qn=t=>{if(t?.r===Gn)return t?._$litStatic$},Vn=t=>({_$li
741
741
  @focusin=${this.onHover}
742
742
  @focusout=${this.onOut}
743
743
  @touchstart=${this.onTouch}>
744
- <slot></slot>
744
+ <slot part="slot"></slot>
745
745
  <div part="tooltip" role="tooltip" inert
746
746
  class="ft-tooltip ft-tooltip--${this.validPosition}"
747
747
  ?hidden=${!this.visible}>
@@ -751,25 +751,25 @@ const Gn=Symbol.for(""),qn=t=>{if(t?.r===Gn)return t?._$litStatic$},Vn=t=>({_$li
751
751
  </div>
752
752
  </div>
753
753
  </div>
754
- `}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(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",es(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:r,placement:i}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...c}=ua(t,e),l={x:o,y:r},f=await wa(e,c),h=ba(pa(i)),u=ya(h);let p=l[u],d=l[h];if(n){const t="y"===u?"bottom":"right";p=ha(p+f["y"===u?"top":"left"],p,p-f[t])}if(a){const t="y"===h?"bottom":"right";d=ha(d+f["y"===h?"top":"left"],d,d-f[t])}const y=s.fn({...e,[u]:p,[h]:d});return{...y,data:{x:y.x-o,y:y.y-r}}}}),Na({allowedPlacements:[this.position]})]}).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),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))}}rs.elementDefinitions={"ft-typography":ta},rs.styles=oa,os([R()],rs.prototype,"text",void 0),os([R({type:Boolean})],rs.prototype,"manual",void 0),os([R({type:Boolean})],rs.prototype,"inline",void 0),os([R({type:Number})],rs.prototype,"delay",void 0),os([R()],rs.prototype,"position",void 0),os([function(t){return(e,o)=>{const{slot:r}=t??{},i="slot"+(r?`[name=${r}]`:":not([name])");return I(0,0,{get(){const e=this.renderRoot?.querySelector(i);return e?.assignedNodes(t)??[]}})}}()],rs.prototype,"slotNodes",void 0),os([L(".ft-tooltip--container")],rs.prototype,"container",void 0),os([L(".ft-tooltip")],rs.prototype,"tooltip",void 0),os([L(".ft-tooltip--content")],rs.prototype,"tooltipContent",void 0),os([k()],rs.prototype,"visible",void 0),os([U({passive:!0})],rs.prototype,"onTouch",null),os([U({passive:!0})],rs.prototype,"onHover",null),os([U({passive:!0})],rs.prototype,"onOut",null),F("ft-tooltip")(rs);
754
+ `}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(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",es(this.slottedElement,this.tooltip,{platform:{...ts,getOffsetParent:t=>ts.getOffsetParent(t,os)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:r,placement:i}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...c}=ua(t,e),l={x:o,y:r},f=await wa(e,c),h=ba(pa(i)),u=ya(h);let p=l[u],d=l[h];if(n){const t="y"===u?"bottom":"right";p=ha(p+f["y"===u?"top":"left"],p,p-f[t])}if(a){const t="y"===h?"bottom":"right";d=ha(d+f["y"===h?"top":"left"],d,d-f[t])}const y=s.fn({...e,[u]:p,[h]:d});return{...y,data:{x:y.x-o,y:y.y-r}}}}),Na({allowedPlacements:[this.position]})]}).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),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))}}ns.elementDefinitions={"ft-typography":ta},ns.styles=oa,is([R()],ns.prototype,"text",void 0),is([R({type:Boolean})],ns.prototype,"manual",void 0),is([R({type:Boolean})],ns.prototype,"inline",void 0),is([R({type:Number})],ns.prototype,"delay",void 0),is([R()],ns.prototype,"position",void 0),is([function(t){return(e,o)=>{const{slot:r}=t??{},i="slot"+(r?`[name=${r}]`:":not([name])");return I(0,0,{get(){const e=this.renderRoot?.querySelector(i);return e?.assignedNodes(t)??[]}})}}()],ns.prototype,"slotNodes",void 0),is([L(".ft-tooltip--container")],ns.prototype,"container",void 0),is([L(".ft-tooltip")],ns.prototype,"tooltip",void 0),is([L(".ft-tooltip--content")],ns.prototype,"tooltipContent",void 0),is([k()],ns.prototype,"visible",void 0),is([U({passive:!0})],ns.prototype,"onTouch",null),is([U({passive:!0})],ns.prototype,"onHover",null),is([U({passive:!0})],ns.prototype,"onOut",null),F("ft-tooltip")(ns);
755
755
  /**
756
756
  * @license
757
757
  * Copyright 2017 Google LLC
758
758
  * SPDX-License-Identifier: BSD-3-Clause
759
759
  */
760
- class is extends zn{constructor(t){if(super(t),this.et=at,t.type!==Mn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===at||null==t)return this.vt=void 0,this.et=t;if(t===nt)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}is.directiveName="unsafeHTML",is.resultType=1;const ns=Tn(is);var as,ss;!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;"}(as||(as={})),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;"}(ss||(ss={}));const cs=new Map([...["abw"].map((t=>[t,ss.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,ss.AUDIO])),...["avi"].map((t=>[t,ss.AVI])),...["chm","xhs"].map((t=>[t,ss.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,ss.CODE])),...["csv"].map((t=>[t,ss.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ss.DITA])),...["epub"].map((t=>[t,ss.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ss.EXCEL])),...["flac"].map((t=>[t,ss.FLAC])),...["gif"].map((t=>[t,ss.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ss.GZIP])),...["html","htm","xhtml"].map((t=>[t,ss.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,ss.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ss.JPEG])),...["json"].map((t=>[t,ss.JSON])),...["m4a","m4p"].map((t=>[t,ss.M4A])),...["mov","qt"].map((t=>[t,ss.MOV])),...["mp3"].map((t=>[t,ss.MP3])),...["mp4","m4v"].map((t=>[t,ss.MP4])),...["ogg","oga"].map((t=>[t,ss.OGG])),...["pdf","ps"].map((t=>[t,ss.PDF])),...["png"].map((t=>[t,ss.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ss.POWERPOINT])),...["rar"].map((t=>[t,ss.RAR])),...["stp"].map((t=>[t,ss.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ss.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,ss.VIDEO])),...["wav"].map((t=>[t,ss.WAV])),...["wma"].map((t=>[t,ss.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ss.WORD])),...["xml","xsl","rdf"].map((t=>[t,ss.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ss.YAML])),...["zip"].map((t=>[t,ss.ZIP]))]),ls=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);var fs;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(fs||(fs={}));var hs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class us extends ze{constructor(){super(...arguments),this.resolvedIcon=ue}render(){const t=this.variant&&Object.values(fs).includes(this.variant)?this.variant:fs.fluid_topics,e=t!==fs.material||!!this.value;return fe`
760
+ class as extends zn{constructor(t){if(super(t),this.et=at,t.type!==Tn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===at||null==t)return this.vt=void 0,this.et=t;if(t===nt)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}as.directiveName="unsafeHTML",as.resultType=1;const ss=Dn(as);var cs,ls;!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;"}(cs||(cs={})),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;"}(ls||(ls={}));const fs=new Map([...["abw"].map((t=>[t,ls.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,ls.AUDIO])),...["avi"].map((t=>[t,ls.AVI])),...["chm","xhs"].map((t=>[t,ls.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,ls.CODE])),...["csv"].map((t=>[t,ls.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ls.DITA])),...["epub"].map((t=>[t,ls.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ls.EXCEL])),...["flac"].map((t=>[t,ls.FLAC])),...["gif"].map((t=>[t,ls.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ls.GZIP])),...["html","htm","xhtml"].map((t=>[t,ls.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,ls.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ls.JPEG])),...["json"].map((t=>[t,ls.JSON])),...["m4a","m4p"].map((t=>[t,ls.M4A])),...["mov","qt"].map((t=>[t,ls.MOV])),...["mp3"].map((t=>[t,ls.MP3])),...["mp4","m4v"].map((t=>[t,ls.MP4])),...["ogg","oga"].map((t=>[t,ls.OGG])),...["pdf","ps"].map((t=>[t,ls.PDF])),...["png"].map((t=>[t,ls.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ls.POWERPOINT])),...["rar"].map((t=>[t,ls.RAR])),...["stp"].map((t=>[t,ls.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ls.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,ls.VIDEO])),...["wav"].map((t=>[t,ls.WAV])),...["wma"].map((t=>[t,ls.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ls.WORD])),...["xml","xsl","rdf"].map((t=>[t,ls.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ls.YAML])),...["zip"].map((t=>[t,ls.ZIP]))]),hs=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);var us;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(us||(us={}));var ps=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ds extends ze{constructor(){super(...arguments),this.resolvedIcon=ue}render(){const t=this.variant&&Object.values(us).includes(this.variant)?this.variant:us.fluid_topics,e=t!==us.material||!!this.value;return fe`
761
761
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
762
- ${ns(this.resolvedIcon)}
762
+ ${ss(this.resolvedIcon)}
763
763
  <slot ?hidden=${e}></slot>
764
764
  </i>
765
- `}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 o=this.value||this.textContent;switch(this.variant){case fs.file_format:this.resolvedIcon=null!==(t=ss[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case fs.material:this.resolvedIcon=this.value||ue;break;default:this.resolvedIcon=null!==(e=as[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}us.elementDefinitions={},us.styles=Un,hs([R()],us.prototype,"variant",void 0),hs([R()],us.prototype,"value",void 0),hs([k()],us.prototype,"resolvedIcon",void 0),hs([L("slot")],us.prototype,"slottedContent",void 0),F("ft-icon")(us);class ps extends ze{render(){return fe`
765
+ `}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 o=this.value||this.textContent;switch(this.variant){case us.file_format:this.resolvedIcon=null!==(t=ls[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case us.material:this.resolvedIcon=this.value||ue;break;default:this.resolvedIcon=null!==(e=cs[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ds.elementDefinitions={},ds.styles=Un,ps([R()],ds.prototype,"variant",void 0),ps([R()],ds.prototype,"value",void 0),ps([k()],ds.prototype,"resolvedIcon",void 0),ps([L("slot")],ds.prototype,"slottedContent",void 0),F("ft-icon")(ds);class ys extends ze{render(){return fe`
766
766
  <div class="ft-loader">
767
767
  <div></div>
768
768
  <div></div>
769
769
  <div></div>
770
770
  <div></div>
771
771
  </div>
772
- `}}ps.styles=Rn,F("ft-loader")(ps);var ds=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ys extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[qr].form}constructor(...t){super(t),this[qr]=this.attachInternals(),this[qr].role=e}setFormValue(t){this[qr].setFormValue(t)}}}(ze,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(fe`
772
+ `}}ys.styles=Rn,F("ft-loader")(ys);var gs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class bs extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[qr].form}constructor(...t){super(t),this[qr]=this.attachInternals(),this[qr].role=e}setFormValue(t){this[qr].setFormValue(t)}}}(ze,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(fe`
773
773
  <button part="button"
774
774
  class="${Zn(this.buttonClasses)}"
775
775
  aria-label="${this.getLabel()}"
@@ -792,7 +792,7 @@ class is extends zn{constructor(t){if(super(t),this.et=at,t.type!==Mn)throw Erro
792
792
  </ft-tooltip>
793
793
  `:t}resolveIcon(){return this.loading?fe`
794
794
  <ft-loader part="loader icon"></ft-loader> `:this.icon?fe`
795
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ue}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}}ys.elementDefinitions={"ft-ripple":Hn,"ft-tooltip":rs,"ft-typography":ta,"ft-icon":us,"ft-loader":ps},ds([R({type:String,reflect:!0})],ys.prototype,"role",void 0),ds([R()],ys.prototype,"type",void 0),ds([R({type:Boolean})],ys.prototype,"disabled",void 0),ds([R()],ys.prototype,"label",void 0),ds([R()],ys.prototype,"icon",void 0),ds([R()],ys.prototype,"iconVariant",void 0),ds([R({type:Boolean})],ys.prototype,"trailingIcon",void 0),ds([R({type:Boolean})],ys.prototype,"loading",void 0),ds([R()],ys.prototype,"tooltipPosition",void 0),ds([R({type:Boolean})],ys.prototype,"hideTooltip",void 0),ds([R({type:Boolean})],ys.prototype,"forceTooltip",void 0),ds([L(".ft-button")],ys.prototype,"button",void 0),ds([L(".ft-button--label slot")],ys.prototype,"slottedContent",void 0);var gs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class bs extends ys{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}bs.styles=[Ge,Dn],gs([R({type:Boolean})],bs.prototype,"primary",void 0),gs([R({type:Boolean})],bs.prototype,"outlined",void 0),gs([R({type:Boolean})],bs.prototype,"dense",void 0),gs([R({type:Boolean})],bs.prototype,"round",void 0);const ms=[Rt`
795
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ue}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}}bs.elementDefinitions={"ft-ripple":Hn,"ft-tooltip":ns,"ft-typography":ta,"ft-icon":ds,"ft-loader":ys},gs([R({type:String,reflect:!0})],bs.prototype,"role",void 0),gs([R()],bs.prototype,"type",void 0),gs([R({type:Boolean})],bs.prototype,"disabled",void 0),gs([R()],bs.prototype,"label",void 0),gs([R()],bs.prototype,"icon",void 0),gs([R()],bs.prototype,"iconVariant",void 0),gs([R({type:Boolean})],bs.prototype,"trailingIcon",void 0),gs([R({type:Boolean})],bs.prototype,"loading",void 0),gs([R()],bs.prototype,"tooltipPosition",void 0),gs([R({type:Boolean})],bs.prototype,"hideTooltip",void 0),gs([R({type:Boolean})],bs.prototype,"forceTooltip",void 0),gs([L(".ft-button")],bs.prototype,"button",void 0),gs([L(".ft-button--label slot")],bs.prototype,"slottedContent",void 0);var ms=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class vs extends bs{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}vs.styles=[Ge,Kn],ms([R({type:Boolean})],vs.prototype,"primary",void 0),ms([R({type:Boolean})],vs.prototype,"outlined",void 0),ms([R({type:Boolean})],vs.prototype,"dense",void 0),ms([R({type:Boolean})],vs.prototype,"round",void 0);const xs=[Rt`
796
796
  :host {
797
797
  display: inline-block;
798
798
  max-width: 100%;
@@ -1010,9 +1010,11 @@ class is extends zn{constructor(t){if(super(t),this.et=at,t.type!==Mn)throw Erro
1010
1010
  width: ${Ae.smallIconOnlyWidth};
1011
1011
  padding: unset;
1012
1012
  }
1013
- `,_e];var vs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class xs extends ys{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Qn.caption1medium:Qn.body2medium}}xs.styles=[Ge,ms],vs([R({type:Boolean})],xs.prototype,"primary",void 0),vs([R({type:Boolean})],xs.prototype,"secondary",void 0),vs([R({type:Boolean})],xs.prototype,"tertiary",void 0),vs([R({type:Boolean})],xs.prototype,"neutral",void 0),vs([R({type:Boolean})],xs.prototype,"small",void 0),F("ft-button")(bs),F("ftds-button")(xs);const Os={height:Re.create("--ft-search-input-height","","SIZE","38px"),borderRadius:Re.extend("--ft-search-input-border-radius","",We.borderRadiusS),desktopFiltersHeight:Re.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:Re.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:Re.external(We.colorSurface,"Design system"),colorOnSurface:Re.external(We.colorOnSurface,"Design system"),colorOnSurfaceMedium:Re.external(We.colorOnSurfaceMedium,"Design system"),colorOutline:Re.external(We.colorOutline,"Design system"),colorPrimary:Re.external(We.colorPrimary,"Design system"),elevation02:Re.external(We.elevation02,"Design system"),buttonColor:Re.external(Ln.color,"Button"),buttonRippleColor:Re.external(Ln.rippleColor,"Button")},ws=Rt`
1013
+ `,_e];var Os=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ws extends bs{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Qn.caption1medium:Qn.body2medium}}ws.styles=[Ge,xs],Os([R({type:Boolean})],ws.prototype,"primary",void 0),Os([R({type:Boolean})],ws.prototype,"secondary",void 0),Os([R({type:Boolean})],ws.prototype,"tertiary",void 0),Os([R({type:Boolean})],ws.prototype,"neutral",void 0),Os([R({type:Boolean})],ws.prototype,"small",void 0),F("ft-button")(vs),F("ftds-button")(ws);const Ss={height:Re.create("--ft-search-input-height","","SIZE","38px"),borderRadius:Re.extend("--ft-search-input-border-radius","",We.borderRadiusS),desktopFiltersHeight:Re.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:Re.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:Re.extend("--ft-search-input-background-color","",We.colorSurface),colorOnSurface:Re.extend("--ft-search-input-color","",We.colorOnSurface),colorOnSurfaceMedium:Re.extend("--ft-search-input-placeholder-color","",We.colorOnSurfaceMedium),colorOutline:Re.extend("--ft-search-input-outline-color","",We.colorOutline),elevation02:Re.extend("--ft-search-input-elevation","",We.elevation02),focusOutlineColor:Re.extend("--ft-search-input-focused-outline-color","",We.colorPrimary),buttonColor:Re.extend("--ft-search-input-button-color","",We.colorPrimary),buttonRippleColor:Re.extend("--ft-search-input-button-ripple-color","",We.colorPrimary)},Ns=Rt`
1014
1014
  * {
1015
1015
  box-sizing: border-box;
1016
+ ${ke(Ln.color,Ss.buttonColor)};
1017
+ ${ke(Ln.rippleColor,Ss.buttonRippleColor)};
1016
1018
  }
1017
1019
 
1018
1020
  .ft-search-input {
@@ -1020,18 +1022,18 @@ class is extends zn{constructor(t){if(super(t),this.et=at,t.type!==Mn)throw Erro
1020
1022
  display: flex;
1021
1023
  flex-direction: row;
1022
1024
  align-items: center;
1023
- height: ${Os.height};
1025
+ height: ${Ss.height};
1024
1026
 
1025
- background: ${Os.colorSurface};
1026
- border: 1px solid ${Os.colorOutline};
1027
- border-radius: ${Os.borderRadius};
1027
+ background: ${Ss.colorSurface};
1028
+ border: 1px solid ${Ss.colorOutline};
1029
+ border-radius: ${Ss.borderRadius};
1028
1030
  }
1029
1031
 
1030
1032
  .ft-search-input--input-container {
1031
- flex-grow: 1;
1032
- flex-shrink: 1;
1033
1033
  position: relative;
1034
+ flex: 1;
1034
1035
  height: calc(100% - 2px);
1036
+ min-width: 0;
1035
1037
  }
1036
1038
 
1037
1039
  .ft-search-input--input-outline {
@@ -1039,23 +1041,24 @@ class is extends zn{constructor(t){if(super(t),this.et=at,t.type!==Mn)throw Erro
1039
1041
  width: 100%;
1040
1042
  display: grid;
1041
1043
  padding: 0 8px;
1042
- border-radius: ${Os.borderRadius};
1044
+ border-radius: ${Ss.borderRadius};
1043
1045
  }
1044
1046
 
1045
1047
  .ft-search-input--input-container:focus-within .ft-search-input--input-outline {
1046
- outline: 2px solid ${Os.colorPrimary};
1048
+ outline: 2px solid ${Ss.focusOutlineColor};
1047
1049
  }
1048
1050
 
1049
1051
  .ft-search-input--input {
1050
1052
  height: 100%;
1053
+ width: 100%;
1051
1054
  border: none;
1052
1055
  background-color: transparent;
1053
- color: ${Os.colorOnSurface};
1056
+ color: ${Ss.colorOnSurface};
1054
1057
  outline: none;
1055
1058
  }
1056
1059
 
1057
1060
  .ft-search-input--input::placeholder {
1058
- color: ${Os.colorOnSurfaceMedium};
1061
+ color: ${Ss.colorOnSurfaceMedium};
1059
1062
  }
1060
1063
 
1061
1064
  .ft-search-input--actions {
@@ -1065,7 +1068,7 @@ class is extends zn{constructor(t){if(super(t),this.et=at,t.type!==Mn)throw Erro
1065
1068
  align-items: center;
1066
1069
  height: 100%;
1067
1070
 
1068
- ${ke(ea.zIndex,`calc(${Os.floatingZIndex} + 1)`)};
1071
+ ${ke(ea.zIndex,`calc(${Ss.floatingZIndex} + 1)`)};
1069
1072
  }
1070
1073
 
1071
1074
  .ft-search-input > ft-button,
@@ -1089,19 +1092,19 @@ class is extends zn{constructor(t){if(super(t),this.et=at,t.type!==Mn)throw Erro
1089
1092
 
1090
1093
  .ft-search-input--separator {
1091
1094
  height: 20px;
1092
- border-right: 1px solid ${Os.colorOutline};
1095
+ border-right: 1px solid ${Ss.colorOutline};
1093
1096
  }
1094
- `,Ss={highlightBackgroundColor:Re.create("--ft-sra-highlight-background-color","","COLOR","transparent")},Ns=Rt`
1097
+ `,Cs={highlightBackgroundColor:Re.create("--ft-sra-highlight-background-color","","COLOR","transparent")},Es=Rt`
1095
1098
  .kwicmatch {
1096
1099
  font-weight: 700;
1097
- background-color: ${Ss.highlightBackgroundColor};
1100
+ background-color: ${Cs.highlightBackgroundColor};
1098
1101
  }
1099
- `,Cs={highlightBackgroundColor:Re.create("--ft-srt-highlight-background-color","","COLOR","transparent")},Es=Rt`
1102
+ `,$s={highlightBackgroundColor:Re.create("--ft-srt-highlight-background-color","","COLOR","transparent")},Rs=Rt`
1100
1103
  .kwicmatch {
1101
1104
  font-weight: 700;
1102
- background-color: ${Cs.highlightBackgroundColor};
1105
+ background-color: ${$s.highlightBackgroundColor};
1103
1106
  }
1104
- `,$s={searchFieldBackgroundColor:Re.extend("--ft-rsid-search-field-background-color","",We.colorSurface),searchFieldBorderColor:Re.extend("--ft-rsid-search-field-border-color","",We.colorOutline),searchFieldTextColor:Re.extend("--ft-rsid-search-field-text-color","",We.colorOnSurface),searchFieldBorderRadius:Re.extend("--ft-rsid-search-field-border-radius","",We.borderRadiusS),resultsNumberColor:Re.extend("--ft-rsid-results-number-color","",We.colorOnSurfaceMedium),resultBackgroundColor:Re.extend("--ft-rsid-result-background-color","",We.colorSurface),resultBorderColor:Re.extend("--ft-rsid-result-border-color","",We.colorOutline),resultBorderRadius:Re.extend("--ft-rsid-result-border-radius","",We.borderRadiusS),resultTitleTextColor:Re.extend("--ft-rsid-result-title-text-color","",We.colorOnSurface),resultBreadcrumbTextColor:Re.extend("--ft-rsid-result-breadcrumb-text-color","",We.colorOnSurfaceMedium),resultContentTextColor:Re.extend("--ft-rsid-result-content-text-color","",We.colorOnSurface),resultHighlightBackgroundColor:Re.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:Re.extend("--ft-rsid-result-hover-background-color","",We.colorPrimary),resultHoverBorderColor:Re.extend("--ft-rsid-result-hover-border-color","",We.colorPrimary)},Rs=Rt`
1107
+ `,ks={searchFieldBackgroundColor:Re.extend("--ft-rsid-search-field-background-color","",We.colorSurface),searchFieldBorderColor:Re.extend("--ft-rsid-search-field-border-color","",We.colorOutline),searchFieldTextColor:Re.extend("--ft-rsid-search-field-text-color","",We.colorOnSurface),searchFieldBorderRadius:Re.extend("--ft-rsid-search-field-border-radius","",We.borderRadiusS),searchButtonColor:Re.extend("--ft-rsid-search-field-button-color","",We.colorPrimary),resultsNumberColor:Re.extend("--ft-rsid-results-number-color","",We.colorOnSurfaceMedium),resultBackgroundColor:Re.extend("--ft-rsid-result-background-color","",We.colorSurface),resultBorderColor:Re.extend("--ft-rsid-result-border-color","",We.colorOutline),resultBorderRadius:Re.extend("--ft-rsid-result-border-radius","",We.borderRadiusS),resultTitleTextColor:Re.extend("--ft-rsid-result-title-text-color","",We.colorOnSurface),resultBreadcrumbTextColor:Re.extend("--ft-rsid-result-breadcrumb-text-color","",We.colorOnSurfaceMedium),resultContentTextColor:Re.extend("--ft-rsid-result-content-text-color","",We.colorOnSurface),resultHighlightBackgroundColor:Re.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:Re.extend("--ft-rsid-result-hover-background-color","",We.colorPrimary),resultHoverBorderColor:Re.extend("--ft-rsid-result-hover-border-color","",We.colorPrimary)},Us=Rt`
1105
1108
  .ft-search-in-doc--container {
1106
1109
  display: flex;
1107
1110
  flex-direction: column;
@@ -1109,10 +1112,11 @@ class is extends zn{constructor(t){if(super(t),this.et=at,t.type!==Mn)throw Erro
1109
1112
  }
1110
1113
 
1111
1114
  ft-search-input {
1112
- ${ke(Os.colorSurface,$s.searchFieldBackgroundColor)};
1113
- ${ke(Os.colorOutline,$s.searchFieldBorderColor)};
1114
- ${ke(Os.colorOnSurface,$s.searchFieldTextColor)};
1115
- ${ke(Os.borderRadius,$s.searchFieldBorderRadius)};
1115
+ ${ke(Ss.colorSurface,ks.searchFieldBackgroundColor)};
1116
+ ${ke(Ss.colorOutline,ks.searchFieldBorderColor)};
1117
+ ${ke(Ss.colorOnSurface,ks.searchFieldTextColor)};
1118
+ ${ke(Ss.borderRadius,ks.searchFieldBorderRadius)};
1119
+ ${ke(Ss.buttonColor,ks.searchButtonColor)};
1116
1120
  }
1117
1121
 
1118
1122
  ft-search-results-number {
@@ -1120,41 +1124,41 @@ class is extends zn{constructor(t){if(super(t),this.et=at,t.type!==Mn)throw Erro
1120
1124
  }
1121
1125
 
1122
1126
  ft-search-results-number, ft-search-results::part(no-results-message) {
1123
- color: ${$s.resultsNumberColor};
1127
+ color: ${ks.resultsNumberColor};
1124
1128
  }
1125
1129
 
1126
1130
  ft-search-load-more-button {
1127
1131
  margin: auto;
1128
1132
  }
1129
- `,ks=Rt`
1133
+ `,Is=Rt`
1130
1134
  ft-card {
1131
1135
  margin-bottom: 8px;
1132
1136
  ${ke(ci.elevation04,"none")};
1133
1137
  ${ke(ci.elevation02,"none")};
1134
1138
  ${ke(ci.borderStyle,"solid")};
1135
1139
  ${ke(ci.borderRadius,We.borderRadiusS)};
1136
- ${ke(ci.colorSurface,$s.resultBackgroundColor)};
1137
- ${ke(ci.borderColor,$s.resultBorderColor)};
1138
- ${ke(ci.borderRadius,$s.resultBorderRadius)};
1140
+ ${ke(ci.colorSurface,ks.resultBackgroundColor)};
1141
+ ${ke(ci.borderColor,ks.resultBorderColor)};
1142
+ ${ke(ci.borderRadius,ks.resultBorderRadius)};
1139
1143
  }
1140
1144
 
1141
1145
  ft-search-result-title {
1142
- color: ${$s.resultTitleTextColor};
1143
- ${ke(Cs.highlightBackgroundColor,$s.resultHighlightBackgroundColor)};
1146
+ color: ${ks.resultTitleTextColor};
1147
+ ${ke($s.highlightBackgroundColor,ks.resultHighlightBackgroundColor)};
1144
1148
  }
1145
1149
 
1146
1150
  .breadcrumb {
1147
- color: ${$s.resultBreadcrumbTextColor};
1151
+ color: ${ks.resultBreadcrumbTextColor};
1148
1152
  }
1149
1153
 
1150
1154
  ft-search-result-abstract {
1151
- color: ${$s.resultContentTextColor};
1152
- ${ke(Ss.highlightBackgroundColor,$s.resultHighlightBackgroundColor)};
1155
+ color: ${ks.resultContentTextColor};
1156
+ ${ke(Cs.highlightBackgroundColor,ks.resultHighlightBackgroundColor)};
1153
1157
  }
1154
1158
 
1155
1159
  ft-card:hover {
1156
- ${ke(ci.hoverBorderColor,$s.resultHoverBorderColor)};
1157
- ${ke(ti.color,$s.resultHoverBackgroundColor)};
1160
+ ${ke(ci.hoverBorderColor,ks.resultHoverBorderColor)};
1161
+ ${ke(ti.color,ks.resultHoverBackgroundColor)};
1158
1162
  }
1159
1163
 
1160
1164
  .result-container {
@@ -1163,38 +1167,38 @@ class is extends zn{constructor(t){if(super(t),this.et=at,t.type!==Mn)throw Erro
1163
1167
  gap: 4px;
1164
1168
  }
1165
1169
 
1166
- `,Us=Rt`
1167
- `,Is=Rt`
1168
- `,Ls=Gr.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class As{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Ls.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static get(t){var e;return null!=t?As.build(t):null!==(e=As.API)&&void 0!==e?e:As.API=As.build()}static await(t){return new Promise((e=>{let o=As.get(t);if(o)e(o);else{const r=Ls.subscribe((()=>{o=As.get(t),o&&(r(),e(o))}))}}))}}var Ws;const js=Symbol("clearAfterUnitTest");class Fs{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i,this.listeners={},this.currentUiLocale="",this[Ws]=()=>{this.defaultMessages={},this.cache=new i,this.listeners={}},this.currentUiLocale=Ls.getState().uiLocale,Ls.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Ls.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 o;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};j(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,i,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(i=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==i?i:{};return new qe(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}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 o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.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=>W(0).then((()=>t())).catch((()=>null)))))}}Ws=js,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Fs((async(t,e)=>(await As.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Fs((async(t,e)=>(await As.await()).getCustomMessageContext(t,e))));const Ps=window.FluidTopicsI18nService,Bs=window.FluidTopicsCustomI18nService;var Ds=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ks extends ze{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>As.get(),this.cache=new i,this.cleanSessionDebouncer=new A}render(){return fe`
1170
+ `,Ls=Rt`
1171
+ `,As=Rt`
1172
+ `,Ws=Gr.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 js{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Ws.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static get(t){var e;return null!=t?js.build(t):null!==(e=js.API)&&void 0!==e?e:js.API=js.build()}static await(t){return new Promise((e=>{let o=js.get(t);if(o)e(o);else{const r=Ws.subscribe((()=>{o=js.get(t),o&&(r(),e(o))}))}}))}}var Fs;const Ps=Symbol("clearAfterUnitTest");class Bs{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i,this.listeners={},this.currentUiLocale="",this[Fs]=()=>{this.defaultMessages={},this.cache=new i,this.listeners={}},this.currentUiLocale=Ws.getState().uiLocale,Ws.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Ws.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 o;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};j(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,i,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(i=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==i?i:{};return new qe(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}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 o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.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=>W(0).then((()=>t())).catch((()=>null)))))}}Fs=Ps,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Bs((async(t,e)=>(await js.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Bs((async(t,e)=>(await js.await()).getCustomMessageContext(t,e))));const Ks=window.FluidTopicsI18nService,Ms=window.FluidTopicsCustomI18nService;var Ts=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ds extends ze{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=()=>js.get(),this.cache=new i,this.cleanSessionDebouncer=new A}render(){return fe`
1169
1173
  <slot></slot>
1170
- `}update(t){super.update(t),t.has("baseUrl")&&Ls.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Ls.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Ls.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Ls.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Ls.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Ls.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Ls.actions.setSession(this.session),t.has("availableUiLocales")&&Ls.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Ps.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()))))}}Ks.elementDefinitions={},Ks.styles=Is,Ds([R()],Ks.prototype,"baseUrl",void 0),Ds([R()],Ks.prototype,"apiIntegrationIdentifier",void 0),Ds([R()],Ks.prototype,"uiLocale",void 0),Ds([P([])],Ks.prototype,"availableUiLocales",void 0),Ds([R({type:Boolean})],Ks.prototype,"editorMode",void 0),Ds([R({type:Boolean})],Ks.prototype,"noCustom",void 0),Ds([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ks.prototype,"noCustomComponent",void 0),Ds([R({type:Boolean})],Ks.prototype,"withManualResources",void 0),Ds([P([])],Ks.prototype,"messageContexts",void 0),Ds([P(void 0)],Ks.prototype,"session",void 0),Ds([R({type:Object})],Ks.prototype,"apiProvider",void 0);class Ms{async listMySearches(){var t;return(null===(t=Ls.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await As.await()).listMySearches(Ls.getState().session.profile.userId):[]}}const Ts=new i;class zs{async listMyBookmarks(){return Ts.get("bookmarks",(async()=>(await As.await()).listMyBookmarks(Ls.getState().session.profile.userId)))}clearCache(){Ts.clear("bookmarks")}}const Zs=Gr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const _s=new class{constructor(){this.currentSession=Ls.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new zs,Ls.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Ls.getState();j(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(){Zs.actions.savedSearches(void 0)}clearMyBookmarks(){Zs.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Ms,e=await t.listMySearches();Zs.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;Zs.actions.bookmarks(e)}}};F("ft-app-context")(Ks);var Hs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Gs=Symbol("i18nProperties"),qs=Symbol("i18nUnsubs");function Vs(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Bs:Ps}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var e;null===(e=this[Gs])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Gs])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Gs]&&new Set([...this[Gs].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[qs].has(t)||this[qs].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[qs].forEach((t=>t())),this[qs].clear()}}return e=qs,Hs([R({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Ys extends(Vs(ze)){}class Xs extends(Vs(io)){}var Qs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Js extends Xs{constructor(){super(),this.editorMode=!1,this.addStore(Ls)}render(){return this.key&&this.context?fe`
1174
+ `}update(t){super.update(t),t.has("baseUrl")&&Ws.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Ws.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Ws.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Ws.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Ws.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Ws.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Ws.actions.setSession(this.session),t.has("availableUiLocales")&&Ws.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Ks.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()))))}}Ds.elementDefinitions={},Ds.styles=As,Ts([R()],Ds.prototype,"baseUrl",void 0),Ts([R()],Ds.prototype,"apiIntegrationIdentifier",void 0),Ts([R()],Ds.prototype,"uiLocale",void 0),Ts([P([])],Ds.prototype,"availableUiLocales",void 0),Ts([R({type:Boolean})],Ds.prototype,"editorMode",void 0),Ts([R({type:Boolean})],Ds.prototype,"noCustom",void 0),Ts([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ds.prototype,"noCustomComponent",void 0),Ts([R({type:Boolean})],Ds.prototype,"withManualResources",void 0),Ts([P([])],Ds.prototype,"messageContexts",void 0),Ts([P(void 0)],Ds.prototype,"session",void 0),Ts([R({type:Object})],Ds.prototype,"apiProvider",void 0);class zs{async listMySearches(){var t;return(null===(t=Ws.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await js.await()).listMySearches(Ws.getState().session.profile.userId):[]}}const Zs=new i;class _s{async listMyBookmarks(){return Zs.get("bookmarks",(async()=>(await js.await()).listMyBookmarks(Ws.getState().session.profile.userId)))}clearCache(){Zs.clear("bookmarks")}}const Hs=Gr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Gs=new class{constructor(){this.currentSession=Ws.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new _s,Ws.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Ws.getState();j(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(){Hs.actions.savedSearches(void 0)}clearMyBookmarks(){Hs.actions.bookmarks(void 0)}async reloadMySearches(){const t=new zs,e=await t.listMySearches();Hs.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;Hs.actions.bookmarks(e)}}};F("ft-app-context")(Ds);var qs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Vs=Symbol("i18nProperties"),Ys=Symbol("i18nUnsubs");function Xs(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Ms:Ks}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var e;null===(e=this[Vs])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Vs])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Vs]&&new Set([...this[Vs].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Ys].has(t)||this[Ys].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[Ys].forEach((t=>t())),this[Ys].clear()}}return e=Ys,qs([R({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Qs extends(Xs(ze)){}class Js extends(Xs(io)){}var tc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ec extends Js{constructor(){super(),this.editorMode=!1,this.addStore(Ws)}render(){return this.key&&this.context?fe`
1171
1175
  <span class="ft-i18n">
1172
1176
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1173
1177
  </span>
1174
- `:this.editorMode?"Select a context and a label key.":ue}update(t){var e;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}Js.elementDefinitions={},Js.styles=Us,Qs([Ve()],Js.prototype,"editorMode",void 0),Qs([R()],Js.prototype,"context",void 0),Qs([R()],Js.prototype,"key",void 0),Qs([P([])],Js.prototype,"args",void 0),Qs([R()],Js.prototype,"defaultMessage",void 0);class tc{static build(t){return new tc(t)}static fromGwt(t){return new tc(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Ps.resolveMessage(this.name,e,...t)})}}F("ft-i18n")(Js);const ec=Rt`
1175
- `,oc={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.filters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload}};var rc,ic,nc,ac,sc,cc,lc,fc,hc,uc,pc,dc,yc,gc;!function(t){!function(e){var o={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(o.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?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 l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function u(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=u(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=u(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):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=l(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?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},c.prototype.delete=function(t){delete this.map[n(t)]},c.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},c.prototype.set=function(t,e){this.map[n(t)]=a(e)},c.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,r,i=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=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 c(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),d.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),i=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new c(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},p.call(y.prototype),p.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,r){return new Promise((function(i,n){var a=new y(t,r);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var i=o.join(":").trim();e.append(r,i)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new b(r,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=c,t.Request=y,t.Response=b),e.Headers=c,e.Request=y,e.Response=b,e.fetch=v,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(rc||(rc={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(ic||(ic={})),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"}(nc||(nc={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(ac||(ac={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(sc||(sc={})),function(t){t.ASC="ASC",t.DESC="DESC"}(cc||(cc={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(lc||(lc={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(fc||(fc={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(hc||(hc={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(uc||(uc={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(pc||(pc={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(dc||(dc={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(yc||(yc={})),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"}(gc||(gc={})),gc.PERSONAL_BOOK_SHARE_USER,gc.PERSONAL_BOOK_USER,gc.HTML_EXPORT_USER,gc.PERSONAL_BOOK_USER,gc.PDF_EXPORT_USER,gc.PERSONAL_BOOK_USER,gc.KHUB_ADMIN,gc.CONTENT_PUBLISHER,gc.ADMIN,gc.KHUB_ADMIN,gc.USERS_ADMIN,gc.PORTAL_ADMIN,gc.DEVELOPER,gc.BETA_USER,gc.DEBUG_USER;class bc{static async build(){return new bc(await As.await())}constructor(t){this.api=t,this.cache=new i,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}class mc extends Event{constructor(){super(mc.eventName)}}mc.eventName="search-context-clear-all-filters";class vc{static build(t){return new vc((t=>Gr.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:oc}))(t.trim()||"context"),bc.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.ignoreEmptyQuery=!1,this.searchDebouncer=new A(100),this.suggestDebouncer=new A(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){for(;null==this.service;)await W(5);return this.service}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let e=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(t!=o){if(e){const r=t=>e.some((e=>e.lang==t));r(t)||(t=r(o)?o:e[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const e=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(e),this.store.actions.setPageNumber(1),e.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(fc.TITLE_ONLY),this.store.actions.setRequestScope(yc.DOCUMENTS)):(this.store.actions.setRequestVirtualField(fc.EVERYWHERE),this.store.actions.setRequestScope(yc.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return(t=>t.request.virtualField===fc.TITLE_ONLY&&t.request.scope===yc.DOCUMENTS)(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new mc)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let o=this.facetIds.filter((e=>e!=t));e&&o.push(e),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let e=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(e)}setFilter(t,e){let o=this.store.getState().request.filters,r={key:t,values:e,negative:!1},i=[...o.filter((e=>e.key!==t)),r];this.setFilters(i)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(t){this.store.actions.setRequestScope(t),this.launchSearch()}setIgnoreEmptyQuery(t){this.ignoreEmptyQuery=t,this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,o;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel();let e=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&0==e.query.length)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=r(this.service.launchSearch(e));const t=await this.cancelableSearch;if(t.paging.currentPage<=1)this.store.actions.setResults(t.results),this.store.actions.setFacets(t.facets),this.store.actions.setSpellcheck(t.spellcheck);else{let e=(null!==(o=this.store.getState().results)&&void 0!==o?o:[]).concat(t.results);this.store.actions.setResults(e)}this.store.actions.setPaging(t.paging)}}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const e=this.store.getState(),o=e.request,i={input:e.liveQuery,filters:o.filters,sort:o.sort,contentLocale:o.contentLocale,scope:o.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=r(this.service.launchSuggest(i));let n=await this.cancelableSuggest;this.store.actions.setSuggestResults(n.suggestions)}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}clear(){this.store.clear()}}var xc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Oc extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const wc=Symbol("registerInterval");class Sc extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[wc]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[wc]):this.dispatchEvent(new Oc)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=wc,xc([k()],o.prototype,"stateManager",void 0),o}(io)){}var Nc,Cc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ec extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class $c extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class Rc extends CustomEvent{constructor(t,e,o){super("ft-search-results-change",{detail:{request:t,paging:e,spellcheck:o}})}}class kc extends io{get stateManager(){return null==this._stateManager&&(this._stateManager=vc.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0")),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")),this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.filters=[],this.sort=[],this.addStore(Ls)}render(){return fe`
1178
+ `:this.editorMode?"Select a context and a label key.":ue}update(t){var e;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}ec.elementDefinitions={},ec.styles=Ls,tc([Ve()],ec.prototype,"editorMode",void 0),tc([R()],ec.prototype,"context",void 0),tc([R()],ec.prototype,"key",void 0),tc([P([])],ec.prototype,"args",void 0),tc([R()],ec.prototype,"defaultMessage",void 0);class oc{static build(t){return new oc(t)}static fromGwt(t){return new oc(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Ks.resolveMessage(this.name,e,...t)})}}F("ft-i18n")(ec);const rc=Rt`
1179
+ `,ic={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.filters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload}};var nc,ac,sc,cc,lc,fc,hc,uc,pc,dc,yc,gc,bc,mc;!function(t){!function(e){var o={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(o.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?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 l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function h(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function u(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=u(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=u(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):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=l(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?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},c.prototype.delete=function(t){delete this.map[n(t)]},c.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},c.prototype.set=function(t,e){this.map[n(t)]=a(e)},c.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var d=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,r,i=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=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 c(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),d.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),i=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new c(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},p.call(y.prototype),p.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,r){return new Promise((function(i,n){var a=new y(t,r);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var i=o.join(":").trim();e.append(r,i)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new b(r,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=c,t.Request=y,t.Response=b),e.Headers=c,e.Request=y,e.Response=b,e.fetch=v,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(nc||(nc={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(ac||(ac={})),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"}(sc||(sc={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(cc||(cc={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(lc||(lc={})),function(t){t.ASC="ASC",t.DESC="DESC"}(fc||(fc={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(hc||(hc={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(uc||(uc={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(pc||(pc={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(dc||(dc={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(yc||(yc={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(gc||(gc={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(bc||(bc={})),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"}(mc||(mc={})),mc.PERSONAL_BOOK_SHARE_USER,mc.PERSONAL_BOOK_USER,mc.HTML_EXPORT_USER,mc.PERSONAL_BOOK_USER,mc.PDF_EXPORT_USER,mc.PERSONAL_BOOK_USER,mc.KHUB_ADMIN,mc.CONTENT_PUBLISHER,mc.ADMIN,mc.KHUB_ADMIN,mc.USERS_ADMIN,mc.PORTAL_ADMIN,mc.DEVELOPER,mc.BETA_USER,mc.DEBUG_USER;class vc{static async build(){return new vc(await js.await())}constructor(t){this.api=t,this.cache=new i,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}class xc extends Event{constructor(){super(xc.eventName)}}xc.eventName="search-context-clear-all-filters";class Oc{static build(t){return new Oc((t=>Gr.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:ic}))(t.trim()||"context"),vc.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.ignoreEmptyQuery=!1,this.searchDebouncer=new A(100),this.suggestDebouncer=new A(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){for(;null==this.service;)await W(5);return this.service}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let e=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(t!=o){if(e){const r=t=>e.some((e=>e.lang==t));r(t)||(t=r(o)?o:e[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const e=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(e),this.store.actions.setPageNumber(1),e.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(uc.TITLE_ONLY),this.store.actions.setRequestScope(bc.DOCUMENTS)):(this.store.actions.setRequestVirtualField(uc.EVERYWHERE),this.store.actions.setRequestScope(bc.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return(t=>t.request.virtualField===uc.TITLE_ONLY&&t.request.scope===bc.DOCUMENTS)(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new xc)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let o=this.facetIds.filter((e=>e!=t));e&&o.push(e),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let e=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(e)}setFilter(t,e){let o=this.store.getState().request.filters,r={key:t,values:e,negative:!1},i=[...o.filter((e=>e.key!==t)),r];this.setFilters(i)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(t){this.store.actions.setRequestScope(t),this.launchSearch()}setIgnoreEmptyQuery(t){this.ignoreEmptyQuery=t,this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,o;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel();let e=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&0==e.query.length)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=r(this.service.launchSearch(e));const t=await this.cancelableSearch;if(t.paging.currentPage<=1)this.store.actions.setResults(t.results),this.store.actions.setFacets(t.facets),this.store.actions.setSpellcheck(t.spellcheck);else{let e=(null!==(o=this.store.getState().results)&&void 0!==o?o:[]).concat(t.results);this.store.actions.setResults(e)}this.store.actions.setPaging(t.paging)}}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const e=this.store.getState(),o=e.request,i={input:e.liveQuery,filters:o.filters,sort:o.sort,contentLocale:o.contentLocale,scope:o.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=r(this.service.launchSuggest(i));let n=await this.cancelableSuggest;this.store.actions.setSuggestResults(n.suggestions)}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}clear(){this.store.clear()}}var wc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Sc extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Nc=Symbol("registerInterval");class Cc extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Nc]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Nc]):this.dispatchEvent(new Sc)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Nc,wc([k()],o.prototype,"stateManager",void 0),o}(io)){}var Ec,$c=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Rc extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class kc extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class Uc extends CustomEvent{constructor(t,e,o){super("ft-search-results-change",{detail:{request:t,paging:e,spellcheck:o}})}}class Ic extends io{get stateManager(){return null==this._stateManager&&(this._stateManager=Oc.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0")),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")),this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.filters=[],this.sort=[],this.addStore(Ws)}render(){return fe`
1176
1180
  <slot @register-ft-search-component=${this.registerComponent}></slot>
1177
- `}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),t.has("scope")&&void 0!==this.scope&&this.stateManager.setScope(this.scope),t.has("ignoreEmptyQuery")&&void 0!==this.ignoreEmptyQuery&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new $c(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new Rc(this.request,this.paging,this.autocorrect))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setSearchStateManager(this.stateManager)}handleLoadError(t){this.dispatchEvent(new Ec(t))}reloadSavedSearches(){_s.clearMySearches()}clear(){this.stateManager.clear()}}kc.elementDefinitions={},kc.styles=ec,Cc([R()],kc.prototype,"query",void 0),Cc([R()],kc.prototype,"contentLocale",void 0),Cc([R({type:Number})],kc.prototype,"pageSize",void 0),Cc([R({type:Boolean})],kc.prototype,"searchInDocumentTitlesOnly",void 0),Cc([R()],kc.prototype,"scope",void 0),Cc([R({type:Boolean})],kc.prototype,"ignoreEmptyQuery",void 0),Cc([P([])],kc.prototype,"filters",void 0),Cc([P([])],kc.prototype,"sort",void 0),Cc([Ve({store:"search"})],kc.prototype,"request",void 0),Cc([Ve({store:"search"})],kc.prototype,"paging",void 0),Cc([Ve({store:"search",selector:t=>t.spellcheck})],kc.prototype,"autocorrect",void 0),Cc([Ve({store:Ls.name})],kc.prototype,"session",void 0),F("ft-search-context")(kc),function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(Nc||(Nc={}));var Uc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ic extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Lc=Symbol("registerInterval");class Ac extends(function(t){var e;class o 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[Lc]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Lc]):this.dispatchEvent(new Ic)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Lc,Uc([k()],o.prototype,"stateManager",void 0),o}(io)){}const Wc=Rt`
1181
+ `}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),t.has("scope")&&void 0!==this.scope&&this.stateManager.setScope(this.scope),t.has("ignoreEmptyQuery")&&void 0!==this.ignoreEmptyQuery&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new kc(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new Uc(this.request,this.paging,this.autocorrect))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setSearchStateManager(this.stateManager)}handleLoadError(t){this.dispatchEvent(new Rc(t))}reloadSavedSearches(){Gs.clearMySearches()}clear(){this.stateManager.clear()}}Ic.elementDefinitions={},Ic.styles=rc,$c([R()],Ic.prototype,"query",void 0),$c([R()],Ic.prototype,"contentLocale",void 0),$c([R({type:Number})],Ic.prototype,"pageSize",void 0),$c([R({type:Boolean})],Ic.prototype,"searchInDocumentTitlesOnly",void 0),$c([R()],Ic.prototype,"scope",void 0),$c([R({type:Boolean})],Ic.prototype,"ignoreEmptyQuery",void 0),$c([P([])],Ic.prototype,"filters",void 0),$c([P([])],Ic.prototype,"sort",void 0),$c([Ve({store:"search"})],Ic.prototype,"request",void 0),$c([Ve({store:"search"})],Ic.prototype,"paging",void 0),$c([Ve({store:"search",selector:t=>t.spellcheck})],Ic.prototype,"autocorrect",void 0),$c([Ve({store:Ws.name})],Ic.prototype,"session",void 0),F("ft-search-context")(Ic),function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(Ec||(Ec={}));var Lc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ac extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Wc=Symbol("registerInterval");class jc extends(function(t){var e;class o 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[Wc]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Wc]):this.dispatchEvent(new Ac)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Wc,Lc([k()],o.prototype,"stateManager",void 0),o}(io)){}const Fc=Rt`
1178
1182
 
1179
- `,jc=tc.build("searchResultsNumber"),Fc={results:"{0} results","results[\\=1]":"1 result"};var Pc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Bc extends(Vs(Sc)){constructor(){super(),this.addI18nContext(jc,Fc)}render(){return null==this.paging?ue:fe`
1183
+ `,Pc=oc.build("searchResultsNumber"),Bc={results:"{0} results","results[\\=1]":"1 result"};var Kc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Mc extends(Xs(Cc)){constructor(){super(),this.addI18nContext(Pc,Bc)}render(){return null==this.paging?ue:fe`
1180
1184
  <ft-typography variant="body1">
1181
- ${jc.messages.results(this.paging.totalClustersCount)}
1185
+ ${Pc.messages.results(this.paging.totalClustersCount)}
1182
1186
  </ft-typography>
1183
- `}}Bc.elementDefinitions={"ft-typography":ta},Bc.styles=Wc,Pc([Ve()],Bc.prototype,"paging",void 0),F("ft-search-results-number")(Bc);const Dc=tc.build("designedSearchInput"),Kc=Rt`
1187
+ `}}Mc.elementDefinitions={"ft-typography":ta},Mc.styles=Fc,Kc([Ve()],Mc.prototype,"paging",void 0),F("ft-search-results-number")(Mc);const Tc=oc.build("designedSearchInput"),Dc=Rt`
1184
1188
  * {
1185
1189
  box-sizing: border-box;
1186
1190
  }
1187
1191
 
1188
1192
  .ft-search-input-suggestion {
1189
1193
  position: absolute;
1190
- z-index: ${Os.floatingZIndex};
1194
+ z-index: ${Ss.floatingZIndex};
1191
1195
  top: calc(100% + 2px);
1192
1196
  left: -1px;
1193
1197
  right: -1px;
1194
- background: ${Os.colorSurface};
1195
- border: 1px solid ${Os.colorOutline};
1196
- border-radius: 0 0 ${Os.borderRadius} ${Os.borderRadius};
1197
- box-shadow: ${Os.elevation02};
1198
+ background: ${Ss.colorSurface};
1199
+ border: 1px solid ${Ss.colorOutline};
1200
+ border-radius: 0 0 ${Ss.borderRadius} ${Ss.borderRadius};
1201
+ box-shadow: ${Ss.elevation02};
1198
1202
  }
1199
1203
 
1200
1204
  .ft-search-input-suggestion--suggestion {
@@ -1205,7 +1209,7 @@ class is extends zn{constructor(t){if(super(t),this.et=at,t.type!==Mn)throw Erro
1205
1209
  padding: 8px;
1206
1210
  gap: 8px;
1207
1211
  cursor: pointer;
1208
- color: ${Os.colorOnSurface};
1212
+ color: ${Ss.colorOnSurface};
1209
1213
  min-height: 44px;
1210
1214
  }
1211
1215
 
@@ -1227,11 +1231,11 @@ class is extends zn{constructor(t){if(super(t),this.et=at,t.type!==Mn)throw Erro
1227
1231
  * @license
1228
1232
  * Copyright 2020 Google LLC
1229
1233
  * SPDX-License-Identifier: BSD-3-Clause
1230
- */,{D:Mc}=xt,Tc=()=>document.createComment(""),zc=(t,e,o)=>{const r=t._$AA.parentNode,i=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=r.insertBefore(Tc(),i),n=r.insertBefore(Tc(),i);o=new Mc(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,a=n!==t;if(a){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==i||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,i),t=e}}}return o},Zc=(t,e,o=t)=>(t._$AI(e,o),t),_c={},Hc=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},Gc=(t,e,o)=>{const r=new Map;for(let i=e;i<=o;i++)r.set(t[i],i);return r},qc=Tn(class extends zn{constructor(t){if(super(t),t.type!==Mn)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let r;void 0===o?o=e:void 0!==e&&(r=e);const i=[],n=[];let a=0;for(const e of t)i[a]=r?r(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:i}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,r]){const i=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,o,r);if(!Array.isArray(i))return this.dt=a,n;const s=this.dt??=[],c=[];let l,f,h=0,u=i.length-1,p=0,d=n.length-1;for(;h<=u&&p<=d;)if(null===i[h])h++;else if(null===i[u])u--;else if(s[h]===a[p])c[p]=Zc(i[h],n[p]),h++,p++;else if(s[u]===a[d])c[d]=Zc(i[u],n[d]),u--,d--;else if(s[h]===a[d])c[d]=Zc(i[h],n[d]),zc(t,c[d+1],i[h]),h++,d--;else if(s[u]===a[p])c[p]=Zc(i[u],n[p]),zc(t,i[h],i[u]),u--,p++;else if(void 0===l&&(l=Gc(a,p,d),f=Gc(s,h,u)),l.has(s[h]))if(l.has(s[u])){const e=f.get(a[p]),o=void 0!==e?i[e]:null;if(null===o){const e=zc(t,i[h]);Zc(e,n[p]),c[p]=e}else c[p]=Zc(o,n[p]),zc(t,i[h],o),i[e]=null;p++}else Hc(i[u]),u--;else Hc(i[h]),h++;for(;p<=d;){const e=zc(t,c[d+1]);Zc(e,n[p]),c[p++]=e}for(;h<=u;){const t=i[h++];null!==t&&Hc(t)}return this.dt=a,((t,e=_c)=>{t._$AH=e})(t,c),nt}});var Vc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Yc extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t})}}let Xc=class extends Sc{render(){return fe`
1234
+ */,{D:zc}=xt,Zc=()=>document.createComment(""),_c=(t,e,o)=>{const r=t._$AA.parentNode,i=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=r.insertBefore(Zc(),i),n=r.insertBefore(Zc(),i);o=new zc(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,a=n!==t;if(a){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==i||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,i),t=e}}}return o},Hc=(t,e,o=t)=>(t._$AI(e,o),t),Gc={},qc=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},Vc=(t,e,o)=>{const r=new Map;for(let i=e;i<=o;i++)r.set(t[i],i);return r},Yc=Dn(class extends zn{constructor(t){if(super(t),t.type!==Tn)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let r;void 0===o?o=e:void 0!==e&&(r=e);const i=[],n=[];let a=0;for(const e of t)i[a]=r?r(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:i}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,r]){const i=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,o,r);if(!Array.isArray(i))return this.dt=a,n;const s=this.dt??=[],c=[];let l,f,h=0,u=i.length-1,p=0,d=n.length-1;for(;h<=u&&p<=d;)if(null===i[h])h++;else if(null===i[u])u--;else if(s[h]===a[p])c[p]=Hc(i[h],n[p]),h++,p++;else if(s[u]===a[d])c[d]=Hc(i[u],n[d]),u--,d--;else if(s[h]===a[d])c[d]=Hc(i[h],n[d]),_c(t,c[d+1],i[h]),h++,d--;else if(s[u]===a[p])c[p]=Hc(i[u],n[p]),_c(t,i[h],i[u]),u--,p++;else if(void 0===l&&(l=Vc(a,p,d),f=Vc(s,h,u)),l.has(s[h]))if(l.has(s[u])){const e=f.get(a[p]),o=void 0!==e?i[e]:null;if(null===o){const e=_c(t,i[h]);Hc(e,n[p]),c[p]=e}else c[p]=Hc(o,n[p]),_c(t,i[h],o),i[e]=null;p++}else qc(i[u]),u--;else qc(i[h]),h++;for(;p<=d;){const e=_c(t,c[d+1]);Hc(e,n[p]),c[p++]=e}for(;h<=u;){const t=i[h++];null!==t&&qc(t)}return this.dt=a,((t,e=Gc)=>{t._$AH=e})(t,c),nt}});var Xc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Qc extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t})}}let Jc=class extends Cc{render(){return fe`
1231
1235
  <div class="ft-search-input-suggestion ft-word-wrap"
1232
1236
  part="container"
1233
1237
  @keydown=${t=>this.onSuggestKeyDown(t)}>
1234
- ${qc(this.suggestResults||[],(t=>t.value),(t=>fe`
1238
+ ${Yc(this.suggestResults||[],(t=>t.value),(t=>fe`
1235
1239
  <a href="#"
1236
1240
  part="suggestion"
1237
1241
  class="ft-search-input-suggestion--suggestion"
@@ -1243,16 +1247,16 @@ class is extends zn{constructor(t){if(super(t),this.et=at,t.type!==Mn)throw Erro
1243
1247
  </a>
1244
1248
  `))}
1245
1249
  </div>
1246
- `}onSuggestKeyDown(t){var e,o,r,i,n,a;switch(t.key){case"ArrowUp":null===(r=null!==(o=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==o?o:this.getLastSuggestionElement())||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(a=null!==(n=null===(i=this.getFocusedSuggestionElement())||void 0===i?void 0:i.nextElementSibling)&&void 0!==n?n:this.getFirstSuggestionElement())||void 0===a||a.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.dispatchEvent(new Yc(e))}getIcon(t){const e="DOCUMENT"===t.type?fs.file_format:fs.fluid_topics;let o;switch(t.type){case"MAP":o="BOOK"===t.editorialType?as.BOOK:as.ARTICLE;break;case"DOCUMENT":o=function(t,e){var o,r,i,n;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[a,s]=((null!==(o=ls.get(t))&&void 0!==o?o:t)+"/").split("/");return null!==(n=null!==(i=null!==(r=cs.get(s))&&void 0!==r?r:cs.get(e))&&void 0!==i?i:cs.get(a))&&void 0!==n?n:ss.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":o=as.TOPICS}return fe`
1250
+ `}onSuggestKeyDown(t){var e,o,r,i,n,a;switch(t.key){case"ArrowUp":null===(r=null!==(o=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==o?o:this.getLastSuggestionElement())||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(a=null!==(n=null===(i=this.getFocusedSuggestionElement())||void 0===i?void 0:i.nextElementSibling)&&void 0!==n?n:this.getFirstSuggestionElement())||void 0===a||a.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.dispatchEvent(new Qc(e))}getIcon(t){const e="DOCUMENT"===t.type?us.file_format:us.fluid_topics;let o;switch(t.type){case"MAP":o="BOOK"===t.editorialType?cs.BOOK:cs.ARTICLE;break;case"DOCUMENT":o=function(t,e){var o,r,i,n;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[a,s]=((null!==(o=hs.get(t))&&void 0!==o?o:t)+"/").split("/");return null!==(n=null!==(i=null!==(r=fs.get(s))&&void 0!==r?r:fs.get(e))&&void 0!==i?i:fs.get(a))&&void 0!==n?n:ls.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":o=cs.TOPICS}return fe`
1247
1251
  <ft-icon .variant="${e}" .value="${o}" part="suggestion-icon"></ft-icon>
1248
- `}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};Xc.elementDefinitions={"ft-ripple":Hn,"ft-typography":ta,"ft-icon":us},Xc.styles=[He,Kc],Vc([Ve()],Xc.prototype,"suggestResults",void 0),Xc=Vc([(t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)})("ft-search-input-suggestion")],Xc);var Qc=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Jc extends(Vs(Sc)){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.addI18nContext(Dc)}render(){var t,e;let o={"ft-search-input":!0,"ft-search-input--with-suggestions":null!==(e=null===(t=this.suggestResults)||void 0===t?void 0:t.length)&&void 0!==e&&e,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return fe`
1252
+ `}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};Jc.elementDefinitions={"ft-ripple":Hn,"ft-typography":ta,"ft-icon":ds},Jc.styles=[He,Dc],Xc([Ve()],Jc.prototype,"suggestResults",void 0),Jc=Xc([(t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)})("ft-search-input-suggestion")],Jc);var tl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class el extends(Xs(Cc)){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.addI18nContext(Tc)}render(){var t,e;let o={"ft-search-input":!0,"ft-search-input--with-suggestions":null!==(e=null===(t=this.suggestResults)||void 0===t?void 0:t.length)&&void 0!==e&&e,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return fe`
1249
1253
  <div class="${Zn(o)}" @focusout=${()=>this.forceCloseSuggestion=!1}>
1250
1254
  <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
1251
1255
  <div class="ft-search-input--input-outline" part="input-outline">
1252
1256
  <input class="ft-search-input--input ft-typography--body2"
1253
1257
  part="input"
1254
1258
  type="text"
1255
- placeholder="${Dc.messages.placeholder()}"
1259
+ placeholder="${Tc.messages.placeholder()}"
1256
1260
  .value="${this.liveQuery}"
1257
1261
  @keydown=${t=>this.onSearchBarKeyDown(t)}
1258
1262
  @keyup=${t=>this.onSearchBarKeyUp(t)}>
@@ -1268,7 +1272,7 @@ class is extends zn{constructor(t){if(super(t),this.et=at,t.type!==Mn)throw Erro
1268
1272
  part="clear-query"
1269
1273
  icon="close"
1270
1274
  round dense
1271
- label="${Dc.messages.clearButton()}"
1275
+ label="${Tc.messages.clearButton()}"
1272
1276
  @click=${()=>this.liveQuery=""}
1273
1277
  ></ft-button>
1274
1278
  <div class="ft-search-input--separator"></div>
@@ -1277,45 +1281,45 @@ class is extends zn{constructor(t){if(super(t),this.et=at,t.type!==Mn)throw Erro
1277
1281
  part="launch-search-in-input"
1278
1282
  icon="search"
1279
1283
  round dense
1280
- label="${Dc.messages.searchButton()}"
1284
+ label="${Tc.messages.searchButton()}"
1281
1285
  @click=${()=>this.launchSearch()}
1282
1286
  ></ft-button>
1283
1287
  </div>
1284
1288
  </div>
1285
- `}onSearchBarKeyDown(t){switch(t.key){case"ArrowDown":t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion();break;case"Backspace":t.stopPropagation()}}onSearchBarKeyUp(t){var e,o;if("Backspace"===t.key&&t.stopPropagation(),"Enter"===t.key)null===(e=this.stateManager)||void 0===e||e.setQuery(this.input.value),this.forceCloseSuggestion=!0;else null===(o=this.stateManager)||void 0===o||o.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var e;null===(e=this.stateManager)||void 0===e||e.setQuery(t.detail),this.forceCloseSuggestion=!0}}Jc.elementDefinitions={"ft-search-input-suggestion":Xc,"ft-button":bs},Jc.styles=[xn,ws],Qc([Ve()],Jc.prototype,"request",void 0),Qc([Ve()],Jc.prototype,"liveQuery",void 0),Qc([Ve()],Jc.prototype,"suggestResults",void 0),Qc([k()],Jc.prototype,"forceCloseSuggestion",void 0),Qc([L(".ft-search-input--input")],Jc.prototype,"input",void 0),Qc([L("ft-search-input-suggestion")],Jc.prototype,"suggestion",void 0),F("ft-search-input")(Jc);const tl=Rt`
1289
+ `}onSearchBarKeyDown(t){switch(t.key){case"ArrowDown":t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion();break;case"Backspace":t.stopPropagation()}}onSearchBarKeyUp(t){var e,o;if("Backspace"===t.key&&t.stopPropagation(),"Enter"===t.key)null===(e=this.stateManager)||void 0===e||e.setQuery(this.input.value),this.forceCloseSuggestion=!0;else null===(o=this.stateManager)||void 0===o||o.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var e;null===(e=this.stateManager)||void 0===e||e.setQuery(t.detail),this.forceCloseSuggestion=!0}}el.elementDefinitions={"ft-search-input-suggestion":Jc,"ft-button":vs},el.styles=[xn,Ns],tl([Ve()],el.prototype,"request",void 0),tl([Ve()],el.prototype,"liveQuery",void 0),tl([Ve()],el.prototype,"suggestResults",void 0),tl([k()],el.prototype,"forceCloseSuggestion",void 0),tl([L(".ft-search-input--input")],el.prototype,"input",void 0),tl([L("ft-search-input-suggestion")],el.prototype,"suggestion",void 0),F("ft-search-input")(el);const ol=Rt`
1286
1290
  [part="no-results-message"] {
1287
1291
  text-align: center;
1288
1292
  padding: 12px;
1289
1293
  }
1290
- `,el=Rt`
1294
+ `,rl=Rt`
1291
1295
  a {
1292
1296
  color: inherit;
1293
1297
  text-decoration: inherit;
1294
1298
  }
1295
- `;var ol=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class rl extends CustomEvent{constructor(t,e){super("ft-search-result-click",{detail:{result:t,rank:e},bubbles:!0,composed:!0})}}class il extends ze{constructor(){super(...arguments),this.index=0,this.registeredComponents=[]}render(){return fe`
1299
+ `;var il=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class nl extends CustomEvent{constructor(t,e){super("ft-search-result-click",{detail:{result:t,rank:e},bubbles:!0,composed:!0})}}class al extends ze{constructor(){super(...arguments),this.index=0,this.registeredComponents=[]}render(){return fe`
1296
1300
  <a href="${this.url}" @click=${this.onResultClick}>
1297
1301
  <slot @register-ft-search-result-component=${this.registerComponent}></slot>
1298
1302
  </a>
1299
- `}get url(){var t;switch(null===(t=this.result)||void 0===t?void 0:t.type){case dc.MAP:return this.result.map.readerUrl;case dc.DOCUMENT:return this.result.document.viewerUrl;case dc.TOPIC:return this.result.topic.readerUrl}return""}onResultClick(){this.dispatchEvent(new rl(this.result,this.index+1))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){this.registeredComponents.push(t),t.result=this.result}update(t){super.update(t),t.has("result")&&this.registeredComponents.forEach((t=>t.result=this.result))}disconnectedCallback(){super.disconnectedCallback(),this.registeredComponents=[]}}il.elementDefinitions={},il.styles=el,ol([R({attribute:!1})],il.prototype,"result",void 0),ol([R()],il.prototype,"index",void 0),F("ft-search-result-context")(il);var nl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class al extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}}const sl=Symbol("registerInterval");class cl extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}connectedCallback(){super.connectedCallback(),this[sl]=window.setInterval((()=>this.tryToRegisterToResultContext()),50)}tryToRegisterToResultContext(){null!=this.result?window.clearInterval(this[sl]):this.dispatchEvent(new al)}disconnectedCallback(){super.disconnectedCallback(),this.result=void 0}}return e=sl,nl([R({attribute:!1})],o.prototype,"result",void 0),o}(Sc)){}class ll extends cl{render(){return this.result?fe`
1300
- <ft-typography variant="title" part="text">${ns(this.selectTitle(this.result))}</ft-typography>
1301
- `:ue}selectTitle(t){switch(t.type){case"MAP":return t.map.htmlTitle;case"DOCUMENT":return t.document.htmlTitle;case"TOPIC":return t.topic.htmlTitle}return""}}ll.elementDefinitions={"ft-typography":ta},ll.styles=Es,F("ft-search-result-title")(ll);class fl extends cl{render(){let t=this.result?this.selectAbstract(this.result):void 0;return t?fe`
1302
- <ft-typography variant="body1" part="text">${ns(t)}</ft-typography>
1303
+ `}get url(){var t;switch(null===(t=this.result)||void 0===t?void 0:t.type){case gc.MAP:return this.result.map.readerUrl;case gc.DOCUMENT:return this.result.document.viewerUrl;case gc.TOPIC:return this.result.topic.readerUrl}return""}onResultClick(){this.dispatchEvent(new nl(this.result,this.index+1))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){this.registeredComponents.push(t),t.result=this.result}update(t){super.update(t),t.has("result")&&this.registeredComponents.forEach((t=>t.result=this.result))}disconnectedCallback(){super.disconnectedCallback(),this.registeredComponents=[]}}al.elementDefinitions={},al.styles=rl,il([R({attribute:!1})],al.prototype,"result",void 0),il([R()],al.prototype,"index",void 0),F("ft-search-result-context")(al);var sl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class cl extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}}const ll=Symbol("registerInterval");class fl extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}connectedCallback(){super.connectedCallback(),this[ll]=window.setInterval((()=>this.tryToRegisterToResultContext()),50)}tryToRegisterToResultContext(){null!=this.result?window.clearInterval(this[ll]):this.dispatchEvent(new cl)}disconnectedCallback(){super.disconnectedCallback(),this.result=void 0}}return e=ll,sl([R({attribute:!1})],o.prototype,"result",void 0),o}(Cc)){}class hl extends fl{render(){return this.result?fe`
1304
+ <ft-typography variant="title" part="text">${ss(this.selectTitle(this.result))}</ft-typography>
1305
+ `:ue}selectTitle(t){switch(t.type){case"MAP":return t.map.htmlTitle;case"DOCUMENT":return t.document.htmlTitle;case"TOPIC":return t.topic.htmlTitle}return""}}hl.elementDefinitions={"ft-typography":ta},hl.styles=Rs,F("ft-search-result-title")(hl);class ul extends fl{render(){let t=this.result?this.selectAbstract(this.result):void 0;return t?fe`
1306
+ <ft-typography variant="body1" part="text">${ss(t)}</ft-typography>
1303
1307
  `:fe`
1304
1308
  <style>
1305
1309
  :host {
1306
1310
  display: none !important;
1307
1311
  }
1308
1312
  </style>
1309
- `}selectAbstract(t){switch(t.type){case"MAP":return t.map.htmlExcerpt;case"DOCUMENT":return t.document.htmlExcerpt;case"TOPIC":return t.topic.htmlExcerpt}return""}}fl.elementDefinitions={"ft-typography":ta},fl.styles=Ns,F("ft-search-result-abstract")(fl);var hl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ul extends(Vs(Sc)){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>fe`
1313
+ `}selectAbstract(t){switch(t.type){case"MAP":return t.map.htmlExcerpt;case"DOCUMENT":return t.document.htmlExcerpt;case"TOPIC":return t.topic.htmlExcerpt}return""}}ul.elementDefinitions={"ft-typography":ta},ul.styles=Es,F("ft-search-result-abstract")(ul);var pl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class dl extends(Xs(Cc)){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>fe`
1310
1314
  <ft-search-result-title></ft-search-result-title>
1311
1315
  <ft-search-result-abstract></ft-search-result-abstract>
1312
- `,this.addI18nContext(jc)}render(){var t;return this.displayNoResultsMessage&&null!=this.results&&0==this.results.length?fe`
1313
- <ft-typography part="no-results-message" variant="body1">${jc.messages.results(0)}</ft-typography>
1314
- `:qc((null!==(t=this.results)&&void 0!==t?t:[]).flatMap((t=>"display-first-result"==this.clusterPolicy?[t.entries[0]]:t.entries)),(t=>{var e,o,r,i,n;return null!==(i=null!==(o=null===(e=t.document)||void 0===e?void 0:e.documentId)&&void 0!==o?o:null===(r=t.map)||void 0===r?void 0:r.mapId)&&void 0!==i?i:null===(n=t.topic)||void 0===n?void 0:n.tocId}),((t,e)=>fe`
1316
+ `,this.addI18nContext(Pc)}render(){var t;return this.displayNoResultsMessage&&null!=this.results&&0==this.results.length?fe`
1317
+ <ft-typography part="no-results-message" variant="body1">${Pc.messages.results(0)}</ft-typography>
1318
+ `:Yc((null!==(t=this.results)&&void 0!==t?t:[]).flatMap((t=>"display-first-result"==this.clusterPolicy?[t.entries[0]]:t.entries)),(t=>{var e,o,r,i,n;return null!==(i=null!==(o=null===(e=t.document)||void 0===e?void 0:e.documentId)&&void 0!==o?o:null===(r=t.map)||void 0===r?void 0:r.mapId)&&void 0!==i?i:null===(n=t.topic)||void 0===n?void 0:n.tocId}),((t,e)=>fe`
1315
1319
  <ft-search-result-context .result=${t} index="${e}">
1316
1320
  ${this.renderResult(t,e)}
1317
1321
  </ft-search-result-context>
1318
- `))}}ul.styles=tl,hl([R({type:String,attribute:"cluster-policy"})],ul.prototype,"clusterPolicy",void 0),hl([R({type:Boolean})],ul.prototype,"displayNoResultsMessage",void 0),hl([R({attribute:!1})],ul.prototype,"renderResult",void 0),hl([Ve()],ul.prototype,"results",void 0),F("ft-search-results")(ul);var pl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class dl extends ze{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1}render(){const t={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader};return fe`
1322
+ `))}}dl.styles=ol,pl([R({type:String,attribute:"cluster-policy"})],dl.prototype,"clusterPolicy",void 0),pl([R({type:Boolean})],dl.prototype,"displayNoResultsMessage",void 0),pl([R({attribute:!1})],dl.prototype,"renderResult",void 0),pl([Ve()],dl.prototype,"results",void 0),F("ft-search-results")(dl);var yl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class gl extends ze{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1}render(){const t={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader};return fe`
1319
1323
  <div id="container" part="container" class=${Zn(t)}>
1320
1324
  ${this.clickable?fe`
1321
1325
  <ft-ripple primary ?selected=${this.selected}></ft-ripple>
@@ -1333,13 +1337,13 @@ class is extends zn{constructor(t){if(super(t),this.et=at,t.type!==Mn)throw Erro
1333
1337
  </ft-typography>
1334
1338
  </div>
1335
1339
  </div>
1336
- `}}dl.elementDefinitions={"ft-ripple":Hn,"ft-typography":ta},dl.styles=li,pl([R()],dl.prototype,"title",void 0),pl([R({type:Boolean})],dl.prototype,"clickable",void 0),pl([R({type:Boolean})],dl.prototype,"selected",void 0),pl([R({type:Boolean})],dl.prototype,"noHeader",void 0),F("ft-card")(dl);const yl=Rt`
1337
- `,gl=tc.fromGwt("designedActionBlockAriaLabels");var bl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ml extends(Vs(Sc)){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.addI18nContext(gl)}render(){return this.isLastPage?ue:fe`
1340
+ `}}gl.elementDefinitions={"ft-ripple":Hn,"ft-typography":ta},gl.styles=li,yl([R()],gl.prototype,"title",void 0),yl([R({type:Boolean})],gl.prototype,"clickable",void 0),yl([R({type:Boolean})],gl.prototype,"selected",void 0),yl([R({type:Boolean})],gl.prototype,"noHeader",void 0),F("ft-card")(gl);const bl=Rt`
1341
+ `,ml=oc.fromGwt("designedActionBlockAriaLabels");var vl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class xl extends(Xs(Cc)){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.addI18nContext(ml)}render(){return this.isLastPage?ue:fe`
1338
1342
  <ft-button @click="${this.loadMore}">
1339
- ${gl.messages.searchPageLoadMore()}
1343
+ ${ml.messages.searchPageLoadMore()}
1340
1344
  </ft-button>
1341
- `}loadMore(){var t;null===(t=this.stateManager)||void 0===t||t.setPageNumber(this.currentPage+1)}}ml.elementDefinitions={"ft-button":bs},ml.styles=yl,bl([Ve({store:"search",selector:t=>{var e,o;return null!==(o=null===(e=t.paging)||void 0===e?void 0:e.currentPage)&&void 0!==o?o:1}})],ml.prototype,"currentPage",void 0),bl([Ve({store:"search",selector:t=>{var e,o;return null===(o=null===(e=t.paging)||void 0===e?void 0:e.isLastPage)||void 0===o||o}})],ml.prototype,"isLastPage",void 0),F("ft-search-load-more-button")(ml);var vl=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class xl extends(Vs(Ac)){constructor(){super(...arguments),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.uniqueId="search-in-document-"+(""+Math.round(999e3*Math.random())).padStart(6,"0")}get filters(){return[{negative:!1,key:"ft:publicationId",values:[this.map.id]}]}renderResult(t){var e;return fe`
1342
- <style> ${ks}</style>
1345
+ `}loadMore(){var t;null===(t=this.stateManager)||void 0===t||t.setPageNumber(this.currentPage+1)}}xl.elementDefinitions={"ft-button":vs},xl.styles=bl,vl([Ve({store:"search",selector:t=>{var e,o;return null!==(o=null===(e=t.paging)||void 0===e?void 0:e.currentPage)&&void 0!==o?o:1}})],xl.prototype,"currentPage",void 0),vl([Ve({store:"search",selector:t=>{var e,o;return null===(o=null===(e=t.paging)||void 0===e?void 0:e.isLastPage)||void 0===o||o}})],xl.prototype,"isLastPage",void 0),F("ft-search-load-more-button")(xl);var Ol=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class wl extends(Xs(jc)){constructor(){super(...arguments),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.uniqueId="search-in-document-"+(""+Math.round(999e3*Math.random())).padStart(6,"0")}get filters(){return[{negative:!1,key:"ft:publicationId",values:[this.map.id]}]}renderResult(t){var e;return fe`
1346
+ <style> ${Is}</style>
1343
1347
  <ft-card clickable noheader>
1344
1348
  <div class="result-container">
1345
1349
  ${this.hideResultTitle?ue:fe`
@@ -1373,4 +1377,4 @@ class is extends zn{constructor(t){if(super(t),this.et=at,t.type!==Mn)throw Erro
1373
1377
  </slot>
1374
1378
  </div>
1375
1379
  </ft-search-context>
1376
- `:ue}update(t){super.update(t),t.has("map")&&this.searchContext&&this.searchContext.clear(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some((e=>t.has(e)))&&this.searchResults&&this.searchResults.requestUpdate()}}xl.elementDefinitions={"ft-button":bs,"ft-typography":ta,"ft-search-context":kc,"ft-search-input":Jc,"ft-search-results-number":Bc,"ft-search-results":ul,"ft-search-load-more-button":ml},xl.styles=Rs,vl([Ve()],xl.prototype,"map",void 0),vl([Ve()],xl.prototype,"searchInDocumentQuery",void 0),vl([L("ft-search-context")],xl.prototype,"searchContext",void 0),vl([L("ft-search-results")],xl.prototype,"searchResults",void 0),vl([R({type:Boolean})],xl.prototype,"hideResultTitle",void 0),vl([R({type:Boolean})],xl.prototype,"hideResultBreadcrumb",void 0),vl([R({type:Boolean})],xl.prototype,"hideResultAbstract",void 0),vl([R({type:Boolean})],xl.prototype,"hideResultsNumber",void 0),F("ft-reader-search-in-document")(xl),t.FtReaderSearchInDocument=xl,t.FtReaderSearchInDocumentCssVariables=$s,t.resultStyles=ks,t.styles=Rs}({});
1380
+ `:ue}update(t){super.update(t),t.has("map")&&this.searchContext&&this.searchContext.clear(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some((e=>t.has(e)))&&this.searchResults&&this.searchResults.requestUpdate()}}wl.elementDefinitions={"ft-button":vs,"ft-typography":ta,"ft-search-context":Ic,"ft-search-input":el,"ft-search-results-number":Mc,"ft-search-results":dl,"ft-search-load-more-button":xl},wl.styles=Us,Ol([Ve()],wl.prototype,"map",void 0),Ol([Ve()],wl.prototype,"searchInDocumentQuery",void 0),Ol([L("ft-search-context")],wl.prototype,"searchContext",void 0),Ol([L("ft-search-results")],wl.prototype,"searchResults",void 0),Ol([R({type:Boolean})],wl.prototype,"hideResultTitle",void 0),Ol([R({type:Boolean})],wl.prototype,"hideResultBreadcrumb",void 0),Ol([R({type:Boolean})],wl.prototype,"hideResultAbstract",void 0),Ol([R({type:Boolean})],wl.prototype,"hideResultsNumber",void 0),F("ft-reader-search-in-document")(wl),t.FtReaderSearchInDocument=wl,t.FtReaderSearchInDocumentCssVariables=ks,t.resultStyles=Is,t.styles=Us}({});