@fluid-topics/ft-search-saved-searches 1.0.61 → 1.0.63

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.
@@ -679,7 +679,7 @@ const ot=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
679
679
  </ft-tooltip>
680
680
  `:t}resolveIcon(){return this.loading?e.html`
681
681
  <ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
682
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}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}}Ge.elementDefinitions={"ft-ripple":m,"ft-tooltip":Pe,"ft-typography":Co,"ft-icon":Se,"ft-loader":je},Me([i.property({type:String,reflect:!0})],Ge.prototype,"role",void 0),Me([i.property()],Ge.prototype,"type",void 0),Me([i.property({type:Boolean})],Ge.prototype,"disabled",void 0),Me([i.property()],Ge.prototype,"label",void 0),Me([i.property()],Ge.prototype,"icon",void 0),Me([i.property()],Ge.prototype,"iconVariant",void 0),Me([i.property({type:Boolean})],Ge.prototype,"trailingIcon",void 0),Me([i.property({type:Boolean})],Ge.prototype,"loading",void 0),Me([i.property()],Ge.prototype,"tooltipPosition",void 0),Me([i.property({type:Boolean})],Ge.prototype,"hideTooltip",void 0),Me([i.property({type:Boolean})],Ge.prototype,"forceTooltip",void 0),Me([i.query(".ft-button")],Ge.prototype,"button",void 0),Me([i.query(".ft-button--label slot")],Ge.prototype,"slottedContent",void 0);var _e=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Ye extends Ge{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!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"}}Ye.styles=[o.safariEllipsisFix,Ke],_e([i.property({type:Boolean})],Ye.prototype,"primary",void 0),_e([i.property({type:Boolean})],Ye.prototype,"outlined",void 0),_e([i.property({type:Boolean})],Ye.prototype,"disabled",void 0),_e([i.property({type:Boolean})],Ye.prototype,"dense",void 0),_e([i.property({type:Boolean})],Ye.prototype,"round",void 0);const qe=[e.css`
682
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}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}}Ge.elementDefinitions={"ft-ripple":m,"ft-tooltip":Pe,"ft-typography":Co,"ft-icon":Se,"ft-loader":je},Me([i.property({type:String,reflect:!0})],Ge.prototype,"role",void 0),Me([i.property()],Ge.prototype,"type",void 0),Me([i.property({type:Boolean})],Ge.prototype,"disabled",void 0),Me([i.property()],Ge.prototype,"label",void 0),Me([i.property()],Ge.prototype,"icon",void 0),Me([i.property()],Ge.prototype,"iconVariant",void 0),Me([i.property({type:Boolean})],Ge.prototype,"trailingIcon",void 0),Me([i.property({type:Boolean})],Ge.prototype,"loading",void 0),Me([i.property()],Ge.prototype,"tooltipPosition",void 0),Me([i.property({type:Boolean})],Ge.prototype,"hideTooltip",void 0),Me([i.property({type:Boolean})],Ge.prototype,"forceTooltip",void 0),Me([i.query(".ft-button")],Ge.prototype,"button",void 0),Me([i.query(".ft-button--label slot")],Ge.prototype,"slottedContent",void 0);var _e=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Ye extends Ge{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"}}Ye.styles=[o.safariEllipsisFix,Ke],_e([i.property({type:Boolean})],Ye.prototype,"primary",void 0),_e([i.property({type:Boolean})],Ye.prototype,"outlined",void 0),_e([i.property({type:Boolean})],Ye.prototype,"dense",void 0),_e([i.property({type:Boolean})],Ye.prototype,"round",void 0);const qe=[e.css`
683
683
  :host {
684
684
  display: inline-block;
685
685
  max-width: 100%;
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,l=new Set(i.observedAttributes||[]);p(i,l,s);const c={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(i,c);let f=o.call(r,t);f||(f=h(t),e.call(r,t,f)),this===window.customElements&&(a.set(i,c),c.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){b.push(this),r.upgrade.apply(r,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),i.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,i=r._getDefinition(e);return i?u(o,i):n.set(o,r),o}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},p=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n,i),o.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),o.call(this,r,t,null)}else i.call(this,r)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t||"HTMLElement"===o?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(o)},u=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),i.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}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 b=[document];const g=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),b.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const v=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){b.push(this),o.set.call(this,t),b.pop()}})};if(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0!==i.get(o).formAssociated)throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`);r?.call(this,...e)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),i=e.get(r)||[];this[+o]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=i.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(yn){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,t)}}}class e extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class o extends Promise{constructor(t){super(((o,r)=>t((t=>{this.isCanceled?r(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?r(new e("Promise has been canceled",void 0,t)):r(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class r{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,r){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const i=(t=>new o(((e,o)=>t.then(e).catch(o))))(e());return this.content[t]=i,i.then((e=>(this.content[t]=e,null!=r&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),r)),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 i{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 r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,l=new Set(i.observedAttributes||[]);p(i,l,s);const c={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(i,c);let f=o.call(r,t);f||(f=h(t),e.call(r,t,f)),this===window.customElements&&(a.set(i,c),c.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),i.set(e,o),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!c(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,i=r._getDefinition(e);return i?u(o,i):n.set(o,r),o}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},p=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n,i),o.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),o.call(this,r,t,null)}else i.call(this,r)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t||"HTMLElement"===o?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(o)},u=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),i.set(t,e),l=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const v=(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(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0!==i.get(o).formAssociated)throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`);r?.call(this,...e)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),i=e.get(r)||[];this[+o]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=i.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(yn){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,t)}}}class e extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class o extends Promise{constructor(t){super(((o,r)=>t((t=>{this.isCanceled?r(new e("Promise has been canceled",t)):o(t)}),(t=>{this.isCanceled?r(new e("Promise has been canceled",void 0,t)):r(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class r{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,r){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const i=(t=>new o(((e,o)=>t.then(e).catch(o))))(e());return this.content[t]=i,i.then((e=>(this.content[t]=e,null!=r&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),r)),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 i{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 r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -44,7 +44,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
44
44
  * @license
45
45
  * Copyright 2019 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
- */const y=window,b=y.ShadowRoot&&(void 0===y.ShadyCSS||y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,g=Symbol(),v=new WeakMap;let m=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==g)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(b&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=v.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&v.set(e,t))}return t}toString(){return this.cssText}};const x=t=>new m("string"==typeof t?t:t+"",void 0,g),O=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[r+1]),t[0]);return new m(o,t,g)},w=(t,e)=>{b?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),r=y.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}))},S=b?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return x(e)})(t):t
47
+ */const y=window,g=y.ShadowRoot&&(void 0===y.ShadyCSS||y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,b=Symbol(),v=new WeakMap;let m=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==b)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(g&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=v.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&v.set(e,t))}return t}toString(){return this.cssText}};const x=t=>new m("string"==typeof t?t:t+"",void 0,b),O=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[r+1]),t[0]);return new m(o,t,b)},w=(t,e)=>{g?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),r=y.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}))},S=g?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return x(e)})(t):t
48
48
  /**
49
49
  * @license
50
50
  * Copyright 2017 Google LLC
@@ -55,7 +55,7 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
55
55
  * Copyright 2017 Google LLC
56
56
  * SPDX-License-Identifier: BSD-3-Clause
57
57
  */
