@fluid-topics/ft-reader-attachments 1.1.33 → 1.1.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let f=o.call(r,t);f||(f=p(t),e.call(r,t,f)),this===window.customElements&&(a.set(i,l),l.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),i.set(e,o),e},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!l(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),l(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},p=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)}},h=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n,i),o.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),o.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const e=this.getAttribute(i);o.call(this,i,t,e)}else n.call(this,i,r)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):d(o)},u=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),i.set(t,e),c=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===i.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),i=e.get(r)||[];this[+o]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=i.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Wa){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}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let f=o.call(r,t);f||(f=p(t),e.call(r,t,f)),this===window.customElements&&(a.set(i,l),l.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),i.set(e,o),e},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!l(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),l(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},p=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)}},h=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n,i),o.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),o.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const e=this.getAttribute(i);o.call(this,i,t,e)}else n.call(this,i,r)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):d(o)},u=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),i.set(t,e),c=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===i.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),i=e.get(r)||[];this[+o]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=i.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch($a){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}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -48,7 +48,7 @@ const E={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:S},U=(t=E,e,
48
48
  * @license
49
49
  * Copyright 2017 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
- */const A=globalThis,j=A.trustedTypes,F=j?j.createPolicy("lit-html",{createHTML:t=>t}):void 0,Z="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,M="?"+z,D=`<${M}>`,B=document,P=()=>B.createComment(""),_=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,T=t=>H(t)||"function"==typeof t?.[Symbol.iterator],G="[ \t\n\f\r]",q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,Y=/>/g,J=RegExp(`>|${G}(?:([^\\s"'>=/]+)(${G}*=${G}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,Q=/"/g,tt=/^(?:script|style|textarea|title)$/i,et=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),ot=Symbol.for("lit-noChange"),rt=Symbol.for("lit-nothing"),it=new WeakMap,nt=B.createTreeWalker(B,129);function at(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==F?F.createHTML(e):e}const st=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":"",a=q;for(let e=0;e<o;e++){const o=t[e];let s,c,l=-1,f=0;for(;f<o.length&&(a.lastIndex=f,c=a.exec(o),null!==c);)f=a.lastIndex,a===q?"!--"===c[1]?a=V:void 0!==c[1]?a=Y:void 0!==c[2]?(tt.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=J):void 0!==c[3]&&(a=J):a===J?">"===c[0]?(a=i??q,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?J:'"'===c[3]?Q:X):a===Q||a===X?a=J:a===V||a===Y?a=q:(a=J,i=void 0);const p=a===J&&t[e+1].startsWith("/>")?" ":"";n+=a===q?o+D:l>=0?(r.push(s),o.slice(0,l)+Z+o.slice(l)+z+p):o+z+(-2===l?e:p)}return[at(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),r]};let ct=class t{constructor({strings:e,_$litType$:o},r){let i;this.parts=[];let n=0,a=0;const s=e.length-1,c=this.parts,[l,f]=st(e,o);if(this.el=t.createElement(l,r),nt.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=nt.nextNode())&&c.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Z)){const e=f[a++],o=i.getAttribute(t).split(z),r=/([.?@])?(.*)/.exec(e);c.push({type:1,index:n,name:r[2],strings:o,ctor:"."===r[1]?dt:"?"===r[1]?ut:"@"===r[1]?yt:ht}),i.removeAttribute(t)}else t.startsWith(z)&&(c.push({type:6,index:n}),i.removeAttribute(t));if(tt.test(i.tagName)){const t=i.textContent.split(z),e=t.length-1;if(e>0){i.textContent=j?j.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],P()),nt.nextNode(),c.push({type:2,index:++n});i.append(t[e],P())}}}else if(8===i.nodeType)if(i.data===M)c.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(z,t+1));)c.push({type:7,index:n}),t+=z.length-1}n++}}static createElement(t,e){const o=B.createElement("template");return o.innerHTML=t,o}};function lt(t,e,o=t,r){if(e===ot)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=_(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=i:o._$Cl=i),void 0!==i&&(e=lt(t,i._$AS(t,e.values),i,r)),e}let ft=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??B).importNode(e,!0);nt.currentNode=r;let i=nt.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new pt(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new gt(i,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(i=nt.nextNode(),n++)}return nt.currentNode=B,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},pt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=rt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=lt(this,t,e),_(t)?t===rt||null==t||""===t?(this._$AH!==rt&&this._$AR(),this._$AH=rt):t!==this._$AH&&t!==ot&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):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!==rt&&_(this._$AH)?this._$AA.nextSibling.data=t:this.$(B.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ct.createElement(at(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new ft(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=it.get(t.strings);return void 0===e&&it.set(t.strings,e=new ct(t)),e}T(e){H(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(P()),this.k(P()),this,this.options)):r=o[i],r._$AI(n),i++;i<o.length&&(this._$AR(r&&r._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},ht=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=rt,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=rt}_$AI(t,e=this,o,r){const i=this.strings;let n=!1;if(void 0===i)t=lt(this,t,e,0),n=!_(t)||t!==this._$AH&&t!==ot,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=lt(this,r[o+a],e,a),s===ot&&(s=this._$AH[a]),n||=!_(s)||s!==this._$AH[a],s===rt?t=rt:t!==rt&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===rt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},dt=class extends ht{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===rt?void 0:t}},ut=class extends ht{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==rt)}},yt=class extends ht{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=lt(this,t,e,0)??rt)===ot)return;const o=this._$AH,r=t===rt&&o!==rt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==rt&&(o===rt||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},gt=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){lt(this,t)}};const bt={j:Z,P:z,A:M,C:1,M:st,L:ft,R:T,V:lt,D:pt,I:ht,H:ut,N:yt,U:dt,B:gt},mt=A.litHtmlPolyfillSupport;mt?.(ct,pt),(A.litHtmlVersions??=[]).push("3.1.0");
51
+ */const A=globalThis,j=A.trustedTypes,F=j?j.createPolicy("lit-html",{createHTML:t=>t}):void 0,Z="$lit$",M=`lit$${(Math.random()+"").slice(9)}$`,z="?"+M,D=`<${z}>`,B=document,P=()=>B.createComment(""),_=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,T=t=>H(t)||"function"==typeof t?.[Symbol.iterator],G="[ \t\n\f\r]",q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,Y=/>/g,J=RegExp(`>|${G}(?:([^\\s"'>=/]+)(${G}*=${G}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,Q=/"/g,tt=/^(?:script|style|textarea|title)$/i,et=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),ot=Symbol.for("lit-noChange"),rt=Symbol.for("lit-nothing"),it=new WeakMap,nt=B.createTreeWalker(B,129);function at(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==F?F.createHTML(e):e}const st=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":"",a=q;for(let e=0;e<o;e++){const o=t[e];let s,c,l=-1,f=0;for(;f<o.length&&(a.lastIndex=f,c=a.exec(o),null!==c);)f=a.lastIndex,a===q?"!--"===c[1]?a=V:void 0!==c[1]?a=Y:void 0!==c[2]?(tt.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=J):void 0!==c[3]&&(a=J):a===J?">"===c[0]?(a=i??q,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?J:'"'===c[3]?Q:X):a===Q||a===X?a=J:a===V||a===Y?a=q:(a=J,i=void 0);const p=a===J&&t[e+1].startsWith("/>")?" ":"";n+=a===q?o+D:l>=0?(r.push(s),o.slice(0,l)+Z+o.slice(l)+M+p):o+M+(-2===l?e:p)}return[at(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),r]};let ct=class t{constructor({strings:e,_$litType$:o},r){let i;this.parts=[];let n=0,a=0;const s=e.length-1,c=this.parts,[l,f]=st(e,o);if(this.el=t.createElement(l,r),nt.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=nt.nextNode())&&c.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Z)){const e=f[a++],o=i.getAttribute(t).split(M),r=/([.?@])?(.*)/.exec(e);c.push({type:1,index:n,name:r[2],strings:o,ctor:"."===r[1]?dt:"?"===r[1]?ut:"@"===r[1]?yt:ht}),i.removeAttribute(t)}else t.startsWith(M)&&(c.push({type:6,index:n}),i.removeAttribute(t));if(tt.test(i.tagName)){const t=i.textContent.split(M),e=t.length-1;if(e>0){i.textContent=j?j.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],P()),nt.nextNode(),c.push({type:2,index:++n});i.append(t[e],P())}}}else if(8===i.nodeType)if(i.data===z)c.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(M,t+1));)c.push({type:7,index:n}),t+=M.length-1}n++}}static createElement(t,e){const o=B.createElement("template");return o.innerHTML=t,o}};function lt(t,e,o=t,r){if(e===ot)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=_(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=i:o._$Cl=i),void 0!==i&&(e=lt(t,i._$AS(t,e.values),i,r)),e}let ft=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??B).importNode(e,!0);nt.currentNode=r;let i=nt.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new pt(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new gt(i,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(i=nt.nextNode(),n++)}return nt.currentNode=B,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},pt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=rt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=lt(this,t,e),_(t)?t===rt||null==t||""===t?(this._$AH!==rt&&this._$AR(),this._$AH=rt):t!==this._$AH&&t!==ot&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):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!==rt&&_(this._$AH)?this._$AA.nextSibling.data=t:this.$(B.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ct.createElement(at(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new ft(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=it.get(t.strings);return void 0===e&&it.set(t.strings,e=new ct(t)),e}T(e){H(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(P()),this.k(P()),this,this.options)):r=o[i],r._$AI(n),i++;i<o.length&&(this._$AR(r&&r._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},ht=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=rt,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=rt}_$AI(t,e=this,o,r){const i=this.strings;let n=!1;if(void 0===i)t=lt(this,t,e,0),n=!_(t)||t!==this._$AH&&t!==ot,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=lt(this,r[o+a],e,a),s===ot&&(s=this._$AH[a]),n||=!_(s)||s!==this._$AH[a],s===rt?t=rt:t!==rt&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===rt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},dt=class extends ht{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===rt?void 0:t}},ut=class extends ht{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==rt)}},yt=class extends ht{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=lt(this,t,e,0)??rt)===ot)return;const o=this._$AH,r=t===rt&&o!==rt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==rt&&(o===rt||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},gt=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){lt(this,t)}};const bt={j:Z,P:M,A:z,C:1,M:st,L:ft,R:T,V:lt,D:pt,I:ht,H:ut,N:yt,U:dt,B:gt},mt=A.litHtmlPolyfillSupport;mt?.(ct,pt),(A.litHtmlVersions??=[]).push("3.1.0");
52
52
  /**
53
53
  * @license
54
54
  * Copyright 2019 Google LLC
@@ -59,7 +59,7 @@ const vt=globalThis,xt=vt.ShadowRoot&&(void 0===vt.ShadyCSS||vt.ShadyCSS.nativeS
59
59
  * @license
60
60
  * Copyright 2017 Google LLC
61
61
  * SPDX-License-Identifier: BSD-3-Clause
62
- */,{is:Ut,defineProperty:Rt,getOwnPropertyDescriptor:It,getOwnPropertyNames:kt,getOwnPropertySymbols:Wt,getPrototypeOf:$t}=Object,Lt=globalThis,Kt=Lt.trustedTypes,At=Kt?Kt.emptyScript:"",jt=Lt.reactiveElementPolyfillSupport,Ft=(t,e)=>t,Zt={toAttribute(t,e){switch(e){case Boolean:t=t?At:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},zt=(t,e)=>!Ut(t,e),Mt={attribute:!0,type:String,converter:Zt,reflect:!1,hasChanged:zt};Symbol.metadata??=Symbol("metadata"),Lt.litPropertyMetadata??=new WeakMap;let Dt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Mt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&Rt(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:i}=It(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const n=r?.call(this);i.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Mt}static _$Ei(){if(this.hasOwnProperty(Ft("elementProperties")))return;const t=$t(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Ft("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ft("properties"))){const t=this.properties,e=[...kt(t),...Wt(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(Et(t))}else void 0!==t&&e.push(Et(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(xt)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=vt.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const i=(void 0!==o.converter?.toAttribute?o.converter:Zt).toAttribute(e,o.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Zt;this._$Em=r,this[r]=i.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,r=!1,i){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??zt)(r?i:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};Dt.elementStyles=[],Dt.shadowRootOptions={mode:"open"},Dt[Ft("elementProperties")]=new Map,Dt[Ft("finalized")]=new Map,jt?.({ReactiveElement:Dt}),(Lt.reactiveElementVersions??=[]).push("2.0.2");
62
+ */,{is:Ut,defineProperty:Rt,getOwnPropertyDescriptor:It,getOwnPropertyNames:kt,getOwnPropertySymbols:Wt,getPrototypeOf:$t}=Object,Lt=globalThis,Kt=Lt.trustedTypes,At=Kt?Kt.emptyScript:"",jt=Lt.reactiveElementPolyfillSupport,Ft=(t,e)=>t,Zt={toAttribute(t,e){switch(e){case Boolean:t=t?At:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},Mt=(t,e)=>!Ut(t,e),zt={attribute:!0,type:String,converter:Zt,reflect:!1,hasChanged:Mt};Symbol.metadata??=Symbol("metadata"),Lt.litPropertyMetadata??=new WeakMap;let Dt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=zt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&Rt(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:i}=It(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const n=r?.call(this);i.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??zt}static _$Ei(){if(this.hasOwnProperty(Ft("elementProperties")))return;const t=$t(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Ft("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ft("properties"))){const t=this.properties,e=[...kt(t),...Wt(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(Et(t))}else void 0!==t&&e.push(Et(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(xt)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of e){const e=document.createElement("style"),r=vt.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const i=(void 0!==o.converter?.toAttribute?o.converter:Zt).toAttribute(e,o.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Zt;this._$Em=r,this[r]=i.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,r=!1,i){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Mt)(r?i:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};Dt.elementStyles=[],Dt.shadowRootOptions={mode:"open"},Dt[Ft("elementProperties")]=new Map,Dt[Ft("finalized")]=new Map,jt?.({ReactiveElement:Dt}),(Lt.reactiveElementVersions??=[]).push("2.0.2");
63
63
  /**
64
64
  * @license
65
65
  * Copyright 2017 Google LLC
@@ -76,9 +76,9 @@ let we=class extends Dt{constructor(){super(...arguments),this.renderOptions={ho
76
76
  * @license
77
77
  * Copyright 2019 Google LLC
78
78
  * SPDX-License-Identifier: BSD-3-Clause
79
- */class Le extends we{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{$e?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),r=We.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Ke,Ae=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const je=Symbol("constructorPrototype"),Fe=Symbol("constructorName"),Ze=Symbol("exportpartsDebouncer");class ze extends Le{constructor(){super(),this[Ke]=new i(5),this[Fe]=this.constructor.name,this[je]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Fe]&&Object.setPrototypeOf(this,this[je])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Ze].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,r,i,n,a;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const f=[...l.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Ke=Ze,Ae([R()],ze.prototype,"exportpartsPrefix",void 0),Ae([K([])],ze.prototype,"exportpartsPrefixes",void 0),Ae([R()],ze.prototype,"customStylesheet",void 0);const Me=Ce.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Ct`
79
+ */class Le extends we{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{$e?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),r=We.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Ke,Ae=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const je=Symbol("constructorPrototype"),Fe=Symbol("constructorName"),Ze=Symbol("exportpartsDebouncer");class Me extends Le{constructor(){super(),this[Ke]=new i(5),this[Fe]=this.constructor.name,this[je]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Fe]&&Object.setPrototypeOf(this,this[je])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,o;if((null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==o?o:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[Ze].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,r,i,n,a;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const f=[...l.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Ke=Ze,Ae([R()],Me.prototype,"exportpartsPrefix",void 0),Ae([K([])],Me.prototype,"exportpartsPrefixes",void 0),Ae([R()],Me.prototype,"customStylesheet",void 0);const ze=Ce.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Ct`
80
80
  .highlight-html-match {
81
- background: ${Me};
81
+ background: ${ze};
82
82
  }
83
83
  `,Ct`
84
84
  .ft-no-text-select {
@@ -112,7 +112,7 @@ let we=class extends Dt{constructor(){super(...arguments),this.renderOptions={ho
112
112
  display: inline-block;
113
113
  width: 0;
114
114
  }
115
- `;class De{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}const Be=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!$(t,e),attribute:!1,...e};R(i)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};class Pe{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function _e(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var He,Te,Ge;const qe=Symbol("internalReduxEventsUnsubscribers"),Ve=Symbol("internalStoresUnsubscribers"),Ye=Symbol("internalStores");class Je extends ze{constructor(){super(...arguments),this[He]=new Map,this[Te]=new Map,this[Ge]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[Ye].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ye].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ye].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:_e(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[Ye].delete(e)}setupStore(t,e){this[Ye].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ye].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[Ve].has(t.store):this[Ve].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[Ve].set(t,e.subscribe((()=>this.updateFromStores()))),_e(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[qe].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ve].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[qe].forEach((t=>t())),this[qe]=[]}unsubscribeFromStore(t){this[Ve].has(t)&&this[Ve].get(t)(),this[Ve].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Xe(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 Qe(t){return!!t&&!!t[Mo]}function to(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)===Do}(t)||Array.isArray(t)||!!t[zo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[zo])||ao(t)||so(t))}function eo(t,e,o){void 0===o&&(o=!1),0===oo(t)?(o?Object.keys:Bo)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function oo(t){var e=t[Mo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ao(t)?2:so(t)?3:0}function ro(t,e){return 2===oo(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function io(t,e,o){var r=oo(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function no(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function ao(t){return Ao&&t instanceof Map}function so(t){return jo&&t instanceof Set}function co(t){return t.o||t.t}function lo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Po(t);delete e[Mo];for(var o=Bo(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 fo(t,e){return void 0===e&&(e=!1),ho(t)||Qe(t)||!to(t)||(oo(t)>1&&(t.set=t.add=t.clear=t.delete=po),Object.freeze(t),e&&eo(t,(function(t,e){return fo(e,!0)}),!0)),t}function po(){Xe(2)}function ho(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function uo(t){var e=_o[t];return e||Xe(18,t),e}function yo(){return Lo}function go(t,e){e&&(uo("Patches"),t.u=[],t.s=[],t.v=e)}function bo(t){mo(t),t.p.forEach(xo),t.p=null}function mo(t){t===Lo&&(Lo=t.l)}function vo(t){return Lo={p:[],l:Lo,h:t,m:!0,_:0}}function xo(t){var e=t[Mo];0===e.i||1===e.i?e.j():e.g=!0}function Oo(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||uo("ES5").S(e,t,r),r?(o[Mo].P&&(bo(e),Xe(4)),to(t)&&(t=wo(e,t),e.l||No(e,t)),e.u&&uo("Patches").M(o[Mo].t,t,e.u,e.s)):t=wo(e,o,[]),bo(e),e.u&&e.v(e.u,e.s),t!==Zo?t:void 0}function wo(t,e,o){if(ho(e))return e;var r=e[Mo];if(!r)return eo(e,(function(i,n){return So(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return No(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=lo(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),eo(n,(function(e,n){return So(t,r,i,e,n,o,a)})),No(t,i,!1),o&&t.u&&uo("Patches").N(r,o,t.u,t.s)}return r.o}function So(t,e,o,r,i,n,a){if(Qe(i)){var s=wo(t,i,n&&e&&3!==e.i&&!ro(e.R,r)?n.concat(r):void 0);if(io(o,r,s),!Qe(s))return;t.m=!1}else a&&o.add(i);if(to(i)&&!ho(i)){if(!t.h.D&&t._<1)return;wo(t,i),e&&e.A.l||No(t,i)}}function No(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&fo(e,o)}function Co(t,e){var o=t[Mo];return(o?co(o):t)[e]}function Eo(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 Uo(t){t.P||(t.P=!0,t.l&&Uo(t.l))}function Ro(t){t.o||(t.o=lo(t.t))}function Io(t,e,o){var r=ao(e)?uo("MapSet").F(e,o):so(e)?uo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:yo(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=Ho;o&&(i=[r],n=To);var a=Proxy.revocable(i,n),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):uo("ES5").J(e,o);return(o?o.A:yo()).p.push(r),r}function ko(t){return Qe(t)||Xe(22,t),function t(e){if(!to(e))return e;var o,r=e[Mo],i=oo(e);if(r){if(!r.P&&(r.i<4||!uo("ES5").K(r)))return r.t;r.I=!0,o=Wo(e,i),r.I=!1}else o=Wo(e,i);return eo(o,(function(e,i){r&&function(t,e){return 2===oo(t)?t.get(e):t[e]}(r.t,e)===i||io(o,e,t(i))})),3===i?new Set(o):o}(t)}function Wo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return lo(t)}He=Ve,Te=Ye,Ge=qe,Je.reduxProperties=new Map,Je.reduxReactiveProperties=new Set,Je.reduxEventListeners=new Map;var $o,Lo,Ko="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ao="undefined"!=typeof Map,jo="undefined"!=typeof Set,Fo="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Zo=Ko?Symbol.for("immer-nothing"):(($o={})["immer-nothing"]=!0,$o),zo=Ko?Symbol.for("immer-draftable"):"__$immer_draftable",Mo=Ko?Symbol.for("immer-state"):"__$immer_state",Do=""+Object.prototype.constructor,Bo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Po=Object.getOwnPropertyDescriptors||function(t){var e={};return Bo(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},_o={},Ho={get:function(t,e){if(e===Mo)return t;var o=co(t);if(!ro(o,e))return function(t,e,o){var r,i=Eo(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||!to(r)?r:r===Co(t.t,e)?(Ro(t),t.o[e]=Io(t.A.h,r,t)):r},has:function(t,e){return e in co(t)},ownKeys:function(t){return Reflect.ownKeys(co(t))},set:function(t,e,o){var r=Eo(co(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=Co(co(t),e),n=null==i?void 0:i[Mo];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(no(o,i)&&(void 0!==o||ro(t.t,e)))return!0;Ro(t),Uo(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!==Co(t.t,e)||e in t.t?(t.R[e]=!1,Ro(t),Uo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=co(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(){Xe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Xe(12)}},To={};eo(Ho,(function(t,e){To[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),To.deleteProperty=function(t,e){return To.set.call(this,t,e,void 0)},To.set=function(t,e,o){return Ho.set.call(this,t[0],e,o,t[0])};var Go=function(){function t(t){var e=this;this.O=Fo,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&&Xe(6),void 0!==r&&"function"!=typeof r&&Xe(7),to(t)){var s=vo(e),c=Io(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?bo(s):mo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return go(s,r),Oo(t,s)}),(function(t){throw bo(s),t})):(go(s,r),Oo(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Zo&&(a=void 0),e.D&&fo(a,!0),r){var f=[],p=[];uo("Patches").M(t,a,f,p),r(f,p)}return a}Xe(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){to(t)||Xe(8),Qe(t)&&(t=ko(t));var e=vo(this),o=Io(this,t,void 0);return o[Mo].C=!0,mo(e),o},e.finishDraft=function(t,e){var o=(t&&t[Mo]).A;return go(o,e),Oo(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Fo&&Xe(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=uo("Patches").$;return Qe(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),qo=new Go,Vo=qo.produce;function Yo(t){return Yo="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},Yo(t)}function Jo(t){var e=function(t,e){if("object"!==Yo(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==Yo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Yo(e)?e:String(e)}function Xo(t,e,o){return(e=Jo(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Qo(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 tr(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Qo(Object(o),!0).forEach((function(e){Xo(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Qo(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function er(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. "}qo.produceWithPatches.bind(qo),qo.setAutoFreeze.bind(qo),qo.setUseProxies.bind(qo),qo.applyPatches.bind(qo),qo.createDraft.bind(qo),qo.finishDraft.bind(qo);var or="function"==typeof Symbol&&Symbol.observable||"@@observable",rr=function(){return Math.random().toString(36).substring(7).split("").join(".")},ir={INIT:"@@redux/INIT"+rr(),REPLACE:"@@redux/REPLACE"+rr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+rr()}};function nr(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(er(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(er(1));return o(nr)(t,e)}if("function"!=typeof t)throw new Error(er(2));var i=t,n=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(er(3));return n}function p(t){if("function"!=typeof t)throw new Error(er(4));if(c)throw new Error(er(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(er(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function h(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(er(7));if(void 0===t.type)throw new Error(er(8));if(c)throw new Error(er(9));try{c=!0,n=i(n,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return h({type:ir.INIT}),(r={dispatch:h,subscribe:p,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(er(10));i=t,h({type:ir.REPLACE})}})[or]=function(){var t,e=p;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(er(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[or]=function(){return this},t},r}function ar(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:ir.INIT}))throw new Error(er(12));if(void 0===o(void 0,{type:ir.PROBE_UNKNOWN_ACTION()}))throw new Error(er(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],p=l(f,e);if(void 0===p)throw e&&e.type,new Error(er(14));i[c]=p,r=r||p!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function sr(){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 cr(){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(er(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=sr.apply(void 0,n)(o.dispatch),tr(tr({},o),{},{dispatch:r})}}}function lr(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 fr=lr();fr.withExtraArgument=lr;var pr,hr=fr,dr=(pr=function(t,e){return pr=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])},pr(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}pr(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),ur=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])}}},yr=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},gr=Object.defineProperty,br=Object.defineProperties,mr=Object.getOwnPropertyDescriptors,vr=Object.getOwnPropertySymbols,xr=Object.prototype.hasOwnProperty,Or=Object.prototype.propertyIsEnumerable,wr=function(t,e,o){return e in t?gr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Sr=function(t,e){for(var o in e||(e={}))xr.call(e,o)&&wr(t,o,e[o]);if(vr)for(var r=0,i=vr(e);r<i.length;r++){o=i[r];Or.call(e,o)&&wr(t,o,e[o])}return t},Nr=function(t,e){return br(t,mr(e))},Cr="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?sr:sr.apply(null,arguments)};var Er=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 dr(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,yr([void 0],t[0].concat(this)))):new(e.bind.apply(e,yr([void 0],t.concat(this))))},e}(Array),Ur=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 dr(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,yr([void 0],t[0].concat(this)))):new(e.bind.apply(e,yr([void 0],t.concat(this))))},e}(Array);function Rr(t){return to(t)?Vo(t,(function(){})):t}function Ir(){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 Er;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(hr.withExtraArgument(o.extraArgument)):r.push(hr));return r}(t)}}function kr(t){var e,o=Ir(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,p=void 0===f?void 0:f,h=r.enhancers,d=void 0===h?void 0:h;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=ar(n)}var u=s;"function"==typeof u&&(u=u(o));var y=cr.apply(void 0,u),g=sr;l&&(g=Cr(Sr({trace:!1},"object"==typeof l&&l)));var b=new Ur(y),m=b;return Array.isArray(d)?m=yr([y],d):"function"==typeof d&&(m=d(b)),nr(e,p,g.apply(void 0,m))}function Wr(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 Sr(Sr({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 $r(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 Lr(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:Rr(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?$r(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,c=e[2],l=void 0===c?void 0:c,f=Sr(Sr({},i),s);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?$r(e):[e,o,r],a=n[0],s=n[1],c=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return Rr(t())};else{var l=Rr(t);i=function(){return l}}function f(t,e){void 0===t&&(t=i());var o=yr([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(Qe(t))return void 0===(r=o(t,e))?t:r;if(to(t))return Vo(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}l&&t.addDefaultCase(l)}))}return n.forEach((function(t){var o,r,n=i[t],l=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,s[l]=o,c[t]=r?Wr(l,r):Wr(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var Kr=["name","message","stack","code"],Ar=function(t,e){this.payload=t,this.meta=e},jr=function(t,e){this.payload=t,this.meta=e},Fr=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Kr;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function Zr(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=Wr(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Nr(Sr({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=Wr(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Nr(Sr({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Wr(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||Fr)(t||"Rejected"),meta:Nr(Sr({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,c,l){var f,p=(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}(),h=new a;function d(t){f=t,h.abort()}var u=function(){return a=this,u=null,y=function(){var a,u,y,g,b,m;return ur(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:c,extra:l}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(i(p,t,null==(u=null==o?void 0:o.getPendingMeta)?void 0:u.call(o,{requestId:p,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:p,signal:h.signal,abort:d,rejectWithValue:function(t,e){return new Ar(t,e)},fulfillWithValue:function(t,e){return new jr(t,e)}})).then((function(e){if(e instanceof Ar)throw e;return e instanceof jr?r(e.payload,p,t,e.meta):r(e,p,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Ar?n(null,p,t,m.payload,m.meta):n(m,p,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:p,arg:t,unwrap:function(){return u.then(Zr)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var zr,Mr,Dr="listenerMiddleware";Wr(Dr+"/add"),Wr(Dr+"/removeAll"),Wr(Dr+"/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[Mo];return Ho.get(e,t)},set:function(e){var o=this[Mo];Ho.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][Mo];if(!i.P)switch(i.i){case 5:r(i)&&Uo(i);break;case 4:o(i)&&Uo(i)}}}function o(t){for(var e=t.t,o=t.k,r=Bo(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==Mo){var a=e[n];if(void 0===a&&!ro(e,n))return!0;var s=o[n],c=s&&s[Mo];if(c?c.t!==a:!no(s,a))return!0}}var l=!!e[Mo];return r.length!==Bo(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){_o[t]||(_o[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=Po(o);delete n[Mo];for(var a=Bo(n),s=0;s<a.length;s++){var c=a[s];n[c]=t(c,e||!!n[c].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:yo(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Mo,{value:n,writable:!0}),i},S:function(t,o,i){i?Qe(o)&&o[Mo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Mo];if(o){var i=o.t,n=o.k,a=o.R,s=o.i;if(4===s)eo(n,(function(e){e!==Mo&&(void 0!==i[e]||ro(i,e)?a[e]||t(n[e]):(a[e]=!0,Uo(o)))})),eo(i,(function(t){void 0!==n[t]||ro(n,t)||(a[t]=!1,Uo(o))}));else if(5===s){if(r(o)&&(Uo(o),a.length=!0),n.length<i.length)for(var c=n.length;c<i.length;c++)a[c]=!1;else for(var l=i.length;l<n.length;l++)a[l]=!0;for(var f=Math.min(n.length,i.length),p=0;p<f;p++)n.hasOwnProperty(p)||(a[p]=!0),void 0===a[p]&&t(n[p])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Br{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(_e(i))return i;if(null==r)return;const n=Lr({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=kr({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 Br(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Pe,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()}}navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Mr=null===(zr=window.safari)||void 0===zr?void 0:zr.pushNotification)||void 0===Mr||Mr.toString());const Pr=Ce.extend("--ft-ripple-color","",ke.colorContent),_r={color:Pr,backgroundColor:Ce.extend("--ft-ripple-background-color","",Pr),opacityContentOnSurfacePressed:Ce.external(ke.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ce.external(ke.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ce.external(ke.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ce.external(ke.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ce.create("--ft-ripple-border-radius","","SIZE","0px")},Hr=Ce.extend("--ft-ripple-color","",ke.colorPrimary),Tr=Hr,Gr=Ce.extend("--ft-ripple-background-color","",Hr),qr=Ce.extend("--ft-ripple-color","",ke.colorSecondary),Vr=qr,Yr=Ce.extend("--ft-ripple-background-color","",qr),Jr=Ct`
115
+ `;class De{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}const Be=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!$(t,e),attribute:!1,...e};R(i)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};class Pe{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function _e(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var He,Te,Ge;const qe=Symbol("internalReduxEventsUnsubscribers"),Ve=Symbol("internalStoresUnsubscribers"),Ye=Symbol("internalStores");class Je extends Me{constructor(){super(...arguments),this[He]=new Map,this[Te]=new Map,this[Ge]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[Ye].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ye].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Ye].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:_e(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[Ye].delete(e)}setupStore(t,e){this[Ye].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Ye].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[Ve].has(t.store):this[Ve].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[Ve].set(t,e.subscribe((()=>this.updateFromStores()))),_e(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[qe].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Ve].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[qe].forEach((t=>t())),this[qe]=[]}unsubscribeFromStore(t){this[Ve].has(t)&&this[Ve].get(t)(),this[Ve].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Xe(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 Qe(t){return!!t&&!!t[zo]}function to(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)===Do}(t)||Array.isArray(t)||!!t[Mo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Mo])||ao(t)||so(t))}function eo(t,e,o){void 0===o&&(o=!1),0===oo(t)?(o?Object.keys:Bo)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function oo(t){var e=t[zo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ao(t)?2:so(t)?3:0}function ro(t,e){return 2===oo(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function io(t,e,o){var r=oo(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function no(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function ao(t){return Ao&&t instanceof Map}function so(t){return jo&&t instanceof Set}function co(t){return t.o||t.t}function lo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Po(t);delete e[zo];for(var o=Bo(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 fo(t,e){return void 0===e&&(e=!1),ho(t)||Qe(t)||!to(t)||(oo(t)>1&&(t.set=t.add=t.clear=t.delete=po),Object.freeze(t),e&&eo(t,(function(t,e){return fo(e,!0)}),!0)),t}function po(){Xe(2)}function ho(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function uo(t){var e=_o[t];return e||Xe(18,t),e}function yo(){return Lo}function go(t,e){e&&(uo("Patches"),t.u=[],t.s=[],t.v=e)}function bo(t){mo(t),t.p.forEach(xo),t.p=null}function mo(t){t===Lo&&(Lo=t.l)}function vo(t){return Lo={p:[],l:Lo,h:t,m:!0,_:0}}function xo(t){var e=t[zo];0===e.i||1===e.i?e.j():e.g=!0}function Oo(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||uo("ES5").S(e,t,r),r?(o[zo].P&&(bo(e),Xe(4)),to(t)&&(t=wo(e,t),e.l||No(e,t)),e.u&&uo("Patches").M(o[zo].t,t,e.u,e.s)):t=wo(e,o,[]),bo(e),e.u&&e.v(e.u,e.s),t!==Zo?t:void 0}function wo(t,e,o){if(ho(e))return e;var r=e[zo];if(!r)return eo(e,(function(i,n){return So(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return No(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=lo(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),eo(n,(function(e,n){return So(t,r,i,e,n,o,a)})),No(t,i,!1),o&&t.u&&uo("Patches").N(r,o,t.u,t.s)}return r.o}function So(t,e,o,r,i,n,a){if(Qe(i)){var s=wo(t,i,n&&e&&3!==e.i&&!ro(e.R,r)?n.concat(r):void 0);if(io(o,r,s),!Qe(s))return;t.m=!1}else a&&o.add(i);if(to(i)&&!ho(i)){if(!t.h.D&&t._<1)return;wo(t,i),e&&e.A.l||No(t,i)}}function No(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&fo(e,o)}function Co(t,e){var o=t[zo];return(o?co(o):t)[e]}function Eo(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 Uo(t){t.P||(t.P=!0,t.l&&Uo(t.l))}function Ro(t){t.o||(t.o=lo(t.t))}function Io(t,e,o){var r=ao(e)?uo("MapSet").F(e,o):so(e)?uo("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:yo(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=Ho;o&&(i=[r],n=To);var a=Proxy.revocable(i,n),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):uo("ES5").J(e,o);return(o?o.A:yo()).p.push(r),r}function ko(t){return Qe(t)||Xe(22,t),function t(e){if(!to(e))return e;var o,r=e[zo],i=oo(e);if(r){if(!r.P&&(r.i<4||!uo("ES5").K(r)))return r.t;r.I=!0,o=Wo(e,i),r.I=!1}else o=Wo(e,i);return eo(o,(function(e,i){r&&function(t,e){return 2===oo(t)?t.get(e):t[e]}(r.t,e)===i||io(o,e,t(i))})),3===i?new Set(o):o}(t)}function Wo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return lo(t)}He=Ve,Te=Ye,Ge=qe,Je.reduxProperties=new Map,Je.reduxReactiveProperties=new Set,Je.reduxEventListeners=new Map;var $o,Lo,Ko="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ao="undefined"!=typeof Map,jo="undefined"!=typeof Set,Fo="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Zo=Ko?Symbol.for("immer-nothing"):(($o={})["immer-nothing"]=!0,$o),Mo=Ko?Symbol.for("immer-draftable"):"__$immer_draftable",zo=Ko?Symbol.for("immer-state"):"__$immer_state",Do=""+Object.prototype.constructor,Bo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Po=Object.getOwnPropertyDescriptors||function(t){var e={};return Bo(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},_o={},Ho={get:function(t,e){if(e===zo)return t;var o=co(t);if(!ro(o,e))return function(t,e,o){var r,i=Eo(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||!to(r)?r:r===Co(t.t,e)?(Ro(t),t.o[e]=Io(t.A.h,r,t)):r},has:function(t,e){return e in co(t)},ownKeys:function(t){return Reflect.ownKeys(co(t))},set:function(t,e,o){var r=Eo(co(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=Co(co(t),e),n=null==i?void 0:i[zo];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(no(o,i)&&(void 0!==o||ro(t.t,e)))return!0;Ro(t),Uo(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!==Co(t.t,e)||e in t.t?(t.R[e]=!1,Ro(t),Uo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=co(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(){Xe(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Xe(12)}},To={};eo(Ho,(function(t,e){To[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),To.deleteProperty=function(t,e){return To.set.call(this,t,e,void 0)},To.set=function(t,e,o){return Ho.set.call(this,t[0],e,o,t[0])};var Go=function(){function t(t){var e=this;this.O=Fo,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&&Xe(6),void 0!==r&&"function"!=typeof r&&Xe(7),to(t)){var s=vo(e),c=Io(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?bo(s):mo(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return go(s,r),Oo(t,s)}),(function(t){throw bo(s),t})):(go(s,r),Oo(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Zo&&(a=void 0),e.D&&fo(a,!0),r){var f=[],p=[];uo("Patches").M(t,a,f,p),r(f,p)}return a}Xe(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){to(t)||Xe(8),Qe(t)&&(t=ko(t));var e=vo(this),o=Io(this,t,void 0);return o[zo].C=!0,mo(e),o},e.finishDraft=function(t,e){var o=(t&&t[zo]).A;return go(o,e),Oo(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Fo&&Xe(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=uo("Patches").$;return Qe(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),qo=new Go,Vo=qo.produce;function Yo(t){return Yo="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},Yo(t)}function Jo(t){var e=function(t,e){if("object"!==Yo(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==Yo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Yo(e)?e:String(e)}function Xo(t,e,o){return(e=Jo(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Qo(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 tr(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?Qo(Object(o),!0).forEach((function(e){Xo(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Qo(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function er(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. "}qo.produceWithPatches.bind(qo),qo.setAutoFreeze.bind(qo),qo.setUseProxies.bind(qo),qo.applyPatches.bind(qo),qo.createDraft.bind(qo),qo.finishDraft.bind(qo);var or="function"==typeof Symbol&&Symbol.observable||"@@observable",rr=function(){return Math.random().toString(36).substring(7).split("").join(".")},ir={INIT:"@@redux/INIT"+rr(),REPLACE:"@@redux/REPLACE"+rr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+rr()}};function nr(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(er(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(er(1));return o(nr)(t,e)}if("function"!=typeof t)throw new Error(er(2));var i=t,n=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(er(3));return n}function p(t){if("function"!=typeof t)throw new Error(er(4));if(c)throw new Error(er(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(er(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function h(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(er(7));if(void 0===t.type)throw new Error(er(8));if(c)throw new Error(er(9));try{c=!0,n=i(n,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return h({type:ir.INIT}),(r={dispatch:h,subscribe:p,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(er(10));i=t,h({type:ir.REPLACE})}})[or]=function(){var t,e=p;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(er(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[or]=function(){return this},t},r}function ar(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:ir.INIT}))throw new Error(er(12));if(void 0===o(void 0,{type:ir.PROBE_UNKNOWN_ACTION()}))throw new Error(er(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],p=l(f,e);if(void 0===p)throw e&&e.type,new Error(er(14));i[c]=p,r=r||p!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function sr(){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 cr(){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(er(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=sr.apply(void 0,n)(o.dispatch),tr(tr({},o),{},{dispatch:r})}}}function lr(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 fr=lr();fr.withExtraArgument=lr;var pr,hr=fr,dr=(pr=function(t,e){return pr=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])},pr(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}pr(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),ur=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])}}},yr=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},gr=Object.defineProperty,br=Object.defineProperties,mr=Object.getOwnPropertyDescriptors,vr=Object.getOwnPropertySymbols,xr=Object.prototype.hasOwnProperty,Or=Object.prototype.propertyIsEnumerable,wr=function(t,e,o){return e in t?gr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Sr=function(t,e){for(var o in e||(e={}))xr.call(e,o)&&wr(t,o,e[o]);if(vr)for(var r=0,i=vr(e);r<i.length;r++){o=i[r];Or.call(e,o)&&wr(t,o,e[o])}return t},Nr=function(t,e){return br(t,mr(e))},Cr="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?sr:sr.apply(null,arguments)};var Er=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 dr(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,yr([void 0],t[0].concat(this)))):new(e.bind.apply(e,yr([void 0],t.concat(this))))},e}(Array),Ur=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 dr(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,yr([void 0],t[0].concat(this)))):new(e.bind.apply(e,yr([void 0],t.concat(this))))},e}(Array);function Rr(t){return to(t)?Vo(t,(function(){})):t}function Ir(){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 Er;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(hr.withExtraArgument(o.extraArgument)):r.push(hr));return r}(t)}}function kr(t){var e,o=Ir(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,p=void 0===f?void 0:f,h=r.enhancers,d=void 0===h?void 0:h;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=ar(n)}var u=s;"function"==typeof u&&(u=u(o));var y=cr.apply(void 0,u),g=sr;l&&(g=Cr(Sr({trace:!1},"object"==typeof l&&l)));var b=new Ur(y),m=b;return Array.isArray(d)?m=yr([y],d):"function"==typeof d&&(m=d(b)),nr(e,p,g.apply(void 0,m))}function Wr(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 Sr(Sr({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 $r(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 Lr(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:Rr(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?$r(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,c=e[2],l=void 0===c?void 0:c,f=Sr(Sr({},i),s);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?$r(e):[e,o,r],a=n[0],s=n[1],c=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return Rr(t())};else{var l=Rr(t);i=function(){return l}}function f(t,e){void 0===t&&(t=i());var o=yr([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(Qe(t))return void 0===(r=o(t,e))?t:r;if(to(t))return Vo(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}l&&t.addDefaultCase(l)}))}return n.forEach((function(t){var o,r,n=i[t],l=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,s[l]=o,c[t]=r?Wr(l,r):Wr(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var Kr=["name","message","stack","code"],Ar=function(t,e){this.payload=t,this.meta=e},jr=function(t,e){this.payload=t,this.meta=e},Fr=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Kr;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function Zr(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=Wr(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Nr(Sr({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=Wr(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Nr(Sr({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Wr(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||Fr)(t||"Rejected"),meta:Nr(Sr({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,c,l){var f,p=(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}(),h=new a;function d(t){f=t,h.abort()}var u=function(){return a=this,u=null,y=function(){var a,u,y,g,b,m;return ur(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:c,extra:l}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(i(p,t,null==(u=null==o?void 0:o.getPendingMeta)?void 0:u.call(o,{requestId:p,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:p,signal:h.signal,abort:d,rejectWithValue:function(t,e){return new Ar(t,e)},fulfillWithValue:function(t,e){return new jr(t,e)}})).then((function(e){if(e instanceof Ar)throw e;return e instanceof jr?r(e.payload,p,t,e.meta):r(e,p,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Ar?n(null,p,t,m.payload,m.meta):n(m,p,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:p,arg:t,unwrap:function(){return u.then(Zr)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Mr,zr,Dr="listenerMiddleware";Wr(Dr+"/add"),Wr(Dr+"/removeAll"),Wr(Dr+"/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[zo];return Ho.get(e,t)},set:function(e){var o=this[zo];Ho.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][zo];if(!i.P)switch(i.i){case 5:r(i)&&Uo(i);break;case 4:o(i)&&Uo(i)}}}function o(t){for(var e=t.t,o=t.k,r=Bo(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==zo){var a=e[n];if(void 0===a&&!ro(e,n))return!0;var s=o[n],c=s&&s[zo];if(c?c.t!==a:!no(s,a))return!0}}var l=!!e[zo];return r.length!==Bo(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){_o[t]||(_o[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=Po(o);delete n[zo];for(var a=Bo(n),s=0;s<a.length;s++){var c=a[s];n[c]=t(c,e||!!n[c].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:yo(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,zo,{value:n,writable:!0}),i},S:function(t,o,i){i?Qe(o)&&o[zo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[zo];if(o){var i=o.t,n=o.k,a=o.R,s=o.i;if(4===s)eo(n,(function(e){e!==zo&&(void 0!==i[e]||ro(i,e)?a[e]||t(n[e]):(a[e]=!0,Uo(o)))})),eo(i,(function(t){void 0!==n[t]||ro(n,t)||(a[t]=!1,Uo(o))}));else if(5===s){if(r(o)&&(Uo(o),a.length=!0),n.length<i.length)for(var c=n.length;c<i.length;c++)a[c]=!1;else for(var l=i.length;l<n.length;l++)a[l]=!0;for(var f=Math.min(n.length,i.length),p=0;p<f;p++)n.hasOwnProperty(p)||(a[p]=!0),void 0===a[p]&&t(n[p])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Br{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(_e(i))return i;if(null==r)return;const n=Lr({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=kr({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 Br(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Pe,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()}}navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(zr=null===(Mr=window.safari)||void 0===Mr?void 0:Mr.pushNotification)||void 0===zr||zr.toString());const Pr=Ce.extend("--ft-ripple-color","",ke.colorContent),_r={color:Pr,backgroundColor:Ce.extend("--ft-ripple-background-color","",Pr),opacityContentOnSurfacePressed:Ce.external(ke.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ce.external(ke.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ce.external(ke.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ce.external(ke.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ce.create("--ft-ripple-border-radius","","SIZE","0px")},Hr=Ce.extend("--ft-ripple-color","",ke.colorPrimary),Tr=Hr,Gr=Ce.extend("--ft-ripple-background-color","",Hr),qr=Ce.extend("--ft-ripple-color","",ke.colorSecondary),Vr=qr,Yr=Ce.extend("--ft-ripple-background-color","",qr),Jr=Ct`
116
116
  :host {
117
117
  display: contents;
118
118
  }
@@ -356,125 +356,125 @@ let we=class extends Dt{constructor(){super(...arguments),this.renderOptions={ho
356
356
  * @license
357
357
  * Copyright 2017 Google LLC
358
358
  * SPDX-License-Identifier: BSD-3-Clause
359
- */class wi{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Oi.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?wi.build(t):null!==(e=wi.API)&&void 0!==e?e:wi.API=wi.build()}static await(t){return new Promise((e=>{let o=wi.get(t);if(o)e(o);else{const r=Oi.subscribe((()=>{o=wi.get(t),o&&(r(),e(o))}))}}))}}var Si;const Ni=Symbol("clearAfterUnitTest");class Ci{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[Si]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=Oi.getState().uiLocale,Oi.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Oi.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};$(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 De(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})))}}Si=Ni,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Ci((async(t,e)=>(await wi.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Ci((async(t,e)=>(await wi.await()).getCustomMessageContext(t,e))));const Ei=window.FluidTopicsI18nService,Ui=window.FluidTopicsCustomI18nService;var Ri=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 Ii extends ze{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>wi.get(),this.cache=new r,this.cleanSessionDebouncer=new i}render(){return se`
359
+ */class wi{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Oi.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?wi.build(t):null!==(e=wi.API)&&void 0!==e?e:wi.API=wi.build()}static await(t){return new Promise((e=>{let o=wi.get(t);if(o)e(o);else{const r=Oi.subscribe((()=>{o=wi.get(t),o&&(r(),e(o))}))}}))}}var Si;const Ni=Symbol("clearAfterUnitTest");class Ci{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[Si]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=Oi.getState().uiLocale,Oi.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Oi.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};$(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 De(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})))}}Si=Ni,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Ci((async(t,e)=>(await wi.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Ci((async(t,e)=>(await wi.await()).getCustomMessageContext(t,e))));const Ei=window.FluidTopicsI18nService,Ui=window.FluidTopicsCustomI18nService;var Ri=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 Ii extends Me{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>wi.get(),this.cache=new r,this.cleanSessionDebouncer=new i}render(){return se`
360
360
  <slot></slot>
361
- `}update(t){super.update(t),t.has("baseUrl")&&(Oi.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Oi.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Oi.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Oi.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Oi.actions.noCustom(this.noCustom),t.has("editorMode")&&Oi.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Oi.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Oi.actions.session(this.session),t.has("availableUiLocales")&&Oi.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Ei.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Ii.elementDefinitions={},Ii.styles=xi,Ri([R()],Ii.prototype,"baseUrl",void 0),Ri([R()],Ii.prototype,"apiIntegrationIdentifier",void 0),Ri([R()],Ii.prototype,"uiLocale",void 0),Ri([K(null)],Ii.prototype,"availableUiLocales",void 0),Ri([K(null)],Ii.prototype,"metadataConfiguration",void 0),Ri([R({type:Boolean})],Ii.prototype,"editorMode",void 0),Ri([R({type:Boolean})],Ii.prototype,"noCustom",void 0),Ri([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ii.prototype,"noCustomComponent",void 0),Ri([R({type:Boolean})],Ii.prototype,"withManualResources",void 0),Ri([K([])],Ii.prototype,"messageContexts",void 0),Ri([K(void 0)],Ii.prototype,"session",void 0),Ri([R({type:Object})],Ii.prototype,"apiProvider",void 0);class ki{async listMySearches(){var t;return(null===(t=Oi.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await wi.await()).listMySearches(Oi.getState().session.profile.userId):[]}}const Wi=new r;class $i{async listMyBookmarks(){return Wi.get("bookmarks",(async()=>(await wi.await()).listMyBookmarks(Oi.getState().session.profile.userId)))}clearCache(){Wi.clear("bookmarks")}}const Li=Br.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=Oi.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new $i,Oi.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Oi.getState();$(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Li.actions.savedSearches(void 0)}clearMyBookmarks(){Li.actions.bookmarks(void 0)}async reloadMySearches(){const t=new ki,e=await t.listMySearches();Li.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;Li.actions.bookmarks(e)}}},L("ft-app-context")(Ii);var Ki=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ai=Symbol("i18nProperties"),ji=Symbol("i18nUnsubs");function Fi(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Ui:Ei}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var e;null===(e=this[Ai])||void 0===e||e.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[Ai])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ai]&&new Set([...this[Ai].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[ji].has(t)||this[ji].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages(t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[ji].forEach((t=>t())),this[ji].clear()}}return e=ji,Ki([R({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Zi extends(Fi(ze)){}class zi extends(Fi(Je)){}var Mi=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 Di extends zi{constructor(){super(),this.editorMode=!1,this.addStore(Oi)}render(){return this.key&&this.context?se`
361
+ `}update(t){super.update(t),t.has("baseUrl")&&(Oi.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Oi.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Oi.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Oi.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Oi.actions.noCustom(this.noCustom),t.has("editorMode")&&Oi.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Oi.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Oi.actions.session(this.session),t.has("availableUiLocales")&&Oi.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Ei.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Ii.elementDefinitions={},Ii.styles=xi,Ri([R()],Ii.prototype,"baseUrl",void 0),Ri([R()],Ii.prototype,"apiIntegrationIdentifier",void 0),Ri([R()],Ii.prototype,"uiLocale",void 0),Ri([K(null)],Ii.prototype,"availableUiLocales",void 0),Ri([K(null)],Ii.prototype,"metadataConfiguration",void 0),Ri([R({type:Boolean})],Ii.prototype,"editorMode",void 0),Ri([R({type:Boolean})],Ii.prototype,"noCustom",void 0),Ri([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ii.prototype,"noCustomComponent",void 0),Ri([R({type:Boolean})],Ii.prototype,"withManualResources",void 0),Ri([K([])],Ii.prototype,"messageContexts",void 0),Ri([K(void 0)],Ii.prototype,"session",void 0),Ri([R({type:Object})],Ii.prototype,"apiProvider",void 0);class ki{async listMySearches(){var t;return(null===(t=Oi.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await wi.await()).listMySearches(Oi.getState().session.profile.userId):[]}}const Wi=new r;class $i{async listMyBookmarks(){return Wi.get("bookmarks",(async()=>(await wi.await()).listMyBookmarks(Oi.getState().session.profile.userId)))}clearCache(){Wi.clear("bookmarks")}}const Li=Br.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=Oi.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new $i,Oi.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Oi.getState();$(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){Li.actions.savedSearches(void 0)}clearMyBookmarks(){Li.actions.bookmarks(void 0)}async reloadMySearches(){const t=new ki,e=await t.listMySearches();Li.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;Li.actions.bookmarks(e)}}},L("ft-app-context")(Ii);var Ki=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ai=Symbol("i18nAttributes"),ji=Symbol("i18nProperties"),Fi=Symbol("i18nUnsubs");function Zi(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Ui:Ei}i18n(t,e,...o){var r;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const i=null!==(r=t.args)&&void 0!==r?r:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...i)}onI18nUpdate(t){var e,o;null===(e=this[Ai])||void 0===e||e.forEach(((e,o)=>{var r;const i=this.getI18nAttributeValue(o);(null===(r=null==i?void 0:i.context)||void 0===r?void 0:r.toLowerCase())===t.toLowerCase()&&this.updateI18nAttributeMessage(o,i,e)})),null===(o=this[ji])||void 0===o||o.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updateI18nAttributeMessage(t,e,o){this[t]={...e,message:this.i18n({context:e.context,key:e.key,...o})}}update(t){var e,o;super.update(t),null===(e=this[Ai])||void 0===e||e.forEach(((e,o)=>{const r=this.getI18nAttributeValue(o);(null==r?void 0:r.context)&&r.key&&(t.has(o)||null!=e.argsProvider)&&(t.has(o)&&this.addI18nContext(r.context),this.updateI18nAttributeMessage(o,r,e))})),null===(o=this[ji])||void 0===o||o.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}getI18nAttributeValue(t){return this[t]}connectedCallback(){var t,e,o,r;super.connectedCallback(),new Set([...null!==(e=null===(t=this[ji])||void 0===t?void 0:t.values())&&void 0!==e?e:[],...[...null!==(r=null===(o=this[Ai])||void 0===o?void 0:o.keys())&&void 0!==r?r:[]].map((t=>this.getI18nAttributeValue(t)))].map((t=>null==t?void 0:t.context))).forEach((t=>t&&this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Fi].has(t)||this[Fi].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages("string"==typeof t?t:t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Fi].forEach((t=>t())),this[Fi].clear()}}return e=Fi,Ki([R({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Mi extends(Zi(Me)){}class zi extends(Zi(Je)){}var Di=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 Bi extends zi{constructor(){super(),this.editorMode=!1,this.addStore(Oi)}render(){return this.key&&this.context?se`
362
362
  <span class="ft-i18n">
363
363
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
364
364
  </span>
365
- `:this.editorMode?"Select a context and a label key.":le}update(t){var e;super.update(t),["context","key","defaultMessage"].some((e=>t.has(e)))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}Di.elementDefinitions={},Di.styles=vi,Mi([Be()],Di.prototype,"editorMode",void 0),Mi([R()],Di.prototype,"context",void 0),Mi([R()],Di.prototype,"key",void 0),Mi([K([])],Di.prototype,"args",void 0),Mi([R()],Di.prototype,"defaultMessage",void 0);class Bi{static build(t){return new Bi(t)}static fromGwt(t){return new Bi(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)=>Ei.resolveMessage(this.name,e,...t)})}}L("ft-i18n")(Di);const Pi=Bi.build("designedReaderAttachments"),_i={download:"Download “{0}”"};
365
+ `:this.editorMode?"Select a context and a label key.":le}update(t){var e;super.update(t),["context","key","defaultMessage"].some((e=>t.has(e)))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}Bi.elementDefinitions={},Bi.styles=vi,Di([Be()],Bi.prototype,"editorMode",void 0),Di([R()],Bi.prototype,"context",void 0),Di([R()],Bi.prototype,"key",void 0),Di([K([])],Bi.prototype,"args",void 0),Di([R()],Bi.prototype,"defaultMessage",void 0);class Pi{static build(t){return new Pi(t)}static fromGwt(t){return new Pi(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)=>Ei.resolveMessage(this.name,e,...t)})}}L("ft-i18n")(Bi);const _i=Pi.build("designedReaderAttachments"),Hi={download:"Download “{0}”"};
366
366
  /**
367
367
  * @license
368
368
  * Copyright 2017 Google LLC
369
369
  * SPDX-License-Identifier: BSD-3-Clause
370
370
  */
371
- let Hi=class extends fi{constructor(t){if(super(t),this.et=rt,t.type!==ci)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===rt||null==t)return this.vt=void 0,this.et=t;if(t===ot)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Hi.directiveName="unsafeHTML",Hi.resultType=1;const Ti=li(Hi);var Gi,qi;!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.CHART_BAR_NORMALIZED="&#xe97b;",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;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;"}(Gi||(Gi={})),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;"}(qi||(qi={}));const Vi=new Map([...["abw"].map((t=>[t,qi.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,qi.AUDIO])),...["avi"].map((t=>[t,qi.AVI])),...["chm","xhs"].map((t=>[t,qi.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,qi.CODE])),...["csv"].map((t=>[t,qi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,qi.DITA])),...["epub"].map((t=>[t,qi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,qi.EXCEL])),...["flac"].map((t=>[t,qi.FLAC])),...["gif"].map((t=>[t,qi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,qi.GZIP])),...["html","htm","xhtml"].map((t=>[t,qi.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map((t=>[t,qi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,qi.JPEG])),...["json"].map((t=>[t,qi.JSON])),...["m4a","m4p"].map((t=>[t,qi.M4A])),...["mov","qt"].map((t=>[t,qi.MOV])),...["mp3"].map((t=>[t,qi.MP3])),...["mp4","m4v"].map((t=>[t,qi.MP4])),...["ogg","oga"].map((t=>[t,qi.OGG])),...["pdf","ps"].map((t=>[t,qi.PDF])),...["png"].map((t=>[t,qi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,qi.POWERPOINT])),...["rar"].map((t=>[t,qi.RAR])),...["stp"].map((t=>[t,qi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,qi.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,qi.VIDEO])),...["wav"].map((t=>[t,qi.WAV])),...["wma"].map((t=>[t,qi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,qi.WORD])),...["xml","xsl","rdf"].map((t=>[t,qi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,qi.YAML])),...["zip"].map((t=>[t,qi.ZIP]))]),Yi=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const Ji={[qi.ABW]:"#91ABC6",[qi.AUDIO]:"#1795E3",[qi.AVI]:"#E63324",[qi.CHM]:"#71C3EB",[qi.CODE]:"#71C3EB",[qi.CSV]:"#1F7345",[qi.DITA]:"#71C3EB",[qi.EPUB]:"#85B926",[qi.EXCEL]:"#1F7345",[qi.FLAC]:"#1795E3",[qi.GIF]:"#59B031",[qi.GZIP]:"#F8AB36",[qi.HTML]:"#71C3EB",[qi.IMAGE]:"#59B031",[qi.JPEG]:"#59B031",[qi.JSON]:"#71C3EB",[qi.M4A]:"#1795E3",[qi.MOV]:"#E63324",[qi.MP3]:"#1795E3",[qi.MP4]:"#E63324",[qi.OGG]:"#1795E3",[qi.PDF]:"#E44948",[qi.PNG]:"#59B031",[qi.POWERPOINT]:"#B54A2B",[qi.RAR]:"#F8AB36",[qi.STP]:"#3764B1",[qi.TEXT]:"#3162AB",[qi.UNKNOWN]:"#999999",[qi.VIDEO]:"#E63324",[qi.WAV]:"#1795E3",[qi.WMA]:"#1795E3",[qi.WORD]:"#3162AB",[qi.XML]:"#71C3EB",[qi.YAML]:"#71C3EB",[qi.ZIP]:"#F8AB36"};var Xi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Xi||(Xi={}));var Qi=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 tn extends ze{constructor(){super(...arguments),this.resolvedIcon=le}render(){const t=this.variant&&Object.values(Xi).includes(this.variant)?this.variant:Xi.fluid_topics,e=t!==Xi.material||!!this.value;return se`
371
+ let Ti=class extends fi{constructor(t){if(super(t),this.et=rt,t.type!==ci)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===rt||null==t)return this.vt=void 0,this.et=t;if(t===ot)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Ti.directiveName="unsafeHTML",Ti.resultType=1;const Gi=li(Ti);var qi,Vi;!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.CHART_BAR_NORMALIZED="&#xe97b;",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;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;"}(qi||(qi={})),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;"}(Vi||(Vi={}));const Yi=new Map([...["abw"].map((t=>[t,Vi.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,Vi.AUDIO])),...["avi"].map((t=>[t,Vi.AVI])),...["chm","xhs"].map((t=>[t,Vi.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,Vi.CODE])),...["csv"].map((t=>[t,Vi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Vi.DITA])),...["epub"].map((t=>[t,Vi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Vi.EXCEL])),...["flac"].map((t=>[t,Vi.FLAC])),...["gif"].map((t=>[t,Vi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Vi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Vi.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map((t=>[t,Vi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Vi.JPEG])),...["json"].map((t=>[t,Vi.JSON])),...["m4a","m4p"].map((t=>[t,Vi.M4A])),...["mov","qt"].map((t=>[t,Vi.MOV])),...["mp3"].map((t=>[t,Vi.MP3])),...["mp4","m4v"].map((t=>[t,Vi.MP4])),...["ogg","oga"].map((t=>[t,Vi.OGG])),...["pdf","ps"].map((t=>[t,Vi.PDF])),...["png"].map((t=>[t,Vi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Vi.POWERPOINT])),...["rar"].map((t=>[t,Vi.RAR])),...["stp"].map((t=>[t,Vi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Vi.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,Vi.VIDEO])),...["wav"].map((t=>[t,Vi.WAV])),...["wma"].map((t=>[t,Vi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Vi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Vi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Vi.YAML])),...["zip"].map((t=>[t,Vi.ZIP]))]),Ji=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const Xi={[Vi.ABW]:"#91ABC6",[Vi.AUDIO]:"#1795E3",[Vi.AVI]:"#E63324",[Vi.CHM]:"#71C3EB",[Vi.CODE]:"#71C3EB",[Vi.CSV]:"#1F7345",[Vi.DITA]:"#71C3EB",[Vi.EPUB]:"#85B926",[Vi.EXCEL]:"#1F7345",[Vi.FLAC]:"#1795E3",[Vi.GIF]:"#59B031",[Vi.GZIP]:"#F8AB36",[Vi.HTML]:"#71C3EB",[Vi.IMAGE]:"#59B031",[Vi.JPEG]:"#59B031",[Vi.JSON]:"#71C3EB",[Vi.M4A]:"#1795E3",[Vi.MOV]:"#E63324",[Vi.MP3]:"#1795E3",[Vi.MP4]:"#E63324",[Vi.OGG]:"#1795E3",[Vi.PDF]:"#E44948",[Vi.PNG]:"#59B031",[Vi.POWERPOINT]:"#B54A2B",[Vi.RAR]:"#F8AB36",[Vi.STP]:"#3764B1",[Vi.TEXT]:"#3162AB",[Vi.UNKNOWN]:"#999999",[Vi.VIDEO]:"#E63324",[Vi.WAV]:"#1795E3",[Vi.WMA]:"#1795E3",[Vi.WORD]:"#3162AB",[Vi.XML]:"#71C3EB",[Vi.YAML]:"#71C3EB",[Vi.ZIP]:"#F8AB36"};var Qi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Qi||(Qi={}));var tn=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 en extends Me{constructor(){super(...arguments),this.resolvedIcon=le}render(){const t=this.variant&&Object.values(Qi).includes(this.variant)?this.variant:Qi.fluid_topics,e=t!==Qi.material||!!this.value;return se`
372
372
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
373
- ${Ti(this.resolvedIcon)}
373
+ ${Gi(this.resolvedIcon)}
374
374
  <slot ?hidden=${e}></slot>
375
375
  </i>
376
- `}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 Xi.file_format:this.resolvedIcon=null!==(t=qi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Xi.material:this.resolvedIcon=this.value||le;break;default:this.resolvedIcon=null!==(e=Gi[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}tn.elementDefinitions={},tn.styles=Qr,Qi([R()],tn.prototype,"variant",void 0),Qi([R()],tn.prototype,"value",void 0),Qi([I()],tn.prototype,"resolvedIcon",void 0),Qi([W("slot")],tn.prototype,"slottedContent",void 0),L("ft-icon")(tn);
376
+ `}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 Qi.file_format:this.resolvedIcon=null!==(t=Vi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Qi.material:this.resolvedIcon=this.value||le;break;default:this.resolvedIcon=null!==(e=qi[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}en.elementDefinitions={},en.styles=Qr,tn([R()],en.prototype,"variant",void 0),tn([R()],en.prototype,"value",void 0),tn([I()],en.prototype,"resolvedIcon",void 0),tn([W("slot")],en.prototype,"slottedContent",void 0),L("ft-icon")(en);
377
377
  /**
378
378
  * @license
379
379
  * Copyright 2020 Google LLC
380
380
  * SPDX-License-Identifier: BSD-3-Clause
381
381
  */
382
- const en=Symbol.for(""),on=t=>{if(t?.r===en)return t?._$litStatic$},rn=t=>({_$litStatic$:t,r:en}),nn=new Map,an=(t=>(e,...o)=>{const r=o.length;let i,n;const a=[],s=[];let c,l=0,f=!1;for(;l<r;){for(c=e[l];l<r&&void 0!==(n=o[l],i=on(n));)c+=i+e[++l],f=!0;l!==r&&s.push(n),a.push(c),l++}if(l===r&&a.push(e[r]),f){const t=a.join("$$lit$$");void 0===(e=nn.get(t))&&(a.raw=a,nn.set(t,e=a)),o=s}return t(e,...o)})(et);var sn;!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"}(sn||(sn={}));const cn=Ce.extend("--ft-typography-font-family","",ke.titleFont),ln=Ce.extend("--ft-typography-font-family","",ke.contentFont),fn={fontFamily:ln,fontSize:Ce.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ce.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ce.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ce.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ce.create("--ft-typography-text-transform","","UNKNOWN","inherit")},pn=Ce.extend("--ft-typography-title-font-family","",cn),hn=Ce.extend("--ft-typography-title-font-size","",fn.fontSize,"20px"),dn=Ce.extend("--ft-typography-title-font-weight","",fn.fontWeight,"normal"),un=Ce.extend("--ft-typography-title-letter-spacing","",fn.letterSpacing,"0.15px"),yn=Ce.extend("--ft-typography-title-line-height","",fn.lineHeight,"1.2"),gn=Ce.extend("--ft-typography-title-text-transform","",fn.textTransform,"inherit"),bn=Ce.extend("--ft-typography-title-dense-font-family","",cn),mn=Ce.extend("--ft-typography-title-dense-font-size","",fn.fontSize,"14px"),vn=Ce.extend("--ft-typography-title-dense-font-weight","",fn.fontWeight,"normal"),xn=Ce.extend("--ft-typography-title-dense-letter-spacing","",fn.letterSpacing,"0.105px"),On=Ce.extend("--ft-typography-title-dense-line-height","",fn.lineHeight,"1.7"),wn=Ce.extend("--ft-typography-title-dense-text-transform","",fn.textTransform,"inherit"),Sn=Ce.extend("--ft-typography-subtitle1-font-family","",ln),Nn=Ce.extend("--ft-typography-subtitle1-font-size","",fn.fontSize,"16px"),Cn=Ce.extend("--ft-typography-subtitle1-font-weight","",fn.fontWeight,"600"),En=Ce.extend("--ft-typography-subtitle1-letter-spacing","",fn.letterSpacing,"0.144px"),Un=Ce.extend("--ft-typography-subtitle1-line-height","",fn.lineHeight,"1.5"),Rn=Ce.extend("--ft-typography-subtitle1-text-transform","",fn.textTransform,"inherit"),In=Ce.extend("--ft-typography-subtitle2-font-family","",ln),kn=Ce.extend("--ft-typography-subtitle2-font-size","",fn.fontSize,"14px"),Wn=Ce.extend("--ft-typography-subtitle2-font-weight","",fn.fontWeight,"normal"),$n=Ce.extend("--ft-typography-subtitle2-letter-spacing","",fn.letterSpacing,"0.098px"),Ln=Ce.extend("--ft-typography-subtitle2-line-height","",fn.lineHeight,"1.7"),Kn=Ce.extend("--ft-typography-subtitle2-text-transform","",fn.textTransform,"inherit"),An=Ce.extend("--ft-typography-body1-font-family","",ln),jn=Ce.extend("--ft-typography-body1-font-size","",fn.fontSize,"16px"),Fn=Ce.extend("--ft-typography-body1-font-weight","",fn.fontWeight,"normal"),Zn=Ce.extend("--ft-typography-body1-letter-spacing","",fn.letterSpacing,"0.496px"),zn=Ce.extend("--ft-typography-body1-line-height","",fn.lineHeight,"1.5"),Mn=Ce.extend("--ft-typography-body1-text-transform","",fn.textTransform,"inherit"),Dn=Ce.extend("--ft-typography-body2-font-family","",ln),Bn=Ce.extend("--ft-typography-body2-font-size","",fn.fontSize,"14px"),Pn=Ce.extend("--ft-typography-body2-font-weight","",fn.fontWeight,"normal"),_n=Ce.extend("--ft-typography-body2-letter-spacing","",fn.letterSpacing,"0.252px"),Hn=Ce.extend("--ft-typography-body2-line-height","",fn.lineHeight,"1.4"),Tn=Ce.extend("--ft-typography-body2-text-transform","",fn.textTransform,"inherit"),Gn=Ce.extend("--ft-typography-caption-font-family","",ln),qn=Ce.extend("--ft-typography-caption-font-size","",fn.fontSize,"12px"),Vn=Ce.extend("--ft-typography-caption-font-weight","",fn.fontWeight,"normal"),Yn=Ce.extend("--ft-typography-caption-letter-spacing","",fn.letterSpacing,"0.396px"),Jn=Ce.extend("--ft-typography-caption-line-height","",fn.lineHeight,"1.33"),Xn=Ce.extend("--ft-typography-caption-text-transform","",fn.textTransform,"inherit"),Qn=Ce.extend("--ft-typography-breadcrumb-font-family","",ln),ta=Ce.extend("--ft-typography-breadcrumb-font-size","",fn.fontSize,"10px"),ea=Ce.extend("--ft-typography-breadcrumb-font-weight","",fn.fontWeight,"normal"),oa=Ce.extend("--ft-typography-breadcrumb-letter-spacing","",fn.letterSpacing,"0.33px"),ra=Ce.extend("--ft-typography-breadcrumb-line-height","",fn.lineHeight,"1.6"),ia=Ce.extend("--ft-typography-breadcrumb-text-transform","",fn.textTransform,"inherit"),na=Ce.extend("--ft-typography-overline-font-family","",ln),aa=Ce.extend("--ft-typography-overline-font-size","",fn.fontSize,"10px"),sa=Ce.extend("--ft-typography-overline-font-weight","",fn.fontWeight,"normal"),ca=Ce.extend("--ft-typography-overline-letter-spacing","",fn.letterSpacing,"1.5px"),la=Ce.extend("--ft-typography-overline-line-height","",fn.lineHeight,"1.6"),fa=Ce.extend("--ft-typography-overline-text-transform","",fn.textTransform,"uppercase"),pa=Ce.extend("--ft-typography-button-font-family","",ln),ha=Ce.extend("--ft-typography-button-font-size","",fn.fontSize,"14px"),da=Ce.extend("--ft-typography-button-font-weight","",fn.fontWeight,"600"),ua=Ce.extend("--ft-typography-button-letter-spacing","",fn.letterSpacing,"1.246px"),ya=Ce.extend("--ft-typography-button-line-height","",fn.lineHeight,"1.15"),ga=Ce.extend("--ft-typography-button-text-transform","",fn.textTransform,"uppercase"),ba=Ct`
382
+ const on=Symbol.for(""),rn=t=>{if(t?.r===on)return t?._$litStatic$},nn=t=>({_$litStatic$:t,r:on}),an=new Map,sn=(t=>(e,...o)=>{const r=o.length;let i,n;const a=[],s=[];let c,l=0,f=!1;for(;l<r;){for(c=e[l];l<r&&void 0!==(n=o[l],i=rn(n));)c+=i+e[++l],f=!0;l!==r&&s.push(n),a.push(c),l++}if(l===r&&a.push(e[r]),f){const t=a.join("$$lit$$");void 0===(e=an.get(t))&&(a.raw=a,an.set(t,e=a)),o=s}return t(e,...o)})(et);var cn;!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"}(cn||(cn={}));const ln=Ce.extend("--ft-typography-font-family","",ke.titleFont),fn=Ce.extend("--ft-typography-font-family","",ke.contentFont),pn={fontFamily:fn,fontSize:Ce.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ce.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ce.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ce.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ce.create("--ft-typography-text-transform","","UNKNOWN","inherit")},hn=Ce.extend("--ft-typography-title-font-family","",ln),dn=Ce.extend("--ft-typography-title-font-size","",pn.fontSize,"20px"),un=Ce.extend("--ft-typography-title-font-weight","",pn.fontWeight,"normal"),yn=Ce.extend("--ft-typography-title-letter-spacing","",pn.letterSpacing,"0.15px"),gn=Ce.extend("--ft-typography-title-line-height","",pn.lineHeight,"1.2"),bn=Ce.extend("--ft-typography-title-text-transform","",pn.textTransform,"inherit"),mn=Ce.extend("--ft-typography-title-dense-font-family","",ln),vn=Ce.extend("--ft-typography-title-dense-font-size","",pn.fontSize,"14px"),xn=Ce.extend("--ft-typography-title-dense-font-weight","",pn.fontWeight,"normal"),On=Ce.extend("--ft-typography-title-dense-letter-spacing","",pn.letterSpacing,"0.105px"),wn=Ce.extend("--ft-typography-title-dense-line-height","",pn.lineHeight,"1.7"),Sn=Ce.extend("--ft-typography-title-dense-text-transform","",pn.textTransform,"inherit"),Nn=Ce.extend("--ft-typography-subtitle1-font-family","",fn),Cn=Ce.extend("--ft-typography-subtitle1-font-size","",pn.fontSize,"16px"),En=Ce.extend("--ft-typography-subtitle1-font-weight","",pn.fontWeight,"600"),Un=Ce.extend("--ft-typography-subtitle1-letter-spacing","",pn.letterSpacing,"0.144px"),Rn=Ce.extend("--ft-typography-subtitle1-line-height","",pn.lineHeight,"1.5"),In=Ce.extend("--ft-typography-subtitle1-text-transform","",pn.textTransform,"inherit"),kn=Ce.extend("--ft-typography-subtitle2-font-family","",fn),Wn=Ce.extend("--ft-typography-subtitle2-font-size","",pn.fontSize,"14px"),$n=Ce.extend("--ft-typography-subtitle2-font-weight","",pn.fontWeight,"normal"),Ln=Ce.extend("--ft-typography-subtitle2-letter-spacing","",pn.letterSpacing,"0.098px"),Kn=Ce.extend("--ft-typography-subtitle2-line-height","",pn.lineHeight,"1.7"),An=Ce.extend("--ft-typography-subtitle2-text-transform","",pn.textTransform,"inherit"),jn=Ce.extend("--ft-typography-body1-font-family","",fn),Fn=Ce.extend("--ft-typography-body1-font-size","",pn.fontSize,"16px"),Zn=Ce.extend("--ft-typography-body1-font-weight","",pn.fontWeight,"normal"),Mn=Ce.extend("--ft-typography-body1-letter-spacing","",pn.letterSpacing,"0.496px"),zn=Ce.extend("--ft-typography-body1-line-height","",pn.lineHeight,"1.5"),Dn=Ce.extend("--ft-typography-body1-text-transform","",pn.textTransform,"inherit"),Bn=Ce.extend("--ft-typography-body2-font-family","",fn),Pn=Ce.extend("--ft-typography-body2-font-size","",pn.fontSize,"14px"),_n=Ce.extend("--ft-typography-body2-font-weight","",pn.fontWeight,"normal"),Hn=Ce.extend("--ft-typography-body2-letter-spacing","",pn.letterSpacing,"0.252px"),Tn=Ce.extend("--ft-typography-body2-line-height","",pn.lineHeight,"1.4"),Gn=Ce.extend("--ft-typography-body2-text-transform","",pn.textTransform,"inherit"),qn=Ce.extend("--ft-typography-caption-font-family","",fn),Vn=Ce.extend("--ft-typography-caption-font-size","",pn.fontSize,"12px"),Yn=Ce.extend("--ft-typography-caption-font-weight","",pn.fontWeight,"normal"),Jn=Ce.extend("--ft-typography-caption-letter-spacing","",pn.letterSpacing,"0.396px"),Xn=Ce.extend("--ft-typography-caption-line-height","",pn.lineHeight,"1.33"),Qn=Ce.extend("--ft-typography-caption-text-transform","",pn.textTransform,"inherit"),ta=Ce.extend("--ft-typography-breadcrumb-font-family","",fn),ea=Ce.extend("--ft-typography-breadcrumb-font-size","",pn.fontSize,"10px"),oa=Ce.extend("--ft-typography-breadcrumb-font-weight","",pn.fontWeight,"normal"),ra=Ce.extend("--ft-typography-breadcrumb-letter-spacing","",pn.letterSpacing,"0.33px"),ia=Ce.extend("--ft-typography-breadcrumb-line-height","",pn.lineHeight,"1.6"),na=Ce.extend("--ft-typography-breadcrumb-text-transform","",pn.textTransform,"inherit"),aa=Ce.extend("--ft-typography-overline-font-family","",fn),sa=Ce.extend("--ft-typography-overline-font-size","",pn.fontSize,"10px"),ca=Ce.extend("--ft-typography-overline-font-weight","",pn.fontWeight,"normal"),la=Ce.extend("--ft-typography-overline-letter-spacing","",pn.letterSpacing,"1.5px"),fa=Ce.extend("--ft-typography-overline-line-height","",pn.lineHeight,"1.6"),pa=Ce.extend("--ft-typography-overline-text-transform","",pn.textTransform,"uppercase"),ha=Ce.extend("--ft-typography-button-font-family","",fn),da=Ce.extend("--ft-typography-button-font-size","",pn.fontSize,"14px"),ua=Ce.extend("--ft-typography-button-font-weight","",pn.fontWeight,"600"),ya=Ce.extend("--ft-typography-button-letter-spacing","",pn.letterSpacing,"1.246px"),ga=Ce.extend("--ft-typography-button-line-height","",pn.lineHeight,"1.15"),ba=Ce.extend("--ft-typography-button-text-transform","",pn.textTransform,"uppercase"),ma=Ct`
383
383
  .ft-typography--title {
384
- font-family: ${pn};
385
- font-size: ${hn};
386
- font-weight: ${dn};
387
- letter-spacing: ${un};
388
- line-height: ${yn};
389
- text-transform: ${gn};
390
- }
391
- `,ma=Ct`
392
- .ft-typography--title-dense {
393
- font-family: ${bn};
394
- font-size: ${mn};
395
- font-weight: ${vn};
396
- letter-spacing: ${xn};
397
- line-height: ${On};
398
- text-transform: ${wn};
384
+ font-family: ${hn};
385
+ font-size: ${dn};
386
+ font-weight: ${un};
387
+ letter-spacing: ${yn};
388
+ line-height: ${gn};
389
+ text-transform: ${bn};
399
390
  }
400
391
  `,va=Ct`
401
- .ft-typography--subtitle1 {
402
- font-family: ${Sn};
403
- font-size: ${Nn};
404
- font-weight: ${Cn};
405
- letter-spacing: ${En};
406
- line-height: ${Un};
407
- text-transform: ${Rn};
392
+ .ft-typography--title-dense {
393
+ font-family: ${mn};
394
+ font-size: ${vn};
395
+ font-weight: ${xn};
396
+ letter-spacing: ${On};
397
+ line-height: ${wn};
398
+ text-transform: ${Sn};
408
399
  }
409
400
  `,xa=Ct`
401
+ .ft-typography--subtitle1 {
402
+ font-family: ${Nn};
403
+ font-size: ${Cn};
404
+ font-weight: ${En};
405
+ letter-spacing: ${Un};
406
+ line-height: ${Rn};
407
+ text-transform: ${In};
408
+ }
409
+ `,Oa=Ct`
410
410
  .ft-typography--subtitle2 {
411
- font-family: ${In};
412
- font-size: ${kn};
413
- font-weight: ${Wn};
414
- letter-spacing: ${$n};
415
- line-height: ${Ln};
416
- text-transform: ${Kn};
411
+ font-family: ${kn};
412
+ font-size: ${Wn};
413
+ font-weight: ${$n};
414
+ letter-spacing: ${Ln};
415
+ line-height: ${Kn};
416
+ text-transform: ${An};
417
417
  }
418
418
 
419
- `,Oa=Ct`
419
+ `,wa=Ct`
420
420
  .ft-typography--body1 {
421
- font-family: ${An};
422
- font-size: ${jn};
423
- font-weight: ${Fn};
424
- letter-spacing: ${Zn};
421
+ font-family: ${jn};
422
+ font-size: ${Fn};
423
+ font-weight: ${Zn};
424
+ letter-spacing: ${Mn};
425
425
  line-height: ${zn};
426
- text-transform: ${Mn};
427
- }
428
- `,wa=Ct`
429
- .ft-typography--body2 {
430
- font-family: ${Dn};
431
- font-size: ${Bn};
432
- font-weight: ${Pn};
433
- letter-spacing: ${_n};
434
- line-height: ${Hn};
435
- text-transform: ${Tn};
426
+ text-transform: ${Dn};
436
427
  }
437
428
  `,Sa=Ct`
438
- .ft-typography--caption {
439
- font-family: ${Gn};
440
- font-size: ${qn};
441
- font-weight: ${Vn};
442
- letter-spacing: ${Yn};
443
- line-height: ${Jn};
444
- text-transform: ${Xn};
429
+ .ft-typography--body2 {
430
+ font-family: ${Bn};
431
+ font-size: ${Pn};
432
+ font-weight: ${_n};
433
+ letter-spacing: ${Hn};
434
+ line-height: ${Tn};
435
+ text-transform: ${Gn};
445
436
  }
446
437
  `,Na=Ct`
447
- .ft-typography--breadcrumb {
448
- font-family: ${Qn};
449
- font-size: ${ta};
450
- font-weight: ${ea};
451
- letter-spacing: ${oa};
452
- line-height: ${ra};
453
- text-transform: ${ia};
438
+ .ft-typography--caption {
439
+ font-family: ${qn};
440
+ font-size: ${Vn};
441
+ font-weight: ${Yn};
442
+ letter-spacing: ${Jn};
443
+ line-height: ${Xn};
444
+ text-transform: ${Qn};
454
445
  }
455
446
  `,Ca=Ct`
456
- .ft-typography--overline {
457
- font-family: ${na};
458
- font-size: ${aa};
459
- font-weight: ${sa};
460
- letter-spacing: ${ca};
461
- line-height: ${la};
462
- text-transform: ${fa};
447
+ .ft-typography--breadcrumb {
448
+ font-family: ${ta};
449
+ font-size: ${ea};
450
+ font-weight: ${oa};
451
+ letter-spacing: ${ra};
452
+ line-height: ${ia};
453
+ text-transform: ${na};
463
454
  }
464
455
  `,Ea=Ct`
465
- .ft-typography--button {
466
- font-family: ${pa};
467
- font-size: ${ha};
468
- font-weight: ${da};
469
- letter-spacing: ${ua};
470
- line-height: ${ya};
471
- text-transform: ${ga};
456
+ .ft-typography--overline {
457
+ font-family: ${aa};
458
+ font-size: ${sa};
459
+ font-weight: ${ca};
460
+ letter-spacing: ${la};
461
+ line-height: ${fa};
462
+ text-transform: ${pa};
472
463
  }
473
464
  `,Ua=Ct`
465
+ .ft-typography--button {
466
+ font-family: ${ha};
467
+ font-size: ${da};
468
+ font-weight: ${ua};
469
+ letter-spacing: ${ya};
470
+ line-height: ${ga};
471
+ text-transform: ${ba};
472
+ }
473
+ `,Ra=Ct`
474
474
  .ft-typography {
475
475
  vertical-align: inherit;
476
476
  }
477
- `,Ra=[Object.keys(Re).map((t=>function(t){const e=Re[t];return Ct`
477
+ `,Ia=[Object.keys(Re).map((t=>function(t){const e=Re[t];return Ct`
478
478
  .ft-typography--${Nt(t)} {
479
479
  font-family: ${e.fontFamily};
480
480
  font-size: ${e.fontSize};
@@ -483,49 +483,49 @@ const en=Symbol.for(""),on=t=>{if(t?.r===en)return t?._$litStatic$},rn=t=>({_$li
483
483
  line-height: ${e.lineHeight};
484
484
  text-transform: ${e.textCase};
485
485
  }
486
- `}(t)))];var Ia=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 ka extends ze{constructor(){super(...arguments),this.variant=sn.body1}render(){return this.element?an`
487
- <${rn(this.element)}
486
+ `}(t)))];var ka=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 Wa extends Me{constructor(){super(...arguments),this.variant=cn.body1}render(){return this.element?sn`
487
+ <${nn(this.element)}
488
488
  class="ft-typography ft-typography--${this.variant}">
489
489
  <slot></slot>
490
- </${rn(this.element)}>
491
- `:an`
490
+ </${nn(this.element)}>
491
+ `:sn`
492
492
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
493
- `}}ka.styles=[ba,ma,va,xa,Oa,wa,Sa,Na,Ca,Ea,Ua,...Ra],Ia([R()],ka.prototype,"element",void 0),Ia([R()],ka.prototype,"variant",void 0),L("ft-typography")(ka);
493
+ `}}Wa.styles=[ma,va,xa,Oa,wa,Sa,Na,Ca,Ea,Ua,Ra,...Ia],ka([R()],Wa.prototype,"element",void 0),ka([R()],Wa.prototype,"variant",void 0),L("ft-typography")(Wa);
494
494
  /**
495
495
  * @license
496
496
  * Copyright 2018 Google LLC
497
497
  * SPDX-License-Identifier: BSD-3-Clause
498
498
  */
499
- const Wa=li(class extends fi{constructor(t){if(super(t),t.type!==si||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const r=!!e[t];r===this.it.has(t)||this.st?.has(t)||(r?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return ot}});var $a=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 La extends ze{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i(10),this.moveRipple=t=>{var e,o;let{x:r,y:i}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-n.x:n.width/2),this.originY=Math.round(null!=i?i-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return se`
499
+ const $a=li(class extends fi{constructor(t){if(super(t),t.type!==si||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const r=!!e[t];r===this.it.has(t)||this.st?.has(t)||(r?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return ot}});var La=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 Ka extends Me{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new i(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i(10),this.moveRipple=t=>{var e,o;let{x:r,y:i}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-n.x:n.width/2),this.originY=Math.round(null!=i?i-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return se`
500
500
  <style>
501
501
  .ft-ripple .ft-ripple--effect {
502
502
  left: ${this.originX}px;
503
503
  top: ${this.originY}px;
504
504
  }
505
505
  </style>
506
- <div class="${Wa(t)}">
506
+ <div class="${$a(t)}">
507
507
  <div class="ft-ripple--background"></div>
508
508
  <div class="ft-ripple--effect"></div>
509
509
  </div>
510
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),r=e("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",r,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",i,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",r,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",i,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let r,i;return null!=e.x?({x:r,y:i}=e):null!=o.touches&&(r=o.touches[0].clientX,i=o.touches[0].clientY),{x:r,y:i}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}La.elementDefinitions={},La.styles=Jr,$a([R({type:Boolean})],La.prototype,"primary",void 0),$a([R({type:Boolean})],La.prototype,"secondary",void 0),$a([R({type:Boolean})],La.prototype,"unbounded",void 0),$a([R({type:Boolean})],La.prototype,"activated",void 0),$a([R({type:Boolean})],La.prototype,"selected",void 0),$a([R({type:Boolean})],La.prototype,"disabled",void 0),$a([I()],La.prototype,"hovered",void 0),$a([I()],La.prototype,"focused",void 0),$a([I()],La.prototype,"pressed",void 0),$a([I()],La.prototype,"rippling",void 0),$a([I()],La.prototype,"originX",void 0),$a([I()],La.prototype,"originY",void 0),$a([W(".ft-ripple")],La.prototype,"ripple",void 0),$a([W(".ft-ripple--effect")],La.prototype,"rippleEffect",void 0),L("ft-ripple")(La);var Ka=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 Aa extends(Fi(ai)){constructor(){super(),this.hideFileFormatIcon=!1,this.hideFilename=!1,this.hideDownloadIcon=!1,this.addI18nContext(Pi,_i)}render(){var t,e;if((null!==(e=null===(t=this.attachments)||void 0===t?void 0:t.length)&&void 0!==e?e:0)>0){const t={"hide-file-format-icon":this.hideFileFormatIcon,"hide-filename":this.hideFilename,"hide-download-icon":this.hideDownloadIcon};return se`
511
- <div part="container" class="${Wa(t)}">
512
- ${mi(this.attachments,(t=>t.id),(t=>{var e,o,r,i;const n=function(t,e){var o,r,i,n;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[a,s]=((null!==(o=Yi.get(t))&&void 0!==o?o:t)+"/").split("/");return null!==(n=null!==(i=null!==(r=Vi.get(s))&&void 0!==r?r:Vi.get(e))&&void 0!==i?i:Vi.get(a))&&void 0!==n?n:qi.UNKNOWN}(t.mimeType,(a=t.file.split("."))[a.length-1]);var a;const s=t.externalLink?t.viewerUrl:null===(e=this.service)||void 0===e?void 0:e.makeAbsolute(null!==(o=t.viewerUrl)&&void 0!==o?o:"");return se`
510
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),r=e("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",r,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",i,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",r,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",i,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let r,i;return null!=e.x?({x:r,y:i}=e):null!=o.touches&&(r=o.touches[0].clientX,i=o.touches[0].clientY),{x:r,y:i}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ka.elementDefinitions={},Ka.styles=Jr,La([R({type:Boolean})],Ka.prototype,"primary",void 0),La([R({type:Boolean})],Ka.prototype,"secondary",void 0),La([R({type:Boolean})],Ka.prototype,"unbounded",void 0),La([R({type:Boolean})],Ka.prototype,"activated",void 0),La([R({type:Boolean})],Ka.prototype,"selected",void 0),La([R({type:Boolean})],Ka.prototype,"disabled",void 0),La([I()],Ka.prototype,"hovered",void 0),La([I()],Ka.prototype,"focused",void 0),La([I()],Ka.prototype,"pressed",void 0),La([I()],Ka.prototype,"rippling",void 0),La([I()],Ka.prototype,"originX",void 0),La([I()],Ka.prototype,"originY",void 0),La([W(".ft-ripple")],Ka.prototype,"ripple",void 0),La([W(".ft-ripple--effect")],Ka.prototype,"rippleEffect",void 0),L("ft-ripple")(Ka);var Aa=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 ja extends(Zi(ai)){constructor(){super(),this.hideFileFormatIcon=!1,this.hideFilename=!1,this.hideDownloadIcon=!1,this.addI18nContext(_i,Hi)}render(){var t,e;if((null!==(e=null===(t=this.attachments)||void 0===t?void 0:t.length)&&void 0!==e?e:0)>0){const t={"hide-file-format-icon":this.hideFileFormatIcon,"hide-filename":this.hideFilename,"hide-download-icon":this.hideDownloadIcon};return se`
511
+ <div part="container" class="${$a(t)}">
512
+ ${mi(this.attachments,(t=>t.id),(t=>{var e,o,r,i;const n=function(t,e){var o,r,i,n;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[a,s]=((null!==(o=Ji.get(t))&&void 0!==o?o:t)+"/").split("/");return null!==(n=null!==(i=null!==(r=Yi.get(s))&&void 0!==r?r:Yi.get(e))&&void 0!==i?i:Yi.get(a))&&void 0!==n?n:Vi.UNKNOWN}(t.mimeType,(a=t.file.split("."))[a.length-1]);var a;const s=t.externalLink?t.viewerUrl:null===(e=this.service)||void 0===e?void 0:e.makeAbsolute(null!==(o=t.viewerUrl)&&void 0!==o?o:"");return se`
513
513
  <div part="attachment">
514
514
  <a part="viewer-link" href="${s}">
515
515
  <ft-ripple part="ripple viewer-link-ripple"></ft-ripple>
516
516
  <ft-icon part="file-format-icon"
517
517
  variant="file-format"
518
518
  value="${n}"
519
- style="color: ${null!==(r=Ji[n])&&void 0!==r?r:Ji[qi.UNKNOWN]}"></ft-icon>
519
+ style="color: ${null!==(r=Xi[n])&&void 0!==r?r:Xi[Vi.UNKNOWN]}"></ft-icon>
520
520
  <ft-typography part="name" variant="body2">${t.name}</ft-typography>
521
521
  </a>
522
522
  <a part="download-link"
523
523
  href="${null===(i=this.service)||void 0===i?void 0:i.getAttachmentDownloadLink(t.id)}"
524
- title="${Pi.messages.download(t.file)}">
524
+ title="${_i.messages.download(t.file)}">
525
525
  <ft-ripple part="ripple download-link-ripple"></ft-ripple>
526
526
  <ft-icon part="download-icon">DOWNLOAD</ft-icon>
527
527
  </a>
528
528
  </div>
529
529
  `}))}
530
530
  </div>
531
- `}return le}update(t){var e;super.update(t),t.has("map")&&(this.map?null===(e=this.service)||void 0===e||e.getAttachments().then((t=>this.attachments=t)):this.attachments=void 0)}}Aa.elementDefinitions={"ft-icon":tn,"ft-ripple":La,"ft-typography":ka},Aa.styles=ei,Ka([R({type:Boolean})],Aa.prototype,"hideFileFormatIcon",void 0),Ka([R({type:Boolean})],Aa.prototype,"hideFilename",void 0),Ka([R({type:Boolean})],Aa.prototype,"hideDownloadIcon",void 0),Ka([Be({store:"reader"})],Aa.prototype,"map",void 0),Ka([I()],Aa.prototype,"attachments",void 0),L("ft-reader-attachments")(Aa),t.FtReaderAttachments=Aa,t.FtReaderAttachmentsCssVariables=ti,t.styles=ei}({});
531
+ `}return le}update(t){var e;super.update(t),t.has("map")&&(this.map?null===(e=this.service)||void 0===e||e.getAttachments().then((t=>this.attachments=t)):this.attachments=void 0)}}ja.elementDefinitions={"ft-icon":en,"ft-ripple":Ka,"ft-typography":Wa},ja.styles=ei,Aa([R({type:Boolean})],ja.prototype,"hideFileFormatIcon",void 0),Aa([R({type:Boolean})],ja.prototype,"hideFilename",void 0),Aa([R({type:Boolean})],ja.prototype,"hideDownloadIcon",void 0),Aa([Be({store:"reader"})],ja.prototype,"map",void 0),Aa([I()],ja.prototype,"attachments",void 0),L("ft-reader-attachments")(ja),t.FtReaderAttachments=ja,t.FtReaderAttachmentsCssVariables=ti,t.styles=ei}({});