@fluid-topics/ft-search-result-metadata 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,43 +12,43 @@
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,i=window.customElements,r=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,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,c=new Set(r.observedAttributes||[]);p(r,c,s);const l={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(r,l);let f=o.call(i,t);f||(f=h(t),e.call(i,t,f)),this===window.customElements&&(a.set(r,l),l.standInClass=f);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),d(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,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 i=this._awaitingUpgrade.get(e);i||this._awaitingUpgrade.set(e,i=new Set),o?i.add(t):i.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),r.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 i=f(o)||window.customElements,r=i._getDefinition(e);return r?d(o,r):n.set(o,i),o}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},p=(t,e,o)=>{if(0===e.size||void 0===o)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r),o.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i),o.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const e=this.getAttribute(r);o.call(this,r,t,e)}else n.call(this,r,i)})},u=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):u(o)},d=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),c=t;try{new e.elementClass}catch(t){u(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 i=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=i.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 i=e.call(this,...o);return t.set(i,this),i},o.forEach((e=>{const o=window.ElementInternals.prototype,i=o[e];o[e]=function(...e){const o=t.get(this);if(!0===r.get(o).formAssociated)return i?.call(this,...e);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i 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 i=t.getAttribute("name"),r=e.get(i)||[];this[+o]=t,r.push(t),e.set(i,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new i(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=r.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ia){const t=window.customElements.define;window.customElements.define=(e,o,i)=>{if(null!==o)try{t.bind(window.customElements)(e,o,i)}catch(t){console.info(e,o,i,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,i)=>t((t=>{this.isCanceled?i(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?i(new e("Promise has been canceled",void 0,t)):i(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}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,i){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new o(((e,o)=>t.then(e).catch(o))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=i&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),i)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class r{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const o=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,i=window.customElements,r=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,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,c=new Set(r.observedAttributes||[]);p(r,c,s);const l={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(r,l);let f=o.call(i,t);f||(f=h(t),e.call(i,t,f)),this===window.customElements&&(a.set(r,l),l.standInClass=f);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),d(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),i.upgrade.apply(i,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 i=this._awaitingUpgrade.get(e);i||this._awaitingUpgrade.set(e,i=new Set),o?i.add(t):i.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),r.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 i=f(o)||window.customElements,r=i._getDefinition(e);return r?d(o,r):n.set(o,i),o}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},p=(t,e,o)=>{if(0===e.size||void 0===o)return;const i=t.prototype.setAttribute;i&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);i.call(this,n,r),o.call(this,n,t,r)}else i.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);r.call(this,i),o.call(this,i,t,null)}else r.call(this,i)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,i){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,i);const e=this.getAttribute(r);o.call(this,r,t,e)}else n.call(this,r,i)})},u=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):u(o)},d=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),c=t;try{new e.elementClass}catch(t){u(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 i=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=i.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 i=e.call(this,...o);return t.set(i,this),i},o.forEach((e=>{const o=window.ElementInternals.prototype,i=o[e];o[e]=function(...e){const o=t.get(this);if(!0===r.get(o).formAssociated)return i?.call(this,...e);throw new DOMException(`Failed to execute ${i} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class i 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 i=t.getAttribute("name"),r=e.get(i)||[];this[+o]=t,r.push(t),e.set(i,r)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new i(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=r.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ia){const t=window.customElements.define;window.customElements.define=(e,o,i)=>{if(null!==o)try{t.bind(window.customElements)(e,o,i)}catch(t){console.info(e,o,i,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,i)=>t((t=>{this.isCanceled?i(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?i(new e("Promise has been canceled",void 0,t)):i(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}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,i){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new o(((e,o)=>t.then(e).catch(o))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=i&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),i)),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 2019 Google LLC
19
19
  * SPDX-License-Identifier: BSD-3-Clause
20
- */const n=globalThis,a=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),c=new WeakMap;const l=t=>new class{constructor(t,e,o){if(this._$cssResult$=!0,o!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(a&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=c.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&c.set(e,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,s),f=a?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return l(e)})(t):t
20
+ */const r=globalThis,n=r.ShadowRoot&&(void 0===r.ShadyCSS||r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,a=Symbol(),s=new WeakMap;const c=t=>new class{constructor(t,e,o){if(this._$cssResult$=!0,o!==a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(n&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=s.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&s.set(e,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,a),l=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return c(e)})(t):t
21
21
  /**
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */,{is:h,defineProperty:p,getOwnPropertyDescriptor:u,getOwnPropertyNames:d,getOwnPropertySymbols:y,getPrototypeOf:g}=Object,b=globalThis,m=b.trustedTypes,v=m?m.emptyScript:"",O=b.reactiveElementPolyfillSupport,x=(t,e)=>t,w={toAttribute(t,e){switch(e){case Boolean:t=t?v: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}},S=(t,e)=>!h(t,e),N={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:S};Symbol.metadata??=Symbol("metadata"),b.litPropertyMetadata??=new WeakMap;let C=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=N){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&p(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=u(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??N}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;const t=g(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){const t=this.properties,e=[...d(t),...y(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(f(t))}else void 0!==t&&e.push(f(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(a)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=n.litNonce;void 0!==i&&e.setAttribute("nonce",i),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),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:w).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:w;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??S)(i?r: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){}};C.elementStyles=[],C.shadowRootOptions={mode:"open"},C[x("elementProperties")]=new Map,C[x("finalized")]=new Map,O?.({ReactiveElement:C}),(b.reactiveElementVersions??=[]).push("2.0.2");
25
+ */,{is:f,defineProperty:h,getOwnPropertyDescriptor:p,getOwnPropertyNames:u,getOwnPropertySymbols:d,getPrototypeOf:y}=Object,g=globalThis,b=g.trustedTypes,m=b?b.emptyScript:"",v=g.reactiveElementPolyfillSupport,O=(t,e)=>t,x={toAttribute(t,e){switch(e){case Boolean:t=t?m: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}},w=(t,e)=>!f(t,e),S={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:w};Symbol.metadata??=Symbol("metadata"),g.litPropertyMetadata??=new WeakMap;let N=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=S){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),i=this.getPropertyDescriptor(t,o,e);void 0!==i&&h(this.prototype,t,i)}}static getPropertyDescriptor(t,e,o){const{get:i,set:r}=p(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const n=i?.call(this);r.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??S}static _$Ei(){if(this.hasOwnProperty(O("elementProperties")))return;const t=y(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(O("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(O("properties"))){const t=this.properties,e=[...u(t),...d(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(l(t))}else void 0!==t&&e.push(l(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(n)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),i=r.litNonce;void 0!==i&&e.setAttribute("nonce",i),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),i=this.constructor._$Eu(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==o.converter?.toAttribute?o.converter:x).toAttribute(e,o.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const o=this.constructor,i=o._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=o.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:x;this._$Em=i,this[i]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,i=!1,r){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??w)(i?r: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){}};N.elementStyles=[],N.shadowRootOptions={mode:"open"},N[O("elementProperties")]=new Map,N[O("finalized")]=new Map,v?.({ReactiveElement:N}),(g.reactiveElementVersions??=[]).push("2.0.2");
26
26
  /**
27
27
  * @license
28
28
  * Copyright 2017 Google LLC
29
29
  * SPDX-License-Identifier: BSD-3-Clause
30
30
  */
31
- const E={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:S},$=(t=E,e,o)=>{const{kind:i,metadata:r}=o;let n=globalThis.litPropertyMetadata.get(r);if(void 0===n&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(o.name,t),"accessor"===i){const{name:i}=o;return{set(o){const r=e.get.call(this);e.set.call(this,o),this.requestUpdate(i,r,t)},init(e){return void 0!==e&&this.C(i,void 0,t),e}}}if("setter"===i){const{name:i}=o;return function(o){const r=this[i];e.call(this,o),this.requestUpdate(i,r,t)}}throw Error("Unsupported decorator location: "+i)};function R(t){return(e,o)=>"object"==typeof o?$(t,e,o):((t,e,o)=>{const i=e.hasOwnProperty(o);return e.constructor.createProperty(o,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
31
+ const C={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:w},E=(t=C,e,o)=>{const{kind:i,metadata:r}=o;let n=globalThis.litPropertyMetadata.get(r);if(void 0===n&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(o.name,t),"accessor"===i){const{name:i}=o;return{set(o){const r=e.get.call(this);e.set.call(this,o),this.requestUpdate(i,r,t)},init(e){return void 0!==e&&this.C(i,void 0,t),e}}}if("setter"===i){const{name:i}=o;return function(o){const r=this[i];e.call(this,o),this.requestUpdate(i,r,t)}}throw Error("Unsupported decorator location: "+i)};function $(t){return(e,o)=>"object"==typeof o?E(t,e,o):((t,e,o)=>{const i=e.hasOwnProperty(o);return e.constructor.createProperty(o,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
32
32
  /**
33
33
  * @license
34
34
  * Copyright 2017 Google LLC
35
35
  * SPDX-License-Identifier: BSD-3-Clause
36
- */}function U(t){return R({...t,state:!0,attribute:!1})}
36
+ */}function R(t){return $({...t,state:!0,attribute:!1})}
37
37
  /**
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */const I=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,o)
41
+ */const U=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,o)
42
42
  /**
43
43
  * @license
44
44
  * Copyright 2017 Google LLC
45
45
  * SPDX-License-Identifier: BSD-3-Clause
46
- */;function k(t,e){return(o,i,r)=>{const n=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof i?o:r??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return I(0,0,{get(){let o=t.call(this);return void 0===o&&(o=n(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return I(0,0,{get(){return n(this)}})}}
46
+ */;function I(t,e){return(o,i,r)=>{const n=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof i?o:r??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return U(0,0,{get(){let o=t.call(this);return void 0===o&&(o=n(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return U(0,0,{get(){return n(this)}})}}
47
47
  /**
48
48
  * @license
49
49
  * Copyright 2017 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
- */function L(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var o,i,r;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(i=o;0!=i--;)if(!L(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!L(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((o=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(i=o;0!=i--;)if(!Object.prototype.hasOwnProperty.call(e,r[i]))return!1;for(i=o;0!=i--;){var n=r[i];if(!L(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const W=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function A(t,e){const o=()=>JSON.parse(JSON.stringify(t));return R({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!L(t,e),...null!=e?e:{}})}
51
+ */class k{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const o=[...this.callbacks];this.callbacks=[];const i=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void i(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}function L(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var o,i,r;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(i=o;0!=i--;)if(!L(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!L(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((o=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(i=o;0!=i--;)if(!Object.prototype.hasOwnProperty.call(e,r[i]))return!1;for(i=o;0!=i--;){var n=r[i];if(!L(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const W=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function A(t,e){const o=()=>JSON.parse(JSON.stringify(t));return $({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!L(t,e),...null!=e?e:{}})}
52
52
  /**
53
53
  * @license
54
54
  * Copyright 2017 Google LLC
@@ -81,7 +81,7 @@ let me=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
81
81
  * @license
82
82
  * Copyright 2019 Google LLC
83
83
  * SPDX-License-Identifier: BSD-3-Clause
84
- */class Ie extends me{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)=>{Ue?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=Re.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var ke,Le=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const We=Symbol("constructorPrototype"),Ae=Symbol("constructorName"),je=Symbol("exportpartsDebouncer");class Fe extends Ie{constructor(){super(),this[ke]=new r(5),this[Ae]=this.constructor.name,this[We]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ae]&&Object.setPrototypeOf(this,this[We])}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[je].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,i,r,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!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],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(", "))}}ke=je,Le([R()],Fe.prototype,"exportpartsPrefix",void 0),Le([A([])],Fe.prototype,"exportpartsPrefixes",void 0),Le([R()],Fe.prototype,"customStylesheet",void 0);const Ke=xe.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");xt`
84
+ */class Ie extends me{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)=>{Ue?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),i=Re.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var ke,Le=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const We=Symbol("constructorPrototype"),Ae=Symbol("constructorName"),je=Symbol("exportpartsDebouncer");class Fe extends Ie{constructor(){super(),this[ke]=new k(5),this[Ae]=this.constructor.name,this[We]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ae]&&Object.setPrototypeOf(this,this[We])}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[je].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,i,r,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!==(r=null===(i=t.getAttribute("part"))||void 0===i?void 0:i.split(" "))&&void 0!==r?r:[],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(", "))}}ke=je,Le([$()],Fe.prototype,"exportpartsPrefix",void 0),Le([A([])],Fe.prototype,"exportpartsPrefixes",void 0),Le([$()],Fe.prototype,"customStylesheet",void 0);const Ke=xe.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");xt`
85
85
  .highlight-html-match {
86
86
  background: ${Ke};
87
87
  }
@@ -117,16 +117,16 @@ let me=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
117
117
  display: inline-block;
118
118
  width: 0;
119
119
  }
120
- `;class Me{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),r}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()}}}function Be(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var De,Te,Ze;const _e=Symbol("internalReduxEventsUnsubscribers"),He=Symbol("internalStoresUnsubscribers"),Ge=Symbol("internalStores");class Ve extends Fe{constructor(){super(...arguments),this[De]=new Map,this[Te]=new Map,this[Ze]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Ge].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ge].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ge].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Be(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[Ge].delete(e)}setupStore(t,e){this[Ge].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ge].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.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[He].has(t.store):this[He].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[He].set(t,e.subscribe((()=>this.updateFromStores()))),Be(e)&&e.eventBus&&(null===(o=this.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const i=t=>this[o](t);e.eventBus.addEventListener(t.eventName,i),this[_e].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[He].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[_e].forEach((t=>t())),this[_e]=[]}unsubscribeFromStore(t){this[He].has(t)&&this[He].get(t)(),this[He].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function qe(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];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 Ye(t){return!!t&&!!t[Ko]}function Xe(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)===Po}(t)||Array.isArray(t)||!!t[Fo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Fo])||io(t)||ro(t))}function Je(t,e,o){void 0===o&&(o=!1),0===Qe(t)?(o?Object.keys:zo)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function Qe(t){var e=t[Ko];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:io(t)?2:ro(t)?3:0}function to(t,e){return 2===Qe(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function eo(t,e,o){var i=Qe(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function oo(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function io(t){return Lo&&t instanceof Map}function ro(t){return Wo&&t instanceof Set}function no(t){return t.o||t.t}function ao(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Mo(t);delete e[Ko];for(var o=zo(e),i=0;i<o.length;i++){var r=o[i],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function so(t,e){return void 0===e&&(e=!1),lo(t)||Ye(t)||!Xe(t)||(Qe(t)>1&&(t.set=t.add=t.clear=t.delete=co),Object.freeze(t),e&&Je(t,(function(t,e){return so(e,!0)}),!0)),t}function co(){qe(2)}function lo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function fo(t){var e=Bo[t];return e||qe(18,t),e}function ho(){return Io}function po(t,e){e&&(fo("Patches"),t.u=[],t.s=[],t.v=e)}function uo(t){yo(t),t.p.forEach(bo),t.p=null}function yo(t){t===Io&&(Io=t.l)}function go(t){return Io={p:[],l:Io,h:t,m:!0,_:0}}function bo(t){var e=t[Ko];0===e.i||1===e.i?e.j():e.g=!0}function mo(t,e){e._=e.p.length;var o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||fo("ES5").S(e,t,i),i?(o[Ko].P&&(uo(e),qe(4)),Xe(t)&&(t=vo(e,t),e.l||xo(e,t)),e.u&&fo("Patches").M(o[Ko].t,t,e.u,e.s)):t=vo(e,o,[]),uo(e),e.u&&e.v(e.u,e.s),t!==jo?t:void 0}function vo(t,e,o){if(lo(e))return e;var i=e[Ko];if(!i)return Je(e,(function(r,n){return Oo(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return xo(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=ao(i.k):i.o,n=r,a=!1;3===i.i&&(n=new Set(r),r.clear(),a=!0),Je(n,(function(e,n){return Oo(t,i,r,e,n,o,a)})),xo(t,r,!1),o&&t.u&&fo("Patches").N(i,o,t.u,t.s)}return i.o}function Oo(t,e,o,i,r,n,a){if(Ye(r)){var s=vo(t,r,n&&e&&3!==e.i&&!to(e.R,i)?n.concat(i):void 0);if(eo(o,i,s),!Ye(s))return;t.m=!1}else a&&o.add(r);if(Xe(r)&&!lo(r)){if(!t.h.D&&t._<1)return;vo(t,r),e&&e.A.l||xo(t,r)}}function xo(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&so(e,o)}function wo(t,e){var o=t[Ko];return(o?no(o):t)[e]}function So(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function No(t){t.P||(t.P=!0,t.l&&No(t.l))}function Co(t){t.o||(t.o=ao(t.t))}function Eo(t,e,o){var i=io(e)?fo("MapSet").F(e,o):ro(e)?fo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:ho(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=Do;o&&(r=[i],n=To);var a=Proxy.revocable(r,n),s=a.revoke,c=a.proxy;return i.k=c,i.j=s,c}(e,o):fo("ES5").J(e,o);return(o?o.A:ho()).p.push(i),i}function $o(t){return Ye(t)||qe(22,t),function t(e){if(!Xe(e))return e;var o,i=e[Ko],r=Qe(e);if(i){if(!i.P&&(i.i<4||!fo("ES5").K(i)))return i.t;i.I=!0,o=Ro(e,r),i.I=!1}else o=Ro(e,r);return Je(o,(function(e,r){i&&function(t,e){return 2===Qe(t)?t.get(e):t[e]}(i.t,e)===r||eo(o,e,t(r))})),3===r?new Set(o):o}(t)}function Ro(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ao(t)}De=He,Te=Ge,Ze=_e;var Uo,Io,ko="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Lo="undefined"!=typeof Map,Wo="undefined"!=typeof Set,Ao="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,jo=ko?Symbol.for("immer-nothing"):((Uo={})["immer-nothing"]=!0,Uo),Fo=ko?Symbol.for("immer-draftable"):"__$immer_draftable",Ko=ko?Symbol.for("immer-state"):"__$immer_state",Po=""+Object.prototype.constructor,zo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Mo=Object.getOwnPropertyDescriptors||function(t){var e={};return zo(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Bo={},Do={get:function(t,e){if(e===Ko)return t;var o=no(t);if(!to(o,e))return function(t,e,o){var i,r=So(e,o);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,o,e);var i=o[e];return t.I||!Xe(i)?i:i===wo(t.t,e)?(Co(t),t.o[e]=Eo(t.A.h,i,t)):i},has:function(t,e){return e in no(t)},ownKeys:function(t){return Reflect.ownKeys(no(t))},set:function(t,e,o){var i=So(no(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=wo(no(t),e),n=null==r?void 0:r[Ko];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(oo(o,r)&&(void 0!==o||to(t.t,e)))return!0;Co(t),No(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!==wo(t.t,e)||e in t.t?(t.R[e]=!1,Co(t),No(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=no(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:o[e]}:i},defineProperty:function(){qe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){qe(12)}},To={};Je(Do,(function(t,e){To[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),To.deleteProperty=function(t,e){return To.set.call(this,t,e,void 0)},To.set=function(t,e,o){return Do.set.call(this,t[0],e,o,t[0])};var Zo=function(){function t(t){var e=this;this.O=Ao,this.D=!0,this.produce=function(t,o,i){if("function"==typeof t&&"function"!=typeof o){var r=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,a=Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&qe(6),void 0!==i&&"function"!=typeof i&&qe(7),Xe(t)){var s=go(e),c=Eo(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?uo(s):yo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return po(s,i),mo(t,s)}),(function(t){throw uo(s),t})):(po(s,i),mo(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===jo&&(a=void 0),e.D&&so(a,!0),i){var f=[],h=[];fo("Patches").M(t,a,f,h),i(f,h)}return a}qe(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,n=e.produce(t,o,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,i,r]})):[n,i,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Xe(t)||qe(8),Ye(t)&&(t=$o(t));var e=go(this),o=Eo(this,t,void 0);return o[Ko].C=!0,yo(e),o},e.finishDraft=function(t,e){var o=(t&&t[Ko]).A;return po(o,e),mo(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ao&&qe(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var i=e[o];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}o>-1&&(e=e.slice(o+1));var r=fo("Patches").$;return Ye(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),_o=new Zo,Ho=_o.produce;function Go(t){return Go="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},Go(t)}function Vo(t){var e=function(t,e){if("object"!==Go(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==Go(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Go(e)?e:String(e)}function qo(t,e,o){return(e=Vo(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Yo(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function Xo(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Yo(Object(o),!0).forEach((function(e){qo(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Yo(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function Jo(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. "}_o.produceWithPatches.bind(_o),_o.setAutoFreeze.bind(_o),_o.setUseProxies.bind(_o),_o.applyPatches.bind(_o),_o.createDraft.bind(_o),_o.finishDraft.bind(_o);var Qo="function"==typeof Symbol&&Symbol.observable||"@@observable",ti=function(){return Math.random().toString(36).substring(7).split("").join(".")},ei={INIT:"@@redux/INIT"+ti(),REPLACE:"@@redux/REPLACE"+ti(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ti()}};function oi(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(Jo(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(Jo(1));return o(oi)(t,e)}if("function"!=typeof t)throw new Error(Jo(2));var r=t,n=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(Jo(3));return n}function h(t){if("function"!=typeof t)throw new Error(Jo(4));if(c)throw new Error(Jo(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(Jo(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function p(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(Jo(7));if(void 0===t.type)throw new Error(Jo(8));if(c)throw new Error(Jo(9));try{c=!0,n=r(n,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return p({type:ei.INIT}),(i={dispatch:p,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Jo(10));r=t,p({type:ei.REPLACE})}})[Qo]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Jo(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[Qo]=function(){return this},t},i}function ii(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(o[r]=t[r])}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:ei.INIT}))throw new Error(Jo(12));if(void 0===o(void 0,{type:ei.PROBE_UNKNOWN_ACTION()}))throw new Error(Jo(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},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(Jo(14));r[c]=h,i=i||h!==f}return(i=i||a.length!==Object.keys(t).length)?r:t}}function ri(){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 ni(){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),i=function(){throw new Error(Jo(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=ri.apply(void 0,n)(o.dispatch),Xo(Xo({},o),{},{dispatch:i})}}}function ai(t){return function(e){var o=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(o,i,t):e(r)}}}}var si=ai();si.withExtraArgument=ai;var ci,li=si,fi=(ci=function(t,e){return ci=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])},ci(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}ci(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),hi=function(t,e){var o,i,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(r=2&n[0]?i.return:n[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;switch(i=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},pi=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},ui=Object.defineProperty,di=Object.defineProperties,yi=Object.getOwnPropertyDescriptors,gi=Object.getOwnPropertySymbols,bi=Object.prototype.hasOwnProperty,mi=Object.prototype.propertyIsEnumerable,vi=function(t,e,o){return e in t?ui(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Oi=function(t,e){for(var o in e||(e={}))bi.call(e,o)&&vi(t,o,e[o]);if(gi)for(var i=0,r=gi(e);i<r.length;i++){o=r[i];mi.call(e,o)&&vi(t,o,e[o])}return t},xi=function(t,e){return di(t,yi(e))},wi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ri:ri.apply(null,arguments)};var Si=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return fi(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,pi([void 0],t[0].concat(this)))):new(e.bind.apply(e,pi([void 0],t.concat(this))))},e}(Array),Ni=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return fi(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,pi([void 0],t[0].concat(this)))):new(e.bind.apply(e,pi([void 0],t.concat(this))))},e}(Array);function Ci(t){return Xe(t)?Ho(t,(function(){})):t}function Ei(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new Si;o&&(!function(t){return"boolean"==typeof t}(o)?i.push(li.withExtraArgument(o.extraArgument)):i.push(li));return i}(t)}}function $i(t){var e,o=Ei(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,a=i.middleware,s=void 0===a?o():a,c=i.devTools,l=void 0===c||c,f=i.preloadedState,h=void 0===f?void 0:f,p=i.enhancers,u=void 0===p?void 0:p;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=ii(n)}var d=s;"function"==typeof d&&(d=d(o));var y=ni.apply(void 0,d),g=ri;l&&(g=wi(Oi({trace:!1},"object"==typeof l&&l)));var b=new Ni(y),m=b;return Array.isArray(u)?m=pi([y],u):"function"==typeof u&&(m=u(b)),oi(e,h,g.apply(void 0,m))}function Ri(t,e){function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var r=e.apply(void 0,o);if(!r)throw new Error("prepareAction did not return an object");return Oi(Oi({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.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 Ui(t){var e,o={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[o,i,e]}function Ii(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,i="function"==typeof t.initialState?t.initialState:Ci(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Ui(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,c=e[2],l=void 0===c?void 0:c,f=Oi(Oi({},r),s);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?Ui(e):[e,o,i],a=n[0],s=n[1],c=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Ci(t())};else{var l=Ci(t);r=function(){return l}}function f(t,e){void 0===t&&(t=r());var o=pi([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 i;if(Ye(t))return void 0===(i=o(t,e))?t:i;if(Xe(t))return Ho(t,(function(t){return o(t,e)}));if(void 0===(i=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return f.getInitialState=r,f}(i,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,i=a;o<i.length;o++){var r=i[o];t.addMatcher(r.matcher,r.reducer)}l&&t.addDefaultCase(l)}))}return n.forEach((function(t){var o,i,n=r[t],l=e+"/"+t;"reducer"in n?(o=n.reducer,i=n.prepare):o=n,a[t]=o,s[l]=o,c[t]=i?Ri(l,i):Ri(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 ki=["name","message","stack","code"],Li=function(t,e){this.payload=t,this.meta=e},Wi=function(t,e){this.payload=t,this.meta=e},Ai=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=ki;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function ji(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 i=Ri(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:xi(Oi({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=Ri(t+"/pending",(function(t,e,o){return{payload:void 0,meta:xi(Oi({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Ri(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||Ai)(t||"Rejected"),meta:xi(Oi({},n||{}),{arg:i,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,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}(),p=new a;function u(t){f=t,p.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,g,b,m;return hi(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===(O=g)||"object"!=typeof O||"function"!=typeof O.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return p.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(r(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:p.signal,abort:u,rejectWithValue:function(t,e){return new Li(t,e)},fulfillWithValue:function(t,e){return new Wi(t,e)}})).then((function(e){if(e instanceof Li)throw e;return e instanceof Wi?i(e.payload,h,t,e.meta):i(e,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Li?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 O}))},new Promise((function(t,e){var o=function(t){try{r(y.next(t))}catch(t){e(t)}},i=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,i)};r((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:u,requestId:h,arg:t,unwrap:function(){return d.then(ji)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var Fi="listenerMiddleware";Ri(Fi+"/add"),Ri(Fi+"/removeAll"),Ri(Fi+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=r[t];return o?o.enumerable=e:r[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Ko];return Do.get(e,t)},set:function(e){var o=this[Ko];Do.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Ko];if(!r.P)switch(r.i){case 5:i(r)&&No(r);break;case 4:o(r)&&No(r)}}}function o(t){for(var e=t.t,o=t.k,i=zo(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==Ko){var a=e[n];if(void 0===a&&!to(e,n))return!0;var s=o[n],c=s&&s[Ko];if(c?c.t!==a:!oo(s,a))return!0}}var l=!!e[Ko];return i.length!==zo(e).length+(l?0:1)}function i(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 i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){Bo[t]||(Bo[t]=e)}("ES5",{J:function(e,o){var i=Array.isArray(e),r=function(e,o){if(e){for(var i=Array(o.length),r=0;r<o.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var n=Mo(o);delete n[Ko];for(var a=zo(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)}(i,e),n={i:i?5:4,A:o?o.A:ho(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Ko,{value:n,writable:!0}),r},S:function(t,o,r){r?Ye(o)&&o[Ko].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Ko];if(o){var r=o.t,n=o.k,a=o.R,s=o.i;if(4===s)Je(n,(function(e){e!==Ko&&(void 0!==r[e]||to(r,e)?a[e]||t(n[e]):(a[e]=!0,No(o)))})),Je(r,(function(t){void 0!==n[t]||to(n,t)||(a[t]=!1,No(o))}));else if(5===s){if(i(o)&&(No(o),a.length=!0),n.length<r.length)for(var c=n.length;c<r.length;c++)a[c]=!1;else for(var l=r.length;l<n.length;l++)a[l]=!0;for(var f=Math.min(n.length,r.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):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Ki{static get(t){var e;const o="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,r=window.ftReduxStores[o];if(Be(r))return r;if(null==i)return;const n=Ii({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),a=$i({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[i.name]=new Ki(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const i=e,r=t[i];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[i]: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 Pi=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!L(t,e),attribute:!1,...e};R(r)(t,o);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(o,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[o],store:e.store})}},zi=Symbol("elementInternals");var Mi,Bi,Di;const Ti=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Di=null===(Bi=null===(Mi=window.safari)||void 0===Mi?void 0:Mi.pushNotification)||void 0===Bi?void 0:Bi.toString())&&void 0!==Di?Di:""),Zi=xt`
120
+ `;class Me{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,i;t=this.resolvePluralKey(t,e);let r=null!==(i=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==i?i:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),r}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()}}}function Be(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var De,Te,Ze;const _e=Symbol("internalReduxEventsUnsubscribers"),He=Symbol("internalStoresUnsubscribers"),Ge=Symbol("internalStores");class Ve extends Fe{constructor(){super(...arguments),this[De]=new Map,this[Te]=new Map,this[Ze]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Ge].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ge].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ge].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Be(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[Ge].delete(e)}setupStore(t,e){this[Ge].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ge].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxProperties&&this.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[He].has(t.store):this[He].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[He].set(t,e.subscribe((()=>this.updateFromStores()))),Be(e)&&e.eventBus&&(null===(o=this.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const i=t=>this[o](t);e.eventBus.addEventListener(t.eventName,i),this[_e].push((()=>e.eventBus.removeEventListener(t.eventName,i)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[He].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[_e].forEach((t=>t())),this[_e]=[]}unsubscribeFromStore(t){this[He].has(t)&&this[He].get(t)(),this[He].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function qe(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];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 Ye(t){return!!t&&!!t[Ko]}function Xe(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)===Po}(t)||Array.isArray(t)||!!t[Fo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Fo])||io(t)||ro(t))}function Je(t,e,o){void 0===o&&(o=!1),0===Qe(t)?(o?Object.keys:zo)(t).forEach((function(i){o&&"symbol"==typeof i||e(i,t[i],t)})):t.forEach((function(o,i){return e(i,o,t)}))}function Qe(t){var e=t[Ko];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:io(t)?2:ro(t)?3:0}function to(t,e){return 2===Qe(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function eo(t,e,o){var i=Qe(t);2===i?t.set(e,o):3===i?t.add(o):t[e]=o}function oo(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function io(t){return Lo&&t instanceof Map}function ro(t){return Wo&&t instanceof Set}function no(t){return t.o||t.t}function ao(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Mo(t);delete e[Ko];for(var o=zo(e),i=0;i<o.length;i++){var r=o[i],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function so(t,e){return void 0===e&&(e=!1),lo(t)||Ye(t)||!Xe(t)||(Qe(t)>1&&(t.set=t.add=t.clear=t.delete=co),Object.freeze(t),e&&Je(t,(function(t,e){return so(e,!0)}),!0)),t}function co(){qe(2)}function lo(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function fo(t){var e=Bo[t];return e||qe(18,t),e}function ho(){return Io}function po(t,e){e&&(fo("Patches"),t.u=[],t.s=[],t.v=e)}function uo(t){yo(t),t.p.forEach(bo),t.p=null}function yo(t){t===Io&&(Io=t.l)}function go(t){return Io={p:[],l:Io,h:t,m:!0,_:0}}function bo(t){var e=t[Ko];0===e.i||1===e.i?e.j():e.g=!0}function mo(t,e){e._=e.p.length;var o=e.p[0],i=void 0!==t&&t!==o;return e.h.O||fo("ES5").S(e,t,i),i?(o[Ko].P&&(uo(e),qe(4)),Xe(t)&&(t=vo(e,t),e.l||xo(e,t)),e.u&&fo("Patches").M(o[Ko].t,t,e.u,e.s)):t=vo(e,o,[]),uo(e),e.u&&e.v(e.u,e.s),t!==jo?t:void 0}function vo(t,e,o){if(lo(e))return e;var i=e[Ko];if(!i)return Je(e,(function(r,n){return Oo(t,i,e,r,n,o)}),!0),e;if(i.A!==t)return e;if(!i.P)return xo(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=ao(i.k):i.o,n=r,a=!1;3===i.i&&(n=new Set(r),r.clear(),a=!0),Je(n,(function(e,n){return Oo(t,i,r,e,n,o,a)})),xo(t,r,!1),o&&t.u&&fo("Patches").N(i,o,t.u,t.s)}return i.o}function Oo(t,e,o,i,r,n,a){if(Ye(r)){var s=vo(t,r,n&&e&&3!==e.i&&!to(e.R,i)?n.concat(i):void 0);if(eo(o,i,s),!Ye(s))return;t.m=!1}else a&&o.add(r);if(Xe(r)&&!lo(r)){if(!t.h.D&&t._<1)return;vo(t,r),e&&e.A.l||xo(t,r)}}function xo(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&so(e,o)}function wo(t,e){var o=t[Ko];return(o?no(o):t)[e]}function So(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function No(t){t.P||(t.P=!0,t.l&&No(t.l))}function Co(t){t.o||(t.o=ao(t.t))}function Eo(t,e,o){var i=io(e)?fo("MapSet").F(e,o):ro(e)?fo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),i={i:o?1:0,A:e?e.A:ho(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=i,n=Do;o&&(r=[i],n=To);var a=Proxy.revocable(r,n),s=a.revoke,c=a.proxy;return i.k=c,i.j=s,c}(e,o):fo("ES5").J(e,o);return(o?o.A:ho()).p.push(i),i}function $o(t){return Ye(t)||qe(22,t),function t(e){if(!Xe(e))return e;var o,i=e[Ko],r=Qe(e);if(i){if(!i.P&&(i.i<4||!fo("ES5").K(i)))return i.t;i.I=!0,o=Ro(e,r),i.I=!1}else o=Ro(e,r);return Je(o,(function(e,r){i&&function(t,e){return 2===Qe(t)?t.get(e):t[e]}(i.t,e)===r||eo(o,e,t(r))})),3===r?new Set(o):o}(t)}function Ro(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ao(t)}De=He,Te=Ge,Ze=_e;var Uo,Io,ko="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Lo="undefined"!=typeof Map,Wo="undefined"!=typeof Set,Ao="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,jo=ko?Symbol.for("immer-nothing"):((Uo={})["immer-nothing"]=!0,Uo),Fo=ko?Symbol.for("immer-draftable"):"__$immer_draftable",Ko=ko?Symbol.for("immer-state"):"__$immer_state",Po=""+Object.prototype.constructor,zo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Mo=Object.getOwnPropertyDescriptors||function(t){var e={};return zo(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Bo={},Do={get:function(t,e){if(e===Ko)return t;var o=no(t);if(!to(o,e))return function(t,e,o){var i,r=So(e,o);return r?"value"in r?r.value:null===(i=r.get)||void 0===i?void 0:i.call(t.k):void 0}(t,o,e);var i=o[e];return t.I||!Xe(i)?i:i===wo(t.t,e)?(Co(t),t.o[e]=Eo(t.A.h,i,t)):i},has:function(t,e){return e in no(t)},ownKeys:function(t){return Reflect.ownKeys(no(t))},set:function(t,e,o){var i=So(no(t),e);if(null==i?void 0:i.set)return i.set.call(t.k,o),!0;if(!t.P){var r=wo(no(t),e),n=null==r?void 0:r[Ko];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(oo(o,r)&&(void 0!==o||to(t.t,e)))return!0;Co(t),No(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!==wo(t.t,e)||e in t.t?(t.R[e]=!1,Co(t),No(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=no(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:i.enumerable,value:o[e]}:i},defineProperty:function(){qe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){qe(12)}},To={};Je(Do,(function(t,e){To[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),To.deleteProperty=function(t,e){return To.set.call(this,t,e,void 0)},To.set=function(t,e,o){return Do.set.call(this,t[0],e,o,t[0])};var Zo=function(){function t(t){var e=this;this.O=Ao,this.D=!0,this.produce=function(t,o,i){if("function"==typeof t&&"function"!=typeof o){var r=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var i=arguments.length,a=Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var i;return(i=o).call.apply(i,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&qe(6),void 0!==i&&"function"!=typeof i&&qe(7),Xe(t)){var s=go(e),c=Eo(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?uo(s):yo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return po(s,i),mo(t,s)}),(function(t){throw uo(s),t})):(po(s,i),mo(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===jo&&(a=void 0),e.D&&so(a,!0),i){var f=[],h=[];fo("Patches").M(t,a,f,h),i(f,h)}return a}qe(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(r))}))};var i,r,n=e.produce(t,o,(function(t,e){i=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,i,r]})):[n,i,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Xe(t)||qe(8),Ye(t)&&(t=$o(t));var e=go(this),o=Eo(this,t,void 0);return o[Ko].C=!0,yo(e),o},e.finishDraft=function(t,e){var o=(t&&t[Ko]).A;return po(o,e),mo(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Ao&&qe(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var i=e[o];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}o>-1&&(e=e.slice(o+1));var r=fo("Patches").$;return Ye(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),_o=new Zo,Ho=_o.produce;function Go(t){return Go="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},Go(t)}function Vo(t){var e=function(t,e){if("object"!==Go(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!==Go(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Go(e)?e:String(e)}function qo(t,e,o){return(e=Vo(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Yo(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,i)}return o}function Xo(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Yo(Object(o),!0).forEach((function(e){qo(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Yo(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function Jo(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. "}_o.produceWithPatches.bind(_o),_o.setAutoFreeze.bind(_o),_o.setUseProxies.bind(_o),_o.applyPatches.bind(_o),_o.createDraft.bind(_o),_o.finishDraft.bind(_o);var Qo="function"==typeof Symbol&&Symbol.observable||"@@observable",ti=function(){return Math.random().toString(36).substring(7).split("").join(".")},ei={INIT:"@@redux/INIT"+ti(),REPLACE:"@@redux/REPLACE"+ti(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ti()}};function oi(t,e,o){var i;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(Jo(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(Jo(1));return o(oi)(t,e)}if("function"!=typeof t)throw new Error(Jo(2));var r=t,n=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(Jo(3));return n}function h(t){if("function"!=typeof t)throw new Error(Jo(4));if(c)throw new Error(Jo(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(Jo(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function p(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(Jo(7));if(void 0===t.type)throw new Error(Jo(8));if(c)throw new Error(Jo(9));try{c=!0,n=r(n,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return p({type:ei.INIT}),(i={dispatch:p,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Jo(10));r=t,p({type:ei.REPLACE})}})[Qo]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Jo(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[Qo]=function(){return this},t},i}function ii(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var r=e[i];"function"==typeof t[r]&&(o[r]=t[r])}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:ei.INIT}))throw new Error(Jo(12));if(void 0===o(void 0,{type:ei.PROBE_UNKNOWN_ACTION()}))throw new Error(Jo(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var i=!1,r={},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(Jo(14));r[c]=h,i=i||h!==f}return(i=i||a.length!==Object.keys(t).length)?r:t}}function ri(){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 ni(){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),i=function(){throw new Error(Jo(15))},r={getState:o.getState,dispatch:function(){return i.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return i=ri.apply(void 0,n)(o.dispatch),Xo(Xo({},o),{},{dispatch:i})}}}function ai(t){return function(e){var o=e.dispatch,i=e.getState;return function(e){return function(r){return"function"==typeof r?r(o,i,t):e(r)}}}}var si=ai();si.withExtraArgument=ai;var ci,li=si,fi=(ci=function(t,e){return ci=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])},ci(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}ci(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),hi=function(t,e){var o,i,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(r=2&n[0]?i.return:n[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,n[1])).done)return r;switch(i=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],i=0}finally{o=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},pi=function(t,e){for(var o=0,i=e.length,r=t.length;o<i;o++,r++)t[r]=e[o];return t},ui=Object.defineProperty,di=Object.defineProperties,yi=Object.getOwnPropertyDescriptors,gi=Object.getOwnPropertySymbols,bi=Object.prototype.hasOwnProperty,mi=Object.prototype.propertyIsEnumerable,vi=function(t,e,o){return e in t?ui(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Oi=function(t,e){for(var o in e||(e={}))bi.call(e,o)&&vi(t,o,e[o]);if(gi)for(var i=0,r=gi(e);i<r.length;i++){o=r[i];mi.call(e,o)&&vi(t,o,e[o])}return t},xi=function(t,e){return di(t,yi(e))},wi="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ri:ri.apply(null,arguments)};var Si=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return fi(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,pi([void 0],t[0].concat(this)))):new(e.bind.apply(e,pi([void 0],t.concat(this))))},e}(Array),Ni=function(t){function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var r=t.apply(this,o)||this;return Object.setPrototypeOf(r,e.prototype),r}return fi(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,pi([void 0],t[0].concat(this)))):new(e.bind.apply(e,pi([void 0],t.concat(this))))},e}(Array);function Ci(t){return Xe(t)?Ho(t,(function(){})):t}function Ei(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var i=new Si;o&&(!function(t){return"boolean"==typeof t}(o)?i.push(li.withExtraArgument(o.extraArgument)):i.push(li));return i}(t)}}function $i(t){var e,o=Ei(),i=t||{},r=i.reducer,n=void 0===r?void 0:r,a=i.middleware,s=void 0===a?o():a,c=i.devTools,l=void 0===c||c,f=i.preloadedState,h=void 0===f?void 0:f,p=i.enhancers,u=void 0===p?void 0:p;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=ii(n)}var d=s;"function"==typeof d&&(d=d(o));var y=ni.apply(void 0,d),g=ri;l&&(g=wi(Oi({trace:!1},"object"==typeof l&&l)));var b=new Ni(y),m=b;return Array.isArray(u)?m=pi([y],u):"function"==typeof u&&(m=u(b)),oi(e,h,g.apply(void 0,m))}function Ri(t,e){function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var r=e.apply(void 0,o);if(!r)throw new Error("prepareAction did not return an object");return Oi(Oi({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.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 Ui(t){var e,o={},i=[],r={addCase:function(t,e){var i="string"==typeof t?t:t.type;if(i in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[i]=e,r},addMatcher:function(t,e){return i.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[o,i,e]}function Ii(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,i="function"==typeof t.initialState?t.initialState:Ci(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Ui(t.extraReducers):[t.extraReducers],o=e[0],r=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,c=e[2],l=void 0===c?void 0:c,f=Oi(Oi({},r),s);return function(t,e,o,i){void 0===o&&(o=[]);var r,n="function"==typeof e?Ui(e):[e,o,i],a=n[0],s=n[1],c=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Ci(t())};else{var l=Ci(t);r=function(){return l}}function f(t,e){void 0===t&&(t=r());var o=pi([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 i;if(Ye(t))return void 0===(i=o(t,e))?t:i;if(Xe(t))return Ho(t,(function(t){return o(t,e)}));if(void 0===(i=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return i}return t}),t)}return f.getInitialState=r,f}(i,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,i=a;o<i.length;o++){var r=i[o];t.addMatcher(r.matcher,r.reducer)}l&&t.addDefaultCase(l)}))}return n.forEach((function(t){var o,i,n=r[t],l=e+"/"+t;"reducer"in n?(o=n.reducer,i=n.prepare):o=n,a[t]=o,s[l]=o,c[t]=i?Ri(l,i):Ri(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 ki=["name","message","stack","code"],Li=function(t,e){this.payload=t,this.meta=e},Wi=function(t,e){this.payload=t,this.meta=e},Ai=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,i=ki;o<i.length;o++){var r=i[o];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function ji(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 i=Ri(t+"/fulfilled",(function(t,e,o,i){return{payload:t,meta:xi(Oi({},i||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),r=Ri(t+"/pending",(function(t,e,o){return{payload:void 0,meta:xi(Oi({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Ri(t+"/rejected",(function(t,e,i,r,n){return{payload:r,error:(o&&o.serializeError||Ai)(t||"Rejected"),meta:xi(Oi({},n||{}),{arg:i,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,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}(),p=new a;function u(t){f=t,p.abort()}var d=function(){return a=this,d=null,y=function(){var a,d,y,g,b,m;return hi(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===(O=g)||"object"!=typeof O||"function"!=typeof O.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return p.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(r(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:p.signal,abort:u,rejectWithValue:function(t,e){return new Li(t,e)},fulfillWithValue:function(t,e){return new Wi(t,e)}})).then((function(e){if(e instanceof Li)throw e;return e instanceof Wi?i(e.payload,h,t,e.meta):i(e,h,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Li?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 O}))},new Promise((function(t,e){var o=function(t){try{r(y.next(t))}catch(t){e(t)}},i=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,i)};r((y=y.apply(a,d)).next())}));var a,d,y}();return Object.assign(d,{abort:u,requestId:h,arg:t,unwrap:function(){return d.then(ji)}})}}),{pending:r,rejected:n,fulfilled:i,typePrefix:t})}t.withTypes=function(){return t}}();var Fi="listenerMiddleware";Ri(Fi+"/add"),Ri(Fi+"/removeAll"),Ri(Fi+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=r[t];return o?o.enumerable=e:r[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Ko];return Do.get(e,t)},set:function(e){var o=this[Ko];Do.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Ko];if(!r.P)switch(r.i){case 5:i(r)&&No(r);break;case 4:o(r)&&No(r)}}}function o(t){for(var e=t.t,o=t.k,i=zo(o),r=i.length-1;r>=0;r--){var n=i[r];if(n!==Ko){var a=e[n];if(void 0===a&&!to(e,n))return!0;var s=o[n],c=s&&s[Ko];if(c?c.t!==a:!oo(s,a))return!0}}var l=!!e[Ko];return i.length!==zo(e).length+(l?0:1)}function i(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 i=0;i<e.length;i++)if(!e.hasOwnProperty(i))return!0;return!1}var r={};!function(t,e){Bo[t]||(Bo[t]=e)}("ES5",{J:function(e,o){var i=Array.isArray(e),r=function(e,o){if(e){for(var i=Array(o.length),r=0;r<o.length;r++)Object.defineProperty(i,""+r,t(r,!0));return i}var n=Mo(o);delete n[Ko];for(var a=zo(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)}(i,e),n={i:i?5:4,A:o?o.A:ho(),P:!1,I:!1,R:{},l:o,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Ko,{value:n,writable:!0}),r},S:function(t,o,r){r?Ye(o)&&o[Ko].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Ko];if(o){var r=o.t,n=o.k,a=o.R,s=o.i;if(4===s)Je(n,(function(e){e!==Ko&&(void 0!==r[e]||to(r,e)?a[e]||t(n[e]):(a[e]=!0,No(o)))})),Je(r,(function(t){void 0!==n[t]||to(n,t)||(a[t]=!1,No(o))}));else if(5===s){if(i(o)&&(No(o),a.length=!0),n.length<r.length)for(var c=n.length;c<r.length;c++)a[c]=!1;else for(var l=r.length;l<n.length;l++)a[l]=!0;for(var f=Math.min(n.length,r.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):i(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Ki{static get(t){var e;const o="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,r=window.ftReduxStores[o];if(Be(r))return r;if(null==i)return;const n=Ii({...i,reducers:null!==(e=i.reducers)&&void 0!==e?e:{}}),a=$i({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[i.name]=new Ki(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const i=e,r=t[i];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[i]: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 Pi=t=>{const e=null!=t?t:{};return(t,o)=>{var i;const r={hasChanged:(t,e)=>!L(t,e),attribute:!1,...e};$(r)(t,o);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(o,{selector:null!==(i=e.selector)&&void 0!==i?i:t=>t[o],store:e.store})}},zi=Symbol("elementInternals");var Mi,Bi,Di;const Ti=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Di=null===(Bi=null===(Mi=window.safari)||void 0===Mi?void 0:Mi.pushNotification)||void 0===Bi?void 0:Bi.toString())&&void 0!==Di?Di:""),Zi=xt`
121
121
  `;var _i,Hi,Gi,Vi,qi,Yi,Xi,Ji,Qi,tr,er,or,ir,rr;!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 i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.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 p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t: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=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=p(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),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);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,i,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new c(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),d.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new c(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.prototype),u.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new 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,i){return new Promise((function(r,n){var a=new y(t,i);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(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new b(i,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,"U",{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"}(_i||(_i={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Hi||(Hi={})),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"}(Gi||(Gi={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Vi||(Vi={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(qi||(qi={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Yi||(Yi={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Xi||(Xi={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Ji||(Ji={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Qi||(Qi={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(tr||(tr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(er||(er={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(or||(or={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(ir||(ir={})),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"}(rr||(rr={})),rr.PERSONAL_BOOK_SHARE_USER,rr.PERSONAL_BOOK_USER,rr.HTML_EXPORT_USER,rr.PERSONAL_BOOK_USER,rr.PDF_EXPORT_USER,rr.PERSONAL_BOOK_USER,rr.KHUB_ADMIN,rr.CONTENT_PUBLISHER,rr.ADMIN,rr.KHUB_ADMIN,rr.USERS_ADMIN,rr.PORTAL_ADMIN,rr.DEVELOPER,rr.BETA_USER,rr.DEBUG_USER;const nr=xt`
122
- `,ar=Ki.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 sr{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=ar.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?sr.build(t):null!==(e=sr.API)&&void 0!==e?e:sr.API=sr.build()}static await(t){return new Promise((e=>{let o=sr.get(t);if(o)e(o);else{const i=ar.subscribe((()=>{o=sr.get(t),o&&(i(),e(o))}))}}))}}var cr;const lr=Symbol("clearAfterUnitTest");class fr{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i,this.listeners={},this.currentUiLocale="",this[cr]=()=>{this.defaultMessages={},this.cache=new i,this.listeners={}},this.currentUiLocale=ar.getState().uiLocale,ar.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=ar.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 i={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};L(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var i,r,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new Me(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=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}cr=lr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new fr((async(t,e)=>(await sr.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new fr((async(t,e)=>(await sr.await()).getCustomMessageContext(t,e))));const hr=window.FluidTopicsI18nService,pr=window.FluidTopicsCustomI18nService;var ur=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class dr extends Fe{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=()=>sr.get(),this.cache=new i,this.cleanSessionDebouncer=new r}render(){return ie`
122
+ `,ar=Ki.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 sr{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=ar.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?sr.build(t):null!==(e=sr.API)&&void 0!==e?e:sr.API=sr.build()}static await(t){return new Promise((e=>{let o=sr.get(t);if(o)e(o);else{const i=ar.subscribe((()=>{o=sr.get(t),o&&(i(),e(o))}))}}))}}var cr;const lr=Symbol("clearAfterUnitTest");class fr{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i,this.listeners={},this.currentUiLocale="",this[cr]=()=>{this.defaultMessages={},this.cache=new i,this.listeners={}},this.currentUiLocale=ar.getState().uiLocale,ar.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=ar.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 i={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};L(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var i,r,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new Me(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=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}cr=lr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new fr((async(t,e)=>(await sr.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new fr((async(t,e)=>(await sr.await()).getCustomMessageContext(t,e))));const hr=window.FluidTopicsI18nService,pr=window.FluidTopicsCustomI18nService;var ur=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class dr extends Fe{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=()=>sr.get(),this.cache=new i,this.cleanSessionDebouncer=new k}render(){return ie`
123
123
  <slot></slot>
124
- `}update(t){super.update(t),t.has("baseUrl")&&ar.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&ar.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&ar.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&ar.actions.setNoCustom(this.noCustom),t.has("editorMode")&&ar.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&ar.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&ar.actions.setSession(this.session),t.has("availableUiLocales")&&ar.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>hr.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()))))}}dr.elementDefinitions={},dr.styles=nr,ur([R()],dr.prototype,"baseUrl",void 0),ur([R()],dr.prototype,"apiIntegrationIdentifier",void 0),ur([R()],dr.prototype,"uiLocale",void 0),ur([A([])],dr.prototype,"availableUiLocales",void 0),ur([R({type:Boolean})],dr.prototype,"editorMode",void 0),ur([R({type:Boolean})],dr.prototype,"noCustom",void 0),ur([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],dr.prototype,"noCustomComponent",void 0),ur([R({type:Boolean})],dr.prototype,"withManualResources",void 0),ur([A([])],dr.prototype,"messageContexts",void 0),ur([A(void 0)],dr.prototype,"session",void 0),ur([R({type:Object})],dr.prototype,"apiProvider",void 0);class yr{async listMySearches(){var t;return(null===(t=ar.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await sr.await()).listMySearches(ar.getState().session.profile.userId):[]}}const gr=new i;class br{async listMyBookmarks(){return gr.get("bookmarks",(async()=>(await sr.await()).listMyBookmarks(ar.getState().session.profile.userId)))}clearCache(){gr.clear("bookmarks")}}const mr=Ki.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=ar.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new br,ar.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=ar.getState();L(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(){mr.actions.savedSearches(void 0)}clearMyBookmarks(){mr.actions.bookmarks(void 0)}async reloadMySearches(){const t=new yr,e=await t.listMySearches();mr.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;mr.actions.bookmarks(e)}}},W("ft-app-context")(dr);class vr extends Event{constructor(){super(vr.eventName)}}vr.eventName="search-context-clear-all-filters";var Or=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class xr extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const wr=Symbol("registerInterval");class Sr 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[wr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[wr]):this.dispatchEvent(new xr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=wr,Or([U()],o.prototype,"stateManager",void 0),o}(Ve)){}var Nr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Cr extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}}const Er=Symbol("registerInterval");class $r extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}connectedCallback(){super.connectedCallback(),this[Er]=window.setInterval((()=>this.tryToRegisterToResultContext()),50)}tryToRegisterToResultContext(){null!=this.result?window.clearInterval(this[Er]):this.dispatchEvent(new Cr)}disconnectedCallback(){super.disconnectedCallback(),this.result=void 0}}return e=Er,Nr([R({attribute:!1})],o.prototype,"result",void 0),o}(Sr)){}const Rr=xt`
125
- `;var Ur=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ir=Symbol("i18nProperties"),kr=Symbol("i18nUnsubs");function Lr(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?pr:hr}i18n(t,e,...o){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[Ir])||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[Ir])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ir]&&new Set([...this[Ir].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[kr].has(t)||this[kr].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[kr].forEach((t=>t())),this[kr].clear()}}return e=kr,Ur([R({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Wr extends(Lr(Fe)){}class Ar extends(Lr(Ve)){}var jr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Fr extends Ar{constructor(){super(),this.editorMode=!1,this.addStore(ar)}render(){return this.key&&this.context?ie`
124
+ `}update(t){super.update(t),t.has("baseUrl")&&ar.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&ar.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&ar.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&ar.actions.setNoCustom(this.noCustom),t.has("editorMode")&&ar.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&ar.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&ar.actions.setSession(this.session),t.has("availableUiLocales")&&ar.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>hr.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()))))}}dr.elementDefinitions={},dr.styles=nr,ur([$()],dr.prototype,"baseUrl",void 0),ur([$()],dr.prototype,"apiIntegrationIdentifier",void 0),ur([$()],dr.prototype,"uiLocale",void 0),ur([A([])],dr.prototype,"availableUiLocales",void 0),ur([$({type:Boolean})],dr.prototype,"editorMode",void 0),ur([$({type:Boolean})],dr.prototype,"noCustom",void 0),ur([$({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],dr.prototype,"noCustomComponent",void 0),ur([$({type:Boolean})],dr.prototype,"withManualResources",void 0),ur([A([])],dr.prototype,"messageContexts",void 0),ur([A(void 0)],dr.prototype,"session",void 0),ur([$({type:Object})],dr.prototype,"apiProvider",void 0);class yr{async listMySearches(){var t;return(null===(t=ar.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await sr.await()).listMySearches(ar.getState().session.profile.userId):[]}}const gr=new i;class br{async listMyBookmarks(){return gr.get("bookmarks",(async()=>(await sr.await()).listMyBookmarks(ar.getState().session.profile.userId)))}clearCache(){gr.clear("bookmarks")}}const mr=Ki.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=ar.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new br,ar.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=ar.getState();L(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(){mr.actions.savedSearches(void 0)}clearMyBookmarks(){mr.actions.bookmarks(void 0)}async reloadMySearches(){const t=new yr,e=await t.listMySearches();mr.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;mr.actions.bookmarks(e)}}},W("ft-app-context")(dr);class vr extends Event{constructor(){super(vr.eventName)}}vr.eventName="search-context-clear-all-filters";var Or=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class xr extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const wr=Symbol("registerInterval");class Sr 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[wr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[wr]):this.dispatchEvent(new xr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=wr,Or([R()],o.prototype,"stateManager",void 0),o}(Ve)){}var Nr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Cr extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}}const Er=Symbol("registerInterval");class $r extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}connectedCallback(){super.connectedCallback(),this[Er]=window.setInterval((()=>this.tryToRegisterToResultContext()),50)}tryToRegisterToResultContext(){null!=this.result?window.clearInterval(this[Er]):this.dispatchEvent(new Cr)}disconnectedCallback(){super.disconnectedCallback(),this.result=void 0}}return e=Er,Nr([$({attribute:!1})],o.prototype,"result",void 0),o}(Sr)){}const Rr=xt`
125
+ `;var Ur=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ir=Symbol("i18nProperties"),kr=Symbol("i18nUnsubs");function Lr(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?pr:hr}i18n(t,e,...o){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[Ir])||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[Ir])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ir]&&new Set([...this[Ir].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[kr].has(t)||this[kr].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[kr].forEach((t=>t())),this[kr].clear()}}return e=kr,Ur([$({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Wr extends(Lr(Fe)){}class Ar extends(Lr(Ve)){}var jr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Fr extends Ar{constructor(){super(),this.editorMode=!1,this.addStore(ar)}render(){return this.key&&this.context?ie`
126
126
  <span class="ft-i18n">
127
127
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
128
128
  </span>
129
- `:this.editorMode?"Select a context and a label key.":ne}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Fr.elementDefinitions={},Fr.styles=Rr,jr([Pi()],Fr.prototype,"editorMode",void 0),jr([R()],Fr.prototype,"context",void 0),jr([R()],Fr.prototype,"key",void 0),jr([A([])],Fr.prototype,"args",void 0),jr([R()],Fr.prototype,"defaultMessage",void 0);class Kr{static build(t){return new Kr(t)}static fromGwt(t){return new Kr(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)=>hr.resolveMessage(this.name,e,...t)})}}W("ft-i18n")(Fr);const Pr=Kr.build("designedSearchResultMetadata"),zr=Symbol.for(""),Mr=t=>{if(t?.r===zr)return t?._$litStatic$},Br=t=>({_$litStatic$:t,r:zr}),Dr=new Map,Tr=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let c,l=0,f=!1;for(;l<i;){for(c=e[l];l<i&&void 0!==(n=o[l],r=Mr(n));)c+=r+e[++l],f=!0;l!==i&&s.push(n),a.push(c),l++}if(l===i&&a.push(e[i]),f){const t=a.join("$$lit$$");void 0===(e=Dr.get(t))&&(a.raw=a,Dr.set(t,e=a)),o=s}return t(e,...o)})(tt);
129
+ `:this.editorMode?"Select a context and a label key.":ne}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Fr.elementDefinitions={},Fr.styles=Rr,jr([Pi()],Fr.prototype,"editorMode",void 0),jr([$()],Fr.prototype,"context",void 0),jr([$()],Fr.prototype,"key",void 0),jr([A([])],Fr.prototype,"args",void 0),jr([$()],Fr.prototype,"defaultMessage",void 0);class Kr{static build(t){return new Kr(t)}static fromGwt(t){return new Kr(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)=>hr.resolveMessage(this.name,e,...t)})}}W("ft-i18n")(Fr);const Pr=Kr.build("designedSearchResultMetadata"),zr=Symbol.for(""),Mr=t=>{if(t?.r===zr)return t?._$litStatic$},Br=t=>({_$litStatic$:t,r:zr}),Dr=new Map,Tr=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let c,l=0,f=!1;for(;l<i;){for(c=e[l];l<i&&void 0!==(n=o[l],r=Mr(n));)c+=r+e[++l],f=!0;l!==i&&s.push(n),a.push(c),l++}if(l===i&&a.push(e[i]),f){const t=a.join("$$lit$$");void 0===(e=Dr.get(t))&&(a.raw=a,Dr.set(t,e=a)),o=s}return t(e,...o)})(tt);
130
130
  /**
131
131
  * @license
132
132
  * Copyright 2020 Google LLC
@@ -242,7 +242,7 @@ let me=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
242
242
  </${Br(this.element)}>
243
243
  `:Tr`
244
244
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
245
- `}}ra.styles=[_n,Hn,Gn,Vn,qn,Yn,Xn,Jn,Qn,ta,ea,...oa],ia([R()],ra.prototype,"element",void 0),ia([R()],ra.prototype,"variant",void 0),W("ft-typography")(ra);const na=xe.create("--ft-tooltip-distance","","SIZE","4px"),aa=xe.create("--ft-tooltip-color","","COLOR","#FFFFFF"),sa=xe.create("--ft-tooltip-background-color","","COLOR","#666666"),ca=xe.create("--ft-tooltip-z-index","","NUMBER","100"),la=xe.external($e.borderRadiusS,"Design system"),fa=xe.create("--ft-tooltip-max-width","","SIZE","150px"),ha=xt`
245
+ `}}ra.styles=[_n,Hn,Gn,Vn,qn,Yn,Xn,Jn,Qn,ta,ea,...oa],ia([$()],ra.prototype,"element",void 0),ia([$()],ra.prototype,"variant",void 0),W("ft-typography")(ra);const na=xe.create("--ft-tooltip-distance","","SIZE","4px"),aa=xe.create("--ft-tooltip-color","","COLOR","#FFFFFF"),sa=xe.create("--ft-tooltip-background-color","","COLOR","#666666"),ca=xe.create("--ft-tooltip-z-index","","NUMBER","100"),la=xe.external($e.borderRadiusS,"Design system"),fa=xe.create("--ft-tooltip-max-width","","SIZE","150px"),ha=xt`
246
246
  .ft-tooltip--container {
247
247
  display: block;
248
248
  }
@@ -271,7 +271,7 @@ let me=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
271
271
  position: relative;
272
272
  word-break: break-word;
273
273
  }
274
- `;var pa=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ua extends Fe{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new r,this.revealDebouncer=new r}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ie`
274
+ `;var pa=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ua extends Fe{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 k,this.revealDebouncer=new k}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ie`
275
275
  <div part="container"
276
276
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
277
277
  @mouseenter=${this.onHover}
@@ -289,7 +289,7 @@ let me=class extends Kt{constructor(){super(...arguments),this.renderOptions={ho
289
289
  </div>
290
290
  </div>
291
291
  </div>
292
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,o=this.tooltip.offsetHeight,i=(t.offsetHeight-o)/2,r=(t.offsetWidth-e)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-o-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const c=this.tooltip.getBoundingClientRect();let l=-c.x,f=c.x+c.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(l,f))+"px";let h=-c.y,p=c.y+c.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(h,p))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${fa})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}ua.elementDefinitions={"ft-typography":ra},ua.styles=ha,pa([R()],ua.prototype,"text",void 0),pa([R({type:Boolean})],ua.prototype,"manual",void 0),pa([R({type:Boolean})],ua.prototype,"inline",void 0),pa([R({type:Number})],ua.prototype,"delay",void 0),pa([R()],ua.prototype,"position",void 0),pa([function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return I(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}()],ua.prototype,"slotNodes",void 0),pa([k(".ft-tooltip--container")],ua.prototype,"container",void 0),pa([k(".ft-tooltip")],ua.prototype,"tooltip",void 0),pa([k(".ft-tooltip--content")],ua.prototype,"tooltipContent",void 0),pa([U()],ua.prototype,"visible",void 0),W("ft-tooltip")(ua);
292
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,o=this.tooltip.offsetHeight,i=(t.offsetHeight-o)/2,r=(t.offsetWidth-e)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-o-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const c=this.tooltip.getBoundingClientRect();let l=-c.x,f=c.x+c.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(l,f))+"px";let h=-c.y,p=c.y+c.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(h,p))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${fa})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}ua.elementDefinitions={"ft-typography":ra},ua.styles=ha,pa([$()],ua.prototype,"text",void 0),pa([$({type:Boolean})],ua.prototype,"manual",void 0),pa([$({type:Boolean})],ua.prototype,"inline",void 0),pa([$({type:Number})],ua.prototype,"delay",void 0),pa([$()],ua.prototype,"position",void 0),pa([function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return U(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}()],ua.prototype,"slotNodes",void 0),pa([I(".ft-tooltip--container")],ua.prototype,"container",void 0),pa([I(".ft-tooltip")],ua.prototype,"tooltip",void 0),pa([I(".ft-tooltip--content")],ua.prototype,"tooltipContent",void 0),pa([R()],ua.prototype,"visible",void 0),W("ft-tooltip")(ua);
293
293
  /**
294
294
  * @license
295
295
  * Copyright 2017 Google LLC
@@ -412,7 +412,7 @@ const da=1,ya=2,ga=t=>(...e)=>({_$litDirective$:t,values:e});class ba{constructo
412
412
  opacity: ${Oa.opacityContentOnSurfacePressed};
413
413
  transform: translate(-50%, -50%) scale(1);
414
414
  }
415
- `;var Ra=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ua extends Fe{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new r(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new r(10),this.moveRipple=t=>{var e,o;let{x:i,y:r}=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!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return ie`
415
+ `;var Ra=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ua extends Fe{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 k(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 k(10),this.moveRipple=t=>{var e,o;let{x:i,y:r}=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!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return ie`
416
416
  <style>
417
417
  .ft-ripple .ft-ripple--effect {
418
418
  left: ${this.originX}px;
@@ -423,7 +423,7 @@ const da=1,ya=2,ga=t=>(...e)=>({_$litDirective$:t,values:e});class ba{constructo
423
423
  <div class="ft-ripple--background"></div>
424
424
  <div class="ft-ripple--effect"></div>
425
425
  </div>
426
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",o),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",o),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ua.elementDefinitions={},Ua.styles=$a,Ra([R({type:Boolean})],Ua.prototype,"primary",void 0),Ra([R({type:Boolean})],Ua.prototype,"secondary",void 0),Ra([R({type:Boolean})],Ua.prototype,"unbounded",void 0),Ra([R({type:Boolean})],Ua.prototype,"activated",void 0),Ra([R({type:Boolean})],Ua.prototype,"selected",void 0),Ra([R({type:Boolean})],Ua.prototype,"disabled",void 0),Ra([U()],Ua.prototype,"hovered",void 0),Ra([U()],Ua.prototype,"focused",void 0),Ra([U()],Ua.prototype,"pressed",void 0),Ra([U()],Ua.prototype,"rippling",void 0),Ra([U()],Ua.prototype,"originX",void 0),Ra([U()],Ua.prototype,"originY",void 0),Ra([k(".ft-ripple")],Ua.prototype,"ripple",void 0),Ra([k(".ft-ripple--effect")],Ua.prototype,"rippleEffect",void 0),W("ft-ripple")(Ua);
426
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",o),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",o),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ua.elementDefinitions={},Ua.styles=$a,Ra([$({type:Boolean})],Ua.prototype,"primary",void 0),Ra([$({type:Boolean})],Ua.prototype,"secondary",void 0),Ra([$({type:Boolean})],Ua.prototype,"unbounded",void 0),Ra([$({type:Boolean})],Ua.prototype,"activated",void 0),Ra([$({type:Boolean})],Ua.prototype,"selected",void 0),Ra([$({type:Boolean})],Ua.prototype,"disabled",void 0),Ra([R()],Ua.prototype,"hovered",void 0),Ra([R()],Ua.prototype,"focused",void 0),Ra([R()],Ua.prototype,"pressed",void 0),Ra([R()],Ua.prototype,"rippling",void 0),Ra([R()],Ua.prototype,"originX",void 0),Ra([R()],Ua.prototype,"originY",void 0),Ra([I(".ft-ripple")],Ua.prototype,"ripple",void 0),Ra([I(".ft-ripple--effect")],Ua.prototype,"rippleEffect",void 0),W("ft-ripple")(Ua);
427
427
  /**
428
428
  * @license
429
429
  * Copyright 2017 Google LLC
@@ -482,7 +482,7 @@ class Ia extends ba{constructor(t){if(super(t),this.et=ot,t.type!==ya)throw Erro
482
482
  ${ka(this.resolvedIcon)}
483
483
  <slot ?hidden=${e}></slot>
484
484
  </i>
485
- `}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 Fa.file_format:this.resolvedIcon=null!==(t=Wa[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Fa.material:this.resolvedIcon=this.value||ne;break;default:this.resolvedIcon=null!==(e=La[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Pa.elementDefinitions={},Pa.styles=ja,Ka([R()],Pa.prototype,"variant",void 0),Ka([R()],Pa.prototype,"value",void 0),Ka([U()],Pa.prototype,"resolvedIcon",void 0),Ka([k("slot")],Pa.prototype,"slottedContent",void 0),W("ft-icon")(Pa);const za={color:xe.extend("--ft-loader-color","",$e.colorPrimary),size:xe.create("--ft-loader-size","","SIZE","80px")},Ma=xt`
485
+ `}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 Fa.file_format:this.resolvedIcon=null!==(t=Wa[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Fa.material:this.resolvedIcon=this.value||ne;break;default:this.resolvedIcon=null!==(e=La[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Pa.elementDefinitions={},Pa.styles=ja,Ka([$()],Pa.prototype,"variant",void 0),Ka([$()],Pa.prototype,"value",void 0),Ka([R()],Pa.prototype,"resolvedIcon",void 0),Ka([I("slot")],Pa.prototype,"slottedContent",void 0),W("ft-icon")(Pa);const za={color:xe.extend("--ft-loader-color","",$e.colorPrimary),size:xe.create("--ft-loader-size","","SIZE","80px")},Ma=xt`
486
486
  :host {
487
487
  line-height: 0;
488
488
  }
@@ -718,7 +718,7 @@ class Ia extends ba{constructor(t){if(super(t),this.et=ot,t.type!==ya)throw Erro
718
718
  </ft-tooltip>
719
719
  `:t}resolveIcon(){return this.loading?ie`
720
720
  <ft-loader part="loader icon"></ft-loader> `:this.icon?ie`
721
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ne}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Ja.elementDefinitions={"ft-ripple":Ua,"ft-tooltip":ua,"ft-typography":ra,"ft-icon":Pa,"ft-loader":Ya},Xa([R({type:String,reflect:!0})],Ja.prototype,"role",void 0),Xa([R()],Ja.prototype,"type",void 0),Xa([R({type:Boolean})],Ja.prototype,"disabled",void 0),Xa([R()],Ja.prototype,"label",void 0),Xa([R()],Ja.prototype,"icon",void 0),Xa([R()],Ja.prototype,"iconVariant",void 0),Xa([R({type:Boolean})],Ja.prototype,"trailingIcon",void 0),Xa([R({type:Boolean})],Ja.prototype,"loading",void 0),Xa([R()],Ja.prototype,"tooltipPosition",void 0),Xa([R({type:Boolean})],Ja.prototype,"hideTooltip",void 0),Xa([R({type:Boolean})],Ja.prototype,"forceTooltip",void 0),Xa([k(".ft-button")],Ja.prototype,"button",void 0),Xa([k(".ft-button--label slot")],Ja.prototype,"slottedContent",void 0);var Qa=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ts extends Ja{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}ts.styles=[ze,qa],Qa([R({type:Boolean})],ts.prototype,"primary",void 0),Qa([R({type:Boolean})],ts.prototype,"outlined",void 0),Qa([R({type:Boolean})],ts.prototype,"dense",void 0),Qa([R({type:Boolean})],ts.prototype,"round",void 0);const es=[xt`
721
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ne}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Ja.elementDefinitions={"ft-ripple":Ua,"ft-tooltip":ua,"ft-typography":ra,"ft-icon":Pa,"ft-loader":Ya},Xa([$({type:String,reflect:!0})],Ja.prototype,"role",void 0),Xa([$()],Ja.prototype,"type",void 0),Xa([$({type:Boolean})],Ja.prototype,"disabled",void 0),Xa([$()],Ja.prototype,"label",void 0),Xa([$()],Ja.prototype,"icon",void 0),Xa([$()],Ja.prototype,"iconVariant",void 0),Xa([$({type:Boolean})],Ja.prototype,"trailingIcon",void 0),Xa([$({type:Boolean})],Ja.prototype,"loading",void 0),Xa([$()],Ja.prototype,"tooltipPosition",void 0),Xa([$({type:Boolean})],Ja.prototype,"hideTooltip",void 0),Xa([$({type:Boolean})],Ja.prototype,"forceTooltip",void 0),Xa([I(".ft-button")],Ja.prototype,"button",void 0),Xa([I(".ft-button--label slot")],Ja.prototype,"slottedContent",void 0);var Qa=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ts extends Ja{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}ts.styles=[ze,qa],Qa([$({type:Boolean})],ts.prototype,"primary",void 0),Qa([$({type:Boolean})],ts.prototype,"outlined",void 0),Qa([$({type:Boolean})],ts.prototype,"dense",void 0),Qa([$({type:Boolean})],ts.prototype,"round",void 0);const es=[xt`
722
722
  :host {
723
723
  display: inline-block;
724
724
  max-width: 100%;
@@ -936,7 +936,7 @@ class Ia extends ba{constructor(t){if(super(t),this.et=ot,t.type!==ya)throw Erro
936
936
  width: ${Ee.smallIconOnlyWidth};
937
937
  padding: unset;
938
938
  }
939
- `,Pe];var os=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class is extends Ja{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Zr.caption1medium:Zr.body2medium}}is.styles=[ze,es],os([R({type:Boolean})],is.prototype,"primary",void 0),os([R({type:Boolean})],is.prototype,"secondary",void 0),os([R({type:Boolean})],is.prototype,"tertiary",void 0),os([R({type:Boolean})],is.prototype,"neutral",void 0),os([R({type:Boolean})],is.prototype,"small",void 0),W("ft-button")(ts),W("ftds-button")(is);const rs=xe.extend("--ft-chip-color","",$e.colorOnSurface),ns={backgroundColor:xe.extend("--ft-chip-background-color","",$e.colorSurface),color:rs,fontSize:xe.extend("--ft-chip-font-size","",Cn.fontSize),iconSize:xe.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:xe.extend("--ft-chip-ripple-color","",rs),horizontalPadding:xe.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:xe.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:xe.external($e.colorOutline,"Design system"),opacityDisabled:xe.external($e.colorOpacityDisabled,"Design system")},as=xe.extend("--ft-chip-highlighted-color","",xe.extend("--ft-chip-color","",$e.colorOnPrimary)),ss={backgroundColor:xe.extend("--ft-chip-highlighted-background-color","",xe.extend("--ft-chip-background-color","",$e.colorPrimary)),color:as,rippleColor:xe.extend("--ft-chip-highlighted-ripple-color","",as)},cs=xe.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),ls=xe.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),fs=[Pe,xt`
939
+ `,Pe];var os=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class is extends Ja{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Zr.caption1medium:Zr.body2medium}}is.styles=[ze,es],os([$({type:Boolean})],is.prototype,"primary",void 0),os([$({type:Boolean})],is.prototype,"secondary",void 0),os([$({type:Boolean})],is.prototype,"tertiary",void 0),os([$({type:Boolean})],is.prototype,"neutral",void 0),os([$({type:Boolean})],is.prototype,"small",void 0),W("ft-button")(ts),W("ftds-button")(is);const rs=xe.extend("--ft-chip-color","",$e.colorOnSurface),ns={backgroundColor:xe.extend("--ft-chip-background-color","",$e.colorSurface),color:rs,fontSize:xe.extend("--ft-chip-font-size","",Cn.fontSize),iconSize:xe.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:xe.extend("--ft-chip-ripple-color","",rs),horizontalPadding:xe.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:xe.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:xe.external($e.colorOutline,"Design system"),opacityDisabled:xe.external($e.colorOpacityDisabled,"Design system")},as=xe.extend("--ft-chip-highlighted-color","",xe.extend("--ft-chip-color","",$e.colorOnPrimary)),ss={backgroundColor:xe.extend("--ft-chip-highlighted-background-color","",xe.extend("--ft-chip-background-color","",$e.colorPrimary)),color:as,rippleColor:xe.extend("--ft-chip-highlighted-ripple-color","",as)},cs=xe.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),ls=xe.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),fs=[Pe,xt`
940
940
  :host {
941
941
  display: inline-block;
942
942
  max-width: 100%;
@@ -1096,7 +1096,7 @@ class Ia extends ba{constructor(t){if(super(t),this.et=ot,t.type!==ya)throw Erro
1096
1096
  <div class="ft-chip--icon-container ft-no-text-select">
1097
1097
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
1098
1098
  </div>
1099
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new ps))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new ps))}getLabel(){return this.label||this.textContent}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}us.elementDefinitions={"ft-ripple":Ua,"ft-typography":ra,"ft-icon":Pa,"ft-button":ts},us.styles=fs,hs([R({type:Boolean})],us.prototype,"highlighted",void 0),hs([R({type:Boolean})],us.prototype,"removable",void 0),hs([R({type:Boolean})],us.prototype,"disabled",void 0),hs([R({type:Boolean})],us.prototype,"clickable",void 0),hs([R({type:Boolean})],us.prototype,"iconClickable",void 0),hs([R({type:Boolean})],us.prototype,"dense",void 0),hs([R({type:Boolean})],us.prototype,"multiLine",void 0),hs([R()],us.prototype,"label",void 0),hs([R()],us.prototype,"iconLabel",void 0),hs([R()],us.prototype,"icon",void 0),hs([R()],us.prototype,"iconVariant",void 0),hs([R({type:Boolean})],us.prototype,"trailingIcon",void 0),hs([k("ft-typography slot")],us.prototype,"slottedContent",void 0),W("ft-chip")(us);var ds=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ys extends(Lr($r)){constructor(){super(),this.useChip=!1,this.editorMode=!1,this.addStore(ar),this.addI18nContext(Pr)}render(){return this.useChip?ie`
1099
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new ps))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new ps))}getLabel(){return this.label||this.textContent}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}us.elementDefinitions={"ft-ripple":Ua,"ft-typography":ra,"ft-icon":Pa,"ft-button":ts},us.styles=fs,hs([$({type:Boolean})],us.prototype,"highlighted",void 0),hs([$({type:Boolean})],us.prototype,"removable",void 0),hs([$({type:Boolean})],us.prototype,"disabled",void 0),hs([$({type:Boolean})],us.prototype,"clickable",void 0),hs([$({type:Boolean})],us.prototype,"iconClickable",void 0),hs([$({type:Boolean})],us.prototype,"dense",void 0),hs([$({type:Boolean})],us.prototype,"multiLine",void 0),hs([$()],us.prototype,"label",void 0),hs([$()],us.prototype,"iconLabel",void 0),hs([$()],us.prototype,"icon",void 0),hs([$()],us.prototype,"iconVariant",void 0),hs([$({type:Boolean})],us.prototype,"trailingIcon",void 0),hs([I("ft-typography slot")],us.prototype,"slottedContent",void 0),W("ft-chip")(us);var ds=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ys extends(Lr($r)){constructor(){super(),this.useChip=!1,this.editorMode=!1,this.addStore(ar),this.addI18nContext(Pr)}render(){return this.useChip?ie`
1100
1100
  <ft-tooltip text="${this.tooltipText}">
1101
1101
  <ft-chip>${this.renderContent()}</ft-chip>
1102
1102
  </ft-tooltip>
@@ -1106,4 +1106,4 @@ class Ia extends ba{constructor(t){if(super(t),this.et=ot,t.type!==ya)throw Erro
1106
1106
  display: none !important;
1107
1107
  }
1108
1108
  </style>
1109
- `}getEllipsis(t){let e=this.maxLength?t.substring(0,this.maxLength):t;return e+(e.length<t.length?"…":"")}update(t){var e;super.update(t),(t.has("result")||t.has("key"))&&this.result&&(this.metadata=null===(e=this.resultData)||void 0===e?void 0:e.metadata.find((t=>t.key==this.key)))}get resultData(){var t,e,o,i,r;return null!==(i=null!==(e=null===(t=this.result)||void 0===t?void 0:t.map)&&void 0!==e?e:null===(o=this.result)||void 0===o?void 0:o.topic)&&void 0!==i?i:null===(r=this.result)||void 0===r?void 0:r.document}get valueText(){var t,e;return null!==(e=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==e?e:""}get tooltipText(){var t,e;return this.metadata?`${null!==(e=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==e?e:this.metadata.key}: ${this.valueText}`:""}}ys.elementDefinitions={"ft-tooltip":ua,"ft-chip":us},ys.styles=Zi,ds([R()],ys.prototype,"key",void 0),ds([R({type:Boolean})],ys.prototype,"useChip",void 0),ds([R({type:Number,attribute:"max-length"})],ys.prototype,"maxLength",void 0),ds([Pi({store:ar.name})],ys.prototype,"editorMode",void 0),ds([U()],ys.prototype,"metadata",void 0),W("ft-search-result-metadata")(ys),t.FtSearchResultMetadata=ys,t.FtSearchResultMetadataCssVariables={},t.styles=Zi}({});
1109
+ `}getEllipsis(t){let e=this.maxLength?t.substring(0,this.maxLength):t;return e+(e.length<t.length?"…":"")}update(t){var e;super.update(t),(t.has("result")||t.has("key"))&&this.result&&(this.metadata=null===(e=this.resultData)||void 0===e?void 0:e.metadata.find((t=>t.key==this.key)))}get resultData(){var t,e,o,i,r;return null!==(i=null!==(e=null===(t=this.result)||void 0===t?void 0:t.map)&&void 0!==e?e:null===(o=this.result)||void 0===o?void 0:o.topic)&&void 0!==i?i:null===(r=this.result)||void 0===r?void 0:r.document}get valueText(){var t,e;return null!==(e=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==e?e:""}get tooltipText(){var t,e;return this.metadata?`${null!==(e=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==e?e:this.metadata.key}: ${this.valueText}`:""}}ys.elementDefinitions={"ft-tooltip":ua,"ft-chip":us},ys.styles=Zi,ds([$()],ys.prototype,"key",void 0),ds([$({type:Boolean})],ys.prototype,"useChip",void 0),ds([$({type:Number,attribute:"max-length"})],ys.prototype,"maxLength",void 0),ds([Pi({store:ar.name})],ys.prototype,"editorMode",void 0),ds([R()],ys.prototype,"metadata",void 0),W("ft-search-result-metadata")(ys),t.FtSearchResultMetadata=ys,t.FtSearchResultMetadataCssVariables={},t.styles=Zi}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-result-metadata",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Search result metadata for integrated search component",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,14 +19,14 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-chip": "1.1.2",
23
- "@fluid-topics/ft-search-result-context": "1.1.2",
24
- "@fluid-topics/ft-tooltip": "1.1.2",
25
- "@fluid-topics/ft-wc-utils": "1.1.2",
22
+ "@fluid-topics/ft-chip": "1.1.3",
23
+ "@fluid-topics/ft-search-result-context": "1.1.3",
24
+ "@fluid-topics/ft-tooltip": "1.1.3",
25
+ "@fluid-topics/ft-wc-utils": "1.1.3",
26
26
  "lit": "3.1.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@fluid-topics/public-api": "1.0.51"
30
30
  },
31
- "gitHead": "53ce99f657872582bca43cbb7ad691b239b22823"
31
+ "gitHead": "0d44a470e710f185c37e42ee87be4481a3bdf793"
32
32
  }