58
- var W;L.finalized=!0,L.elementProperties=new Map,L.elementStyles=[],L.shadowRootOptions={mode:"open"},null==R||R({ReactiveElement:L}),(null!==(N=C.reactiveElementVersions)&&void 0!==N?N:C.reactiveElementVersions=[]).push("1.6.1");const A=window,j=A.trustedTypes,F=j?j.createPolicy("lit-html",{createHTML:t=>t}):void 0,B="$lit$",K=`lit$${(Math.random()+"").slice(9)}$`,D="?"+K,z=`<${D}>`,P=document,Z=()=>P.createComment(""),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,_=t=>T(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),H="[ \t\n\f\r]",G=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,q=/>/g,Y=RegExp(`>|${H}(?:([^\\s"'>=/]+)(${H}*=${H}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,J=/"/g,Q=/^(?:script|style|textarea|title)$/i,tt=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),et=Symbol.for("lit-noChange"),ot=Symbol.for("lit-nothing"),rt=new WeakMap,it=P.createTreeWalker(P,129,null,!1),nt=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":"",a=G;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,f=0;for(;f<o.length&&(a.lastIndex=f,l=a.exec(o),null!==l);)f=a.lastIndex,a===G?"!--"===l[1]?a=V:void 0!==l[1]?a=q:void 0!==l[2]?(Q.test(l[2])&&(i=RegExp("</"+l[2],"g")),a=Y):void 0!==l[3]&&(a=Y):a===Y?">"===l[0]?(a=null!=i?i:G,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Y:'"'===l[3]?J:X):a===J||a===X?a=Y:a===V||a===q?a=G:(a=Y,i=void 0);const h=a===Y&&t[e+1].startsWith("/>")?" ":"";n+=a===G?o+z:c>=0?(r.push(s),o.slice(0,c)+B+o.slice(c)+K+h):o+K+(-2===c?(r.push(void 0),e):h)}const s=n+(t[o]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(s):s,r]};class at{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let i=0,n=0;const a=t.length-1,s=this.parts,[l,c]=nt(t,e);if(this.el=at.createElement(l,o),it.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=it.nextNode())&&s.length<a;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith(B)||e.startsWith(K)){const o=c[n++];if(t.push(e),void 0!==o){const t=r.getAttribute(o.toLowerCase()+B).split(K),e=/([.?@])?(.*)/.exec(o);s.push({type:1,index:i,name:e[2],strings:t,ctor:"."===e[1]?ht:"?"===e[1]?dt:"@"===e[1]?ut:ft})}else s.push({type:6,index:i})}for(const e of t)r.removeAttribute(e)}if(Q.test(r.tagName)){const t=r.textContent.split(K),e=t.length-1;if(e>0){r.textContent=j?j.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],Z()),it.nextNode(),s.push({type:2,index:++i});r.append(t[e],Z())}}}else if(8===r.nodeType)if(r.data===D)s.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(K,t+1));)s.push({type:7,index:i}),t+=K.length-1}i++}}static createElement(t,e){const o=P.createElement("template");return o.innerHTML=t,o}}function st(t,e,o=t,r){var i,n,a,s;if(e===et)return e;let l=void 0!==r?null===(i=o._$Co)||void 0===i?void 0:i[r]:o._$Cl;const c=M(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,o,r)),void 0!==r?(null!==(a=(s=o)._$Co)&&void 0!==a?a:s._$Co=[])[r]=l:o._$Cl=l),void 0!==l&&(e=st(t,l._$AS(t,e.values),l,r)),e}let lt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:o},parts:r}=this._$AD,i=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:P).importNode(o,!0);it.currentNode=i;let n=it.nextNode(),a=0,s=0,l=r[0];for(;void 0!==l;){if(a===l.index){let e;2===l.type?e=new ct(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new yt(n,this,t)),this._$AV.push(e),l=r[++s]}a!==(null==l?void 0:l.index)&&(n=it.nextNode(),a++)}return i}v(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},ct=class t{constructor(t,e,o,r){var i;this.type=2,this._$AH=ot,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cp=null===(i=null==r?void 0:r.isConnected)||void 0===i||i}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=st(this,t,e),M(t)?t===ot||null==t||""===t?(this._$AH!==ot&&this._$AR(),this._$AH=ot):t!==this._$AH&&t!==et&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):_(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ot&&M(this._$AH)?this._$AA.nextSibling.data=t:this.$(P.createTextNode(t)),this._$AH=t}g(t){var e;const{values:o,_$litType$:r}=t,i="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=at.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.v(o);else{const t=new lt(i,this),e=t.u(this.options);t.v(o),this.$(e),this._$AH=t}}_$AC(t){let e=rt.get(t.strings);return void 0===e&&rt.set(t.strings,e=new at(t)),e}T(e){T(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,i=0;for(const n of e)i===o.length?o.push(r=new t(this.k(Z()),this.k(Z()),this,this.options)):r=o[i],r._$AI(n),i++;i<o.length&&(this._$AR(r&&r._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,e){var o;for(null===(o=this._$AP)||void 0===o||o.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},ft=class{constructor(t,e,o,r,i){this.type=1,this._$AH=ot,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ot}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,o,r){const i=this.strings;let n=!1;if(void 0===i)t=st(this,t,e,0),n=!M(t)||t!==this._$AH&&t!==et,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=st(this,r[o+a],e,a),s===et&&(s=this._$AH[a]),n||(n=!M(s)||s!==this._$AH[a]),s===ot?t=ot:t!==ot&&(t+=(null!=s?s:"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.j(t)}j(t){t===ot?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},ht=class extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ot?void 0:t}};const pt=j?j.emptyScript:"";let dt=class extends ft{constructor(){super(...arguments),this.type=4}j(t){t&&t!==ot?this.element.setAttribute(this.name,pt):this.element.removeAttribute(this.name)}},ut=class extends ft{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){var o;if((t=null!==(o=st(this,t,e,0))&&void 0!==o?o:ot)===et)return;const r=this._$AH,i=t===ot&&r!==ot||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==ot&&(r===ot||i);i&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,o;"function"==typeof this._$AH?this._$AH.call(null!==(o=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==o?o:this.element,t):this._$AH.handleEvent(t)}},yt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){st(this,t)}};const bt={O:B,P:K,A:D,C:1,M:nt,L:lt,D:_,R:st,I:ct,V:ft,H:dt,N:ut,U:ht,F:yt},gt=A.litHtmlPolyfillSupport;null==gt||gt(at,ct),(null!==(W=A.litHtmlVersions)&&void 0!==W?W:A.litHtmlVersions=[]).push("2.7.3");
58
+ var W;L.finalized=!0,L.elementProperties=new Map,L.elementStyles=[],L.shadowRootOptions={mode:"open"},null==R||R({ReactiveElement:L}),(null!==(N=C.reactiveElementVersions)&&void 0!==N?N:C.reactiveElementVersions=[]).push("1.6.1");const A=window,j=A.trustedTypes,F=j?j.createPolicy("lit-html",{createHTML:t=>t}):void 0,B="$lit$",K=`lit$${(Math.random()+"").slice(9)}$`,D="?"+K,z=`<${D}>`,P=document,Z=()=>P.createComment(""),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,_=t=>T(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),H="[ \t\n\f\r]",G=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,q=/>/g,Y=RegExp(`>|${H}(?:([^\\s"'>=/]+)(${H}*=${H}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,J=/"/g,Q=/^(?:script|style|textarea|title)$/i,tt=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),et=Symbol.for("lit-noChange"),ot=Symbol.for("lit-nothing"),rt=new WeakMap,it=P.createTreeWalker(P,129,null,!1),nt=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":"",a=G;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,f=0;for(;f<o.length&&(a.lastIndex=f,l=a.exec(o),null!==l);)f=a.lastIndex,a===G?"!--"===l[1]?a=V:void 0!==l[1]?a=q:void 0!==l[2]?(Q.test(l[2])&&(i=RegExp("</"+l[2],"g")),a=Y):void 0!==l[3]&&(a=Y):a===Y?">"===l[0]?(a=null!=i?i:G,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Y:'"'===l[3]?J:X):a===J||a===X?a=Y:a===V||a===q?a=G:(a=Y,i=void 0);const h=a===Y&&t[e+1].startsWith("/>")?" ":"";n+=a===G?o+z:c>=0?(r.push(s),o.slice(0,c)+B+o.slice(c)+K+h):o+K+(-2===c?(r.push(void 0),e):h)}const s=n+(t[o]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(s):s,r]};class at{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let i=0,n=0;const a=t.length-1,s=this.parts,[l,c]=nt(t,e);if(this.el=at.createElement(l,o),it.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=it.nextNode())&&s.length<a;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith(B)||e.startsWith(K)){const o=c[n++];if(t.push(e),void 0!==o){const t=r.getAttribute(o.toLowerCase()+B).split(K),e=/([.?@])?(.*)/.exec(o);s.push({type:1,index:i,name:e[2],strings:t,ctor:"."===e[1]?ht:"?"===e[1]?dt:"@"===e[1]?ut:ft})}else s.push({type:6,index:i})}for(const e of t)r.removeAttribute(e)}if(Q.test(r.tagName)){const t=r.textContent.split(K),e=t.length-1;if(e>0){r.textContent=j?j.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],Z()),it.nextNode(),s.push({type:2,index:++i});r.append(t[e],Z())}}}else if(8===r.nodeType)if(r.data===D)s.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(K,t+1));)s.push({type:7,index:i}),t+=K.length-1}i++}}static createElement(t,e){const o=P.createElement("template");return o.innerHTML=t,o}}function st(t,e,o=t,r){var i,n,a,s;if(e===et)return e;let l=void 0!==r?null===(i=o._$Co)||void 0===i?void 0:i[r]:o._$Cl;const c=M(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,o,r)),void 0!==r?(null!==(a=(s=o)._$Co)&&void 0!==a?a:s._$Co=[])[r]=l:o._$Cl=l),void 0!==l&&(e=st(t,l._$AS(t,e.values),l,r)),e}let lt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:o},parts:r}=this._$AD,i=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:P).importNode(o,!0);it.currentNode=i;let n=it.nextNode(),a=0,s=0,l=r[0];for(;void 0!==l;){if(a===l.index){let e;2===l.type?e=new ct(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new yt(n,this,t)),this._$AV.push(e),l=r[++s]}a!==(null==l?void 0:l.index)&&(n=it.nextNode(),a++)}return i}v(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},ct=class t{constructor(t,e,o,r){var i;this.type=2,this._$AH=ot,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cp=null===(i=null==r?void 0:r.isConnected)||void 0===i||i}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=st(this,t,e),M(t)?t===ot||null==t||""===t?(this._$AH!==ot&&this._$AR(),this._$AH=ot):t!==this._$AH&&t!==et&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):_(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ot&&M(this._$AH)?this._$AA.nextSibling.data=t:this.$(P.createTextNode(t)),this._$AH=t}g(t){var e;const{values:o,_$litType$:r}=t,i="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=at.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.v(o);else{const t=new lt(i,this),e=t.u(this.options);t.v(o),this.$(e),this._$AH=t}}_$AC(t){let e=rt.get(t.strings);return void 0===e&&rt.set(t.strings,e=new at(t)),e}T(e){T(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,i=0;for(const n of e)i===o.length?o.push(r=new t(this.k(Z()),this.k(Z()),this,this.options)):r=o[i],r._$AI(n),i++;i<o.length&&(this._$AR(r&&r._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,e){var o;for(null===(o=this._$AP)||void 0===o||o.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},ft=class{constructor(t,e,o,r,i){this.type=1,this._$AH=ot,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ot}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,o,r){const i=this.strings;let n=!1;if(void 0===i)t=st(this,t,e,0),n=!M(t)||t!==this._$AH&&t!==et,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=st(this,r[o+a],e,a),s===et&&(s=this._$AH[a]),n||(n=!M(s)||s!==this._$AH[a]),s===ot?t=ot:t!==ot&&(t+=(null!=s?s:"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.j(t)}j(t){t===ot?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},ht=class extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ot?void 0:t}};const pt=j?j.emptyScript:"";let dt=class extends ft{constructor(){super(...arguments),this.type=4}j(t){t&&t!==ot?this.element.setAttribute(this.name,pt):this.element.removeAttribute(this.name)}},ut=class extends ft{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){var o;if((t=null!==(o=st(this,t,e,0))&&void 0!==o?o:ot)===et)return;const r=this._$AH,i=t===ot&&r!==ot||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==ot&&(r===ot||i);i&&this.element.removeEventListener(this.name,this,r),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,o;"function"==typeof this._$AH?this._$AH.call(null!==(o=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==o?o:this.element,t):this._$AH.handleEvent(t)}},yt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){st(this,t)}};const gt={O:B,P:K,A:D,C:1,M:nt,L:lt,D:_,R:st,I:ct,V:ft,H:dt,N:ut,U:ht,F:yt},bt=A.litHtmlPolyfillSupport;null==bt||bt(at,ct),(null!==(W=A.litHtmlVersions)&&void 0!==W?W:A.litHtmlVersions=[]).push("2.7.3");
59
59
  /**
60
60
  * @license
61
61
  * Copyright 2017 Google LLC
@@ -93,7 +93,7 @@ var vt,mt;let xt=class extends L{constructor(){super(...arguments),this.renderOp
93
93
  display: inline-block;
94
94
  width: 0;
95
95
  }
96
- `;class Dt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}function zt(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Pt,Zt,Mt;const Tt=Symbol("internalReduxEventsUnsubscribers"),_t=Symbol("internalStoresUnsubscribers"),Ht=Symbol("internalStores");class Gt extends Ft{constructor(){super(...arguments),this[Pt]=new Map,this[Zt]=new Map,this[Mt]=[]}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[Ht].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ht].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ht].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:zt(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[Ht].delete(e)}setupStore(t,e){this[Ht].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ht].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[_t].has(t.store):this[_t].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[_t].set(t,e.subscribe((()=>this.updateFromStores()))),zt(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 r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[Tt].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[_t].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Tt].forEach((t=>t())),this[Tt]=[]}unsubscribeFromStore(t){this[_t].has(t)&&this[_t].get(t)(),this[_t].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Vt(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function qt(t){return!!t&&!!t[je]}function Yt(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)===Fe}(t)||Array.isArray(t)||!!t[Ae]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Ae])||oe(t)||re(t))}function Xt(t,e,o){void 0===o&&(o=!1),0===Jt(t)?(o?Object.keys:Be)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function Jt(t){var e=t[je];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:oe(t)?2:re(t)?3:0}function Qt(t,e){return 2===Jt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function te(t,e,o){var r=Jt(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function ee(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function oe(t){return Ie&&t instanceof Map}function re(t){return ke&&t instanceof Set}function ie(t){return t.o||t.t}function ne(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ke(t);delete e[je];for(var o=Be(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function ae(t,e){return void 0===e&&(e=!1),le(t)||qt(t)||!Yt(t)||(Jt(t)>1&&(t.set=t.add=t.clear=t.delete=se),Object.freeze(t),e&&Xt(t,(function(t,e){return ae(e,!0)}),!0)),t}function se(){Vt(2)}function le(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ce(t){var e=De[t];return e||Vt(18,t),e}function fe(){return Re}function he(t,e){e&&(ce("Patches"),t.u=[],t.s=[],t.v=e)}function pe(t){de(t),t.p.forEach(ye),t.p=null}function de(t){t===Re&&(Re=t.l)}function ue(t){return Re={p:[],l:Re,h:t,m:!0,_:0}}function ye(t){var e=t[je];0===e.i||1===e.i?e.j():e.g=!0}function be(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||ce("ES5").S(e,t,r),r?(o[je].P&&(pe(e),Vt(4)),Yt(t)&&(t=ge(e,t),e.l||me(e,t)),e.u&&ce("Patches").M(o[je].t,t,e.u,e.s)):t=ge(e,o,[]),pe(e),e.u&&e.v(e.u,e.s),t!==We?t:void 0}function ge(t,e,o){if(le(e))return e;var r=e[je];if(!r)return Xt(e,(function(i,n){return ve(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return me(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=ne(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),Xt(n,(function(e,n){return ve(t,r,i,e,n,o,a)})),me(t,i,!1),o&&t.u&&ce("Patches").N(r,o,t.u,t.s)}return r.o}function ve(t,e,o,r,i,n,a){if(qt(i)){var s=ge(t,i,n&&e&&3!==e.i&&!Qt(e.R,r)?n.concat(r):void 0);if(te(o,r,s),!qt(s))return;t.m=!1}else a&&o.add(i);if(Yt(i)&&!le(i)){if(!t.h.D&&t._<1)return;ge(t,i),e&&e.A.l||me(t,i)}}function me(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&ae(e,o)}function xe(t,e){var o=t[je];return(o?ie(o):t)[e]}function Oe(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function we(t){t.P||(t.P=!0,t.l&&we(t.l))}function Se(t){t.o||(t.o=ne(t.t))}function Ne(t,e,o){var r=oe(e)?ce("MapSet").F(e,o):re(e)?ce("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:fe(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=ze;o&&(i=[r],n=Pe);var a=Proxy.revocable(i,n),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(e,o):ce("ES5").J(e,o);return(o?o.A:fe()).p.push(r),r}function Ce(t){return qt(t)||Vt(22,t),function t(e){if(!Yt(e))return e;var o,r=e[je],i=Jt(e);if(r){if(!r.P&&(r.i<4||!ce("ES5").K(r)))return r.t;r.I=!0,o=Ee(e,i),r.I=!1}else o=Ee(e,i);return Xt(o,(function(e,i){r&&function(t,e){return 2===Jt(t)?t.get(e):t[e]}(r.t,e)===i||te(o,e,t(i))})),3===i?new Set(o):o}(t)}function Ee(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ne(t)}Pt=_t,Zt=Ht,Mt=Tt;var $e,Re,Ue="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ie="undefined"!=typeof Map,ke="undefined"!=typeof Set,Le="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,We=Ue?Symbol.for("immer-nothing"):(($e={})["immer-nothing"]=!0,$e),Ae=Ue?Symbol.for("immer-draftable"):"__$immer_draftable",je=Ue?Symbol.for("immer-state"):"__$immer_state",Fe=""+Object.prototype.constructor,Be="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ke=Object.getOwnPropertyDescriptors||function(t){var e={};return Be(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},De={},ze={get:function(t,e){if(e===je)return t;var o=ie(t);if(!Qt(o,e))return function(t,e,o){var r,i=Oe(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!Yt(r)?r:r===xe(t.t,e)?(Se(t),t.o[e]=Ne(t.A.h,r,t)):r},has:function(t,e){return e in ie(t)},ownKeys:function(t){return Reflect.ownKeys(ie(t))},set:function(t,e,o){var r=Oe(ie(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=xe(ie(t),e),n=null==i?void 0:i[je];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(ee(o,i)&&(void 0!==o||Qt(t.t,e)))return!0;Se(t),we(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!==xe(t.t,e)||e in t.t?(t.R[e]=!1,Se(t),we(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=ie(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){Vt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Vt(12)}},Pe={};Xt(ze,(function(t,e){Pe[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Pe.deleteProperty=function(t,e){return Pe.set.call(this,t,e,void 0)},Pe.set=function(t,e,o){return ze.set.call(this,t[0],e,o,t[0])};var Ze=function(){function t(t){var e=this;this.O=Le,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&Vt(6),void 0!==r&&"function"!=typeof r&&Vt(7),Yt(t)){var s=ue(e),l=Ne(e,t,void 0),c=!0;try{a=o(l),c=!1}finally{c?pe(s):de(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return he(s,r),be(t,s)}),(function(t){throw pe(s),t})):(he(s,r),be(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===We&&(a=void 0),e.D&&ae(a,!0),r){var f=[],h=[];ce("Patches").M(t,a,f,h),r(f,h)}return a}Vt(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Yt(t)||Vt(8),qt(t)&&(t=Ce(t));var e=ue(this),o=Ne(this,t,void 0);return o[je].C=!0,de(e),o},e.finishDraft=function(t,e){var o=(t&&t[je]).A;return he(o,e),be(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Le&&Vt(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var i=ce("Patches").$;return qt(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),Me=new Ze,Te=Me.produce;function _e(t){return _e="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},_e(t)}function He(t){var e=function(t,e){if("object"!==_e(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==_e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===_e(e)?e:String(e)}function Ge(t,e,o){return(e=He(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Ve(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function qe(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Ve(Object(o),!0).forEach((function(e){Ge(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ve(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function Ye(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. "}Me.produceWithPatches.bind(Me),Me.setAutoFreeze.bind(Me),Me.setUseProxies.bind(Me),Me.applyPatches.bind(Me),Me.createDraft.bind(Me),Me.finishDraft.bind(Me);var Xe="function"==typeof Symbol&&Symbol.observable||"@@observable",Je=function(){return Math.random().toString(36).substring(7).split("").join(".")},Qe={INIT:"@@redux/INIT"+Je(),REPLACE:"@@redux/REPLACE"+Je(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Je()}};function to(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(Ye(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(Ye(1));return o(to)(t,e)}if("function"!=typeof t)throw new Error(Ye(2));var i=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(Ye(3));return n}function h(t){if("function"!=typeof t)throw new Error(Ye(4));if(l)throw new Error(Ye(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(Ye(6));e=!1,c();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(Ye(7));if(void 0===t.type)throw new Error(Ye(8));if(l)throw new Error(Ye(9));try{l=!0,n=i(n,t)}finally{l=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return p({type:Qe.INIT}),(r={dispatch:p,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ye(10));i=t,p({type:Qe.REPLACE})}})[Xe]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ye(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[Xe]=function(){return this},t},r}function eo(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:Qe.INIT}))throw new Error(Ye(12));if(void 0===o(void 0,{type:Qe.PROBE_UNKNOWN_ACTION()}))throw new Error(Ye(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var l=a[s],c=o[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(Ye(14));i[l]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function oo(){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 ro(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(Ye(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=oo.apply(void 0,n)(o.dispatch),qe(qe({},o),{},{dispatch:r})}}}function io(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var no=io();no.withExtraArgument=io;var ao,so=no,lo=(ao=function(t,e){return ao=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])},ao(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}ao(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),co=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},fo=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},ho=Object.defineProperty,po=Object.defineProperties,uo=Object.getOwnPropertyDescriptors,yo=Object.getOwnPropertySymbols,bo=Object.prototype.hasOwnProperty,go=Object.prototype.propertyIsEnumerable,vo=function(t,e,o){return e in t?ho(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},mo=function(t,e){for(var o in e||(e={}))bo.call(e,o)&&vo(t,o,e[o]);if(yo)for(var r=0,i=yo(e);r<i.length;r++){o=i[r];go.call(e,o)&&vo(t,o,e[o])}return t},xo=function(t,e){return po(t,uo(e))},Oo="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?oo:oo.apply(null,arguments)};var wo=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return lo(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,fo([void 0],t[0].concat(this)))):new(e.bind.apply(e,fo([void 0],t.concat(this))))},e}(Array),So=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return lo(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,fo([void 0],t[0].concat(this)))):new(e.bind.apply(e,fo([void 0],t.concat(this))))},e}(Array);function No(t){return Yt(t)?Te(t,(function(){})):t}function Co(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new wo;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(so.withExtraArgument(o.extraArgument)):r.push(so));return r}(t)}}function Eo(t){var e,o=Co(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?o():a,l=r.devTools,c=void 0===l||l,f=r.preloadedState,h=void 0===f?void 0:f,p=r.enhancers,d=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=eo(n)}var u=s;"function"==typeof u&&(u=u(o));var y=ro.apply(void 0,u),b=oo;c&&(b=Oo(mo({trace:!1},"object"==typeof c&&c)));var g=new So(y),v=g;return Array.isArray(d)?v=fo([y],d):"function"==typeof d&&(v=d(g)),to(e,h,b.apply(void 0,v))}function $o(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return mo(mo({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Ro(t){var e,o={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function Uo(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:No(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Ro(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=mo(mo({},i),s);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?Ro(e):[e,o,r],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return No(t())};else{var c=No(t);i=function(){return c}}function f(t,e){void 0===t&&(t=i());var o=fo([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=[l]),o.reduce((function(t,o){if(o){var r;if(qt(t))return void 0===(r=o(t,e))?t:r;if(Yt(t))return Te(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,r,n=i[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,s[c]=o,l[t]=r?$o(c,r):$o(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:a,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Io=["name","message","stack","code"],ko=function(t,e){this.payload=t,this.meta=e},Lo=function(t,e){this.payload=t,this.meta=e},Wo=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Io;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function Ao(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=$o(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:xo(mo({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=$o(t+"/pending",(function(t,e,o){return{payload:void 0,meta:xo(mo({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=$o(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||Wo)(t||"Rejected"),meta:xo(mo({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,l,c){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 d(t){f=t,p.abort()}var u=function(){return a=this,u=null,y=function(){var a,u,y,b,g,v;return co(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return g=new Promise((function(t,e){return p.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(i(h,t,null==(u=null==o?void 0:o.getPendingMeta)?void 0:u.call(o,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([g,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:p.signal,abort:d,rejectWithValue:function(t,e){return new ko(t,e)},fulfillWithValue:function(t,e){return new Lo(t,e)}})).then((function(e){if(e instanceof ko)throw e;return e instanceof Lo?r(e.payload,h,t,e.meta):r(e,h,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof ko?n(null,h,t,v.payload,v.meta):n(v,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{i(y.next(t))}catch(t){e(t)}},r=function(t){try{i(y.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((y=y.apply(a,u)).next())}));var a,u,y}();return Object.assign(u,{abort:d,requestId:h,arg:t,unwrap:function(){return u.then(Ao)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var jo="listenerMiddleware";$o(jo+"/add"),$o(jo+"/removeAll"),$o(jo+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[je];return ze.get(e,t)},set:function(e){var o=this[je];ze.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][je];if(!i.P)switch(i.i){case 5:r(i)&&we(i);break;case 4:o(i)&&we(i)}}}function o(t){for(var e=t.t,o=t.k,r=Be(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==je){var a=e[n];if(void 0===a&&!Qt(e,n))return!0;var s=o[n],l=s&&s[je];if(l?l.t!==a:!ee(s,a))return!0}}var c=!!e[je];return r.length!==Be(e).length+(c?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){De[t]||(De[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=Ke(o);delete n[je];for(var a=Be(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:fe(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,je,{value:n,writable:!0}),i},S:function(t,o,i){i?qt(o)&&o[je].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[je];if(o){var i=o.t,n=o.k,a=o.R,s=o.i;if(4===s)Xt(n,(function(e){e!==je&&(void 0!==i[e]||Qt(i,e)?a[e]||t(n[e]):(a[e]=!0,we(o)))})),Xt(i,(function(t){void 0!==n[t]||Qt(n,t)||(a[t]=!1,we(o))}));else if(5===s){if(r(o)&&(we(o),a.length=!0),n.length<i.length)for(var l=n.length;l<i.length;l++)a[l]=!1;else for(var c=i.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,i.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Fo{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(zt(i))return i;if(null==r)return;const n=Uo({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Eo({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[r.name]=new Fo(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 r=e,i=t[r];return i?(...t)=>{const e=i(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Bo=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!p(t,e),attribute:!1,...e};a(i)(t,o);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}},Ko=Symbol("elementInternals");var Do,zo,Po;const Zo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Po=null===(zo=null===(Do=window.safari)||void 0===Do?void 0:Do.pushNotification)||void 0===zo?void 0:zo.toString())&&void 0!==Po?Po:""),Mo=1,To=2,_o=t=>(...e)=>({_$litDirective$:t,values:e});
96
+ `;class Dt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}function zt(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Pt,Zt,Mt;const Tt=Symbol("internalReduxEventsUnsubscribers"),_t=Symbol("internalStoresUnsubscribers"),Ht=Symbol("internalStores");class Gt extends Ft{constructor(){super(...arguments),this[Pt]=new Map,this[Zt]=new Map,this[Mt]=[]}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[Ht].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ht].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ht].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:zt(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[Ht].delete(e)}setupStore(t,e){this[Ht].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ht].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[_t].has(t.store):this[_t].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[_t].set(t,e.subscribe((()=>this.updateFromStores()))),zt(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 r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[Tt].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[_t].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Tt].forEach((t=>t())),this[Tt]=[]}unsubscribeFromStore(t){this[_t].has(t)&&this[_t].get(t)(),this[_t].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Vt(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function qt(t){return!!t&&!!t[je]}function Yt(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)===Fe}(t)||Array.isArray(t)||!!t[Ae]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Ae])||oe(t)||re(t))}function Xt(t,e,o){void 0===o&&(o=!1),0===Jt(t)?(o?Object.keys:Be)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function Jt(t){var e=t[je];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:oe(t)?2:re(t)?3:0}function Qt(t,e){return 2===Jt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function te(t,e,o){var r=Jt(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function ee(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function oe(t){return Ie&&t instanceof Map}function re(t){return ke&&t instanceof Set}function ie(t){return t.o||t.t}function ne(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Ke(t);delete e[je];for(var o=Be(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function ae(t,e){return void 0===e&&(e=!1),le(t)||qt(t)||!Yt(t)||(Jt(t)>1&&(t.set=t.add=t.clear=t.delete=se),Object.freeze(t),e&&Xt(t,(function(t,e){return ae(e,!0)}),!0)),t}function se(){Vt(2)}function le(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ce(t){var e=De[t];return e||Vt(18,t),e}function fe(){return Re}function he(t,e){e&&(ce("Patches"),t.u=[],t.s=[],t.v=e)}function pe(t){de(t),t.p.forEach(ye),t.p=null}function de(t){t===Re&&(Re=t.l)}function ue(t){return Re={p:[],l:Re,h:t,m:!0,_:0}}function ye(t){var e=t[je];0===e.i||1===e.i?e.j():e.g=!0}function ge(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||ce("ES5").S(e,t,r),r?(o[je].P&&(pe(e),Vt(4)),Yt(t)&&(t=be(e,t),e.l||me(e,t)),e.u&&ce("Patches").M(o[je].t,t,e.u,e.s)):t=be(e,o,[]),pe(e),e.u&&e.v(e.u,e.s),t!==We?t:void 0}function be(t,e,o){if(le(e))return e;var r=e[je];if(!r)return Xt(e,(function(i,n){return ve(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return me(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=ne(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),Xt(n,(function(e,n){return ve(t,r,i,e,n,o,a)})),me(t,i,!1),o&&t.u&&ce("Patches").N(r,o,t.u,t.s)}return r.o}function ve(t,e,o,r,i,n,a){if(qt(i)){var s=be(t,i,n&&e&&3!==e.i&&!Qt(e.R,r)?n.concat(r):void 0);if(te(o,r,s),!qt(s))return;t.m=!1}else a&&o.add(i);if(Yt(i)&&!le(i)){if(!t.h.D&&t._<1)return;be(t,i),e&&e.A.l||me(t,i)}}function me(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&ae(e,o)}function xe(t,e){var o=t[je];return(o?ie(o):t)[e]}function Oe(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function we(t){t.P||(t.P=!0,t.l&&we(t.l))}function Se(t){t.o||(t.o=ne(t.t))}function Ne(t,e,o){var r=oe(e)?ce("MapSet").F(e,o):re(e)?ce("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:fe(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=ze;o&&(i=[r],n=Pe);var a=Proxy.revocable(i,n),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(e,o):ce("ES5").J(e,o);return(o?o.A:fe()).p.push(r),r}function Ce(t){return qt(t)||Vt(22,t),function t(e){if(!Yt(e))return e;var o,r=e[je],i=Jt(e);if(r){if(!r.P&&(r.i<4||!ce("ES5").K(r)))return r.t;r.I=!0,o=Ee(e,i),r.I=!1}else o=Ee(e,i);return Xt(o,(function(e,i){r&&function(t,e){return 2===Jt(t)?t.get(e):t[e]}(r.t,e)===i||te(o,e,t(i))})),3===i?new Set(o):o}(t)}function Ee(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ne(t)}Pt=_t,Zt=Ht,Mt=Tt;var $e,Re,Ue="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ie="undefined"!=typeof Map,ke="undefined"!=typeof Set,Le="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,We=Ue?Symbol.for("immer-nothing"):(($e={})["immer-nothing"]=!0,$e),Ae=Ue?Symbol.for("immer-draftable"):"__$immer_draftable",je=Ue?Symbol.for("immer-state"):"__$immer_state",Fe=""+Object.prototype.constructor,Be="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Ke=Object.getOwnPropertyDescriptors||function(t){var e={};return Be(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},De={},ze={get:function(t,e){if(e===je)return t;var o=ie(t);if(!Qt(o,e))return function(t,e,o){var r,i=Oe(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!Yt(r)?r:r===xe(t.t,e)?(Se(t),t.o[e]=Ne(t.A.h,r,t)):r},has:function(t,e){return e in ie(t)},ownKeys:function(t){return Reflect.ownKeys(ie(t))},set:function(t,e,o){var r=Oe(ie(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=xe(ie(t),e),n=null==i?void 0:i[je];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(ee(o,i)&&(void 0!==o||Qt(t.t,e)))return!0;Se(t),we(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!==xe(t.t,e)||e in t.t?(t.R[e]=!1,Se(t),we(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=ie(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){Vt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Vt(12)}},Pe={};Xt(ze,(function(t,e){Pe[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Pe.deleteProperty=function(t,e){return Pe.set.call(this,t,e,void 0)},Pe.set=function(t,e,o){return ze.set.call(this,t[0],e,o,t[0])};var Ze=function(){function t(t){var e=this;this.O=Le,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&Vt(6),void 0!==r&&"function"!=typeof r&&Vt(7),Yt(t)){var s=ue(e),l=Ne(e,t,void 0),c=!0;try{a=o(l),c=!1}finally{c?pe(s):de(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return he(s,r),ge(t,s)}),(function(t){throw pe(s),t})):(he(s,r),ge(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===We&&(a=void 0),e.D&&ae(a,!0),r){var f=[],h=[];ce("Patches").M(t,a,f,h),r(f,h)}return a}Vt(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){Yt(t)||Vt(8),qt(t)&&(t=Ce(t));var e=ue(this),o=Ne(this,t,void 0);return o[je].C=!0,de(e),o},e.finishDraft=function(t,e){var o=(t&&t[je]).A;return he(o,e),ge(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Le&&Vt(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var i=ce("Patches").$;return qt(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),Me=new Ze,Te=Me.produce;function _e(t){return _e="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},_e(t)}function He(t){var e=function(t,e){if("object"!==_e(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==_e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===_e(e)?e:String(e)}function Ge(t,e,o){return(e=He(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Ve(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function qe(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Ve(Object(o),!0).forEach((function(e){Ge(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ve(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function Ye(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. "}Me.produceWithPatches.bind(Me),Me.setAutoFreeze.bind(Me),Me.setUseProxies.bind(Me),Me.applyPatches.bind(Me),Me.createDraft.bind(Me),Me.finishDraft.bind(Me);var Xe="function"==typeof Symbol&&Symbol.observable||"@@observable",Je=function(){return Math.random().toString(36).substring(7).split("").join(".")},Qe={INIT:"@@redux/INIT"+Je(),REPLACE:"@@redux/REPLACE"+Je(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Je()}};function to(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(Ye(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(Ye(1));return o(to)(t,e)}if("function"!=typeof t)throw new Error(Ye(2));var i=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(Ye(3));return n}function h(t){if("function"!=typeof t)throw new Error(Ye(4));if(l)throw new Error(Ye(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(Ye(6));e=!1,c();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(Ye(7));if(void 0===t.type)throw new Error(Ye(8));if(l)throw new Error(Ye(9));try{l=!0,n=i(n,t)}finally{l=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return p({type:Qe.INIT}),(r={dispatch:p,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(Ye(10));i=t,p({type:Qe.REPLACE})}})[Xe]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(Ye(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[Xe]=function(){return this},t},r}function eo(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:Qe.INIT}))throw new Error(Ye(12));if(void 0===o(void 0,{type:Qe.PROBE_UNKNOWN_ACTION()}))throw new Error(Ye(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var l=a[s],c=o[l],f=t[l],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(Ye(14));i[l]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function oo(){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 ro(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(Ye(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=oo.apply(void 0,n)(o.dispatch),qe(qe({},o),{},{dispatch:r})}}}function io(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var no=io();no.withExtraArgument=io;var ao,so=no,lo=(ao=function(t,e){return ao=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])},ao(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}ao(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),co=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},fo=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},ho=Object.defineProperty,po=Object.defineProperties,uo=Object.getOwnPropertyDescriptors,yo=Object.getOwnPropertySymbols,go=Object.prototype.hasOwnProperty,bo=Object.prototype.propertyIsEnumerable,vo=function(t,e,o){return e in t?ho(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},mo=function(t,e){for(var o in e||(e={}))go.call(e,o)&&vo(t,o,e[o]);if(yo)for(var r=0,i=yo(e);r<i.length;r++){o=i[r];bo.call(e,o)&&vo(t,o,e[o])}return t},xo=function(t,e){return po(t,uo(e))},Oo="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?oo:oo.apply(null,arguments)};var wo=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return lo(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,fo([void 0],t[0].concat(this)))):new(e.bind.apply(e,fo([void 0],t.concat(this))))},e}(Array),So=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return lo(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,fo([void 0],t[0].concat(this)))):new(e.bind.apply(e,fo([void 0],t.concat(this))))},e}(Array);function No(t){return Yt(t)?Te(t,(function(){})):t}function Co(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new wo;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(so.withExtraArgument(o.extraArgument)):r.push(so));return r}(t)}}function Eo(t){var e,o=Co(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?o():a,l=r.devTools,c=void 0===l||l,f=r.preloadedState,h=void 0===f?void 0:f,p=r.enhancers,d=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=eo(n)}var u=s;"function"==typeof u&&(u=u(o));var y=ro.apply(void 0,u),g=oo;c&&(g=Oo(mo({trace:!1},"object"==typeof c&&c)));var b=new So(y),v=b;return Array.isArray(d)?v=fo([y],d):"function"==typeof d&&(v=d(b)),to(e,h,g.apply(void 0,v))}function $o(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return mo(mo({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Ro(t){var e,o={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function Uo(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:No(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Ro(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=mo(mo({},i),s);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?Ro(e):[e,o,r],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return No(t())};else{var c=No(t);i=function(){return c}}function f(t,e){void 0===t&&(t=i());var o=fo([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=[l]),o.reduce((function(t,o){if(o){var r;if(qt(t))return void 0===(r=o(t,e))?t:r;if(Yt(t))return Te(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var o,r,n=i[t],c=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,s[c]=o,l[t]=r?$o(c,r):$o(c)})),{name:e,reducer:function(t,e){return o||(o=c()),o(t,e)},actions:l,caseReducers:a,getInitialState:function(){return o||(o=c()),o.getInitialState()}}}var Io=["name","message","stack","code"],ko=function(t,e){this.payload=t,this.meta=e},Lo=function(t,e){this.payload=t,this.meta=e},Wo=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Io;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function Ao(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=$o(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:xo(mo({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=$o(t+"/pending",(function(t,e,o){return{payload:void 0,meta:xo(mo({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=$o(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||Wo)(t||"Rejected"),meta:xo(mo({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,l,c){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 d(t){f=t,p.abort()}var u=function(){return a=this,u=null,y=function(){var a,u,y,g,b,v;return co(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=m.sent(),m.label=2;case 2:if(!1===g||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(i(h,t,null==(u=null==o?void 0:o.getPendingMeta)?void 0:u.call(o,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:p.signal,abort:d,rejectWithValue:function(t,e){return new ko(t,e)},fulfillWithValue:function(t,e){return new Lo(t,e)}})).then((function(e){if(e instanceof ko)throw e;return e instanceof Lo?r(e.payload,h,t,e.meta):r(e,h,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof ko?n(null,h,t,v.payload,v.meta):n(v,h,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var o=function(t){try{i(y.next(t))}catch(t){e(t)}},r=function(t){try{i(y.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((y=y.apply(a,u)).next())}));var a,u,y}();return Object.assign(u,{abort:d,requestId:h,arg:t,unwrap:function(){return u.then(Ao)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var jo="listenerMiddleware";$o(jo+"/add"),$o(jo+"/removeAll"),$o(jo+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[je];return ze.get(e,t)},set:function(e){var o=this[je];ze.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][je];if(!i.P)switch(i.i){case 5:r(i)&&we(i);break;case 4:o(i)&&we(i)}}}function o(t){for(var e=t.t,o=t.k,r=Be(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==je){var a=e[n];if(void 0===a&&!Qt(e,n))return!0;var s=o[n],l=s&&s[je];if(l?l.t!==a:!ee(s,a))return!0}}var c=!!e[je];return r.length!==Be(e).length+(c?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){De[t]||(De[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=Ke(o);delete n[je];for(var a=Be(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:fe(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,je,{value:n,writable:!0}),i},S:function(t,o,i){i?qt(o)&&o[je].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[je];if(o){var i=o.t,n=o.k,a=o.R,s=o.i;if(4===s)Xt(n,(function(e){e!==je&&(void 0!==i[e]||Qt(i,e)?a[e]||t(n[e]):(a[e]=!0,we(o)))})),Xt(i,(function(t){void 0!==n[t]||Qt(n,t)||(a[t]=!1,we(o))}));else if(5===s){if(r(o)&&(we(o),a.length=!0),n.length<i.length)for(var l=n.length;l<i.length;l++)a[l]=!1;else for(var c=i.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,i.length),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Fo{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(zt(i))return i;if(null==r)return;const n=Uo({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Eo({reducer:(t,e)=>{var o;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(o=e.overwrites)&&void 0!==o?o:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[r.name]=new Fo(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 r=e,i=t[r];return i?(...t)=>{const e=i(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Bo=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!p(t,e),attribute:!1,...e};a(i)(t,o);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}},Ko=Symbol("elementInternals");var Do,zo,Po;const Zo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Po=null===(zo=null===(Do=window.safari)||void 0===Do?void 0:Do.pushNotification)||void 0===zo?void 0:zo.toString())&&void 0!==Po?Po:""),Mo=1,To=2,_o=t=>(...e)=>({_$litDirective$:t,values:e});
97
97
  /**
98
98
  * @license
99
99
  * Copyright 2017 Google LLC
@@ -232,12 +232,12 @@ var vt,mt;let xt=class extends L{constructor(){super(...arguments),this.renderOp
232
232
  * Copyright 2020 Google LLC
233
233
  * SPDX-License-Identifier: BSD-3-Clause
234
234
  */
235
- const nr=Symbol.for(""),ar=t=>{if((null==t?void 0:t.r)===nr)return null==t?void 0:t._$litStatic$},sr=t=>({_$litStatic$:t,r:nr}),lr=new Map,cr=(t=>(e,...o)=>{const r=o.length;let i,n;const a=[],s=[];let l,c=0,f=!1;for(;c<r;){for(l=e[c];c<r&&void 0!==(n=o[c],i=ar(n));)l+=i+e[++c],f=!0;c!==r&&s.push(n),a.push(l),c++}if(c===r&&a.push(e[r]),f){const t=a.join("$$lit$$");void 0===(e=lr.get(t))&&(a.raw=a,lr.set(t,e=a)),o=s}return t(e,...o)})(tt);var fr;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(fr||(fr={}));const hr=St.extend("--ft-typography-font-family","",Ut.titleFont),pr=St.extend("--ft-typography-font-family","",Ut.contentFont),dr={fontFamily:pr,fontSize:St.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:St.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:St.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:St.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:St.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ur=St.extend("--ft-typography-title-font-family","",hr),yr=St.extend("--ft-typography-title-font-size","",dr.fontSize,"20px"),br=St.extend("--ft-typography-title-font-weight","",dr.fontWeight,"normal"),gr=St.extend("--ft-typography-title-letter-spacing","",dr.letterSpacing,"0.15px"),vr=St.extend("--ft-typography-title-line-height","",dr.lineHeight,"1.2"),mr=St.extend("--ft-typography-title-text-transform","",dr.textTransform,"inherit"),xr=St.extend("--ft-typography-title-dense-font-family","",hr),Or=St.extend("--ft-typography-title-dense-font-size","",dr.fontSize,"14px"),wr=St.extend("--ft-typography-title-dense-font-weight","",dr.fontWeight,"normal"),Sr=St.extend("--ft-typography-title-dense-letter-spacing","",dr.letterSpacing,"0.105px"),Nr=St.extend("--ft-typography-title-dense-line-height","",dr.lineHeight,"1.7"),Cr=St.extend("--ft-typography-title-dense-text-transform","",dr.textTransform,"inherit"),Er=St.extend("--ft-typography-subtitle1-font-family","",pr),$r=St.extend("--ft-typography-subtitle1-font-size","",dr.fontSize,"16px"),Rr=St.extend("--ft-typography-subtitle1-font-weight","",dr.fontWeight,"600"),Ur=St.extend("--ft-typography-subtitle1-letter-spacing","",dr.letterSpacing,"0.144px"),Ir=St.extend("--ft-typography-subtitle1-line-height","",dr.lineHeight,"1.5"),kr=St.extend("--ft-typography-subtitle1-text-transform","",dr.textTransform,"inherit"),Lr=St.extend("--ft-typography-subtitle2-font-family","",pr),Wr=St.extend("--ft-typography-subtitle2-font-size","",dr.fontSize,"14px"),Ar=St.extend("--ft-typography-subtitle2-font-weight","",dr.fontWeight,"normal"),jr=St.extend("--ft-typography-subtitle2-letter-spacing","",dr.letterSpacing,"0.098px"),Fr=St.extend("--ft-typography-subtitle2-line-height","",dr.lineHeight,"1.7"),Br=St.extend("--ft-typography-subtitle2-text-transform","",dr.textTransform,"inherit"),Kr=St.extend("--ft-typography-body1-font-family","",pr),Dr=St.extend("--ft-typography-body1-font-size","",dr.fontSize,"16px"),zr=St.extend("--ft-typography-body1-font-weight","",dr.fontWeight,"normal"),Pr=St.extend("--ft-typography-body1-letter-spacing","",dr.letterSpacing,"0.496px"),Zr=St.extend("--ft-typography-body1-line-height","",dr.lineHeight,"1.5"),Mr=St.extend("--ft-typography-body1-text-transform","",dr.textTransform,"inherit"),Tr={fontFamily:St.extend("--ft-typography-body2-font-family","",pr),fontSize:St.extend("--ft-typography-body2-font-size","",dr.fontSize,"14px"),fontWeight:St.extend("--ft-typography-body2-font-weight","",dr.fontWeight,"normal"),letterSpacing:St.extend("--ft-typography-body2-letter-spacing","",dr.letterSpacing,"0.252px"),lineHeight:St.extend("--ft-typography-body2-line-height","",dr.lineHeight,"1.4"),textTransform:St.extend("--ft-typography-body2-text-transform","",dr.textTransform,"inherit")},_r=St.extend("--ft-typography-caption-font-family","",pr),Hr=St.extend("--ft-typography-caption-font-size","",dr.fontSize,"12px"),Gr=St.extend("--ft-typography-caption-font-weight","",dr.fontWeight,"normal"),Vr=St.extend("--ft-typography-caption-letter-spacing","",dr.letterSpacing,"0.396px"),qr=St.extend("--ft-typography-caption-line-height","",dr.lineHeight,"1.33"),Yr=St.extend("--ft-typography-caption-text-transform","",dr.textTransform,"inherit"),Xr=St.extend("--ft-typography-breadcrumb-font-family","",pr),Jr=St.extend("--ft-typography-breadcrumb-font-size","",dr.fontSize,"10px"),Qr=St.extend("--ft-typography-breadcrumb-font-weight","",dr.fontWeight,"normal"),ti=St.extend("--ft-typography-breadcrumb-letter-spacing","",dr.letterSpacing,"0.33px"),ei=St.extend("--ft-typography-breadcrumb-line-height","",dr.lineHeight,"1.6"),oi=St.extend("--ft-typography-breadcrumb-text-transform","",dr.textTransform,"inherit"),ri=St.extend("--ft-typography-overline-font-family","",pr),ii=St.extend("--ft-typography-overline-font-size","",dr.fontSize,"10px"),ni=St.extend("--ft-typography-overline-font-weight","",dr.fontWeight,"normal"),ai=St.extend("--ft-typography-overline-letter-spacing","",dr.letterSpacing,"1.5px"),si=St.extend("--ft-typography-overline-line-height","",dr.lineHeight,"1.6"),li=St.extend("--ft-typography-overline-text-transform","",dr.textTransform,"uppercase"),ci={fontFamily:St.extend("--ft-typography-button-font-family","",pr),fontSize:St.extend("--ft-typography-button-font-size","",dr.fontSize,"14px"),fontWeight:St.extend("--ft-typography-button-font-weight","",dr.fontWeight,"600"),letterSpacing:St.extend("--ft-typography-button-letter-spacing","",dr.letterSpacing,"1.246px"),lineHeight:St.extend("--ft-typography-button-line-height","",dr.lineHeight,"1.15"),textTransform:St.extend("--ft-typography-button-text-transform","",dr.textTransform,"uppercase")},fi=O`
235
+ const nr=Symbol.for(""),ar=t=>{if((null==t?void 0:t.r)===nr)return null==t?void 0:t._$litStatic$},sr=t=>({_$litStatic$:t,r:nr}),lr=new Map,cr=(t=>(e,...o)=>{const r=o.length;let i,n;const a=[],s=[];let l,c=0,f=!1;for(;c<r;){for(l=e[c];c<r&&void 0!==(n=o[c],i=ar(n));)l+=i+e[++c],f=!0;c!==r&&s.push(n),a.push(l),c++}if(c===r&&a.push(e[r]),f){const t=a.join("$$lit$$");void 0===(e=lr.get(t))&&(a.raw=a,lr.set(t,e=a)),o=s}return t(e,...o)})(tt);var fr;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(fr||(fr={}));const hr=St.extend("--ft-typography-font-family","",Ut.titleFont),pr=St.extend("--ft-typography-font-family","",Ut.contentFont),dr={fontFamily:pr,fontSize:St.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:St.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:St.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:St.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:St.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ur=St.extend("--ft-typography-title-font-family","",hr),yr=St.extend("--ft-typography-title-font-size","",dr.fontSize,"20px"),gr=St.extend("--ft-typography-title-font-weight","",dr.fontWeight,"normal"),br=St.extend("--ft-typography-title-letter-spacing","",dr.letterSpacing,"0.15px"),vr=St.extend("--ft-typography-title-line-height","",dr.lineHeight,"1.2"),mr=St.extend("--ft-typography-title-text-transform","",dr.textTransform,"inherit"),xr=St.extend("--ft-typography-title-dense-font-family","",hr),Or=St.extend("--ft-typography-title-dense-font-size","",dr.fontSize,"14px"),wr=St.extend("--ft-typography-title-dense-font-weight","",dr.fontWeight,"normal"),Sr=St.extend("--ft-typography-title-dense-letter-spacing","",dr.letterSpacing,"0.105px"),Nr=St.extend("--ft-typography-title-dense-line-height","",dr.lineHeight,"1.7"),Cr=St.extend("--ft-typography-title-dense-text-transform","",dr.textTransform,"inherit"),Er=St.extend("--ft-typography-subtitle1-font-family","",pr),$r=St.extend("--ft-typography-subtitle1-font-size","",dr.fontSize,"16px"),Rr=St.extend("--ft-typography-subtitle1-font-weight","",dr.fontWeight,"600"),Ur=St.extend("--ft-typography-subtitle1-letter-spacing","",dr.letterSpacing,"0.144px"),Ir=St.extend("--ft-typography-subtitle1-line-height","",dr.lineHeight,"1.5"),kr=St.extend("--ft-typography-subtitle1-text-transform","",dr.textTransform,"inherit"),Lr=St.extend("--ft-typography-subtitle2-font-family","",pr),Wr=St.extend("--ft-typography-subtitle2-font-size","",dr.fontSize,"14px"),Ar=St.extend("--ft-typography-subtitle2-font-weight","",dr.fontWeight,"normal"),jr=St.extend("--ft-typography-subtitle2-letter-spacing","",dr.letterSpacing,"0.098px"),Fr=St.extend("--ft-typography-subtitle2-line-height","",dr.lineHeight,"1.7"),Br=St.extend("--ft-typography-subtitle2-text-transform","",dr.textTransform,"inherit"),Kr=St.extend("--ft-typography-body1-font-family","",pr),Dr=St.extend("--ft-typography-body1-font-size","",dr.fontSize,"16px"),zr=St.extend("--ft-typography-body1-font-weight","",dr.fontWeight,"normal"),Pr=St.extend("--ft-typography-body1-letter-spacing","",dr.letterSpacing,"0.496px"),Zr=St.extend("--ft-typography-body1-line-height","",dr.lineHeight,"1.5"),Mr=St.extend("--ft-typography-body1-text-transform","",dr.textTransform,"inherit"),Tr={fontFamily:St.extend("--ft-typography-body2-font-family","",pr),fontSize:St.extend("--ft-typography-body2-font-size","",dr.fontSize,"14px"),fontWeight:St.extend("--ft-typography-body2-font-weight","",dr.fontWeight,"normal"),letterSpacing:St.extend("--ft-typography-body2-letter-spacing","",dr.letterSpacing,"0.252px"),lineHeight:St.extend("--ft-typography-body2-line-height","",dr.lineHeight,"1.4"),textTransform:St.extend("--ft-typography-body2-text-transform","",dr.textTransform,"inherit")},_r=St.extend("--ft-typography-caption-font-family","",pr),Hr=St.extend("--ft-typography-caption-font-size","",dr.fontSize,"12px"),Gr=St.extend("--ft-typography-caption-font-weight","",dr.fontWeight,"normal"),Vr=St.extend("--ft-typography-caption-letter-spacing","",dr.letterSpacing,"0.396px"),qr=St.extend("--ft-typography-caption-line-height","",dr.lineHeight,"1.33"),Yr=St.extend("--ft-typography-caption-text-transform","",dr.textTransform,"inherit"),Xr=St.extend("--ft-typography-breadcrumb-font-family","",pr),Jr=St.extend("--ft-typography-breadcrumb-font-size","",dr.fontSize,"10px"),Qr=St.extend("--ft-typography-breadcrumb-font-weight","",dr.fontWeight,"normal"),ti=St.extend("--ft-typography-breadcrumb-letter-spacing","",dr.letterSpacing,"0.33px"),ei=St.extend("--ft-typography-breadcrumb-line-height","",dr.lineHeight,"1.6"),oi=St.extend("--ft-typography-breadcrumb-text-transform","",dr.textTransform,"inherit"),ri=St.extend("--ft-typography-overline-font-family","",pr),ii=St.extend("--ft-typography-overline-font-size","",dr.fontSize,"10px"),ni=St.extend("--ft-typography-overline-font-weight","",dr.fontWeight,"normal"),ai=St.extend("--ft-typography-overline-letter-spacing","",dr.letterSpacing,"1.5px"),si=St.extend("--ft-typography-overline-line-height","",dr.lineHeight,"1.6"),li=St.extend("--ft-typography-overline-text-transform","",dr.textTransform,"uppercase"),ci={fontFamily:St.extend("--ft-typography-button-font-family","",pr),fontSize:St.extend("--ft-typography-button-font-size","",dr.fontSize,"14px"),fontWeight:St.extend("--ft-typography-button-font-weight","",dr.fontWeight,"600"),letterSpacing:St.extend("--ft-typography-button-letter-spacing","",dr.letterSpacing,"1.246px"),lineHeight:St.extend("--ft-typography-button-line-height","",dr.lineHeight,"1.15"),textTransform:St.extend("--ft-typography-button-text-transform","",dr.textTransform,"uppercase")},fi=O`
236
236
  .ft-typography--title {
237
237
  font-family: ${ur};
238
238
  font-size: ${yr};
239
- font-weight: ${br};
240
- letter-spacing: ${gr};
239
+ font-weight: ${gr};
240
+ letter-spacing: ${br};
241
241
  line-height: ${vr};
242
242
  text-transform: ${mr};
243
243
  }
@@ -287,7 +287,7 @@ const nr=Symbol.for(""),ar=t=>{if((null==t?void 0:t.r)===nr)return null==t?void
287
287
  line-height: ${Tr.lineHeight};
288
288
  text-transform: ${Tr.textTransform};
289
289
  }
290
- `,bi=O`
290
+ `,gi=O`
291
291
  .ft-typography--caption {
292
292
  font-family: ${_r};
293
293
  font-size: ${Hr};
@@ -296,7 +296,7 @@ const nr=Symbol.for(""),ar=t=>{if((null==t?void 0:t.r)===nr)return null==t?void
296
296
  line-height: ${qr};
297
297
  text-transform: ${Yr};
298
298
  }
299
- `,gi=O`
299
+ `,bi=O`
300
300
  .ft-typography--breadcrumb {
301
301
  font-family: ${Xr};
302
302
  font-size: ${Jr};
@@ -343,7 +343,7 @@ const nr=Symbol.for(""),ar=t=>{if((null==t?void 0:t.r)===nr)return null==t?void
343
343
  </${sr(this.element)}>
344
344
  `:cr`
345
345
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
346
- `}}Si.styles=[fi,hi,pi,di,ui,yi,bi,gi,vi,mi,xi,...Oi],wi([a()],Si.prototype,"element",void 0),wi([a()],Si.prototype,"variant",void 0),d("ft-typography")(Si);const Ni={padding:St.create("--ft-card-padding","","SIZE","12px"),outlineStyle:St.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:St.create("--ft-card-outline-width","","SIZE","0"),outlineColor:St.extend("--ft-card-outline-color","",Ut.colorPrimary),borderRadius:St.extend("--ft-card-border-radius","",Ut.borderRadiusM),selectedOutlineStyle:St.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:St.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:St.extend("--ft-card-selected-outline-color","",Ut.colorPrimary),selectedBorderRadius:St.extend("--ft-card-selected-border-radius","",Ut.borderRadiusM),colorSurface:St.external(Ut.colorSurface,"Design system"),colorOnSurfaceMedium:St.external(Ut.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:St.external(Ut.colorOnSurfaceHigh,"Design system"),elevation02:St.external(Ut.elevation02,"Design system"),elevation04:St.external(Ut.elevation04,"Design system")},Ci=O`
346
+ `}}Si.styles=[fi,hi,pi,di,ui,yi,gi,bi,vi,mi,xi,...Oi],wi([a()],Si.prototype,"element",void 0),wi([a()],Si.prototype,"variant",void 0),d("ft-typography")(Si);const Ni={padding:St.create("--ft-card-padding","","SIZE","12px"),outlineStyle:St.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:St.create("--ft-card-outline-width","","SIZE","0"),outlineColor:St.extend("--ft-card-outline-color","",Ut.colorPrimary),borderRadius:St.extend("--ft-card-border-radius","",Ut.borderRadiusM),selectedOutlineStyle:St.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:St.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:St.extend("--ft-card-selected-outline-color","",Ut.colorPrimary),selectedBorderRadius:St.extend("--ft-card-selected-border-radius","",Ut.borderRadiusM),colorSurface:St.external(Ut.colorSurface,"Design system"),colorOnSurfaceMedium:St.external(Ut.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:St.external(Ut.colorOnSurfaceHigh,"Design system"),elevation02:St.external(Ut.elevation02,"Design system"),elevation04:St.external(Ut.elevation04,"Design system")},Ci=O`
347
347
  :host {
348
348
  display: block;
349
349
  }
@@ -448,12 +448,12 @@ const nr=Symbol.for(""),ar=t=>{if((null==t?void 0:t.r)===nr)return null==t?void
448
448
  `,Ai=O`
449
449
  `,ji=Fo.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 Fi{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=ji.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static get(t){var e;return null!=t?Fi.build(t):null!==(e=Fi.API)&&void 0!==e?e:Fi.API=Fi.build()}static await(t){return new Promise((e=>{let o=Fi.get(t);if(o)e(o);else{const r=ji.subscribe((()=>{o=Fi.get(t),o&&(r(),e(o))}))}}))}}var Bi;const Ki=Symbol("clearAfterUnitTest");class Di{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[Bi]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=ji.getState().uiLocale,ji.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=ji.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};p(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,i,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(i=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==i?i:{};return new Dt(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})))}}Bi=Ki,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Di((async(t,e)=>(await Fi.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Di((async(t,e)=>(await Fi.await()).getCustomMessageContext(t,e))));const zi=window.FluidTopicsI18nService,Pi=window.FluidTopicsCustomI18nService;var Zi=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Mi extends Ft{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=()=>Fi.get(),this.cache=new r,this.cleanSessionDebouncer=new i}render(){return tt`
450
450
  <slot></slot>
451
- `}update(t){super.update(t),t.has("baseUrl")&&ji.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&ji.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&ji.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&ji.actions.setNoCustom(this.noCustom),t.has("editorMode")&&ji.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&ji.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&ji.actions.setSession(this.session),t.has("availableUiLocales")&&ji.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>zi.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()))))}}Mi.elementDefinitions={},Mi.styles=Ai,Zi([a()],Mi.prototype,"baseUrl",void 0),Zi([a()],Mi.prototype,"apiIntegrationIdentifier",void 0),Zi([a()],Mi.prototype,"uiLocale",void 0),Zi([u([])],Mi.prototype,"availableUiLocales",void 0),Zi([a({type:Boolean})],Mi.prototype,"editorMode",void 0),Zi([a({type:Boolean})],Mi.prototype,"noCustom",void 0),Zi([a({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Mi.prototype,"noCustomComponent",void 0),Zi([a({type:Boolean})],Mi.prototype,"withManualResources",void 0),Zi([u([])],Mi.prototype,"messageContexts",void 0),Zi([u(void 0)],Mi.prototype,"session",void 0),Zi([a({type:Object})],Mi.prototype,"apiProvider",void 0);class Ti{async listMySearches(){var t;return(null===(t=ji.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Fi.await()).listMySearches(ji.getState().session.profile.userId):[]}}const _i=new r;class Hi{async listMyBookmarks(){return _i.get("bookmarks",(async()=>(await Fi.await()).listMyBookmarks(ji.getState().session.profile.userId)))}clearCache(){_i.clear("bookmarks")}}const Gi=Fo.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Vi=new class{constructor(){this.currentSession=ji.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Hi,ji.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=ji.getState();p(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(){Gi.actions.savedSearches(void 0)}clearMyBookmarks(){Gi.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Ti,e=await t.listMySearches();Gi.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;Gi.actions.bookmarks(e)}}};var qi,Yi,Xi,Ji,Qi,tn,en,on,rn,nn,an,sn,ln,cn;d("ft-app-context")(Mi),function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function 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 d(){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)||i(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=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,r,i=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),u.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),i=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function g(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},d.call(y.prototype),d.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},g.error=function(){var t=new g(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];g.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new g(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 m(t,r){return new Promise((function(i,n){var a=new y(t,r);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var i=o.join(":").trim();e.append(r,i)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new g(r,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=y,t.Response=g),e.Headers=l,e.Request=y,e.Response=g,e.fetch=m,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(qi||(qi={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Yi||(Yi={})),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"}(Xi||(Xi={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Ji||(Ji={})),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"}(tn||(tn={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(en||(en={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(on||(on={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(rn||(rn={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(nn||(nn={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(an||(an={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(sn||(sn={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(ln||(ln={})),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"}(cn||(cn={})),cn.PERSONAL_BOOK_SHARE_USER,cn.PERSONAL_BOOK_USER,cn.HTML_EXPORT_USER,cn.PERSONAL_BOOK_USER,cn.PDF_EXPORT_USER,cn.PERSONAL_BOOK_USER,cn.KHUB_ADMIN,cn.CONTENT_PUBLISHER,cn.ADMIN,cn.KHUB_ADMIN,cn.USERS_ADMIN,cn.PORTAL_ADMIN,cn.DEVELOPER,cn.BETA_USER,cn.DEBUG_USER;class fn extends Event{constructor(){super(fn.eventName)}}fn.eventName="search-context-clear-all-filters";var hn=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class pn extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const dn=Symbol("registerInterval");class un 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[dn]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[dn]):this.dispatchEvent(new pn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=dn,hn([s()],o.prototype,"stateManager",void 0),o}(Gt)){}
451
+ `}update(t){super.update(t),t.has("baseUrl")&&ji.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&ji.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&ji.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&ji.actions.setNoCustom(this.noCustom),t.has("editorMode")&&ji.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&ji.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&ji.actions.setSession(this.session),t.has("availableUiLocales")&&ji.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>zi.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()))))}}Mi.elementDefinitions={},Mi.styles=Ai,Zi([a()],Mi.prototype,"baseUrl",void 0),Zi([a()],Mi.prototype,"apiIntegrationIdentifier",void 0),Zi([a()],Mi.prototype,"uiLocale",void 0),Zi([u([])],Mi.prototype,"availableUiLocales",void 0),Zi([a({type:Boolean})],Mi.prototype,"editorMode",void 0),Zi([a({type:Boolean})],Mi.prototype,"noCustom",void 0),Zi([a({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Mi.prototype,"noCustomComponent",void 0),Zi([a({type:Boolean})],Mi.prototype,"withManualResources",void 0),Zi([u([])],Mi.prototype,"messageContexts",void 0),Zi([u(void 0)],Mi.prototype,"session",void 0),Zi([a({type:Object})],Mi.prototype,"apiProvider",void 0);class Ti{async listMySearches(){var t;return(null===(t=ji.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Fi.await()).listMySearches(ji.getState().session.profile.userId):[]}}const _i=new r;class Hi{async listMyBookmarks(){return _i.get("bookmarks",(async()=>(await Fi.await()).listMyBookmarks(ji.getState().session.profile.userId)))}clearCache(){_i.clear("bookmarks")}}const Gi=Fo.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Vi=new class{constructor(){this.currentSession=ji.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Hi,ji.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=ji.getState();p(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(){Gi.actions.savedSearches(void 0)}clearMyBookmarks(){Gi.actions.bookmarks(void 0)}async reloadMySearches(){const t=new Ti,e=await t.listMySearches();Gi.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;Gi.actions.bookmarks(e)}}};var qi,Yi,Xi,Ji,Qi,tn,en,on,rn,nn,an,sn,ln,cn;d("ft-app-context")(Mi),function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function 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 d(){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)||i(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=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,r,i=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),u.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),i=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},d.call(y.prototype),d.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];b.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,r){return new Promise((function(i,n){var a=new y(t,r);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var i=o.join(":").trim();e.append(r,i)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new b(r,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=y,t.Response=b),e.Headers=l,e.Request=y,e.Response=b,e.fetch=m,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(qi||(qi={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Yi||(Yi={})),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"}(Xi||(Xi={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Ji||(Ji={})),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"}(tn||(tn={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(en||(en={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(on||(on={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(rn||(rn={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(nn||(nn={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(an||(an={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(sn||(sn={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(ln||(ln={})),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"}(cn||(cn={})),cn.PERSONAL_BOOK_SHARE_USER,cn.PERSONAL_BOOK_USER,cn.HTML_EXPORT_USER,cn.PERSONAL_BOOK_USER,cn.PDF_EXPORT_USER,cn.PERSONAL_BOOK_USER,cn.KHUB_ADMIN,cn.CONTENT_PUBLISHER,cn.ADMIN,cn.KHUB_ADMIN,cn.USERS_ADMIN,cn.PORTAL_ADMIN,cn.DEVELOPER,cn.BETA_USER,cn.DEBUG_USER;class fn extends Event{constructor(){super(fn.eventName)}}fn.eventName="search-context-clear-all-filters";var hn=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class pn extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const dn=Symbol("registerInterval");class un 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[dn]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[dn]):this.dispatchEvent(new pn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=dn,hn([s()],o.prototype,"stateManager",void 0),o}(Gt)){}
452
452
  /**
453
453
  * @license
454
454
  * Copyright 2017 Google LLC
455
455
  * SPDX-License-Identifier: BSD-3-Clause
456
- */class yn extends Ho{constructor(t){if(super(t),this.et=ot,t.type!==To)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ot||null==t)return this.ft=void 0,this.et=t;if(t===et)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}yn.directiveName="unsafeHTML",yn.resultType=1;const bn=_o(yn);var gn,vn;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(gn||(gn={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(vn||(vn={})),new Map([...["abw"].map((t=>[t,vn.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,vn.AUDIO])),...["avi"].map((t=>[t,vn.AVI])),...["chm","xhs"].map((t=>[t,vn.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,vn.CODE])),...["csv"].map((t=>[t,vn.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,vn.DITA])),...["epub"].map((t=>[t,vn.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,vn.EXCEL])),...["flac"].map((t=>[t,vn.FLAC])),...["gif"].map((t=>[t,vn.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,vn.GZIP])),...["html","htm","xhtml"].map((t=>[t,vn.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,vn.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,vn.JPEG])),...["json"].map((t=>[t,vn.JSON])),...["m4a","m4p"].map((t=>[t,vn.M4A])),...["mov","qt"].map((t=>[t,vn.MOV])),...["mp3"].map((t=>[t,vn.MP3])),...["mp4","m4v"].map((t=>[t,vn.MP4])),...["ogg","oga"].map((t=>[t,vn.OGG])),...["pdf","ps"].map((t=>[t,vn.PDF])),...["png"].map((t=>[t,vn.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,vn.POWERPOINT])),...["rar"].map((t=>[t,vn.RAR])),...["stp"].map((t=>[t,vn.STP])),...["txt","rtf","md","mdown"].map((t=>[t,vn.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,vn.VIDEO])),...["wav"].map((t=>[t,vn.WAV])),...["wma"].map((t=>[t,vn.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,vn.WORD])),...["xml","xsl","rdf"].map((t=>[t,vn.XML])),...["yaml","yml","x-yaml"].map((t=>[t,vn.YAML])),...["zip"].map((t=>[t,vn.ZIP]))]);const mn={size:St.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:St.extend("--ft-icon-fluid-topics-font-family","",St.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:St.extend("--ft-icon-file-format-font-family","",St.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:St.extend("--ft-icon-material-font-family","",St.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:St.create("--ft-icon-vertical-align","","UNKNOWN","unset")},xn=O`
456
+ */class yn extends Ho{constructor(t){if(super(t),this.et=ot,t.type!==To)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ot||null==t)return this.ft=void 0,this.et=t;if(t===et)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}yn.directiveName="unsafeHTML",yn.resultType=1;const gn=_o(yn);var bn,vn;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(bn||(bn={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(vn||(vn={})),new Map([...["abw"].map((t=>[t,vn.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,vn.AUDIO])),...["avi"].map((t=>[t,vn.AVI])),...["chm","xhs"].map((t=>[t,vn.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,vn.CODE])),...["csv"].map((t=>[t,vn.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,vn.DITA])),...["epub"].map((t=>[t,vn.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,vn.EXCEL])),...["flac"].map((t=>[t,vn.FLAC])),...["gif"].map((t=>[t,vn.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,vn.GZIP])),...["html","htm","xhtml"].map((t=>[t,vn.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,vn.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,vn.JPEG])),...["json"].map((t=>[t,vn.JSON])),...["m4a","m4p"].map((t=>[t,vn.M4A])),...["mov","qt"].map((t=>[t,vn.MOV])),...["mp3"].map((t=>[t,vn.MP3])),...["mp4","m4v"].map((t=>[t,vn.MP4])),...["ogg","oga"].map((t=>[t,vn.OGG])),...["pdf","ps"].map((t=>[t,vn.PDF])),...["png"].map((t=>[t,vn.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,vn.POWERPOINT])),...["rar"].map((t=>[t,vn.RAR])),...["stp"].map((t=>[t,vn.STP])),...["txt","rtf","md","mdown"].map((t=>[t,vn.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,vn.VIDEO])),...["wav"].map((t=>[t,vn.WAV])),...["wma"].map((t=>[t,vn.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,vn.WORD])),...["xml","xsl","rdf"].map((t=>[t,vn.XML])),...["yaml","yml","x-yaml"].map((t=>[t,vn.YAML])),...["zip"].map((t=>[t,vn.ZIP]))]);const mn={size:St.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:St.extend("--ft-icon-fluid-topics-font-family","",St.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:St.extend("--ft-icon-file-format-font-family","",St.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:St.extend("--ft-icon-material-font-family","",St.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:St.create("--ft-icon-vertical-align","","UNKNOWN","unset")},xn=O`
457
457
  :host, i.ft-icon {
458
458
  display: inline-flex;
459
459
  align-items: center;
@@ -503,10 +503,10 @@ const nr=Symbol.for(""),ar=t=>{if((null==t?void 0:t.r)===nr)return null==t?void
503
503
  }
504
504
  `;var On;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(On||(On={}));var wn=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Sn extends Ft{constructor(){super(...arguments),this.resolvedIcon=ot}render(){const t=this.variant&&Object.values(On).includes(this.variant)?this.variant:On.fluid_topics,e=t!==On.material||!!this.value;return tt`
505
505
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
506
- ${bn(this.resolvedIcon)}
506
+ ${gn(this.resolvedIcon)}
507
507
  <slot ?hidden=${e}></slot>
508
508
  </i>
509
- `}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 On.file_format:this.resolvedIcon=null!==(t=vn[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case On.material:this.resolvedIcon=this.value||ot;break;default:this.resolvedIcon=null!==(e=gn[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Sn.elementDefinitions={},Sn.styles=xn,wn([a()],Sn.prototype,"variant",void 0),wn([a()],Sn.prototype,"value",void 0),wn([s()],Sn.prototype,"resolvedIcon",void 0),wn([c("slot")],Sn.prototype,"slottedContent",void 0),d("ft-icon")(Sn);const Nn={color:St.extend("--ft-loader-color","",Ut.colorPrimary),size:St.create("--ft-loader-size","","SIZE","80px")},Cn=O`
509
+ `}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 On.file_format:this.resolvedIcon=null!==(t=vn[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case On.material:this.resolvedIcon=this.value||ot;break;default:this.resolvedIcon=null!==(e=bn[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Sn.elementDefinitions={},Sn.styles=xn,wn([a()],Sn.prototype,"variant",void 0),wn([a()],Sn.prototype,"value",void 0),wn([s()],Sn.prototype,"resolvedIcon",void 0),wn([c("slot")],Sn.prototype,"slottedContent",void 0),d("ft-icon")(Sn);const Nn={color:St.extend("--ft-loader-color","",Ut.colorPrimary),size:St.create("--ft-loader-size","","SIZE","80px")},Cn=O`
510
510
  :host {
511
511
  line-height: 0;
512
512
  }
@@ -795,7 +795,7 @@ function(t,e,o){let r,i=t;return"object"==typeof t?(i=t.slot,r=t):r={flatten:e},
795
795
  </ft-tooltip>
796
796
  `:t}resolveIcon(){return this.loading?tt`
797
797
  <ft-loader part="loader icon"></ft-loader> `:this.icon?tt`
798
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ot}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}}Hn.elementDefinitions={"ft-ripple":ir,"ft-tooltip":Mn,"ft-typography":Si,"ft-icon":Sn,"ft-loader":Tn},_n([a({type:String,reflect:!0})],Hn.prototype,"role",void 0),_n([a()],Hn.prototype,"type",void 0),_n([a({type:Boolean})],Hn.prototype,"disabled",void 0),_n([a()],Hn.prototype,"label",void 0),_n([a()],Hn.prototype,"icon",void 0),_n([a()],Hn.prototype,"iconVariant",void 0),_n([a({type:Boolean})],Hn.prototype,"trailingIcon",void 0),_n([a({type:Boolean})],Hn.prototype,"loading",void 0),_n([a()],Hn.prototype,"tooltipPosition",void 0),_n([a({type:Boolean})],Hn.prototype,"hideTooltip",void 0),_n([a({type:Boolean})],Hn.prototype,"forceTooltip",void 0),_n([c(".ft-button")],Hn.prototype,"button",void 0),_n([c(".ft-button--label slot")],Hn.prototype,"slottedContent",void 0);var Gn=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Vn extends Hn{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!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"}}Vn.styles=[Kt,An],Gn([a({type:Boolean})],Vn.prototype,"primary",void 0),Gn([a({type:Boolean})],Vn.prototype,"outlined",void 0),Gn([a({type:Boolean})],Vn.prototype,"disabled",void 0),Gn([a({type:Boolean})],Vn.prototype,"dense",void 0),Gn([a({type:Boolean})],Vn.prototype,"round",void 0);const qn=[O`
798
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:ot}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}}Hn.elementDefinitions={"ft-ripple":ir,"ft-tooltip":Mn,"ft-typography":Si,"ft-icon":Sn,"ft-loader":Tn},_n([a({type:String,reflect:!0})],Hn.prototype,"role",void 0),_n([a()],Hn.prototype,"type",void 0),_n([a({type:Boolean})],Hn.prototype,"disabled",void 0),_n([a()],Hn.prototype,"label",void 0),_n([a()],Hn.prototype,"icon",void 0),_n([a()],Hn.prototype,"iconVariant",void 0),_n([a({type:Boolean})],Hn.prototype,"trailingIcon",void 0),_n([a({type:Boolean})],Hn.prototype,"loading",void 0),_n([a()],Hn.prototype,"tooltipPosition",void 0),_n([a({type:Boolean})],Hn.prototype,"hideTooltip",void 0),_n([a({type:Boolean})],Hn.prototype,"forceTooltip",void 0),_n([c(".ft-button")],Hn.prototype,"button",void 0),_n([c(".ft-button--label slot")],Hn.prototype,"slottedContent",void 0);var Gn=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Vn extends Hn{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"}}Vn.styles=[Kt,An],Gn([a({type:Boolean})],Vn.prototype,"primary",void 0),Gn([a({type:Boolean})],Vn.prototype,"outlined",void 0),Gn([a({type:Boolean})],Vn.prototype,"dense",void 0),Gn([a({type:Boolean})],Vn.prototype,"round",void 0);const qn=[O`
799
799
  :host {
800
800
  display: inline-block;
801
801
  max-width: 100%;
@@ -1018,7 +1018,7 @@ function(t,e,o){let r,i=t;return"object"==typeof t?(i=t.slot,r=t):r={flatten:e},
1018
1018
  <span class="ft-i18n">
1019
1019
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1020
1020
  </span>
1021
- `:this.editorMode?"Select a context and a label key.":ot}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}aa.elementDefinitions={},aa.styles=Jn,na([Bo()],aa.prototype,"editorMode",void 0),na([a()],aa.prototype,"context",void 0),na([a()],aa.prototype,"key",void 0),na([u([])],aa.prototype,"args",void 0),na([a()],aa.prototype,"defaultMessage",void 0);class sa{static build(t){return new sa(t)}static fromGwt(t){return new sa(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)=>zi.resolveMessage(this.name,e,...t)})}}d("ft-i18n")(aa);const la=sa.build("savedSearchesComponent"),ca={displaySavedSearchesHere:"Display saved searches here.",missingRole:"Saved search unavailable: missing role {0}.",keywords:"Keywords",language:"Language",sort:"Sort",period:"Period",relevance:"Relevance",lastUpdate:"Last update",lastWeek:"Less than one week",lastMonth:"Less than one month",lastYear:"Less than one year",customPeriod:"Custom period",search:"Search",in:"In",titles:"Titles",resultsType:"Results type",documentsOnly:"Documents only"},fa=St.extend("--ft-chip-color","",Ut.colorOnSurface),ha={backgroundColor:St.extend("--ft-chip-background-color","",Ut.colorSurface),color:fa,fontSize:St.extend("--ft-chip-font-size","",Tr.fontSize),iconSize:St.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:St.extend("--ft-chip-ripple-color","",fa),horizontalPadding:St.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:St.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:St.external(Ut.colorOutline,"Design system"),opacityDisabled:St.external(Ut.colorOpacityDisabled,"Design system")},pa=St.extend("--ft-chip-highlighted-color","",St.extend("--ft-chip-color","",Ut.colorOnPrimary)),da={backgroundColor:St.extend("--ft-chip-highlighted-background-color","",St.extend("--ft-chip-background-color","",Ut.colorPrimary)),color:pa,rippleColor:St.extend("--ft-chip-highlighted-ripple-color","",pa)},ua=St.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),ya=St.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),ba=[Bt,O`
1021
+ `:this.editorMode?"Select a context and a label key.":ot}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}aa.elementDefinitions={},aa.styles=Jn,na([Bo()],aa.prototype,"editorMode",void 0),na([a()],aa.prototype,"context",void 0),na([a()],aa.prototype,"key",void 0),na([u([])],aa.prototype,"args",void 0),na([a()],aa.prototype,"defaultMessage",void 0);class sa{static build(t){return new sa(t)}static fromGwt(t){return new sa(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)=>zi.resolveMessage(this.name,e,...t)})}}d("ft-i18n")(aa);const la=sa.build("savedSearchesComponent"),ca={displaySavedSearchesHere:"Display saved searches here.",missingRole:"Saved search unavailable: missing role {0}.",keywords:"Keywords",language:"Language",sort:"Sort",period:"Period",relevance:"Relevance",lastUpdate:"Last update",lastWeek:"Less than one week",lastMonth:"Less than one month",lastYear:"Less than one year",customPeriod:"Custom period",search:"Search",in:"In",titles:"Titles",resultsType:"Results type",documentsOnly:"Documents only"},fa=St.extend("--ft-chip-color","",Ut.colorOnSurface),ha={backgroundColor:St.extend("--ft-chip-background-color","",Ut.colorSurface),color:fa,fontSize:St.extend("--ft-chip-font-size","",Tr.fontSize),iconSize:St.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:St.extend("--ft-chip-ripple-color","",fa),horizontalPadding:St.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:St.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:St.external(Ut.colorOutline,"Design system"),opacityDisabled:St.external(Ut.colorOpacityDisabled,"Design system")},pa=St.extend("--ft-chip-highlighted-color","",St.extend("--ft-chip-color","",Ut.colorOnPrimary)),da={backgroundColor:St.extend("--ft-chip-highlighted-background-color","",St.extend("--ft-chip-background-color","",Ut.colorPrimary)),color:pa,rippleColor:St.extend("--ft-chip-highlighted-ripple-color","",pa)},ua=St.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),ya=St.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),ga=[Bt,O`
1022
1022
  :host {
1023
1023
  display: inline-block;
1024
1024
  max-width: 100%;
@@ -1155,7 +1155,7 @@ function(t,e,o){let r,i=t;return"object"==typeof t?(i=t.slot,r=t):r={flatten:e},
1155
1155
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1156
1156
  order: -1;
1157
1157
  }
1158
- `];var ga=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class va extends CustomEvent{constructor(){super("icon-click")}}class ma extends Ft{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Zo};return tt`
1158
+ `];var ba=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class va extends CustomEvent{constructor(){super("icon-click")}}class ma extends Ft{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Zo};return tt`
1159
1159
  <div class="${Go(t)}"
1160
1160
  aria-label="${this.getLabel()}"
1161
1161
  tabindex="${this.interactionsOnChip?0:-1}"
@@ -1178,7 +1178,7 @@ function(t,e,o){let r,i=t;return"object"==typeof t?(i=t.slot,r=t):r={flatten:e},
1178
1178
  <div class="ft-chip--icon-container ft-no-text-select">
1179
1179
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
1180
1180
  </div>
1181
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new va))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new va))}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)}}ma.elementDefinitions={"ft-ripple":ir,"ft-typography":Si,"ft-icon":Sn,"ft-button":Vn},ma.styles=ba,ga([a({type:Boolean})],ma.prototype,"highlighted",void 0),ga([a({type:Boolean})],ma.prototype,"removable",void 0),ga([a({type:Boolean})],ma.prototype,"disabled",void 0),ga([a({type:Boolean})],ma.prototype,"clickable",void 0),ga([a({type:Boolean})],ma.prototype,"iconClickable",void 0),ga([a({type:Boolean})],ma.prototype,"dense",void 0),ga([a({type:Boolean})],ma.prototype,"multiLine",void 0),ga([a()],ma.prototype,"label",void 0),ga([a()],ma.prototype,"iconLabel",void 0),ga([a()],ma.prototype,"icon",void 0),ga([a()],ma.prototype,"iconVariant",void 0),ga([a({type:Boolean})],ma.prototype,"trailingIcon",void 0),ga([c("ft-typography slot")],ma.prototype,"slottedContent",void 0),d("ft-chip")(ma);var xa=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Oa extends(oa(un)){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.selected=!1,this.addI18nContext(la,ca)}render(){var t;return tt`
1181
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new va))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new va))}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)}}ma.elementDefinitions={"ft-ripple":ir,"ft-typography":Si,"ft-icon":Sn,"ft-button":Vn},ma.styles=ga,ba([a({type:Boolean})],ma.prototype,"highlighted",void 0),ba([a({type:Boolean})],ma.prototype,"removable",void 0),ba([a({type:Boolean})],ma.prototype,"disabled",void 0),ba([a({type:Boolean})],ma.prototype,"clickable",void 0),ba([a({type:Boolean})],ma.prototype,"iconClickable",void 0),ba([a({type:Boolean})],ma.prototype,"dense",void 0),ba([a({type:Boolean})],ma.prototype,"multiLine",void 0),ba([a()],ma.prototype,"label",void 0),ba([a()],ma.prototype,"iconLabel",void 0),ba([a()],ma.prototype,"icon",void 0),ba([a()],ma.prototype,"iconVariant",void 0),ba([a({type:Boolean})],ma.prototype,"trailingIcon",void 0),ba([c("ft-typography slot")],ma.prototype,"slottedContent",void 0),d("ft-chip")(ma);var xa=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Oa extends(oa(un)){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.selected=!1,this.addI18nContext(la,ca)}render(){var t;return tt`
1182
1182
  <ft-card title="${null===(t=this.search)||void 0===t?void 0:t.title}" clickable ?selected="${this.selected}">
1183
1183
  ${this.renderAlertStatus()}
1184
1184
  <div id="container">
@@ -1254,7 +1254,7 @@ function(t,e,o){let r,i=t;return"object"==typeof t?(i=t.slot,r=t):r={flatten:e},
1254
1254
  * Copyright 2020 Google LLC
1255
1255
  * SPDX-License-Identifier: BSD-3-Clause
1256
1256
  */
1257
- const{I:wa}=bt,Sa=()=>document.createComment(""),Na=(t,e,o)=>{var r;const i=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=i.insertBefore(Sa(),n),r=i.insertBefore(Sa(),n);o=new wa(e,r,t,t.options)}else{const e=o._$AB.nextSibling,a=o._$AM,s=a!==t;if(s){let e;null===(r=o._$AQ)||void 0===r||r.call(o,t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==a._$AU&&o._$AP(e)}if(e!==n||s){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,n),t=e}}}return o},Ca=(t,e,o=t)=>(t._$AI(e,o),t),Ea={},$a=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let o=t._$AA;const r=t._$AB.nextSibling;for(;o!==r;){const t=o.nextSibling;o.remove(),o=t}},Ra=(t,e,o)=>{const r=new Map;for(let i=e;i<=o;i++)r.set(t[i],i);return r},Ua=_o(class extends Ho{constructor(t){if(super(t),t.type!==To)throw Error("repeat() can only be used in text expressions")}dt(t,e,o){let r;void 0===o?o=e:void 0!==e&&(r=e);const i=[],n=[];let a=0;for(const e of t)i[a]=r?r(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:i}}render(t,e,o){return this.dt(t,e,o).values}update(t,[e,o,r]){var i;const n=(t=>t._$AH)(t),{values:a,keys:s}=this.dt(e,o,r);if(!Array.isArray(n))return this.ht=s,a;const l=null!==(i=this.ht)&&void 0!==i?i:this.ht=[],c=[];let f,h,p=0,d=n.length-1,u=0,y=a.length-1;for(;p<=d&&u<=y;)if(null===n[p])p++;else if(null===n[d])d--;else if(l[p]===s[u])c[u]=Ca(n[p],a[u]),p++,u++;else if(l[d]===s[y])c[y]=Ca(n[d],a[y]),d--,y--;else if(l[p]===s[y])c[y]=Ca(n[p],a[y]),Na(t,c[y+1],n[p]),p++,y--;else if(l[d]===s[u])c[u]=Ca(n[d],a[u]),Na(t,n[p],n[d]),d--,u++;else if(void 0===f&&(f=Ra(s,u,y),h=Ra(l,p,d)),f.has(l[p]))if(f.has(l[d])){const e=h.get(s[u]),o=void 0!==e?n[e]:null;if(null===o){const e=Na(t,n[p]);Ca(e,a[u]),c[u]=e}else c[u]=Ca(o,a[u]),Na(t,n[p],o),n[e]=null;u++}else $a(n[d]),d--;else $a(n[p]),p++;for(;u<=y;){const e=Na(t,c[y+1]);Ca(e,a[u]),c[u++]=e}for(;p<=d;){const t=n[p++];null!==t&&$a(t)}return this.ht=s,((t,e=Ea)=>{t._$AH=e})(t,c),et}});
1257
+ const{I:wa}=gt,Sa=()=>document.createComment(""),Na=(t,e,o)=>{var r;const i=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=i.insertBefore(Sa(),n),r=i.insertBefore(Sa(),n);o=new wa(e,r,t,t.options)}else{const e=o._$AB.nextSibling,a=o._$AM,s=a!==t;if(s){let e;null===(r=o._$AQ)||void 0===r||r.call(o,t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==a._$AU&&o._$AP(e)}if(e!==n||s){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,n),t=e}}}return o},Ca=(t,e,o=t)=>(t._$AI(e,o),t),Ea={},$a=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let o=t._$AA;const r=t._$AB.nextSibling;for(;o!==r;){const t=o.nextSibling;o.remove(),o=t}},Ra=(t,e,o)=>{const r=new Map;for(let i=e;i<=o;i++)r.set(t[i],i);return r},Ua=_o(class extends Ho{constructor(t){if(super(t),t.type!==To)throw Error("repeat() can only be used in text expressions")}dt(t,e,o){let r;void 0===o?o=e:void 0!==e&&(r=e);const i=[],n=[];let a=0;for(const e of t)i[a]=r?r(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:i}}render(t,e,o){return this.dt(t,e,o).values}update(t,[e,o,r]){var i;const n=(t=>t._$AH)(t),{values:a,keys:s}=this.dt(e,o,r);if(!Array.isArray(n))return this.ht=s,a;const l=null!==(i=this.ht)&&void 0!==i?i:this.ht=[],c=[];let f,h,p=0,d=n.length-1,u=0,y=a.length-1;for(;p<=d&&u<=y;)if(null===n[p])p++;else if(null===n[d])d--;else if(l[p]===s[u])c[u]=Ca(n[p],a[u]),p++,u++;else if(l[d]===s[y])c[y]=Ca(n[d],a[y]),d--,y--;else if(l[p]===s[y])c[y]=Ca(n[p],a[y]),Na(t,c[y+1],n[p]),p++,y--;else if(l[d]===s[u])c[u]=Ca(n[d],a[u]),Na(t,n[p],n[d]),d--,u++;else if(void 0===f&&(f=Ra(s,u,y),h=Ra(l,p,d)),f.has(l[p]))if(f.has(l[d])){const e=h.get(s[u]),o=void 0!==e?n[e]:null;if(null===o){const e=Na(t,n[p]);Ca(e,a[u]),c[u]=e}else c[u]=Ca(o,a[u]),Na(t,n[p],o),n[e]=null;u++}else $a(n[d]),d--;else $a(n[p]),p++;for(;u<=y;){const e=Na(t,c[y+1]);Ca(e,a[u]),c[u++]=e}for(;p<=d;){const t=n[p++];null!==t&&$a(t)}return this.ht=s,((t,e=Ea)=>{t._$AH=e})(t,c),et}});
1258
1258
  /**
1259
1259
  * @license
1260
1260
  * Copyright 2017 Google LLC
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-search-saved-searches",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
4
4
  "description": "Displays the saved searches",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-search-context": "1.0.61",
23
- "@fluid-topics/ft-wc-utils": "1.0.61",
22
+ "@fluid-topics/ft-search-context": "1.0.63",
23
+ "@fluid-topics/ft-wc-utils": "1.0.63",
24
24
  "lit": "2.7.2"
25
25
  },
26
26
  "devDependencies": {
27
- "@fluid-topics/public-api": "1.0.48"
27
+ "@fluid-topics/public-api": "1.0.50"
28
28
  },
29
- "gitHead": "c2a916c32bd1fe396316800c6afd78662ed27409"
29
+ "gitHead": "020d13bf82a28437f4d7a7395ad9b628bc4342f1"
30
30
  }