@fluid-topics/ft-reader-feedback 0.3.67 → 0.3.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const c={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(n,c);let h=i.call(o,t);h||(h=d(t),e.call(o,t,h)),this===window.customElements&&(s.set(n,c),c.standInClass=h);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)r.delete(t),p(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},d=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,n=o._getDefinition(e);return n?p(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):u(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(Vo){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e extends Promise{constructor(t){super(((e,i)=>t((t=>{this.isCanceled?i(new Error("Promise has been canceled")):e(t)}),(t=>{this.isCanceled?i(new Error("Promise has been canceled")):i(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class i{constructor(){this.loaders={},this.content={},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.content[t]instanceof e&&this.content[t].cancel(),delete this.content[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,i){if(void 0===this.content[t]){if(null==(i=null!=i?i:this.loaders[t]))throw new Error("Unknown cache key "+t);const n=(o=i(),new e(((t,e)=>o.then(t).catch(e))));return this.content[t]=n,n.then((e=>(this.content[t]=e,e)))}var o;if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const c={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(n,c);let h=i.call(o,t);h||(h=d(t),e.call(o,t,h)),this===window.customElements&&(s.set(n,c),c.standInClass=h);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)r.delete(t),p(t,c,!0)}const v=this._whenDefinedPromises.get(t);return void 0!==v&&(v.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},d=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=h(i)||window.customElements,n=o._getDefinition(e);return n?p(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):u(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},v=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=v.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const y=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){b.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),b.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){b.push(this),i.set.call(this,t),b.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(qo){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e extends Promise{constructor(t){super(((e,i)=>t((t=>{this.isCanceled?i(new Error("Promise has been canceled")):e(t)}),(t=>{this.isCanceled?i(new Error("Promise has been canceled")):i(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class i{constructor(){this.loaders={},this.content={},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.content[t]instanceof e&&this.content[t].cancel(),delete this.content[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,i){if(void 0===this.content[t]){if(null==(i=null!=i?i:this.loaders[t]))throw new Error("Unknown cache key "+t);const n=(o=i(),new e(((t,e)=>o.then(t).catch(e))));return this.content[t]=n,n.then((e=>(this.content[t]=e,e)))}var o;if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,n=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}n(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -55,13 +55,13 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
55
55
  * Copyright 2017 Google LLC
56
56
  * SPDX-License-Identifier: BSD-3-Clause
57
57
  */
58
- var M;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==C||C({ReactiveElement:N}),(null!==(k=S.reactiveElementVersions)&&void 0!==k?k:S.reactiveElementVersions=[]).push("1.4.1");const I=window,T=I.trustedTypes,A=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,z="?"+U,F=`<${z}>`,D=document,P=(t="")=>D.createComment(t),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,L=Array.isArray,W=t=>L(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,Z=/>/g,V=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),G=/'/g,J=/"/g,q=/^(?:script|style|textarea|title)$/i,X=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Y=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),tt=new WeakMap,et=D.createTreeWalker(D,129,null,!1),it=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=H;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(s.lastIndex=h,l=s.exec(i),null!==l);)h=s.lastIndex,s===H?"!--"===l[1]?s=K:void 0!==l[1]?s=Z:void 0!==l[2]?(q.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=V):void 0!==l[3]&&(s=V):s===V?">"===l[0]?(s=null!=n?n:H,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?V:'"'===l[3]?J:G):s===J||s===G?s=V:s===K||s===Z?s=H:(s=V,n=void 0);const d=s===V&&t[e+1].startsWith("/>")?" ":"";r+=s===H?i+F:c>=0?(o.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+U+d):i+U+(-2===c?(o.push(void 0),e):d)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==A?A.createHTML(a):a,o]};class ot{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,c]=it(t,e);if(this.el=ot.createElement(l,i),et.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=et.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(U)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(U),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?lt:"?"===e[1]?ht:"@"===e[1]?dt:at})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(q.test(o.tagName)){const t=o.textContent.split(U),e=t.length-1;if(e>0){o.textContent=T?T.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],P()),et.nextNode(),a.push({type:2,index:++n});o.append(t[e],P())}}}else if(8===o.nodeType)if(o.data===z)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(U,t+1));)a.push({type:7,index:n}),t+=U.length-1}n++}}static createElement(t,e){const i=D.createElement("template");return i.innerHTML=t,i}}function nt(t,e,i=t,o){var n,r,s,a;if(e===Y)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const c=B(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=nt(t,l._$AS(t,e.values),l,o)),e}class rt{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:D).importNode(i,!0);et.currentNode=n;let r=et.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new st(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new ft(r,this,t)),this.u.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=et.nextNode(),s++)}return n}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class st{constructor(t,e,i,o){var n;this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}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=nt(this,t,e),B(t)?t===Q||null==t||""===t?(this._$AH!==Q&&this._$AR(),this._$AH=Q):t!==this._$AH&&t!==Y&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):W(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==Q&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(D.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ot.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.p(i);else{const t=new rt(n,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=tt.get(t.strings);return void 0===e&&tt.set(t.strings,e=new ot(t)),e}k(t){L(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new st(this.O(P()),this.O(P()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class at{constructor(t,e,i,o,n){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(void 0===n)t=nt(this,t,e,0),r=!B(t)||t!==this._$AH&&t!==Y,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=nt(this,o[i+s],e,s),a===Y&&(a=this._$AH[s]),r||(r=!B(a)||a!==this._$AH[s]),a===Q?t=Q:t!==Q&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class lt extends at{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Q?void 0:t}}const ct=T?T.emptyScript:"";class ht extends at{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Q?this.element.setAttribute(this.name,ct):this.element.removeAttribute(this.name)}}class dt extends at{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=nt(this,t,e,0))&&void 0!==i?i:Q)===Y)return;const o=this._$AH,n=t===Q&&o!==Q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Q&&(o===Q||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ft{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){nt(this,t)}}const ut={P:"$lit$",A:U,M:z,C:1,L:it,R:rt,D:W,V:nt,I:st,H:at,N:ht,U:dt,B:lt,F:ft},pt=I.litHtmlPolyfillSupport;null==pt||pt(ot,st),(null!==(M=I.litHtmlVersions)&&void 0!==M?M:I.litHtmlVersions=[]).push("2.4.0");
58
+ var M;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},null==C||C({ReactiveElement:N}),(null!==(k=S.reactiveElementVersions)&&void 0!==k?k:S.reactiveElementVersions=[]).push("1.4.1");const I=window,T=I.trustedTypes,A=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,z="?"+U,F=`<${z}>`,P=document,D=(t="")=>P.createComment(t),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,L=Array.isArray,W=t=>L(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K=/-->/g,Z=/>/g,V=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),G=/'/g,J=/"/g,q=/^(?:script|style|textarea|title)$/i,X=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Y=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),tt=new WeakMap,et=P.createTreeWalker(P,129,null,!1),it=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=H;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(s.lastIndex=h,l=s.exec(i),null!==l);)h=s.lastIndex,s===H?"!--"===l[1]?s=K:void 0!==l[1]?s=Z:void 0!==l[2]?(q.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=V):void 0!==l[3]&&(s=V):s===V?">"===l[0]?(s=null!=n?n:H,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?V:'"'===l[3]?J:G):s===J||s===G?s=V:s===K||s===Z?s=H:(s=V,n=void 0);const d=s===V&&t[e+1].startsWith("/>")?" ":"";r+=s===H?i+F:c>=0?(o.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+U+d):i+U+(-2===c?(o.push(void 0),e):d)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==A?A.createHTML(a):a,o]};class ot{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,c]=it(t,e);if(this.el=ot.createElement(l,i),et.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=et.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(U)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(U),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?lt:"?"===e[1]?ht:"@"===e[1]?dt:at})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(q.test(o.tagName)){const t=o.textContent.split(U),e=t.length-1;if(e>0){o.textContent=T?T.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],D()),et.nextNode(),a.push({type:2,index:++n});o.append(t[e],D())}}}else if(8===o.nodeType)if(o.data===z)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(U,t+1));)a.push({type:7,index:n}),t+=U.length-1}n++}}static createElement(t,e){const i=P.createElement("template");return i.innerHTML=t,i}}function nt(t,e,i=t,o){var n,r,s,a;if(e===Y)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const c=B(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=nt(t,l._$AS(t,e.values),l,o)),e}class rt{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:P).importNode(i,!0);et.currentNode=n;let r=et.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new st(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new ft(r,this,t)),this.u.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=et.nextNode(),s++)}return n}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class st{constructor(t,e,i,o){var n;this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}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=nt(this,t,e),B(t)?t===Q||null==t||""===t?(this._$AH!==Q&&this._$AR(),this._$AH=Q):t!==this._$AH&&t!==Y&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):W(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==Q&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(P.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ot.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.p(i);else{const t=new rt(n,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=tt.get(t.strings);return void 0===e&&tt.set(t.strings,e=new ot(t)),e}k(t){L(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new st(this.O(D()),this.O(D()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class at{constructor(t,e,i,o,n){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(void 0===n)t=nt(this,t,e,0),r=!B(t)||t!==this._$AH&&t!==Y,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=nt(this,o[i+s],e,s),a===Y&&(a=this._$AH[s]),r||(r=!B(a)||a!==this._$AH[s]),a===Q?t=Q:t!==Q&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class lt extends at{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Q?void 0:t}}const ct=T?T.emptyScript:"";class ht extends at{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Q?this.element.setAttribute(this.name,ct):this.element.removeAttribute(this.name)}}class dt extends at{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=nt(this,t,e,0))&&void 0!==i?i:Q)===Y)return;const o=this._$AH,n=t===Q&&o!==Q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Q&&(o===Q||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ft{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){nt(this,t)}}const ut={P:"$lit$",A:U,M:z,C:1,L:it,R:rt,D:W,V:nt,I:st,H:at,N:ht,U:dt,B:lt,F:ft},pt=I.litHtmlPolyfillSupport;null==pt||pt(ot,st),(null!==(M=I.litHtmlVersions)&&void 0!==M?M:I.litHtmlVersions=[]).push("2.4.0");
59
59
  /**
60
60
  * @license
61
61
  * Copyright 2017 Google LLC
62
62
  * SPDX-License-Identifier: BSD-3-Clause
63
63
  */
64
- var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new st(e.insertBefore(P(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Y}}yt.finalized=!0,yt._$litElement$=!0,null===(vt=globalThis.litElementHydrateSupport)||void 0===vt||vt.call(globalThis,{LitElement:yt});const gt=globalThis.litElementPolyfillSupport;null==gt||gt({LitElement:yt}),(null!==(bt=globalThis.litElementVersions)&&void 0!==bt?bt:globalThis.litElementVersions=[]).push("3.2.2");class xt{static create(t,e,i){let o=t=>x(null!=t?t:i),n=m`var(${x(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>m`var(${x(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=m`var(${x(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>m`var(${x(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):x(null!=e?e:t.defaultValue),o=m`var(${x(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>m`var(${x(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function mt(t,e){return x(`${t.name}: ${e}`)}const wt={colorPrimary:xt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:xt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:xt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:xt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:xt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:xt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:xt.create("--ft-color-error","COLOR","#B00020"),colorOutline:xt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:xt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:xt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:xt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:xt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:xt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:xt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:xt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:xt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:xt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:xt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:xt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:xt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:xt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:xt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:xt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:xt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:xt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:xt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:xt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:xt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:xt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:xt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:xt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:xt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:xt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:xt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:xt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:xt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:xt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:xt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:xt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:xt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:xt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:xt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:xt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:xt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:xt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:xt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:xt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:xt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:xt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:xt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:xt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:xt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:xt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:xt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:xt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:xt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:xt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:xt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:xt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:xt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:xt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:xt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class $t extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}
64
+ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new st(e.insertBefore(D(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Y}}yt.finalized=!0,yt._$litElement$=!0,null===(vt=globalThis.litElementHydrateSupport)||void 0===vt||vt.call(globalThis,{LitElement:yt});const gt=globalThis.litElementPolyfillSupport;null==gt||gt({LitElement:yt}),(null!==(bt=globalThis.litElementVersions)&&void 0!==bt?bt:globalThis.litElementVersions=[]).push("3.2.2");class xt{static create(t,e,i){let o=t=>x(null!=t?t:i),n=m`var(${x(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>m`var(${x(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=m`var(${x(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>m`var(${x(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):x(null!=e?e:t.defaultValue),o=m`var(${x(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>m`var(${x(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function mt(t,e){return x(`${t.name}: ${e}`)}const wt={colorPrimary:xt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:xt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:xt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:xt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:xt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:xt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:xt.create("--ft-color-error","COLOR","#B00020"),colorOutline:xt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:xt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:xt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:xt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:xt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:xt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:xt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:xt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:xt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:xt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:xt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:xt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:xt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:xt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:xt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:xt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:xt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:xt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:xt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:xt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:xt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:xt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:xt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:xt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:xt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:xt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:xt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:xt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:xt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:xt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:xt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:xt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:xt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:xt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:xt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:xt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:xt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:xt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:xt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:xt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:xt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:xt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:xt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:xt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:xt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:xt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:xt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:xt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:xt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:xt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:xt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:xt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:xt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:xt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:xt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class $t extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}
65
65
  /**
66
66
  * @license
67
67
  * Copyright 2021 Google LLC
@@ -103,7 +103,7 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
103
103
  display: inline-block;
104
104
  width: 0;
105
105
  }
106
- `;class Ct{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let n=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),n}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${t}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function Et(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function jt(t){return!!t&&!!t[ve]}function Rt(t){return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===be}(t)||Array.isArray(t)||!!t[pe]||!!t.constructor[pe]||Ut(t)||zt(t))}function Nt(t,e,i){void 0===i&&(i=!1),0===Mt(t)?(i?Object.keys:ye)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function Mt(t){var e=t[ve];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ut(t)?2:zt(t)?3:0}function It(t,e){return 2===Mt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Tt(t,e,i){var o=Mt(t);2===o?t.set(e,i):3===o?(t.delete(e),t.add(i)):t[e]=i}function At(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Ut(t){return he&&t instanceof Map}function zt(t){return de&&t instanceof Set}function Ft(t){return t.o||t.t}function Dt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ge(t);delete e[ve];for(var i=ye(e),o=0;o<i.length;o++){var n=i[o],r=e[n];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[n]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function Pt(t,e){return void 0===e&&(e=!1),Lt(t)||jt(t)||!Rt(t)||(Mt(t)>1&&(t.set=t.add=t.clear=t.delete=Bt),Object.freeze(t),e&&Nt(t,(function(t,e){return Pt(e,!0)}),!0)),t}function Bt(){Et(2)}function Lt(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Wt(t){var e=xe[t];return e||Et(18,t),e}function Ht(){return le}function Kt(t,e){e&&(Wt("Patches"),t.u=[],t.s=[],t.v=e)}function Zt(t){Vt(t),t.p.forEach(Jt),t.p=null}function Vt(t){t===le&&(le=t.l)}function Gt(t){return le={p:[],l:le,h:t,m:!0,_:0}}function Jt(t){var e=t[ve];0===e.i||1===e.i?e.j():e.O=!0}function qt(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.g||Wt("ES5").S(e,t,o),o?(i[ve].P&&(Zt(e),Et(4)),Rt(t)&&(t=Xt(e,t),e.l||Qt(e,t)),e.u&&Wt("Patches").M(i[ve].t,t,e.u,e.s)):t=Xt(e,i,[]),Zt(e),e.u&&e.v(e.u,e.s),t!==ue?t:void 0}function Xt(t,e,i){if(Lt(e))return e;var o=e[ve];if(!o)return Nt(e,(function(n,r){return Yt(t,o,e,n,r,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Qt(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=4===o.i||5===o.i?o.o=Dt(o.k):o.o;Nt(3===o.i?new Set(n):n,(function(e,r){return Yt(t,o,n,e,r,i)})),Qt(t,n,!1),i&&t.u&&Wt("Patches").R(o,i,t.u,t.s)}return o.o}function Yt(t,e,i,o,n,r){if(jt(n)){var s=Xt(t,n,r&&e&&3!==e.i&&!It(e.D,o)?r.concat(o):void 0);if(Tt(i,o,s),!jt(s))return;t.m=!1}if(Rt(n)&&!Lt(n)){if(!t.h.F&&t._<1)return;Xt(t,n),e&&e.A.l||Qt(t,n)}}function Qt(t,e,i){void 0===i&&(i=!1),t.h.F&&t.m&&Pt(e,i)}function te(t,e){var i=t[ve];return(i?Ft(i):t)[e]}function ee(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function ie(t){t.P||(t.P=!0,t.l&&ie(t.l))}function oe(t){t.o||(t.o=Dt(t.t))}function ne(t,e,i){var o=Ut(e)?Wt("MapSet").N(e,i):zt(e)?Wt("MapSet").T(e,i):t.g?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:Ht(),P:!1,I:!1,D:{},l:e,t,k:null,o:null,j:null,C:!1},n=o,r=me;i&&(n=[o],r=we);var s=Proxy.revocable(n,r),a=s.revoke,l=s.proxy;return o.k=l,o.j=a,l}(e,i):Wt("ES5").J(e,i);return(i?i.A:Ht()).p.push(o),o}function re(t){return jt(t)||Et(22,t),function t(e){if(!Rt(e))return e;var i,o=e[ve],n=Mt(e);if(o){if(!o.P&&(o.i<4||!Wt("ES5").K(o)))return o.t;o.I=!0,i=se(e,n),o.I=!1}else i=se(e,n);return Nt(i,(function(e,n){o&&function(t,e){return 2===Mt(t)?t.get(e):t[e]}(o.t,e)===n||Tt(i,e,t(n))})),3===n?new Set(i):i}(t)}function se(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Dt(t)}var ae,le,ce="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),he="undefined"!=typeof Map,de="undefined"!=typeof Set,fe="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ue=ce?Symbol.for("immer-nothing"):((ae={})["immer-nothing"]=!0,ae),pe=ce?Symbol.for("immer-draftable"):"__$immer_draftable",ve=ce?Symbol.for("immer-state"):"__$immer_state",be=""+Object.prototype.constructor,ye="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ge=Object.getOwnPropertyDescriptors||function(t){var e={};return ye(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},xe={},me={get:function(t,e){if(e===ve)return t;var i=Ft(t);if(!It(i,e))return function(t,e,i){var o,n=ee(e,i);return n?"value"in n?n.value:null===(o=n.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!Rt(o)?o:o===te(t.t,e)?(oe(t),t.o[e]=ne(t.A.h,o,t)):o},has:function(t,e){return e in Ft(t)},ownKeys:function(t){return Reflect.ownKeys(Ft(t))},set:function(t,e,i){var o=ee(Ft(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var n=te(Ft(t),e),r=null==n?void 0:n[ve];if(r&&r.t===i)return t.o[e]=i,t.D[e]=!1,!0;if(At(i,n)&&(void 0!==i||It(t.t,e)))return!0;oe(t),ie(t)}return t.o[e]===i&&"number"!=typeof i&&(void 0!==i||e in t.o)||(t.o[e]=i,t.D[e]=!0,!0)},deleteProperty:function(t,e){return void 0!==te(t.t,e)||e in t.t?(t.D[e]=!1,oe(t),ie(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=Ft(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){Et(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Et(12)}},we={};Nt(me,(function(t,e){we[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),we.deleteProperty=function(t,e){return we.set.call(this,t,e,void 0)},we.set=function(t,e,i){return me.set.call(this,t[0],e,i,t[0])};var $e=function(){function t(t){var e=this;this.g=fe,this.F=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var n=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=n);for(var o=arguments.length,s=Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Et(6),void 0!==o&&"function"!=typeof o&&Et(7),Rt(t)){var a=Gt(e),l=ne(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?Zt(a):Vt(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Kt(a,o),qt(t,a)}),(function(t){throw Zt(a),t})):(Kt(a,o),qt(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===ue&&(s=void 0),e.F&&Pt(s,!0),o){var h=[],d=[];Wt("Patches").M(t,s,h,d),o(h,d)}return s}Et(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(n))}))};var o,n,r=e.produce(t,i,(function(t,e){o=t,n=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,o,n]})):[r,o,n]},"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){Rt(t)||Et(8),jt(t)&&(t=re(t));var e=Gt(this),i=ne(this,t,void 0);return i[ve].C=!0,Vt(e),i},e.finishDraft=function(t,e){var i=(t&&t[ve]).A;return Kt(i,e),qt(void 0,i)},e.setAutoFreeze=function(t){this.F=t},e.setUseProxies=function(t){t&&!fe&&Et(20),this.g=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var n=Wt("Patches").$;return jt(t)?n(t,e):this.produce(t,(function(t){return n(t,e)}))},t}(),ke=new $e,Se=ke.produce;ke.produceWithPatches.bind(ke),ke.setAutoFreeze.bind(ke),ke.setUseProxies.bind(ke),ke.applyPatches.bind(ke),ke.createDraft.bind(ke),ke.finishDraft.bind(ke);var Oe=Se;function _e(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ce(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function Ee(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ce(Object(i),!0).forEach((function(e){_e(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ce(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function je(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. "}var Re="function"==typeof Symbol&&Symbol.observable||"@@observable",Ne=function(){return Math.random().toString(36).substring(7).split("").join(".")},Me={INIT:"@@redux/INIT"+Ne(),REPLACE:"@@redux/REPLACE"+Ne(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ne()}};function Ie(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}function Te(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(je(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(je(1));return i(Te)(t,e)}if("function"!=typeof t)throw new Error(je(2));var n=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function h(){if(l)throw new Error(je(3));return r}function d(t){if("function"!=typeof t)throw new Error(je(4));if(l)throw new Error(je(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(je(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function f(t){if(!Ie(t))throw new Error(je(7));if(void 0===t.type)throw new Error(je(8));if(l)throw new Error(je(9));try{l=!0,r=n(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}function u(t){if("function"!=typeof t)throw new Error(je(10));n=t,f({type:Me.REPLACE})}function p(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(je(11));function i(){t.next&&t.next(h())}return i(),{unsubscribe:e(i)}}})[Re]=function(){return this},t}return f({type:Me.INIT}),(o={dispatch:f,subscribe:d,getState:h,replaceReducer:u})[Re]=p,o}function Ae(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var n=e[o];"function"==typeof t[n]&&(i[n]=t[n])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Me.INIT}))throw new Error(je(12));if(void 0===i(void 0,{type:Me.PROBE_UNKNOWN_ACTION()}))throw new Error(je(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var o=!1,n={},a=0;a<s.length;a++){var l=s[a],c=i[l],h=t[l],d=c(h,e);if(void 0===d)throw e&&e.type,new Error(je(14));n[l]=d,o=o||d!==h}return(o=o||s.length!==Object.keys(t).length)?n:t}}function Ue(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function ze(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(je(15))},n={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},r=e.map((function(t){return t(n)}));return o=Ue.apply(void 0,r)(i.dispatch),Ee(Ee({},i),{},{dispatch:o})}}}function Fe(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(n){return"function"==typeof n?n(i,o,t):e(n)}}}}var De=Fe();De.withExtraArgument=Fe;var Pe,Be=De,Le=(Pe=function(t,e){return Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},Pe(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Pe(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),We=function(t,e){for(var i=0,o=e.length,n=t.length;i<o;i++,n++)t[n]=e[i];return t},He=Object.defineProperty,Ke=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Ge=function(t,e,i){return e in t?He(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Je=function(t,e){for(var i in e||(e={}))Ze.call(e,i)&&Ge(t,i,e[i]);if(Ke)for(var o=0,n=Ke(e);o<n.length;o++){i=n[o];Ve.call(e,i)&&Ge(t,i,e[i])}return t},qe="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ue:Ue.apply(null,arguments)};var Xe=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var n=t.apply(this,i)||this;return Object.setPrototypeOf(n,e.prototype),n}return Le(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,We([void 0],t[0].concat(this)))):new(e.bind.apply(e,We([void 0],t.concat(this))))},e}(Array);function Ye(t){return Rt(t)?Oe(t,(function(){})):t}function Qe(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new Xe;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(Be.withExtraArgument(i.extraArgument)):o.push(Be));return o}(t)}}function ti(t){var e,i=Qe(),o=t||{},n=o.reducer,r=void 0===n?void 0:n,s=o.middleware,a=void 0===s?i():s,l=o.devTools,c=void 0===l||l,h=o.preloadedState,d=void 0===h?void 0:h,f=o.enhancers,u=void 0===f?void 0:f;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Ae(r)}var p=a;"function"==typeof p&&(p=p(i));var v=ze.apply(void 0,p),b=Ue;c&&(b=qe(Je({trace:!1},"object"==typeof c&&c)));var y=[v];return Array.isArray(u)?y=We([v],u):"function"==typeof u&&(y=u(y)),Te(e,d,b.apply(void 0,y))}function ei(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var n=e.apply(void 0,i);if(!n)throw new Error("prepareAction did not return an object");return Je(Je({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function ii(t){var e,i={},o=[],n={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,n},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),n},addDefaultCase:function(t){return e=t,n}};return t(n),[i,o,e]}function oi(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:Ye(t.initialState),n=t.reducers||{},r=Object.keys(n),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?ii(t.extraReducers):[t.extraReducers],i=e[0],n=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,h=Je(Je({},n),a);return function(t,e,i,o){void 0===i&&(i=[]);var n,r="function"==typeof e?ii(e):[e,i,o],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))n=function(){return Ye(t())};else{var c=Ye(t);n=function(){return c}}function h(t,e){void 0===t&&(t=n());var i=We([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var o;if(jt(t))return void 0===(o=i(t,e))?t:o;if(Rt(t))return Oe(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return h.getInitialState=n,h}(o,h,s,c)}return r.forEach((function(t){var i,o,r=n[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,o=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=o?ei(c,o):ei(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var ni="listenerMiddleware";ei(ni+"/add"),ei(ni+"/removeAll"),ei(ni+"/remove"),function(){function t(t,e){var i=n[t];return i?i.enumerable=e:n[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[ve];return me.get(e,t)},set:function(e){var i=this[ve];me.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var n=t[e][ve];if(!n.P)switch(n.i){case 5:o(n)&&ie(n);break;case 4:i(n)&&ie(n)}}}function i(t){for(var e=t.t,i=t.k,o=ye(i),n=o.length-1;n>=0;n--){var r=o[n];if(r!==ve){var s=e[r];if(void 0===s&&!It(e,r))return!0;var a=i[r],l=a&&a[ve];if(l?l.t!==s:!At(a,s))return!0}}var c=!!e[ve];return o.length!==ye(e).length+(c?0:1)}function o(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var n={};!function(t,e){xe[t]||(xe[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),n=function(e,i){if(e){for(var o=Array(i.length),n=0;n<i.length;n++)Object.defineProperty(o,""+n,t(n,!0));return o}var r=ge(i);delete r[ve];for(var s=ye(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(o,e),r={i:o?5:4,A:i?i.A:Ht(),P:!1,I:!1,D:{},l:i,t:e,k:n,o:null,O:!1,C:!1};return Object.defineProperty(n,ve,{value:r,writable:!0}),n},S:function(t,i,n){n?jt(i)&&i[ve].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[ve];if(i){var n=i.t,r=i.k,s=i.D,a=i.i;if(4===a)Nt(r,(function(e){e!==ve&&(void 0!==n[e]||It(n,e)?s[e]||t(r[e]):(s[e]=!0,ie(i)))})),Nt(n,(function(t){void 0!==r[t]||It(r,t)||(s[t]=!1,ie(i))}));else if(5===a){if(o(i)&&(ie(i),s.length=!0),r.length<n.length)for(var l=r.length;l<n.length;l++)s[l]=!1;else for(var c=n.length;c<r.length;c++)s[c]=!0;for(var h=Math.min(r.length,n.length),d=0;d<h;d++)r.hasOwnProperty(d)||(s[d]=!0),void 0===s[d]&&t(r[d])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}();const ri=t=>"object"==typeof t&&(0===Object.keys(t).length||"string"==typeof t.store||null!=t.selector||"function"==typeof t.hasChanged||null!=t.attribute),si=(t,e)=>{var i;const o=ri(t)?t:{};return e=null!==(i=null!=e?e:o.hasChanged)&&void 0!==i?i:(t,e)=>!d(t,e),(i,n)=>{var r,s;i.constructor.createProperty(n,{hasChanged:e,attribute:null!==(r=o.attribute)&&void 0!==r&&r});const a=i;a.reduxProperties=a.reduxProperties||new Map;const l=null!==(s=ri(t)?o.selector:t)&&void 0!==s?s:t=>t[n];a.reduxProperties.set(n,{selector:l,store:o.store})}};class ai extends St{constructor(){super(...arguments),this.internalStoresUnsubscribers=new Map,this.internalStores=new Map}getUnnamedStore(){if(this.internalStores.size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this.internalStores.values()][0]}get store(){return this.getUnnamedStore()}set store(t){this.unsubscribeFromStores(),this.internalStores.clear(),t&&this.addStore(t)}getStore(t){var e;return null==t?null!==(e=this.getUnnamedStore())&&void 0!==e?e:this.store:this.internalStores.get(t)}addStore(t,e){e=null!=e?e:li(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:li(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(e),this.internalStores.delete(e)}setupStore(t,e){this.internalStores.set(t,e),this.updateFromStores(),this.subscribeToStore(t,e)}setupStores(){this.unsubscribeFromStores(),0===this.internalStores.size&&null!=this.store?this.addStore(this.store):(this.updateFromStores(),this.internalStores.forEach(((t,e)=>this.subscribeToStore(e,t))))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){this.internalStoresUnsubscribers.set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this.internalStoresUnsubscribers).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this.internalStoresUnsubscribers.has(t)&&this.internalStoresUnsubscribers.get(t)(),this.internalStoresUnsubscribers.delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function li(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}class ci{constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=t[e];if(o)return(...t)=>{const e=o(...t);return this.reduxStore.dispatch(e),e}}})}static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,o=window.ftReduxStores[e];if(li(o))return o;if(null==i)return;const n=oi(i);if(o)return new ci(n,o);const r=ti({reducer:n.reducer});return window.ftReduxStores[i.name]=new ci(n,r)}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()}}var hi,di,fi;const ui=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(fi=null===(di=null===(hi=window.safari)||void 0===hi?void 0:hi.pushNotification)||void 0===di?void 0:di.toString())&&void 0!==fi?fi:"");var pi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class vi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class bi extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new vi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return pi([s()],e.prototype,"stateManager",void 0),e}(ai)){}const yi=xt.extend("--ft-ripple-color",wt.colorContent),gi={color:yi,backgroundColor:xt.extend("--ft-ripple-background-color",yi),opacityContentOnSurfacePressed:xt.external(wt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xt.external(wt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xt.external(wt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xt.external(wt.opacityContentOnSurfaceSelected,"Design system")},xi=xt.extend("--ft-ripple-color",wt.colorPrimary),mi=xi,wi=xt.extend("--ft-ripple-background-color",xi),$i=xt.extend("--ft-ripple-color",wt.colorSecondary),ki=$i,Si=xt.extend("--ft-ripple-background-color",$i),Oi=m`
106
+ `;class Ct{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let n=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>n=n.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),n}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${t}[\\=${i}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const i=i=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(i):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(i):t.toLocaleString(i);try{return i(document.documentElement.lang)}catch(t){return i()}}}function Et(t){for(var e=arguments.length,i=Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];throw Error("[Immer] minified error nr: "+t+(i.length?" "+i.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function jt(t){return!!t&&!!t[ve]}function Rt(t){return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===be}(t)||Array.isArray(t)||!!t[pe]||!!t.constructor[pe]||Ut(t)||zt(t))}function Nt(t,e,i){void 0===i&&(i=!1),0===Mt(t)?(i?Object.keys:ye)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function Mt(t){var e=t[ve];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ut(t)?2:zt(t)?3:0}function It(t,e){return 2===Mt(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Tt(t,e,i){var o=Mt(t);2===o?t.set(e,i):3===o?(t.delete(e),t.add(i)):t[e]=i}function At(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function Ut(t){return he&&t instanceof Map}function zt(t){return de&&t instanceof Set}function Ft(t){return t.o||t.t}function Pt(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ge(t);delete e[ve];for(var i=ye(e),o=0;o<i.length;o++){var n=i[o],r=e[n];!1===r.writable&&(r.writable=!0,r.configurable=!0),(r.get||r.set)&&(e[n]={configurable:!0,writable:!0,enumerable:r.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function Dt(t,e){return void 0===e&&(e=!1),Lt(t)||jt(t)||!Rt(t)||(Mt(t)>1&&(t.set=t.add=t.clear=t.delete=Bt),Object.freeze(t),e&&Nt(t,(function(t,e){return Dt(e,!0)}),!0)),t}function Bt(){Et(2)}function Lt(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function Wt(t){var e=xe[t];return e||Et(18,t),e}function Ht(){return le}function Kt(t,e){e&&(Wt("Patches"),t.u=[],t.s=[],t.v=e)}function Zt(t){Vt(t),t.p.forEach(Jt),t.p=null}function Vt(t){t===le&&(le=t.l)}function Gt(t){return le={p:[],l:le,h:t,m:!0,_:0}}function Jt(t){var e=t[ve];0===e.i||1===e.i?e.j():e.O=!0}function qt(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.g||Wt("ES5").S(e,t,o),o?(i[ve].P&&(Zt(e),Et(4)),Rt(t)&&(t=Xt(e,t),e.l||Qt(e,t)),e.u&&Wt("Patches").M(i[ve].t,t,e.u,e.s)):t=Xt(e,i,[]),Zt(e),e.u&&e.v(e.u,e.s),t!==ue?t:void 0}function Xt(t,e,i){if(Lt(e))return e;var o=e[ve];if(!o)return Nt(e,(function(n,r){return Yt(t,o,e,n,r,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Qt(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=4===o.i||5===o.i?o.o=Pt(o.k):o.o;Nt(3===o.i?new Set(n):n,(function(e,r){return Yt(t,o,n,e,r,i)})),Qt(t,n,!1),i&&t.u&&Wt("Patches").R(o,i,t.u,t.s)}return o.o}function Yt(t,e,i,o,n,r){if(jt(n)){var s=Xt(t,n,r&&e&&3!==e.i&&!It(e.D,o)?r.concat(o):void 0);if(Tt(i,o,s),!jt(s))return;t.m=!1}if(Rt(n)&&!Lt(n)){if(!t.h.F&&t._<1)return;Xt(t,n),e&&e.A.l||Qt(t,n)}}function Qt(t,e,i){void 0===i&&(i=!1),t.h.F&&t.m&&Dt(e,i)}function te(t,e){var i=t[ve];return(i?Ft(i):t)[e]}function ee(t,e){if(e in t)for(var i=Object.getPrototypeOf(t);i;){var o=Object.getOwnPropertyDescriptor(i,e);if(o)return o;i=Object.getPrototypeOf(i)}}function ie(t){t.P||(t.P=!0,t.l&&ie(t.l))}function oe(t){t.o||(t.o=Pt(t.t))}function ne(t,e,i){var o=Ut(e)?Wt("MapSet").N(e,i):zt(e)?Wt("MapSet").T(e,i):t.g?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:Ht(),P:!1,I:!1,D:{},l:e,t,k:null,o:null,j:null,C:!1},n=o,r=me;i&&(n=[o],r=we);var s=Proxy.revocable(n,r),a=s.revoke,l=s.proxy;return o.k=l,o.j=a,l}(e,i):Wt("ES5").J(e,i);return(i?i.A:Ht()).p.push(o),o}function re(t){return jt(t)||Et(22,t),function t(e){if(!Rt(e))return e;var i,o=e[ve],n=Mt(e);if(o){if(!o.P&&(o.i<4||!Wt("ES5").K(o)))return o.t;o.I=!0,i=se(e,n),o.I=!1}else i=se(e,n);return Nt(i,(function(e,n){o&&function(t,e){return 2===Mt(t)?t.get(e):t[e]}(o.t,e)===n||Tt(i,e,t(n))})),3===n?new Set(i):i}(t)}function se(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Pt(t)}var ae,le,ce="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),he="undefined"!=typeof Map,de="undefined"!=typeof Set,fe="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ue=ce?Symbol.for("immer-nothing"):((ae={})["immer-nothing"]=!0,ae),pe=ce?Symbol.for("immer-draftable"):"__$immer_draftable",ve=ce?Symbol.for("immer-state"):"__$immer_state",be=""+Object.prototype.constructor,ye="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,ge=Object.getOwnPropertyDescriptors||function(t){var e={};return ye(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},xe={},me={get:function(t,e){if(e===ve)return t;var i=Ft(t);if(!It(i,e))return function(t,e,i){var o,n=ee(e,i);return n?"value"in n?n.value:null===(o=n.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!Rt(o)?o:o===te(t.t,e)?(oe(t),t.o[e]=ne(t.A.h,o,t)):o},has:function(t,e){return e in Ft(t)},ownKeys:function(t){return Reflect.ownKeys(Ft(t))},set:function(t,e,i){var o=ee(Ft(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var n=te(Ft(t),e),r=null==n?void 0:n[ve];if(r&&r.t===i)return t.o[e]=i,t.D[e]=!1,!0;if(At(i,n)&&(void 0!==i||It(t.t,e)))return!0;oe(t),ie(t)}return t.o[e]===i&&"number"!=typeof i&&(void 0!==i||e in t.o)||(t.o[e]=i,t.D[e]=!0,!0)},deleteProperty:function(t,e){return void 0!==te(t.t,e)||e in t.t?(t.D[e]=!1,oe(t),ie(t)):delete t.D[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=Ft(t),o=Reflect.getOwnPropertyDescriptor(i,e);return o?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:o.enumerable,value:i[e]}:o},defineProperty:function(){Et(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Et(12)}},we={};Nt(me,(function(t,e){we[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),we.deleteProperty=function(t,e){return we.set.call(this,t,e,void 0)},we.set=function(t,e,i){return me.set.call(this,t[0],e,i,t[0])};var $e=function(){function t(t){var e=this;this.g=fe,this.F=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var n=i;i=t;var r=e;return function(t){var e=this;void 0===t&&(t=n);for(var o=arguments.length,s=Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];return r.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(s))}))}}var s;if("function"!=typeof i&&Et(6),void 0!==o&&"function"!=typeof o&&Et(7),Rt(t)){var a=Gt(e),l=ne(e,t,void 0),c=!0;try{s=i(l),c=!1}finally{c?Zt(a):Vt(a)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(t){return Kt(a,o),qt(t,a)}),(function(t){throw Zt(a),t})):(Kt(a,o),qt(s,a))}if(!t||"object"!=typeof t){if(void 0===(s=i(t))&&(s=t),s===ue&&(s=void 0),e.F&&Dt(s,!0),o){var h=[],d=[];Wt("Patches").M(t,s,h,d),o(h,d)}return s}Et(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(n))}))};var o,n,r=e.produce(t,i,(function(t,e){o=t,n=e}));return"undefined"!=typeof Promise&&r instanceof Promise?r.then((function(t){return[t,o,n]})):[r,o,n]},"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){Rt(t)||Et(8),jt(t)&&(t=re(t));var e=Gt(this),i=ne(this,t,void 0);return i[ve].C=!0,Vt(e),i},e.finishDraft=function(t,e){var i=(t&&t[ve]).A;return Kt(i,e),qt(void 0,i)},e.setAutoFreeze=function(t){this.F=t},e.setUseProxies=function(t){t&&!fe&&Et(20),this.g=t},e.applyPatches=function(t,e){var i;for(i=e.length-1;i>=0;i--){var o=e[i];if(0===o.path.length&&"replace"===o.op){t=o.value;break}}i>-1&&(e=e.slice(i+1));var n=Wt("Patches").$;return jt(t)?n(t,e):this.produce(t,(function(t){return n(t,e)}))},t}(),ke=new $e,Se=ke.produce;ke.produceWithPatches.bind(ke),ke.setAutoFreeze.bind(ke),ke.setUseProxies.bind(ke),ke.applyPatches.bind(ke),ke.createDraft.bind(ke),ke.finishDraft.bind(ke);var Oe=Se;function _e(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ce(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function Ee(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ce(Object(i),!0).forEach((function(e){_e(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ce(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function je(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. "}var Re="function"==typeof Symbol&&Symbol.observable||"@@observable",Ne=function(){return Math.random().toString(36).substring(7).split("").join(".")},Me={INIT:"@@redux/INIT"+Ne(),REPLACE:"@@redux/REPLACE"+Ne(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ne()}};function Ie(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}function Te(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(je(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(je(1));return i(Te)(t,e)}if("function"!=typeof t)throw new Error(je(2));var n=t,r=e,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function h(){if(l)throw new Error(je(3));return r}function d(t){if("function"!=typeof t)throw new Error(je(4));if(l)throw new Error(je(5));var e=!0;return c(),a.push(t),function(){if(e){if(l)throw new Error(je(6));e=!1,c();var i=a.indexOf(t);a.splice(i,1),s=null}}}function f(t){if(!Ie(t))throw new Error(je(7));if(void 0===t.type)throw new Error(je(8));if(l)throw new Error(je(9));try{l=!0,r=n(r,t)}finally{l=!1}for(var e=s=a,i=0;i<e.length;i++){(0,e[i])()}return t}function u(t){if("function"!=typeof t)throw new Error(je(10));n=t,f({type:Me.REPLACE})}function p(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(je(11));function i(){t.next&&t.next(h())}return i(),{unsubscribe:e(i)}}})[Re]=function(){return this},t}return f({type:Me.INIT}),(o={dispatch:f,subscribe:d,getState:h,replaceReducer:u})[Re]=p,o}function Ae(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var n=e[o];"function"==typeof t[n]&&(i[n]=t[n])}var r,s=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:Me.INIT}))throw new Error(je(12));if(void 0===i(void 0,{type:Me.PROBE_UNKNOWN_ACTION()}))throw new Error(je(13))}))}(i)}catch(t){r=t}return function(t,e){if(void 0===t&&(t={}),r)throw r;for(var o=!1,n={},a=0;a<s.length;a++){var l=s[a],c=i[l],h=t[l],d=c(h,e);if(void 0===d)throw e&&e.type,new Error(je(14));n[l]=d,o=o||d!==h}return(o=o||s.length!==Object.keys(t).length)?n:t}}function Ue(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function ze(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return function(){var i=t.apply(void 0,arguments),o=function(){throw new Error(je(15))},n={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},r=e.map((function(t){return t(n)}));return o=Ue.apply(void 0,r)(i.dispatch),Ee(Ee({},i),{},{dispatch:o})}}}function Fe(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(n){return"function"==typeof n?n(i,o,t):e(n)}}}}var Pe=Fe();Pe.withExtraArgument=Fe;var De,Be=Pe,Le=(De=function(t,e){return De=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},De(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}De(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),We=function(t,e){for(var i=0,o=e.length,n=t.length;i<o;i++,n++)t[n]=e[i];return t},He=Object.defineProperty,Ke=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Ge=function(t,e,i){return e in t?He(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Je=function(t,e){for(var i in e||(e={}))Ze.call(e,i)&&Ge(t,i,e[i]);if(Ke)for(var o=0,n=Ke(e);o<n.length;o++){i=n[o];Ve.call(e,i)&&Ge(t,i,e[i])}return t},qe="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ue:Ue.apply(null,arguments)};var Xe=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var n=t.apply(this,i)||this;return Object.setPrototypeOf(n,e.prototype),n}return Le(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,We([void 0],t[0].concat(this)))):new(e.bind.apply(e,We([void 0],t.concat(this))))},e}(Array);function Ye(t){return Rt(t)?Oe(t,(function(){})):t}function Qe(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,i=void 0===e||e;t.immutableCheck,t.serializableCheck;var o=new Xe;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(Be.withExtraArgument(i.extraArgument)):o.push(Be));return o}(t)}}function ti(t){var e,i=Qe(),o=t||{},n=o.reducer,r=void 0===n?void 0:n,s=o.middleware,a=void 0===s?i():s,l=o.devTools,c=void 0===l||l,h=o.preloadedState,d=void 0===h?void 0:h,f=o.enhancers,u=void 0===f?void 0:f;if("function"==typeof r)e=r;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(r))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=Ae(r)}var p=a;"function"==typeof p&&(p=p(i));var v=ze.apply(void 0,p),b=Ue;c&&(b=qe(Je({trace:!1},"object"==typeof c&&c)));var y=[v];return Array.isArray(u)?y=We([v],u):"function"==typeof u&&(y=u(y)),Te(e,d,b.apply(void 0,y))}function ei(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var n=e.apply(void 0,i);if(!n)throw new Error("prepareAction did not return an object");return Je(Je({type:t,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function ii(t){var e,i={},o=[],n={addCase:function(t,e){var o="string"==typeof t?t:t.type;if(o in i)throw new Error("addCase cannot be called with two reducers for the same action type");return i[o]=e,n},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),n},addDefaultCase:function(t){return e=t,n}};return t(n),[i,o,e]}function oi(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var i,o="function"==typeof t.initialState?t.initialState:Ye(t.initialState),n=t.reducers||{},r=Object.keys(n),s={},a={},l={};function c(){var e="function"==typeof t.extraReducers?ii(t.extraReducers):[t.extraReducers],i=e[0],n=void 0===i?{}:i,r=e[1],s=void 0===r?[]:r,l=e[2],c=void 0===l?void 0:l,h=Je(Je({},n),a);return function(t,e,i,o){void 0===i&&(i=[]);var n,r="function"==typeof e?ii(e):[e,i,o],s=r[0],a=r[1],l=r[2];if(function(t){return"function"==typeof t}(t))n=function(){return Ye(t())};else{var c=Ye(t);n=function(){return c}}function h(t,e){void 0===t&&(t=n());var i=We([s[e.type]],a.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===i.filter((function(t){return!!t})).length&&(i=[l]),i.reduce((function(t,i){if(i){var o;if(jt(t))return void 0===(o=i(t,e))?t:o;if(Rt(t))return Oe(t,(function(t){return i(t,e)}));if(void 0===(o=i(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return o}return t}),t)}return h.getInitialState=n,h}(o,h,s,c)}return r.forEach((function(t){var i,o,r=n[t],c=e+"/"+t;"reducer"in r?(i=r.reducer,o=r.prepare):i=r,s[t]=i,a[c]=i,l[t]=o?ei(c,o):ei(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:s,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var ni="listenerMiddleware";ei(ni+"/add"),ei(ni+"/removeAll"),ei(ni+"/remove"),function(){function t(t,e){var i=n[t];return i?i.enumerable=e:n[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[ve];return me.get(e,t)},set:function(e){var i=this[ve];me.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var n=t[e][ve];if(!n.P)switch(n.i){case 5:o(n)&&ie(n);break;case 4:i(n)&&ie(n)}}}function i(t){for(var e=t.t,i=t.k,o=ye(i),n=o.length-1;n>=0;n--){var r=o[n];if(r!==ve){var s=e[r];if(void 0===s&&!It(e,r))return!0;var a=i[r],l=a&&a[ve];if(l?l.t!==s:!At(a,s))return!0}}var c=!!e[ve];return o.length!==ye(e).length+(c?0:1)}function o(t){var e=t.k;if(e.length!==t.t.length)return!0;var i=Object.getOwnPropertyDescriptor(e,e.length-1);if(i&&!i.get)return!0;for(var o=0;o<e.length;o++)if(!e.hasOwnProperty(o))return!0;return!1}var n={};!function(t,e){xe[t]||(xe[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),n=function(e,i){if(e){for(var o=Array(i.length),n=0;n<i.length;n++)Object.defineProperty(o,""+n,t(n,!0));return o}var r=ge(i);delete r[ve];for(var s=ye(r),a=0;a<s.length;a++){var l=s[a];r[l]=t(l,e||!!r[l].enumerable)}return Object.create(Object.getPrototypeOf(i),r)}(o,e),r={i:o?5:4,A:i?i.A:Ht(),P:!1,I:!1,D:{},l:i,t:e,k:n,o:null,O:!1,C:!1};return Object.defineProperty(n,ve,{value:r,writable:!0}),n},S:function(t,i,n){n?jt(i)&&i[ve].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[ve];if(i){var n=i.t,r=i.k,s=i.D,a=i.i;if(4===a)Nt(r,(function(e){e!==ve&&(void 0!==n[e]||It(n,e)?s[e]||t(r[e]):(s[e]=!0,ie(i)))})),Nt(n,(function(t){void 0!==r[t]||It(r,t)||(s[t]=!1,ie(i))}));else if(5===a){if(o(i)&&(ie(i),s.length=!0),r.length<n.length)for(var l=r.length;l<n.length;l++)s[l]=!1;else for(var c=n.length;c<r.length;c++)s[c]=!0;for(var h=Math.min(r.length,n.length),d=0;d<h;d++)r.hasOwnProperty(d)||(s[d]=!0),void 0===s[d]&&t(r[d])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}();const ri=t=>"object"==typeof t&&(0===Object.keys(t).length||"string"==typeof t.store||null!=t.selector||"function"==typeof t.hasChanged||null!=t.attribute),si=(t,e)=>{var i;const o=ri(t)?t:{};return e=null!==(i=null!=e?e:o.hasChanged)&&void 0!==i?i:(t,e)=>!d(t,e),(i,n)=>{var r,s;i.constructor.createProperty(n,{hasChanged:e,attribute:null!==(r=o.attribute)&&void 0!==r&&r});const a=i;a.reduxProperties=a.reduxProperties||new Map;const l=null!==(s=ri(t)?o.selector:t)&&void 0!==s?s:t=>t[n];a.reduxProperties.set(n,{selector:l,store:o.store})}};class ai extends St{constructor(){super(...arguments),this.internalStoresUnsubscribers=new Map,this.internalStores=new Map}getUnnamedStore(){if(this.internalStores.size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this.internalStores.values()][0]}get store(){return this.getUnnamedStore()}set store(t){this.unsubscribeFromStores(),this.internalStores.clear(),t&&this.addStore(t)}getStore(t){var e;return null==t?null!==(e=this.getUnnamedStore())&&void 0!==e?e:this.store:this.internalStores.get(t)}addStore(t,e){e=null!=e?e:li(t)?t.name:"ft-lit-element-redux-default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:li(t)?t.name:"ft-lit-element-redux-default-store";this.unsubscribeFromStore(e),this.internalStores.delete(e)}setupStore(t,e){this.internalStores.set(t,e),this.updateFromStores(),this.subscribeToStore(t,e)}setupStores(){this.unsubscribeFromStores(),0===this.internalStores.size&&null!=this.store?this.addStore(this.store):(this.updateFromStores(),this.internalStores.forEach(((t,e)=>this.subscribeToStore(e,t))))}updateFromStores(){this.reduxProperties&&this.reduxProperties.forEach(((t,e)=>{const i=this.constructor.getPropertyOptions(e);if(!(null==i?void 0:i.attribute)||!this.hasAttribute("string"==typeof(null==i?void 0:i.attribute)?i.attribute:e)){const i=this.getStore(t.store);i&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){this.internalStoresUnsubscribers.set(t,e.subscribe((()=>this.updateFromStores()))),this.onStoreAvailable(t)}unsubscribeFromStores(){Object.keys(this.internalStoresUnsubscribers).forEach((t=>this.unsubscribeFromStore(t)))}unsubscribeFromStore(t){this.internalStoresUnsubscribers.has(t)&&this.internalStoresUnsubscribers.get(t)(),this.internalStoresUnsubscribers.delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){this.unsubscribeFromStores(),super.disconnectedCallback()}}function li(t){var e;return null===(e=t)||void 0===e?void 0:e.isFtReduxStore}class ci{constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=t[e];if(o)return(...t)=>{const e=o(...t);return this.reduxStore.dispatch(e),e}}})}static get(t){window.ftReduxStores||(window.ftReduxStores={});const e="string"==typeof t?t:t.name,i="string"==typeof t?void 0:t,o=window.ftReduxStores[e];if(li(o))return o;if(null==i)return;const n=oi(i);if(o)return new ci(n,o);const r=ti({reducer:n.reducer});return window.ftReduxStores[i.name]=new ci(n,r)}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()}}var hi,di,fi;const ui=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(fi=null===(di=null===(hi=window.safari)||void 0===hi?void 0:hi.pushNotification)||void 0===di?void 0:di.toString())&&void 0!==fi?fi:"");var pi=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class vi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}class bi extends(function(t){class e extends t{constructor(){super(...arguments),this.registerIntervalReader=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this.registerIntervalReader=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this.registerIntervalReader):this.dispatchEvent(new vi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return pi([s()],e.prototype,"stateManager",void 0),e}(ai)){}const yi=xt.extend("--ft-ripple-color",wt.colorContent),gi={color:yi,backgroundColor:xt.extend("--ft-ripple-background-color",yi),opacityContentOnSurfacePressed:xt.external(wt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:xt.external(wt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:xt.external(wt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:xt.external(wt.opacityContentOnSurfaceSelected,"Design system")},xi=xt.extend("--ft-ripple-color",wt.colorPrimary),mi=xi,wi=xt.extend("--ft-ripple-background-color",xi),$i=xt.extend("--ft-ripple-color",wt.colorSecondary),ki=$i,Si=xt.extend("--ft-ripple-background-color",$i),Oi=m`
107
107
  :host {
108
108
  display: contents;
109
109
  }
@@ -192,7 +192,7 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
192
192
  opacity: ${gi.opacityContentOnSurfacePressed};
193
193
  transform: translate(-50%, -50%) scale(1);
194
194
  }
195
- `,_i=xt.extend("--ft-typography-font-family",wt.titleFont),Ci=xt.extend("--ft-typography-font-family",wt.contentFont),Ei={fontFamily:Ci,fontSize:xt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:xt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:xt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:xt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:xt.create("--ft-typography-text-transform","UNKNOWN","inherit")},ji={fontFamily:xt.extend("--ft-typography-title-font-family",_i),fontSize:xt.extend("--ft-typography-title-font-size",Ei.fontSize,"20px"),fontWeight:xt.extend("--ft-typography-title-font-weight",Ei.fontWeight,"normal"),letterSpacing:xt.extend("--ft-typography-title-letter-spacing",Ei.letterSpacing,"0.15px"),lineHeight:xt.extend("--ft-typography-title-line-height",Ei.lineHeight,"1.2"),textTransform:xt.extend("--ft-typography-title-text-transform",Ei.textTransform,"inherit")},Ri={fontFamily:xt.extend("--ft-typography-title-dense-font-family",_i),fontSize:xt.extend("--ft-typography-title-dense-font-size",Ei.fontSize,"14px"),fontWeight:xt.extend("--ft-typography-title-dense-font-weight",Ei.fontWeight,"normal"),letterSpacing:xt.extend("--ft-typography-title-dense-letter-spacing",Ei.letterSpacing,"0.105px"),lineHeight:xt.extend("--ft-typography-title-dense-line-height",Ei.lineHeight,"1.7"),textTransform:xt.extend("--ft-typography-title-dense-text-transform",Ei.textTransform,"inherit")},Ni=xt.extend("--ft-typography-subtitle1-font-family",Ci),Mi=xt.extend("--ft-typography-subtitle1-font-size",Ei.fontSize,"16px"),Ii=xt.extend("--ft-typography-subtitle1-font-weight",Ei.fontWeight,"600"),Ti=xt.extend("--ft-typography-subtitle1-letter-spacing",Ei.letterSpacing,"0.144px"),Ai=xt.extend("--ft-typography-subtitle1-line-height",Ei.lineHeight,"1.5"),Ui=xt.extend("--ft-typography-subtitle1-text-transform",Ei.textTransform,"inherit"),zi=xt.extend("--ft-typography-subtitle2-font-family",Ci),Fi=xt.extend("--ft-typography-subtitle2-font-size",Ei.fontSize,"14px"),Di=xt.extend("--ft-typography-subtitle2-font-weight",Ei.fontWeight,"normal"),Pi=xt.extend("--ft-typography-subtitle2-letter-spacing",Ei.letterSpacing,"0.098px"),Bi=xt.extend("--ft-typography-subtitle2-line-height",Ei.lineHeight,"1.7"),Li=xt.extend("--ft-typography-subtitle2-text-transform",Ei.textTransform,"inherit"),Wi={fontFamily:xt.extend("--ft-typography-body1-font-family",Ci),fontSize:xt.extend("--ft-typography-body1-font-size",Ei.fontSize,"16px"),fontWeight:xt.extend("--ft-typography-body1-font-weight",Ei.fontWeight,"normal"),letterSpacing:xt.extend("--ft-typography-body1-letter-spacing",Ei.letterSpacing,"0.496px"),lineHeight:xt.extend("--ft-typography-body1-line-height",Ei.lineHeight,"1.5"),textTransform:xt.extend("--ft-typography-body1-text-transform",Ei.textTransform,"inherit")},Hi=xt.extend("--ft-typography-body2-font-family",Ci),Ki=xt.extend("--ft-typography-body2-font-size",Ei.fontSize,"14px"),Zi=xt.extend("--ft-typography-body2-font-weight",Ei.fontWeight,"normal"),Vi=xt.extend("--ft-typography-body2-letter-spacing",Ei.letterSpacing,"0.252px"),Gi=xt.extend("--ft-typography-body2-line-height",Ei.lineHeight,"1.4"),Ji=xt.extend("--ft-typography-body2-text-transform",Ei.textTransform,"inherit"),qi={fontFamily:xt.extend("--ft-typography-caption-font-family",Ci),fontSize:xt.extend("--ft-typography-caption-font-size",Ei.fontSize,"12px"),fontWeight:xt.extend("--ft-typography-caption-font-weight",Ei.fontWeight,"normal"),letterSpacing:xt.extend("--ft-typography-caption-letter-spacing",Ei.letterSpacing,"0.396px"),lineHeight:xt.extend("--ft-typography-caption-line-height",Ei.lineHeight,"1.33"),textTransform:xt.extend("--ft-typography-caption-text-transform",Ei.textTransform,"inherit")},Xi=xt.extend("--ft-typography-breadcrumb-font-family",Ci),Yi=xt.extend("--ft-typography-breadcrumb-font-size",Ei.fontSize,"10px"),Qi=xt.extend("--ft-typography-breadcrumb-font-weight",Ei.fontWeight,"normal"),to=xt.extend("--ft-typography-breadcrumb-letter-spacing",Ei.letterSpacing,"0.33px"),eo=xt.extend("--ft-typography-breadcrumb-line-height",Ei.lineHeight,"1.6"),io=xt.extend("--ft-typography-breadcrumb-text-transform",Ei.textTransform,"inherit"),oo=xt.extend("--ft-typography-overline-font-family",Ci),no=xt.extend("--ft-typography-overline-font-size",Ei.fontSize,"10px"),ro=xt.extend("--ft-typography-overline-font-weight",Ei.fontWeight,"normal"),so=xt.extend("--ft-typography-overline-letter-spacing",Ei.letterSpacing,"1.5px"),ao=xt.extend("--ft-typography-overline-line-height",Ei.lineHeight,"1.6"),lo=xt.extend("--ft-typography-overline-text-transform",Ei.textTransform,"uppercase"),co={fontFamily:xt.extend("--ft-typography-button-font-family",Ci),fontSize:xt.extend("--ft-typography-button-font-size",Ei.fontSize,"14px"),fontWeight:xt.extend("--ft-typography-button-font-weight",Ei.fontWeight,"600"),letterSpacing:xt.extend("--ft-typography-button-letter-spacing",Ei.letterSpacing,"1.246px"),lineHeight:xt.extend("--ft-typography-button-line-height",Ei.lineHeight,"1.15"),textTransform:xt.extend("--ft-typography-button-text-transform",Ei.textTransform,"uppercase")},ho=m`
195
+ `,_i=xt.extend("--ft-typography-font-family",wt.titleFont),Ci=xt.extend("--ft-typography-font-family",wt.contentFont),Ei={fontFamily:Ci,fontSize:xt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:xt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:xt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:xt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:xt.create("--ft-typography-text-transform","UNKNOWN","inherit")},ji={fontFamily:xt.extend("--ft-typography-title-font-family",_i),fontSize:xt.extend("--ft-typography-title-font-size",Ei.fontSize,"20px"),fontWeight:xt.extend("--ft-typography-title-font-weight",Ei.fontWeight,"normal"),letterSpacing:xt.extend("--ft-typography-title-letter-spacing",Ei.letterSpacing,"0.15px"),lineHeight:xt.extend("--ft-typography-title-line-height",Ei.lineHeight,"1.2"),textTransform:xt.extend("--ft-typography-title-text-transform",Ei.textTransform,"inherit")},Ri={fontFamily:xt.extend("--ft-typography-title-dense-font-family",_i),fontSize:xt.extend("--ft-typography-title-dense-font-size",Ei.fontSize,"14px"),fontWeight:xt.extend("--ft-typography-title-dense-font-weight",Ei.fontWeight,"normal"),letterSpacing:xt.extend("--ft-typography-title-dense-letter-spacing",Ei.letterSpacing,"0.105px"),lineHeight:xt.extend("--ft-typography-title-dense-line-height",Ei.lineHeight,"1.7"),textTransform:xt.extend("--ft-typography-title-dense-text-transform",Ei.textTransform,"inherit")},Ni=xt.extend("--ft-typography-subtitle1-font-family",Ci),Mi=xt.extend("--ft-typography-subtitle1-font-size",Ei.fontSize,"16px"),Ii=xt.extend("--ft-typography-subtitle1-font-weight",Ei.fontWeight,"600"),Ti=xt.extend("--ft-typography-subtitle1-letter-spacing",Ei.letterSpacing,"0.144px"),Ai=xt.extend("--ft-typography-subtitle1-line-height",Ei.lineHeight,"1.5"),Ui=xt.extend("--ft-typography-subtitle1-text-transform",Ei.textTransform,"inherit"),zi=xt.extend("--ft-typography-subtitle2-font-family",Ci),Fi=xt.extend("--ft-typography-subtitle2-font-size",Ei.fontSize,"14px"),Pi=xt.extend("--ft-typography-subtitle2-font-weight",Ei.fontWeight,"normal"),Di=xt.extend("--ft-typography-subtitle2-letter-spacing",Ei.letterSpacing,"0.098px"),Bi=xt.extend("--ft-typography-subtitle2-line-height",Ei.lineHeight,"1.7"),Li=xt.extend("--ft-typography-subtitle2-text-transform",Ei.textTransform,"inherit"),Wi={fontFamily:xt.extend("--ft-typography-body1-font-family",Ci),fontSize:xt.extend("--ft-typography-body1-font-size",Ei.fontSize,"16px"),fontWeight:xt.extend("--ft-typography-body1-font-weight",Ei.fontWeight,"normal"),letterSpacing:xt.extend("--ft-typography-body1-letter-spacing",Ei.letterSpacing,"0.496px"),lineHeight:xt.extend("--ft-typography-body1-line-height",Ei.lineHeight,"1.5"),textTransform:xt.extend("--ft-typography-body1-text-transform",Ei.textTransform,"inherit")},Hi=xt.extend("--ft-typography-body2-font-family",Ci),Ki=xt.extend("--ft-typography-body2-font-size",Ei.fontSize,"14px"),Zi=xt.extend("--ft-typography-body2-font-weight",Ei.fontWeight,"normal"),Vi=xt.extend("--ft-typography-body2-letter-spacing",Ei.letterSpacing,"0.252px"),Gi=xt.extend("--ft-typography-body2-line-height",Ei.lineHeight,"1.4"),Ji=xt.extend("--ft-typography-body2-text-transform",Ei.textTransform,"inherit"),qi={fontFamily:xt.extend("--ft-typography-caption-font-family",Ci),fontSize:xt.extend("--ft-typography-caption-font-size",Ei.fontSize,"12px"),fontWeight:xt.extend("--ft-typography-caption-font-weight",Ei.fontWeight,"normal"),letterSpacing:xt.extend("--ft-typography-caption-letter-spacing",Ei.letterSpacing,"0.396px"),lineHeight:xt.extend("--ft-typography-caption-line-height",Ei.lineHeight,"1.33"),textTransform:xt.extend("--ft-typography-caption-text-transform",Ei.textTransform,"inherit")},Xi=xt.extend("--ft-typography-breadcrumb-font-family",Ci),Yi=xt.extend("--ft-typography-breadcrumb-font-size",Ei.fontSize,"10px"),Qi=xt.extend("--ft-typography-breadcrumb-font-weight",Ei.fontWeight,"normal"),to=xt.extend("--ft-typography-breadcrumb-letter-spacing",Ei.letterSpacing,"0.33px"),eo=xt.extend("--ft-typography-breadcrumb-line-height",Ei.lineHeight,"1.6"),io=xt.extend("--ft-typography-breadcrumb-text-transform",Ei.textTransform,"inherit"),oo=xt.extend("--ft-typography-overline-font-family",Ci),no=xt.extend("--ft-typography-overline-font-size",Ei.fontSize,"10px"),ro=xt.extend("--ft-typography-overline-font-weight",Ei.fontWeight,"normal"),so=xt.extend("--ft-typography-overline-letter-spacing",Ei.letterSpacing,"1.5px"),ao=xt.extend("--ft-typography-overline-line-height",Ei.lineHeight,"1.6"),lo=xt.extend("--ft-typography-overline-text-transform",Ei.textTransform,"uppercase"),co={fontFamily:xt.extend("--ft-typography-button-font-family",Ci),fontSize:xt.extend("--ft-typography-button-font-size",Ei.fontSize,"14px"),fontWeight:xt.extend("--ft-typography-button-font-weight",Ei.fontWeight,"600"),letterSpacing:xt.extend("--ft-typography-button-letter-spacing",Ei.letterSpacing,"1.246px"),lineHeight:xt.extend("--ft-typography-button-line-height",Ei.lineHeight,"1.15"),textTransform:xt.extend("--ft-typography-button-text-transform",Ei.textTransform,"uppercase")},ho=m`
196
196
  .ft-typography--title {
197
197
  font-family: ${ji.fontFamily};
198
198
  font-size: ${ji.fontSize};
@@ -223,8 +223,8 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
223
223
  .ft-typography--subtitle2 {
224
224
  font-family: ${zi};
225
225
  font-size: ${Fi};
226
- font-weight: ${Di};
227
- letter-spacing: ${Pi};
226
+ font-weight: ${Pi};
227
+ letter-spacing: ${Di};
228
228
  line-height: ${Bi};
229
229
  text-transform: ${Li};
230
230
  }
@@ -403,7 +403,7 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
403
403
  .ft-icon--material {
404
404
  font-family: ${So.materialFontFamily}, "Material Icons", sans-serif;
405
405
  }
406
- `,_o=xt.extend("--ft-button-color",wt.colorPrimary),Co={backgroundColor:xt.extend("--ft-button-background-color",wt.colorSurface),borderRadius:xt.extend("--ft-button-border-radius",wt.borderRadiusL),color:_o,fontSize:xt.extend("--ft-button-font-size",co.fontSize),iconSize:xt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:xt.extend("--ft-button-ripple-color",_o),verticalPadding:xt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:xt.create("--ft-button-horizontal-padding","SIZE","8px"),opacityDisabled:xt.external(wt.colorOpacityDisabled,"Design system")},Eo=xt.extend("--ft-button-primary-color",xt.extend("--ft-button-color",wt.colorOnPrimary)),jo={backgroundColor:xt.extend("--ft-button-primary-background-color",xt.extend("--ft-button-background-color",wt.colorPrimary)),color:Eo,rippleColor:xt.extend("--ft-button-primary-ripple-color",Eo)},Ro=xt.extend("--ft-button-dense-border-radius",xt.extend("--ft-button-border-radius",wt.borderRadiusM)),No=[Ot,m`
406
+ `,_o=xt.extend("--ft-button-color",wt.colorPrimary),Co={backgroundColor:xt.extend("--ft-button-background-color",wt.colorSurface),borderRadius:xt.extend("--ft-button-border-radius",wt.borderRadiusL),color:_o,fontSize:xt.extend("--ft-button-font-size",co.fontSize),iconSize:xt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:xt.extend("--ft-button-ripple-color",_o),verticalPadding:xt.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:xt.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:xt.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:xt.external(wt.colorOpacityDisabled,"Design system")},Eo=xt.extend("--ft-button-primary-color",xt.extend("--ft-button-color",wt.colorOnPrimary)),jo={backgroundColor:xt.extend("--ft-button-primary-background-color",xt.extend("--ft-button-background-color",wt.colorPrimary)),color:Eo,rippleColor:xt.extend("--ft-button-primary-ripple-color",Eo)},Ro=xt.extend("--ft-button-dense-border-radius",xt.extend("--ft-button-border-radius",wt.borderRadiusM)),No=xt.create("--ft-button-dense-vertical-padding","SIZE","2px"),Mo=xt.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Io=xt.create("--ft-button-dense-icon-padding","SIZE","4px"),To=[Ot,m`
407
407
  :host {
408
408
  display: inline-block;
409
409
  max-width: 100%;
@@ -442,12 +442,11 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
442
442
  box-sizing: border-box;
443
443
  border: none;
444
444
  pointer-events: auto;
445
+ gap: ${Co.iconPadding};
445
446
 
446
447
  --ft-button-internal-line-height: calc(${Co.fontSize} + 2px);
447
448
  --ft-button-internal-color: ${Co.color};
448
449
  ${mt(So.size,Co.iconSize)};
449
- --ft-button-internal-vertical-padding: 6px;
450
- --ft-button-internal-horizontal-padding: 8px;
451
450
  ${mt(gi.color,Co.rippleColor)};
452
451
  --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Co.iconSize});
453
452
 
@@ -458,18 +457,31 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
458
457
  -webkit-mask-image: radial-gradient(white, black);
459
458
  }
460
459
 
460
+ .ft-button.ft-button--outlined {
461
+ border: 1px solid var(--ft-button-internal-color);
462
+ padding: calc(${Co.verticalPadding} - 1px) calc(${Co.horizontalPadding} - 1px);
463
+ }
464
+
465
+ .ft-button.ft-button--dense {
466
+ padding: ${No} ${Mo};
467
+ border-radius: ${Ro};
468
+ gap: ${Io};
469
+ }
470
+
471
+ .ft-button.ft-button--dense.ft-button--outlined {
472
+ padding: calc(${No} - 1px) calc(${Mo} - 1px);
473
+ }
474
+
461
475
  .ft-button:not([disabled]):hover {
462
476
  cursor: pointer;
463
477
  }
464
478
 
465
- .ft-button--dense {
466
- --ft-button-internal-vertical-padding: 2px;
467
- --ft-button-internal-horizontal-padding: 4px;
468
- border-radius: ${Ro};
479
+ .ft-button--round {
480
+ border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Co.verticalPadding});
469
481
  }
470
482
 
471
- .ft-button--round {
472
- border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
483
+ .ft-button--round.ft-button--dense {
484
+ border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${No});
473
485
  }
474
486
 
475
487
  .ft-button[disabled] {
@@ -483,11 +495,6 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
483
495
  ${mt(gi.color,jo.rippleColor)};
484
496
  }
485
497
 
486
- .ft-button.ft-button--outlined {
487
- border: 1px solid var(--ft-button-internal-color);
488
- padding: calc(${Co.verticalPadding} - 1px) calc(${Co.horizontalPadding} - 1px);
489
- }
490
-
491
498
  .ft-button:focus {
492
499
  outline: none;
493
500
  }
@@ -498,7 +505,6 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
498
505
  white-space: nowrap;
499
506
  text-overflow: ellipsis;
500
507
  display: block;
501
- margin: 0 var(--ft-button-internal-horizontal-padding);
502
508
  ${mt(co.fontSize,"1em")};
503
509
  ${mt(co.lineHeight,"var(--ft-button-internal-content-height)")};
504
510
  }
@@ -513,8 +519,13 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
513
519
  }
514
520
 
515
521
  .ft-button--label[hidden] + ft-icon {
516
- margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
517
- padding: 0 var(--ft-button-internal-vertical-padding);
522
+ margin: 0 calc(${Co.horizontalPadding} * -1);
523
+ padding: 0 ${Co.verticalPadding};
524
+ }
525
+
526
+ .ft-button--dense .ft-button--label[hidden] + ft-icon {
527
+ margin: 0 calc(${Mo} * -1);
528
+ padding: 0 ${No};
518
529
  }
519
530
 
520
531
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -526,7 +537,7 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
526
537
  ${mt($o.size,Co.iconSize)};
527
538
  ${mt($o.color,"var(--ft-button-internal-color)")};
528
539
  }
529
- `],Mo={textColor:xt.extend("--ft-switch-text-color",wt.colorOnSurfaceHigh),backgroundColor:xt.extend("--ft-switch-background-color",wt.colorSurface),selectedTextColor:xt.extend("--ft-switch-selected-text-color",wt.colorPrimary),selectedBackgroundColor:xt.extend("--ft-switch-selected-background-color",wt.colorPrimary),borderColor:xt.extend("--ft-switch-border-color",wt.colorOutline),borderRadius:xt.extend("--ft-switch-border-radius",wt.borderRadiusL),fontSize:xt.extend("--ft-switch-font-size",co.fontSize),iconSize:xt.create("--ft-switch-icon-size","SIZE","24px"),iconColor:xt.extend("--ft-switch-text-color",wt.colorOnSurfaceMedium),rippleColor:xt.extend("--ft-switch-ripple-color",wt.colorPrimary),outlineColor:xt.extend("--ft-switch-outline-color",wt.colorPrimary)},Io={feedbackInputMinWidth:xt.create("--ft-reader-feedback-input-min-width","SIZE","300px"),ratedDateColor:xt.external(wt.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:xt.extend("--ft-reader-feedback-send-feedback-color",wt.colorOnPrimary),sendFeedbackBackgroundColor:xt.extend("--ft-reader-feedback-send-feedback-background-color",wt.colorPrimary),filledRatingColor:xt.extend("--ft-reader-feedback-filled-rating-color",wt.colorPrimary),emptyRatingColor:xt.extend("--ft-reader-feedback-empty-rating-color",wt.colorOnSurfaceMedium),mainTitleFontSize:xt.external(ji.fontSize,"Typography"),sectionTitleFontSize:xt.external(Ri.fontSize,"Typography")},To=m`
540
+ `],Ao={textColor:xt.extend("--ft-switch-text-color",wt.colorOnSurfaceHigh),backgroundColor:xt.extend("--ft-switch-background-color",wt.colorSurface),selectedTextColor:xt.extend("--ft-switch-selected-text-color",wt.colorPrimary),selectedBackgroundColor:xt.extend("--ft-switch-selected-background-color",wt.colorPrimary),borderColor:xt.extend("--ft-switch-border-color",wt.colorOutline),borderRadius:xt.extend("--ft-switch-border-radius",wt.borderRadiusL),fontSize:xt.extend("--ft-switch-font-size",co.fontSize),iconSize:xt.create("--ft-switch-icon-size","SIZE","24px"),iconColor:xt.extend("--ft-switch-text-color",wt.colorOnSurfaceMedium),rippleColor:xt.extend("--ft-switch-ripple-color",wt.colorPrimary),outlineColor:xt.extend("--ft-switch-outline-color",wt.colorPrimary)},Uo={feedbackInputMinWidth:xt.create("--ft-reader-feedback-input-min-width","SIZE","300px"),ratedDateColor:xt.external(wt.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:xt.extend("--ft-reader-feedback-send-feedback-color",wt.colorOnPrimary),sendFeedbackBackgroundColor:xt.extend("--ft-reader-feedback-send-feedback-background-color",wt.colorPrimary),filledRatingColor:xt.extend("--ft-reader-feedback-filled-rating-color",wt.colorPrimary),emptyRatingColor:xt.extend("--ft-reader-feedback-empty-rating-color",wt.colorOnSurfaceMedium),mainTitleFontSize:xt.external(ji.fontSize,"Typography"),sectionTitleFontSize:xt.external(Ri.fontSize,"Typography")},zo=m`
530
541
  .ft-reader-feedback {
531
542
  box-sizing: border-box;
532
543
  display: flex;
@@ -572,14 +583,14 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
572
583
  }
573
584
 
574
585
  .ft-reader-feedback--rating {
575
- ${mt(Co.color,Io.emptyRatingColor)};
576
- ${mt(Co.rippleColor,Io.filledRatingColor)};
577
- ${mt(Mo.textColor,Io.emptyRatingColor)};
578
- ${mt(Mo.selectedTextColor,Io.filledRatingColor)};
586
+ ${mt(Co.color,Uo.emptyRatingColor)};
587
+ ${mt(Co.rippleColor,Uo.filledRatingColor)};
588
+ ${mt(Ao.textColor,Uo.emptyRatingColor)};
589
+ ${mt(Ao.selectedTextColor,Uo.filledRatingColor)};
579
590
  }
580
591
 
581
592
  .ft-reader-feedback--rating .ft-reader-feedback--active {
582
- ${mt(Co.color,Io.filledRatingColor)};
593
+ ${mt(Co.color,Uo.filledRatingColor)};
583
594
  }
584
595
 
585
596
  .ft-reader-feedback--feedback {
@@ -587,47 +598,47 @@ var vt,bt;class yt extends N{constructor(){super(...arguments),this.renderOption
587
598
  }
588
599
 
589
600
  .ft-reader-feedback--rating-date {
590
- color: ${Io.ratedDateColor};
601
+ color: ${Uo.ratedDateColor};
591
602
  }
592
603
 
593
604
  .ft-reader-feedback--feedback ft-text-area {
594
- min-width: ${Io.feedbackInputMinWidth};
605
+ min-width: ${Uo.feedbackInputMinWidth};
595
606
  }
596
607
 
597
608
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
598
609
  align-self: flex-end;
599
- ${mt(Co.color,Io.sendFeedbackColor)};
600
- ${mt(Co.backgroundColor,Io.sendFeedbackBackgroundColor)};
610
+ ${mt(Co.color,Uo.sendFeedbackColor)};
611
+ ${mt(Co.backgroundColor,Uo.sendFeedbackBackgroundColor)};
601
612
  }
602
613
  `
603
614
  /**
604
615
  * @license
605
616
  * Copyright 2020 Google LLC
606
617
  * SPDX-License-Identifier: BSD-3-Clause
607
- */,Ao=Symbol.for(""),Uo=t=>{if((null==t?void 0:t.r)===Ao)return null==t?void 0:t._$litStatic$},zo=t=>({_$litStatic$:t,r:Ao}),Fo=new Map,Do=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,c=0,h=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(r=i[c],n=Uo(r));)l+=n+e[++c],h=!0;a.push(r),s.push(l),c++}if(c===o&&s.push(e[o]),h){const t=s.join("$$lit$$");void 0===(e=Fo.get(t))&&(s.raw=s,Fo.set(t,e=s)),i=a}return t(e,...i)})(X);var Po;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Po||(Po={}));var Bo=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Lo extends St{constructor(){super(...arguments),this.variant=Po.body1}render(){return this.element?Do`
608
- <${zo(this.element)}
618
+ */,Fo=Symbol.for(""),Po=t=>{if((null==t?void 0:t.r)===Fo)return null==t?void 0:t._$litStatic$},Do=t=>({_$litStatic$:t,r:Fo}),Bo=new Map,Lo=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,c=0,h=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(r=i[c],n=Po(r));)l+=n+e[++c],h=!0;a.push(r),s.push(l),c++}if(c===o&&s.push(e[o]),h){const t=s.join("$$lit$$");void 0===(e=Bo.get(t))&&(s.raw=s,Bo.set(t,e=s)),i=a}return t(e,...i)})(X);var Wo;!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"}(Wo||(Wo={}));var Ho=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Ko extends St{constructor(){super(...arguments),this.variant=Wo.body1}render(){return this.element?Lo`
619
+ <${Do(this.element)}
609
620
  class="ft-typography ft-typography--${this.variant}">
610
621
  <slot></slot>
611
- </${zo(this.element)}>
612
- `:Do`
622
+ </${Do(this.element)}>
623
+ `:Lo`
613
624
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
614
- `}}Lo.styles=[ho,fo,uo,po,vo,bo,yo,go,xo,mo,wo],Bo([r()],Lo.prototype,"element",void 0),Bo([r()],Lo.prototype,"variant",void 0),f("ft-typography")(Lo);
625
+ `}}Ko.styles=[ho,fo,uo,po,vo,bo,yo,go,xo,mo,wo],Ho([r()],Ko.prototype,"element",void 0),Ho([r()],Ko.prototype,"variant",void 0),f("ft-typography")(Ko);
615
626
  /**
616
627
  * @license
617
628
  * Copyright 2017 Google LLC
618
629
  * SPDX-License-Identifier: BSD-3-Clause
619
630
  */
620
- const Wo=1,Ho=2,Ko=t=>(...e)=>({_$litDirective$:t,values:e});class Zo{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
631
+ const Zo=1,Vo=2,Go=t=>(...e)=>({_$litDirective$:t,values:e});class Jo{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
621
632
  /**
622
633
  * @license
623
634
  * Copyright 2017 Google LLC
624
635
  * SPDX-License-Identifier: BSD-3-Clause
625
- */class Vo extends Zo{constructor(t){if(super(t),this.it=Q,t.type!==Ho)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Q||null==t)return this._t=void 0,this.it=t;if(t===Y)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Vo.directiveName="unsafeHTML",Vo.resultType=1;const Go=Ko(Vo);var Jo,qo,Xo;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.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.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.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;"}(Jo||(Jo={})),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;"}(qo||(qo={})),new Map([...["abw"].map((t=>[t,qo.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,qo.AUDIO])),...["avi"].map((t=>[t,qo.AVI])),...["chm","xhs"].map((t=>[t,qo.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,qo.CODE])),...["csv"].map((t=>[t,qo.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,qo.DITA])),...["epub"].map((t=>[t,qo.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,qo.EXCEL])),...["flac"].map((t=>[t,qo.FLAC])),...["gif"].map((t=>[t,qo.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,qo.GZIP])),...["html","htm","xhtml"].map((t=>[t,qo.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,qo.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,qo.JPEG])),...["json"].map((t=>[t,qo.JSON])),...["m4a","m4p"].map((t=>[t,qo.M4A])),...["mov","qt"].map((t=>[t,qo.MOV])),...["mp3"].map((t=>[t,qo.MP3])),...["mp4","m4v"].map((t=>[t,qo.MP4])),...["ogg","oga"].map((t=>[t,qo.OGG])),...["pdf","ps"].map((t=>[t,qo.PDF])),...["png"].map((t=>[t,qo.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,qo.POWERPOINT])),...["rar"].map((t=>[t,qo.RAR])),...["stp"].map((t=>[t,qo.STP])),...["txt","rtf","md","mdown"].map((t=>[t,qo.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,qo.VIDEO])),...["wav"].map((t=>[t,qo.WAV])),...["wma"].map((t=>[t,qo.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,qo.WORD])),...["xml","xsl","rdf"].map((t=>[t,qo.XML])),...["yaml","yml","x-yaml"].map((t=>[t,qo.YAML])),...["zip"].map((t=>[t,qo.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Xo||(Xo={}));var Yo=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Qo extends St{constructor(){super(...arguments),this.resolvedIcon=Q}render(){var t;const e=null!==(t=this.variant)&&void 0!==t?t:Xo.fluid_topics,i="material"!==e||this.value;return X`
636
+ */class qo extends Jo{constructor(t){if(super(t),this.it=Q,t.type!==Vo)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Q||null==t)return this._t=void 0,this.it=t;if(t===Y)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}qo.directiveName="unsafeHTML",qo.resultType=1;const Xo=Go(qo);var Yo,Qo,tn;!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.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.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.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;"}(Yo||(Yo={})),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;"}(Qo||(Qo={})),new Map([...["abw"].map((t=>[t,Qo.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,Qo.AUDIO])),...["avi"].map((t=>[t,Qo.AVI])),...["chm","xhs"].map((t=>[t,Qo.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,Qo.CODE])),...["csv"].map((t=>[t,Qo.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Qo.DITA])),...["epub"].map((t=>[t,Qo.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Qo.EXCEL])),...["flac"].map((t=>[t,Qo.FLAC])),...["gif"].map((t=>[t,Qo.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Qo.GZIP])),...["html","htm","xhtml"].map((t=>[t,Qo.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Qo.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Qo.JPEG])),...["json"].map((t=>[t,Qo.JSON])),...["m4a","m4p"].map((t=>[t,Qo.M4A])),...["mov","qt"].map((t=>[t,Qo.MOV])),...["mp3"].map((t=>[t,Qo.MP3])),...["mp4","m4v"].map((t=>[t,Qo.MP4])),...["ogg","oga"].map((t=>[t,Qo.OGG])),...["pdf","ps"].map((t=>[t,Qo.PDF])),...["png"].map((t=>[t,Qo.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Qo.POWERPOINT])),...["rar"].map((t=>[t,Qo.RAR])),...["stp"].map((t=>[t,Qo.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Qo.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,Qo.VIDEO])),...["wav"].map((t=>[t,Qo.WAV])),...["wma"].map((t=>[t,Qo.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Qo.WORD])),...["xml","xsl","rdf"].map((t=>[t,Qo.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Qo.YAML])),...["zip"].map((t=>[t,Qo.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(tn||(tn={}));var en=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class on extends St{constructor(){super(...arguments),this.resolvedIcon=Q}render(){var t;const e=null!==(t=this.variant)&&void 0!==t?t:tn.fluid_topics,i="material"!==e||this.value;return X`
626
637
  <i class="ft-icon ${"ft-icon--"+e}">
627
- ${Go(this.resolvedIcon)}
638
+ ${Xo(this.resolvedIcon)}
628
639
  <slot ?hidden=${i}></slot>
629
640
  </i>
630
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Xo.file_format:this.resolvedIcon=null!==(t=qo[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Xo.material:this.resolvedIcon=this.value||Q;break;default:this.resolvedIcon=null!==(e=Jo[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Qo.elementDefinitions={},Qo.styles=Oo,Yo([r()],Qo.prototype,"variant",void 0),Yo([r()],Qo.prototype,"value",void 0),Yo([s()],Qo.prototype,"resolvedIcon",void 0),Yo([l("slot")],Qo.prototype,"slottedContent",void 0),f("ft-icon")(Qo);const tn=xt.create("--ft-tooltip-distance","SIZE","4px"),en=xt.create("--ft-tooltip-color","COLOR","#FFFFFF"),on=xt.create("--ft-tooltip-background-color","COLOR","#666666"),nn=xt.create("--ft-tooltip-z-index","NUMBER","1"),rn=xt.external(wt.borderRadiusS,"Design system"),sn=xt.create("--ft-tooltip-max-width","SIZE","150px"),an=m`
641
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case tn.file_format:this.resolvedIcon=null!==(t=Qo[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case tn.material:this.resolvedIcon=this.value||Q;break;default:this.resolvedIcon=null!==(e=Yo[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}on.elementDefinitions={},on.styles=Oo,en([r()],on.prototype,"variant",void 0),en([r()],on.prototype,"value",void 0),en([s()],on.prototype,"resolvedIcon",void 0),en([l("slot")],on.prototype,"slottedContent",void 0),f("ft-icon")(on);const nn=xt.create("--ft-tooltip-distance","SIZE","4px"),rn=xt.create("--ft-tooltip-color","COLOR","#FFFFFF"),sn=xt.create("--ft-tooltip-background-color","COLOR","#666666"),an=xt.create("--ft-tooltip-z-index","NUMBER","1"),ln=xt.external(wt.borderRadiusS,"Design system"),cn=xt.create("--ft-tooltip-max-width","SIZE","150px"),hn=m`
631
642
  .ft-tooltip--container {
632
643
  display: block;
633
644
  position: relative;
@@ -643,23 +654,23 @@ const Wo=1,Ho=2,Ko=t=>(...e)=>({_$litDirective$:t,values:e});class Zo{constructo
643
654
  box-sizing: border-box;
644
655
  overflow: hidden;
645
656
  width: max-content;
646
- max-width: ${sn};
657
+ max-width: ${cn};
647
658
  text-align: center;
648
- padding: ${tn};
649
- z-index: ${nn};
659
+ padding: ${nn};
660
+ z-index: ${an};
650
661
  }
651
662
 
652
663
  .ft-tooltip--content {
653
664
  padding: 4px 8px;
654
- border-radius: ${rn};
655
- background-color: ${on};
656
- color: ${en};
665
+ border-radius: ${ln};
666
+ background-color: ${sn};
667
+ color: ${rn};
657
668
  top: -500px;
658
669
  left: -500px;
659
670
  position: relative;
660
671
  word-break: break-word;
661
672
  }
662
- `;var ln=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class cn extends St{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return X`
673
+ `;var dn=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class fn extends St{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o,this.revealDebouncer=new o}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return X`
663
674
  <div part="container"
664
675
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
665
676
  @mouseenter=${this.onHover}
@@ -677,19 +688,19 @@ const Wo=1,Ho=2,Ko=t=>(...e)=>({_$litDirective$:t,values:e});class Zo{constructo
677
688
  </div>
678
689
  </div>
679
690
  </div>
680
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,n=o;break;case"bottom":r=e.height,n=o;break;case"left":r=i,n=-this.tooltip.clientWidth;break;case"right":r=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${sn})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}cn.elementDefinitions={"ft-typography":Lo},cn.styles=an,ln([r()],cn.prototype,"text",void 0),ln([r({type:Boolean})],cn.prototype,"manual",void 0),ln([r({type:Boolean})],cn.prototype,"inline",void 0),ln([r({type:Number})],cn.prototype,"delay",void 0),ln([r()],cn.prototype,"position",void 0),ln([
691
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2;let n=0,r=0;switch(this.validPosition){case"top":r=-this.tooltip.clientHeight,n=o;break;case"bottom":r=e.height,n=o;break;case"left":r=i,n=-this.tooltip.clientWidth;break;case"right":r=i,n=e.width}e.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-e.left),e.left+n<0&&(n=0);const s=this.tooltip.style;s.left=n+"px",s.top=r+"px",s.maxWidth=`max(${e.width}px, ${cn})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}fn.elementDefinitions={"ft-typography":Ko},fn.styles=hn,dn([r()],fn.prototype,"text",void 0),dn([r({type:Boolean})],fn.prototype,"manual",void 0),dn([r({type:Boolean})],fn.prototype,"inline",void 0),dn([r({type:Number})],fn.prototype,"delay",void 0),dn([r()],fn.prototype,"position",void 0),dn([
681
692
  /**
682
693
  * @license
683
694
  * Copyright 2017 Google LLC
684
695
  * SPDX-License-Identifier: BSD-3-Clause
685
696
  */
686
- function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return a({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?h(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):a({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],cn.prototype,"slotNodes",void 0),ln([l(".ft-tooltip--container")],cn.prototype,"container",void 0),ln([l("slot")],cn.prototype,"target",void 0),ln([l(".ft-tooltip")],cn.prototype,"tooltip",void 0),ln([l(".ft-tooltip--content")],cn.prototype,"tooltipContent",void 0),ln([s()],cn.prototype,"visible",void 0),f("ft-tooltip")(cn);
697
+ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return a({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),r=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),s=null!=r?h(r,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):a({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),r=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==r?void 0:r.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],fn.prototype,"slotNodes",void 0),dn([l(".ft-tooltip--container")],fn.prototype,"container",void 0),dn([l("slot")],fn.prototype,"target",void 0),dn([l(".ft-tooltip")],fn.prototype,"tooltip",void 0),dn([l(".ft-tooltip--content")],fn.prototype,"tooltipContent",void 0),dn([s()],fn.prototype,"visible",void 0),f("ft-tooltip")(fn);
687
698
  /**
688
699
  * @license
689
700
  * Copyright 2018 Google LLC
690
701
  * SPDX-License-Identifier: BSD-3-Clause
691
702
  */
692
- const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=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]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return Y}});var dn=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class fn extends St{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.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new o(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o(10),this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.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 X`
703
+ const un=Go(class extends Jo{constructor(t){var e;if(super(t),t.type!==Zo||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=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]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return Y}});var pn=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class vn extends St{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.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new o(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o(10),this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.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 X`
693
704
  <style>
694
705
  .ft-ripple .ft-ripple--effect,
695
706
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -702,11 +713,11 @@ const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"clas
702
713
  top: ${this.originY}px;
703
714
  }
704
715
  </style>
705
- <div class="${hn(t)}">
716
+ <div class="${un(t)}">
706
717
  <div class="ft-ripple--background"></div>
707
718
  <div class="ft-ripple--effect"></div>
708
719
  </div>
709
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}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.resizeObserver.disconnect(),this.endRipple()}}fn.elementDefinitions={},fn.styles=Oi,dn([r({type:Boolean})],fn.prototype,"primary",void 0),dn([r({type:Boolean})],fn.prototype,"secondary",void 0),dn([r({type:Boolean})],fn.prototype,"unbounded",void 0),dn([r({type:Boolean})],fn.prototype,"activated",void 0),dn([r({type:Boolean})],fn.prototype,"selected",void 0),dn([r({type:Boolean})],fn.prototype,"disabled",void 0),dn([s()],fn.prototype,"hovered",void 0),dn([s()],fn.prototype,"focused",void 0),dn([s()],fn.prototype,"pressed",void 0),dn([s()],fn.prototype,"rippling",void 0),dn([s()],fn.prototype,"rippleSize",void 0),dn([s()],fn.prototype,"originX",void 0),dn([s()],fn.prototype,"originY",void 0),dn([l(".ft-ripple")],fn.prototype,"ripple",void 0),dn([l(".ft-ripple--effect")],fn.prototype,"rippleEffect",void 0),f("ft-ripple")(fn);const un={borderRadiusLeft:xt.extend("--ft-switch-option-border-radius-left",wt.borderRadiusL),borderRadiusRight:xt.extend("--ft-switch-option-border-radius-right",wt.borderRadiusL),borderWidthLeft:xt.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:xt.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:xt.create("--ft-switch-option-border-width-vertical","SIZE","1px")},pn=m`
720
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}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.resizeObserver.disconnect(),this.endRipple()}}vn.elementDefinitions={},vn.styles=Oi,pn([r({type:Boolean})],vn.prototype,"primary",void 0),pn([r({type:Boolean})],vn.prototype,"secondary",void 0),pn([r({type:Boolean})],vn.prototype,"unbounded",void 0),pn([r({type:Boolean})],vn.prototype,"activated",void 0),pn([r({type:Boolean})],vn.prototype,"selected",void 0),pn([r({type:Boolean})],vn.prototype,"disabled",void 0),pn([s()],vn.prototype,"hovered",void 0),pn([s()],vn.prototype,"focused",void 0),pn([s()],vn.prototype,"pressed",void 0),pn([s()],vn.prototype,"rippling",void 0),pn([s()],vn.prototype,"rippleSize",void 0),pn([s()],vn.prototype,"originX",void 0),pn([s()],vn.prototype,"originY",void 0),pn([l(".ft-ripple")],vn.prototype,"ripple",void 0),pn([l(".ft-ripple--effect")],vn.prototype,"rippleEffect",void 0),f("ft-ripple")(vn);const bn={borderRadiusLeft:xt.extend("--ft-switch-option-border-radius-left",wt.borderRadiusL),borderRadiusRight:xt.extend("--ft-switch-option-border-radius-right",wt.borderRadiusL),borderWidthLeft:xt.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:xt.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:xt.create("--ft-switch-option-border-width-vertical","SIZE","1px")},yn=m`
710
721
  .ft-switch-option {
711
722
  position: relative;
712
723
  display: inline-block;
@@ -720,20 +731,20 @@ const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"clas
720
731
  }
721
732
 
722
733
  .ft-switch-option--content {
723
- --ft-switch-option-internal-line-height: calc(${Mo.fontSize} + 2px);
724
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Mo.iconSize});
734
+ --ft-switch-option-internal-line-height: calc(${Ao.fontSize} + 2px);
735
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Ao.iconSize});
725
736
 
726
737
  border-style: solid;
727
- border-color: ${Mo.borderColor};
728
- border-width: ${un.borderWidthVertical} ${un.borderWidthRight} ${un.borderWidthVertical} ${un.borderWidthLeft};
729
- border-radius: ${un.borderRadiusLeft} ${un.borderRadiusRight} ${un.borderRadiusRight} ${un.borderRadiusLeft};
738
+ border-color: ${Ao.borderColor};
739
+ border-width: ${bn.borderWidthVertical} ${bn.borderWidthRight} ${bn.borderWidthVertical} ${bn.borderWidthLeft};
740
+ border-radius: ${bn.borderRadiusLeft} ${bn.borderRadiusRight} ${bn.borderRadiusRight} ${bn.borderRadiusLeft};
730
741
  display: flex;
731
742
  align-items: center;
732
743
  justify-content: center;
733
744
  overflow: hidden;
734
- ${mt(So.size,Mo.iconSize)};
745
+ ${mt(So.size,Ao.iconSize)};
735
746
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
736
- background-color: ${Mo.backgroundColor};
747
+ background-color: ${Ao.backgroundColor};
737
748
  -webkit-mask-image: radial-gradient(white, black);
738
749
  }
739
750
 
@@ -742,8 +753,8 @@ const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"clas
742
753
  }
743
754
 
744
755
  .ft-switch-option--input:checked + .ft-switch-option--content:before {
745
- background-color: ${Mo.selectedBackgroundColor};
746
- border-radius: ${un.borderRadiusLeft} ${un.borderRadiusRight} ${un.borderRadiusRight} ${un.borderRadiusLeft};
756
+ background-color: ${Ao.selectedBackgroundColor};
757
+ border-radius: ${bn.borderRadiusLeft} ${bn.borderRadiusRight} ${bn.borderRadiusRight} ${bn.borderRadiusLeft};
747
758
  position: absolute;
748
759
  inset: 0;
749
760
  content: "";
@@ -752,18 +763,18 @@ const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"clas
752
763
  }
753
764
 
754
765
  .ft-switch-option--label {
755
- color: ${Mo.textColor};
766
+ color: ${Ao.textColor};
756
767
  overflow: hidden;
757
768
  white-space: nowrap;
758
769
  text-overflow: ellipsis;
759
770
  display: block;
760
771
  margin: 0 8px;
761
- ${mt(co.fontSize,Mo.fontSize)};
772
+ ${mt(co.fontSize,Ao.fontSize)};
762
773
  ${mt(co.lineHeight,"var(--ft-switch-option-internal-content-height)")}
763
774
  }
764
775
 
765
776
  .ft-switch-option--input:checked + .ft-switch-option--content .ft-switch-option--label {
766
- color: ${Mo.selectedTextColor};
777
+ color: ${Ao.selectedTextColor};
767
778
  }
768
779
 
769
780
  .ft-switch-option--label[hidden] {
@@ -771,7 +782,7 @@ const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"clas
771
782
  }
772
783
 
773
784
  .ft-switch-option--ripple {
774
- ${mt(gi.color,Mo.rippleColor)};
785
+ ${mt(gi.color,Ao.rippleColor)};
775
786
  }
776
787
 
777
788
  ft-icon, ft-ripple, ft-typography {
@@ -784,14 +795,14 @@ const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"clas
784
795
 
785
796
  ft-icon {
786
797
  flex-shrink: 0;
787
- color: ${Mo.iconColor};
798
+ color: ${Ao.iconColor};
788
799
  }
789
800
 
790
801
  .ft-switch-option--input:checked + .ft-switch-option--content ft-icon {
791
- color: ${Mo.selectedTextColor};
802
+ color: ${Ao.selectedTextColor};
792
803
  }
793
- `;var vn=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class bn extends CustomEvent{constructor(){super("option-change",{bubbles:!0,composed:!0})}}class yn extends St{constructor(){super(...arguments),this.value="",this.iconVariant=Xo.material,this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new bn)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(X`
794
- <label part="label" for="input" class=${hn(t)}
804
+ `;var gn=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class xn extends CustomEvent{constructor(){super("option-change",{bubbles:!0,composed:!0})}}class mn extends St{constructor(){super(...arguments),this.value="",this.iconVariant=tn.material,this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new xn)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(X`
805
+ <label part="label" for="input" class=${un(t)}
795
806
  @click=${this.onChange}>
796
807
  <input id="input" type="radio" class="ft-switch-option--input"
797
808
  .checked=${this.selected}>
@@ -814,19 +825,19 @@ const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"clas
814
825
  </ft-tooltip>
815
826
  `}onChange(){this.selected=!this.unselectable||!this.selected}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?X`
816
827
  <ft-icon part="icon" .variant=${this.iconVariant} value=${this.icon}></ft-icon>
817
- `:Q}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}yn.elementDefinitions={"ft-ripple":fn,"ft-typography":Lo,"ft-tooltip":cn,"ft-icon":Qo},yn.styles=[_t,pn],vn([r()],yn.prototype,"value",void 0),vn([r()],yn.prototype,"icon",void 0),vn([r()],yn.prototype,"iconVariant",void 0),vn([r()],yn.prototype,"label",void 0),vn([r()],yn.prototype,"tooltipPosition",void 0),vn([r({type:Boolean,reflect:!0})],yn.prototype,"selected",void 0),vn([r({type:Boolean})],yn.prototype,"trailingIcon",void 0),vn([r({type:Boolean})],yn.prototype,"unselectable",void 0),vn([l(".ft-switch-option--content slot")],yn.prototype,"slottedContent",void 0),vn([l(".ft-switch-option--input")],yn.prototype,"input",void 0);var gn=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class xn extends CustomEvent{constructor(t){super("change",{detail:t})}}class mn extends St{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}updated(t){var e;super.updated(t),t.has("selectedOption")&&(this.updateOptions(),this.dispatchEvent(new xn(null===(e=this.selectedOption)||void 0===e?void 0:e.value))),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return X`
818
- <div @keydown=${this.onKeyDown} tabindex="0" class="${hn(t)}">
828
+ `:Q}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}mn.elementDefinitions={"ft-ripple":vn,"ft-typography":Ko,"ft-tooltip":fn,"ft-icon":on},mn.styles=[_t,yn],gn([r()],mn.prototype,"value",void 0),gn([r()],mn.prototype,"icon",void 0),gn([r()],mn.prototype,"iconVariant",void 0),gn([r()],mn.prototype,"label",void 0),gn([r()],mn.prototype,"tooltipPosition",void 0),gn([r({type:Boolean,reflect:!0})],mn.prototype,"selected",void 0),gn([r({type:Boolean})],mn.prototype,"trailingIcon",void 0),gn([r({type:Boolean})],mn.prototype,"unselectable",void 0),gn([l(".ft-switch-option--content slot")],mn.prototype,"slottedContent",void 0),gn([l(".ft-switch-option--input")],mn.prototype,"input",void 0);var wn=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class $n extends CustomEvent{constructor(t){super("change",{detail:t})}}class kn extends St{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}updated(t){var e;super.updated(t),t.has("selectedOption")&&(this.updateOptions(),this.dispatchEvent(new $n(null===(e=this.selectedOption)||void 0===e?void 0:e.value))),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return X`
829
+ <div @keydown=${this.onKeyDown} tabindex="0" class="${un(t)}">
819
830
  <slot @slotchange=${this.onSlotchange}
820
831
  @option-change=${this.onOptionChange}></slot>
821
832
  </div>
822
- `}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof yn&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChange(t){t.stopPropagation();let e=t.target;e.selected?this.selectedOption=e:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t==this.selectedOption}))}}mn.elementDefinitions={},mn.styles=m`
833
+ `}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof mn&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChange(t){t.stopPropagation();let e=t.target;e.selected?this.selectedOption=e:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t==this.selectedOption}))}}kn.elementDefinitions={},kn.styles=m`
823
834
  :host {
824
835
  display: inline-block;
825
836
  }
826
837
 
827
838
  .ft-switch {
828
- border-radius: ${Mo.borderRadius};
829
- outline-color: ${Mo.outlineColor};
839
+ border-radius: ${Ao.borderRadius};
840
+ outline-color: ${Ao.outlineColor};
830
841
  }
831
842
 
832
843
  .ft-switch slot {
@@ -835,25 +846,25 @@ const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"clas
835
846
  }
836
847
 
837
848
  .ft-switch slot::slotted(ft-switch-option) {
838
- ${mt(un.borderRadiusLeft,"0")};
839
- ${mt(un.borderRadiusRight,"0")};
840
- ${mt(un.borderWidthLeft,"0")};
849
+ ${mt(bn.borderRadiusLeft,"0")};
850
+ ${mt(bn.borderRadiusRight,"0")};
851
+ ${mt(bn.borderWidthLeft,"0")};
841
852
  }
842
853
 
843
854
  .ft-switch slot::slotted(ft-switch-option:first-child) {
844
- ${mt(un.borderRadiusLeft,Mo.borderRadius)};
845
- ${mt(un.borderWidthLeft,"1px")};
855
+ ${mt(bn.borderRadiusLeft,Ao.borderRadius)};
856
+ ${mt(bn.borderWidthLeft,"1px")};
846
857
  }
847
858
 
848
859
  .ft-switch slot::slotted(ft-switch-option:last-child) {
849
- ${mt(un.borderRadiusRight,Mo.borderRadius)};
860
+ ${mt(bn.borderRadiusRight,Ao.borderRadius)};
850
861
  }
851
862
 
852
863
  .ft-switch--dense slot::slotted(ft-switch-option) {
853
864
  --ft-switch-internal-vertical-padding: 2px;
854
865
  --ft-switch-internal-horizontal-padding: 4px;
855
866
  }
856
- `,gn([r({type:Boolean})],mn.prototype,"dense",void 0),gn([r({type:Boolean})],mn.prototype,"unselectable",void 0),gn([l(".ft-switch slot")],mn.prototype,"slottedContent",void 0),gn([s()],mn.prototype,"selectedOption",void 0),gn([l(".ft-switch")],mn.prototype,"ftSwitchDiv",void 0),f("ft-switch")(mn),f("ft-switch-option")(yn);const wn=xt.external(wt.colorOutline,"Design system"),$n=xt.external(wt.colorOnSurfaceMedium,"Design system"),kn=m`
867
+ `,wn([r({type:Boolean})],kn.prototype,"dense",void 0),wn([r({type:Boolean})],kn.prototype,"unselectable",void 0),wn([l(".ft-switch slot")],kn.prototype,"slottedContent",void 0),wn([s()],kn.prototype,"selectedOption",void 0),wn([l(".ft-switch")],kn.prototype,"ftSwitchDiv",void 0),f("ft-switch")(kn),f("ft-switch-option")(mn);const Sn=xt.external(wt.colorOutline,"Design system"),On=xt.external(wt.colorOnSurfaceMedium,"Design system"),_n=m`
857
868
  :host {
858
869
  display: block;
859
870
  }
@@ -864,14 +875,14 @@ const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"clas
864
875
 
865
876
  ft-icon {
866
877
  transform: rotate(-45deg);
867
- color: ${wn};
878
+ color: ${Sn};
868
879
  }
869
880
 
870
881
  .ft-resizer--dragging ft-icon,
871
882
  .ft-resizer:hover ft-icon {
872
- color: ${$n};
883
+ color: ${On};
873
884
  }
874
- `;var Sn=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class On extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class _n extends St{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return X`
885
+ `;var Cn=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class En extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class jn extends St{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return X`
875
886
  <style>
876
887
  .ft-resizer {
877
888
  cursor: ${x(this.cursor)}
@@ -882,25 +893,25 @@ const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"clas
882
893
  @touchstart=${this.initDragFromTouch}>
883
894
  <ft-icon variant="material">${this.icon}</ft-icon>
884
895
  </div>
885
- `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new On(i,o))}}_n.elementDefinitions={"ft-icon":Qo},_n.styles=[Ot,kn],Sn([r({type:Number})],_n.prototype,"initialWidth",void 0),Sn([r({type:Number})],_n.prototype,"initialHeight",void 0),Sn([r()],_n.prototype,"icon",void 0),Sn([r()],_n.prototype,"cursor",void 0),Sn([s()],_n.prototype,"dragging",void 0),f("ft-resizer")(_n);const Cn={fontSize:xt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:xt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:xt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:xt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:xt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:xt.create("--ft-input-label-max-width","SIZE","100%"),borderColor:xt.extend("--ft-input-label-border-color",wt.colorOutline),textColor:xt.extend("--ft-input-label-text-color",wt.colorOnSurfaceMedium),disabledTextColor:xt.extend("--ft-input-label-disabled-text-color",wt.colorOnSurfaceDisabled),colorSurface:xt.external(wt.colorSurface,"Design system"),borderRadiusS:xt.external(wt.borderRadiusS,"Design system"),colorError:xt.external(wt.colorError,"Design system")},En=m`
896
+ `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let i=this.fixedWidth+t-this.startX,o=this.fixedHeight+e-this.startY;this.dispatchEvent(new En(i,o))}}jn.elementDefinitions={"ft-icon":on},jn.styles=[Ot,_n],Cn([r({type:Number})],jn.prototype,"initialWidth",void 0),Cn([r({type:Number})],jn.prototype,"initialHeight",void 0),Cn([r()],jn.prototype,"icon",void 0),Cn([r()],jn.prototype,"cursor",void 0),Cn([s()],jn.prototype,"dragging",void 0),f("ft-resizer")(jn);const Rn={fontSize:xt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:xt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:xt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:xt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:xt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:xt.create("--ft-input-label-max-width","SIZE","100%"),borderColor:xt.extend("--ft-input-label-border-color",wt.colorOutline),textColor:xt.extend("--ft-input-label-text-color",wt.colorOnSurfaceMedium),disabledTextColor:xt.extend("--ft-input-label-disabled-text-color",wt.colorOnSurfaceDisabled),colorSurface:xt.external(wt.colorSurface,"Design system"),borderRadiusS:xt.external(wt.borderRadiusS,"Design system"),colorError:xt.external(wt.colorError,"Design system")},Nn=m`
886
897
  .ft-input-label {
887
898
  position: absolute;
888
899
  inset: 0;
889
900
  display: flex;
890
- background-color: ${Cn.colorSurface};
891
- border-radius: ${Cn.borderRadiusS} ${Cn.borderRadiusS} 0 0;
901
+ background-color: ${Rn.colorSurface};
902
+ border-radius: ${Rn.borderRadiusS} ${Rn.borderRadiusS} 0 0;
892
903
  }
893
904
 
894
905
  .ft-input-label--outlined {
895
- border-radius: ${Cn.borderRadiusS};
906
+ border-radius: ${Rn.borderRadiusS};
896
907
  }
897
908
 
898
909
  .ft-input-label {
899
- border-color: ${Cn.borderColor};
910
+ border-color: ${Rn.borderColor};
900
911
  }
901
912
 
902
913
  .ft-input-label.ft-input-label--in-error {
903
- border-color: ${Cn.colorError}
914
+ border-color: ${Rn.colorError}
904
915
  }
905
916
 
906
917
  .ft-input-label:before,
@@ -913,7 +924,7 @@ const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"clas
913
924
  }
914
925
 
915
926
  .ft-input-label:before {
916
- width: calc(${Cn.horizontalSpacing} - 4px);
927
+ width: calc(${Rn.horizontalSpacing} - 4px);
917
928
  flex-shrink: 0;
918
929
  }
919
930
 
@@ -929,20 +940,20 @@ const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"clas
929
940
  border-bottom-width: 1px;
930
941
  border-bottom-style: solid;
931
942
  border-color: inherit;
932
- color: ${Cn.textColor};
943
+ color: ${Rn.textColor};
933
944
  transition: font-size 250ms, line-height 250ms, color 250ms;
934
- max-width: calc(${Cn.labelMaxWidth} - 2 * (${Cn.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
945
+ max-width: calc(${Rn.labelMaxWidth} - 2 * (${Rn.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
935
946
  text-overflow: ellipsis;
936
- ${mt(qi.fontSize,Cn.fontSize)};
937
- ${mt(qi.lineHeight,Cn.fontSize)};
947
+ ${mt(qi.fontSize,Rn.fontSize)};
948
+ ${mt(qi.lineHeight,Rn.fontSize)};
938
949
  }
939
950
 
940
951
  .ft-input-label--in-error .ft-input-label--text {
941
- color: ${Cn.colorError}
952
+ color: ${Rn.colorError}
942
953
  }
943
954
 
944
955
  .ft-input-label--disabled .ft-input-label--text {
945
- color: ${Cn.disabledTextColor};
956
+ color: ${Rn.disabledTextColor};
946
957
  }
947
958
 
948
959
  .ft-input-label--hidden-text {
@@ -959,19 +970,19 @@ const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"clas
959
970
  overflow: hidden;
960
971
  white-space: nowrap;
961
972
  text-overflow: ellipsis;
962
- padding: ${Cn.verticalSpacing} 4px;
963
- margin: calc(${Cn.verticalSpacing} * -1) 0;
973
+ padding: ${Rn.verticalSpacing} 4px;
974
+ margin: calc(${Rn.verticalSpacing} * -1) 0;
964
975
  max-width: 100%;
965
976
  box-sizing: border-box;
966
977
  }
967
978
 
968
979
  .ft-input-label--raised .ft-input-label--text {
969
- ${mt(qi.fontSize,Cn.raisedFontSize)};
970
- ${mt(qi.lineHeight,Cn.raisedFontSize)};
980
+ ${mt(qi.fontSize,Rn.raisedFontSize)};
981
+ ${mt(qi.lineHeight,Rn.raisedFontSize)};
971
982
  }
972
983
 
973
984
  .ft-input-label--raised .ft-input-label--floating-text {
974
- top: ${Cn.verticalSpacing};
985
+ top: ${Rn.verticalSpacing};
975
986
  }
976
987
 
977
988
  .ft-input-label--outlined .ft-input-label--text,
@@ -984,28 +995,28 @@ const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"clas
984
995
  .ft-input-label--outlined:before {
985
996
  border-left-width: 1px;
986
997
  border-left-style: solid;
987
- border-radius: ${Cn.borderRadiusS} 0 0 ${Cn.borderRadiusS};
998
+ border-radius: ${Rn.borderRadiusS} 0 0 ${Rn.borderRadiusS};
988
999
  }
989
1000
 
990
1001
  .ft-input-label--outlined:after {
991
1002
  border-right-width: 1px;
992
1003
  border-right-style: solid;
993
- border-radius: 0 ${Cn.borderRadiusS} ${Cn.borderRadiusS} 0;
1004
+ border-radius: 0 ${Rn.borderRadiusS} ${Rn.borderRadiusS} 0;
994
1005
  }
995
1006
 
996
1007
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
997
1008
  padding: 2px 4px;
998
- z-index: ${Cn.raisedZIndex};
999
- background-color: ${Cn.colorSurface};
1000
- border-radius: ${Cn.borderRadiusS};
1009
+ z-index: ${Rn.raisedZIndex};
1010
+ background-color: ${Rn.colorSurface};
1011
+ border-radius: ${Rn.borderRadiusS};
1001
1012
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
1002
1013
  }
1003
1014
 
1004
1015
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1005
1016
  border-top: none;
1006
1017
  }
1007
- `;var jn=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Rn extends St{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return X`
1008
- <div class="${hn(t)}">
1018
+ `;var Mn=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class In extends St{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return X`
1019
+ <div class="${un(t)}">
1009
1020
  ${this.text?X`
1010
1021
  <div class="ft-input-label--text ft-typography--caption">
1011
1022
  <span class="ft-input-label--floating-text">${this.text}</span>
@@ -1013,7 +1024,7 @@ const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"clas
1013
1024
  </div>
1014
1025
  `:null}
1015
1026
  </div>
1016
- `}}Rn.elementDefinitions={},Rn.styles=[yo,En],jn([r({type:String})],Rn.prototype,"text",void 0),jn([r({type:Boolean})],Rn.prototype,"raised",void 0),jn([r({type:Boolean})],Rn.prototype,"outlined",void 0),jn([r({type:Boolean})],Rn.prototype,"disabled",void 0),jn([r({type:Boolean})],Rn.prototype,"error",void 0),f("ft-input-label")(Rn);const Nn={fontSize:xt.create("--ft-text-area-font-size","SIZE","14px"),labelSize:xt.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:xt.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:xt.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:xt.extend("--ft-text-area-helper-color",wt.colorOnSurfaceMedium),colorPrimary:xt.external(wt.colorPrimary,"Design system"),colorOnSurface:xt.external(wt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:xt.external(wt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:xt.external(wt.borderRadiusS,"Design system"),colorError:xt.external(wt.colorError,"Design system")},Mn=m`
1027
+ `}}In.elementDefinitions={},In.styles=[yo,Nn],Mn([r({type:String})],In.prototype,"text",void 0),Mn([r({type:Boolean})],In.prototype,"raised",void 0),Mn([r({type:Boolean})],In.prototype,"outlined",void 0),Mn([r({type:Boolean})],In.prototype,"disabled",void 0),Mn([r({type:Boolean})],In.prototype,"error",void 0),f("ft-input-label")(In);const Tn={fontSize:xt.create("--ft-text-area-font-size","SIZE","14px"),labelSize:xt.create("--ft-text-area-label-size","SIZE","11px"),verticalSpacing:xt.create("--ft-text-area-vertical-spacing","SIZE","4px"),horizontalSpacing:xt.create("--ft-text-area-horizontal-spacing","SIZE","16px"),helperColor:xt.extend("--ft-text-area-helper-color",wt.colorOnSurfaceMedium),colorPrimary:xt.external(wt.colorPrimary,"Design system"),colorOnSurface:xt.external(wt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:xt.external(wt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:xt.external(wt.borderRadiusS,"Design system"),colorError:xt.external(wt.colorError,"Design system")},An=m`
1017
1028
  *:focus {
1018
1029
  outline: none;
1019
1030
  }
@@ -1025,10 +1036,10 @@ const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"clas
1025
1036
  }
1026
1037
 
1027
1038
  ft-input-label {
1028
- ${mt(Cn.fontSize,Nn.fontSize)};
1029
- ${mt(Cn.raisedFontSize,Nn.labelSize)};
1030
- ${mt(Cn.verticalSpacing,Nn.verticalSpacing)};
1031
- ${mt(Cn.horizontalSpacing,Nn.horizontalSpacing)};
1039
+ ${mt(Rn.fontSize,Tn.fontSize)};
1040
+ ${mt(Rn.raisedFontSize,Tn.labelSize)};
1041
+ ${mt(Rn.verticalSpacing,Tn.verticalSpacing)};
1042
+ ${mt(Rn.horizontalSpacing,Tn.horizontalSpacing)};
1032
1043
  }
1033
1044
 
1034
1045
  .ft-text-area--main-panel {
@@ -1059,12 +1070,12 @@ const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"clas
1059
1070
  align-self: stretch;
1060
1071
  resize: none;
1061
1072
 
1062
- ${mt(Wi.fontSize,Nn.fontSize)};
1063
- ${mt(Wi.lineHeight,Nn.fontSize)};
1064
- color: ${Nn.colorOnSurface};
1073
+ ${mt(Wi.fontSize,Tn.fontSize)};
1074
+ ${mt(Wi.lineHeight,Tn.fontSize)};
1075
+ color: ${Tn.colorOnSurface};
1065
1076
 
1066
- padding: 0 ${Nn.horizontalSpacing};
1067
- margin: calc(${Nn.verticalSpacing} + ${Nn.labelSize} / 2) 0 ${Nn.verticalSpacing} 0;
1077
+ padding: 0 ${Tn.horizontalSpacing};
1078
+ margin: calc(${Tn.verticalSpacing} + ${Tn.labelSize} / 2) 0 ${Tn.verticalSpacing} 0;
1068
1079
 
1069
1080
  border: none;
1070
1081
  background: none;
@@ -1073,7 +1084,7 @@ const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"clas
1073
1084
  }
1074
1085
 
1075
1086
  .ft-text-area--disabled .ft-text-area--input {
1076
- color: ${Nn.colorOnSurfaceDisabled};
1087
+ color: ${Tn.colorOnSurfaceDisabled};
1077
1088
  }
1078
1089
 
1079
1090
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -1081,32 +1092,32 @@ const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"clas
1081
1092
  }
1082
1093
 
1083
1094
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
1084
- ${mt(Cn.borderColor,Nn.colorPrimary)};
1085
- ${mt(Cn.textColor,Nn.colorPrimary)};
1095
+ ${mt(Rn.borderColor,Tn.colorPrimary)};
1096
+ ${mt(Rn.textColor,Tn.colorPrimary)};
1086
1097
  }
1087
1098
 
1088
1099
  .ft-text-area--filled .ft-text-area--input-panel {
1089
- border-radius: ${Nn.borderRadiusS} ${Nn.borderRadiusS} 0 0;
1100
+ border-radius: ${Tn.borderRadiusS} ${Tn.borderRadiusS} 0 0;
1090
1101
  }
1091
1102
 
1092
1103
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
1093
1104
  align-self: stretch;
1094
- margin-bottom: ${Nn.verticalSpacing};
1095
- margin-top: calc(${Nn.labelSize} + 2 * ${Nn.verticalSpacing});
1105
+ margin-bottom: ${Tn.verticalSpacing};
1106
+ margin-top: calc(${Tn.labelSize} + 2 * ${Tn.verticalSpacing});
1096
1107
  }
1097
1108
 
1098
1109
  .ft-text-area--outlined .ft-text-area--input-panel {
1099
- border-radius: ${Nn.borderRadiusS};
1110
+ border-radius: ${Tn.borderRadiusS};
1100
1111
  }
1101
1112
 
1102
1113
  .ft-text-area--helper-text {
1103
- padding: 0 12px 0 ${Nn.horizontalSpacing};
1104
- color: ${Nn.helperColor};
1114
+ padding: 0 12px 0 ${Tn.horizontalSpacing};
1115
+ color: ${Tn.helperColor};
1105
1116
  }
1106
1117
 
1107
1118
  .ft-text-area--in-error .ft-text-area--input,
1108
1119
  .ft-text-area--in-error .ft-text-area--helper-text {
1109
- color: ${Nn.colorError};
1120
+ color: ${Tn.colorError};
1110
1121
  }
1111
1122
 
1112
1123
  ft-resizer {
@@ -1114,13 +1125,13 @@ const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"clas
1114
1125
  right: 0;
1115
1126
  bottom: 0;
1116
1127
  }
1117
- `;var In=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Tn extends St{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return X`
1128
+ `;var Un=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class zn extends St{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return X`
1118
1129
  <style>
1119
1130
  .ft-text-area--main-panel {
1120
- height: calc(4 * ${Nn.verticalSpacing} + ${Nn.labelSize} + ${Nn.fontSize} + ${this.height}px);
1131
+ height: calc(4 * ${Tn.verticalSpacing} + ${Tn.labelSize} + ${Tn.fontSize} + ${this.height}px);
1121
1132
  }
1122
1133
  </style>
1123
- <div class="${hn(t)}">
1134
+ <div class="${un(t)}">
1124
1135
  <div class="ft-text-area--main-panel">
1125
1136
  <ft-input-label text="${this.label}"
1126
1137
  ?disabled=${this.disabled}
@@ -1152,27 +1163,27 @@ const hn=Ko(class extends Zo{constructor(t){var e;if(super(t),t.type!==Wo||"clas
1152
1163
  ${this.helper}
1153
1164
  </ft-typography>`:void 0}
1154
1165
  </div>
1155
- `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}Tn.elementDefinitions={"ft-input-label":Rn,"ft-resizer":_n,"ft-ripple":fn,"ft-typography":Lo},Tn.styles=[vo,Mn],In([r({type:String})],Tn.prototype,"label",void 0),In([r({reflect:!0})],Tn.prototype,"value",void 0),In([r({type:String})],Tn.prototype,"helper",void 0),In([r({type:Boolean})],Tn.prototype,"outlined",void 0),In([r({type:Boolean})],Tn.prototype,"disabled",void 0),In([r({type:Boolean})],Tn.prototype,"error",void 0),In([r({type:Number,reflect:!0})],Tn.prototype,"height",void 0),In([l("textarea")],Tn.prototype,"textarea",void 0),In([s()],Tn.prototype,"focused",void 0),f("ft-text-area")(Tn);
1166
+ `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||""}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}zn.elementDefinitions={"ft-input-label":In,"ft-resizer":jn,"ft-ripple":vn,"ft-typography":Ko},zn.styles=[vo,An],Un([r({type:String})],zn.prototype,"label",void 0),Un([r({reflect:!0})],zn.prototype,"value",void 0),Un([r({type:String})],zn.prototype,"helper",void 0),Un([r({type:Boolean})],zn.prototype,"outlined",void 0),Un([r({type:Boolean})],zn.prototype,"disabled",void 0),Un([r({type:Boolean})],zn.prototype,"error",void 0),Un([r({type:Number,reflect:!0})],zn.prototype,"height",void 0),Un([l("textarea")],zn.prototype,"textarea",void 0),Un([s()],zn.prototype,"focused",void 0),f("ft-text-area")(zn);
1156
1167
  /**
1157
1168
  * @license
1158
1169
  * Copyright 2020 Google LLC
1159
1170
  * SPDX-License-Identifier: BSD-3-Clause
1160
1171
  */
1161
- const{I:An}=ut,Un=()=>document.createComment(""),zn=(t,e,i)=>{var o;const n=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=n.insertBefore(Un(),r),o=n.insertBefore(Un(),r);i=new An(e,o,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,r),t=e}}}return i},Fn=(t,e,i=t)=>(t._$AI(e,i),t),Dn={},Pn=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Bn=(t,e,i)=>{const o=new Map;for(let n=e;n<=i;n++)o.set(t[n],n);return o},Ln=Ko(class extends Zo{constructor(t){if(super(t),t.type!==Ho)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const n=[],r=[];let s=0;for(const e of t)n[s]=o?o(e,s):s,r[s]=i(e,s),s++;return{values:r,keys:n}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var n;const r=(t=>t._$AH)(t),{values:s,keys:a}=this.ht(e,i,o);if(!Array.isArray(r))return this.ut=a,s;const l=null!==(n=this.ut)&&void 0!==n?n:this.ut=[],c=[];let h,d,f=0,u=r.length-1,p=0,v=s.length-1;for(;f<=u&&p<=v;)if(null===r[f])f++;else if(null===r[u])u--;else if(l[f]===a[p])c[p]=Fn(r[f],s[p]),f++,p++;else if(l[u]===a[v])c[v]=Fn(r[u],s[v]),u--,v--;else if(l[f]===a[v])c[v]=Fn(r[f],s[v]),zn(t,c[v+1],r[f]),f++,v--;else if(l[u]===a[p])c[p]=Fn(r[u],s[p]),zn(t,r[f],r[u]),u--,p++;else if(void 0===h&&(h=Bn(a,p,v),d=Bn(l,f,u)),h.has(l[f]))if(h.has(l[u])){const e=d.get(a[p]),i=void 0!==e?r[e]:null;if(null===i){const e=zn(t,r[f]);Fn(e,s[p]),c[p]=e}else c[p]=Fn(i,s[p]),zn(t,r[f],i),r[e]=null;p++}else Pn(r[u]),u--;else Pn(r[f]),f++;for(;p<=v;){const e=zn(t,c[v+1]);Fn(e,s[p]),c[p++]=e}for(;f<=u;){const t=r[f++];null!==t&&Pn(t)}return this.ut=a,((t,e=Dn)=>{t._$AH=e})(t,c),Y}});
1172
+ const{I:Fn}=ut,Pn=()=>document.createComment(""),Dn=(t,e,i)=>{var o;const n=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=n.insertBefore(Pn(),r),o=n.insertBefore(Pn(),r);i=new Fn(e,o,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,r),t=e}}}return i},Bn=(t,e,i=t)=>(t._$AI(e,i),t),Ln={},Wn=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Hn=(t,e,i)=>{const o=new Map;for(let n=e;n<=i;n++)o.set(t[n],n);return o},Kn=Go(class extends Jo{constructor(t){if(super(t),t.type!==Vo)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const n=[],r=[];let s=0;for(const e of t)n[s]=o?o(e,s):s,r[s]=i(e,s),s++;return{values:r,keys:n}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var n;const r=(t=>t._$AH)(t),{values:s,keys:a}=this.ht(e,i,o);if(!Array.isArray(r))return this.ut=a,s;const l=null!==(n=this.ut)&&void 0!==n?n:this.ut=[],c=[];let h,d,f=0,u=r.length-1,p=0,v=s.length-1;for(;f<=u&&p<=v;)if(null===r[f])f++;else if(null===r[u])u--;else if(l[f]===a[p])c[p]=Bn(r[f],s[p]),f++,p++;else if(l[u]===a[v])c[v]=Bn(r[u],s[v]),u--,v--;else if(l[f]===a[v])c[v]=Bn(r[f],s[v]),Dn(t,c[v+1],r[f]),f++,v--;else if(l[u]===a[p])c[p]=Bn(r[u],s[p]),Dn(t,r[f],r[u]),u--,p++;else if(void 0===h&&(h=Hn(a,p,v),d=Hn(l,f,u)),h.has(l[f]))if(h.has(l[u])){const e=d.get(a[p]),i=void 0!==e?r[e]:null;if(null===i){const e=Dn(t,r[f]);Bn(e,s[p]),c[p]=e}else c[p]=Bn(i,s[p]),Dn(t,r[f],i),r[e]=null;p++}else Wn(r[u]),u--;else Wn(r[f]),f++;for(;p<=v;){const e=Dn(t,c[v+1]);Bn(e,s[p]),c[p++]=e}for(;f<=u;){const t=r[f++];null!==t&&Wn(t)}return this.ut=a,((t,e=Ln)=>{t._$AH=e})(t,c),Y}});
1162
1173
  /**
1163
1174
  * @license
1164
1175
  * Copyright 2017 Google LLC
1165
1176
  * SPDX-License-Identifier: BSD-3-Clause
1166
- */class Wn extends St{render(){return X`
1177
+ */class Zn extends St{render(){return X`
1167
1178
  <div class="ft-loader">
1168
1179
  <div></div>
1169
1180
  <div></div>
1170
1181
  <div></div>
1171
1182
  <div></div>
1172
1183
  </div>
1173
- `}}Wn.styles=ko,f("ft-loader")(Wn);var Hn=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Kn extends St{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Xo.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(X`
1184
+ `}}Zn.styles=ko,f("ft-loader")(Zn);var Vn=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Gn extends St{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=tn.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0};return this.addTooltipIfNeeded(X`
1174
1185
  <button part="button"
1175
- class="${hn(t)}"
1186
+ class="${un(t)}"
1176
1187
  aria-label="${this.getLabel()}"
1177
1188
  ?disabled=${this.isDisabled()}>
1178
1189
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
@@ -1193,13 +1204,13 @@ const{I:An}=ut,Un=()=>document.createComment(""),zn=(t,e,i)=>{var o;const n=t._$
1193
1204
  </ft-tooltip>
1194
1205
  `:t}resolveIcon(){return this.loading?X`
1195
1206
  <ft-loader part="loader icon"></ft-loader> `:this.icon?X`
1196
- <ft-icon part="icon" variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:Q}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Kn.elementDefinitions={"ft-ripple":fn,"ft-tooltip":cn,"ft-typography":Lo,"ft-icon":Qo,"ft-loader":Wn},Kn.styles=[_t,No],Hn([r({type:String,reflect:!0})],Kn.prototype,"role",void 0),Hn([r({type:Boolean})],Kn.prototype,"primary",void 0),Hn([r({type:Boolean})],Kn.prototype,"outlined",void 0),Hn([r({type:Boolean})],Kn.prototype,"disabled",void 0),Hn([r({type:Boolean})],Kn.prototype,"dense",void 0),Hn([r({type:Boolean})],Kn.prototype,"round",void 0),Hn([r({type:String})],Kn.prototype,"label",void 0),Hn([r({type:String})],Kn.prototype,"icon",void 0),Hn([r({type:String})],Kn.prototype,"iconVariant",void 0),Hn([r({type:Boolean})],Kn.prototype,"trailingIcon",void 0),Hn([r({type:Boolean})],Kn.prototype,"loading",void 0),Hn([r({type:String})],Kn.prototype,"tooltipPosition",void 0),Hn([r({type:Boolean})],Kn.prototype,"hideTooltip",void 0),Hn([r({type:Boolean})],Kn.prototype,"forceTooltip",void 0),Hn([l(".ft-button")],Kn.prototype,"button",void 0),Hn([l(".ft-button--label slot")],Kn.prototype,"slottedContent",void 0),f("ft-button")(Kn);const Zn=m`
1197
- `,Vn=m`
1198
- `,Gn=ci.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Jn{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=Gn.getState(),o=null!=t?t:i;if(e&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,o,!0)}static get(t){var e;return null!=t?Jn.build(t):null!==(e=Jn.API)&&void 0!==e?e:Jn.API=Jn.build()}static await(t){return new Promise((e=>{let i=Jn.get(t);if(i)e(i);else{const o=Gn.subscribe((()=>{i=Jn.get(t),i&&(o(),e(i))}))}}))}}var qn;const Xn=Symbol("clearAfterUnitTest");class Yn{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i,this.listeners={},this.currentUiLocale="",this[qn]=()=>{this.defaultMessages={},this.cache=new i,this.listeners={}},this.currentUiLocale=Gn.getState().uiLocale,Gn.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Gn.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const o={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};d(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var o,n,r;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(n=null===(o=this.cache.getNow(t))||void 0===o?void 0:o.messages)&&void 0!==n?n:{};return new Ct(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}qn=Xn,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Yn((async(t,e)=>(await Jn.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Yn((async(t,e)=>(await Jn.await()).getCustomMessageContext(t,e))));const Qn=window.FluidTopicsI18nService,tr=window.FluidTopicsCustomI18nService;var er=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ir extends St{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Jn.get(),this.cache=new i,this.cleanSessionDebouncer=new o}render(){return X`
1207
+ <ft-icon part="icon" variant="${this.iconVariant}" value="${this.icon}"></ft-icon> `:Q}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Gn.elementDefinitions={"ft-ripple":vn,"ft-tooltip":fn,"ft-typography":Ko,"ft-icon":on,"ft-loader":Zn},Gn.styles=[_t,To],Vn([r({type:String,reflect:!0})],Gn.prototype,"role",void 0),Vn([r({type:Boolean})],Gn.prototype,"primary",void 0),Vn([r({type:Boolean})],Gn.prototype,"outlined",void 0),Vn([r({type:Boolean})],Gn.prototype,"disabled",void 0),Vn([r({type:Boolean})],Gn.prototype,"dense",void 0),Vn([r({type:Boolean})],Gn.prototype,"round",void 0),Vn([r({type:String})],Gn.prototype,"label",void 0),Vn([r({type:String})],Gn.prototype,"icon",void 0),Vn([r({type:String})],Gn.prototype,"iconVariant",void 0),Vn([r({type:Boolean})],Gn.prototype,"trailingIcon",void 0),Vn([r({type:Boolean})],Gn.prototype,"loading",void 0),Vn([r({type:String})],Gn.prototype,"tooltipPosition",void 0),Vn([r({type:Boolean})],Gn.prototype,"hideTooltip",void 0),Vn([r({type:Boolean})],Gn.prototype,"forceTooltip",void 0),Vn([l(".ft-button")],Gn.prototype,"button",void 0),Vn([l(".ft-button--label slot")],Gn.prototype,"slottedContent",void 0),f("ft-button")(Gn);const Jn=m`
1208
+ `,qn=m`
1209
+ `,Xn=ci.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Yn{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=Xn.getState(),o=null!=t?t:i;if(e&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,o,!0)}static get(t){var e;return null!=t?Yn.build(t):null!==(e=Yn.API)&&void 0!==e?e:Yn.API=Yn.build()}static await(t){return new Promise((e=>{let i=Yn.get(t);if(i)e(i);else{const o=Xn.subscribe((()=>{i=Yn.get(t),i&&(o(),e(i))}))}}))}}var Qn;const tr=Symbol("clearAfterUnitTest");class er{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i,this.listeners={},this.currentUiLocale="",this[Qn]=()=>{this.defaultMessages={},this.cache=new i,this.listeners={}},this.currentUiLocale=Xn.getState().uiLocale,Xn.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Xn.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const o={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};d(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var o,n,r;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(n=null===(o=this.cache.getNow(t))||void 0===o?void 0:o.messages)&&void 0!==n?n:{};return new Ct(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var i;return t=t.toLowerCase(),this.listeners[t]=null!==(i=this.listeners[t])&&void 0!==i?i:new Set,this.listeners[t].add(e),()=>{var i;return null===(i=this.listeners[t])||void 0===i?void 0:i.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>{return(e=0,new Promise((t=>setTimeout(t,e)))).then((()=>t())).catch((()=>null));var e})))}}Qn=tr,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new er((async(t,e)=>(await Yn.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new er((async(t,e)=>(await Yn.await()).getCustomMessageContext(t,e))));const ir=window.FluidTopicsI18nService,or=window.FluidTopicsCustomI18nService;var nr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class rr extends St{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Yn.get(),this.cache=new i,this.cleanSessionDebouncer=new o}render(){return X`
1199
1210
  <slot></slot>
1200
- `}updated(t){super.updated(t),t.has("baseUrl")&&Gn.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Gn.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Gn.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Gn.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Gn.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Gn.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Gn.actions.setSession(this.session),t.has("availableUiLocales")&&Gn.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Qn.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}ir.elementDefinitions={},ir.styles=Vn,er([r()],ir.prototype,"baseUrl",void 0),er([r()],ir.prototype,"apiIntegrationIdentifier",void 0),er([r()],ir.prototype,"uiLocale",void 0),er([u([])],ir.prototype,"availableUiLocales",void 0),er([r({type:Boolean})],ir.prototype,"editorMode",void 0),er([r({type:Boolean})],ir.prototype,"noCustom",void 0),er([r({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],ir.prototype,"noCustomComponent",void 0),er([r({type:Boolean})],ir.prototype,"withManualResources",void 0),er([u([])],ir.prototype,"messageContexts",void 0),er([u(void 0)],ir.prototype,"session",void 0),er([r({type:Object})],ir.prototype,"apiProvider",void 0),f("ft-app-context")(ir);var or=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const nr=Symbol("i18nProperties"),rr=Symbol("i18nUnsubs");function sr(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?tr:Qn}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const n=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...n)}onI18nUpdate(t){var e;null===(e=this[nr])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var e;super.updated(t),null===(e=this[nr])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[nr]&&new Set([...this[nr].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[rr].has(t)||this[rr].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[rr].forEach((t=>t())),this[rr].clear()}}return e=rr,or([r({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class ar extends(sr(St)){}class lr extends(sr(ai)){}var cr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class hr extends lr{constructor(){super(),this.editorMode=!1,this.addStore(Gn)}render(){return this.key&&this.context?X`
1211
+ `}updated(t){super.updated(t),t.has("baseUrl")&&Xn.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Xn.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Xn.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Xn.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Xn.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Xn.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Xn.actions.setSession(this.session),t.has("availableUiLocales")&&Xn.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>ir.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}rr.elementDefinitions={},rr.styles=qn,nr([r()],rr.prototype,"baseUrl",void 0),nr([r()],rr.prototype,"apiIntegrationIdentifier",void 0),nr([r()],rr.prototype,"uiLocale",void 0),nr([u([])],rr.prototype,"availableUiLocales",void 0),nr([r({type:Boolean})],rr.prototype,"editorMode",void 0),nr([r({type:Boolean})],rr.prototype,"noCustom",void 0),nr([r({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],rr.prototype,"noCustomComponent",void 0),nr([r({type:Boolean})],rr.prototype,"withManualResources",void 0),nr([u([])],rr.prototype,"messageContexts",void 0),nr([u(void 0)],rr.prototype,"session",void 0),nr([r({type:Object})],rr.prototype,"apiProvider",void 0),f("ft-app-context")(rr);var sr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const ar=Symbol("i18nProperties"),lr=Symbol("i18nUnsubs");function cr(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?or:ir}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const n=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...n)}onI18nUpdate(t){var e;null===(e=this[ar])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var e;super.updated(t),null===(e=this[ar])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ar]&&new Set([...this[ar].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[lr].has(t)||this[lr].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[lr].forEach((t=>t())),this[lr].clear()}}return e=lr,sr([r({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class hr extends(cr(St)){}class dr extends(cr(ai)){}var fr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class ur extends dr{constructor(){super(),this.editorMode=!1,this.addStore(Xn)}render(){return this.key&&this.context?X`
1201
1212
  <span class="ft-i18n">${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}</span>
1202
- `:this.editorMode?"Select a context and a label key.":Q}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}hr.elementDefinitions={},hr.styles=Zn,cr([si()],hr.prototype,"editorMode",void 0),cr([r()],hr.prototype,"context",void 0),cr([r()],hr.prototype,"key",void 0),cr([u([])],hr.prototype,"args",void 0),cr([r()],hr.prototype,"defaultMessage",void 0);class dr{constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Qn.resolveMessage(this.name,e,...t)})}static build(t){return new dr(t)}static fromGwt(t){return new dr(t)}}const fr=t=>(e,i)=>{var o,n;e.constructor.createProperty(i,{attribute:!1,type:String});const r={...t,key:null!==(o=t.key)&&void 0!==o?o:i};e[nr]=null!==(n=e[nr])&&void 0!==n?n:new Map,e[nr].set(i,r)};f("ft-i18n")(hr);const ur=dr.build("integratedFeedbackComponent"),pr={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},vr=dr.build("inDesignerFeedbackComponent"),br={ratingNotConfigured:"Rating unavailable: no rating configured for this content.",missingRatingRole:"Rating unavailable: missing role RATING_USER.",missingFeedbackRole:"Feedback unavailable: missing role FEEDBACK_USER.",inDesignerOnlyNotice:"This notice will not appear outside this designer.",feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var yr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class gr extends ar{constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.feedbackMessage="",this.iconVariant=Xo.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(ur,pr),this.addI18nContext(vr,br)}get canAccessFeedback(){return this.user&&this.user.roles.includes("FEEDBACK_USER")}get canAccessRating(){return this.userHasRatingRole&&"NO_RATING"!==this.configuredRatingType}get userHasRatingRole(){return this.user&&this.user.roles.includes("RATING_USER")}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==i?i:"NO_RATING"}get ratingValue(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==i?i:-1}get ratingDate(){var t,e;const i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.date;return"string"==typeof i?((o=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(o=o.replace(/-/g,"/")),o=o.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,o)=>e+i+":"+o)),new Date(o)):i;var o}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?X`
1213
+ `:this.editorMode?"Select a context and a label key.":Q}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}ur.elementDefinitions={},ur.styles=Jn,fr([si()],ur.prototype,"editorMode",void 0),fr([r()],ur.prototype,"context",void 0),fr([r()],ur.prototype,"key",void 0),fr([u([])],ur.prototype,"args",void 0),fr([r()],ur.prototype,"defaultMessage",void 0);class pr{constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const i=e;return t=>({context:this.name,key:i,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>ir.resolveMessage(this.name,e,...t)})}static build(t){return new pr(t)}static fromGwt(t){return new pr(t)}}const vr=t=>(e,i)=>{var o,n;e.constructor.createProperty(i,{attribute:!1,type:String});const r={...t,key:null!==(o=t.key)&&void 0!==o?o:i};e[ar]=null!==(n=e[ar])&&void 0!==n?n:new Map,e[ar].set(i,r)};f("ft-i18n")(ur);const br=pr.build("integratedFeedbackComponent"),yr={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",okButton:"Send feedback",cancelButton:"Cancel",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"},gr=pr.build("inDesignerFeedbackComponent"),xr={ratingNotConfigured:"Rating unavailable: no rating configured for this content.",missingRatingRole:"Rating unavailable: missing role RATING_USER.",missingFeedbackRole:"Feedback unavailable: missing role FEEDBACK_USER.",inDesignerOnlyNotice:"This notice will not appear outside this designer.",feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var mr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class wr extends hr{constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.feedbackMessage="",this.iconVariant=tn.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(br,yr),this.addI18nContext(gr,xr)}get canAccessFeedback(){return this.user&&this.user.roles.includes("FEEDBACK_USER")}get canAccessRating(){return this.userHasRatingRole&&"NO_RATING"!==this.configuredRatingType}get userHasRatingRole(){return this.user&&this.user.roles.includes("RATING_USER")}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==i?i:"NO_RATING"}get ratingValue(){var t,e,i;return null!==(i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==i?i:-1}get ratingDate(){var t,e;const i=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.date;return"string"==typeof i?((o=i).match(/^\d{4}-\d{2}-\d{2}$/)&&(o=o.replace(/-/g,"/")),o=o.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,i,o)=>e+i+":"+o)),new Date(o)):i;var o}render(){return this.editorMode||this.canAccessFeedback||this.canAccessRating?X`
1203
1214
  <div class="ft-reader-feedback">
1204
1215
  ${this.hideTitle?Q:X`
1205
1216
  <ft-typography variant="title" part="main-title">
@@ -1219,11 +1230,11 @@ const{I:An}=ut,Un=()=>document.createComment(""),zn=(t,e,i)=>{var o;const n=t._$
1219
1230
  ${this.renderRatingDate()}
1220
1231
  </ft-typography>
1221
1232
  </div>
1222
- `:this.placeholderInEditor(this.userHasRatingRole?vr.messages.ratingNotConfigured():vr.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return ur.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return ur.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?ur.messages.ratedToday():ur.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return X`
1233
+ `:this.placeholderInEditor(this.userHasRatingRole?gr.messages.ratingNotConfigured():gr.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return br.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return br.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?br.messages.ratedToday():br.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return X`
1223
1234
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1224
- ${Ln(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const o=e+1;return X`
1235
+ ${Kn(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const o=e+1;return X`
1225
1236
  <ft-button round part="rating-stars-${o}"
1226
- label="${ur.messages.starsRating(o)}"
1237
+ label="${br.messages.starsRating(o)}"
1227
1238
  tooltipPosition="top"
1228
1239
  .iconVariant=${this.iconVariant}
1229
1240
  icon="${i?this.filledStarIcon:this.emptyStarIcon}"
@@ -1238,13 +1249,13 @@ const{I:An}=ut,Un=()=>document.createComment(""),zn=(t,e,i)=>{var o;const n=t._$
1238
1249
  ?selected=${e}
1239
1250
  .iconVariant=${this.iconVariant}
1240
1251
  icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
1241
- ${ur.messages.like()}
1252
+ ${br.messages.like()}
1242
1253
  </ft-switch-option>
1243
1254
  <ft-switch-option .value=${0}
1244
1255
  ?selected=${t}
1245
1256
  .iconVariant=${this.iconVariant}
1246
1257
  icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
1247
- ${ur.messages.dislike()}
1258
+ ${br.messages.dislike()}
1248
1259
  </ft-switch-option>
1249
1260
  </ft-switch>
1250
1261
  `;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,o="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return X`
@@ -1252,11 +1263,11 @@ const{I:An}=ut,Un=()=>document.createComment(""),zn=(t,e,i)=>{var o;const n=t._$
1252
1263
  part="rating rating-dichotomous">
1253
1264
  <ft-switch-option .value=${1}
1254
1265
  ?selected=${o}>
1255
- ${ur.messages.dichotomousYes()}
1266
+ ${br.messages.dichotomousYes()}
1256
1267
  </ft-switch-option>
1257
1268
  <ft-switch-option .value=${0}
1258
1269
  ?selected=${i}>
1259
- ${ur.messages.dichotomousNo()}
1270
+ ${br.messages.dichotomousNo()}
1260
1271
  </ft-switch-option>
1261
1272
  </ft-switch>
1262
1273
  `}return Q}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){if(this.canAccessFeedback){const t=this.feedbackMailLinkBuilder(this.feedbackMessage);let e=X`
@@ -1265,7 +1276,7 @@ const{I:An}=ut,Un=()=>document.createComment(""),zn=(t,e,i)=>{var o;const n=t._$
1265
1276
  ?disabled=${!this.feedbackMessage}
1266
1277
  @click=${()=>t?this.clearFeedbackInput():this.sendFeedback()}
1267
1278
  part="send-feedback">
1268
- ${ur.messages.okButton()}
1279
+ ${br.messages.okButton()}
1269
1280
  </ft-button>
1270
1281
  `;return t&&(e=X`
1271
1282
  <a class="ft-reader-feedback--feedback-link" href="${t}">
@@ -1278,20 +1289,20 @@ const{I:An}=ut,Un=()=>document.createComment(""),zn=(t,e,i)=>{var o;const n=t._$
1278
1289
  </ft-typography>
1279
1290
  <ft-text-area outlined
1280
1291
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1281
- label="${ur.messages.feedbackInputLabel()}"
1292
+ label="${br.messages.feedbackInputLabel()}"
1282
1293
  @live-change=${t=>this.feedbackMessage=t.detail.trim()}
1283
1294
  ></ft-text-area>
1284
1295
  ${e}
1285
1296
  </div>
1286
- `}return this.placeholderInEditor(vr.messages.missingFeedbackRole())}sendFeedback(){this.dispatchEvent(new CustomEvent("send-feedback",{detail:this.feedbackInput.value}))}placeholderInEditor(t){return this.editorMode?X`
1297
+ `}return this.placeholderInEditor(gr.messages.missingFeedbackRole())}sendFeedback(){this.dispatchEvent(new CustomEvent("send-feedback",{detail:this.feedbackInput.value}))}placeholderInEditor(t){return this.editorMode?X`
1287
1298
  <div class="ft-reader-feedback--placeholder">
1288
1299
  <ft-typography variant="caption">${t}</ft-typography>
1289
1300
  <ft-tooltip position="left"
1290
- text="${vr.messages.inDesignerOnlyNotice()}">
1301
+ text="${gr.messages.inDesignerOnlyNotice()}">
1291
1302
  <ft-icon>INFO</ft-icon>
1292
1303
  </ft-tooltip>
1293
1304
  </div>
1294
- `:Q}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}gr.elementDefinitions={"ft-button":Kn,"ft-typography":Lo,"ft-icon":Qo,"ft-tooltip":cn,"ft-switch":mn,"ft-switch-option":yn,"ft-text-area":Tn},gr.styles=To,yr([r({type:Boolean})],gr.prototype,"editorMode",void 0),yr([r({type:Boolean})],gr.prototype,"hideTitle",void 0),yr([r({type:Boolean})],gr.prototype,"ratingAllowed",void 0),yr([r({attribute:!1})],gr.prototype,"i18nProperties",void 0),yr([r({attribute:!1})],gr.prototype,"ratingSummary",void 0),yr([r({attribute:!1})],gr.prototype,"user",void 0),yr([l(".ft-reader-feedback--feedback-input")],gr.prototype,"feedbackInput",void 0),yr([s()],gr.prototype,"feedbackMessage",void 0),yr([r()],gr.prototype,"iconVariant",void 0),yr([r()],gr.prototype,"emptyStarIcon",void 0),yr([r()],gr.prototype,"filledStarIcon",void 0),yr([r()],gr.prototype,"emptyLikeIcon",void 0),yr([r()],gr.prototype,"filledLikeIcon",void 0),yr([r()],gr.prototype,"emptyDislikeIcon",void 0),yr([r()],gr.prototype,"filledDislikeIcon",void 0),yr([r()],gr.prototype,"feedbackMailLinkBuilder",void 0);const xr=dr.fromGwt("server");class mr{constructor(){this.subject="",this.url="",this.allMetadata="",this.subjectMetadata="",this.isAuthenticated=!1}update(t,e,i,o,n){this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=n,this.subjectMetadata=o.subjectMetadataIds.map((t=>i.find((e=>e.key===t)))).filter((t=>null!=t)).map((t=>"["+t.values.join(", ")+"]")).join(""),this.allMetadata=i.filter((t=>!t.key.startsWith("ft:"))).map((t=>"["+t.values.join(", ")+"]")).join(" ")}build(t){var e,i;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics)))return;const o=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.allMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${xr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(i=this.configuration)||void 0===i?void 0:i.recipients.join(",")}?subject=${o}&body=${n}`}}var wr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class $r extends(sr(bi)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Xo.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new mr,this.i18nProperties={feedbackMainTitle:ur.properties.mapFeedbackMainTitle(),ratingSectionTitle:ur.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:ur.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:ur.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new o(100),this.sendRatingDebouncer=new o(500),this.addStore(Gn)}render(){return null==this.map?Q:X`
1305
+ `:Q}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}wr.elementDefinitions={"ft-button":Gn,"ft-typography":Ko,"ft-icon":on,"ft-tooltip":fn,"ft-switch":kn,"ft-switch-option":mn,"ft-text-area":zn},wr.styles=zo,mr([r({type:Boolean})],wr.prototype,"editorMode",void 0),mr([r({type:Boolean})],wr.prototype,"hideTitle",void 0),mr([r({type:Boolean})],wr.prototype,"ratingAllowed",void 0),mr([r({attribute:!1})],wr.prototype,"i18nProperties",void 0),mr([r({attribute:!1})],wr.prototype,"ratingSummary",void 0),mr([r({attribute:!1})],wr.prototype,"user",void 0),mr([l(".ft-reader-feedback--feedback-input")],wr.prototype,"feedbackInput",void 0),mr([s()],wr.prototype,"feedbackMessage",void 0),mr([r()],wr.prototype,"iconVariant",void 0),mr([r()],wr.prototype,"emptyStarIcon",void 0),mr([r()],wr.prototype,"filledStarIcon",void 0),mr([r()],wr.prototype,"emptyLikeIcon",void 0),mr([r()],wr.prototype,"filledLikeIcon",void 0),mr([r()],wr.prototype,"emptyDislikeIcon",void 0),mr([r()],wr.prototype,"filledDislikeIcon",void 0),mr([r()],wr.prototype,"feedbackMailLinkBuilder",void 0);const $r=pr.fromGwt("server");class kr{constructor(){this.subject="",this.url="",this.allMetadata="",this.subjectMetadata="",this.isAuthenticated=!1}update(t,e,i,o,n){this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=n,this.subjectMetadata=o.subjectMetadataIds.map((t=>i.find((e=>e.key===t)))).filter((t=>null!=t)).map((t=>"["+t.values.join(", ")+"]")).join(""),this.allMetadata=i.filter((t=>!t.key.startsWith("ft:"))).map((t=>"["+t.values.join(", ")+"]")).join(" ")}build(t){var e,i;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics)))return;const o=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.allMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${$r.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(i=this.configuration)||void 0===i?void 0:i.recipients.join(",")}?subject=${o}&body=${n}`}}var Sr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Or extends(cr(bi)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=tn.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new kr,this.i18nProperties={feedbackMainTitle:br.properties.mapFeedbackMainTitle(),ratingSectionTitle:br.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:br.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:br.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new o(100),this.sendRatingDebouncer=new o(500),this.addStore(Xn)}render(){return null==this.map?Q:X`
1295
1306
  <ft-reader-feedback
1296
1307
  ratingAllowed
1297
1308
  .i18nProperties=${this.i18nProperties}
@@ -1310,7 +1321,7 @@ const{I:An}=ut,Un=()=>document.createComment(""),zn=(t,e,i)=>{var o;const n=t._$
1310
1321
  @rate=${this.rate}
1311
1322
  @send-feedback=${this.sendFeedback}
1312
1323
  ></ft-reader-feedback>
1313
- `}updated(t){var e,i,o;super.updated(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new $t({type:"error",message:ur.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new $t({type:"info",message:vr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new $t({type:"info",message:vr.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail)),this.dispatchEvent(new $t({type:"info",message:ur.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new $t({type:"error",message:ur.messages.feedbackFailure()}))}}}$r.elementDefinitions={"ft-reader-feedback":gr},wr([si({store:Gn.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],$r.prototype,"user",void 0),wr([si({store:"reader"})],$r.prototype,"map",void 0),wr([si({store:Gn.name})],$r.prototype,"editorMode",void 0),wr([si({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],$r.prototype,"configuration",void 0),wr([s()],$r.prototype,"ratingSummary",void 0),wr([r({type:Boolean})],$r.prototype,"hideTitle",void 0),wr([r()],$r.prototype,"iconVariant",void 0),wr([r()],$r.prototype,"emptyStarIcon",void 0),wr([r()],$r.prototype,"filledStarIcon",void 0),wr([r()],$r.prototype,"emptyLikeIcon",void 0),wr([r()],$r.prototype,"filledLikeIcon",void 0),wr([r()],$r.prototype,"emptyDislikeIcon",void 0),wr([r()],$r.prototype,"filledDislikeIcon",void 0),wr([l("ft-reader-feedback")],$r.prototype,"readerFeedback",void 0),wr([fr(xr.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],$r.prototype,"mailSubject",void 0);var kr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Sr extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class Or extends(function(t){class e extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.registerIntervalTopic=0}connectedCallback(){super.connectedCallback(),this.registerIntervalTopic=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this.registerIntervalTopic):this.dispatchEvent(new Sr)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return kr([s()],e.prototype,"tocNode",void 0),kr([s()],e.prototype,"disableContextInteractions",void 0),e}(bi)){}var _r=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Cr extends(sr(Or)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Xo.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new mr,this.i18nProperties={feedbackMainTitle:ur.properties.topicFeedbackMainTitle(),ratingSectionTitle:ur.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:ur.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:ur.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new o(100),this.sendRatingDebouncer=new o(500),this.addStore(Gn)}render(){return null==this.map||null==this.tocNode?Q:X`
1324
+ `}updated(t){var e,i,o;super.updated(t),t.has("map")&&this.map&&this.updateData(),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getMapRating()))}))}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new $t({type:"error",message:br.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new $t({type:"info",message:gr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new $t({type:"info",message:gr.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail)),this.dispatchEvent(new $t({type:"info",message:br.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new $t({type:"error",message:br.messages.feedbackFailure()}))}}}Or.elementDefinitions={"ft-reader-feedback":wr},Sr([si({store:Xn.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Or.prototype,"user",void 0),Sr([si({store:"reader"})],Or.prototype,"map",void 0),Sr([si({store:Xn.name})],Or.prototype,"editorMode",void 0),Sr([si({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Or.prototype,"configuration",void 0),Sr([s()],Or.prototype,"ratingSummary",void 0),Sr([r({type:Boolean})],Or.prototype,"hideTitle",void 0),Sr([r()],Or.prototype,"iconVariant",void 0),Sr([r()],Or.prototype,"emptyStarIcon",void 0),Sr([r()],Or.prototype,"filledStarIcon",void 0),Sr([r()],Or.prototype,"emptyLikeIcon",void 0),Sr([r()],Or.prototype,"filledLikeIcon",void 0),Sr([r()],Or.prototype,"emptyDislikeIcon",void 0),Sr([r()],Or.prototype,"filledDislikeIcon",void 0),Sr([l("ft-reader-feedback")],Or.prototype,"readerFeedback",void 0),Sr([vr($r.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],Or.prototype,"mailSubject",void 0);var _r=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Cr extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}class Er extends(function(t){class e extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this.registerIntervalTopic=0}connectedCallback(){super.connectedCallback(),this.registerIntervalTopic=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this.registerIntervalTopic):this.dispatchEvent(new Cr)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return _r([s()],e.prototype,"tocNode",void 0),_r([s()],e.prototype,"disableContextInteractions",void 0),e}(bi)){}var jr=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class Rr extends(cr(Er)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=tn.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new kr,this.i18nProperties={feedbackMainTitle:br.properties.topicFeedbackMainTitle(),ratingSectionTitle:br.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:br.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:br.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new o(100),this.sendRatingDebouncer=new o(500),this.addStore(Xn)}render(){return null==this.map||null==this.tocNode?Q:X`
1314
1325
  <ft-reader-feedback
1315
1326
  .i18nProperties=${this.i18nProperties}
1316
1327
  ?ratingAllowed=${this.tocNode.hasRating}
@@ -1329,4 +1340,4 @@ const{I:An}=ut,Un=()=>document.createComment(""),zn=(t,e,i)=>{var o;const n=t._$
1329
1340
  @rate=${this.rate}
1330
1341
  @send-feedback=${this.sendFeedback}
1331
1342
  ></ft-reader-feedback>
1332
- `}updated(t){var e,i,o;super.updated(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new $t({type:"error",message:ur.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new $t({type:"info",message:vr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await(null===(e=this.service)||void 0===e?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail)),this.dispatchEvent(new $t({type:"info",message:ur.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new $t({type:"info",message:vr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new $t({type:"error",message:ur.messages.feedbackFailure()}))}}}Cr.elementDefinitions={"ft-reader-feedback":gr},_r([si({store:Gn.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Cr.prototype,"user",void 0),_r([si({store:"reader"})],Cr.prototype,"map",void 0),_r([si({store:Gn.name})],Cr.prototype,"editorMode",void 0),_r([si({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Cr.prototype,"configuration",void 0),_r([s()],Cr.prototype,"ratingSummary",void 0),_r([r({type:Boolean})],Cr.prototype,"hideTitle",void 0),_r([r()],Cr.prototype,"iconVariant",void 0),_r([r()],Cr.prototype,"emptyStarIcon",void 0),_r([r()],Cr.prototype,"filledStarIcon",void 0),_r([r()],Cr.prototype,"emptyLikeIcon",void 0),_r([r()],Cr.prototype,"filledLikeIcon",void 0),_r([r()],Cr.prototype,"emptyDislikeIcon",void 0),_r([r()],Cr.prototype,"filledDislikeIcon",void 0),_r([l("ft-reader-feedback")],Cr.prototype,"readerFeedback",void 0),_r([fr(xr.properties["mail.feedback.subject"]((t=>{var e,i;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(i=t.map)||void 0===i?void 0:i.title]})))],Cr.prototype,"mailSubject",void 0),f("ft-reader-map-feedback")($r),f("ft-reader-topic-feedback")(Cr),t.FtReaderFeedbackCssVariables=Io,t.FtReaderMapFeedback=$r,t.FtReaderTopicFeedback=Cr,t.styles=To,Object.defineProperty(t,"W",{value:!0})}({});
1343
+ `}updated(t){var e,i,o;super.updated(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(i=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==i?i:"",this.map.metadata,this.configuration,null!=(null===(o=this.user)||void 0===o?void 0:o.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(t=this.user)||void 0===t?void 0:t.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(e=this.service)||void 0===e?void 0:e.getTopicRating(this.tocNode.tocId)))}))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var e,i,o;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(e=this.service)||void 0===e?void 0:e.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(o=this.ratingSummary)||void 0===o?void 0:o.type,t))}catch{this.dispatchEvent(new $t({type:"error",message:br.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new $t({type:"info",message:gr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{!this.editorMode&&this.tocNode?(await(null===(e=this.service)||void 0===e?void 0:e.sendTopicFeedback(this.tocNode.tocId,t.detail)),this.dispatchEvent(new $t({type:"info",message:br.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new $t({type:"info",message:gr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new $t({type:"error",message:br.messages.feedbackFailure()}))}}}Rr.elementDefinitions={"ft-reader-feedback":wr},jr([si({store:Xn.name,selector:t=>{var e;return null===(e=t.session)||void 0===e?void 0:e.profile}})],Rr.prototype,"user",void 0),jr([si({store:"reader"})],Rr.prototype,"map",void 0),jr([si({store:Xn.name})],Rr.prototype,"editorMode",void 0),jr([si({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Rr.prototype,"configuration",void 0),jr([s()],Rr.prototype,"ratingSummary",void 0),jr([r({type:Boolean})],Rr.prototype,"hideTitle",void 0),jr([r()],Rr.prototype,"iconVariant",void 0),jr([r()],Rr.prototype,"emptyStarIcon",void 0),jr([r()],Rr.prototype,"filledStarIcon",void 0),jr([r()],Rr.prototype,"emptyLikeIcon",void 0),jr([r()],Rr.prototype,"filledLikeIcon",void 0),jr([r()],Rr.prototype,"emptyDislikeIcon",void 0),jr([r()],Rr.prototype,"filledDislikeIcon",void 0),jr([l("ft-reader-feedback")],Rr.prototype,"readerFeedback",void 0),jr([vr($r.properties["mail.feedback.subject"]((t=>{var e,i;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(i=t.map)||void 0===i?void 0:i.title]})))],Rr.prototype,"mailSubject",void 0),f("ft-reader-map-feedback")(Or),f("ft-reader-topic-feedback")(Rr),t.FtReaderFeedbackCssVariables=Uo,t.FtReaderMapFeedback=Or,t.FtReaderTopicFeedback=Rr,t.styles=zo,Object.defineProperty(t,"W",{value:!0})}({});