@fluid-topics/ft-reader-feedback 1.0.63 → 1.1.1

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.
@@ -1,72 +1,93 @@
1
1
  !function(t){
2
2
  /**
3
- * @license
4
- * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
5
- * This code may only be used under the BSD style license found at
6
- * http://polymer.github.io/LICENSE.txt
7
- * The complete set of authors may be found at
8
- * http://polymer.github.io/AUTHORS.txt
9
- * The complete set of contributors may be found at
10
- * http://polymer.github.io/CONTRIBUTORS.txt
11
- * Code distributed by Google as part of the polymer project is also
12
- * subject to an additional IP rights grant found at
13
- * http://polymer.github.io/PATENTS.txt
14
- *
15
- * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
- */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);h(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let f=i.call(o,t);f||(f=d(t),e.call(o,t,f)),this===window.customElements&&(a.set(r,c),c.standInClass=f);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),p(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){b.push(this),o.upgrade.apply(o,arguments),b.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let 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=a.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),r.set(e,i),e},window.HTMLElement.prototype=t.prototype;const c=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!c(e)){const t=b[b.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},d=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=f(i)||window.customElements,r=o._getDefinition(e);return r?p(i,r):n.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.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),r.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)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let b=[document];const g=(t,e,i=void 0)=>{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&&s.set(t,this),b.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const v=(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(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,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!==r.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 n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),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 a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(qr){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,o)=>t((t=>{this.isCanceled?o(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?o(new e("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class o{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class r{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
3
+ * @license
4
+ * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
5
+ * This code may only be used under the BSD style license found at
6
+ * http://polymer.github.io/LICENSE.txt
7
+ * The complete set of authors may be found at
8
+ * http://polymer.github.io/AUTHORS.txt
9
+ * The complete set of contributors may be found at
10
+ * http://polymer.github.io/CONTRIBUTORS.txt
11
+ * Code distributed by Google as part of the polymer project is also
12
+ * subject to an additional IP rights grant found at
13
+ * http://polymer.github.io/PATENTS.txt
14
+ */
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,r=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,r){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(r))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=r.prototype.attributeChangedCallback,l=new Set(r.observedAttributes||[]);d(r,l,s);const c={elementClass:r,connectedCallback:r.prototype.connectedCallback,disconnectedCallback:r.prototype.disconnectedCallback,adoptedCallback:r.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:r.formAssociated,formAssociatedCallback:r.prototype.formAssociatedCallback,formDisabledCallback:r.prototype.formDisabledCallback,formResetCallback:r.prototype.formResetCallback,formStateRestoreCallback:r.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,c),this._definitionsByClass.set(r,c);let h=i.call(o,t);h||(h=f(t),e.call(o,t,h)),this===window.customElements&&(a.set(r,c),c.standInClass=h);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)n.delete(t),p(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(r),this._whenDefinedPromises.delete(t)),r}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let 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=a.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),r.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=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},f=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,r=o._getDefinition(e);return r?p(i,r):n.set(i,o),i}connectedCallback(){const t=r.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=r.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=r.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=r.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=r.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=r.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=r.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,r){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,r),i.call(this,n,t,r)}else o.call(this,n,r)});const r=t.prototype.removeAttribute;r&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);r.call(this,o),i.call(this,o,t,null)}else r.call(this,o)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,o){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);n.call(this,r,o);const e=this.getAttribute(r);i.call(this,r,t,e)}else n.call(this,r,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t?Object.setPrototypeOf(e,window.HTMLElement):u(i)},p=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),r.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.attributeChangedCallback&&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)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,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===r.get(i).formAssociated)return o?.call(this,...e);throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),r=e.get(o)||[];this[+i]=t,r.push(t),e.set(o,r)})),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 a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const i of t){const t=r.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(ya){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,o)=>t((t=>{this.isCanceled?o(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?o(new e("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class o{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class r{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,r=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}r(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
18
16
  /**
19
- * @license
20
- * Copyright 2017 Google LLC
21
- * SPDX-License-Identifier: BSD-3-Clause
22
- */const n=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function a(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):n(t,e)
17
+ * @license
18
+ * Copyright 2019 Google LLC
19
+ * SPDX-License-Identifier: BSD-3-Clause
20
+ */const n=globalThis,a=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),l=new WeakMap;const c=t=>new class{constructor(t,e,i){if(this._$cssResult$=!0,i!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(a&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=l.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&l.set(e,t))}return t}toString(){return this.cssText}}("string"==typeof t?t:t+"",void 0,s),h=a?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return c(e)})(t):t
23
21
  /**
24
- * @license
25
- * Copyright 2017 Google LLC
26
- * SPDX-License-Identifier: BSD-3-Clause
27
- */}function s(t){return a({...t,state:!0})}
22
+ * @license
23
+ * Copyright 2017 Google LLC
24
+ * SPDX-License-Identifier: BSD-3-Clause
25
+ */,{is:f,defineProperty:d,getOwnPropertyDescriptor:u,getOwnPropertyNames:p,getOwnPropertySymbols:y,getPrototypeOf:g}=Object,b=globalThis,v=b.trustedTypes,m=v?v.emptyScript:"",x=b.reactiveElementPolyfillSupport,w=(t,e)=>t,O={toAttribute(t,e){switch(e){case Boolean:t=t?m:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},S=(t,e)=>!f(t,e),$={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:S};Symbol.metadata??=Symbol("metadata"),b.litPropertyMetadata??=new WeakMap;let N=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=$){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&d(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=u(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return o?.call(this)},set(e){const n=o?.call(this);r.call(this,e),this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??$}static _$Ei(){if(this.hasOwnProperty(w("elementProperties")))return;const t=g(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(w("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(w("properties"))){const t=this.properties,e=[...p(t),...y(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(h(t))}else void 0!==t&&e.push(h(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(a)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),o=n.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:O).toAttribute(e,i.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const i=this.constructor,o=i._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=i.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:O;this._$Em=o,this[o]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,i,o=!1,r){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??S)(o?r:this[t],e))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t)!0!==i.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],i)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};N.elementStyles=[],N.shadowRootOptions={mode:"open"},N[w("elementProperties")]=new Map,N[w("finalized")]=new Map,x?.({ReactiveElement:N}),(b.reactiveElementVersions??=[]).push("2.0.2");
28
26
  /**
29
- * @license
30
- * Copyright 2017 Google LLC
31
- * SPDX-License-Identifier: BSD-3-Clause
32
- */const l=({finisher:t,descriptor:e})=>(i,o)=>{var r;if(void 0===o){const o=null!==(r=i.originalKey)&&void 0!==r?r:i.key,n=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(n.finisher=function(e){t(e,o)}),n}{const r=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(r,o)}}
27
+ * @license
28
+ * Copyright 2017 Google LLC
29
+ * SPDX-License-Identifier: BSD-3-Clause
30
+ */
31
+ const C={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:S},E=(t=C,e,i)=>{const{kind:o,metadata:r}=i;let n=globalThis.litPropertyMetadata.get(r);if(void 0===n&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(i.name,t),"accessor"===o){const{name:o}=i;return{set(i){const r=e.get.call(this);e.set.call(this,i),this.requestUpdate(o,r,t)},init(e){return void 0!==e&&this.C(o,void 0,t),e}}}if("setter"===o){const{name:o}=i;return function(i){const r=this[o];e.call(this,i),this.requestUpdate(o,r,t)}}throw Error("Unsupported decorator location: "+o)};function k(t){return(e,i)=>"object"==typeof i?E(t,e,i):((t,e,i)=>{const o=e.hasOwnProperty(i);return e.constructor.createProperty(i,o?{...t,wrapped:!0}:t),o?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)
33
32
  /**
34
- * @license
35
- * Copyright 2017 Google LLC
36
- * SPDX-License-Identifier: BSD-3-Clause
37
- */;function c(t,e){return l({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
33
+ * @license
34
+ * Copyright 2017 Google LLC
35
+ * SPDX-License-Identifier: BSD-3-Clause
36
+ */}function R(t){return k({...t,state:!0,attribute:!1})}
38
37
  /**
39
- * @license
40
- * Copyright 2021 Google LLC
41
- * SPDX-License-Identifier: BSD-3-Clause
42
- */var f;const d=null!=(null===(f=window.HTMLSlotElement)||void 0===f?void 0:f.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));function h(t){const{slot:e,selector:i}=null!=t?t:{};return l({descriptor:o=>({get(){var o;const r="slot"+(e?`[name=${e}]`:":not([name])"),n=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(r),a=null!=n?d(n,t):[];return i?a.filter((t=>t.matches(i))):a},enumerable:!0,configurable:!0})})}
38
+ * @license
39
+ * Copyright 2017 Google LLC
40
+ * SPDX-License-Identifier: BSD-3-Clause
41
+ */const I=(t,e,i)=>(i.configurable=!0,i.enumerable=!0,i)
43
42
  /**
44
- * @license
45
- * Copyright 2017 Google LLC
46
- * SPDX-License-Identifier: BSD-3-Clause
47
- */function u(t,e,i){let o,r=t;return"object"==typeof t?(r=t.slot,o=t):o={flatten:e},i?h({slot:r,flatten:e,selector:i}):l({descriptor:t=>({get(){var t,e;const i="slot"+(r?`[name=${r}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==n?void 0:n.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}const p=t=>new Promise((e=>setTimeout(e,t)));function y(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,r;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!y(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!y(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,r[o]))return!1;for(o=i;0!=o--;){var n=r[o];if(!y(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const b=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function g(t,e){const i=()=>JSON.parse(JSON.stringify(t));return a({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!y(t,e),...null!=e?e:{}})}
43
+ * @license
44
+ * Copyright 2017 Google LLC
45
+ * SPDX-License-Identifier: BSD-3-Clause
46
+ */;function U(t,e){return(i,o,r)=>{const n=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof o?i:r??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return I(0,0,{get(){let i=t.call(this);return void 0===i&&(i=n(this),(null!==i||this.hasUpdated)&&e.call(this,i)),i}})}return I(0,0,{get(){return n(this)}})}}
48
47
  /**
49
- * @license
50
- * Copyright 2019 Google LLC
51
- * SPDX-License-Identifier: BSD-3-Clause
52
- */const v=window,m=v.ShadowRoot&&(void 0===v.ShadyCSS||v.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,x=Symbol(),w=new WeakMap;let O=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==x)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(m&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=w.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&w.set(e,t))}return t}toString(){return this.cssText}};const S=t=>new O("string"==typeof t?t:t+"",void 0,x),$=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new O(i,t,x)},N=(t,e)=>{m?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=v.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},C=m?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return S(e)})(t):t
48
+ * @license
49
+ * Copyright 2021 Google LLC
50
+ * SPDX-License-Identifier: BSD-3-Clause
51
+ */
53
52
  /**
54
- * @license
55
- * Copyright 2017 Google LLC
56
- * SPDX-License-Identifier: BSD-3-Clause
57
- */;var k;const E=window,R=E.trustedTypes,I=R?R.emptyScript:"",U=E.reactiveElementPolyfillSupport,L={toAttribute(t,e){switch(e){case Boolean:t=t?I:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},_=(t,e)=>e!==t&&(e==e||t==t),A={attribute:!0,type:String,converter:L,reflect:!1,hasChanged:_};let T=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=A){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const r=this[t];this[e]=o,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||A}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(C(t))}else void 0!==t&&e.push(C(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return N(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=A){var o;const r=this.constructor._$Ep(t,i);if(void 0!==r&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:L).toAttribute(e,i.type);this._$El=t,null==n?this.removeAttribute(r):this.setAttribute(r,n),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,r=o._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=o.getPropertyOptions(r),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:L;this._$El=r,this[r]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||_)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};
53
+ * @license
54
+ * Copyright 2017 Google LLC
55
+ * SPDX-License-Identifier: BSD-3-Clause
56
+ */
57
+ function L(t){return(e,i)=>{const{slot:o}=t??{},r="slot"+(o?`[name=${o}]`:":not([name])");return I(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}const A=t=>new Promise((e=>setTimeout(e,t)));function _(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,r;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!_(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!_(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(r=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,r[o]))return!1;for(o=i;0!=o--;){var n=r[o];if(!_(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const T=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function W(t,e){const i=()=>JSON.parse(JSON.stringify(t));return k({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!_(t,e),...null!=e?e:{}})}
58
58
  /**
59
- * @license
60
- * Copyright 2017 Google LLC
61
- * SPDX-License-Identifier: BSD-3-Clause
62
- */
63
- var W;T.finalized=!0,T.elementProperties=new Map,T.elementStyles=[],T.shadowRootOptions={mode:"open"},null==U||U({ReactiveElement:T}),(null!==(k=E.reactiveElementVersions)&&void 0!==k?k:E.reactiveElementVersions=[]).push("1.6.1");const D=window,F=D.trustedTypes,j=F?F.createPolicy("lit-html",{createHTML:t=>t}):void 0,z="$lit$",B=`lit$${(Math.random()+"").slice(9)}$`,M="?"+B,P=`<${M}>`,K=document,Z=()=>K.createComment(""),H=t=>null===t||"object"!=typeof t&&"function"!=typeof t,G=Array.isArray,V=t=>G(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),q="[ \t\n\f\r]",Y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,X=/-->/g,J=/>/g,Q=RegExp(`>|${q}(?:([^\\s"'>=/]+)(${q}*=${q}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),tt=/'/g,et=/"/g,it=/^(?:script|style|textarea|title)$/i,ot=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),rt=Symbol.for("lit-noChange"),nt=Symbol.for("lit-nothing"),at=new WeakMap,st=K.createTreeWalker(K,129,null,!1),lt=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",a=Y;for(let e=0;e<i;e++){const i=t[e];let s,l,c=-1,f=0;for(;f<i.length&&(a.lastIndex=f,l=a.exec(i),null!==l);)f=a.lastIndex,a===Y?"!--"===l[1]?a=X:void 0!==l[1]?a=J:void 0!==l[2]?(it.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=Q):void 0!==l[3]&&(a=Q):a===Q?">"===l[0]?(a=null!=r?r:Y,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Q:'"'===l[3]?et:tt):a===et||a===tt?a=Q:a===X||a===J?a=Y:(a=Q,r=void 0);const d=a===Q&&t[e+1].startsWith("/>")?" ":"";n+=a===Y?i+P:c>=0?(o.push(s),i.slice(0,c)+z+i.slice(c)+B+d):i+B+(-2===c?(o.push(void 0),e):d)}const s=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==j?j.createHTML(s):s,o]};class ct{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=lt(t,e);if(this.el=ct.createElement(l,i),st.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=st.nextNode())&&s.length<a;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(z)||e.startsWith(B)){const i=c[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+z).split(B),e=/([.?@])?(.*)/.exec(i);s.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?pt:"?"===e[1]?bt:"@"===e[1]?gt:ut})}else s.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(it.test(o.tagName)){const t=o.textContent.split(B),e=t.length-1;if(e>0){o.textContent=F?F.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],Z()),st.nextNode(),s.push({type:2,index:++r});o.append(t[e],Z())}}}else if(8===o.nodeType)if(o.data===M)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(B,t+1));)s.push({type:7,index:r}),t+=B.length-1}r++}}static createElement(t,e){const i=K.createElement("template");return i.innerHTML=t,i}}function ft(t,e,i=t,o){var r,n,a,s;if(e===rt)return e;let l=void 0!==o?null===(r=i._$Co)||void 0===r?void 0:r[o]:i._$Cl;const c=H(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,o)),void 0!==o?(null!==(a=(s=i)._$Co)&&void 0!==a?a:s._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=ft(t,l._$AS(t,e.values),l,o)),e}let dt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:K).importNode(i,!0);st.currentNode=r;let n=st.nextNode(),a=0,s=0,l=o[0];for(;void 0!==l;){if(a===l.index){let e;2===l.type?e=new ht(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new vt(n,this,t)),this._$AV.push(e),l=o[++s]}a!==(null==l?void 0:l.index)&&(n=st.nextNode(),a++)}return r}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},ht=class t{constructor(t,e,i,o){var r;this.type=2,this._$AH=nt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ft(this,t,e),H(t)?t===nt||null==t||""===t?(this._$AH!==nt&&this._$AR(),this._$AH=nt):t!==this._$AH&&t!==rt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):V(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==nt&&H(this._$AH)?this._$AA.nextSibling.data=t:this.$(K.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ct.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(i);else{const t=new dt(r,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=at.get(t.strings);return void 0===e&&at.set(t.strings,e=new ct(t)),e}T(e){G(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,r=0;for(const n of e)r===i.length?i.push(o=new t(this.k(Z()),this.k(Z()),this,this.options)):o=i[r],o._$AI(n),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.length=r)}_$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._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}},ut=class{constructor(t,e,i,o,r){this.type=1,this._$AH=nt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=nt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=ft(this,t,e,0),n=!H(t)||t!==this._$AH&&t!==rt,n&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ft(this,o[i+a],e,a),s===rt&&(s=this._$AH[a]),n||(n=!H(s)||s!==this._$AH[a]),s===nt?t=nt:t!==nt&&(t+=(null!=s?s:"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.j(t)}j(t){t===nt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}},pt=class extends ut{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===nt?void 0:t}};const yt=F?F.emptyScript:"";let bt=class extends ut{constructor(){super(...arguments),this.type=4}j(t){t&&t!==nt?this.element.setAttribute(this.name,yt):this.element.removeAttribute(this.name)}},gt=class extends ut{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=ft(this,t,e,0))&&void 0!==i?i:nt)===rt)return;const o=this._$AH,r=t===nt&&o!==nt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==nt&&(o===nt||r);r&&this.element.removeEventListener(this.name,this,o),n&&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)}},vt=class{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){ft(this,t)}};const mt={O:z,P:B,A:M,C:1,M:lt,L:dt,D:V,R:ft,I:ht,V:ut,H:bt,N:gt,U:pt,F:vt},xt=D.litHtmlPolyfillSupport;null==xt||xt(ct,ht),(null!==(W=D.litHtmlVersions)&&void 0!==W?W:D.litHtmlVersions=[]).push("2.7.3");
59
+ * @license
60
+ * Copyright 2017 Google LLC
61
+ * SPDX-License-Identifier: BSD-3-Clause
62
+ */const D=globalThis,F=D.trustedTypes,P=F?F.createPolicy("lit-html",{createHTML:t=>t}):void 0,M="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,j="?"+z,B=`<${j}>`,K=document,Z=()=>K.createComment(""),H=t=>null===t||"object"!=typeof t&&"function"!=typeof t,G=Array.isArray,V=t=>G(t)||"function"==typeof t?.[Symbol.iterator],q="[ \t\n\f\r]",Y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,X=/-->/g,J=/>/g,Q=RegExp(`>|${q}(?:([^\\s"'>=/]+)(${q}*=${q}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),tt=/'/g,et=/"/g,it=/^(?:script|style|textarea|title)$/i,ot=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),rt=Symbol.for("lit-noChange"),nt=Symbol.for("lit-nothing"),at=new WeakMap,st=K.createTreeWalker(K,129);function lt(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==P?P.createHTML(e):e}const ct=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",a=Y;for(let e=0;e<i;e++){const i=t[e];let s,l,c=-1,h=0;for(;h<i.length&&(a.lastIndex=h,l=a.exec(i),null!==l);)h=a.lastIndex,a===Y?"!--"===l[1]?a=X:void 0!==l[1]?a=J:void 0!==l[2]?(it.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=Q):void 0!==l[3]&&(a=Q):a===Q?">"===l[0]?(a=r??Y,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?Q:'"'===l[3]?et:tt):a===et||a===tt?a=Q:a===X||a===J?a=Y:(a=Q,r=void 0);const f=a===Q&&t[e+1].startsWith("/>")?" ":"";n+=a===Y?i+B:c>=0?(o.push(s),i.slice(0,c)+M+i.slice(c)+z+f):i+z+(-2===c?e:f)}return[lt(t,n+(t[i]||"<?>")+(2===e?"</svg>":"")),o]};let ht=class t{constructor({strings:e,_$litType$:i},o){let r;this.parts=[];let n=0,a=0;const s=e.length-1,l=this.parts,[c,h]=ct(e,i);if(this.el=t.createElement(c,o),st.currentNode=this.el.content,2===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=st.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(M)){const e=h[a++],i=r.getAttribute(t).split(z),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:o[2],strings:i,ctor:"."===o[1]?yt:"?"===o[1]?gt:"@"===o[1]?bt:pt}),r.removeAttribute(t)}else t.startsWith(z)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(it.test(r.tagName)){const t=r.textContent.split(z),e=t.length-1;if(e>0){r.textContent=F?F.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],Z()),st.nextNode(),l.push({type:2,index:++n});r.append(t[e],Z())}}}else if(8===r.nodeType)if(r.data===j)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(z,t+1));)l.push({type:7,index:n}),t+=z.length-1}n++}}static createElement(t,e){const i=K.createElement("template");return i.innerHTML=t,i}};function ft(t,e,i=t,o){if(e===rt)return e;let r=void 0!==o?i._$Co?.[o]:i._$Cl;const n=H(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,i,o)),void 0!==o?(i._$Co??=[])[o]=r:i._$Cl=r),void 0!==r&&(e=ft(t,r._$AS(t,e.values),r,o)),e}let dt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,o=(t?.creationScope??K).importNode(e,!0);st.currentNode=o;let r=st.nextNode(),n=0,a=0,s=i[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new ut(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new vt(r,this,t)),this._$AV.push(e),s=i[++a]}n!==s?.index&&(r=st.nextNode(),n++)}return st.currentNode=K,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},ut=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=nt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ft(this,t,e),H(t)?t===nt||null==t||""===t?(this._$AH!==nt&&this._$AR(),this._$AH=nt):t!==this._$AH&&t!==rt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):V(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==nt&&H(this._$AH)?this._$AA.nextSibling.data=t:this.$(K.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:i}=t,o="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=ht.createElement(lt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new dt(o,this),i=t.u(this.options);t.p(e),this.$(i),this._$AH=t}}_$AC(t){let e=at.get(t.strings);return void 0===e&&at.set(t.strings,e=new ht(t)),e}T(e){G(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,r=0;for(const n of e)r===i.length?i.push(o=new t(this.k(Z()),this.k(Z()),this,this.options)):o=i[r],o._$AI(n),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},pt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=nt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=nt}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=ft(this,t,e,0),n=!H(t)||t!==this._$AH&&t!==rt,n&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ft(this,o[i+a],e,a),s===rt&&(s=this._$AH[a]),n||=!H(s)||s!==this._$AH[a],s===nt?t=nt:t!==nt&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.O(t)}O(t){t===nt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},yt=class extends pt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===nt?void 0:t}},gt=class extends pt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==nt)}},bt=class extends pt{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=ft(this,t,e,0)??nt)===rt)return;const i=this._$AH,o=t===nt&&i!==nt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==nt&&(i===nt||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},vt=class{constructor(t,e,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){ft(this,t)}};const mt={j:M,P:z,A:j,C:1,M:ct,L:dt,R:V,V:ft,D:ut,I:pt,H:gt,N:bt,U:yt,B:vt},xt=D.litHtmlPolyfillSupport;xt?.(ht,ut),(D.litHtmlVersions??=[]).push("3.1.0");
64
63
  /**
65
- * @license
66
- * Copyright 2017 Google LLC
67
- * SPDX-License-Identifier: BSD-3-Clause
68
- */
69
- var wt,Ot;let St=class extends T{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,r;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let a=n._$litPart$;if(void 0===a){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;n._$litPart$=a=new ht(e.insertBefore(Z(),t),t,void 0,null!=i?i:{})}return a._$AI(t),a})(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 rt}};St.finalized=!0,St._$litElement$=!0,null===(wt=globalThis.litElementHydrateSupport)||void 0===wt||wt.call(globalThis,{LitElement:St});const $t=globalThis.litElementPolyfillSupport;null==$t||$t({LitElement:St}),(null!==(Ot=globalThis.litElementVersions)&&void 0!==Ot?Ot:globalThis.litElementVersions=[]).push("3.3.2");const Nt=t=>"string"==typeof t?S(t):t;class Ct{static create(t,e,i,o){const r=t=>Nt(null!=t?t:o),n=$`var(${Nt(t)}, ${r(o)})`;return n.name=t,n.description=t,n.category=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>$`var(${Nt(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>o,n}static extend(t,e,i,o){const r=t=>i.get(null!=t?t:o),n=$`var(${Nt(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i.category,n.fallbackVariable=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>$`var(${Nt(t)}, ${r(e)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=o?o:i.lastResortDefaultValue(),n}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):Nt(null!=e?e:t.lastResortDefaultValue()),o=$`var(${Nt(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=>$`var(${Nt(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>t.lastResortDefaultValue(),o}}function kt(t,e){return Nt(`${t.name}: ${e}`)}const Et={colorWhite:Ct.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Ct.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Ct.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Ct.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Ct.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Ct.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Ct.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Ct.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Ct.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Ct.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Ct.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Ct.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Ct.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Ct.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Ct.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Ct.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Ct.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Ct.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Ct.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Ct.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Ct.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Ct.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Ct.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Ct.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Ct.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Ct.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Ct.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Ct.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Ct.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Ct.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Ct.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Ct.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Ct.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Ct.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Ct.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Ct.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Ct.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Ct.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Ct.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Ct.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Ct.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Ct.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Ct.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Ct.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Ct.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Ct.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Ct.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Ct.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Ct.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Ct.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Ct.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Ct.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Ct.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Ct.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Ct.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Ct.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Ct.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Ct.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Ct.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Ct.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Ct.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Ct.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Ct.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Ct.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Ct.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Ct.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Ct.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Ct.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Ct.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Ct.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Ct.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Ct.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Ct.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Ct.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Ct.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Ct.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Ct.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Ct.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Ct.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Ct.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Ct.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Ct.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Ct.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Ct.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Ct.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Ct.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Ct.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Ct.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Ct.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Ct.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Ct.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Ct.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Ct.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Ct.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Ct.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Ct.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Ct.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Ct.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Ct.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Ct.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Ct.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Ct.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Ct.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Ct.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Ct.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Ct.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Ct.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Ct.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Ct.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Ct.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Ct.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Ct.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Ct.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Ct.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Ct.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Ct.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Ct.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Ct.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Ct.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Ct.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Ct.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Ct.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Ct.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Ct.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Ct.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Ct.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Ct.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Ct.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Ct.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Ct.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Ct.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Ct.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Ct.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Ct.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Ct.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Ct.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Ct.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Ct.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Ct.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Ct.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Ct.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Ct.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Ct.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Ct.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Ct.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Ct.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Ct.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Ct.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Ct.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Ct.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Ct.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Ct.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Ct.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Ct.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Ct.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Ct.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Ct.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Ct.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Ct.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Ct.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Ct.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Ct.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Ct.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Ct.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Ct.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Ct.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Ct.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Ct.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Ct.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Ct.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Ct.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Ct.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Ct.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Ct.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Ct.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Ct.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Ct.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Ct.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Ct.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Ct.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Ct.create("--ft-opacity-0","","NUMBER","0"),opacity8:Ct.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Ct.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Ct.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Ct.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Ct.create("--ft-opacity-80","","NUMBER","0.8")},Rt={display:{fontFamily:Ct.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Ct.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Ct.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ct.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Ct.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Ct.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:Ct.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ct.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Ct.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Ct.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:Ct.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ct.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Ct.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Ct.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:Ct.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Ct.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Ct.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ct.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Ct.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Ct.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ct.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Ct.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ct.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Ct.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Ct.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ct.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Ct.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Ct.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Ct.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ct.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Ct.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ct.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Ct.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Ct.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ct.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Ct.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ct.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Ct.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ct.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ct.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Ct.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Ct.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ct.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ct.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Ct.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Ct.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ct.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Ct.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ct.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Ct.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ct.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Ct.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Ct.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ct.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ct.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ct.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Ct.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ct.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Ct.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Ct.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Ct.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ct.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Ct.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ct.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Ct.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ct.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Ct.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ct.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Ct.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Ct.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ct.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ct.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ct.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Ct.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ct.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Ct.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ct.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Ct.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ct.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Ct.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ct.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Ct.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ct.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Ct.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ct.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Ct.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Ct.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ct.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Ct.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ct.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Ct.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ct.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Ct.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ct.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Ct.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ct.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Ct.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ct.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Ct.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Ct.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Ct.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ct.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Ct.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ct.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Ct.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ct.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Ct.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ct.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Ct.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ct.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ct.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Ct.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ct.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Ct.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ct.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ct.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ct.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},It={backgroundActionPrimary:Ct.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Et.colorBrand0),backgroundErrorPrimary:Ct.extend("--ft-background-error-primary","Used as background of error components.",Et.colorRed0),backgroundErrorSubtle:Ct.extend("--ft-background-error-subtle","Used as background of subtle error components.",Et.colorRed10),backgroundInfoPrimary:Ct.extend("--ft-background-info-primary","Used as background of information components.",Et.colorCyan200),backgroundInfoSubtle:Ct.extend("--ft-background-info-subtle","Used as background of subtle information components.",Et.colorCyan10),backgroundWarningPrimary:Ct.extend("--ft-background-warning-primary","Used as background of warning components.",Et.colorOrange300),backgroundWarningSubtle:Ct.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Et.colorOrange10),backgroundSuccessPrimary:Ct.extend("--ft-background-success-primary","Used as background of success components.",Et.colorGreen200),backgroundSuccessSubtle:Ct.extend("--ft-background-success-subtle","Used as background of subtle success components.",Et.colorGreen10),backgroundGlobalSurface:Ct.extend("--ft-background-global-surface","Used as app background.",Et.colorWhite),backgroundGlobalOnSurface:Ct.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Et.colorGray10),backgroundGlobalOnSurfaceDark:Ct.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Et.colorGray30),contentActionPrimary:Ct.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Et.colorBrand0),contentWarningPrimary:Ct.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Et.colorOrange300),contentWarningIconOnly:Ct.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Et.colorOrange0),contentErrorPrimary:Ct.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Et.colorRed0),contentErrorIconOnly:Ct.extend("--ft-content-error-icon-only","Used on error status icons alone",Et.colorRed0),contentInfoPrimary:Ct.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Et.colorCyan200),contentInfoIconOnly:Ct.extend("--ft-content-info-icon-only","Used on info status icons alone",Et.colorCyan0),contentSuccessIconOnly:Ct.extend("--ft-content-success-icon-only","Used on success status icons alone",Et.colorGreen0),contentSuccessPrimary:Ct.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Et.colorGreen200),contentGlobalPrimary:Ct.extend("--ft-content-global-primary","Used for main content on the page.",Et.colorGray500),contentGlobalSecondary:Ct.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Et.colorGray200),contentGlobalSubtle:Ct.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Et.colorGray0),contentGlobalOnColor:Ct.extend("--ft-content-global-on-color","Used for content on a dominant color.",Et.colorWhite),borderActionPrimary:Ct.extend("--ft-border-action-primary","Used as border for primary action components.",Et.colorBrand0),borderActionFocusRing:Ct.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Et.colorCyan0),borderWarningPrimary:Ct.extend("--ft-border-warning-primary","Used as border for warning components.",Et.colorOrange30),borderSuccessPrimary:Ct.extend("--ft-border-success-primary","Used as border for success components.",Et.colorGreen30),borderErrorPrimary:Ct.extend("--ft-border-error-primary","Used as border for error components.",Et.colorRed30),borderInfoPrimary:Ct.extend("--ft-border-info-primary","Used as border for information components.",Et.colorCyan30),borderGlobalSubtle:Ct.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Et.colorGray30),borderGlobalPrimary:Ct.extend("--ft-border-global-primary","Used as border for element like input.",Et.colorGray50),borderInputPrimary:Ct.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Et.colorGray80)},Ut={largeHeight:Ct.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Ct.extend("--ft-button-large-horizontal-padding","",Et.spacing4),largeGap:Ct.extend("--ft-button-large-gap","",Et.spacing2),largeBorderRadius:Ct.extend("--ft-button-large-border-radius","",Et.borderRadiusS),largeIconSize:Ct.extend("--ft-button-large-icon-size","",Et.iconSize3),largeBorderWidth:Ct.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Ct.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Ct.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Ct.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Ct.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Ct.extend("--ft-button-small-horizontal-padding","",Et.spacing3),smallGap:Ct.extend("--ft-button-small-gap","",Et.spacing2),smallBorderRadius:Ct.extend("--ft-button-small-border-radius","",Et.borderRadiusS),smallIconSize:Ct.extend("--ft-button-small-icon-size","",Et.iconSize2),smallBorderWidth:Ct.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Ct.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Ct.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Ct.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Ct.extend("--ft-button-primary-background-color","",It.backgroundActionPrimary),primaryColor:Ct.extend("--ft-button-primary-color","",It.contentGlobalOnColor),primaryIconColor:Ct.extend("--ft-button-primary-icon-color","",It.contentGlobalOnColor),primaryStateLayerColor:Ct.extend("--ft-button-primary-state-layer-color","",It.contentGlobalOnColor),primaryStateLayerOpacityHover:Ct.extend("--ft-button-primary-state-layer-opacity-hover","",Et.opacity16),primaryStateLayerOpacityFocus:Ct.extend("--ft-button-primary-state-layer-opacity-focus","",Et.opacity16),primaryStateLayerOpacityActive:Ct.extend("--ft-button-primary-state-layer-opacity-active","",Et.opacity24),primaryComponentOpacityDisabled:Ct.extend("--ft-button-primary-component-opacity-disabled","",Et.opacity40),focusFocusRingColor:Ct.extend("--ft-button-focus-focus-ring-color","",It.borderActionFocusRing),tertiaryBackgroundColor:Ct.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Ct.extend("--ft-button-tertiary-color","",It.contentActionPrimary),tertiaryIconColor:Ct.extend("--ft-button-tertiary-icon-color","",It.contentActionPrimary),tertiaryStateLayerColor:Ct.extend("--ft-button-tertiary-state-layer-color","",It.contentActionPrimary),tertiaryStateLayerOpacityHover:Ct.extend("--ft-button-tertiary-state-layer-opacity-hover","",Et.opacity8),tertiaryStateLayerOpacityFocus:Ct.extend("--ft-button-tertiary-state-layer-opacity-focus","",Et.opacity8),tertiaryStateLayerOpacityActive:Ct.extend("--ft-button-tertiary-state-layer-opacity-active","",Et.opacity16),tertiaryComponentOpacityDisabled:Ct.extend("--ft-button-tertiary-component-opacity-disabled","",Et.opacity40),secondaryBackgroundColor:Ct.extend("--ft-button-secondary-background-color","",Et.colorWhite),secondaryColor:Ct.extend("--ft-button-secondary-color","",It.contentActionPrimary),secondaryIconColor:Ct.extend("--ft-button-secondary-icon-color","",It.contentActionPrimary),secondaryStateLayerColor:Ct.extend("--ft-button-secondary-state-layer-color","",It.contentActionPrimary),secondaryStateLayerOpacityHover:Ct.extend("--ft-button-secondary-state-layer-opacity-hover","",Et.opacity8),secondaryStateLayerOpacityFocus:Ct.extend("--ft-button-secondary-state-layer-opacity-focus","",Et.opacity8),secondaryStateLayerOpacityActive:Ct.extend("--ft-button-secondary-state-layer-opacity-active","",Et.opacity16),secondaryComponentOpacityDisabled:Ct.extend("--ft-button-secondary-component-opacity-disabled","",Et.opacity40),secondaryBorderColor:Ct.extend("--ft-button-secondary-border-color","",It.borderActionPrimary),neutralBackgroundColor:Ct.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Ct.extend("--ft-button-neutral-icon-color","",It.contentGlobalSecondary),neutralColor:Ct.extend("--ft-button-neutral-color","",It.contentGlobalSecondary),neutralStateLayerColor:Ct.extend("--ft-button-neutral-state-layer-color","",It.contentGlobalSecondary),neutralStateLayerOpacityHover:Ct.extend("--ft-button-neutral-state-layer-opacity-hover","",Et.opacity8),neutralStateLayerOpacityFocus:Ct.extend("--ft-button-neutral-state-layer-opacity-focus","",Et.opacity8),neutralStateLayerOpacityActive:Ct.extend("--ft-button-neutral-state-layer-opacity-active","",Et.opacity16),neutralComponentOpacityDisabled:Ct.extend("--ft-button-neutral-component-opacity-disabled","",Et.opacity40)};Ct.extend("--ft-tabs-top-left-border-radius","",Et.borderRadiusS),Ct.extend("--ft-tabs-top-right-border-radius","",Et.borderRadiusS),Ct.extend("--ft-tabs-label-horizontal-padding","",Et.spacing4),Ct.extend("--ft-tabs-label-vertical-padding","",Et.spacing3),Ct.extend("--ft-tabs-label-gap","",Et.spacing1),Ct.extend("--ft-switch-group-horizontal-padding","",Et.spacing1),Ct.extend("--ft-switch-group-vertical-padding","",Et.spacing1),Ct.extend("--ft-switch-group-gap","",Et.spacing1),Ct.extend("--ft-switch-group-background-color","",It.backgroundGlobalSurface),Ct.extend("--ft-switch-group-border-color","",It.borderGlobalSubtle),Ct.create("--ft-switch-group-border-radius","","SIZE","6px"),Ct.extend("--ft-switch-label-horizontal-padding","",Et.spacing2),Ct.extend("--ft-switch-label-vertical-padding","",Et.spacing1),Ct.extend("--ft-switch-icon-horizontal-padding","",Et.spacing1),Ct.extend("--ft-switch-icon-vertical-padding","",Et.spacing1),Ct.create("--ft-switch-focus-outline-width","","SIZE","2px"),Ct.extend("--ft-switch-focus-focus-ring-color","",It.borderActionFocusRing),Ct.extend("--ft-switch-option-border-radius","",Et.borderRadiusS),Ct.extend("--ft-switch-off-state-layer-opacity-hover","",Et.opacity8),Ct.extend("--ft-switch-off-state-layer-opacity-focus","",Et.opacity8),Ct.extend("--ft-switch-off-state-layer-opacity-active","",Et.opacity16),Ct.extend("--ft-switch-off-component-opacity-disabled","",Et.opacity40),Ct.extend("--ft-switch-off-color","",It.contentGlobalSubtle),Ct.extend("--ft-switch-off-state-layer-color","",It.contentGlobalSubtle),Ct.extend("--ft-chart-1-light","for area color charts",Et.colorBrand40),Ct.extend("--ft-chart-1-base","for line charts",Et.colorBrand0),Ct.extend("--ft-chart-2-light","for area color charts",Et.colorYellow60),Ct.extend("--ft-chart-2-base","for line charts",Et.colorYellow100),Ct.extend("--ft-chart-3-light","",Et.colorUltramarine40),Ct.extend("--ft-chart-3-base","",Et.colorUltramarine70),Ct.extend("--ft-chart-4-light","",Et.colorCyan50),Ct.extend("--ft-chart-4-base","",Et.colorCyan100),Ct.extend("--ft-chart-5-light","",Et.colorRed40),Ct.extend("--ft-chart-5-base","",Et.colorRed60),Ct.extend("--ft-chart-6-light","",Et.colorGreen40),Ct.extend("--ft-chart-6-base","",Et.colorGreen70),Ct.extend("--ft-chart-7-light","",Et.colorOrange70),Ct.extend("--ft-chart-7-base","",Et.colorOrange100),Ct.extend("--ft-chart-8-light","",Et.colorAvocado70),Ct.extend("--ft-chart-8-base","",Et.colorAvocado200),Ct.extend("--ft-chart-9-light","",Et.colorBrown50),Ct.extend("--ft-chart-9-base","",Et.colorBrown200),Ct.extend("--ft-chart-10-light","",Et.colorGray50),Ct.extend("--ft-chart-10-base","",Et.colorGray80),Ct.extend("--ft-chart-monochrome-10","",Et.colorBrand10),Ct.extend("--ft-chart-monochrome-20","",Et.colorBrand20),Ct.extend("--ft-chart-monochrome-30","",Et.colorBrand40),Ct.extend("--ft-chart-monochrome-40","",Et.colorBrand60),Ct.extend("--ft-chart-monochrome-50","",Et.colorBrand0),Ct.extend("--ft-chart-monochrome-60","",Et.colorBrand200),Ct.extend("--ft-chip-large-horizontal-padding","",Et.spacing4),Ct.extend("--ft-chip-large-vertical-padding","",Et.spacing2),Ct.extend("--ft-chip-large-gap","",Et.spacing1),Ct.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Ct.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Ct.extend("--ft-chip-large-border-radius","",Et.borderRadiusPill),Ct.create("--ft-chip-large-border-width","","SIZE","1px"),Ct.extend("--ft-chip-large-icon-size","",Et.iconSize3),Ct.extend("--ft-chip-medium-horizontal-padding","",Et.spacing3),Ct.extend("--ft-chip-medium-vertical-padding","",Et.spacing1),Ct.extend("--ft-chip-medium-gap","",Et.spacing1),Ct.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Ct.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Ct.extend("--ft-chip-medium-border-radius","",Et.borderRadiusPill),Ct.create("--ft-chip-medium-border-width","","SIZE","1px"),Ct.extend("--ft-chip-medium-icon-size","",Et.iconSize2),Ct.extend("--ft-chip-small-horizontal-padding","",Et.spacing2),Ct.extend("--ft-chip-small-vertical-padding","",Et.spacing05),Ct.extend("--ft-chip-small-gap","",Et.spacing1),Ct.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Ct.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Ct.extend("--ft-chip-small-border-radius","",Et.borderRadiusPill),Ct.create("--ft-chip-small-border-width","","SIZE","1px"),Ct.extend("--ft-chip-small-icon-size","",Et.iconSize1),Ct.extend("--ft-chip-neutral-background-color","",It.backgroundGlobalOnSurface),Ct.extend("--ft-chip-neutral-color","",It.contentGlobalPrimary),Ct.extend("--ft-chip-neutral-border-color","",It.borderGlobalSubtle),Ct.extend("--ft-chip-info-background-color","",It.backgroundInfoSubtle),Ct.extend("--ft-chip-info-color","",It.contentInfoPrimary),Ct.extend("--ft-chip-info-border-color","",It.borderInfoPrimary),Ct.extend("--ft-chip-success-background-color","",It.backgroundSuccessSubtle),Ct.extend("--ft-chip-success-color","",It.contentSuccessPrimary),Ct.extend("--ft-chip-success-border-color","",It.borderSuccessPrimary),Ct.extend("--ft-chip-warning-background-color","",It.backgroundWarningSubtle),Ct.extend("--ft-chip-warning-color","",It.contentWarningPrimary),Ct.extend("--ft-chip-warning-border-color","",It.borderWarningPrimary),Ct.extend("--ft-chip-error-background-color","",It.backgroundErrorSubtle),Ct.extend("--ft-chip-error-color","",It.contentErrorPrimary),Ct.extend("--ft-chip-error-border-color","",It.borderErrorPrimary),Ct.create("--ft-notice-border-width","","SIZE","1px"),Ct.extend("--ft-notice-horizontal-padding","",Et.spacing2),Ct.extend("--ft-notice-vertical-padding","",Et.spacing1),Ct.extend("--ft-notice-border-radius","",Et.borderRadiusS),Ct.extend("--ft-notice-gap","",Et.spacing2),Ct.extend("--ft-notice-icon-size","",Et.iconSize3),Ct.extend("--ft-notice-info-background-color","",It.backgroundInfoSubtle),Ct.extend("--ft-notice-info-border-color","",It.borderInfoPrimary),Ct.extend("--ft-notice-info-color","",It.contentInfoPrimary),Ct.extend("--ft-notice-warning-background-color","",It.backgroundWarningSubtle),Ct.extend("--ft-notice-warning-border-color","",It.borderWarningPrimary),Ct.extend("--ft-notice-warning-color","",It.contentWarningPrimary),Ct.extend("--ft-checkbox-label-color","",It.contentGlobalPrimary),Ct.extend("--ft-checkbox-checked-background-color","",It.contentActionPrimary),Ct.extend("--ft-checkbox-checked-state-layer-color","",It.contentActionPrimary),Ct.extend("--ft-checkbox-checked-color","",It.contentGlobalOnColor),Ct.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Et.opacity16),Ct.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Et.opacity16),Ct.extend("--ft-checkbox-checked-state-layer-opacity-active","",Et.opacity24),Ct.extend("--ft-checkbox-checked-component-opacity-disabled","",Et.opacity40),Ct.extend("--ft-checkbox-unchecked-border-color","",Et.colorGray80),Ct.extend("--ft-checkbox-unchecked-state-layer-color","",Et.colorGray80),Ct.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Et.opacity16),Ct.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Et.opacity16),Ct.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Et.opacity24),Ct.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Et.opacity40),Ct.extend("--ft-checkbox-focus-focus-ring-color","",It.borderActionFocusRing),Ct.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Ct.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Ct.extend("--ft-checkbox-gap","",Et.spacing3),Ct.extend("--ft-toggle-off-state-layer-opacity-hover","",Et.opacity16),Ct.extend("--ft-toggle-off-state-layer-opacity-focus","",Et.opacity16),Ct.extend("--ft-toggle-off-state-layer-opacity-active","",Et.opacity24),Ct.extend("--ft-toggle-off-component-opacity-disabled","",Et.opacity40),Ct.extend("--ft-toggle-off-background-color","",It.contentGlobalSubtle),Ct.extend("--ft-toggle-off-icon-color","",It.contentGlobalSubtle),Ct.extend("--ft-toggle-off-state-layer-color","",It.contentGlobalSubtle),Ct.extend("--ft-toggle-on-state-layer-opacity-hover","",Et.opacity16),Ct.extend("--ft-toggle-on-state-layer-opacity-focus","",Et.opacity16),Ct.extend("--ft-toggle-on-state-layer-opacity-active","",Et.opacity24),Ct.extend("--ft-toggle-on-component-opacity-disabled","",Et.opacity40),Ct.extend("--ft-toggle-on-background-color","",It.contentActionPrimary),Ct.extend("--ft-toggle-on-icon-color","",It.contentActionPrimary),Ct.extend("--ft-toggle-on-state-layer-color","",It.contentActionPrimary),Ct.extend("--ft-toggle-label-color","",It.contentGlobalPrimary),Ct.extend("--ft-toggle-focus-focus-ring-color","",It.borderActionFocusRing),Ct.extend("--ft-toggle-gap","",Et.spacing3),Ct.extend("--ft-radio-label-color","",It.contentGlobalPrimary),Ct.extend("--ft-radio-selected-color","",It.contentActionPrimary),Ct.extend("--ft-radio-selected-state-layer-color","",It.contentActionPrimary),Ct.extend("--ft-radio-selected-state-layer-opacity-hover","",Et.opacity16),Ct.extend("--ft-radio-selected-state-layer-opacity-focus","",Et.opacity16),Ct.extend("--ft-radio-selected-state-layer-opacity-active","",Et.opacity24),Ct.extend("--ft-radio-selected-component-opacity-disabled","",Et.opacity40),Ct.extend("--ft-radio-unselected-state-layer-color","",Et.colorGray80),Ct.extend("--ft-radio-unselected-state-layer-opacity-hover","",Et.opacity16),Ct.extend("--ft-radio-unselected-state-layer-opacity-focus","",Et.opacity16),Ct.extend("--ft-radio-unselected-state-layer-opacity-active","",Et.opacity24),Ct.extend("--ft-radio-unselected-component-opacity-disabled","",Et.opacity40),Ct.extend("--ft-radio-focus-focus-ring-color","",It.borderActionFocusRing),Ct.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Ct.create("--ft-radio-focus-outline-width","","SIZE","2px"),Ct.extend("--ft-radio-gap","",Et.spacing3),Ct.extend("--ft-notification-icon-size","",Et.iconSize4),Ct.extend("--ft-notification-horizontal-padding","",Et.spacing4),Ct.extend("--ft-notification-vertical-padding","",Et.spacing4),Ct.extend("--ft-notification-info-background-color","",It.backgroundInfoSubtle),Ct.extend("--ft-notification-info-color","",It.contentInfoPrimary),Ct.extend("--ft-notification-info-border-color","",It.borderInfoPrimary),Ct.extend("--ft-notification-success-background-color","",It.backgroundSuccessSubtle),Ct.extend("--ft-notification-success-color","",It.contentSuccessPrimary),Ct.extend("--ft-notification-success-border-color","",It.borderSuccessPrimary),Ct.extend("--ft-notification-warning-background-color","",It.backgroundWarningSubtle),Ct.extend("--ft-notification-warning-color","",It.contentWarningPrimary),Ct.extend("--ft-notification-warning-border-color","",It.borderWarningPrimary),Ct.extend("--ft-notification-error-background-color","",It.backgroundErrorSubtle),Ct.extend("--ft-notification-error-color","",It.contentErrorPrimary),Ct.extend("--ft-notification-error-border-color","",It.borderErrorPrimary),Ct.extend("--ft-notification-border-radius","",Et.borderRadiusPill),Ct.create("--ft-notification-border-width","","SIZE","1px"),Ct.extend("--ft-notification-gap-leading","",Et.spacing2),Ct.extend("--ft-notification-gap-trailing","",Et.spacing8);const Lt={colorPrimary:Ct.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:Ct.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:Ct.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:Ct.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:Ct.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:Ct.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Ct.create("--ft-color-error","","COLOR","#B00020"),colorOutline:Ct.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Ct.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:Ct.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:Ct.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:Ct.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:Ct.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:Ct.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Ct.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Ct.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:Ct.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:Ct.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Ct.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Ct.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Ct.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Ct.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Ct.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Ct.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:Ct.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:Ct.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:Ct.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:Ct.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:Ct.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:Ct.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Ct.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Ct.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:Ct.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Ct.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Ct.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Ct.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Ct.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Ct.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Ct.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:Ct.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Ct.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Ct.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Ct.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Ct.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:Ct.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:Ct.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:Ct.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:Ct.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:Ct.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:Ct.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:Ct.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:Ct.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:Ct.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:Ct.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:Ct.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:Ct.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:Ct.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:Ct.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:Ct.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Ct.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Ct.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:Ct.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};class _t extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}class At extends St{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return N(i,t.elementStyles),i}}var Tt,Wt=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Dt=Symbol("constructorPrototype"),Ft=Symbol("constructorName"),jt=Symbol("exportpartsDebouncer");class zt extends At{constructor(){super(),this[Tt]=new r(5),this[Ft]=this.constructor.name,this[Dt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ft]&&Object.setPrototypeOf(this,this[Dt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[jt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...i).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const f=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Tt=jt,Wt([a()],zt.prototype,"exportpartsPrefix",void 0),Wt([g([])],zt.prototype,"exportpartsPrefixes",void 0),Wt([a()],zt.prototype,"customStylesheet",void 0);const Bt=$`
64
+ * @license
65
+ * Copyright 2019 Google LLC
66
+ * SPDX-License-Identifier: BSD-3-Clause
67
+ */
68
+ const wt=globalThis,Ot=wt.ShadowRoot&&(void 0===wt.ShadyCSS||wt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,St=Symbol(),$t=new WeakMap;let Nt=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==St)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Ot&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=$t.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&$t.set(e,t))}return t}toString(){return this.cssText}};const Ct=t=>new Nt("string"==typeof t?t:t+"",void 0,St),Et=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new Nt(i,t,St)},kt=Ot?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Ct(e)})(t):t
69
+ /**
70
+ * @license
71
+ * Copyright 2017 Google LLC
72
+ * SPDX-License-Identifier: BSD-3-Clause
73
+ */,{is:Rt,defineProperty:It,getOwnPropertyDescriptor:Ut,getOwnPropertyNames:Lt,getOwnPropertySymbols:At,getPrototypeOf:_t}=Object,Tt=globalThis,Wt=Tt.trustedTypes,Dt=Wt?Wt.emptyScript:"",Ft=Tt.reactiveElementPolyfillSupport,Pt=(t,e)=>t,Mt={toAttribute(t,e){switch(e){case Boolean:t=t?Dt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},zt=(t,e)=>!Rt(t,e),jt={attribute:!0,type:String,converter:Mt,reflect:!1,hasChanged:zt};Symbol.metadata??=Symbol("metadata"),Tt.litPropertyMetadata??=new WeakMap;let Bt=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=jt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&It(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=Ut(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return o?.call(this)},set(e){const n=o?.call(this);r.call(this,e),this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??jt}static _$Ei(){if(this.hasOwnProperty(Pt("elementProperties")))return;const t=_t(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Pt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Pt("properties"))){const t=this.properties,e=[...Lt(t),...At(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(kt(t))}else void 0!==t&&e.push(kt(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(Ot)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),o=wt.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:Mt).toAttribute(e,i.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const i=this.constructor,o=i._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=i.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Mt;this._$Em=o,this[o]=r.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,i,o=!1,r){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??zt)(o?r:this[t],e))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t)!0!==i.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],i)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};Bt.elementStyles=[],Bt.shadowRootOptions={mode:"open"},Bt[Pt("elementProperties")]=new Map,Bt[Pt("finalized")]=new Map,Ft?.({ReactiveElement:Bt}),(Tt.reactiveElementVersions??=[]).push("2.0.2");
74
+ /**
75
+ * @license
76
+ * Copyright 2017 Google LLC
77
+ * SPDX-License-Identifier: BSD-3-Clause
78
+ */
79
+ const Kt=globalThis,Zt=Kt.trustedTypes,Ht=Zt?Zt.createPolicy("lit-html",{createHTML:t=>t}):void 0,Gt="$lit$",Vt=`lit$${(Math.random()+"").slice(9)}$`,qt="?"+Vt,Yt=`<${qt}>`,Xt=document,Jt=()=>Xt.createComment(""),Qt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,te=Array.isArray,ee="[ \t\n\f\r]",ie=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,oe=/-->/g,re=/>/g,ne=RegExp(`>|${ee}(?:([^\\s"'>=/]+)(${ee}*=${ee}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ae=/'/g,se=/"/g,le=/^(?:script|style|textarea|title)$/i,ce=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),he=Symbol.for("lit-noChange"),fe=Symbol.for("lit-nothing"),de=new WeakMap,ue=Xt.createTreeWalker(Xt,129);function pe(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Ht?Ht.createHTML(e):e}class ye{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=((t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",a=ie;for(let e=0;e<i;e++){const i=t[e];let s,l,c=-1,h=0;for(;h<i.length&&(a.lastIndex=h,l=a.exec(i),null!==l);)h=a.lastIndex,a===ie?"!--"===l[1]?a=oe:void 0!==l[1]?a=re:void 0!==l[2]?(le.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=ne):void 0!==l[3]&&(a=ne):a===ne?">"===l[0]?(a=r??ie,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?ne:'"'===l[3]?se:ae):a===se||a===ae?a=ne:a===oe||a===re?a=ie:(a=ne,r=void 0);const f=a===ne&&t[e+1].startsWith("/>")?" ":"";n+=a===ie?i+Yt:c>=0?(o.push(s),i.slice(0,c)+Gt+i.slice(c)+Vt+f):i+Vt+(-2===c?e:f)}return[pe(t,n+(t[i]||"<?>")+(2===e?"</svg>":"")),o]})(t,e);if(this.el=ye.createElement(l,i),ue.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=ue.nextNode())&&s.length<a;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(Gt)){const e=c[n++],i=o.getAttribute(t).split(Vt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:i,ctor:"."===a[1]?me:"?"===a[1]?xe:"@"===a[1]?we:ve}),o.removeAttribute(t)}else t.startsWith(Vt)&&(s.push({type:6,index:r}),o.removeAttribute(t));if(le.test(o.tagName)){const t=o.textContent.split(Vt),e=t.length-1;if(e>0){o.textContent=Zt?Zt.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],Jt()),ue.nextNode(),s.push({type:2,index:++r});o.append(t[e],Jt())}}}else if(8===o.nodeType)if(o.data===qt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(Vt,t+1));)s.push({type:7,index:r}),t+=Vt.length-1}r++}}static createElement(t,e){const i=Xt.createElement("template");return i.innerHTML=t,i}}function ge(t,e,i=t,o){if(e===he)return e;let r=void 0!==o?i._$Co?.[o]:i._$Cl;const n=Qt(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,i,o)),void 0!==o?(i._$Co??=[])[o]=r:i._$Cl=r),void 0!==r&&(e=ge(t,r._$AS(t,e.values),r,o)),e}let be=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=fe,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ge(this,t,e),Qt(t)?t===fe||null==t||""===t?(this._$AH!==fe&&this._$AR(),this._$AH=fe):t!==this._$AH&&t!==he&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>te(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==fe&&Qt(this._$AH)?this._$AA.nextSibling.data=t:this.$(Xt.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:i}=t,o="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=ye.createElement(pe(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,o=(t?.creationScope??Xt).importNode(e,!0);ue.currentNode=o;let r=ue.nextNode(),n=0,a=0,s=i[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new be(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new Oe(r,this,t)),this._$AV.push(e),s=i[++a]}n!==s?.index&&(r=ue.nextNode(),n++)}return ue.currentNode=Xt,o}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}(o,this),i=t.u(this.options);t.p(e),this.$(i),this._$AH=t}}_$AC(t){let e=de.get(t.strings);return void 0===e&&de.set(t.strings,e=new ye(t)),e}T(e){te(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,r=0;for(const n of e)r===i.length?i.push(o=new t(this.k(Jt()),this.k(Jt()),this,this.options)):o=i[r],o._$AI(n),r++;r<i.length&&(this._$AR(o&&o._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},ve=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=fe,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=fe}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=ge(this,t,e,0),n=!Qt(t)||t!==this._$AH&&t!==he,n&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=ge(this,o[i+a],e,a),s===he&&(s=this._$AH[a]),n||=!Qt(s)||s!==this._$AH[a],s===fe?t=fe:t!==fe&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.O(t)}O(t){t===fe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},me=class extends ve{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===fe?void 0:t}},xe=class extends ve{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==fe)}},we=class extends ve{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=ge(this,t,e,0)??fe)===he)return;const i=this._$AH,o=t===fe&&i!==fe||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==fe&&(i===fe||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Oe=class{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){ge(this,t)}};const Se=Kt.litHtmlPolyfillSupport;Se?.(ye,be),(Kt.litHtmlVersions??=[]).push("3.1.0");
80
+ /**
81
+ * @license
82
+ * Copyright 2017 Google LLC
83
+ * SPDX-License-Identifier: BSD-3-Clause
84
+ */
85
+ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{const o=i?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=i?.renderBefore??null;o._$litPart$=r=new be(e.insertBefore(Jt(),t),t,void 0,i??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return he}};$e._$litElement$=!0,$e.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:$e});const Ne=globalThis.litElementPolyfillSupport;Ne?.({LitElement:$e}),(globalThis.litElementVersions??=[]).push("4.0.2");const Ce=t=>"string"==typeof t?Ct(t):t;class Ee{static create(t,e,i,o){const r=t=>Ce(null!=t?t:o),n=Et`var(${Ce(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>Et`var(${Ce(t)}, ${r(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>o,n}static extend(t,e,i,o){const r=t=>i.get(null!=t?t:o),n=Et`var(${Ce(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i.category,n.fallbackVariable=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>Et`var(${Ce(t)}, ${r(e)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=o?o:i.lastResortDefaultValue(),n}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):Ce(null!=e?e:t.lastResortDefaultValue()),o=Et`var(${Ce(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=>Et`var(${Ce(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>t.lastResortDefaultValue(),o}}function ke(t,e){return Ce(`${t.name}: ${e}`)}const Re={colorWhite:Ee.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Ee.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Ee.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Ee.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Ee.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Ee.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Ee.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Ee.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Ee.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Ee.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Ee.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Ee.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Ee.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Ee.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Ee.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Ee.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Ee.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Ee.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Ee.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Ee.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Ee.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Ee.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Ee.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Ee.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Ee.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Ee.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Ee.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Ee.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Ee.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Ee.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Ee.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Ee.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Ee.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Ee.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Ee.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Ee.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Ee.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Ee.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Ee.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Ee.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Ee.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Ee.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Ee.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Ee.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Ee.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Ee.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Ee.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Ee.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Ee.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Ee.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Ee.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Ee.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Ee.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Ee.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Ee.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Ee.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Ee.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Ee.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Ee.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Ee.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Ee.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Ee.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Ee.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Ee.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Ee.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Ee.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Ee.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Ee.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Ee.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Ee.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Ee.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Ee.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Ee.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Ee.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Ee.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Ee.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Ee.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Ee.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Ee.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Ee.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Ee.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Ee.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Ee.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Ee.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Ee.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Ee.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Ee.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Ee.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Ee.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Ee.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Ee.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Ee.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Ee.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Ee.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Ee.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Ee.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Ee.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Ee.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Ee.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Ee.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Ee.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Ee.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Ee.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Ee.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Ee.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Ee.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Ee.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Ee.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Ee.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Ee.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Ee.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Ee.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Ee.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Ee.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Ee.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Ee.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Ee.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Ee.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Ee.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Ee.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Ee.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Ee.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Ee.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Ee.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Ee.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Ee.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Ee.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Ee.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Ee.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Ee.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Ee.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Ee.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Ee.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Ee.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Ee.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Ee.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Ee.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Ee.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Ee.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Ee.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Ee.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Ee.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Ee.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Ee.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Ee.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Ee.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Ee.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Ee.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Ee.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Ee.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Ee.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Ee.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Ee.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Ee.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Ee.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Ee.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Ee.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Ee.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Ee.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Ee.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Ee.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Ee.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Ee.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Ee.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Ee.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Ee.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Ee.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Ee.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Ee.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Ee.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Ee.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Ee.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Ee.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Ee.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Ee.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Ee.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Ee.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Ee.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Ee.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Ee.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Ee.create("--ft-opacity-0","","NUMBER","0"),opacity8:Ee.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Ee.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Ee.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Ee.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Ee.create("--ft-opacity-80","","NUMBER","0.8")},Ie={display:{fontFamily:Ee.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Ee.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Ee.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ee.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Ee.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Ee.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:Ee.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ee.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Ee.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Ee.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:Ee.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Ee.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Ee.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Ee.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:Ee.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Ee.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Ee.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ee.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Ee.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Ee.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ee.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Ee.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ee.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Ee.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Ee.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ee.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Ee.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Ee.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Ee.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ee.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Ee.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Ee.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Ee.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Ee.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Ee.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Ee.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ee.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Ee.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ee.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Ee.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Ee.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Ee.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ee.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Ee.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Ee.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Ee.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ee.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Ee.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Ee.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Ee.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ee.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Ee.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Ee.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Ee.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ee.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ee.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Ee.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ee.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Ee.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Ee.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Ee.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ee.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Ee.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ee.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Ee.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ee.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Ee.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ee.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Ee.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Ee.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ee.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Ee.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ee.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Ee.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ee.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Ee.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ee.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Ee.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Ee.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Ee.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ee.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Ee.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Ee.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Ee.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ee.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Ee.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Ee.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Ee.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Ee.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ee.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Ee.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ee.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Ee.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Ee.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Ee.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ee.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Ee.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Ee.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Ee.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Ee.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Ee.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Ee.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Ee.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Ee.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Ee.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ee.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Ee.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Ee.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Ee.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Ee.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Ee.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Ee.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Ee.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Ee.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Ee.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Ee.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Ee.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},Ue={backgroundActionPrimary:Ee.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Re.colorBrand0),backgroundErrorPrimary:Ee.extend("--ft-background-error-primary","Used as background of error components.",Re.colorRed0),backgroundErrorSubtle:Ee.extend("--ft-background-error-subtle","Used as background of subtle error components.",Re.colorRed10),backgroundInfoPrimary:Ee.extend("--ft-background-info-primary","Used as background of information components.",Re.colorCyan200),backgroundInfoSubtle:Ee.extend("--ft-background-info-subtle","Used as background of subtle information components.",Re.colorCyan10),backgroundWarningPrimary:Ee.extend("--ft-background-warning-primary","Used as background of warning components.",Re.colorOrange300),backgroundWarningSubtle:Ee.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Re.colorOrange10),backgroundSuccessPrimary:Ee.extend("--ft-background-success-primary","Used as background of success components.",Re.colorGreen200),backgroundSuccessSubtle:Ee.extend("--ft-background-success-subtle","Used as background of subtle success components.",Re.colorGreen10),backgroundGlobalSurface:Ee.extend("--ft-background-global-surface","Used as app background.",Re.colorWhite),backgroundGlobalOnSurface:Ee.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Re.colorGray10),backgroundGlobalOnSurfaceDark:Ee.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Re.colorGray30),contentActionPrimary:Ee.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Re.colorBrand0),contentWarningPrimary:Ee.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Re.colorOrange300),contentWarningIconOnly:Ee.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Re.colorOrange0),contentErrorPrimary:Ee.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Re.colorRed0),contentErrorIconOnly:Ee.extend("--ft-content-error-icon-only","Used on error status icons alone",Re.colorRed0),contentInfoPrimary:Ee.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Re.colorCyan200),contentInfoIconOnly:Ee.extend("--ft-content-info-icon-only","Used on info status icons alone",Re.colorCyan0),contentSuccessIconOnly:Ee.extend("--ft-content-success-icon-only","Used on success status icons alone",Re.colorGreen0),contentSuccessPrimary:Ee.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Re.colorGreen200),contentGlobalPrimary:Ee.extend("--ft-content-global-primary","Used for main content on the page.",Re.colorGray500),contentGlobalSecondary:Ee.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Re.colorGray200),contentGlobalSubtle:Ee.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Re.colorGray0),contentGlobalOnColor:Ee.extend("--ft-content-global-on-color","Used for content on a dominant color.",Re.colorWhite),borderActionPrimary:Ee.extend("--ft-border-action-primary","Used as border for primary action components.",Re.colorBrand0),borderActionFocusRing:Ee.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Re.colorCyan0),borderWarningPrimary:Ee.extend("--ft-border-warning-primary","Used as border for warning components.",Re.colorOrange30),borderSuccessPrimary:Ee.extend("--ft-border-success-primary","Used as border for success components.",Re.colorGreen30),borderErrorPrimary:Ee.extend("--ft-border-error-primary","Used as border for error components.",Re.colorRed30),borderInfoPrimary:Ee.extend("--ft-border-info-primary","Used as border for information components.",Re.colorCyan30),borderGlobalSubtle:Ee.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Re.colorGray30),borderGlobalPrimary:Ee.extend("--ft-border-global-primary","Used as border for element like input.",Re.colorGray50),borderInputPrimary:Ee.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Re.colorGray80)},Le={largeHeight:Ee.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Ee.extend("--ft-button-large-horizontal-padding","",Re.spacing4),largeGap:Ee.extend("--ft-button-large-gap","",Re.spacing2),largeBorderRadius:Ee.extend("--ft-button-large-border-radius","",Re.borderRadiusS),largeIconSize:Ee.extend("--ft-button-large-icon-size","",Re.iconSize3),largeBorderWidth:Ee.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Ee.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Ee.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Ee.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Ee.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Ee.extend("--ft-button-small-horizontal-padding","",Re.spacing3),smallGap:Ee.extend("--ft-button-small-gap","",Re.spacing2),smallBorderRadius:Ee.extend("--ft-button-small-border-radius","",Re.borderRadiusS),smallIconSize:Ee.extend("--ft-button-small-icon-size","",Re.iconSize2),smallBorderWidth:Ee.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Ee.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Ee.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Ee.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Ee.extend("--ft-button-primary-background-color","",Ue.backgroundActionPrimary),primaryColor:Ee.extend("--ft-button-primary-color","",Ue.contentGlobalOnColor),primaryIconColor:Ee.extend("--ft-button-primary-icon-color","",Ue.contentGlobalOnColor),primaryStateLayerColor:Ee.extend("--ft-button-primary-state-layer-color","",Ue.contentGlobalOnColor),primaryStateLayerOpacityHover:Ee.extend("--ft-button-primary-state-layer-opacity-hover","",Re.opacity16),primaryStateLayerOpacityFocus:Ee.extend("--ft-button-primary-state-layer-opacity-focus","",Re.opacity16),primaryStateLayerOpacityActive:Ee.extend("--ft-button-primary-state-layer-opacity-active","",Re.opacity24),primaryComponentOpacityDisabled:Ee.extend("--ft-button-primary-component-opacity-disabled","",Re.opacity40),focusFocusRingColor:Ee.extend("--ft-button-focus-focus-ring-color","",Ue.borderActionFocusRing),tertiaryBackgroundColor:Ee.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Ee.extend("--ft-button-tertiary-color","",Ue.contentActionPrimary),tertiaryIconColor:Ee.extend("--ft-button-tertiary-icon-color","",Ue.contentActionPrimary),tertiaryStateLayerColor:Ee.extend("--ft-button-tertiary-state-layer-color","",Ue.contentActionPrimary),tertiaryStateLayerOpacityHover:Ee.extend("--ft-button-tertiary-state-layer-opacity-hover","",Re.opacity8),tertiaryStateLayerOpacityFocus:Ee.extend("--ft-button-tertiary-state-layer-opacity-focus","",Re.opacity8),tertiaryStateLayerOpacityActive:Ee.extend("--ft-button-tertiary-state-layer-opacity-active","",Re.opacity16),tertiaryComponentOpacityDisabled:Ee.extend("--ft-button-tertiary-component-opacity-disabled","",Re.opacity40),secondaryBackgroundColor:Ee.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:Ee.extend("--ft-button-secondary-color","",Ue.contentActionPrimary),secondaryIconColor:Ee.extend("--ft-button-secondary-icon-color","",Ue.contentActionPrimary),secondaryStateLayerColor:Ee.extend("--ft-button-secondary-state-layer-color","",Ue.contentActionPrimary),secondaryStateLayerOpacityHover:Ee.extend("--ft-button-secondary-state-layer-opacity-hover","",Re.opacity8),secondaryStateLayerOpacityFocus:Ee.extend("--ft-button-secondary-state-layer-opacity-focus","",Re.opacity8),secondaryStateLayerOpacityActive:Ee.extend("--ft-button-secondary-state-layer-opacity-active","",Re.opacity16),secondaryComponentOpacityDisabled:Ee.extend("--ft-button-secondary-component-opacity-disabled","",Re.opacity40),secondaryBorderColor:Ee.extend("--ft-button-secondary-border-color","",Ue.borderActionPrimary),neutralBackgroundColor:Ee.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Ee.extend("--ft-button-neutral-icon-color","",Ue.contentGlobalSecondary),neutralColor:Ee.extend("--ft-button-neutral-color","",Ue.contentGlobalSecondary),neutralStateLayerColor:Ee.extend("--ft-button-neutral-state-layer-color","",Ue.contentGlobalSecondary),neutralStateLayerOpacityHover:Ee.extend("--ft-button-neutral-state-layer-opacity-hover","",Re.opacity8),neutralStateLayerOpacityFocus:Ee.extend("--ft-button-neutral-state-layer-opacity-focus","",Re.opacity8),neutralStateLayerOpacityActive:Ee.extend("--ft-button-neutral-state-layer-opacity-active","",Re.opacity16),neutralComponentOpacityDisabled:Ee.extend("--ft-button-neutral-component-opacity-disabled","",Re.opacity40)};Ee.extend("--ft-tabs-top-left-border-radius","",Re.borderRadiusS),Ee.extend("--ft-tabs-top-right-border-radius","",Re.borderRadiusS),Ee.extend("--ft-tabs-label-horizontal-padding","",Re.spacing4),Ee.extend("--ft-tabs-label-vertical-padding","",Re.spacing3),Ee.extend("--ft-tabs-label-gap","",Re.spacing1),Ee.extend("--ft-switch-group-horizontal-padding","",Re.spacing1),Ee.extend("--ft-switch-group-vertical-padding","",Re.spacing1),Ee.extend("--ft-switch-group-gap","",Re.spacing1),Ee.extend("--ft-switch-group-background-color","",Ue.backgroundGlobalSurface),Ee.extend("--ft-switch-group-border-color","",Ue.borderGlobalSubtle),Ee.create("--ft-switch-group-border-radius","","SIZE","6px"),Ee.extend("--ft-switch-label-horizontal-padding","",Re.spacing2),Ee.extend("--ft-switch-label-vertical-padding","",Re.spacing1),Ee.extend("--ft-switch-icon-horizontal-padding","",Re.spacing1),Ee.extend("--ft-switch-icon-vertical-padding","",Re.spacing1),Ee.create("--ft-switch-focus-outline-width","","SIZE","2px"),Ee.extend("--ft-switch-focus-focus-ring-color","",Ue.borderActionFocusRing),Ee.extend("--ft-switch-option-border-radius","",Re.borderRadiusS),Ee.extend("--ft-switch-off-state-layer-opacity-hover","",Re.opacity8),Ee.extend("--ft-switch-off-state-layer-opacity-focus","",Re.opacity8),Ee.extend("--ft-switch-off-state-layer-opacity-active","",Re.opacity16),Ee.extend("--ft-switch-off-component-opacity-disabled","",Re.opacity40),Ee.extend("--ft-switch-off-color","",Ue.contentGlobalSubtle),Ee.extend("--ft-switch-off-state-layer-color","",Ue.contentGlobalSubtle),Ee.extend("--ft-chart-1-light","for area color charts",Re.colorBrand40),Ee.extend("--ft-chart-1-base","for line charts",Re.colorBrand0),Ee.extend("--ft-chart-2-light","for area color charts",Re.colorYellow60),Ee.extend("--ft-chart-2-base","for line charts",Re.colorYellow100),Ee.extend("--ft-chart-3-light","",Re.colorUltramarine40),Ee.extend("--ft-chart-3-base","",Re.colorUltramarine70),Ee.extend("--ft-chart-4-light","",Re.colorCyan50),Ee.extend("--ft-chart-4-base","",Re.colorCyan100),Ee.extend("--ft-chart-5-light","",Re.colorRed40),Ee.extend("--ft-chart-5-base","",Re.colorRed60),Ee.extend("--ft-chart-6-light","",Re.colorGreen40),Ee.extend("--ft-chart-6-base","",Re.colorGreen70),Ee.extend("--ft-chart-7-light","",Re.colorOrange70),Ee.extend("--ft-chart-7-base","",Re.colorOrange100),Ee.extend("--ft-chart-8-light","",Re.colorAvocado70),Ee.extend("--ft-chart-8-base","",Re.colorAvocado200),Ee.extend("--ft-chart-9-light","",Re.colorBrown50),Ee.extend("--ft-chart-9-base","",Re.colorBrown200),Ee.extend("--ft-chart-10-light","",Re.colorGray50),Ee.extend("--ft-chart-10-base","",Re.colorGray80),Ee.extend("--ft-chart-monochrome-10","",Re.colorBrand10),Ee.extend("--ft-chart-monochrome-20","",Re.colorBrand20),Ee.extend("--ft-chart-monochrome-30","",Re.colorBrand40),Ee.extend("--ft-chart-monochrome-40","",Re.colorBrand60),Ee.extend("--ft-chart-monochrome-50","",Re.colorBrand0),Ee.extend("--ft-chart-monochrome-60","",Re.colorBrand200),Ee.extend("--ft-chip-large-horizontal-padding","",Re.spacing4),Ee.extend("--ft-chip-large-vertical-padding","",Re.spacing2),Ee.extend("--ft-chip-large-gap","",Re.spacing1),Ee.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Ee.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Ee.extend("--ft-chip-large-border-radius","",Re.borderRadiusPill),Ee.create("--ft-chip-large-border-width","","SIZE","1px"),Ee.extend("--ft-chip-large-icon-size","",Re.iconSize3),Ee.extend("--ft-chip-medium-horizontal-padding","",Re.spacing3),Ee.extend("--ft-chip-medium-vertical-padding","",Re.spacing1),Ee.extend("--ft-chip-medium-gap","",Re.spacing1),Ee.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Ee.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Ee.extend("--ft-chip-medium-border-radius","",Re.borderRadiusPill),Ee.create("--ft-chip-medium-border-width","","SIZE","1px"),Ee.extend("--ft-chip-medium-icon-size","",Re.iconSize2),Ee.extend("--ft-chip-small-horizontal-padding","",Re.spacing2),Ee.extend("--ft-chip-small-vertical-padding","",Re.spacing05),Ee.extend("--ft-chip-small-gap","",Re.spacing1),Ee.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Ee.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Ee.extend("--ft-chip-small-border-radius","",Re.borderRadiusPill),Ee.create("--ft-chip-small-border-width","","SIZE","1px"),Ee.extend("--ft-chip-small-icon-size","",Re.iconSize1),Ee.extend("--ft-chip-neutral-background-color","",Ue.backgroundGlobalOnSurface),Ee.extend("--ft-chip-neutral-color","",Ue.contentGlobalPrimary),Ee.extend("--ft-chip-neutral-border-color","",Ue.borderGlobalSubtle),Ee.extend("--ft-chip-info-background-color","",Ue.backgroundInfoSubtle),Ee.extend("--ft-chip-info-color","",Ue.contentInfoPrimary),Ee.extend("--ft-chip-info-border-color","",Ue.borderInfoPrimary),Ee.extend("--ft-chip-success-background-color","",Ue.backgroundSuccessSubtle),Ee.extend("--ft-chip-success-color","",Ue.contentSuccessPrimary),Ee.extend("--ft-chip-success-border-color","",Ue.borderSuccessPrimary),Ee.extend("--ft-chip-warning-background-color","",Ue.backgroundWarningSubtle),Ee.extend("--ft-chip-warning-color","",Ue.contentWarningPrimary),Ee.extend("--ft-chip-warning-border-color","",Ue.borderWarningPrimary),Ee.extend("--ft-chip-error-background-color","",Ue.backgroundErrorSubtle),Ee.extend("--ft-chip-error-color","",Ue.contentErrorPrimary),Ee.extend("--ft-chip-error-border-color","",Ue.borderErrorPrimary),Ee.create("--ft-notice-border-width","","SIZE","1px"),Ee.extend("--ft-notice-horizontal-padding","",Re.spacing2),Ee.extend("--ft-notice-vertical-padding","",Re.spacing1),Ee.extend("--ft-notice-border-radius","",Re.borderRadiusS),Ee.extend("--ft-notice-gap","",Re.spacing2),Ee.extend("--ft-notice-icon-size","",Re.iconSize3),Ee.extend("--ft-notice-info-background-color","",Ue.backgroundInfoSubtle),Ee.extend("--ft-notice-info-border-color","",Ue.borderInfoPrimary),Ee.extend("--ft-notice-info-color","",Ue.contentInfoPrimary),Ee.extend("--ft-notice-warning-background-color","",Ue.backgroundWarningSubtle),Ee.extend("--ft-notice-warning-border-color","",Ue.borderWarningPrimary),Ee.extend("--ft-notice-warning-color","",Ue.contentWarningPrimary),Ee.extend("--ft-checkbox-label-color","",Ue.contentGlobalPrimary),Ee.extend("--ft-checkbox-checked-background-color","",Ue.contentActionPrimary),Ee.extend("--ft-checkbox-checked-state-layer-color","",Ue.contentActionPrimary),Ee.extend("--ft-checkbox-checked-color","",Ue.contentGlobalOnColor),Ee.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Re.opacity16),Ee.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Re.opacity16),Ee.extend("--ft-checkbox-checked-state-layer-opacity-active","",Re.opacity24),Ee.extend("--ft-checkbox-checked-component-opacity-disabled","",Re.opacity40),Ee.extend("--ft-checkbox-unchecked-border-color","",Re.colorGray80),Ee.extend("--ft-checkbox-unchecked-state-layer-color","",Re.colorGray80),Ee.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Re.opacity16),Ee.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Re.opacity16),Ee.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Re.opacity24),Ee.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Re.opacity40),Ee.extend("--ft-checkbox-focus-focus-ring-color","",Ue.borderActionFocusRing),Ee.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Ee.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Ee.extend("--ft-checkbox-gap","",Re.spacing3),Ee.extend("--ft-toggle-off-state-layer-opacity-hover","",Re.opacity16),Ee.extend("--ft-toggle-off-state-layer-opacity-focus","",Re.opacity16),Ee.extend("--ft-toggle-off-state-layer-opacity-active","",Re.opacity24),Ee.extend("--ft-toggle-off-component-opacity-disabled","",Re.opacity40),Ee.extend("--ft-toggle-off-background-color","",Ue.contentGlobalSubtle),Ee.extend("--ft-toggle-off-icon-color","",Ue.contentGlobalSubtle),Ee.extend("--ft-toggle-off-state-layer-color","",Ue.contentGlobalSubtle),Ee.extend("--ft-toggle-on-state-layer-opacity-hover","",Re.opacity16),Ee.extend("--ft-toggle-on-state-layer-opacity-focus","",Re.opacity16),Ee.extend("--ft-toggle-on-state-layer-opacity-active","",Re.opacity24),Ee.extend("--ft-toggle-on-component-opacity-disabled","",Re.opacity40),Ee.extend("--ft-toggle-on-background-color","",Ue.contentActionPrimary),Ee.extend("--ft-toggle-on-icon-color","",Ue.contentActionPrimary),Ee.extend("--ft-toggle-on-state-layer-color","",Ue.contentActionPrimary),Ee.extend("--ft-toggle-label-color","",Ue.contentGlobalPrimary),Ee.extend("--ft-toggle-focus-focus-ring-color","",Ue.borderActionFocusRing),Ee.extend("--ft-toggle-gap","",Re.spacing3),Ee.extend("--ft-radio-label-color","",Ue.contentGlobalPrimary),Ee.extend("--ft-radio-selected-color","",Ue.contentActionPrimary),Ee.extend("--ft-radio-selected-state-layer-color","",Ue.contentActionPrimary),Ee.extend("--ft-radio-selected-state-layer-opacity-hover","",Re.opacity16),Ee.extend("--ft-radio-selected-state-layer-opacity-focus","",Re.opacity16),Ee.extend("--ft-radio-selected-state-layer-opacity-active","",Re.opacity24),Ee.extend("--ft-radio-selected-component-opacity-disabled","",Re.opacity40),Ee.extend("--ft-radio-unselected-state-layer-color","",Re.colorGray80),Ee.extend("--ft-radio-unselected-state-layer-opacity-hover","",Re.opacity16),Ee.extend("--ft-radio-unselected-state-layer-opacity-focus","",Re.opacity16),Ee.extend("--ft-radio-unselected-state-layer-opacity-active","",Re.opacity24),Ee.extend("--ft-radio-unselected-component-opacity-disabled","",Re.opacity40),Ee.extend("--ft-radio-focus-focus-ring-color","",Ue.borderActionFocusRing),Ee.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Ee.create("--ft-radio-focus-outline-width","","SIZE","2px"),Ee.extend("--ft-radio-gap","",Re.spacing3),Ee.extend("--ft-notification-icon-size","",Re.iconSize4),Ee.extend("--ft-notification-horizontal-padding","",Re.spacing4),Ee.extend("--ft-notification-vertical-padding","",Re.spacing4),Ee.extend("--ft-notification-info-background-color","",Ue.backgroundInfoSubtle),Ee.extend("--ft-notification-info-color","",Ue.contentInfoPrimary),Ee.extend("--ft-notification-info-border-color","",Ue.borderInfoPrimary),Ee.extend("--ft-notification-success-background-color","",Ue.backgroundSuccessSubtle),Ee.extend("--ft-notification-success-color","",Ue.contentSuccessPrimary),Ee.extend("--ft-notification-success-border-color","",Ue.borderSuccessPrimary),Ee.extend("--ft-notification-warning-background-color","",Ue.backgroundWarningSubtle),Ee.extend("--ft-notification-warning-color","",Ue.contentWarningPrimary),Ee.extend("--ft-notification-warning-border-color","",Ue.borderWarningPrimary),Ee.extend("--ft-notification-error-background-color","",Ue.backgroundErrorSubtle),Ee.extend("--ft-notification-error-color","",Ue.contentErrorPrimary),Ee.extend("--ft-notification-error-border-color","",Ue.borderErrorPrimary),Ee.extend("--ft-notification-border-radius","",Re.borderRadiusPill),Ee.create("--ft-notification-border-width","","SIZE","1px"),Ee.extend("--ft-notification-gap-leading","",Re.spacing2),Ee.extend("--ft-notification-gap-trailing","",Re.spacing8);const Ae={colorPrimary:Ee.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:Ee.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:Ee.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:Ee.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:Ee.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:Ee.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Ee.create("--ft-color-error","","COLOR","#B00020"),colorOutline:Ee.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Ee.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:Ee.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:Ee.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:Ee.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:Ee.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:Ee.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Ee.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Ee.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:Ee.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:Ee.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Ee.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Ee.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Ee.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Ee.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Ee.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Ee.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:Ee.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:Ee.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:Ee.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:Ee.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:Ee.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:Ee.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Ee.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Ee.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:Ee.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Ee.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Ee.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Ee.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Ee.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Ee.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Ee.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:Ee.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Ee.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Ee.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Ee.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Ee.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:Ee.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:Ee.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:Ee.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:Ee.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:Ee.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:Ee.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:Ee.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:Ee.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:Ee.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:Ee.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:Ee.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:Ee.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:Ee.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:Ee.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:Ee.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Ee.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Ee.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:Ee.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};class _e extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}
86
+ /**
87
+ * @license
88
+ * Copyright 2019 Google LLC
89
+ * SPDX-License-Identifier: BSD-3-Clause
90
+ */const Te=window,We=Te.ShadowRoot&&(void 0===Te.ShadyCSS||Te.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class De extends $e{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{We?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=Te.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))})(i,t.elementStyles),i}}var Fe,Pe=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const Me=Symbol("constructorPrototype"),ze=Symbol("constructorName"),je=Symbol("exportpartsDebouncer");class Be extends De{constructor(){super(),this[Fe]=new r(5),this[ze]=this.constructor.name,this[Me]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ze]&&Object.setPrototypeOf(this,this[Me])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[je].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,r,n,a;const s=t=>null!=t&&t.trim().length>0,l=t.filter(s).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...i).filter(s).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}Fe=je,Pe([k()],Be.prototype,"exportpartsPrefix",void 0),Pe([W([])],Be.prototype,"exportpartsPrefixes",void 0),Pe([k()],Be.prototype,"customStylesheet",void 0);const Ke=Et`
70
91
  .ft-no-text-select {
71
92
  -webkit-touch-callout: none;
72
93
  -webkit-user-select: none;
@@ -75,7 +96,7 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
75
96
  -ms-user-select: none;
76
97
  user-select: none;
77
98
  }
78
- `;$`
99
+ `;Et`
79
100
  .ft-word-wrap {
80
101
  white-space: normal;
81
102
  word-wrap: break-word;
@@ -87,7 +108,7 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
87
108
  -webkit-hyphens: auto;
88
109
  hyphens: auto
89
110
  }
90
- `;const Mt=$`
111
+ `;const Ze=Et`
91
112
  .ft-safari-ellipsis-fix {
92
113
  margin-right: 0;
93
114
 
@@ -98,7 +119,7 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
98
119
  display: inline-block;
99
120
  width: 0;
100
121
  }
101
- `;class Pt{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let r=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(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 Kt(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Zt,Ht,Gt;const Vt=Symbol("internalReduxEventsUnsubscribers"),qt=Symbol("internalStoresUnsubscribers"),Yt=Symbol("internalStores");class Xt extends zt{constructor(){super(...arguments),this[Zt]=new Map,this[Ht]=new Map,this[Gt]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Yt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Yt].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Yt].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Kt(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Yt].delete(e)}setupStore(t,e){this[Yt].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Yt].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}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&&(t.store?this[qt].has(t.store):this[qt].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[qt].set(t,e.subscribe((()=>this.updateFromStores()))),Kt(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[Vt].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[qt].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Vt].forEach((t=>t())),this[Vt]=[]}unsubscribeFromStore(t){this[qt].has(t)&&this[qt].get(t)(),this[qt].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function Jt(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 Qt(t){return!!t&&!!t[je]}function te(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===ze}(t)||Array.isArray(t)||!!t[Fe]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Fe])||ae(t)||se(t))}function ee(t,e,i){void 0===i&&(i=!1),0===ie(t)?(i?Object.keys:Be)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function ie(t){var e=t[je];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ae(t)?2:se(t)?3:0}function oe(t,e){return 2===ie(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function re(t,e,i){var o=ie(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function ne(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function ae(t){return Ae&&t instanceof Map}function se(t){return Te&&t instanceof Set}function le(t){return t.o||t.t}function ce(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Me(t);delete e[je];for(var i=Be(e),o=0;o<i.length;o++){var r=i[o],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function fe(t,e){return void 0===e&&(e=!1),he(t)||Qt(t)||!te(t)||(ie(t)>1&&(t.set=t.add=t.clear=t.delete=de),Object.freeze(t),e&&ee(t,(function(t,e){return fe(e,!0)}),!0)),t}function de(){Jt(2)}function he(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function ue(t){var e=Pe[t];return e||Jt(18,t),e}function pe(){return Le}function ye(t,e){e&&(ue("Patches"),t.u=[],t.s=[],t.v=e)}function be(t){ge(t),t.p.forEach(me),t.p=null}function ge(t){t===Le&&(Le=t.l)}function ve(t){return Le={p:[],l:Le,h:t,m:!0,_:0}}function me(t){var e=t[je];0===e.i||1===e.i?e.j():e.g=!0}function xe(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||ue("ES5").S(e,t,o),o?(i[je].P&&(be(e),Jt(4)),te(t)&&(t=we(e,t),e.l||Se(e,t)),e.u&&ue("Patches").M(i[je].t,t,e.u,e.s)):t=we(e,i,[]),be(e),e.u&&e.v(e.u,e.s),t!==De?t:void 0}function we(t,e,i){if(he(e))return e;var o=e[je];if(!o)return ee(e,(function(r,n){return Oe(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Se(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=ce(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),ee(n,(function(e,n){return Oe(t,o,r,e,n,i,a)})),Se(t,r,!1),i&&t.u&&ue("Patches").N(o,i,t.u,t.s)}return o.o}function Oe(t,e,i,o,r,n,a){if(Qt(r)){var s=we(t,r,n&&e&&3!==e.i&&!oe(e.R,o)?n.concat(o):void 0);if(re(i,o,s),!Qt(s))return;t.m=!1}else a&&i.add(r);if(te(r)&&!he(r)){if(!t.h.D&&t._<1)return;we(t,r),e&&e.A.l||Se(t,r)}}function Se(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&fe(e,i)}function $e(t,e){var i=t[je];return(i?le(i):t)[e]}function Ne(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 Ce(t){t.P||(t.P=!0,t.l&&Ce(t.l))}function ke(t){t.o||(t.o=ce(t.t))}function Ee(t,e,i){var o=ae(e)?ue("MapSet").F(e,i):se(e)?ue("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:pe(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=Ke;i&&(r=[o],n=Ze);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):ue("ES5").J(e,i);return(i?i.A:pe()).p.push(o),o}function Re(t){return Qt(t)||Jt(22,t),function t(e){if(!te(e))return e;var i,o=e[je],r=ie(e);if(o){if(!o.P&&(o.i<4||!ue("ES5").K(o)))return o.t;o.I=!0,i=Ie(e,r),o.I=!1}else i=Ie(e,r);return ee(i,(function(e,r){o&&function(t,e){return 2===ie(t)?t.get(e):t[e]}(o.t,e)===r||re(i,e,t(r))})),3===r?new Set(i):i}(t)}function Ie(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return ce(t)}Zt=qt,Ht=Yt,Gt=Vt;var Ue,Le,_e="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ae="undefined"!=typeof Map,Te="undefined"!=typeof Set,We="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,De=_e?Symbol.for("immer-nothing"):((Ue={})["immer-nothing"]=!0,Ue),Fe=_e?Symbol.for("immer-draftable"):"__$immer_draftable",je=_e?Symbol.for("immer-state"):"__$immer_state",ze=""+Object.prototype.constructor,Be="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Me=Object.getOwnPropertyDescriptors||function(t){var e={};return Be(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Pe={},Ke={get:function(t,e){if(e===je)return t;var i=le(t);if(!oe(i,e))return function(t,e,i){var o,r=Ne(e,i);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!te(o)?o:o===$e(t.t,e)?(ke(t),t.o[e]=Ee(t.A.h,o,t)):o},has:function(t,e){return e in le(t)},ownKeys:function(t){return Reflect.ownKeys(le(t))},set:function(t,e,i){var o=Ne(le(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=$e(le(t),e),n=null==r?void 0:r[je];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(ne(i,r)&&(void 0!==i||oe(t.t,e)))return!0;ke(t),Ce(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==$e(t.t,e)||e in t.t?(t.R[e]=!1,ke(t),Ce(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=le(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(){Jt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Jt(12)}},Ze={};ee(Ke,(function(t,e){Ze[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ze.deleteProperty=function(t,e){return Ze.set.call(this,t,e,void 0)},Ze.set=function(t,e,i){return Ke.set.call(this,t[0],e,i,t[0])};var He=function(){function t(t){var e=this;this.O=We,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(a))}))}}var a;if("function"!=typeof i&&Jt(6),void 0!==o&&"function"!=typeof o&&Jt(7),te(t)){var s=ve(e),l=Ee(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?be(s):ge(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return ye(s,o),xe(t,s)}),(function(t){throw be(s),t})):(ye(s,o),xe(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===De&&(a=void 0),e.D&&fe(a,!0),o){var f=[],d=[];ue("Patches").M(t,a,f,d),o(f,d)}return a}Jt(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var o,r,n=e.produce(t,i,(function(t,e){o=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,o,r]})):[n,o,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){te(t)||Jt(8),Qt(t)&&(t=Re(t));var e=ve(this),i=Ee(this,t,void 0);return i[je].C=!0,ge(e),i},e.finishDraft=function(t,e){var i=(t&&t[je]).A;return ye(i,e),xe(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!We&&Jt(20),this.O=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 r=ue("Patches").$;return Qt(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Ge=new He,Ve=Ge.produce;function qe(t){return qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qe(t)}function Ye(t){var e=function(t,e){if("object"!==qe(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==qe(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===qe(e)?e:String(e)}function Xe(t,e,i){return(e=Ye(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Je(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 Qe(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Je(Object(i),!0).forEach((function(e){Xe(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Je(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function ti(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. "}Ge.produceWithPatches.bind(Ge),Ge.setAutoFreeze.bind(Ge),Ge.setUseProxies.bind(Ge),Ge.applyPatches.bind(Ge),Ge.createDraft.bind(Ge),Ge.finishDraft.bind(Ge);var ei="function"==typeof Symbol&&Symbol.observable||"@@observable",ii=function(){return Math.random().toString(36).substring(7).split("").join(".")},oi={INIT:"@@redux/INIT"+ii(),REPLACE:"@@redux/REPLACE"+ii(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ii()}};function ri(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(ti(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(ti(1));return i(ri)(t,e)}if("function"!=typeof t)throw new Error(ti(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function f(){if(l)throw new Error(ti(3));return n}function d(t){if("function"!=typeof t)throw new Error(ti(4));if(l)throw new Error(ti(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(ti(6));e=!1,c();var i=s.indexOf(t);s.splice(i,1),a=null}}}function h(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(ti(7));if(void 0===t.type)throw new Error(ti(8));if(l)throw new Error(ti(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,i=0;i<e.length;i++){(0,e[i])()}return t}return h({type:oi.INIT}),(o={dispatch:h,subscribe:d,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ti(10));r=t,h({type:oi.REPLACE})}})[ei]=function(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ti(11));function i(){t.next&&t.next(f())}return i(),{unsubscribe:e(i)}}})[ei]=function(){return this},t},o}function ni(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var r=e[o];"function"==typeof t[r]&&(i[r]=t[r])}var n,a=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:oi.INIT}))throw new Error(ti(12));if(void 0===i(void 0,{type:oi.PROBE_UNKNOWN_ACTION()}))throw new Error(ti(13))}))}(i)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var o=!1,r={},s=0;s<a.length;s++){var l=a[s],c=i[l],f=t[l],d=c(f,e);if(void 0===d)throw e&&e.type,new Error(ti(14));r[l]=d,o=o||d!==f}return(o=o||a.length!==Object.keys(t).length)?r:t}}function ai(){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 si(){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(ti(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=ai.apply(void 0,n)(i.dispatch),Qe(Qe({},i),{},{dispatch:o})}}}function li(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,o,t):e(r)}}}}var ci=li();ci.withExtraArgument=li;var fi,di=ci,hi=(fi=function(t,e){return fi=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])},fi(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}fi(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),ui=function(t,e){var i,o,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},pi=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},yi=Object.defineProperty,bi=Object.defineProperties,gi=Object.getOwnPropertyDescriptors,vi=Object.getOwnPropertySymbols,mi=Object.prototype.hasOwnProperty,xi=Object.prototype.propertyIsEnumerable,wi=function(t,e,i){return e in t?yi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Oi=function(t,e){for(var i in e||(e={}))mi.call(e,i)&&wi(t,i,e[i]);if(vi)for(var o=0,r=vi(e);o<r.length;o++){i=r[o];xi.call(e,i)&&wi(t,i,e[i])}return t},Si=function(t,e){return bi(t,gi(e))},$i="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ai:ai.apply(null,arguments)};var Ni=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return hi(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,pi([void 0],t[0].concat(this)))):new(e.bind.apply(e,pi([void 0],t.concat(this))))},e}(Array),Ci=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return hi(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,pi([void 0],t[0].concat(this)))):new(e.bind.apply(e,pi([void 0],t.concat(this))))},e}(Array);function ki(t){return te(t)?Ve(t,(function(){})):t}function Ei(){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 Ni;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(di.withExtraArgument(i.extraArgument)):o.push(di));return o}(t)}}function Ri(t){var e,i=Ei(),o=t||{},r=o.reducer,n=void 0===r?void 0:r,a=o.middleware,s=void 0===a?i():a,l=o.devTools,c=void 0===l||l,f=o.preloadedState,d=void 0===f?void 0:f,h=o.enhancers,u=void 0===h?void 0:h;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=ni(n)}var p=s;"function"==typeof p&&(p=p(i));var y=si.apply(void 0,p),b=ai;c&&(b=$i(Oi({trace:!1},"object"==typeof c&&c)));var g=new Ci(y),v=g;return Array.isArray(u)?v=pi([y],u):"function"==typeof u&&(v=u(g)),ri(e,d,b.apply(void 0,v))}function Ii(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return Oi(Oi({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:t,payload:i[0]}}return i.toString=function(){return""+t},i.type=t,i.match=function(e){return e.type===t},i}function Ui(t){var e,i={},o=[],r={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,r},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,o,e]}function Li(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:ki(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Ui(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,f=Oi(Oi({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?Ui(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return ki(t())};else{var c=ki(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var i=pi([a[e.type]],s.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(Qt(t))return void 0===(o=i(t,e))?t:o;if(te(t))return Ve(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 f.getInitialState=r,f}(o,(function(t){for(var e in f)t.addCase(e,f[e]);for(var i=0,o=a;i<o.length;i++){var r=o[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var i,o,n=r[t],c=e+"/"+t;"reducer"in n?(i=n.reducer,o=n.prepare):i=n,a[t]=i,s[c]=i,l[t]=o?Ii(c,o):Ii(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:a,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var _i=["name","message","stack","code"],Ai=function(t,e){this.payload=t,this.meta=e},Ti=function(t,e){this.payload=t,this.meta=e},Wi=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=_i;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Di(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var o=Ii(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:Si(Oi({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=Ii(t+"/pending",(function(t,e,i){return{payload:void 0,meta:Si(Oi({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Ii(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Wi)(t||"Rejected"),meta:Si(Oi({},n||{}),{arg:o,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,l,c){var f,d=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),h=new a;function u(t){f=t,h.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,b,g,v;return ui(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),b=null==(a=null==i?void 0:i.condition)?void 0:a.call(i,t,{getState:l,extra:c}),null===(x=b)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,b];case 1:b=m.sent(),m.label=2;case 2:if(!1===b||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return g=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(r(d,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:d,arg:t},{getState:l,extra:c}))),[4,Promise.race([g,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:d,signal:h.signal,abort:u,rejectWithValue:function(t,e){return new Ai(t,e)},fulfillWithValue:function(t,e){return new Ti(t,e)}})).then((function(e){if(e instanceof Ai)throw e;return e instanceof Ti?o(e.payload,d,t,e.meta):o(e,d,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof Ai?n(null,d,t,v.payload,v.meta):n(v,d,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var i=function(t){try{r(y.next(t))}catch(t){e(t)}},o=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};r((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:u,requestId:d,arg:t,unwrap:function(){return p.then(Di)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Fi="listenerMiddleware";Ii(Fi+"/add"),Ii(Fi+"/removeAll"),Ii(Fi+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[je];return Ke.get(e,t)},set:function(e){var i=this[je];Ke.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][je];if(!r.P)switch(r.i){case 5:o(r)&&Ce(r);break;case 4:i(r)&&Ce(r)}}}function i(t){for(var e=t.t,i=t.k,o=Be(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==je){var a=e[n];if(void 0===a&&!oe(e,n))return!0;var s=i[n],l=s&&s[je];if(l?l.t!==a:!ne(s,a))return!0}}var c=!!e[je];return o.length!==Be(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 r={};!function(t,e){Pe[t]||(Pe[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),r=function(e,i){if(e){for(var o=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(o,""+r,t(r,!0));return o}var n=Me(i);delete n[je];for(var a=Be(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(i),n)}(o,e),n={i:o?5:4,A:i?i.A:pe(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,je,{value:n,writable:!0}),r},S:function(t,i,r){r?Qt(i)&&i[je].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[je];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)ee(n,(function(e){e!==je&&(void 0!==r[e]||oe(r,e)?a[e]||t(n[e]):(a[e]=!0,Ce(i)))})),ee(r,(function(t){void 0!==n[t]||oe(n,t)||(a[t]=!1,Ce(i))}));else if(5===s){if(o(i)&&(Ce(i),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var f=Math.min(n.length,r.length),d=0;d<f;d++)n.hasOwnProperty(d)||(a[d]=!0),void 0===a[d]&&t(n[d])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class ji{static get(t){var e;const i="string"==typeof t?t:t.name,o="string"==typeof t?void 0:t,r=window.ftReduxStores[i];if(Kt(r))return r;if(null==o)return;const n=Li({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=Ri({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[o.name]=new ji(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=e,r=t[o];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[o]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const zi=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!y(t,e),attribute:!1,...e};a(r)(t,i);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}},Bi=Symbol("elementInternals");function Mi(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Bi].form}constructor(...t){super(t),this[Bi]=this.attachInternals(),this[Bi].role=e}setFormValue(t){this[Bi].setFormValue(t)}}}var Pi,Ki,Zi;const Hi=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Zi=null===(Ki=null===(Pi=window.safari)||void 0===Pi?void 0:Pi.pushNotification)||void 0===Ki?void 0:Ki.toString())&&void 0!==Zi?Zi:"");var Gi;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(Gi||(Gi={}));var Vi=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class qi extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const Yi=Symbol("registerInterval");class Xi extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Yi]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Yi]):this.dispatchEvent(new qi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Yi,Vi([s()],i.prototype,"stateManager",void 0),i}(Xt)){}const Ji=Ct.extend("--ft-ripple-color","",Lt.colorContent),Qi={color:Ji,backgroundColor:Ct.extend("--ft-ripple-background-color","",Ji),opacityContentOnSurfacePressed:Ct.external(Lt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ct.external(Lt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ct.external(Lt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ct.external(Lt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ct.create("--ft-ripple-border-radius","","SIZE","0px")},to=Ct.extend("--ft-ripple-color","",Lt.colorPrimary),eo=to,io=Ct.extend("--ft-ripple-background-color","",to),oo=Ct.extend("--ft-ripple-color","",Lt.colorSecondary),ro=oo,no=Ct.extend("--ft-ripple-background-color","",oo),ao=$`
122
+ `;class He{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var i,o;t=this.resolvePluralKey(t,e);let r=null!==(o=null!==(i=this.labels[t])&&void 0!==i?i:this.defaultLabels[t])&&void 0!==o?o:"";return e.forEach(((t,e)=>r=r.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,i)=>this.formatValue(t,i))))),r}resolvePluralKey(t,e){for(let i of e)if("number"==typeof i){const e=`${String(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 Ge(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Ve,qe,Ye;const Xe=Symbol("internalReduxEventsUnsubscribers"),Je=Symbol("internalStoresUnsubscribers"),Qe=Symbol("internalStores");class ti extends Be{constructor(){super(...arguments),this[Ve]=new Map,this[qe]=new Map,this[Ye]=[]}update(t){var e;super.update(t),(null===(e=this.reduxReactiveProperties)||void 0===e?void 0:e.some((e=>t.has(e))))&&this.updateFromStores()}getUnnamedStore(){if(this[Qe].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Qe].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[Qe].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Ge(t)?t.name:void 0)&&void 0!==i?i:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[Qe].delete(e)}setupStore(t,e){this[Qe].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Qe].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}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&&(t.store?this[Je].has(t.store):this[Je].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[Je].set(t,e.subscribe((()=>this.updateFromStores()))),Ge(e)&&e.eventBus&&(null===(i=this.reduxEventListeners)||void 0===i||i.forEach(((t,i)=>{if("function"==typeof this[i]&&(!t.store||e.name===t.store)){const o=t=>this[i](t);e.eventBus.addEventListener(t.eventName,o),this[Xe].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Je].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Xe].forEach((t=>t())),this[Xe]=[]}unsubscribeFromStore(t){this[Je].has(t)&&this[Je].get(t)(),this[Je].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function ei(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 ii(t){return!!t&&!!t[ji]}function oi(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return i===Object||"function"==typeof i&&Function.toString.call(i)===Bi}(t)||Array.isArray(t)||!!t[zi]||!!(null===(e=t.constructor)||void 0===e?void 0:e[zi])||ci(t)||hi(t))}function ri(t,e,i){void 0===i&&(i=!1),0===ni(t)?(i?Object.keys:Ki)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function ni(t){var e=t[ji];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ci(t)?2:hi(t)?3:0}function ai(t,e){return 2===ni(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function si(t,e,i){var o=ni(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function li(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function ci(t){return Di&&t instanceof Map}function hi(t){return Fi&&t instanceof Set}function fi(t){return t.o||t.t}function di(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Zi(t);delete e[ji];for(var i=Ki(e),o=0;o<i.length;o++){var r=i[o],n=e[r];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[r]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[r]})}return Object.create(Object.getPrototypeOf(t),e)}function ui(t,e){return void 0===e&&(e=!1),yi(t)||ii(t)||!oi(t)||(ni(t)>1&&(t.set=t.add=t.clear=t.delete=pi),Object.freeze(t),e&&ri(t,(function(t,e){return ui(e,!0)}),!0)),t}function pi(){ei(2)}function yi(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function gi(t){var e=Hi[t];return e||ei(18,t),e}function bi(){return Ti}function vi(t,e){e&&(gi("Patches"),t.u=[],t.s=[],t.v=e)}function mi(t){xi(t),t.p.forEach(Oi),t.p=null}function xi(t){t===Ti&&(Ti=t.l)}function wi(t){return Ti={p:[],l:Ti,h:t,m:!0,_:0}}function Oi(t){var e=t[ji];0===e.i||1===e.i?e.j():e.g=!0}function Si(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||gi("ES5").S(e,t,o),o?(i[ji].P&&(mi(e),ei(4)),oi(t)&&(t=$i(e,t),e.l||Ci(e,t)),e.u&&gi("Patches").M(i[ji].t,t,e.u,e.s)):t=$i(e,i,[]),mi(e),e.u&&e.v(e.u,e.s),t!==Mi?t:void 0}function $i(t,e,i){if(yi(e))return e;var o=e[ji];if(!o)return ri(e,(function(r,n){return Ni(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Ci(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=di(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),ri(n,(function(e,n){return Ni(t,o,r,e,n,i,a)})),Ci(t,r,!1),i&&t.u&&gi("Patches").N(o,i,t.u,t.s)}return o.o}function Ni(t,e,i,o,r,n,a){if(ii(r)){var s=$i(t,r,n&&e&&3!==e.i&&!ai(e.R,o)?n.concat(o):void 0);if(si(i,o,s),!ii(s))return;t.m=!1}else a&&i.add(r);if(oi(r)&&!yi(r)){if(!t.h.D&&t._<1)return;$i(t,r),e&&e.A.l||Ci(t,r)}}function Ci(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&ui(e,i)}function Ei(t,e){var i=t[ji];return(i?fi(i):t)[e]}function ki(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 Ri(t){t.P||(t.P=!0,t.l&&Ri(t.l))}function Ii(t){t.o||(t.o=di(t.t))}function Ui(t,e,i){var o=ci(e)?gi("MapSet").F(e,i):hi(e)?gi("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:bi(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=Gi;i&&(r=[o],n=Vi);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):gi("ES5").J(e,i);return(i?i.A:bi()).p.push(o),o}function Li(t){return ii(t)||ei(22,t),function t(e){if(!oi(e))return e;var i,o=e[ji],r=ni(e);if(o){if(!o.P&&(o.i<4||!gi("ES5").K(o)))return o.t;o.I=!0,i=Ai(e,r),o.I=!1}else i=Ai(e,r);return ri(i,(function(e,r){o&&function(t,e){return 2===ni(t)?t.get(e):t[e]}(o.t,e)===r||si(i,e,t(r))})),3===r?new Set(i):i}(t)}function Ai(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return di(t)}Ve=Je,qe=Qe,Ye=Xe;var _i,Ti,Wi="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Di="undefined"!=typeof Map,Fi="undefined"!=typeof Set,Pi="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Mi=Wi?Symbol.for("immer-nothing"):((_i={})["immer-nothing"]=!0,_i),zi=Wi?Symbol.for("immer-draftable"):"__$immer_draftable",ji=Wi?Symbol.for("immer-state"):"__$immer_state",Bi=""+Object.prototype.constructor,Ki="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Zi=Object.getOwnPropertyDescriptors||function(t){var e={};return Ki(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Hi={},Gi={get:function(t,e){if(e===ji)return t;var i=fi(t);if(!ai(i,e))return function(t,e,i){var o,r=ki(e,i);return r?"value"in r?r.value:null===(o=r.get)||void 0===o?void 0:o.call(t.k):void 0}(t,i,e);var o=i[e];return t.I||!oi(o)?o:o===Ei(t.t,e)?(Ii(t),t.o[e]=Ui(t.A.h,o,t)):o},has:function(t,e){return e in fi(t)},ownKeys:function(t){return Reflect.ownKeys(fi(t))},set:function(t,e,i){var o=ki(fi(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=Ei(fi(t),e),n=null==r?void 0:r[ji];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(li(i,r)&&(void 0!==i||ai(t.t,e)))return!0;Ii(t),Ri(t)}return t.o[e]===i&&(void 0!==i||e in t.o)||Number.isNaN(i)&&Number.isNaN(t.o[e])||(t.o[e]=i,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Ei(t.t,e)||e in t.t?(t.R[e]=!1,Ii(t),Ri(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=fi(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(){ei(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ei(12)}},Vi={};ri(Gi,(function(t,e){Vi[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Vi.deleteProperty=function(t,e){return Vi.set.call(this,t,e,void 0)},Vi.set=function(t,e,i){return Gi.set.call(this,t[0],e,i,t[0])};var qi=function(){function t(t){var e=this;this.O=Pi,this.D=!0,this.produce=function(t,i,o){if("function"==typeof t&&"function"!=typeof i){var r=i;i=t;var n=e;return function(t){var e=this;void 0===t&&(t=r);for(var o=arguments.length,a=Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var o;return(o=i).call.apply(o,[e,t].concat(a))}))}}var a;if("function"!=typeof i&&ei(6),void 0!==o&&"function"!=typeof o&&ei(7),oi(t)){var s=wi(e),l=Ui(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?mi(s):xi(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return vi(s,o),Si(t,s)}),(function(t){throw mi(s),t})):(vi(s,o),Si(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===Mi&&(a=void 0),e.D&&ui(a,!0),o){var h=[],f=[];gi("Patches").M(t,a,h,f),o(h,f)}return a}ei(21,t)},this.produceWithPatches=function(t,i){if("function"==typeof t)return function(i){for(var o=arguments.length,r=Array(o>1?o-1:0),n=1;n<o;n++)r[n-1]=arguments[n];return e.produceWithPatches(i,(function(e){return t.apply(void 0,[e].concat(r))}))};var o,r,n=e.produce(t,i,(function(t,e){o=t,r=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,o,r]})):[n,o,r]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){oi(t)||ei(8),ii(t)&&(t=Li(t));var e=wi(this),i=Ui(this,t,void 0);return i[ji].C=!0,xi(e),i},e.finishDraft=function(t,e){var i=(t&&t[ji]).A;return vi(i,e),Si(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Pi&&ei(20),this.O=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 r=gi("Patches").$;return ii(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Yi=new qi,Xi=Yi.produce;function Ji(t){return Ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ji(t)}function Qi(t){var e=function(t,e){if("object"!==Ji(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==Ji(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ji(e)?e:String(e)}function to(t,e,i){return(e=Qi(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function eo(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 io(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?eo(Object(i),!0).forEach((function(e){to(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):eo(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function oo(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. "}Yi.produceWithPatches.bind(Yi),Yi.setAutoFreeze.bind(Yi),Yi.setUseProxies.bind(Yi),Yi.applyPatches.bind(Yi),Yi.createDraft.bind(Yi),Yi.finishDraft.bind(Yi);var ro="function"==typeof Symbol&&Symbol.observable||"@@observable",no=function(){return Math.random().toString(36).substring(7).split("").join(".")},ao={INIT:"@@redux/INIT"+no(),REPLACE:"@@redux/REPLACE"+no(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+no()}};function so(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(oo(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(oo(1));return i(so)(t,e)}if("function"!=typeof t)throw new Error(oo(2));var r=t,n=e,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function h(){if(l)throw new Error(oo(3));return n}function f(t){if("function"!=typeof t)throw new Error(oo(4));if(l)throw new Error(oo(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(oo(6));e=!1,c();var i=s.indexOf(t);s.splice(i,1),a=null}}}function d(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(oo(7));if(void 0===t.type)throw new Error(oo(8));if(l)throw new Error(oo(9));try{l=!0,n=r(n,t)}finally{l=!1}for(var e=a=s,i=0;i<e.length;i++){(0,e[i])()}return t}return d({type:ao.INIT}),(o={dispatch:d,subscribe:f,getState:h,replaceReducer:function(t){if("function"!=typeof t)throw new Error(oo(10));r=t,d({type:ao.REPLACE})}})[ro]=function(){var t,e=f;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(oo(11));function i(){t.next&&t.next(h())}return i(),{unsubscribe:e(i)}}})[ro]=function(){return this},t},o}function lo(t){for(var e=Object.keys(t),i={},o=0;o<e.length;o++){var r=e[o];"function"==typeof t[r]&&(i[r]=t[r])}var n,a=Object.keys(i);try{!function(t){Object.keys(t).forEach((function(e){var i=t[e];if(void 0===i(void 0,{type:ao.INIT}))throw new Error(oo(12));if(void 0===i(void 0,{type:ao.PROBE_UNKNOWN_ACTION()}))throw new Error(oo(13))}))}(i)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var o=!1,r={},s=0;s<a.length;s++){var l=a[s],c=i[l],h=t[l],f=c(h,e);if(void 0===f)throw e&&e.type,new Error(oo(14));r[l]=f,o=o||f!==h}return(o=o||a.length!==Object.keys(t).length)?r:t}}function co(){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 ho(){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(oo(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=co.apply(void 0,n)(i.dispatch),io(io({},i),{},{dispatch:o})}}}function fo(t){return function(e){var i=e.dispatch,o=e.getState;return function(e){return function(r){return"function"==typeof r?r(i,o,t):e(r)}}}}var uo=fo();uo.withExtraArgument=fo;var po,yo=uo,go=(po=function(t,e){return po=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])},po(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}po(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),bo=function(t,e){var i,o,r,n,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,o=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){a.label=n[1];break}if(6===n[0]&&a.label<r[1]){a.label=r[1],r=n;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(n);break}r[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},vo=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},mo=Object.defineProperty,xo=Object.defineProperties,wo=Object.getOwnPropertyDescriptors,Oo=Object.getOwnPropertySymbols,So=Object.prototype.hasOwnProperty,$o=Object.prototype.propertyIsEnumerable,No=function(t,e,i){return e in t?mo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Co=function(t,e){for(var i in e||(e={}))So.call(e,i)&&No(t,i,e[i]);if(Oo)for(var o=0,r=Oo(e);o<r.length;o++){i=r[o];$o.call(e,i)&&No(t,i,e[i])}return t},Eo=function(t,e){return xo(t,wo(e))},ko="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?co:co.apply(null,arguments)};var Ro=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return go(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,vo([void 0],t[0].concat(this)))):new(e.bind.apply(e,vo([void 0],t.concat(this))))},e}(Array),Io=function(t){function e(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var r=t.apply(this,i)||this;return Object.setPrototypeOf(r,e.prototype),r}return go(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,vo([void 0],t[0].concat(this)))):new(e.bind.apply(e,vo([void 0],t.concat(this))))},e}(Array);function Uo(t){return oi(t)?Xi(t,(function(){})):t}function Lo(){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 Ro;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(yo.withExtraArgument(i.extraArgument)):o.push(yo));return o}(t)}}function Ao(t){var e,i=Lo(),o=t||{},r=o.reducer,n=void 0===r?void 0:r,a=o.middleware,s=void 0===a?i():a,l=o.devTools,c=void 0===l||l,h=o.preloadedState,f=void 0===h?void 0:h,d=o.enhancers,u=void 0===d?void 0:d;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var i=e;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return e===i}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=lo(n)}var p=s;"function"==typeof p&&(p=p(i));var y=ho.apply(void 0,p),g=co;c&&(g=ko(Co({trace:!1},"object"==typeof c&&c)));var b=new Io(y),v=b;return Array.isArray(u)?v=vo([y],u):"function"==typeof u&&(v=u(b)),so(e,f,g.apply(void 0,v))}function _o(t,e){function i(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(e){var r=e.apply(void 0,i);if(!r)throw new Error("prepareAction did not return an object");return Co(Co({type:t,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.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 To(t){var e,i={},o=[],r={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,r},addMatcher:function(t,e){return o.push({matcher:t,reducer:e}),r},addDefaultCase:function(t){return e=t,r}};return t(r),[i,o,e]}function Wo(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:Uo(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?To(t.extraReducers):[t.extraReducers],i=e[0],r=void 0===i?{}:i,n=e[1],a=void 0===n?[]:n,l=e[2],c=void 0===l?void 0:l,h=Co(Co({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?To(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Uo(t())};else{var c=Uo(t);r=function(){return c}}function h(t,e){void 0===t&&(t=r());var i=vo([a[e.type]],s.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(ii(t))return void 0===(o=i(t,e))?t:o;if(oi(t))return Xi(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=r,h}(o,(function(t){for(var e in h)t.addCase(e,h[e]);for(var i=0,o=a;i<o.length;i++){var r=o[i];t.addMatcher(r.matcher,r.reducer)}c&&t.addDefaultCase(c)}))}return n.forEach((function(t){var i,o,n=r[t],c=e+"/"+t;"reducer"in n?(i=n.reducer,o=n.prepare):i=n,a[t]=i,s[c]=i,l[t]=o?_o(c,o):_o(c)})),{name:e,reducer:function(t,e){return i||(i=c()),i(t,e)},actions:l,caseReducers:a,getInitialState:function(){return i||(i=c()),i.getInitialState()}}}var Do=["name","message","stack","code"],Fo=function(t,e){this.payload=t,this.meta=e},Po=function(t,e){this.payload=t,this.meta=e},Mo=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=Do;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function zo(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,i){var o=_o(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:Eo(Co({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=_o(t+"/pending",(function(t,e,i){return{payload:void 0,meta:Eo(Co({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=_o(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Mo)(t||"Rejected"),meta:Eo(Co({},n||{}),{arg:o,requestId:e,rejectedWithValue:!!r,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,l,c){var h,f=(null==i?void 0:i.idGenerator)?i.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",i=t;i--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),d=new a;function u(t){h=t,d.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,g,b,v;return bo(this,(function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),g=null==(a=null==i?void 0:i.condition)?void 0:a.call(i,t,{getState:l,extra:c}),null===(x=g)||"object"!=typeof x||"function"!=typeof x.then?[3,2]:[4,g];case 1:g=m.sent(),m.label=2;case 2:if(!1===g||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return d.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:h||"Aborted"})}))})),s(r(f,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:f,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:f,signal:d.signal,abort:u,rejectWithValue:function(t,e){return new Fo(t,e)},fulfillWithValue:function(t,e){return new Po(t,e)}})).then((function(e){if(e instanceof Fo)throw e;return e instanceof Po?o(e.payload,f,t,e.meta):o(e,f,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof Fo?n(null,f,t,v.payload,v.meta):n(v,f,t),[3,5];case 5:return i&&!i.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var x}))},new Promise((function(t,e){var i=function(t){try{r(y.next(t))}catch(t){e(t)}},o=function(t){try{r(y.throw(t))}catch(t){e(t)}},r=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(i,o)};r((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:u,requestId:f,arg:t,unwrap:function(){return p.then(zo)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var jo="listenerMiddleware";_o(jo+"/add"),_o(jo+"/removeAll"),_o(jo+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var i=r[t];return i?i.enumerable=e:r[t]=i={configurable:!0,enumerable:e,get:function(){var e=this[ji];return Gi.get(e,t)},set:function(e){var i=this[ji];Gi.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][ji];if(!r.P)switch(r.i){case 5:o(r)&&Ri(r);break;case 4:i(r)&&Ri(r)}}}function i(t){for(var e=t.t,i=t.k,o=Ki(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==ji){var a=e[n];if(void 0===a&&!ai(e,n))return!0;var s=i[n],l=s&&s[ji];if(l?l.t!==a:!li(s,a))return!0}}var c=!!e[ji];return o.length!==Ki(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 r={};!function(t,e){Hi[t]||(Hi[t]=e)}("ES5",{J:function(e,i){var o=Array.isArray(e),r=function(e,i){if(e){for(var o=Array(i.length),r=0;r<i.length;r++)Object.defineProperty(o,""+r,t(r,!0));return o}var n=Zi(i);delete n[ji];for(var a=Ki(n),s=0;s<a.length;s++){var l=a[s];n[l]=t(l,e||!!n[l].enumerable)}return Object.create(Object.getPrototypeOf(i),n)}(o,e),n={i:o?5:4,A:i?i.A:bi(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,ji,{value:n,writable:!0}),r},S:function(t,i,r){r?ii(i)&&i[ji].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[ji];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)ri(n,(function(e){e!==ji&&(void 0!==r[e]||ai(r,e)?a[e]||t(n[e]):(a[e]=!0,Ri(i)))})),ri(r,(function(t){void 0!==n[t]||ai(n,t)||(a[t]=!1,Ri(i))}));else if(5===s){if(o(i)&&(Ri(i),a.length=!0),n.length<r.length)for(var l=n.length;l<r.length;l++)a[l]=!1;else for(var c=r.length;c<n.length;c++)a[c]=!0;for(var h=Math.min(n.length,r.length),f=0;f<h;f++)n.hasOwnProperty(f)||(a[f]=!0),void 0===a[f]&&t(n[f])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Bo{static get(t){var e;const i="string"==typeof t?t:t.name,o="string"==typeof t?void 0:t,r=window.ftReduxStores[i];if(Ge(r))return r;if(null==o)return;const n=Wo({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=Ao({reducer:(t,e)=>{var i;switch(e.type){case"CLEAR_FT_REDUX_STORE":return n.getInitialState();case"DEFAULT_STATE_FIELDS_VALUES_SETTER":return{...t,...null!==(i=e.overwrites)&&void 0!==i?i:{}};default:return n.reducer(t,e)}}});return window.ftReduxStores[o.name]=new Bo(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,i)=>{const o=e,r=t[o];return r?(...t)=>{const e=r(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[o]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_STATE_FIELDS_VALUES_SETTER",overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}const Ko=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!_(t,e),attribute:!1,...e};k(r)(t,i);const n=t;n.reduxProperties=n.reduxProperties||new Map,n.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}},Zo=Symbol("elementInternals");function Ho(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Zo].form}constructor(...t){super(t),this[Zo]=this.attachInternals(),this[Zo].role=e}setFormValue(t){this[Zo].setFormValue(t)}}}var Go,Vo,qo;const Yo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(qo=null===(Vo=null===(Go=window.safari)||void 0===Go?void 0:Go.pushNotification)||void 0===Vo?void 0:Vo.toString())&&void 0!==qo?qo:"");var Xo;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(Xo||(Xo={}));var Jo=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Qo extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const tr=Symbol("registerInterval");class er extends(function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[tr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[tr]):this.dispatchEvent(new Qo)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=tr,Jo([R()],i.prototype,"stateManager",void 0),i}(ti)){}const ir=Ee.extend("--ft-ripple-color","",Ae.colorContent),or={color:ir,backgroundColor:Ee.extend("--ft-ripple-background-color","",ir),opacityContentOnSurfacePressed:Ee.external(Ae.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ee.external(Ae.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ee.external(Ae.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ee.external(Ae.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ee.create("--ft-ripple-border-radius","","SIZE","0px")},rr=Ee.extend("--ft-ripple-color","",Ae.colorPrimary),nr=rr,ar=Ee.extend("--ft-ripple-background-color","",rr),sr=Ee.extend("--ft-ripple-color","",Ae.colorSecondary),lr=sr,cr=Ee.extend("--ft-ripple-background-color","",sr),hr=Et`
102
123
  :host {
103
124
  display: contents;
104
125
  }
@@ -111,7 +132,7 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
111
132
 
112
133
  .ft-ripple:not(.ft-ripple--unbounded) {
113
134
  overflow: hidden;
114
- border-radius: ${Qi.borderRadius};
135
+ border-radius: ${or.borderRadius};
115
136
  }
116
137
 
117
138
  .ft-ripple .ft-ripple--background,
@@ -145,27 +166,27 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
145
166
  }
146
167
 
147
168
  .ft-ripple .ft-ripple--background {
148
- background-color: ${Qi.backgroundColor};
169
+ background-color: ${or.backgroundColor};
149
170
  }
150
171
 
151
172
  .ft-ripple .ft-ripple--effect {
152
- background-color: ${Qi.color};
173
+ background-color: ${or.color};
153
174
  }
154
175
 
155
176
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
156
- background-color: ${no};
177
+ background-color: ${cr};
157
178
  }
158
179
 
159
180
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
160
- background-color: ${ro};
181
+ background-color: ${lr};
161
182
  }
162
183
 
163
184
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
164
- background-color: ${io};
185
+ background-color: ${ar};
165
186
  }
166
187
 
167
188
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
168
- background-color: ${eo};
189
+ background-color: ${nr};
169
190
  }
170
191
 
171
192
  .ft-ripple .ft-ripple--background {
@@ -195,118 +216,118 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
195
216
  }
196
217
 
197
218
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
198
- opacity: ${Qi.opacityContentOnSurfaceHover};
219
+ opacity: ${or.opacityContentOnSurfaceHover};
199
220
  }
200
221
 
201
222
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
202
- opacity: ${Qi.opacityContentOnSurfaceSelected};
223
+ opacity: ${or.opacityContentOnSurfaceSelected};
203
224
  }
204
225
 
205
226
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
206
- opacity: ${Qi.opacityContentOnSurfaceFocused};
227
+ opacity: ${or.opacityContentOnSurfaceFocused};
207
228
  }
208
229
 
209
230
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
210
- opacity: ${Qi.opacityContentOnSurfacePressed};
231
+ opacity: ${or.opacityContentOnSurfacePressed};
211
232
  transform: translate(-50%, -50%) scale(1);
212
233
  }
213
- `;const so=Ct.extend("--ft-typography-font-family","",Lt.titleFont),lo=Ct.extend("--ft-typography-font-family","",Lt.contentFont),co={fontFamily:lo,fontSize:Ct.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ct.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ct.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ct.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ct.create("--ft-typography-text-transform","","UNKNOWN","inherit")},fo={fontFamily:Ct.extend("--ft-typography-title-font-family","",so),fontSize:Ct.extend("--ft-typography-title-font-size","",co.fontSize,"20px"),fontWeight:Ct.extend("--ft-typography-title-font-weight","",co.fontWeight,"normal"),letterSpacing:Ct.extend("--ft-typography-title-letter-spacing","",co.letterSpacing,"0.15px"),lineHeight:Ct.extend("--ft-typography-title-line-height","",co.lineHeight,"1.2"),textTransform:Ct.extend("--ft-typography-title-text-transform","",co.textTransform,"inherit")},ho={fontFamily:Ct.extend("--ft-typography-title-dense-font-family","",so),fontSize:Ct.extend("--ft-typography-title-dense-font-size","",co.fontSize,"14px"),fontWeight:Ct.extend("--ft-typography-title-dense-font-weight","",co.fontWeight,"normal"),letterSpacing:Ct.extend("--ft-typography-title-dense-letter-spacing","",co.letterSpacing,"0.105px"),lineHeight:Ct.extend("--ft-typography-title-dense-line-height","",co.lineHeight,"1.7"),textTransform:Ct.extend("--ft-typography-title-dense-text-transform","",co.textTransform,"inherit")},uo=Ct.extend("--ft-typography-subtitle1-font-family","",lo),po=Ct.extend("--ft-typography-subtitle1-font-size","",co.fontSize,"16px"),yo=Ct.extend("--ft-typography-subtitle1-font-weight","",co.fontWeight,"600"),bo=Ct.extend("--ft-typography-subtitle1-letter-spacing","",co.letterSpacing,"0.144px"),go=Ct.extend("--ft-typography-subtitle1-line-height","",co.lineHeight,"1.5"),vo=Ct.extend("--ft-typography-subtitle1-text-transform","",co.textTransform,"inherit"),mo=Ct.extend("--ft-typography-subtitle2-font-family","",lo),xo=Ct.extend("--ft-typography-subtitle2-font-size","",co.fontSize,"14px"),wo=Ct.extend("--ft-typography-subtitle2-font-weight","",co.fontWeight,"normal"),Oo=Ct.extend("--ft-typography-subtitle2-letter-spacing","",co.letterSpacing,"0.098px"),So=Ct.extend("--ft-typography-subtitle2-line-height","",co.lineHeight,"1.7"),$o=Ct.extend("--ft-typography-subtitle2-text-transform","",co.textTransform,"inherit"),No={fontFamily:Ct.extend("--ft-typography-body1-font-family","",lo),fontSize:Ct.extend("--ft-typography-body1-font-size","",co.fontSize,"16px"),fontWeight:Ct.extend("--ft-typography-body1-font-weight","",co.fontWeight,"normal"),letterSpacing:Ct.extend("--ft-typography-body1-letter-spacing","",co.letterSpacing,"0.496px"),lineHeight:Ct.extend("--ft-typography-body1-line-height","",co.lineHeight,"1.5"),textTransform:Ct.extend("--ft-typography-body1-text-transform","",co.textTransform,"inherit")},Co=Ct.extend("--ft-typography-body2-font-family","",lo),ko=Ct.extend("--ft-typography-body2-font-size","",co.fontSize,"14px"),Eo=Ct.extend("--ft-typography-body2-font-weight","",co.fontWeight,"normal"),Ro=Ct.extend("--ft-typography-body2-letter-spacing","",co.letterSpacing,"0.252px"),Io=Ct.extend("--ft-typography-body2-line-height","",co.lineHeight,"1.4"),Uo=Ct.extend("--ft-typography-body2-text-transform","",co.textTransform,"inherit"),Lo={fontFamily:Ct.extend("--ft-typography-caption-font-family","",lo),fontSize:Ct.extend("--ft-typography-caption-font-size","",co.fontSize,"12px"),fontWeight:Ct.extend("--ft-typography-caption-font-weight","",co.fontWeight,"normal"),letterSpacing:Ct.extend("--ft-typography-caption-letter-spacing","",co.letterSpacing,"0.396px"),lineHeight:Ct.extend("--ft-typography-caption-line-height","",co.lineHeight,"1.33"),textTransform:Ct.extend("--ft-typography-caption-text-transform","",co.textTransform,"inherit")},_o=Ct.extend("--ft-typography-breadcrumb-font-family","",lo),Ao=Ct.extend("--ft-typography-breadcrumb-font-size","",co.fontSize,"10px"),To=Ct.extend("--ft-typography-breadcrumb-font-weight","",co.fontWeight,"normal"),Wo=Ct.extend("--ft-typography-breadcrumb-letter-spacing","",co.letterSpacing,"0.33px"),Do=Ct.extend("--ft-typography-breadcrumb-line-height","",co.lineHeight,"1.6"),Fo=Ct.extend("--ft-typography-breadcrumb-text-transform","",co.textTransform,"inherit"),jo=Ct.extend("--ft-typography-overline-font-family","",lo),zo=Ct.extend("--ft-typography-overline-font-size","",co.fontSize,"10px"),Bo=Ct.extend("--ft-typography-overline-font-weight","",co.fontWeight,"normal"),Mo=Ct.extend("--ft-typography-overline-letter-spacing","",co.letterSpacing,"1.5px"),Po=Ct.extend("--ft-typography-overline-line-height","",co.lineHeight,"1.6"),Ko=Ct.extend("--ft-typography-overline-text-transform","",co.textTransform,"uppercase"),Zo={fontFamily:Ct.extend("--ft-typography-button-font-family","",lo),fontSize:Ct.extend("--ft-typography-button-font-size","",co.fontSize,"14px"),fontWeight:Ct.extend("--ft-typography-button-font-weight","",co.fontWeight,"600"),letterSpacing:Ct.extend("--ft-typography-button-letter-spacing","",co.letterSpacing,"1.246px"),lineHeight:Ct.extend("--ft-typography-button-line-height","",co.lineHeight,"1.15"),textTransform:Ct.extend("--ft-typography-button-text-transform","",co.textTransform,"uppercase")},Ho=$`
234
+ `;const fr=Ee.extend("--ft-typography-font-family","",Ae.titleFont),dr=Ee.extend("--ft-typography-font-family","",Ae.contentFont),ur={fontFamily:dr,fontSize:Ee.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Ee.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Ee.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Ee.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Ee.create("--ft-typography-text-transform","","UNKNOWN","inherit")},pr={fontFamily:Ee.extend("--ft-typography-title-font-family","",fr),fontSize:Ee.extend("--ft-typography-title-font-size","",ur.fontSize,"20px"),fontWeight:Ee.extend("--ft-typography-title-font-weight","",ur.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-title-letter-spacing","",ur.letterSpacing,"0.15px"),lineHeight:Ee.extend("--ft-typography-title-line-height","",ur.lineHeight,"1.2"),textTransform:Ee.extend("--ft-typography-title-text-transform","",ur.textTransform,"inherit")},yr={fontFamily:Ee.extend("--ft-typography-title-dense-font-family","",fr),fontSize:Ee.extend("--ft-typography-title-dense-font-size","",ur.fontSize,"14px"),fontWeight:Ee.extend("--ft-typography-title-dense-font-weight","",ur.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-title-dense-letter-spacing","",ur.letterSpacing,"0.105px"),lineHeight:Ee.extend("--ft-typography-title-dense-line-height","",ur.lineHeight,"1.7"),textTransform:Ee.extend("--ft-typography-title-dense-text-transform","",ur.textTransform,"inherit")},gr=Ee.extend("--ft-typography-subtitle1-font-family","",dr),br=Ee.extend("--ft-typography-subtitle1-font-size","",ur.fontSize,"16px"),vr=Ee.extend("--ft-typography-subtitle1-font-weight","",ur.fontWeight,"600"),mr=Ee.extend("--ft-typography-subtitle1-letter-spacing","",ur.letterSpacing,"0.144px"),xr=Ee.extend("--ft-typography-subtitle1-line-height","",ur.lineHeight,"1.5"),wr=Ee.extend("--ft-typography-subtitle1-text-transform","",ur.textTransform,"inherit"),Or=Ee.extend("--ft-typography-subtitle2-font-family","",dr),Sr=Ee.extend("--ft-typography-subtitle2-font-size","",ur.fontSize,"14px"),$r=Ee.extend("--ft-typography-subtitle2-font-weight","",ur.fontWeight,"normal"),Nr=Ee.extend("--ft-typography-subtitle2-letter-spacing","",ur.letterSpacing,"0.098px"),Cr=Ee.extend("--ft-typography-subtitle2-line-height","",ur.lineHeight,"1.7"),Er=Ee.extend("--ft-typography-subtitle2-text-transform","",ur.textTransform,"inherit"),kr={fontFamily:Ee.extend("--ft-typography-body1-font-family","",dr),fontSize:Ee.extend("--ft-typography-body1-font-size","",ur.fontSize,"16px"),fontWeight:Ee.extend("--ft-typography-body1-font-weight","",ur.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-body1-letter-spacing","",ur.letterSpacing,"0.496px"),lineHeight:Ee.extend("--ft-typography-body1-line-height","",ur.lineHeight,"1.5"),textTransform:Ee.extend("--ft-typography-body1-text-transform","",ur.textTransform,"inherit")},Rr=Ee.extend("--ft-typography-body2-font-family","",dr),Ir=Ee.extend("--ft-typography-body2-font-size","",ur.fontSize,"14px"),Ur=Ee.extend("--ft-typography-body2-font-weight","",ur.fontWeight,"normal"),Lr=Ee.extend("--ft-typography-body2-letter-spacing","",ur.letterSpacing,"0.252px"),Ar=Ee.extend("--ft-typography-body2-line-height","",ur.lineHeight,"1.4"),_r=Ee.extend("--ft-typography-body2-text-transform","",ur.textTransform,"inherit"),Tr={fontFamily:Ee.extend("--ft-typography-caption-font-family","",dr),fontSize:Ee.extend("--ft-typography-caption-font-size","",ur.fontSize,"12px"),fontWeight:Ee.extend("--ft-typography-caption-font-weight","",ur.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-caption-letter-spacing","",ur.letterSpacing,"0.396px"),lineHeight:Ee.extend("--ft-typography-caption-line-height","",ur.lineHeight,"1.33"),textTransform:Ee.extend("--ft-typography-caption-text-transform","",ur.textTransform,"inherit")},Wr=Ee.extend("--ft-typography-breadcrumb-font-family","",dr),Dr=Ee.extend("--ft-typography-breadcrumb-font-size","",ur.fontSize,"10px"),Fr=Ee.extend("--ft-typography-breadcrumb-font-weight","",ur.fontWeight,"normal"),Pr=Ee.extend("--ft-typography-breadcrumb-letter-spacing","",ur.letterSpacing,"0.33px"),Mr=Ee.extend("--ft-typography-breadcrumb-line-height","",ur.lineHeight,"1.6"),zr=Ee.extend("--ft-typography-breadcrumb-text-transform","",ur.textTransform,"inherit"),jr=Ee.extend("--ft-typography-overline-font-family","",dr),Br=Ee.extend("--ft-typography-overline-font-size","",ur.fontSize,"10px"),Kr=Ee.extend("--ft-typography-overline-font-weight","",ur.fontWeight,"normal"),Zr=Ee.extend("--ft-typography-overline-letter-spacing","",ur.letterSpacing,"1.5px"),Hr=Ee.extend("--ft-typography-overline-line-height","",ur.lineHeight,"1.6"),Gr=Ee.extend("--ft-typography-overline-text-transform","",ur.textTransform,"uppercase"),Vr={fontFamily:Ee.extend("--ft-typography-button-font-family","",dr),fontSize:Ee.extend("--ft-typography-button-font-size","",ur.fontSize,"14px"),fontWeight:Ee.extend("--ft-typography-button-font-weight","",ur.fontWeight,"600"),letterSpacing:Ee.extend("--ft-typography-button-letter-spacing","",ur.letterSpacing,"1.246px"),lineHeight:Ee.extend("--ft-typography-button-line-height","",ur.lineHeight,"1.15"),textTransform:Ee.extend("--ft-typography-button-text-transform","",ur.textTransform,"uppercase")},qr=Et`
214
235
  .ft-typography--title {
215
- font-family: ${fo.fontFamily};
216
- font-size: ${fo.fontSize};
217
- font-weight: ${fo.fontWeight};
218
- letter-spacing: ${fo.letterSpacing};
219
- line-height: ${fo.lineHeight};
220
- text-transform: ${fo.textTransform};
221
- }
222
- `,Go=$`
236
+ font-family: ${pr.fontFamily};
237
+ font-size: ${pr.fontSize};
238
+ font-weight: ${pr.fontWeight};
239
+ letter-spacing: ${pr.letterSpacing};
240
+ line-height: ${pr.lineHeight};
241
+ text-transform: ${pr.textTransform};
242
+ }
243
+ `,Yr=Et`
223
244
  .ft-typography--title-dense {
224
- font-family: ${ho.fontFamily};
225
- font-size: ${ho.fontSize};
226
- font-weight: ${ho.fontWeight};
227
- letter-spacing: ${ho.letterSpacing};
228
- line-height: ${ho.lineHeight};
229
- text-transform: ${ho.textTransform};
230
- }
231
- `,Vo=$`
245
+ font-family: ${yr.fontFamily};
246
+ font-size: ${yr.fontSize};
247
+ font-weight: ${yr.fontWeight};
248
+ letter-spacing: ${yr.letterSpacing};
249
+ line-height: ${yr.lineHeight};
250
+ text-transform: ${yr.textTransform};
251
+ }
252
+ `,Xr=Et`
232
253
  .ft-typography--subtitle1 {
233
- font-family: ${uo};
234
- font-size: ${po};
235
- font-weight: ${yo};
236
- letter-spacing: ${bo};
237
- line-height: ${go};
238
- text-transform: ${vo};
239
- }
240
- `,qo=$`
254
+ font-family: ${gr};
255
+ font-size: ${br};
256
+ font-weight: ${vr};
257
+ letter-spacing: ${mr};
258
+ line-height: ${xr};
259
+ text-transform: ${wr};
260
+ }
261
+ `,Jr=Et`
241
262
  .ft-typography--subtitle2 {
242
- font-family: ${mo};
243
- font-size: ${xo};
244
- font-weight: ${wo};
245
- letter-spacing: ${Oo};
246
- line-height: ${So};
247
- text-transform: ${$o};
263
+ font-family: ${Or};
264
+ font-size: ${Sr};
265
+ font-weight: ${$r};
266
+ letter-spacing: ${Nr};
267
+ line-height: ${Cr};
268
+ text-transform: ${Er};
248
269
  }
249
270
 
250
- `,Yo=$`
271
+ `,Qr=Et`
251
272
  .ft-typography--body1 {
252
- font-family: ${No.fontFamily};
253
- font-size: ${No.fontSize};
254
- font-weight: ${No.fontWeight};
255
- letter-spacing: ${No.letterSpacing};
256
- line-height: ${No.lineHeight};
257
- text-transform: ${No.textTransform};
258
- }
259
- `,Xo=$`
273
+ font-family: ${kr.fontFamily};
274
+ font-size: ${kr.fontSize};
275
+ font-weight: ${kr.fontWeight};
276
+ letter-spacing: ${kr.letterSpacing};
277
+ line-height: ${kr.lineHeight};
278
+ text-transform: ${kr.textTransform};
279
+ }
280
+ `,tn=Et`
260
281
  .ft-typography--body2 {
261
- font-family: ${Co};
262
- font-size: ${ko};
263
- font-weight: ${Eo};
264
- letter-spacing: ${Ro};
265
- line-height: ${Io};
266
- text-transform: ${Uo};
267
- }
268
- `,Jo=$`
282
+ font-family: ${Rr};
283
+ font-size: ${Ir};
284
+ font-weight: ${Ur};
285
+ letter-spacing: ${Lr};
286
+ line-height: ${Ar};
287
+ text-transform: ${_r};
288
+ }
289
+ `,en=Et`
269
290
  .ft-typography--caption {
270
- font-family: ${Lo.fontFamily};
271
- font-size: ${Lo.fontSize};
272
- font-weight: ${Lo.fontWeight};
273
- letter-spacing: ${Lo.letterSpacing};
274
- line-height: ${Lo.lineHeight};
275
- text-transform: ${Lo.textTransform};
276
- }
277
- `,Qo=$`
291
+ font-family: ${Tr.fontFamily};
292
+ font-size: ${Tr.fontSize};
293
+ font-weight: ${Tr.fontWeight};
294
+ letter-spacing: ${Tr.letterSpacing};
295
+ line-height: ${Tr.lineHeight};
296
+ text-transform: ${Tr.textTransform};
297
+ }
298
+ `,on=Et`
278
299
  .ft-typography--breadcrumb {
279
- font-family: ${_o};
280
- font-size: ${Ao};
281
- font-weight: ${To};
282
- letter-spacing: ${Wo};
283
- line-height: ${Do};
284
- text-transform: ${Fo};
285
- }
286
- `,tr=$`
300
+ font-family: ${Wr};
301
+ font-size: ${Dr};
302
+ font-weight: ${Fr};
303
+ letter-spacing: ${Pr};
304
+ line-height: ${Mr};
305
+ text-transform: ${zr};
306
+ }
307
+ `,rn=Et`
287
308
  .ft-typography--overline {
288
- font-family: ${jo};
289
- font-size: ${zo};
290
- font-weight: ${Bo};
291
- letter-spacing: ${Mo};
292
- line-height: ${Po};
293
- text-transform: ${Ko};
294
- }
295
- `,er=$`
309
+ font-family: ${jr};
310
+ font-size: ${Br};
311
+ font-weight: ${Kr};
312
+ letter-spacing: ${Zr};
313
+ line-height: ${Hr};
314
+ text-transform: ${Gr};
315
+ }
316
+ `,nn=Et`
296
317
  .ft-typography--button {
297
- font-family: ${Zo.fontFamily};
298
- font-size: ${Zo.fontSize};
299
- font-weight: ${Zo.fontWeight};
300
- letter-spacing: ${Zo.letterSpacing};
301
- line-height: ${Zo.lineHeight};
302
- text-transform: ${Zo.textTransform};
303
- }
304
- `,ir=$`
318
+ font-family: ${Vr.fontFamily};
319
+ font-size: ${Vr.fontSize};
320
+ font-weight: ${Vr.fontWeight};
321
+ letter-spacing: ${Vr.letterSpacing};
322
+ line-height: ${Vr.lineHeight};
323
+ text-transform: ${Vr.textTransform};
324
+ }
325
+ `,an=Et`
305
326
  .ft-typography {
306
327
  vertical-align: inherit;
307
328
  }
308
- `,or=[Object.keys(Rt).map((t=>function(t){const e=Rt[t];return $`
309
- .ft-typography--${S(t)} {
329
+ `,sn=[Object.keys(Ie).map((t=>function(t){const e=Ie[t];return Et`
330
+ .ft-typography--${Ct(t)} {
310
331
  font-family: ${e.fontFamily};
311
332
  font-size: ${e.fontSize};
312
333
  font-weight: ${e.fontWeight};
@@ -314,7 +335,7 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
314
335
  line-height: ${e.lineHeight};
315
336
  text-transform: ${e.textCase};
316
337
  }
317
- `}(t)))],rr={color:Ct.extend("--ft-loader-color","",Lt.colorPrimary),size:Ct.create("--ft-loader-size","","SIZE","80px")},nr=$`
338
+ `}(t)))],ln={color:Ee.extend("--ft-loader-color","",Ae.colorPrimary),size:Ee.create("--ft-loader-size","","SIZE","80px")},cn=Et`
318
339
  :host {
319
340
  line-height: 0;
320
341
  }
@@ -323,8 +344,8 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
323
344
  display: inline-block;
324
345
  position: relative;
325
346
 
326
- width: ${rr.size};
327
- height: ${rr.size};
347
+ width: ${ln.size};
348
+ height: ${ln.size};
328
349
  }
329
350
 
330
351
  .ft-loader div {
@@ -333,7 +354,7 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
333
354
  width: 25%;
334
355
  height: 25%;
335
356
  border-radius: 50%;
336
- background: ${rr.color};
357
+ background: ${ln.color};
337
358
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
338
359
  }
339
360
 
@@ -380,10 +401,10 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
380
401
  transform: translate(0, 0);
381
402
  }
382
403
  100% {
383
- transform: translate(calc(0.35 * ${rr.size}), 0);
404
+ transform: translate(calc(0.35 * ${ln.size}), 0);
384
405
  }
385
406
  }
386
- `,ar={size:Ct.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ct.extend("--ft-icon-fluid-topics-font-family","",Ct.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ct.extend("--ft-icon-file-format-font-family","",Ct.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ct.extend("--ft-icon-material-font-family","",Ct.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ct.create("--ft-icon-vertical-align","","UNKNOWN","unset")},sr=$`
407
+ `,hn={size:Ee.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ee.extend("--ft-icon-fluid-topics-font-family","",Ee.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ee.extend("--ft-icon-file-format-font-family","",Ee.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ee.extend("--ft-icon-material-font-family","",Ee.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ee.create("--ft-icon-vertical-align","","UNKNOWN","unset")},fn=Et`
387
408
  :host, i.ft-icon {
388
409
  display: inline-flex;
389
410
  align-items: center;
@@ -392,14 +413,14 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
392
413
  }
393
414
 
394
415
  :host {
395
- width: ${ar.size};
396
- height: ${ar.size};
416
+ width: ${hn.size};
417
+ height: ${hn.size};
397
418
  }
398
419
 
399
420
  i.ft-icon {
400
421
  width: 100%;
401
422
  height: 100%;
402
- font-size: ${ar.size};
423
+ font-size: ${hn.size};
403
424
  line-height: 1;
404
425
  font-weight: normal;
405
426
  text-transform: none;
@@ -410,28 +431,28 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
410
431
  text-rendering: auto;
411
432
  -webkit-font-smoothing: antialiased;
412
433
  -moz-osx-font-smoothing: grayscale;
413
- vertical-align: ${ar.verticalAlign};
434
+ vertical-align: ${hn.verticalAlign};
414
435
  }
415
436
 
416
437
  i.ft-icon.ft-icon--fluid-topics {
417
- font-family: ${ar.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
438
+ font-family: ${hn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
418
439
 
419
440
  /* Ugly fix because font is broken */
420
- font-size: calc(0.75 * ${ar.size});
421
- line-height: ${ar.size};
441
+ font-size: calc(0.75 * ${hn.size});
442
+ line-height: ${hn.size};
422
443
  position: relative;
423
444
  top: -4%;
424
445
  justify-content: center;
425
446
  }
426
447
 
427
448
  .ft-icon--file-format {
428
- font-family: ${ar.fileFormatFontFamily}, ft-mime, sans-serif;
449
+ font-family: ${hn.fileFormatFontFamily}, ft-mime, sans-serif;
429
450
  }
430
451
 
431
452
  .ft-icon--material {
432
- font-family: ${ar.materialFontFamily}, "Material Icons", sans-serif;
453
+ font-family: ${hn.materialFontFamily}, "Material Icons", sans-serif;
433
454
  }
434
- `,lr=Ct.extend("--ft-button-color","",Lt.colorPrimary),cr={backgroundColor:Ct.extend("--ft-button-background-color","",Lt.colorSurface),borderRadius:Ct.extend("--ft-button-border-radius","",Lt.borderRadiusL),color:lr,fontSize:Ct.extend("--ft-button-font-size","",Zo.fontSize),iconSize:Ct.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Ct.extend("--ft-button-ripple-color","",lr),verticalPadding:Ct.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Ct.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Ct.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Ct.external(Lt.colorOpacityDisabled,"Design system")},fr=Ct.extend("--ft-button-primary-color","",Ct.extend("--ft-button-color","",Lt.colorOnPrimary)),dr={backgroundColor:Ct.extend("--ft-button-primary-background-color","",Ct.extend("--ft-button-background-color","",Lt.colorPrimary)),color:fr,rippleColor:Ct.extend("--ft-button-primary-ripple-color","",fr)},hr=Ct.extend("--ft-button-dense-border-radius","",Ct.extend("--ft-button-border-radius","",Lt.borderRadiusM)),ur=Ct.create("--ft-button-dense-vertical-padding","","SIZE","2px"),pr=Ct.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),yr=Ct.create("--ft-button-dense-icon-padding","","SIZE","4px"),br=[$`
455
+ `,dn=Ee.extend("--ft-button-color","",Ae.colorPrimary),un={backgroundColor:Ee.extend("--ft-button-background-color","",Ae.colorSurface),borderRadius:Ee.extend("--ft-button-border-radius","",Ae.borderRadiusL),color:dn,fontSize:Ee.extend("--ft-button-font-size","",Vr.fontSize),iconSize:Ee.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Ee.extend("--ft-button-ripple-color","",dn),verticalPadding:Ee.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Ee.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Ee.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Ee.external(Ae.colorOpacityDisabled,"Design system")},pn=Ee.extend("--ft-button-primary-color","",Ee.extend("--ft-button-color","",Ae.colorOnPrimary)),yn={backgroundColor:Ee.extend("--ft-button-primary-background-color","",Ee.extend("--ft-button-background-color","",Ae.colorPrimary)),color:pn,rippleColor:Ee.extend("--ft-button-primary-ripple-color","",pn)},gn=Ee.extend("--ft-button-dense-border-radius","",Ee.extend("--ft-button-border-radius","",Ae.borderRadiusM)),bn=Ee.create("--ft-button-dense-vertical-padding","","SIZE","2px"),vn=Ee.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),mn=Ee.create("--ft-button-dense-icon-padding","","SIZE","4px"),xn=[Et`
435
456
  :host {
436
457
  display: inline-block;
437
458
  max-width: 100%;
@@ -442,7 +463,7 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
442
463
  box-shadow: 0px 0px 0px transparent;
443
464
  border: 0px solid transparent;
444
465
  text-shadow: 0px 0px 0px transparent;
445
- font-size: ${cr.fontSize};
466
+ font-size: ${un.fontSize};
446
467
  }
447
468
 
448
469
  button:hover {
@@ -471,31 +492,31 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
471
492
  border: none;
472
493
  pointer-events: auto;
473
494
 
474
- --ft-button-internal-line-height: max(calc(${cr.fontSize} + 2px), ${cr.iconSize});
475
- --ft-button-internal-color: ${cr.color};
476
- ${kt(ar.size,cr.iconSize)};
477
- ${kt(Qi.color,cr.rippleColor)};
495
+ --ft-button-internal-line-height: max(calc(${un.fontSize} + 2px), ${un.iconSize});
496
+ --ft-button-internal-color: ${un.color};
497
+ ${ke(hn.size,un.iconSize)};
498
+ ${ke(or.color,un.rippleColor)};
478
499
 
479
- border-radius: ${cr.borderRadius};
480
- padding: ${cr.verticalPadding} ${cr.horizontalPadding};
481
- background-color: ${cr.backgroundColor};
500
+ border-radius: ${un.borderRadius};
501
+ padding: ${un.verticalPadding} ${un.horizontalPadding};
502
+ background-color: ${un.backgroundColor};
482
503
  color: var(--ft-button-internal-color);
483
504
  -webkit-mask-image: radial-gradient(white, black);
484
505
  }
485
506
 
486
507
  .ft-button.ft-button--outlined {
487
508
  border: 1px solid var(--ft-button-internal-color);
488
- padding: calc(${cr.verticalPadding} - 1px) calc(${cr.horizontalPadding} - 1px);
509
+ padding: calc(${un.verticalPadding} - 1px) calc(${un.horizontalPadding} - 1px);
489
510
  }
490
511
 
491
512
  .ft-button.ft-button--dense {
492
- padding: ${ur} ${pr};
493
- border-radius: ${hr};
494
- gap: ${yr};
513
+ padding: ${bn} ${vn};
514
+ border-radius: ${gn};
515
+ gap: ${mn};
495
516
  }
496
517
 
497
518
  .ft-button.ft-button--dense.ft-button--outlined {
498
- padding: calc(${ur} - 1px) calc(${pr} - 1px);
519
+ padding: calc(${bn} - 1px) calc(${vn} - 1px);
499
520
  }
500
521
 
501
522
  .ft-button:not([disabled]):hover {
@@ -503,22 +524,22 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
503
524
  }
504
525
 
505
526
  .ft-button--round {
506
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${cr.verticalPadding});
527
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${un.verticalPadding});
507
528
  }
508
529
 
509
530
  .ft-button--round.ft-button--dense {
510
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ur});
531
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${bn});
511
532
  }
512
533
 
513
534
  .ft-button[disabled] {
514
535
  filter: grayscale(1);
515
- opacity: ${cr.opacityDisabled};
536
+ opacity: ${un.opacityDisabled};
516
537
  }
517
538
 
518
539
  .ft-button.ft-button--primary {
519
- background-color: ${dr.backgroundColor};
520
- --ft-button-internal-color: ${dr.color};
521
- ${kt(Qi.color,dr.rippleColor)};
540
+ background-color: ${yn.backgroundColor};
541
+ --ft-button-internal-color: ${yn.color};
542
+ ${ke(or.color,yn.rippleColor)};
522
543
  }
523
544
 
524
545
  .ft-button:focus {
@@ -531,13 +552,13 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
531
552
  white-space: nowrap;
532
553
  text-overflow: ellipsis;
533
554
  display: block;
534
- margin: 0 ${cr.iconPadding};
535
- ${kt(Zo.fontSize,"1em")};
536
- ${kt(Zo.lineHeight,"var(--ft-button-internal-line-height)")};
555
+ margin: 0 ${un.iconPadding};
556
+ ${ke(Vr.fontSize,"1em")};
557
+ ${ke(Vr.lineHeight,"var(--ft-button-internal-line-height)")};
537
558
  }
538
559
 
539
560
  .ft-button--dense .ft-button--label {
540
- margin: 0 ${yr};
561
+ margin: 0 ${mn};
541
562
  }
542
563
 
543
564
  .ft-button--label[hidden] {
@@ -550,13 +571,13 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
550
571
  }
551
572
 
552
573
  .ft-button--label[hidden] + ft-icon {
553
- margin: 0 calc(${cr.horizontalPadding} * -1);
554
- padding: 0 ${cr.verticalPadding};
574
+ margin: 0 calc(${un.horizontalPadding} * -1);
575
+ padding: 0 ${un.verticalPadding};
555
576
  }
556
577
 
557
578
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
558
- margin: 0 calc(${pr} * -1);
559
- padding: 0 ${ur};
579
+ margin: 0 calc(${vn} * -1);
580
+ padding: 0 ${bn};
560
581
  }
561
582
 
562
583
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -565,10 +586,10 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
565
586
  }
566
587
 
567
588
  ft-loader {
568
- ${kt(rr.size,cr.iconSize)};
569
- ${kt(rr.color,"var(--ft-button-internal-color)")};
589
+ ${ke(ln.size,un.iconSize)};
590
+ ${ke(ln.color,"var(--ft-button-internal-color)")};
570
591
  }
571
- `,Bt],gr={textColor:Ct.extend("--ft-switch-text-color","",Lt.colorOnSurfaceHigh),backgroundColor:Ct.extend("--ft-switch-background-color","",Lt.colorSurface),selectedTextColor:Ct.extend("--ft-switch-selected-text-color","",Lt.colorPrimary),selectedBackgroundColor:Ct.extend("--ft-switch-selected-background-color","",Lt.colorPrimary),borderColor:Ct.extend("--ft-switch-border-color","",Lt.colorOutline),borderRadius:Ct.extend("--ft-switch-border-radius","",Lt.borderRadiusL),fontSize:Ct.extend("--ft-switch-font-size","",Zo.fontSize),iconSize:Ct.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:Ct.extend("--ft-switch-text-color","",Lt.colorOnSurfaceMedium),rippleColor:Ct.extend("--ft-switch-ripple-color","",Lt.colorPrimary),outlineColor:Ct.extend("--ft-switch-outline-color","",Lt.colorPrimary)},vr={feedbackInputMinWidth:Ct.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:Ct.external(Lt.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:Ct.extend("--ft-reader-feedback-send-feedback-color","",Lt.colorOnPrimary),sendFeedbackBackgroundColor:Ct.extend("--ft-reader-feedback-send-feedback-background-color","",Lt.colorPrimary),filledRatingColor:Ct.extend("--ft-reader-feedback-filled-rating-color","",Lt.colorPrimary),emptyRatingColor:Ct.extend("--ft-reader-feedback-empty-rating-color","",Lt.colorOnSurfaceMedium),mainTitleFontSize:Ct.external(fo.fontSize,"Typography"),sectionTitleFontSize:Ct.external(ho.fontSize,"Typography")},mr=$`
592
+ `,Ke],wn={textColor:Ee.extend("--ft-switch-text-color","",Ae.colorOnSurfaceHigh),backgroundColor:Ee.extend("--ft-switch-background-color","",Ae.colorSurface),selectedTextColor:Ee.extend("--ft-switch-selected-text-color","",Ae.colorPrimary),selectedBackgroundColor:Ee.extend("--ft-switch-selected-background-color","",Ae.colorPrimary),borderColor:Ee.extend("--ft-switch-border-color","",Ae.colorOutline),borderRadius:Ee.extend("--ft-switch-border-radius","",Ae.borderRadiusL),fontSize:Ee.extend("--ft-switch-font-size","",Vr.fontSize),iconSize:Ee.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:Ee.extend("--ft-switch-text-color","",Ae.colorOnSurfaceMedium),rippleColor:Ee.extend("--ft-switch-ripple-color","",Ae.colorPrimary),outlineColor:Ee.extend("--ft-switch-outline-color","",Ae.colorPrimary)},On={feedbackInputMinWidth:Ee.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:Ee.external(Ae.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:Ee.extend("--ft-reader-feedback-send-feedback-color","",Ae.colorOnPrimary),sendFeedbackBackgroundColor:Ee.extend("--ft-reader-feedback-send-feedback-background-color","",Ae.colorPrimary),filledRatingColor:Ee.extend("--ft-reader-feedback-filled-rating-color","",Ae.colorPrimary),emptyRatingColor:Ee.extend("--ft-reader-feedback-empty-rating-color","",Ae.colorOnSurfaceMedium),mainTitleFontSize:Ee.external(pr.fontSize,"Typography"),sectionTitleFontSize:Ee.external(yr.fontSize,"Typography")},Sn=Et`
572
593
  .ft-reader-feedback {
573
594
  box-sizing: border-box;
574
595
  display: flex;
@@ -614,14 +635,14 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
614
635
  }
615
636
 
616
637
  .ft-reader-feedback--rating {
617
- ${kt(cr.color,vr.emptyRatingColor)};
618
- ${kt(cr.rippleColor,vr.filledRatingColor)};
619
- ${kt(gr.textColor,vr.emptyRatingColor)};
620
- ${kt(gr.selectedTextColor,vr.filledRatingColor)};
638
+ ${ke(un.color,On.emptyRatingColor)};
639
+ ${ke(un.rippleColor,On.filledRatingColor)};
640
+ ${ke(wn.textColor,On.emptyRatingColor)};
641
+ ${ke(wn.selectedTextColor,On.filledRatingColor)};
621
642
  }
622
643
 
623
644
  .ft-reader-feedback--rating .ft-reader-feedback--active {
624
- ${kt(cr.color,vr.filledRatingColor)};
645
+ ${ke(un.color,On.filledRatingColor)};
625
646
  }
626
647
 
627
648
  .ft-reader-feedback--feedback {
@@ -629,47 +650,47 @@ var wt,Ot;let St=class extends T{constructor(){super(...arguments),this.renderOp
629
650
  }
630
651
 
631
652
  .ft-reader-feedback--rating-date {
632
- color: ${vr.ratedDateColor};
653
+ color: ${On.ratedDateColor};
633
654
  }
634
655
 
635
656
  .ft-reader-feedback--feedback ft-text-area {
636
- min-width: ${vr.feedbackInputMinWidth};
657
+ min-width: ${On.feedbackInputMinWidth};
637
658
  }
638
659
 
639
660
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
640
661
  align-self: flex-end;
641
- ${kt(cr.color,vr.sendFeedbackColor)};
642
- ${kt(cr.backgroundColor,vr.sendFeedbackBackgroundColor)};
662
+ ${ke(un.color,On.sendFeedbackColor)};
663
+ ${ke(un.backgroundColor,On.sendFeedbackBackgroundColor)};
643
664
  }
644
- `;var xr,wr,Or,Sr,$r,Nr,Cr,kr,Er,Rr,Ir,Ur,Lr,_r;!function(t){!function(e){var i={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function d(t){var e=new FileReader,i=f(e);return e.readAsArrayBuffer(t),i}function h(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=h(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,i=f(e);return e.readAsText(t),i}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),o=0;o<e.length;o++)i[o]=String.fromCharCode(e[o]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,i){t.push([i,e])})),s(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var i,o,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(i=e.method||this.method||"GET",o=i.toUpperCase(),p.indexOf(o)>-1?o:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),o=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(r))}})),e}function g(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.prototype),u.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},g.error=function(){var t=new g(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];g.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new g(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,o){return new Promise((function(r,n){var a=new y(t,o);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,i={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var i=t.split(":"),o=i.shift().trim();if(o){var r=i.join(":").trim();e.append(o,r)}})),e)};i.url="responseURL"in s?s.responseURL:i.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new g(o,i))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=y,t.Response=g),e.Headers=l,e.Request=y,e.Response=g,e.fetch=m,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(xr||(xr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(wr||(wr={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Or||(Or={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Sr||(Sr={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}($r||($r={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Nr||(Nr={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Cr||(Cr={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(kr||(kr={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Er||(Er={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Rr||(Rr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ir||(Ir={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Ur||(Ur={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Lr||(Lr={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(_r||(_r={}));const Ar={[_r.PERSONAL_BOOK_SHARE_USER]:[_r.PERSONAL_BOOK_USER],[_r.HTML_EXPORT_USER]:[_r.PERSONAL_BOOK_USER],[_r.PDF_EXPORT_USER]:[_r.PERSONAL_BOOK_USER],[_r.KHUB_ADMIN]:[_r.CONTENT_PUBLISHER],[_r.ADMIN]:[_r.KHUB_ADMIN,_r.USERS_ADMIN,_r.PORTAL_ADMIN],[_r.DEVELOPER]:[_r.BETA_USER,_r.DEBUG_USER]};function Tr(t,e){return t===e||(Ar[t]??[]).some((t=>Tr(t,e)))}function Wr(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>Tr(t,e)))}
665
+ `;var $n,Nn,Cn,En,kn,Rn,In,Un,Ln,An,_n,Tn,Wn,Dn;!function(t){!function(e){var i={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(i.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return i.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function f(t){var e=new FileReader,i=h(e);return e.readAsArrayBuffer(t),i}function d(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function u(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:i.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():i.arrayBuffer&&i.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,i=h(e);return e.readAsText(t),i}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),o=0;o<e.length;o++)i[o]=String.fromCharCode(e[o]);return i.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var i=this.map[t];this.map[t]=i?i+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var i in this.map)this.map.hasOwnProperty(i)&&t.call(e,this.map[i],i,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,i){t.push(i)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,i){t.push([i,e])})),s(t)},i.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var i,o,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(i=e.method||this.method||"GET",o=i.toUpperCase(),p.indexOf(o)>-1?o:i),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),o=i.shift().replace(/\+/g," "),r=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},u.call(y.prototype),u.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];b.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var i=Error(t);this.stack=i.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,o){return new Promise((function(r,n){var a=new y(t,o);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,i={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var i=t.split(":"),o=i.shift().trim();if(o){var r=i.join(":").trim();e.append(o,r)}})),e)};i.url="responseURL"in s?s.responseURL:i.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new b(o,i))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&i.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=y,t.Response=b),e.Headers=l,e.Request=y,e.Response=b,e.fetch=m,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}($n||($n={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Nn||(Nn={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Cn||(Cn={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(En||(En={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(kn||(kn={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Rn||(Rn={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(In||(In={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Un||(Un={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ln||(Ln={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(An||(An={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(_n||(_n={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Tn||(Tn={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Wn||(Wn={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Dn||(Dn={}));const Fn={[Dn.PERSONAL_BOOK_SHARE_USER]:[Dn.PERSONAL_BOOK_USER],[Dn.HTML_EXPORT_USER]:[Dn.PERSONAL_BOOK_USER],[Dn.PDF_EXPORT_USER]:[Dn.PERSONAL_BOOK_USER],[Dn.KHUB_ADMIN]:[Dn.CONTENT_PUBLISHER],[Dn.ADMIN]:[Dn.KHUB_ADMIN,Dn.USERS_ADMIN,Dn.PORTAL_ADMIN],[Dn.DEVELOPER]:[Dn.BETA_USER,Dn.DEBUG_USER]};function Pn(t,e){return t===e||(Fn[t]??[]).some((t=>Pn(t,e)))}function Mn(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>Pn(t,e)))}
645
666
  /**
646
- * @license
647
- * Copyright 2020 Google LLC
648
- * SPDX-License-Identifier: BSD-3-Clause
649
- */const Dr=Symbol.for(""),Fr=t=>{if((null==t?void 0:t.r)===Dr)return null==t?void 0:t._$litStatic$},jr=t=>({_$litStatic$:t,r:Dr}),zr=new Map,Br=(t=>(e,...i)=>{const o=i.length;let r,n;const a=[],s=[];let l,c=0,f=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(n=i[c],r=Fr(n));)l+=r+e[++c],f=!0;c!==o&&s.push(n),a.push(l),c++}if(c===o&&a.push(e[o]),f){const t=a.join("$$lit$$");void 0===(e=zr.get(t))&&(a.raw=a,zr.set(t,e=a)),i=s}return t(e,...i)})(ot);var Mr;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Mr||(Mr={}));var Pr=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Kr extends zt{constructor(){super(...arguments),this.variant=Mr.body1}render(){return this.element?Br`
650
- <${jr(this.element)}
667
+ * @license
668
+ * Copyright 2020 Google LLC
669
+ * SPDX-License-Identifier: BSD-3-Clause
670
+ */const zn=Symbol.for(""),jn=t=>{if(t?.r===zn)return t?._$litStatic$},Bn=t=>({_$litStatic$:t,r:zn}),Kn=new Map,Zn=(t=>(e,...i)=>{const o=i.length;let r,n;const a=[],s=[];let l,c=0,h=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(n=i[c],r=jn(n));)l+=r+e[++c],h=!0;c!==o&&s.push(n),a.push(l),c++}if(c===o&&a.push(e[o]),h){const t=a.join("$$lit$$");void 0===(e=Kn.get(t))&&(a.raw=a,Kn.set(t,e=a)),i=s}return t(e,...i)})(ot);var Hn;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Hn||(Hn={}));var Gn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Vn extends Be{constructor(){super(...arguments),this.variant=Hn.body1}render(){return this.element?Zn`
671
+ <${Bn(this.element)}
651
672
  class="ft-typography ft-typography--${this.variant}">
652
673
  <slot></slot>
653
- </${jr(this.element)}>
654
- `:Br`
674
+ </${Bn(this.element)}>
675
+ `:Zn`
655
676
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
656
- `}}Kr.styles=[Ho,Go,Vo,qo,Yo,Xo,Jo,Qo,tr,er,ir,...or],Pr([a()],Kr.prototype,"element",void 0),Pr([a()],Kr.prototype,"variant",void 0),b("ft-typography")(Kr);
677
+ `}}Vn.styles=[qr,Yr,Xr,Jr,Qr,tn,en,on,rn,nn,an,...sn],Gn([k()],Vn.prototype,"element",void 0),Gn([k()],Vn.prototype,"variant",void 0),T("ft-typography")(Vn);
657
678
  /**
658
- * @license
659
- * Copyright 2017 Google LLC
660
- * SPDX-License-Identifier: BSD-3-Clause
661
- */
662
- const Zr=1,Hr=2,Gr=t=>(...e)=>({_$litDirective$:t,values:e});class Vr{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)}}
679
+ * @license
680
+ * Copyright 2017 Google LLC
681
+ * SPDX-License-Identifier: BSD-3-Clause
682
+ */
683
+ const qn=1,Yn=2,Xn=t=>(...e)=>({_$litDirective$:t,values:e});class Jn{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)}}
663
684
  /**
664
- * @license
665
- * Copyright 2017 Google LLC
666
- * SPDX-License-Identifier: BSD-3-Clause
667
- */class qr extends Vr{constructor(t){if(super(t),this.et=nt,t.type!==Hr)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===nt||null==t)return this.ft=void 0,this.et=t;if(t===rt)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}qr.directiveName="unsafeHTML",qr.resultType=1;const Yr=Gr(qr);var Xr,Jr,Qr;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Xr||(Xr={})),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;"}(Jr||(Jr={})),new Map([...["abw"].map((t=>[t,Jr.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,Jr.AUDIO])),...["avi"].map((t=>[t,Jr.AVI])),...["chm","xhs"].map((t=>[t,Jr.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,Jr.CODE])),...["csv"].map((t=>[t,Jr.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Jr.DITA])),...["epub"].map((t=>[t,Jr.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Jr.EXCEL])),...["flac"].map((t=>[t,Jr.FLAC])),...["gif"].map((t=>[t,Jr.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Jr.GZIP])),...["html","htm","xhtml"].map((t=>[t,Jr.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,Jr.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Jr.JPEG])),...["json"].map((t=>[t,Jr.JSON])),...["m4a","m4p"].map((t=>[t,Jr.M4A])),...["mov","qt"].map((t=>[t,Jr.MOV])),...["mp3"].map((t=>[t,Jr.MP3])),...["mp4","m4v"].map((t=>[t,Jr.MP4])),...["ogg","oga"].map((t=>[t,Jr.OGG])),...["pdf","ps"].map((t=>[t,Jr.PDF])),...["png"].map((t=>[t,Jr.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Jr.POWERPOINT])),...["rar"].map((t=>[t,Jr.RAR])),...["stp"].map((t=>[t,Jr.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Jr.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,Jr.VIDEO])),...["wav"].map((t=>[t,Jr.WAV])),...["wma"].map((t=>[t,Jr.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Jr.WORD])),...["xml","xsl","rdf"].map((t=>[t,Jr.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Jr.YAML])),...["zip"].map((t=>[t,Jr.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Qr||(Qr={}));var tn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class en extends zt{constructor(){super(...arguments),this.resolvedIcon=nt}render(){const t=this.variant&&Object.values(Qr).includes(this.variant)?this.variant:Qr.fluid_topics,e=t!==Qr.material||!!this.value;return ot`
685
+ * @license
686
+ * Copyright 2017 Google LLC
687
+ * SPDX-License-Identifier: BSD-3-Clause
688
+ */let Qn=class extends Jn{constructor(t){if(super(t),this.et=nt,t.type!==Yn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===nt||null==t)return this.vt=void 0,this.et=t;if(t===rt)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};Qn.directiveName="unsafeHTML",Qn.resultType=1;const ta=Xn(Qn);var ea,ia,oa;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(ea||(ea={})),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;"}(ia||(ia={})),new Map([...["abw"].map((t=>[t,ia.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,ia.AUDIO])),...["avi"].map((t=>[t,ia.AVI])),...["chm","xhs"].map((t=>[t,ia.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,ia.CODE])),...["csv"].map((t=>[t,ia.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ia.DITA])),...["epub"].map((t=>[t,ia.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ia.EXCEL])),...["flac"].map((t=>[t,ia.FLAC])),...["gif"].map((t=>[t,ia.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ia.GZIP])),...["html","htm","xhtml"].map((t=>[t,ia.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,ia.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ia.JPEG])),...["json"].map((t=>[t,ia.JSON])),...["m4a","m4p"].map((t=>[t,ia.M4A])),...["mov","qt"].map((t=>[t,ia.MOV])),...["mp3"].map((t=>[t,ia.MP3])),...["mp4","m4v"].map((t=>[t,ia.MP4])),...["ogg","oga"].map((t=>[t,ia.OGG])),...["pdf","ps"].map((t=>[t,ia.PDF])),...["png"].map((t=>[t,ia.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ia.POWERPOINT])),...["rar"].map((t=>[t,ia.RAR])),...["stp"].map((t=>[t,ia.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ia.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,ia.VIDEO])),...["wav"].map((t=>[t,ia.WAV])),...["wma"].map((t=>[t,ia.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ia.WORD])),...["xml","xsl","rdf"].map((t=>[t,ia.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ia.YAML])),...["zip"].map((t=>[t,ia.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(oa||(oa={}));var ra=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class na extends Be{constructor(){super(...arguments),this.resolvedIcon=fe}render(){const t=this.variant&&Object.values(oa).includes(this.variant)?this.variant:oa.fluid_topics,e=t!==oa.material||!!this.value;return ce`
668
689
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
669
- ${Yr(this.resolvedIcon)}
690
+ ${ta(this.resolvedIcon)}
670
691
  <slot ?hidden=${e}></slot>
671
692
  </i>
672
- `}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 Qr.file_format:this.resolvedIcon=null!==(t=Jr[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Qr.material:this.resolvedIcon=this.value||nt;break;default:this.resolvedIcon=null!==(e=Xr[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}en.elementDefinitions={},en.styles=sr,tn([a()],en.prototype,"variant",void 0),tn([a()],en.prototype,"value",void 0),tn([s()],en.prototype,"resolvedIcon",void 0),tn([c("slot")],en.prototype,"slottedContent",void 0),b("ft-icon")(en);const on=Ct.create("--ft-tooltip-distance","","SIZE","4px"),rn=Ct.create("--ft-tooltip-color","","COLOR","#FFFFFF"),nn=Ct.create("--ft-tooltip-background-color","","COLOR","#666666"),an=Ct.create("--ft-tooltip-z-index","","NUMBER","100"),sn=Ct.external(Lt.borderRadiusS,"Design system"),ln=Ct.create("--ft-tooltip-max-width","","SIZE","150px"),cn=$`
693
+ `}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 oa.file_format:this.resolvedIcon=null!==(t=ia[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case oa.material:this.resolvedIcon=this.value||fe;break;default:this.resolvedIcon=null!==(e=ea[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}na.elementDefinitions={},na.styles=fn,ra([k()],na.prototype,"variant",void 0),ra([k()],na.prototype,"value",void 0),ra([R()],na.prototype,"resolvedIcon",void 0),ra([U("slot")],na.prototype,"slottedContent",void 0),T("ft-icon")(na);const aa=Ee.create("--ft-tooltip-distance","","SIZE","4px"),sa=Ee.create("--ft-tooltip-color","","COLOR","#FFFFFF"),la=Ee.create("--ft-tooltip-background-color","","COLOR","#666666"),ca=Ee.create("--ft-tooltip-z-index","","NUMBER","100"),ha=Ee.external(Ae.borderRadiusS,"Design system"),fa=Ee.create("--ft-tooltip-max-width","","SIZE","150px"),da=Et`
673
694
  .ft-tooltip--container {
674
695
  display: block;
675
696
  }
@@ -684,21 +705,21 @@ const Zr=1,Hr=2,Gr=t=>(...e)=>({_$litDirective$:t,values:e});class Vr{constructo
684
705
  box-sizing: border-box;
685
706
  overflow: hidden;
686
707
  width: max-content;
687
- max-width: ${ln};
708
+ max-width: ${fa};
688
709
  text-align: center;
689
- padding: ${on};
690
- z-index: ${an};
710
+ padding: ${aa};
711
+ z-index: ${ca};
691
712
  }
692
713
 
693
714
  .ft-tooltip--content {
694
715
  padding: 4px 8px;
695
- border-radius: ${sn};
696
- background-color: ${nn};
697
- color: ${rn};
716
+ border-radius: ${ha};
717
+ background-color: ${la};
718
+ color: ${sa};
698
719
  position: relative;
699
720
  word-break: break-word;
700
721
  }
701
- `;var fn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class dn extends zt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new r,this.revealDebouncer=new r}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ot`
722
+ `;var ua=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class pa extends Be{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new r,this.revealDebouncer=new r}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ce`
702
723
  <div part="container"
703
724
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
704
725
  @mouseenter=${this.onHover}
@@ -716,24 +737,24 @@ const Zr=1,Hr=2,Gr=t=>(...e)=>({_$litDirective$:t,values:e});class Vr{constructo
716
737
  </div>
717
738
  </div>
718
739
  </div>
719
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,r=(t.offsetWidth-e)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-i-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,f=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,f))+"px";let d=-l.y,h=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(d,h))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${ln})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}dn.elementDefinitions={"ft-typography":Kr},dn.styles=cn,fn([a()],dn.prototype,"text",void 0),fn([a({type:Boolean})],dn.prototype,"manual",void 0),fn([a({type:Boolean})],dn.prototype,"inline",void 0),fn([a({type:Number})],dn.prototype,"delay",void 0),fn([a()],dn.prototype,"position",void 0),fn([u("",!0)],dn.prototype,"slotNodes",void 0),fn([c(".ft-tooltip--container")],dn.prototype,"container",void 0),fn([c(".ft-tooltip")],dn.prototype,"tooltip",void 0),fn([c(".ft-tooltip--content")],dn.prototype,"tooltipContent",void 0),fn([s()],dn.prototype,"visible",void 0),b("ft-tooltip")(dn);
740
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,i=this.tooltip.offsetHeight,o=(t.offsetHeight-i)/2,r=(t.offsetWidth-e)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-i-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,h=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,h))+"px";let f=-l.y,d=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(f,d))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${fa})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}pa.elementDefinitions={"ft-typography":Vn},pa.styles=da,ua([k()],pa.prototype,"text",void 0),ua([k({type:Boolean})],pa.prototype,"manual",void 0),ua([k({type:Boolean})],pa.prototype,"inline",void 0),ua([k({type:Number})],pa.prototype,"delay",void 0),ua([k()],pa.prototype,"position",void 0),ua([L()],pa.prototype,"slotNodes",void 0),ua([U(".ft-tooltip--container")],pa.prototype,"container",void 0),ua([U(".ft-tooltip")],pa.prototype,"tooltip",void 0),ua([U(".ft-tooltip--content")],pa.prototype,"tooltipContent",void 0),ua([R()],pa.prototype,"visible",void 0),T("ft-tooltip")(pa);
720
741
  /**
721
- * @license
722
- * Copyright 2018 Google LLC
723
- * SPDX-License-Identifier: BSD-3-Clause
724
- */
725
- const hn=Gr(class extends Vr{constructor(t){var e;if(super(t),t.type!==Zr||"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.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const r=t.element.classList;this.it.forEach((t=>{t in e||(r.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(r.add(t),this.it.add(t)):(r.remove(t),this.it.delete(t)))}return rt}});var un=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class pn extends zt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new r(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new r(10),this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),n=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-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return ot`
742
+ * @license
743
+ * Copyright 2018 Google LLC
744
+ * SPDX-License-Identifier: BSD-3-Clause
745
+ */
746
+ const ya=Xn(class extends Jn{constructor(t){if(super(t),t.type!==qn||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const i=t.element.classList;for(const t of this.it)t in e||(i.remove(t),this.it.delete(t));for(const t in e){const o=!!e[t];o===this.it.has(t)||this.st?.has(t)||(o?(i.add(t),this.it.add(t)):(i.remove(t),this.it.delete(t)))}return rt}});var ga=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ba extends Be{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new r(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new r(10),this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),n=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-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return ce`
726
747
  <style>
727
748
  .ft-ripple .ft-ripple--effect {
728
749
  left: ${this.originX}px;
729
750
  top: ${this.originY}px;
730
751
  }
731
752
  </style>
732
- <div class="${hn(t)}">
753
+ <div class="${ya(t)}">
733
754
  <div class="ft-ripple--background"></div>
734
755
  <div class="ft-ripple--effect"></div>
735
756
  </div>
736
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}pn.elementDefinitions={},pn.styles=ao,un([a({type:Boolean})],pn.prototype,"primary",void 0),un([a({type:Boolean})],pn.prototype,"secondary",void 0),un([a({type:Boolean})],pn.prototype,"unbounded",void 0),un([a({type:Boolean})],pn.prototype,"activated",void 0),un([a({type:Boolean})],pn.prototype,"selected",void 0),un([a({type:Boolean})],pn.prototype,"disabled",void 0),un([s()],pn.prototype,"hovered",void 0),un([s()],pn.prototype,"focused",void 0),un([s()],pn.prototype,"pressed",void 0),un([s()],pn.prototype,"rippling",void 0),un([s()],pn.prototype,"originX",void 0),un([s()],pn.prototype,"originY",void 0),un([c(".ft-ripple")],pn.prototype,"ripple",void 0),un([c(".ft-ripple--effect")],pn.prototype,"rippleEffect",void 0),b("ft-ripple")(pn);const yn={borderRadiusLeft:Ct.extend("--ft-switch-option-border-radius-left","",Lt.borderRadiusL),borderRadiusRight:Ct.extend("--ft-switch-option-border-radius-right","",Lt.borderRadiusL),borderWidthLeft:Ct.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Ct.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Ct.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},bn=$`
757
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}ba.elementDefinitions={},ba.styles=hr,ga([k({type:Boolean})],ba.prototype,"primary",void 0),ga([k({type:Boolean})],ba.prototype,"secondary",void 0),ga([k({type:Boolean})],ba.prototype,"unbounded",void 0),ga([k({type:Boolean})],ba.prototype,"activated",void 0),ga([k({type:Boolean})],ba.prototype,"selected",void 0),ga([k({type:Boolean})],ba.prototype,"disabled",void 0),ga([R()],ba.prototype,"hovered",void 0),ga([R()],ba.prototype,"focused",void 0),ga([R()],ba.prototype,"pressed",void 0),ga([R()],ba.prototype,"rippling",void 0),ga([R()],ba.prototype,"originX",void 0),ga([R()],ba.prototype,"originY",void 0),ga([U(".ft-ripple")],ba.prototype,"ripple",void 0),ga([U(".ft-ripple--effect")],ba.prototype,"rippleEffect",void 0),T("ft-ripple")(ba);const va={borderRadiusLeft:Ee.extend("--ft-switch-option-border-radius-left","",Ae.borderRadiusL),borderRadiusRight:Ee.extend("--ft-switch-option-border-radius-right","",Ae.borderRadiusL),borderWidthLeft:Ee.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Ee.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Ee.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},ma=Et`
737
758
  .ft-switch-option {
738
759
  position: relative;
739
760
  display: inline-block;
@@ -747,20 +768,20 @@ const hn=Gr(class extends Vr{constructor(t){var e;if(super(t),t.type!==Zr||"clas
747
768
  }
748
769
 
749
770
  .ft-switch-option--content {
750
- --ft-switch-option-internal-line-height: calc(${gr.fontSize} + 2px);
751
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${gr.iconSize});
771
+ --ft-switch-option-internal-line-height: calc(${wn.fontSize} + 2px);
772
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${wn.iconSize});
752
773
 
753
774
  border-style: solid;
754
- border-color: ${gr.borderColor};
755
- border-width: ${yn.borderWidthVertical} ${yn.borderWidthRight} ${yn.borderWidthVertical} ${yn.borderWidthLeft};
756
- border-radius: ${yn.borderRadiusLeft} ${yn.borderRadiusRight} ${yn.borderRadiusRight} ${yn.borderRadiusLeft};
775
+ border-color: ${wn.borderColor};
776
+ border-width: ${va.borderWidthVertical} ${va.borderWidthRight} ${va.borderWidthVertical} ${va.borderWidthLeft};
777
+ border-radius: ${va.borderRadiusLeft} ${va.borderRadiusRight} ${va.borderRadiusRight} ${va.borderRadiusLeft};
757
778
  display: flex;
758
779
  align-items: center;
759
780
  justify-content: center;
760
781
  overflow: hidden;
761
- ${kt(ar.size,gr.iconSize)};
782
+ ${ke(hn.size,wn.iconSize)};
762
783
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
763
- background-color: ${gr.backgroundColor};
784
+ background-color: ${wn.backgroundColor};
764
785
  -webkit-mask-image: radial-gradient(white, black);
765
786
  }
766
787
 
@@ -769,28 +790,28 @@ const hn=Gr(class extends Vr{constructor(t){var e;if(super(t),t.type!==Zr||"clas
769
790
  }
770
791
 
771
792
  .ft-switch-option--selected .ft-switch-option--content:before {
772
- background-color: ${gr.selectedBackgroundColor};
773
- border-radius: ${yn.borderRadiusLeft} ${yn.borderRadiusRight} ${yn.borderRadiusRight} ${yn.borderRadiusLeft};
793
+ background-color: ${wn.selectedBackgroundColor};
794
+ border-radius: ${va.borderRadiusLeft} ${va.borderRadiusRight} ${va.borderRadiusRight} ${va.borderRadiusLeft};
774
795
  position: absolute;
775
796
  inset: 0;
776
797
  content: "";
777
798
  z-index: 1;
778
- opacity: ${Lt.opacityPrimaryOnSurfaceSelected};
799
+ opacity: ${Ae.opacityPrimaryOnSurfaceSelected};
779
800
  }
780
801
 
781
802
  .ft-switch-option--label {
782
- color: ${gr.textColor};
803
+ color: ${wn.textColor};
783
804
  overflow: hidden;
784
805
  white-space: nowrap;
785
806
  text-overflow: ellipsis;
786
807
  display: block;
787
808
  margin: 0 8px;
788
- ${kt(Zo.fontSize,gr.fontSize)};
789
- ${kt(Zo.lineHeight,"var(--ft-switch-option-internal-content-height)")}
809
+ ${ke(Vr.fontSize,wn.fontSize)};
810
+ ${ke(Vr.lineHeight,"var(--ft-switch-option-internal-content-height)")}
790
811
  }
791
812
 
792
813
  .ft-switch-option--selected .ft-switch-option--label {
793
- color: ${gr.selectedTextColor};
814
+ color: ${wn.selectedTextColor};
794
815
  }
795
816
 
796
817
  .ft-switch-option--label[hidden] {
@@ -798,7 +819,7 @@ const hn=Gr(class extends Vr{constructor(t){var e;if(super(t),t.type!==Zr||"clas
798
819
  }
799
820
 
800
821
  .ft-switch-option--ripple {
801
- ${kt(Qi.color,gr.rippleColor)};
822
+ ${ke(or.color,wn.rippleColor)};
802
823
  }
803
824
 
804
825
  ft-icon, ft-ripple, ft-typography {
@@ -811,20 +832,20 @@ const hn=Gr(class extends Vr{constructor(t){var e;if(super(t),t.type!==Zr||"clas
811
832
 
812
833
  ft-icon {
813
834
  flex-shrink: 0;
814
- color: ${gr.iconColor};
835
+ color: ${wn.iconColor};
815
836
  }
816
837
 
817
838
  .ft-switch-option--selected ft-icon {
818
- color: ${gr.selectedTextColor};
839
+ color: ${wn.selectedTextColor};
819
840
  }
820
- `;var gn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class vn extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class mn extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class xn extends zt{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new mn(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(ot`
821
- <label part="label" for="input" class=${hn(t)}
841
+ `;var xa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class wa extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class Oa extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class Sa extends Be{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new Oa(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(ce`
842
+ <label part="label" for="input" class=${ya(t)}
822
843
  @click=${this.onChange}>
823
844
  <div class="ft-switch-option--content">
824
845
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
825
846
  <ft-typography part="text"
826
847
  variant="button"
827
- class="ft-switch-option--label ${Hi?"ft-safari-ellipsis-fix":""}"
848
+ class="ft-switch-option--label ${Yo?"ft-safari-ellipsis-fix":""}"
828
849
  ?hidden=${!this.hasTextContent()}>
829
850
  <slot @slotchange=${this.onSlotchange}></slot>
830
851
  </ft-typography>
@@ -833,29 +854,29 @@ const hn=Gr(class extends Vr{constructor(t){var e;if(super(t),t.type!==Zr||"clas
833
854
  </label>
834
855
  <input id="input" type="radio" class="ft-switch-option--input"
835
856
  .checked=${this.selected}>
836
- `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:ot`
857
+ `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:ce`
837
858
  <ft-tooltip part="tooltip"
838
859
  text="${this.getLabel()}"
839
860
  position="${this.tooltipPosition}">
840
861
  ${t}
841
862
  </ft-tooltip>
842
- `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new vn(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?ot`
863
+ `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new wa(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?ce`
843
864
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
844
- `:nt}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()}}xn.elementDefinitions={"ft-ripple":pn,"ft-typography":Kr,"ft-tooltip":dn,"ft-icon":en},xn.styles=[Mt,bn],gn([a()],xn.prototype,"value",void 0),gn([a()],xn.prototype,"icon",void 0),gn([a()],xn.prototype,"iconVariant",void 0),gn([a()],xn.prototype,"label",void 0),gn([a()],xn.prototype,"tooltipPosition",void 0),gn([a({type:Boolean,reflect:!0})],xn.prototype,"selected",void 0),gn([a({type:Boolean})],xn.prototype,"trailingIcon",void 0),gn([a({type:Boolean})],xn.prototype,"unselectable",void 0),gn([c(".ft-switch-option--content slot")],xn.prototype,"slottedContent",void 0),gn([c(".ft-switch-option--input")],xn.prototype,"input",void 0);var wn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class On extends CustomEvent{constructor(t){super("change",{detail:t})}}class Sn extends zt{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}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return ot`
845
- <div @keydown=${this.onKeyDown} tabindex="0" class="${hn(t)}">
865
+ `:fe}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()}}Sa.elementDefinitions={"ft-ripple":ba,"ft-typography":Vn,"ft-tooltip":pa,"ft-icon":na},Sa.styles=[Ze,ma],xa([k()],Sa.prototype,"value",void 0),xa([k()],Sa.prototype,"icon",void 0),xa([k()],Sa.prototype,"iconVariant",void 0),xa([k()],Sa.prototype,"label",void 0),xa([k()],Sa.prototype,"tooltipPosition",void 0),xa([k({type:Boolean,reflect:!0})],Sa.prototype,"selected",void 0),xa([k({type:Boolean})],Sa.prototype,"trailingIcon",void 0),xa([k({type:Boolean})],Sa.prototype,"unselectable",void 0),xa([U(".ft-switch-option--content slot")],Sa.prototype,"slottedContent",void 0),xa([U(".ft-switch-option--input")],Sa.prototype,"input",void 0);var $a=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Na extends CustomEvent{constructor(t){super("change",{detail:t})}}class Ca extends Be{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}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return ce`
866
+ <div @keydown=${this.onKeyDown} tabindex="0" class="${ya(t)}">
846
867
  <slot @slotchange=${this.onSlotchange}
847
868
  @option-change=${this.onOptionChangeByScript}
848
869
  @option-change-by-user=${this.onOptionChangeByUser}
849
870
  ></slot>
850
871
  </div>
851
- `}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 xn&&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)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new On(null===(e=this.selectedOption)||void 0===e?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}Sn.elementDefinitions={},Sn.styles=$`
872
+ `}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 Sa&&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)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new Na(null===(e=this.selectedOption)||void 0===e?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}Ca.elementDefinitions={},Ca.styles=Et`
852
873
  :host {
853
874
  display: inline-block;
854
875
  }
855
876
 
856
877
  .ft-switch {
857
- border-radius: ${gr.borderRadius};
858
- outline-color: ${gr.outlineColor};
878
+ border-radius: ${wn.borderRadius};
879
+ outline-color: ${wn.outlineColor};
859
880
  }
860
881
 
861
882
  .ft-switch slot {
@@ -864,25 +885,25 @@ const hn=Gr(class extends Vr{constructor(t){var e;if(super(t),t.type!==Zr||"clas
864
885
  }
865
886
 
866
887
  .ft-switch slot::slotted(ft-switch-option) {
867
- ${kt(yn.borderRadiusLeft,"0")};
868
- ${kt(yn.borderRadiusRight,"0")};
869
- ${kt(yn.borderWidthLeft,"0")};
888
+ ${ke(va.borderRadiusLeft,"0")};
889
+ ${ke(va.borderRadiusRight,"0")};
890
+ ${ke(va.borderWidthLeft,"0")};
870
891
  }
871
892
 
872
893
  .ft-switch slot::slotted(ft-switch-option:first-child) {
873
- ${kt(yn.borderRadiusLeft,gr.borderRadius)};
874
- ${kt(yn.borderWidthLeft,"1px")};
894
+ ${ke(va.borderRadiusLeft,wn.borderRadius)};
895
+ ${ke(va.borderWidthLeft,"1px")};
875
896
  }
876
897
 
877
898
  .ft-switch slot::slotted(ft-switch-option:last-child) {
878
- ${kt(yn.borderRadiusRight,gr.borderRadius)};
899
+ ${ke(va.borderRadiusRight,wn.borderRadius)};
879
900
  }
880
901
 
881
902
  .ft-switch--dense slot::slotted(ft-switch-option) {
882
903
  --ft-switch-internal-vertical-padding: 2px;
883
904
  --ft-switch-internal-horizontal-padding: 4px;
884
905
  }
885
- `,wn([a({type:Boolean})],Sn.prototype,"dense",void 0),wn([a({type:Boolean})],Sn.prototype,"unselectable",void 0),wn([c(".ft-switch slot")],Sn.prototype,"slottedContent",void 0),wn([s()],Sn.prototype,"selectedOption",void 0),wn([c(".ft-switch")],Sn.prototype,"ftSwitchDiv",void 0),b("ft-switch")(Sn),b("ft-switch-option")(xn);const $n=Ct.external(Lt.colorOutline,"Design system"),Nn=Ct.external(Lt.colorOnSurfaceMedium,"Design system"),Cn=$`
906
+ `,$a([k({type:Boolean})],Ca.prototype,"dense",void 0),$a([k({type:Boolean})],Ca.prototype,"unselectable",void 0),$a([U(".ft-switch slot")],Ca.prototype,"slottedContent",void 0),$a([R()],Ca.prototype,"selectedOption",void 0),$a([U(".ft-switch")],Ca.prototype,"ftSwitchDiv",void 0),T("ft-switch")(Ca),T("ft-switch-option")(Sa);const Ea=Ee.external(Ae.colorOutline,"Design system"),ka=Ee.external(Ae.colorOnSurfaceMedium,"Design system"),Ra=Et`
886
907
  :host {
887
908
  display: block;
888
909
  }
@@ -893,17 +914,17 @@ const hn=Gr(class extends Vr{constructor(t){var e;if(super(t),t.type!==Zr||"clas
893
914
 
894
915
  ft-icon {
895
916
  transform: rotate(-45deg);
896
- color: ${$n};
917
+ color: ${Ea};
897
918
  }
898
919
 
899
920
  .ft-resizer--dragging ft-icon,
900
921
  .ft-resizer:hover ft-icon {
901
- color: ${Nn};
922
+ color: ${ka};
902
923
  }
903
- `;var kn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class En extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class Rn extends zt{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Qr.material,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 ot`
924
+ `;var Ia=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ua extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class La extends Be{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=oa.material,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 ce`
904
925
  <style>
905
926
  .ft-resizer {
906
- cursor: ${S(this.cursor)}
927
+ cursor: ${Ct(this.cursor)}
907
928
  }
908
929
  </style>
909
930
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
@@ -911,25 +932,25 @@ const hn=Gr(class extends Vr{constructor(t){var e;if(super(t),t.type!==Zr||"clas
911
932
  @touchstart=${this.initDragFromTouch}>
912
933
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
913
934
  </div>
914
- `}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))}}Rn.elementDefinitions={"ft-icon":en},Rn.styles=[Bt,Cn],kn([a({type:Number})],Rn.prototype,"initialWidth",void 0),kn([a({type:Number})],Rn.prototype,"initialHeight",void 0),kn([a()],Rn.prototype,"icon",void 0),kn([a()],Rn.prototype,"iconVariant",void 0),kn([a()],Rn.prototype,"cursor",void 0),kn([s()],Rn.prototype,"dragging",void 0),b("ft-resizer")(Rn);const In={fontSize:Ct.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Ct.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Ct.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Ct.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ct.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Ct.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Ct.extend("--ft-input-label-border-color","",Lt.colorOutline),textColor:Ct.extend("--ft-input-label-text-color","",Lt.colorOnSurfaceMedium),disabledTextColor:Ct.extend("--ft-input-label-disabled-text-color","",Lt.colorOnSurfaceDisabled),colorSurface:Ct.external(Lt.colorSurface,"Design system"),borderRadiusS:Ct.external(Lt.borderRadiusS,"Design system"),colorError:Ct.external(Lt.colorError,"Design system")},Un=$`
935
+ `}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 Ua(i,o))}}La.elementDefinitions={"ft-icon":na},La.styles=[Ke,Ra],Ia([k({type:Number})],La.prototype,"initialWidth",void 0),Ia([k({type:Number})],La.prototype,"initialHeight",void 0),Ia([k()],La.prototype,"icon",void 0),Ia([k()],La.prototype,"iconVariant",void 0),Ia([k()],La.prototype,"cursor",void 0),Ia([R()],La.prototype,"dragging",void 0),T("ft-resizer")(La);const Aa={fontSize:Ee.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Ee.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Ee.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Ee.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ee.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Ee.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Ee.extend("--ft-input-label-border-color","",Ae.colorOutline),textColor:Ee.extend("--ft-input-label-text-color","",Ae.colorOnSurfaceMedium),disabledTextColor:Ee.extend("--ft-input-label-disabled-text-color","",Ae.colorOnSurfaceDisabled),colorSurface:Ee.external(Ae.colorSurface,"Design system"),borderRadiusS:Ee.external(Ae.borderRadiusS,"Design system"),colorError:Ee.external(Ae.colorError,"Design system")},_a=Et`
915
936
  .ft-input-label {
916
937
  position: absolute;
917
938
  inset: 0;
918
939
  display: flex;
919
- background-color: ${In.colorSurface};
920
- border-radius: ${In.borderRadiusS} ${In.borderRadiusS} 0 0;
940
+ background-color: ${Aa.colorSurface};
941
+ border-radius: ${Aa.borderRadiusS} ${Aa.borderRadiusS} 0 0;
921
942
  }
922
943
 
923
944
  .ft-input-label--outlined {
924
- border-radius: ${In.borderRadiusS};
945
+ border-radius: ${Aa.borderRadiusS};
925
946
  }
926
947
 
927
948
  .ft-input-label {
928
- border-color: ${In.borderColor};
949
+ border-color: ${Aa.borderColor};
929
950
  }
930
951
 
931
952
  .ft-input-label.ft-input-label--in-error {
932
- border-color: ${In.colorError}
953
+ border-color: ${Aa.colorError}
933
954
  }
934
955
 
935
956
  .ft-input-label:before,
@@ -942,7 +963,7 @@ const hn=Gr(class extends Vr{constructor(t){var e;if(super(t),t.type!==Zr||"clas
942
963
  }
943
964
 
944
965
  .ft-input-label:before {
945
- width: calc(${In.horizontalSpacing} - 4px);
966
+ width: calc(${Aa.horizontalSpacing} - 4px);
946
967
  flex-shrink: 0;
947
968
  }
948
969
 
@@ -958,20 +979,20 @@ const hn=Gr(class extends Vr{constructor(t){var e;if(super(t),t.type!==Zr||"clas
958
979
  border-bottom-width: 1px;
959
980
  border-bottom-style: solid;
960
981
  border-color: inherit;
961
- color: ${In.textColor};
982
+ color: ${Aa.textColor};
962
983
  transition: font-size 250ms, line-height 250ms, color 250ms;
963
- max-width: calc(${In.labelMaxWidth} - 2 * (${In.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
984
+ max-width: calc(${Aa.labelMaxWidth} - 2 * (${Aa.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
964
985
  text-overflow: ellipsis;
965
- ${kt(Lo.fontSize,In.fontSize)};
966
- ${kt(Lo.lineHeight,In.fontSize)};
986
+ ${ke(Tr.fontSize,Aa.fontSize)};
987
+ ${ke(Tr.lineHeight,Aa.fontSize)};
967
988
  }
968
989
 
969
990
  .ft-input-label--in-error .ft-input-label--text {
970
- color: ${In.colorError}
991
+ color: ${Aa.colorError}
971
992
  }
972
993
 
973
994
  .ft-input-label--disabled .ft-input-label--text {
974
- color: ${In.disabledTextColor};
995
+ color: ${Aa.disabledTextColor};
975
996
  }
976
997
 
977
998
  .ft-input-label--hidden-text {
@@ -988,19 +1009,19 @@ const hn=Gr(class extends Vr{constructor(t){var e;if(super(t),t.type!==Zr||"clas
988
1009
  overflow: hidden;
989
1010
  white-space: nowrap;
990
1011
  text-overflow: ellipsis;
991
- padding: ${In.verticalSpacing} 4px;
992
- margin: calc(${In.verticalSpacing} * -1) 0;
1012
+ padding: ${Aa.verticalSpacing} 4px;
1013
+ margin: calc(${Aa.verticalSpacing} * -1) 0;
993
1014
  max-width: 100%;
994
1015
  box-sizing: border-box;
995
1016
  }
996
1017
 
997
1018
  .ft-input-label--raised .ft-input-label--text {
998
- ${kt(Lo.fontSize,In.raisedFontSize)};
999
- ${kt(Lo.lineHeight,In.raisedFontSize)};
1019
+ ${ke(Tr.fontSize,Aa.raisedFontSize)};
1020
+ ${ke(Tr.lineHeight,Aa.raisedFontSize)};
1000
1021
  }
1001
1022
 
1002
1023
  .ft-input-label--raised .ft-input-label--floating-text {
1003
- top: ${In.verticalSpacing};
1024
+ top: ${Aa.verticalSpacing};
1004
1025
  }
1005
1026
 
1006
1027
  .ft-input-label--outlined .ft-input-label--text,
@@ -1013,36 +1034,36 @@ const hn=Gr(class extends Vr{constructor(t){var e;if(super(t),t.type!==Zr||"clas
1013
1034
  .ft-input-label--outlined:before {
1014
1035
  border-left-width: 1px;
1015
1036
  border-left-style: solid;
1016
- border-radius: ${In.borderRadiusS} 0 0 ${In.borderRadiusS};
1037
+ border-radius: ${Aa.borderRadiusS} 0 0 ${Aa.borderRadiusS};
1017
1038
  }
1018
1039
 
1019
1040
  .ft-input-label--outlined:after {
1020
1041
  border-right-width: 1px;
1021
1042
  border-right-style: solid;
1022
- border-radius: 0 ${In.borderRadiusS} ${In.borderRadiusS} 0;
1043
+ border-radius: 0 ${Aa.borderRadiusS} ${Aa.borderRadiusS} 0;
1023
1044
  }
1024
1045
 
1025
1046
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1026
1047
  padding: 2px 4px;
1027
- z-index: ${In.raisedZIndex};
1028
- background-color: ${In.colorSurface};
1029
- border-radius: ${In.borderRadiusS};
1048
+ z-index: ${Aa.raisedZIndex};
1049
+ background-color: ${Aa.colorSurface};
1050
+ border-radius: ${Aa.borderRadiusS};
1030
1051
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
1031
1052
  }
1032
1053
 
1033
1054
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1034
1055
  border-top: none;
1035
1056
  }
1036
- `;var Ln=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class _n extends zt{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 ot`
1037
- <div class="${hn(t)}">
1038
- ${this.text?ot`
1057
+ `;var Ta=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Wa extends Be{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 ce`
1058
+ <div class="${ya(t)}">
1059
+ ${this.text?ce`
1039
1060
  <div class="ft-input-label--text ft-typography--caption">
1040
1061
  <span class="ft-input-label--floating-text">${this.text}</span>
1041
1062
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1042
1063
  </div>
1043
1064
  `:null}
1044
1065
  </div>
1045
- `}}_n.elementDefinitions={},_n.styles=[Jo,Un],Ln([a({type:String})],_n.prototype,"text",void 0),Ln([a({type:Boolean})],_n.prototype,"raised",void 0),Ln([a({type:Boolean})],_n.prototype,"outlined",void 0),Ln([a({type:Boolean})],_n.prototype,"disabled",void 0),Ln([a({type:Boolean})],_n.prototype,"error",void 0),b("ft-input-label")(_n);const An={fontSize:Ct.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:Ct.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:Ct.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ct.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:Ct.extend("--ft-text-area-helper-color","",Lt.colorOnSurfaceMedium),colorPrimary:Ct.external(Lt.colorPrimary,"Design system"),colorOnSurface:Ct.external(Lt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Ct.external(Lt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Ct.external(Lt.borderRadiusS,"Design system"),colorError:Ct.external(Lt.colorError,"Design system")},Tn=$`
1066
+ `}}Wa.elementDefinitions={},Wa.styles=[en,_a],Ta([k({type:String})],Wa.prototype,"text",void 0),Ta([k({type:Boolean})],Wa.prototype,"raised",void 0),Ta([k({type:Boolean})],Wa.prototype,"outlined",void 0),Ta([k({type:Boolean})],Wa.prototype,"disabled",void 0),Ta([k({type:Boolean})],Wa.prototype,"error",void 0),T("ft-input-label")(Wa);const Da={fontSize:Ee.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:Ee.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:Ee.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ee.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:Ee.extend("--ft-text-area-helper-color","",Ae.colorOnSurfaceMedium),colorPrimary:Ee.external(Ae.colorPrimary,"Design system"),colorOnSurface:Ee.external(Ae.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Ee.external(Ae.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Ee.external(Ae.borderRadiusS,"Design system"),colorError:Ee.external(Ae.colorError,"Design system")},Fa=Et`
1046
1067
  *:focus {
1047
1068
  outline: none;
1048
1069
  }
@@ -1054,10 +1075,10 @@ const hn=Gr(class extends Vr{constructor(t){var e;if(super(t),t.type!==Zr||"clas
1054
1075
  }
1055
1076
 
1056
1077
  ft-input-label {
1057
- ${kt(In.fontSize,An.fontSize)};
1058
- ${kt(In.raisedFontSize,An.labelSize)};
1059
- ${kt(In.verticalSpacing,An.verticalSpacing)};
1060
- ${kt(In.horizontalSpacing,An.horizontalSpacing)};
1078
+ ${ke(Aa.fontSize,Da.fontSize)};
1079
+ ${ke(Aa.raisedFontSize,Da.labelSize)};
1080
+ ${ke(Aa.verticalSpacing,Da.verticalSpacing)};
1081
+ ${ke(Aa.horizontalSpacing,Da.horizontalSpacing)};
1061
1082
  }
1062
1083
 
1063
1084
  .ft-text-area--main-panel {
@@ -1075,8 +1096,8 @@ const hn=Gr(class extends Vr{constructor(t){var e;if(super(t),t.type!==Zr||"clas
1075
1096
  }
1076
1097
 
1077
1098
  .ft-text-area--input-panel ft-ripple {
1078
- ${kt(Qi.opacityContentOnSurfaceHover,"0.08")};
1079
- ${kt(Qi.opacityContentOnSurfacePressed,"0.04")};
1099
+ ${ke(or.opacityContentOnSurfaceHover,"0.08")};
1100
+ ${ke(or.opacityContentOnSurfacePressed,"0.04")};
1080
1101
  }
1081
1102
 
1082
1103
  .ft-text-area--input {
@@ -1088,12 +1109,12 @@ const hn=Gr(class extends Vr{constructor(t){var e;if(super(t),t.type!==Zr||"clas
1088
1109
  align-self: stretch;
1089
1110
  resize: none;
1090
1111
 
1091
- ${kt(No.fontSize,An.fontSize)};
1092
- ${kt(No.lineHeight,An.fontSize)};
1093
- color: ${An.colorOnSurface};
1112
+ ${ke(kr.fontSize,Da.fontSize)};
1113
+ ${ke(kr.lineHeight,Da.fontSize)};
1114
+ color: ${Da.colorOnSurface};
1094
1115
 
1095
- padding: 0 ${An.horizontalSpacing};
1096
- margin: calc(${An.verticalSpacing} + ${An.labelSize} / 2) 0 ${An.verticalSpacing} 0;
1116
+ padding: 0 ${Da.horizontalSpacing};
1117
+ margin: calc(${Da.verticalSpacing} + ${Da.labelSize} / 2) 0 ${Da.verticalSpacing} 0;
1097
1118
 
1098
1119
  border: none;
1099
1120
  background: none;
@@ -1102,7 +1123,7 @@ const hn=Gr(class extends Vr{constructor(t){var e;if(super(t),t.type!==Zr||"clas
1102
1123
  }
1103
1124
 
1104
1125
  .ft-text-area--disabled .ft-text-area--input {
1105
- color: ${An.colorOnSurfaceDisabled};
1126
+ color: ${Da.colorOnSurfaceDisabled};
1106
1127
  }
1107
1128
 
1108
1129
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -1110,49 +1131,49 @@ const hn=Gr(class extends Vr{constructor(t){var e;if(super(t),t.type!==Zr||"clas
1110
1131
  }
1111
1132
 
1112
1133
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
1113
- ${kt(In.borderColor,An.colorPrimary)};
1114
- ${kt(In.textColor,An.colorPrimary)};
1134
+ ${ke(Aa.borderColor,Da.colorPrimary)};
1135
+ ${ke(Aa.textColor,Da.colorPrimary)};
1115
1136
  }
1116
1137
 
1117
1138
  .ft-text-area--filled .ft-text-area--input-panel {
1118
- border-radius: ${An.borderRadiusS} ${An.borderRadiusS} 0 0;
1139
+ border-radius: ${Da.borderRadiusS} ${Da.borderRadiusS} 0 0;
1119
1140
  }
1120
1141
 
1121
1142
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
1122
1143
  align-self: stretch;
1123
- margin-bottom: ${An.verticalSpacing};
1124
- margin-top: calc(${An.labelSize} + 2 * ${An.verticalSpacing});
1144
+ margin-bottom: ${Da.verticalSpacing};
1145
+ margin-top: calc(${Da.labelSize} + 2 * ${Da.verticalSpacing});
1125
1146
  }
1126
1147
 
1127
1148
  .ft-text-area--outlined .ft-text-area--input-panel {
1128
- border-radius: ${An.borderRadiusS};
1149
+ border-radius: ${Da.borderRadiusS};
1129
1150
  }
1130
1151
 
1131
1152
  .ft-text-area--helper-text {
1132
- padding: 0 12px 0 ${An.horizontalSpacing};
1133
- color: ${An.helperColor};
1153
+ padding: 0 12px 0 ${Da.horizontalSpacing};
1154
+ color: ${Da.helperColor};
1134
1155
  }
1135
1156
 
1136
1157
  .ft-text-area--in-error .ft-text-area--input,
1137
1158
  .ft-text-area--in-error .ft-text-area--helper-text {
1138
- color: ${An.colorError};
1159
+ color: ${Da.colorError};
1139
1160
  }
1140
1161
 
1141
1162
  ft-resizer {
1142
1163
  position: absolute;
1143
1164
  bottom: 0;
1144
1165
  }
1145
- `;var Wn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Dn extends(Mi(zt,"textbox")){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 ot`
1166
+ `;var Pa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ma extends(Ho(Be,"textbox")){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 ce`
1146
1167
  <style>
1147
1168
  .ft-text-area--main-panel {
1148
- height: calc(4 * ${An.verticalSpacing} + ${An.labelSize} + ${An.fontSize} + ${this.height}px);
1169
+ height: calc(4 * ${Da.verticalSpacing} + ${Da.labelSize} + ${Da.fontSize} + ${this.height}px);
1149
1170
  }
1150
1171
 
1151
1172
  ft-resizer {
1152
1173
  right: ${null!=this.textarea?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1153
1174
  }
1154
1175
  </style>
1155
- <div class="${hn(t)}">
1176
+ <div class="${ya(t)}">
1156
1177
  <div class="ft-text-area--main-panel">
1157
1178
  <ft-input-label text="${this.label}"
1158
1179
  ?disabled=${this.disabled}
@@ -1162,7 +1183,7 @@ const hn=Gr(class extends Vr{constructor(t){var e;if(super(t),t.type!==Zr||"clas
1162
1183
  ></ft-input-label>
1163
1184
  <div class="ft-text-area--input-panel"
1164
1185
  aria-label="${this.label}">
1165
- ${this.outlined?null:ot`
1186
+ ${this.outlined?null:ce`
1166
1187
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1167
1188
  `}
1168
1189
  <textarea class="ft-typography--body1 ft-text-area--input"
@@ -1179,53 +1200,53 @@ const hn=Gr(class extends Vr{constructor(t){var e;if(super(t),t.type!==Zr||"clas
1179
1200
  initialHeight="${this.height}"
1180
1201
  cursor="ns-resize"></ft-resizer>
1181
1202
  </div>
1182
- ${this.helper?ot`
1203
+ ${this.helper?ce`
1183
1204
  <ft-typography class="ft-text-area--helper-text" variant="caption">
1184
1205
  ${this.helper}
1185
1206
  </ft-typography>`:void 0}
1186
1207
  </div>
1187
- `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.requestUpdate()}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)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}Dn.elementDefinitions={"ft-input-label":_n,"ft-resizer":Rn,"ft-ripple":pn,"ft-typography":Kr},Dn.styles=[Yo,Tn],Wn([a({type:String})],Dn.prototype,"label",void 0),Wn([a({reflect:!0})],Dn.prototype,"value",void 0),Wn([a({type:String})],Dn.prototype,"helper",void 0),Wn([a({type:Boolean})],Dn.prototype,"outlined",void 0),Wn([a({type:Boolean})],Dn.prototype,"disabled",void 0),Wn([a({type:Boolean})],Dn.prototype,"error",void 0),Wn([a({type:Number,reflect:!0})],Dn.prototype,"height",void 0),Wn([c("textarea")],Dn.prototype,"textarea",void 0),Wn([s()],Dn.prototype,"focused",void 0),b("ft-text-area")(Dn);
1208
+ `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.requestUpdate()}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)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}Ma.elementDefinitions={"ft-input-label":Wa,"ft-resizer":La,"ft-ripple":ba,"ft-typography":Vn},Ma.styles=[Qr,Fa],Pa([k({type:String})],Ma.prototype,"label",void 0),Pa([k({reflect:!0})],Ma.prototype,"value",void 0),Pa([k({type:String})],Ma.prototype,"helper",void 0),Pa([k({type:Boolean})],Ma.prototype,"outlined",void 0),Pa([k({type:Boolean})],Ma.prototype,"disabled",void 0),Pa([k({type:Boolean})],Ma.prototype,"error",void 0),Pa([k({type:Number,reflect:!0})],Ma.prototype,"height",void 0),Pa([U("textarea")],Ma.prototype,"textarea",void 0),Pa([R()],Ma.prototype,"focused",void 0),T("ft-text-area")(Ma);
1188
1209
  /**
1189
- * @license
1190
- * Copyright 2020 Google LLC
1191
- * SPDX-License-Identifier: BSD-3-Clause
1192
- */
1193
- const{I:Fn}=mt,jn=()=>document.createComment(""),zn=(t,e,i)=>{var o;const r=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=r.insertBefore(jn(),n),o=r.insertBefore(jn(),n);i=new Fn(e,o,t,t.options)}else{const e=i._$AB.nextSibling,a=i._$AM,s=a!==t;if(s){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==a._$AU&&i._$AP(e)}if(e!==n||s){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,n),t=e}}}return i},Bn=(t,e,i=t)=>(t._$AI(e,i),t),Mn={},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}},Kn=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},Zn=Gr(class extends Vr{constructor(t){if(super(t),t.type!==Hr)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const r=[],n=[];let a=0;for(const e of t)r[a]=o?o(e,a):a,n[a]=i(e,a),a++;return{values:n,keys:r}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var r;const n=(t=>t._$AH)(t),{values:a,keys:s}=this.dt(e,i,o);if(!Array.isArray(n))return this.ht=s,a;const l=null!==(r=this.ht)&&void 0!==r?r:this.ht=[],c=[];let f,d,h=0,u=n.length-1,p=0,y=a.length-1;for(;h<=u&&p<=y;)if(null===n[h])h++;else if(null===n[u])u--;else if(l[h]===s[p])c[p]=Bn(n[h],a[p]),h++,p++;else if(l[u]===s[y])c[y]=Bn(n[u],a[y]),u--,y--;else if(l[h]===s[y])c[y]=Bn(n[h],a[y]),zn(t,c[y+1],n[h]),h++,y--;else if(l[u]===s[p])c[p]=Bn(n[u],a[p]),zn(t,n[h],n[u]),u--,p++;else if(void 0===f&&(f=Kn(s,p,y),d=Kn(l,h,u)),f.has(l[h]))if(f.has(l[u])){const e=d.get(s[p]),i=void 0!==e?n[e]:null;if(null===i){const e=zn(t,n[h]);Bn(e,a[p]),c[p]=e}else c[p]=Bn(i,a[p]),zn(t,n[h],i),n[e]=null;p++}else Pn(n[u]),u--;else Pn(n[h]),h++;for(;p<=y;){const e=zn(t,c[y+1]);Bn(e,a[p]),c[p++]=e}for(;h<=u;){const t=n[h++];null!==t&&Pn(t)}return this.ht=s,((t,e=Mn)=>{t._$AH=e})(t,c),rt}});
1210
+ * @license
1211
+ * Copyright 2020 Google LLC
1212
+ * SPDX-License-Identifier: BSD-3-Clause
1213
+ */
1214
+ const{D:za}=mt,ja=()=>document.createComment(""),Ba=(t,e,i)=>{const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(ja(),r),n=o.insertBefore(ja(),r);i=new za(e,n,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,a=n!==t;if(a){let e;i._$AQ?.(t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==r||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,r),t=e}}}return i},Ka=(t,e,i=t)=>(t._$AI(e,i),t),Za={},Ha=t=>{t._$AP?.(!1,!0);let e=t._$AA;const i=t._$AB.nextSibling;for(;e!==i;){const t=e.nextSibling;e.remove(),e=t}},Ga=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},Va=Xn(class extends Jn{constructor(t){if(super(t),t.type!==Yn)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 r=[],n=[];let a=0;for(const e of t)r[a]=o?o(e,a):a,n[a]=i(e,a),a++;return{values:n,keys:r}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){const r=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,i,o);if(!Array.isArray(r))return this.dt=a,n;const s=this.dt??=[],l=[];let c,h,f=0,d=r.length-1,u=0,p=n.length-1;for(;f<=d&&u<=p;)if(null===r[f])f++;else if(null===r[d])d--;else if(s[f]===a[u])l[u]=Ka(r[f],n[u]),f++,u++;else if(s[d]===a[p])l[p]=Ka(r[d],n[p]),d--,p--;else if(s[f]===a[p])l[p]=Ka(r[f],n[p]),Ba(t,l[p+1],r[f]),f++,p--;else if(s[d]===a[u])l[u]=Ka(r[d],n[u]),Ba(t,r[f],r[d]),d--,u++;else if(void 0===c&&(c=Ga(a,u,p),h=Ga(s,f,d)),c.has(s[f]))if(c.has(s[d])){const e=h.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=Ba(t,r[f]);Ka(e,n[u]),l[u]=e}else l[u]=Ka(i,n[u]),Ba(t,r[f],i),r[e]=null;u++}else Ha(r[d]),d--;else Ha(r[f]),f++;for(;u<=p;){const e=Ba(t,l[p+1]);Ka(e,n[u]),l[u++]=e}for(;f<=d;){const t=r[f++];null!==t&&Ha(t)}return this.dt=a,((t,e=Za)=>{t._$AH=e})(t,l),rt}});
1194
1215
  /**
1195
- * @license
1196
- * Copyright 2017 Google LLC
1197
- * SPDX-License-Identifier: BSD-3-Clause
1198
- */class Hn extends zt{render(){return ot`
1216
+ * @license
1217
+ * Copyright 2017 Google LLC
1218
+ * SPDX-License-Identifier: BSD-3-Clause
1219
+ */class qa extends Be{render(){return ce`
1199
1220
  <div class="ft-loader">
1200
1221
  <div></div>
1201
1222
  <div></div>
1202
1223
  <div></div>
1203
1224
  <div></div>
1204
1225
  </div>
1205
- `}}Hn.styles=nr,b("ft-loader")(Hn);var Gn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Vn extends(Mi(zt,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(ot`
1226
+ `}}qa.styles=cn,T("ft-loader")(qa);var Ya=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Xa extends(Ho(Be,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(ce`
1206
1227
  <button part="button"
1207
- class="${hn(this.buttonClasses)}"
1228
+ class="${ya(this.buttonClasses)}"
1208
1229
  aria-label="${this.getLabel()}"
1209
1230
  ?disabled=${this.isDisabled()}>
1210
1231
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1211
1232
  <ft-typography part="label"
1212
1233
  variant=${this.typographyVariant}
1213
1234
  element="span"
1214
- class="ft-button--label ${Hi?"ft-safari-ellipsis-fix":""}"
1235
+ class="ft-button--label ${Yo?"ft-safari-ellipsis-fix":""}"
1215
1236
  ?hidden=${!this.hasTextContent()}>
1216
1237
  <slot @slotchange=${this.onSlotchange}></slot>
1217
1238
  </ft-typography>
1218
1239
  ${this.resolveIcon()}
1219
1240
  </button>
1220
- `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?ot`
1241
+ `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?ce`
1221
1242
  <ft-tooltip part="tooltip"
1222
1243
  text="${this.getLabel()}"
1223
1244
  position="${this.tooltipPosition}">
1224
1245
  ${t}
1225
1246
  </ft-tooltip>
1226
- `:t}resolveIcon(){return this.loading?ot`
1227
- <ft-loader part="loader icon"></ft-loader> `:this.icon?ot`
1228
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:nt}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}}Vn.elementDefinitions={"ft-ripple":pn,"ft-tooltip":dn,"ft-typography":Kr,"ft-icon":en,"ft-loader":Hn},Gn([a({type:String,reflect:!0})],Vn.prototype,"role",void 0),Gn([a()],Vn.prototype,"type",void 0),Gn([a({type:Boolean})],Vn.prototype,"disabled",void 0),Gn([a()],Vn.prototype,"label",void 0),Gn([a()],Vn.prototype,"icon",void 0),Gn([a()],Vn.prototype,"iconVariant",void 0),Gn([a({type:Boolean})],Vn.prototype,"trailingIcon",void 0),Gn([a({type:Boolean})],Vn.prototype,"loading",void 0),Gn([a()],Vn.prototype,"tooltipPosition",void 0),Gn([a({type:Boolean})],Vn.prototype,"hideTooltip",void 0),Gn([a({type:Boolean})],Vn.prototype,"forceTooltip",void 0),Gn([c(".ft-button")],Vn.prototype,"button",void 0),Gn([c(".ft-button--label slot")],Vn.prototype,"slottedContent",void 0);var qn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Yn extends Vn{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}Yn.styles=[Mt,br],qn([a({type:Boolean})],Yn.prototype,"primary",void 0),qn([a({type:Boolean})],Yn.prototype,"outlined",void 0),qn([a({type:Boolean})],Yn.prototype,"dense",void 0),qn([a({type:Boolean})],Yn.prototype,"round",void 0);const Xn=[$`
1247
+ `:t}resolveIcon(){return this.loading?ce`
1248
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?ce`
1249
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:fe}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}}Xa.elementDefinitions={"ft-ripple":ba,"ft-tooltip":pa,"ft-typography":Vn,"ft-icon":na,"ft-loader":qa},Ya([k({type:String,reflect:!0})],Xa.prototype,"role",void 0),Ya([k()],Xa.prototype,"type",void 0),Ya([k({type:Boolean})],Xa.prototype,"disabled",void 0),Ya([k()],Xa.prototype,"label",void 0),Ya([k()],Xa.prototype,"icon",void 0),Ya([k()],Xa.prototype,"iconVariant",void 0),Ya([k({type:Boolean})],Xa.prototype,"trailingIcon",void 0),Ya([k({type:Boolean})],Xa.prototype,"loading",void 0),Ya([k()],Xa.prototype,"tooltipPosition",void 0),Ya([k({type:Boolean})],Xa.prototype,"hideTooltip",void 0),Ya([k({type:Boolean})],Xa.prototype,"forceTooltip",void 0),Ya([U(".ft-button")],Xa.prototype,"button",void 0),Ya([U(".ft-button--label slot")],Xa.prototype,"slottedContent",void 0);var Ja=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Qa extends Xa{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}Qa.styles=[Ze,xn],Ja([k({type:Boolean})],Qa.prototype,"primary",void 0),Ja([k({type:Boolean})],Qa.prototype,"outlined",void 0),Ja([k({type:Boolean})],Qa.prototype,"dense",void 0),Ja([k({type:Boolean})],Qa.prototype,"round",void 0);const ts=[Et`
1229
1250
  :host {
1230
1251
  display: inline-block;
1231
1252
  max-width: 100%;
@@ -1275,7 +1296,7 @@ const{I:Fn}=mt,jn=()=>document.createComment(""),zn=(t,e,i)=>{var o;const r=t._$
1275
1296
  }
1276
1297
 
1277
1298
  .ft-button:focus-visible {
1278
- outline-color: ${Ut.focusFocusRingColor};
1299
+ outline-color: ${Le.focusFocusRingColor};
1279
1300
  outline-style: solid;
1280
1301
  }
1281
1302
 
@@ -1304,154 +1325,154 @@ const{I:Fn}=mt,jn=()=>document.createComment(""),zn=(t,e,i)=>{var o;const r=t._$
1304
1325
  /** Primary styles **/
1305
1326
 
1306
1327
  .ft-button--primary {
1307
- ${kt(rr.color,Ut.primaryIconColor)};
1328
+ ${ke(ln.color,Le.primaryIconColor)};
1308
1329
 
1309
- ${kt(Qi.color,Ut.primaryStateLayerColor)};
1310
- ${kt(Qi.opacityContentOnSurfaceHover,Ut.primaryStateLayerOpacityHover)};
1311
- ${kt(Qi.opacityContentOnSurfaceFocused,Ut.primaryStateLayerOpacityFocus)};
1312
- ${kt(Qi.opacityContentOnSurfaceSelected,Ut.primaryStateLayerOpacityActive)};
1313
- ${kt(Qi.opacityContentOnSurfacePressed,Ut.primaryStateLayerOpacityActive)};
1330
+ ${ke(or.color,Le.primaryStateLayerColor)};
1331
+ ${ke(or.opacityContentOnSurfaceHover,Le.primaryStateLayerOpacityHover)};
1332
+ ${ke(or.opacityContentOnSurfaceFocused,Le.primaryStateLayerOpacityFocus)};
1333
+ ${ke(or.opacityContentOnSurfaceSelected,Le.primaryStateLayerOpacityActive)};
1334
+ ${ke(or.opacityContentOnSurfacePressed,Le.primaryStateLayerOpacityActive)};
1314
1335
 
1315
- background-color: ${Ut.primaryBackgroundColor};
1316
- color: ${Ut.primaryColor};
1336
+ background-color: ${Le.primaryBackgroundColor};
1337
+ color: ${Le.primaryColor};
1317
1338
  border-style: none;
1318
1339
  }
1319
1340
 
1320
1341
  .ft-button--primary[disabled] {
1321
- opacity: ${Ut.primaryComponentOpacityDisabled};
1342
+ opacity: ${Le.primaryComponentOpacityDisabled};
1322
1343
  }
1323
1344
 
1324
1345
  .ft-button--primary ft-icon {
1325
- color: ${Ut.primaryIconColor};
1346
+ color: ${Le.primaryIconColor};
1326
1347
  }
1327
1348
 
1328
1349
  /** Secondary styles **/
1329
1350
 
1330
1351
  .ft-button--secondary {
1331
- ${kt(rr.color,Ut.secondaryIconColor)};
1352
+ ${ke(ln.color,Le.secondaryIconColor)};
1332
1353
 
1333
- ${kt(Qi.color,Ut.secondaryStateLayerColor)};
1334
- ${kt(Qi.opacityContentOnSurfaceHover,Ut.secondaryStateLayerOpacityHover)};
1335
- ${kt(Qi.opacityContentOnSurfaceFocused,Ut.secondaryStateLayerOpacityFocus)};
1336
- ${kt(Qi.opacityContentOnSurfaceSelected,Ut.secondaryStateLayerOpacityActive)};
1337
- ${kt(Qi.opacityContentOnSurfacePressed,Ut.secondaryStateLayerOpacityActive)};
1354
+ ${ke(or.color,Le.secondaryStateLayerColor)};
1355
+ ${ke(or.opacityContentOnSurfaceHover,Le.secondaryStateLayerOpacityHover)};
1356
+ ${ke(or.opacityContentOnSurfaceFocused,Le.secondaryStateLayerOpacityFocus)};
1357
+ ${ke(or.opacityContentOnSurfaceSelected,Le.secondaryStateLayerOpacityActive)};
1358
+ ${ke(or.opacityContentOnSurfacePressed,Le.secondaryStateLayerOpacityActive)};
1338
1359
 
1339
- background-color: ${Ut.secondaryBackgroundColor};
1340
- color: ${Ut.secondaryColor};
1341
- border-color: ${Ut.secondaryBorderColor};
1360
+ background-color: ${Le.secondaryBackgroundColor};
1361
+ color: ${Le.secondaryColor};
1362
+ border-color: ${Le.secondaryBorderColor};
1342
1363
  border-style: solid;
1343
1364
  }
1344
1365
 
1345
1366
  .ft-button--secondary[disabled] {
1346
- opacity: ${Ut.secondaryComponentOpacityDisabled};
1367
+ opacity: ${Le.secondaryComponentOpacityDisabled};
1347
1368
  }
1348
1369
 
1349
1370
  .ft-button--secondary ft-icon {
1350
- color: ${Ut.secondaryIconColor};
1371
+ color: ${Le.secondaryIconColor};
1351
1372
  }
1352
1373
 
1353
1374
  /** Tertiary styles **/
1354
1375
 
1355
1376
  .ft-button--tertiary {
1356
- ${kt(rr.color,Ut.tertiaryIconColor)};
1377
+ ${ke(ln.color,Le.tertiaryIconColor)};
1357
1378
 
1358
- ${kt(Qi.color,Ut.tertiaryStateLayerColor)};
1359
- ${kt(Qi.opacityContentOnSurfaceHover,Ut.tertiaryStateLayerOpacityHover)};
1360
- ${kt(Qi.opacityContentOnSurfaceFocused,Ut.tertiaryStateLayerOpacityFocus)};
1361
- ${kt(Qi.opacityContentOnSurfaceSelected,Ut.tertiaryStateLayerOpacityActive)};
1362
- ${kt(Qi.opacityContentOnSurfacePressed,Ut.tertiaryStateLayerOpacityActive)};
1379
+ ${ke(or.color,Le.tertiaryStateLayerColor)};
1380
+ ${ke(or.opacityContentOnSurfaceHover,Le.tertiaryStateLayerOpacityHover)};
1381
+ ${ke(or.opacityContentOnSurfaceFocused,Le.tertiaryStateLayerOpacityFocus)};
1382
+ ${ke(or.opacityContentOnSurfaceSelected,Le.tertiaryStateLayerOpacityActive)};
1383
+ ${ke(or.opacityContentOnSurfacePressed,Le.tertiaryStateLayerOpacityActive)};
1363
1384
 
1364
- background-color: ${Ut.tertiaryBackgroundColor};
1365
- color: ${Ut.tertiaryColor};
1385
+ background-color: ${Le.tertiaryBackgroundColor};
1386
+ color: ${Le.tertiaryColor};
1366
1387
  border-style: none;
1367
1388
  }
1368
1389
 
1369
1390
  .ft-button--tertiary[disabled] {
1370
- opacity: ${Ut.tertiaryComponentOpacityDisabled};
1391
+ opacity: ${Le.tertiaryComponentOpacityDisabled};
1371
1392
  }
1372
1393
 
1373
1394
  .ft-button--tertiary ft-icon {
1374
- color: ${Ut.tertiaryIconColor};
1395
+ color: ${Le.tertiaryIconColor};
1375
1396
  }
1376
1397
 
1377
1398
  /** Neutral styles **/
1378
1399
 
1379
1400
  .ft-button--neutral {
1380
- ${kt(rr.color,Ut.neutralIconColor)};
1401
+ ${ke(ln.color,Le.neutralIconColor)};
1381
1402
 
1382
- ${kt(Qi.backgroundColor,Ut.neutralStateLayerColor)};
1383
- ${kt(Qi.opacityContentOnSurfaceHover,Ut.neutralStateLayerOpacityHover)};
1384
- ${kt(Qi.opacityContentOnSurfaceFocused,Ut.neutralStateLayerOpacityFocus)};
1385
- ${kt(Qi.opacityContentOnSurfaceSelected,Ut.neutralStateLayerOpacityActive)};
1386
- ${kt(Qi.opacityContentOnSurfacePressed,Ut.neutralStateLayerOpacityActive)};
1403
+ ${ke(or.backgroundColor,Le.neutralStateLayerColor)};
1404
+ ${ke(or.opacityContentOnSurfaceHover,Le.neutralStateLayerOpacityHover)};
1405
+ ${ke(or.opacityContentOnSurfaceFocused,Le.neutralStateLayerOpacityFocus)};
1406
+ ${ke(or.opacityContentOnSurfaceSelected,Le.neutralStateLayerOpacityActive)};
1407
+ ${ke(or.opacityContentOnSurfacePressed,Le.neutralStateLayerOpacityActive)};
1387
1408
 
1388
- background-color: ${Ut.neutralBackgroundColor};
1389
- color: ${Ut.neutralColor};
1409
+ background-color: ${Le.neutralBackgroundColor};
1410
+ color: ${Le.neutralColor};
1390
1411
  border-style: none;
1391
1412
  }
1392
1413
 
1393
1414
  .ft-button--neutral[disabled] {
1394
- opacity: ${Ut.neutralComponentOpacityDisabled};
1415
+ opacity: ${Le.neutralComponentOpacityDisabled};
1395
1416
  }
1396
1417
 
1397
1418
  .ft-button--neutral ft-icon {
1398
- color: ${Ut.neutralIconColor};
1419
+ color: ${Le.neutralIconColor};
1399
1420
  }
1400
1421
 
1401
1422
  /** Large styles **/
1402
1423
 
1403
1424
  .ft-button--large {
1404
- ${kt(ar.size,Ut.largeIconSize)};
1405
- ${kt(rr.size,Ut.largeIconSize)};
1425
+ ${ke(hn.size,Le.largeIconSize)};
1426
+ ${ke(ln.size,Le.largeIconSize)};
1406
1427
 
1407
- height: ${Ut.largeHeight};
1408
- padding: 0 ${Ut.largeHorizontalPadding};
1409
- gap: ${Ut.largeGap};
1410
- border-radius: ${Ut.largeBorderRadius};
1411
- border-width: ${Ut.largeBorderWidth};
1428
+ height: ${Le.largeHeight};
1429
+ padding: 0 ${Le.largeHorizontalPadding};
1430
+ gap: ${Le.largeGap};
1431
+ border-radius: ${Le.largeBorderRadius};
1432
+ border-width: ${Le.largeBorderWidth};
1412
1433
  }
1413
1434
 
1414
1435
  .ft-button--large:focus-visible {
1415
- outline-width: ${Ut.largeFocusOutlineWidth};
1416
- outline-offset: ${Ut.largeFocusOutlineOffset};
1436
+ outline-width: ${Le.largeFocusOutlineWidth};
1437
+ outline-offset: ${Le.largeFocusOutlineOffset};
1417
1438
  }
1418
1439
 
1419
1440
  .ft-button--large.ft-button--icon-only {
1420
- width: ${Ut.largeIconOnlyWidth};
1441
+ width: ${Le.largeIconOnlyWidth};
1421
1442
  padding: unset;
1422
1443
  }
1423
1444
 
1424
1445
  /** Small styles **/
1425
1446
 
1426
1447
  .ft-button--small {
1427
- ${kt(ar.size,Ut.smallIconSize)};
1428
- ${kt(rr.size,Ut.smallIconSize)};
1448
+ ${ke(hn.size,Le.smallIconSize)};
1449
+ ${ke(ln.size,Le.smallIconSize)};
1429
1450
 
1430
- height: ${Ut.smallHeight};
1431
- padding: 0 ${Ut.smallHorizontalPadding};
1432
- gap: ${Ut.smallGap};
1433
- border-radius: ${Ut.smallBorderRadius};
1434
- border-width: ${Ut.smallBorderWidth};
1451
+ height: ${Le.smallHeight};
1452
+ padding: 0 ${Le.smallHorizontalPadding};
1453
+ gap: ${Le.smallGap};
1454
+ border-radius: ${Le.smallBorderRadius};
1455
+ border-width: ${Le.smallBorderWidth};
1435
1456
  }
1436
1457
 
1437
1458
  .ft-button--small:focus-visible {
1438
- outline-width: ${Ut.smallFocusOutlineWidth};
1439
- outline-offset: ${Ut.smallFocusOutlineOffset};
1459
+ outline-width: ${Le.smallFocusOutlineWidth};
1460
+ outline-offset: ${Le.smallFocusOutlineOffset};
1440
1461
  }
1441
1462
 
1442
1463
  .ft-button--small.ft-button--icon-only {
1443
- width: ${Ut.smallIconOnlyWidth};
1464
+ width: ${Le.smallIconOnlyWidth};
1444
1465
  padding: unset;
1445
1466
  }
1446
- `,Bt];var Jn=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Qn extends Vn{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Mr.caption1medium:Mr.body2medium}}Qn.styles=[Mt,Xn],Jn([a({type:Boolean})],Qn.prototype,"primary",void 0),Jn([a({type:Boolean})],Qn.prototype,"secondary",void 0),Jn([a({type:Boolean})],Qn.prototype,"tertiary",void 0),Jn([a({type:Boolean})],Qn.prototype,"neutral",void 0),Jn([a({type:Boolean})],Qn.prototype,"small",void 0),b("ft-button")(Yn),b("ftds-button")(Qn);const ta=$`
1447
- `,ea=$`
1448
- `,ia=ji.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 oa{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=ia.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?oa.build(t):null!==(e=oa.API)&&void 0!==e?e:oa.API=oa.build()}static await(t){return new Promise((e=>{let i=oa.get(t);if(i)e(i);else{const o=ia.subscribe((()=>{i=oa.get(t),i&&(o(),e(i))}))}}))}}var ra;const na=Symbol("clearAfterUnitTest");class aa{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[ra]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=ia.getState().uiLocale,ia.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=ia.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};y(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var o,r,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(r=null===(o=this.cache.getNow(t))||void 0===o?void 0:o.messages)&&void 0!==r?r:{};return new Pt(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).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=>p(0).then((()=>t())).catch((()=>null)))))}}ra=na,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new aa((async(t,e)=>(await oa.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new aa((async(t,e)=>(await oa.await()).getCustomMessageContext(t,e))));const sa=window.FluidTopicsI18nService,la=window.FluidTopicsCustomI18nService;var ca=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class fa extends zt{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=()=>oa.get(),this.cache=new o,this.cleanSessionDebouncer=new r}render(){return ot`
1467
+ `,Ke];var es=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class is extends Xa{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Hn.caption1medium:Hn.body2medium}}is.styles=[Ze,ts],es([k({type:Boolean})],is.prototype,"primary",void 0),es([k({type:Boolean})],is.prototype,"secondary",void 0),es([k({type:Boolean})],is.prototype,"tertiary",void 0),es([k({type:Boolean})],is.prototype,"neutral",void 0),es([k({type:Boolean})],is.prototype,"small",void 0),T("ft-button")(Qa),T("ftds-button")(is);const os=Et`
1468
+ `,rs=Et`
1469
+ `,ns=Bo.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class as{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=ns.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?as.build(t):null!==(e=as.API)&&void 0!==e?e:as.API=as.build()}static await(t){return new Promise((e=>{let i=as.get(t);if(i)e(i);else{const o=ns.subscribe((()=>{i=as.get(t),i&&(o(),e(i))}))}}))}}var ss;const ls=Symbol("clearAfterUnitTest");class cs{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[ss]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=ns.getState().uiLocale,ns.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=ns.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};_(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var o,r,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(r=null===(o=this.cache.getNow(t))||void 0===o?void 0:o.messages)&&void 0!==r?r:{};return new He(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).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=>A(0).then((()=>t())).catch((()=>null)))))}}ss=ls,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new cs((async(t,e)=>(await as.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new cs((async(t,e)=>(await as.await()).getCustomMessageContext(t,e))));const hs=window.FluidTopicsI18nService,fs=window.FluidTopicsCustomI18nService;var ds=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class us extends Be{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>as.get(),this.cache=new o,this.cleanSessionDebouncer=new r}render(){return ce`
1449
1470
  <slot></slot>
1450
- `}update(t){super.update(t),t.has("baseUrl")&&ia.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&ia.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&ia.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&ia.actions.setNoCustom(this.noCustom),t.has("editorMode")&&ia.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&ia.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&ia.actions.setSession(this.session),t.has("availableUiLocales")&&ia.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>sa.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()))))}}fa.elementDefinitions={},fa.styles=ea,ca([a()],fa.prototype,"baseUrl",void 0),ca([a()],fa.prototype,"apiIntegrationIdentifier",void 0),ca([a()],fa.prototype,"uiLocale",void 0),ca([g([])],fa.prototype,"availableUiLocales",void 0),ca([a({type:Boolean})],fa.prototype,"editorMode",void 0),ca([a({type:Boolean})],fa.prototype,"noCustom",void 0),ca([a({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],fa.prototype,"noCustomComponent",void 0),ca([a({type:Boolean})],fa.prototype,"withManualResources",void 0),ca([g([])],fa.prototype,"messageContexts",void 0),ca([g(void 0)],fa.prototype,"session",void 0),ca([a({type:Object})],fa.prototype,"apiProvider",void 0);class da{async listMySearches(){var t;return(null===(t=ia.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await oa.await()).listMySearches(ia.getState().session.profile.userId):[]}}const ha=new o;class ua{async listMyBookmarks(){return ha.get("bookmarks",(async()=>(await oa.await()).listMyBookmarks(ia.getState().session.profile.userId)))}clearCache(){ha.clear("bookmarks")}}const pa=ji.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const ya=new class{constructor(){this.currentSession=ia.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ua,ia.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=ia.getState();y(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){pa.actions.savedSearches(void 0)}clearMyBookmarks(){pa.actions.bookmarks(void 0)}async reloadMySearches(){const t=new da,e=await t.listMySearches();pa.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;pa.actions.bookmarks(e)}}};b("ft-app-context")(fa);var ba=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const ga=Symbol("i18nProperties"),va=Symbol("i18nUnsubs");function ma(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?la:sa}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const r=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[ga])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[ga])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[ga]&&new Set([...this[ga].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[va].has(t)||this[va].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[va].forEach((t=>t())),this[va].clear()}}return e=va,ba([a({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class xa extends(ma(zt)){}class wa extends(ma(Xt)){}var Oa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Sa extends wa{constructor(){super(),this.editorMode=!1,this.addStore(ia)}render(){return this.key&&this.context?ot`
1471
+ `}update(t){super.update(t),t.has("baseUrl")&&ns.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&ns.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&ns.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&ns.actions.setNoCustom(this.noCustom),t.has("editorMode")&&ns.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&ns.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&ns.actions.setSession(this.session),t.has("availableUiLocales")&&ns.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>hs.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()))))}}us.elementDefinitions={},us.styles=rs,ds([k()],us.prototype,"baseUrl",void 0),ds([k()],us.prototype,"apiIntegrationIdentifier",void 0),ds([k()],us.prototype,"uiLocale",void 0),ds([W([])],us.prototype,"availableUiLocales",void 0),ds([k({type:Boolean})],us.prototype,"editorMode",void 0),ds([k({type:Boolean})],us.prototype,"noCustom",void 0),ds([k({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],us.prototype,"noCustomComponent",void 0),ds([k({type:Boolean})],us.prototype,"withManualResources",void 0),ds([W([])],us.prototype,"messageContexts",void 0),ds([W(void 0)],us.prototype,"session",void 0),ds([k({type:Object})],us.prototype,"apiProvider",void 0);class ps{async listMySearches(){var t;return(null===(t=ns.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await as.await()).listMySearches(ns.getState().session.profile.userId):[]}}const ys=new o;class gs{async listMyBookmarks(){return ys.get("bookmarks",(async()=>(await as.await()).listMyBookmarks(ns.getState().session.profile.userId)))}clearCache(){ys.clear("bookmarks")}}const bs=Bo.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const vs=new class{constructor(){this.currentSession=ns.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new gs,ns.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=ns.getState();_(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){bs.actions.savedSearches(void 0)}clearMyBookmarks(){bs.actions.bookmarks(void 0)}async reloadMySearches(){const t=new ps,e=await t.listMySearches();bs.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;bs.actions.bookmarks(e)}}};T("ft-app-context")(us);var ms=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const xs=Symbol("i18nProperties"),ws=Symbol("i18nUnsubs");function Os(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?fs:hs}i18n(t,e,...i){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...i);const r=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e;null===(e=this[xs])||void 0===e||e.forEach(((e,i)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[i]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var e;super.update(t),null===(e=this[xs])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[xs]&&new Set([...this[xs].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[ws].has(t)||this[ws].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[ws].forEach((t=>t())),this[ws].clear()}}return e=ws,ms([k({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class Ss extends(Os(Be)){}class $s extends(Os(ti)){}var Ns=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Cs extends $s{constructor(){super(),this.editorMode=!1,this.addStore(ns)}render(){return this.key&&this.context?ce`
1451
1472
  <span class="ft-i18n">
1452
1473
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1453
1474
  </span>
1454
- `:this.editorMode?"Select a context and a label key.":nt}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Sa.elementDefinitions={},Sa.styles=ta,Oa([zi()],Sa.prototype,"editorMode",void 0),Oa([a()],Sa.prototype,"context",void 0),Oa([a()],Sa.prototype,"key",void 0),Oa([g([])],Sa.prototype,"args",void 0),Oa([a()],Sa.prototype,"defaultMessage",void 0);class $a{static build(t){return new $a(t)}static fromGwt(t){return new $a(t)}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)=>sa.resolveMessage(this.name,e,...t)})}}const Na=(t,e)=>(i,o)=>{var r,n;i.constructor.createProperty(o,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:o};i[ga]=null!==(n=i[ga])&&void 0!==n?n:new Map,i[ga].set(o,a)};b("ft-i18n")(Sa);const Ca=$a.build("integratedFeedbackComponent"),ka={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?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",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"},Ea=$a.build("inDesignerFeedbackComponent"),Ra={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."},Ia={fontSize:Ct.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:Ct.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:Ct.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ct.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:Ct.extend("--ft-text-field-helper-color","",Lt.colorOnSurfaceMedium),colorPrimary:Ct.external(Lt.colorPrimary,"Design system"),colorOnSurface:Ct.external(Lt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Ct.external(Lt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Ct.external(Lt.borderRadiusS,"Design system"),colorError:Ct.external(Lt.colorError,"Design system"),prefixColor:Ct.extend("--ft-text-field-prefix-color","",Lt.colorOnSurfaceMedium),iconColor:Ct.extend("--ft-text-field-icon-color","",Lt.colorOnSurfaceMedium),floatingZIndex:Ct.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:Ct.external(Lt.colorSurface,"Design system"),colorOutline:Ct.external(Lt.colorOutline,"Design system"),elevation02:Ct.external(Lt.elevation02,"Design system"),suggestSize:Ct.create("--ft-text-field-suggest-size","","SIZE","300px")},Ua=$`
1475
+ `:this.editorMode?"Select a context and a label key.":fe}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}Cs.elementDefinitions={},Cs.styles=os,Ns([Ko()],Cs.prototype,"editorMode",void 0),Ns([k()],Cs.prototype,"context",void 0),Ns([k()],Cs.prototype,"key",void 0),Ns([W([])],Cs.prototype,"args",void 0),Ns([k()],Cs.prototype,"defaultMessage",void 0);class Es{static build(t){return new Es(t)}static fromGwt(t){return new Es(t)}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)=>hs.resolveMessage(this.name,e,...t)})}}const ks=(t,e)=>(i,o)=>{var r,n;i.constructor.createProperty(o,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:o};i[xs]=null!==(n=i[xs])&&void 0!==n?n:new Map,i[xs].set(o,a)};T("ft-i18n")(Cs);const Rs=Es.build("integratedFeedbackComponent"),Is={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?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",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"},Us=Es.build("inDesignerFeedbackComponent"),Ls={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."},As={fontSize:Ee.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:Ee.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:Ee.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:Ee.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:Ee.extend("--ft-text-field-helper-color","",Ae.colorOnSurfaceMedium),colorPrimary:Ee.external(Ae.colorPrimary,"Design system"),colorOnSurface:Ee.external(Ae.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Ee.external(Ae.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Ee.external(Ae.borderRadiusS,"Design system"),colorError:Ee.external(Ae.colorError,"Design system"),prefixColor:Ee.extend("--ft-text-field-prefix-color","",Ae.colorOnSurfaceMedium),iconColor:Ee.extend("--ft-text-field-icon-color","",Ae.colorOnSurfaceMedium),floatingZIndex:Ee.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:Ee.external(Ae.colorSurface,"Design system"),colorOutline:Ee.external(Ae.colorOutline,"Design system"),elevation02:Ee.external(Ae.elevation02,"Design system"),suggestSize:Ee.create("--ft-text-field-suggest-size","","SIZE","300px")},_s=Et`
1455
1476
  *:focus {
1456
1477
  outline: none;
1457
1478
  }
@@ -1464,16 +1485,16 @@ const{I:Fn}=mt,jn=()=>document.createComment(""),zn=(t,e,i)=>{var o;const r=t._$
1464
1485
  }
1465
1486
 
1466
1487
  ft-input-label {
1467
- ${kt(In.fontSize,Ia.fontSize)};
1468
- ${kt(In.raisedFontSize,Ia.labelSize)};
1469
- ${kt(In.verticalSpacing,Ia.verticalSpacing)};
1470
- ${kt(In.horizontalSpacing,Ia.horizontalSpacing)};
1488
+ ${ke(Aa.fontSize,As.fontSize)};
1489
+ ${ke(Aa.raisedFontSize,As.labelSize)};
1490
+ ${ke(Aa.verticalSpacing,As.verticalSpacing)};
1491
+ ${ke(Aa.horizontalSpacing,As.horizontalSpacing)};
1471
1492
  }
1472
1493
 
1473
1494
  .ft-text-field--main-panel {
1474
1495
  position: relative;
1475
1496
  display: flex;
1476
- height: calc(4 * ${Ia.verticalSpacing} + ${Ia.labelSize} + ${Ia.fontSize});
1497
+ height: calc(4 * ${As.verticalSpacing} + ${As.labelSize} + ${As.fontSize});
1477
1498
  }
1478
1499
 
1479
1500
  .ft-text-field--input-panel {
@@ -1482,24 +1503,24 @@ const{I:Fn}=mt,jn=()=>document.createComment(""),zn=(t,e,i)=>{var o;const r=t._$
1482
1503
  display: flex;
1483
1504
  align-items: center;
1484
1505
  overflow: hidden;
1485
- padding: 0 ${Ia.horizontalSpacing};
1506
+ padding: 0 ${As.horizontalSpacing};
1486
1507
 
1487
- ${kt(No.fontSize,Ia.fontSize)};
1488
- ${kt(No.lineHeight,Ia.fontSize)};
1508
+ ${ke(kr.fontSize,As.fontSize)};
1509
+ ${ke(kr.lineHeight,As.fontSize)};
1489
1510
  }
1490
1511
 
1491
1512
  .ft-text-field--input-panel ft-ripple {
1492
- ${kt(Qi.opacityContentOnSurfaceHover,"0.08")};
1493
- ${kt(Qi.opacityContentOnSurfacePressed,"0.04")};
1513
+ ${ke(or.opacityContentOnSurfaceHover,"0.08")};
1514
+ ${ke(or.opacityContentOnSurfacePressed,"0.04")};
1494
1515
  }
1495
1516
 
1496
1517
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
1497
1518
  align-items: flex-end;
1498
- padding: 0 ${Ia.horizontalSpacing} ${Ia.verticalSpacing} ${Ia.horizontalSpacing};
1519
+ padding: 0 ${As.horizontalSpacing} ${As.verticalSpacing} ${As.horizontalSpacing};
1499
1520
  }
1500
1521
 
1501
1522
  .ft-text-field--prefix {
1502
- color: ${Ia.prefixColor};
1523
+ color: ${As.prefixColor};
1503
1524
  margin-right: 2px;
1504
1525
  flex-shrink: 1;
1505
1526
  overflow: hidden;
@@ -1518,15 +1539,15 @@ const{I:Fn}=mt,jn=()=>document.createComment(""),zn=(t,e,i)=>{var o;const r=t._$
1518
1539
  flex-shrink: 1;
1519
1540
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
1520
1541
 
1521
- color: ${Ia.colorOnSurface};
1522
- padding: calc(2 * ${Ia.verticalSpacing}) 0;
1542
+ color: ${As.colorOnSurface};
1543
+ padding: calc(2 * ${As.verticalSpacing}) 0;
1523
1544
  border: none;
1524
1545
  background: none;
1525
1546
  }
1526
1547
 
1527
1548
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
1528
1549
  padding-bottom: 0;
1529
- padding-top: calc(${Ia.labelSize} + 2 * ${Ia.verticalSpacing});
1550
+ padding-top: calc(${As.labelSize} + 2 * ${As.verticalSpacing});
1530
1551
  }
1531
1552
 
1532
1553
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -1535,37 +1556,37 @@ const{I:Fn}=mt,jn=()=>document.createComment(""),zn=(t,e,i)=>{var o;const r=t._$
1535
1556
  }
1536
1557
 
1537
1558
  .ft-text-field--disabled .ft-text-field--input {
1538
- color: ${Ia.colorOnSurfaceDisabled};
1559
+ color: ${As.colorOnSurfaceDisabled};
1539
1560
  }
1540
1561
 
1541
1562
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1542
- ${kt(In.borderColor,Ia.colorPrimary)};
1543
- ${kt(In.textColor,Ia.colorPrimary)};
1563
+ ${ke(Aa.borderColor,As.colorPrimary)};
1564
+ ${ke(Aa.textColor,As.colorPrimary)};
1544
1565
  }
1545
1566
 
1546
1567
  .ft-text-field--filled .ft-text-field--input-panel {
1547
- border-radius: ${Ia.borderRadiusS} ${Ia.borderRadiusS} 0 0;
1568
+ border-radius: ${As.borderRadiusS} ${As.borderRadiusS} 0 0;
1548
1569
  }
1549
1570
 
1550
1571
  .ft-text-field--outlined .ft-text-field--input-panel {
1551
- border-radius: ${Ia.borderRadiusS};
1572
+ border-radius: ${As.borderRadiusS};
1552
1573
  }
1553
1574
 
1554
1575
  .ft-text-field--helper-text {
1555
- padding: 0 12px 0 ${Ia.horizontalSpacing};
1556
- color: ${Ia.helperColor};
1576
+ padding: 0 12px 0 ${As.horizontalSpacing};
1577
+ color: ${As.helperColor};
1557
1578
  }
1558
1579
 
1559
1580
  .ft-text-field--in-error .ft-text-field--input,
1560
1581
  .ft-text-field--in-error .ft-text-field--helper-text,
1561
1582
  .ft-text-field--in-error .ft-text-field--prefix {
1562
- color: ${Ia.colorError};
1583
+ color: ${As.colorError};
1563
1584
  }
1564
1585
 
1565
1586
  .ft-text-field--icon {
1566
1587
  align-self: center;
1567
1588
  margin-left: 8px;
1568
- color: ${Ia.iconColor};
1589
+ color: ${As.iconColor};
1569
1590
  }
1570
1591
 
1571
1592
  .ft-text-field--container {
@@ -1578,13 +1599,13 @@ const{I:Fn}=mt,jn=()=>document.createComment(""),zn=(t,e,i)=>{var o;const r=t._$
1578
1599
  position: absolute;
1579
1600
  left: 0;
1580
1601
  right: 0;
1581
- z-index: ${Ia.floatingZIndex};
1582
- background: ${Ia.colorSurface};
1583
- border: 1px solid ${Ia.colorOutline};
1584
- border-radius: 0 0 ${Ia.borderRadiusS} ${Ia.borderRadiusS};
1585
- box-shadow: ${Ia.elevation02};
1602
+ z-index: ${As.floatingZIndex};
1603
+ background: ${As.colorSurface};
1604
+ border: 1px solid ${As.colorOutline};
1605
+ border-radius: 0 0 ${As.borderRadiusS} ${As.borderRadiusS};
1606
+ box-shadow: ${As.elevation02};
1586
1607
  outline: none;
1587
- max-height: ${Ia.suggestSize};
1608
+ max-height: ${As.suggestSize};
1588
1609
  overflow-y: auto;
1589
1610
  }
1590
1611
 
@@ -1601,14 +1622,14 @@ const{I:Fn}=mt,jn=()=>document.createComment(""),zn=(t,e,i)=>{var o;const r=t._$
1601
1622
  }
1602
1623
 
1603
1624
  .ft-text-field--with-icon {
1604
- ${kt(In.labelMaxWidth,`calc(100% - ${ar.size} - ${In.horizontalSpacing})`)};
1625
+ ${ke(Aa.labelMaxWidth,`calc(100% - ${hn.size} - ${Aa.horizontalSpacing})`)};
1605
1626
  }
1606
1627
 
1607
1628
  .ft-text-field--with-password ft-icon:hover {
1608
1629
  cursor: pointer;
1609
1630
  }
1610
- `;var La=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class _a extends(Mi(zt,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=Xr.EYE_SLASH,this.passwordRevealedIcon=Xr.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return ot`
1611
- <div class="${hn(t)}">
1631
+ `;var Ts=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ws extends(Ho(Be,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=ea.EYE_SLASH,this.passwordRevealedIcon=ea.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return ce`
1632
+ <div class="${ya(t)}">
1612
1633
  <div class="ft-text-field--main-panel"
1613
1634
  @keydown=${this.handleKeyboardNavigation}
1614
1635
  @focusout=${this.onMainPanelBlur}>
@@ -1618,16 +1639,16 @@ const{I:Fn}=mt,jn=()=>document.createComment(""),zn=(t,e,i)=>{var o;const r=t._$
1618
1639
  ?raised=${this.focused||""!=this.value}
1619
1640
  ?error=${this.error}></ft-input-label>
1620
1641
  <div class="ft-text-field--input-panel">
1621
- ${this.outlined?nt:ot`
1642
+ ${this.outlined?fe:ce`
1622
1643
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1623
1644
  `}
1624
- ${this.prefix?ot`
1645
+ ${this.prefix?ce`
1625
1646
  <ft-typography class="ft-text-field--prefix" vaiant="body1">
1626
1647
  ${this.prefix}
1627
1648
  </ft-typography>
1628
- `:nt}
1649
+ `:fe}
1629
1650
  <input type=${this.password&&this.hidePassword?"password":"text"}
1630
- maxlength=${(t=>null!=t?t:nt)(this.maxLength||void 0)}
1651
+ maxlength=${(t=>t??nt)(this.maxLength||void 0)}
1631
1652
  aria-label="${this.label}"
1632
1653
  class="ft-typography--body1 ft-text-field--input"
1633
1654
  ?disabled=${this.disabled}
@@ -1642,23 +1663,23 @@ const{I:Fn}=mt,jn=()=>document.createComment(""),zn=(t,e,i)=>{var o;const r=t._$
1642
1663
  <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
1643
1664
  </div>
1644
1665
  </div>
1645
- ${this.helper?ot`
1666
+ ${this.helper?ce`
1646
1667
  <ft-typography class="ft-text-field--helper-text" variant="caption">
1647
1668
  ${this.helper}
1648
1669
  </ft-typography>
1649
- `:nt}
1670
+ `:fe}
1650
1671
  </div>
1651
- `}renderPasswordIcon(){return ot`
1672
+ `}renderPasswordIcon(){return ce`
1652
1673
  <ft-icon class="ft-text-field--icon"
1653
1674
  .variant=${this.iconVariant}
1654
1675
  .value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
1655
1676
  @click=${()=>this.togglePasswordVisibility()}></ft-icon>
1656
- `}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?ot`
1677
+ `}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?ce`
1657
1678
  <ft-icon class="ft-text-field--icon"
1658
1679
  .variant=${this.iconVariant}
1659
1680
  .value=${this.icon}
1660
1681
  @click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
1661
- `:nt}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}_a.elementDefinitions={"ft-input-label":_n,"ft-ripple":pn,"ft-typography":Kr,"ft-icon":en},_a.styles=[Yo,Ua],La([a()],_a.prototype,"label",void 0),La([a({noAccessor:!0})],_a.prototype,"value",null),La([s()],_a.prototype,"dispatchedValue",void 0),La([a()],_a.prototype,"helper",void 0),La([a({type:Boolean})],_a.prototype,"outlined",void 0),La([a({type:Boolean})],_a.prototype,"disabled",void 0),La([a({type:Boolean})],_a.prototype,"error",void 0),La([a()],_a.prototype,"prefix",void 0),La([a()],_a.prototype,"icon",void 0),La([a()],_a.prototype,"passwordHiddenIcon",void 0),La([a()],_a.prototype,"passwordRevealedIcon",void 0),La([a()],_a.prototype,"iconVariant",void 0),La([a({type:Boolean})],_a.prototype,"filterSuggestions",void 0),La([a({type:Number})],_a.prototype,"maxLength",void 0),La([a({type:Boolean})],_a.prototype,"password",void 0),La([s()],_a.prototype,"focused",void 0),La([s()],_a.prototype,"hidePassword",void 0),La([s()],_a.prototype,"suggestionsOnTop",void 0),La([s()],_a.prototype,"hideSuggestions",void 0),La([s()],_a.prototype,"visibleSuggestions",void 0),La([c(".ft-text-field--main-panel")],_a.prototype,"mainPanel",void 0),La([c(".ft-text-field--input")],_a.prototype,"input",void 0),La([c(".ft-text-field--suggestions")],_a.prototype,"suggestionsContainer",void 0),La([h({selector:"ft-text-field-suggestion"})],_a.prototype,"suggestions",void 0);const Aa=$`
1682
+ `:fe}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}Ws.elementDefinitions={"ft-input-label":Wa,"ft-ripple":ba,"ft-typography":Vn,"ft-icon":na},Ws.styles=[Qr,_s],Ts([k()],Ws.prototype,"label",void 0),Ts([k({noAccessor:!0})],Ws.prototype,"value",null),Ts([R()],Ws.prototype,"dispatchedValue",void 0),Ts([k()],Ws.prototype,"helper",void 0),Ts([k({type:Boolean})],Ws.prototype,"outlined",void 0),Ts([k({type:Boolean})],Ws.prototype,"disabled",void 0),Ts([k({type:Boolean})],Ws.prototype,"error",void 0),Ts([k()],Ws.prototype,"prefix",void 0),Ts([k()],Ws.prototype,"icon",void 0),Ts([k()],Ws.prototype,"passwordHiddenIcon",void 0),Ts([k()],Ws.prototype,"passwordRevealedIcon",void 0),Ts([k()],Ws.prototype,"iconVariant",void 0),Ts([k({type:Boolean})],Ws.prototype,"filterSuggestions",void 0),Ts([k({type:Number})],Ws.prototype,"maxLength",void 0),Ts([k({type:Boolean})],Ws.prototype,"password",void 0),Ts([R()],Ws.prototype,"focused",void 0),Ts([R()],Ws.prototype,"hidePassword",void 0),Ts([R()],Ws.prototype,"suggestionsOnTop",void 0),Ts([R()],Ws.prototype,"hideSuggestions",void 0),Ts([R()],Ws.prototype,"visibleSuggestions",void 0),Ts([U(".ft-text-field--main-panel")],Ws.prototype,"mainPanel",void 0),Ts([U(".ft-text-field--input")],Ws.prototype,"input",void 0),Ts([U(".ft-text-field--suggestions")],Ws.prototype,"suggestionsContainer",void 0),Ts([function(t){return(e,i)=>{const{slot:o,selector:r}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return I(0,0,{get(){const e=this.renderRoot?.querySelector(n),i=e?.assignedElements(t)??[];return void 0===r?i:i.filter((t=>t.matches(r)))}})}}({selector:"ft-text-field-suggestion"})],Ws.prototype,"suggestions",void 0);const Ds=Et`
1662
1683
  .ft-text-field-suggestion {
1663
1684
  position: relative;
1664
1685
  padding: 8px 16px;
@@ -1683,7 +1704,7 @@ const{I:Fn}=mt,jn=()=>document.createComment(""),zn=(t,e,i)=>{var o;const r=t._$
1683
1704
  slot {
1684
1705
  pointer-events: none;
1685
1706
  }
1686
- `;var Ta=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Wa extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Da extends zt{render(){return ot`
1707
+ `;var Fs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ps extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Ms extends Be{render(){return ce`
1687
1708
  <div class="ft-text-field-suggestion"
1688
1709
  tabindex="-1"
1689
1710
  @keydown=${this.onKeyDown}
@@ -1695,17 +1716,17 @@ const{I:Fn}=mt,jn=()=>document.createComment(""),zn=(t,e,i)=>{var o;const r=t._$
1695
1716
  <slot></slot>
1696
1717
  </ft-typography>
1697
1718
  </div>
1698
- `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Wa(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Da.elementDefinitions={"ft-ripple":pn,"ft-typography":Kr,"ft-icon":en},Da.styles=Aa,Ta([a()],Da.prototype,"value",void 0),Ta([c(".ft-text-field-suggestion")],Da.prototype,"container",void 0),Ta([u()],Da.prototype,"assignedNodes",void 0),b("ft-text-field")(_a),b("ft-text-field-suggestion")(Da);class Fa{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,i){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,i)),null==t.tocId?this.extractPagesToc(t.children,e,i):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,i){return t.flatMap((t=>{var o,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(o=t.pageToc)&&void 0!==o?o:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:i,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,i){return t.flatMap((t=>{var o;let r=null===(o=t.prettyUrl)||void 0===o?void 0:o.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:i,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var i,o,r,n,a,s;const l={number:this.pages.length+1,title:null!==(i=t.title)&&void 0!==i?i:"",rootTocId:null!==(o=t.tocId)&&void 0!==o?o:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),f=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,f[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class ja{convertPaginatedToc(t){return new Fa(t).build()}}class za{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i,o){this.converter=t,this.api=e,this.cache=i,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return Wr(null!==(e=null===(t=ia.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getLink(t,e,i){const o=this.getNavigationData(t,e,i),r=this.getReaderLinkPrefix()+(o.prettyUrl?o.prettyUrl:`${o.mapId}/${o.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=o.page&&n.searchParams.set("page",`${o.page}`),o.prettyUrlDuplicated&&n.searchParams.set("tocId",o.tocId),null!=o.section&&n.searchParams.set("section",o.section),n.href}getNavigationData(t,e,i){var o,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(o=null==s?void 0:s.title)&&void 0!==o?o:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var i;return e?{type:e.topics.type,rating:null===(i=e.topics)||void 0===i?void 0:i.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,i){return this.makeRateTopicRequest(t,e,i).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=ia.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),i=[{tocId:e.tocId,title:e.title}],o=this.getTocNodeNow(e.parentTocId);for(;o;)i.unshift({tocId:o.tocId,title:o.title}),o=this.getTocNodeNow(o.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){if(!this.isFeatureAvailable(t))return!1;switch(t){case Gi.FEEDBACK:return Wr(null!=e?e:[],_r.FEEDBACK_USER);case Gi.RATING:return Wr(null!=e?e:[],_r.RATING_USER)&&null!=i&&i!==Sr.NO_RATING;case Gi.PRINT:return Wr(null!=e?e:[],_r.PRINT_USER);case Gi.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case Gi.COLLECTIONS:return Wr(null!=e?e:[],_r.COLLECTION_USER);default:return!1}}}class Ba extends za{static async build(t){return new Ba(new ja,await oa.await(),new o,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){var e;const i=await this.api.getMap(t);return this.fingerprint=null===(e=i.lastPublication)||void 0===e?void 0:e.replace(/\D/g,""),i}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Ma{static build(t,e){return new Ma((t=>ji.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0}}))(t.trim()||"context"),null!=e?e:Ba.build)}constructor(t,e){this.store=t,this.reloadDebouncer=new r(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){for(;null==this.service;)await p(5);return this.service}async navigateToTopic(t,e,i){const o=await this.awaitService(),r=await(null!=i?o.getPage(i):o.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var i,o,r;let n=null!==(i="root"===t?void 0:t)&&void 0!==i?i:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(o=e.topics[0])&&void 0!==o?o:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let i=await e.getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async reload(){var t,e;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),null===(t=this.service)||void 0===t||t.clear(),(null===(e=this.service)||void 0===e?void 0:e.mapId)&&await this.reloadDebouncer.run((()=>this.fetchData()))}async fetchData(){var t,i,o,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(i=this.service)||void 0===i?void 0:i.getMap().then((t=>this.store.actions.map(t))),null===(o=this.service)||void 0===o?void 0:o.getToc().then((t=>this.store.actions.toc(t))),null===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))])}catch(t){!this.errorHandler||t instanceof e||this.errorHandler(t)}}}const Pa=$`
1699
- `;class Ka extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Za extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Ha extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Ga extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class Va extends Event{constructor(){super("ft-reader-map-not-found")}}class qa extends Event{constructor(){super("ft-reader-map-unauthorized")}}var Ya=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Xa extends Xt{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new r(5),this.navigationDebouncer=new r(10),this.addStore(ia)}render(){return ot`
1719
+ `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Ps(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Ms.elementDefinitions={"ft-ripple":ba,"ft-typography":Vn,"ft-icon":na},Ms.styles=Ds,Fs([k()],Ms.prototype,"value",void 0),Fs([U(".ft-text-field-suggestion")],Ms.prototype,"container",void 0),Fs([L()],Ms.prototype,"assignedNodes",void 0),T("ft-text-field")(Ws),T("ft-text-field-suggestion")(Ms);class zs{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,i){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,i)),null==t.tocId?this.extractPagesToc(t.children,e,i):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,i){return t.flatMap((t=>{var o,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(o=t.pageToc)&&void 0!==o?o:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:i,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,i){return t.flatMap((t=>{var o;let r=null===(o=t.prettyUrl)||void 0===o?void 0:o.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:i,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var i,o,r,n,a,s;const l={number:this.pages.length+1,title:null!==(i=t.title)&&void 0!==i?i:"",rootTocId:null!==(o=t.tocId)&&void 0!==o?o:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),h=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,h[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class js{convertPaginatedToc(t){return new zs(t).build()}}class Bs{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,i,o){this.converter=t,this.api=e,this.cache=i,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return Mn(null!==(e=null===(t=ns.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getLink(t,e,i){const o=this.getNavigationData(t,e,i),r=this.getReaderLinkPrefix()+(o.prettyUrl?o.prettyUrl:`${o.mapId}/${o.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=o.page&&n.searchParams.set("page",`${o.page}`),o.prettyUrlDuplicated&&n.searchParams.set("tocId",o.tocId),null!=o.section&&n.searchParams.set("section",o.section),n.href}getNavigationData(t,e,i){var o,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(o=null==s?void 0:s.title)&&void 0!==o?o:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:i}}async getAccurateNavigationData(t,e,i){return await this.getEnrichedToc(),this.getNavigationData(t,e,i)}getRatingSummary(){return this.cache.get("ratingSummary")}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var i;return e?{type:e.topics.type,rating:null===(i=e.topics)||void 0===i?void 0:i.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,i){return this.makeRateTopicRequest(t,e,i).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=ns.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,i){return this.makeTopicFeedbackRequest(t,e,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),i=[{tocId:e.tocId,title:e.title}],o=this.getTocNodeNow(e.parentTocId);for(;o;)i.unshift({tocId:o.tocId,title:o.title}),o=this.getTocNodeNow(o.parentTocId);return i}isFeatureAccessible(t,{session:e,ratingType:i}){if(!this.isFeatureAvailable(t))return!1;switch(t){case Xo.FEEDBACK:return Mn(null!=e?e:[],Dn.FEEDBACK_USER);case Xo.RATING:return Mn(null!=e?e:[],Dn.RATING_USER)&&null!=i&&i!==En.NO_RATING;case Xo.PRINT:return Mn(null!=e?e:[],Dn.PRINT_USER);case Xo.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case Xo.COLLECTIONS:return Mn(null!=e?e:[],Dn.COLLECTION_USER);case Xo.PERSONAL_BOOKS:return Mn(null!=e?e:[],Dn.PERSONAL_BOOK_USER);default:return!1}}}class Ks extends Bs{static async build(t){return new Ks(new js,await as.await(),new o,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){var e;const i=await this.api.getMap(t);return this.fingerprint=null===(e=i.lastPublication)||void 0===e?void 0:e.replace(/\D/g,""),i}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,i){return this.api.rateTopic(this.mapId,t,e,i)}makeTopicFeedbackRequest(t,e,i){return this.api.sendTopicFeedback(this.mapId,t,e,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Zs{static build(t,e){return new Zs((t=>Bo.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0}}))(t.trim()||"context"),null!=e?e:Ks.build)}constructor(t,e){this.store=t,this.reloadDebouncer=new r(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){for(;null==this.service;)await A(5);return this.service}async navigateToTopic(t,e,i){const o=await this.awaitService(),r=await(null!=i?o.getPage(i):o.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var i,o,r;let n=null!==(i="root"===t?void 0:t)&&void 0!==i?i:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(o=e.topics[0])&&void 0!==o?o:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let i=await e.getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async reload(){var t,e;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),null===(t=this.service)||void 0===t||t.clear(),(null===(e=this.service)||void 0===e?void 0:e.mapId)&&await this.reloadDebouncer.run((()=>this.fetchData()))}async fetchData(){var t,i,o,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(i=this.service)||void 0===i?void 0:i.getMap().then((t=>this.store.actions.map(t))),null===(o=this.service)||void 0===o?void 0:o.getToc().then((t=>this.store.actions.toc(t))),null===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))])}catch(t){!this.errorHandler||t instanceof e||this.errorHandler(t)}}}const Hs=Et`
1720
+ `;class Gs extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Vs extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class qs extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Ys extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class Xs extends Event{constructor(){super("ft-reader-map-not-found")}}class Js extends Event{constructor(){super("ft-reader-map-unauthorized")}}var Qs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class tl extends ti{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new r(5),this.navigationDebouncer=new r(10),this.addStore(ns)}render(){return ce`
1700
1721
  ${this.importStyleIfNeeded()}
1701
1722
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1702
- `}importStyleIfNeeded(){var t,e;const i=null===(t=this.stateManager.service)||void 0===t?void 0:t.themeStylesheet();return!i||window.location.href.startsWith(null!==(e=this.baseUrl)&&void 0!==e?e:"")?nt:ot`
1723
+ `}importStyleIfNeeded(){var t,e;const i=null===(t=this.stateManager.service)||void 0===t?void 0:t.themeStylesheet();return!i||window.location.href.startsWith(null!==(e=this.baseUrl)&&void 0!==e?e:"")?fe:ce`
1703
1724
  <style>
1704
1725
  @import "${i}"
1705
1726
  </style>
1706
- `}get stateManager(){return null==this._stateManager&&(this._stateManager=Ma.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&this.stateManager.setMapId(this.mapId),["tocId","section","page","mapId"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.map&&this.toc&&this.dispatchEvent(new Ka(this.map,this.toc)),t.has("scrollTarget")&&null==(null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)){const e=t.get("scrollTarget");null!=(null==e?void 0:e.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(e.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,e.section).then((t=>this.dispatchEvent(new Ha(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var e;return this.stateManager.service.getAccurateNavigationData(t,null===(e=this.currentPage)||void 0===e?void 0:e.number)}))).then((t=>{let e=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var e;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(e=this.stateManager.service)||void 0===e?void 0:e.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new Za(this.map,e))}))}async reload(){await this.stateManager.reload(),this.navigateToTarget()}navigateToTarget(){this.navigationDebouncer.run((()=>{null!=this.tocId?this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const e=t;404===e.status?this.dispatchEvent(new Va):401===e.status?this.dispatchEvent(new qa):this.dispatchEvent(new Ga(t))}reloadBookmarks(){ya.reloadBookmarks()}}var Ja;Xa.styles=Pa,Ya([zi({store:ia.name})],Xa.prototype,"baseUrl",void 0),Ya([a()],Xa.prototype,"mapId",void 0),Ya([a()],Xa.prototype,"tocId",void 0),Ya([a()],Xa.prototype,"section",void 0),Ya([a({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:Ja}})],Xa.prototype,"page",void 0),Ya([zi({store:"reader"})],Xa.prototype,"map",void 0),Ya([zi({store:"reader"})],Xa.prototype,"toc",void 0),Ya([zi({store:"reader"})],Xa.prototype,"visibleTopics",void 0),Ya([zi({store:"reader"})],Xa.prototype,"currentPage",void 0),Ya([zi({store:"reader"})],Xa.prototype,"scrollTarget",void 0),Ya([a({attribute:!1})],Xa.prototype,"readerServiceProvider",void 0),b("ft-reader-context")(Xa);var Qa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ts extends(ma(Xi)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",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(Ca,ka),this.addI18nContext(Ea,Ra)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Gi.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Gi.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get userHasRatingRole(){return this.session&&Wr(this.session,"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?ot`
1727
+ `}get stateManager(){return null==this._stateManager&&(this._stateManager=Zs.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&this.stateManager.setMapId(this.mapId),["tocId","section","page","mapId"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.map&&this.toc&&this.dispatchEvent(new Gs(this.map,this.toc)),t.has("scrollTarget")&&null==(null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)){const e=t.get("scrollTarget");null!=(null==e?void 0:e.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(e.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,e.section).then((t=>this.dispatchEvent(new qs(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var e;return this.stateManager.service.getAccurateNavigationData(t,null===(e=this.currentPage)||void 0===e?void 0:e.number)}))).then((t=>{let e=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var e;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(e=this.stateManager.service)||void 0===e?void 0:e.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new Vs(this.map,e))}))}async reload(){await this.stateManager.reload(),this.navigateToTarget()}navigateToTarget(){this.navigationDebouncer.run((()=>{null!=this.tocId?this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const e=t;404===e.status?this.dispatchEvent(new Xs):401===e.status?this.dispatchEvent(new Js):this.dispatchEvent(new Ys(t))}reloadBookmarks(){vs.reloadBookmarks()}}var el;tl.styles=Hs,Qs([Ko({store:ns.name})],tl.prototype,"baseUrl",void 0),Qs([k()],tl.prototype,"mapId",void 0),Qs([k()],tl.prototype,"tocId",void 0),Qs([k()],tl.prototype,"section",void 0),Qs([k({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:el}})],tl.prototype,"page",void 0),Qs([Ko({store:"reader"})],tl.prototype,"map",void 0),Qs([Ko({store:"reader"})],tl.prototype,"toc",void 0),Qs([Ko({store:"reader"})],tl.prototype,"visibleTopics",void 0),Qs([Ko({store:"reader"})],tl.prototype,"currentPage",void 0),Qs([Ko({store:"reader"})],tl.prototype,"scrollTarget",void 0),Qs([k({attribute:!1})],tl.prototype,"readerServiceProvider",void 0),T("ft-reader-context")(tl);var il=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ol extends(Os(er)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",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(Rs,Is),this.addI18nContext(Us,Ls)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Xo.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Xo.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get userHasRatingRole(){return this.session&&Mn(this.session,"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?ce`
1707
1728
  <div class="ft-reader-feedback">
1708
- ${this.hideTitle?nt:ot`
1729
+ ${this.hideTitle?fe:ce`
1709
1730
  <ft-typography variant="title" part="main-title">
1710
1731
  ${this.i18n(this.i18nProperties.feedbackMainTitle)}
1711
1732
  </ft-typography>
@@ -1713,7 +1734,7 @@ const{I:Fn}=mt,jn=()=>document.createComment(""),zn=(t,e,i)=>{var o;const r=t._$
1713
1734
  ${this.renderRatingSection()}
1714
1735
  ${this.renderFeedbackSection()}
1715
1736
  </div>
1716
- `:nt}renderRatingSection(){return this.canAccessRating?ot`
1737
+ `:fe}renderRatingSection(){return this.canAccessRating?ce`
1717
1738
  <div class="ft-reader-feedback--rating" part="rating-container">
1718
1739
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1719
1740
  ${this.i18n("DICHOTOMOUS"===this.ratingSummary.type?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
@@ -1723,11 +1744,11 @@ const{I:Fn}=mt,jn=()=>document.createComment(""),zn=(t,e,i)=>{var o;const r=t._$
1723
1744
  ${this.renderRatingDate()}
1724
1745
  </ft-typography>
1725
1746
  </div>
1726
- `:this.placeholderInEditor(this.userHasRatingRole?Ea.messages.ratingNotConfigured():Ea.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return Ca.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return Ca.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?Ca.messages.ratedToday():Ca.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return ot`
1747
+ `:this.placeholderInEditor(this.userHasRatingRole?Us.messages.ratingNotConfigured():Us.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return Rs.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return Rs.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?Rs.messages.ratedToday():Rs.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return ce`
1727
1748
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1728
- ${Zn(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const o=e+1;return ot`
1749
+ ${Va(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const o=e+1;return ce`
1729
1750
  <ft-button round part="rating-stars-${o}"
1730
- label="${Ca.messages.starsRating(o)}"
1751
+ label="${Rs.messages.starsRating(o)}"
1731
1752
  tooltipPosition="top"
1732
1753
  .iconVariant=${this.iconVariant}
1733
1754
  icon="${i?this.filledStarIcon:this.emptyStarIcon}"
@@ -1736,7 +1757,7 @@ const{I:Fn}=mt,jn=()=>document.createComment(""),zn=(t,e,i)=>{var o;const r=t._$
1736
1757
  ></ft-button>
1737
1758
  `}))}
1738
1759
  </div>
1739
- `;case"LIKE":const t="LIKE"===this.ratingType&&0===this.ratingValue,e="LIKE"===this.ratingType&&1===this.ratingValue;return ot`
1760
+ `;case"LIKE":const t="LIKE"===this.ratingType&&0===this.ratingValue,e="LIKE"===this.ratingType&&1===this.ratingValue;return ce`
1740
1761
  <ft-switch unselectable
1741
1762
  @change=${t=>this.rate(t.detail)}
1742
1763
  part="rating rating-like">
@@ -1744,71 +1765,71 @@ const{I:Fn}=mt,jn=()=>document.createComment(""),zn=(t,e,i)=>{var o;const r=t._$
1744
1765
  ?selected=${e}
1745
1766
  .iconVariant=${this.iconVariant}
1746
1767
  icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
1747
- ${Ca.messages.like()}
1768
+ ${Rs.messages.like()}
1748
1769
  </ft-switch-option>
1749
1770
  <ft-switch-option .value=${0}
1750
1771
  ?selected=${t}
1751
1772
  .iconVariant=${this.iconVariant}
1752
1773
  icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
1753
- ${Ca.messages.dislike()}
1774
+ ${Rs.messages.dislike()}
1754
1775
  </ft-switch-option>
1755
1776
  </ft-switch>
1756
- `;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,o="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return ot`
1777
+ `;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,o="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return ce`
1757
1778
  <ft-switch unselectable
1758
1779
  @change=${t=>this.rate(t.detail)}
1759
1780
  part="rating rating-dichotomous">
1760
1781
  <ft-switch-option .value=${1}
1761
1782
  ?selected=${o}>
1762
- ${Ca.messages.dichotomousYes()}
1783
+ ${Rs.messages.dichotomousYes()}
1763
1784
  </ft-switch-option>
1764
1785
  <ft-switch-option .value=${0}
1765
1786
  ?selected=${i}>
1766
- ${Ca.messages.dichotomousNo()}
1787
+ ${Rs.messages.dichotomousNo()}
1767
1788
  </ft-switch-option>
1768
1789
  </ft-switch>
1769
- `}return nt}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,i;if(this.canAccessFeedback){const o=this.feedbackMailLinkBuilder(this.feedbackMessage);let r=ot`
1790
+ `}return fe}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,i;if(this.canAccessFeedback){const o=this.feedbackMailLinkBuilder(this.feedbackMessage);let r=ce`
1770
1791
  <ft-button primary
1771
1792
  type="submit" name="submit"
1772
1793
  class="ft-reader-feedback--send-feedback"
1773
1794
  ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1774
1795
  part="send-feedback">
1775
- ${Ca.messages.okButton()}
1796
+ ${Rs.messages.okButton()}
1776
1797
  </ft-button>
1777
- `;return o&&(r=ot`
1798
+ `;return o&&(r=ce`
1778
1799
  <a class="ft-reader-feedback--feedback-link" href="${o}">
1779
1800
  ${r}
1780
1801
  </a>
1781
- `),ot`
1802
+ `),ce`
1782
1803
  <form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
1783
1804
  @submit="${t=>this.onFormSubmitEvent(t,!!o)}">
1784
1805
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1785
1806
  ${this.i18n(this.i18nProperties.feedbackSectionTitle)}
1786
1807
  </ft-typography>
1787
- ${null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers)?ot`
1808
+ ${null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers)?ce`
1788
1809
  <ft-text-field outlined name="email" type="email" autocomplete="email"
1789
1810
  class="ft-reader-feedback--from-input"
1790
- label=${Ca.messages.feedbackfromEmail()}
1811
+ label=${Rs.messages.feedbackfromEmail()}
1791
1812
  @change=${t=>this.from=t.detail.trim()}
1792
1813
  ?error=${this.from&&!this.validFromEmail()}
1793
- helper=${this.from&&!this.validFromEmail()?Ca.messages.feedbackfromEmailInvalid():""}
1814
+ helper=${this.from&&!this.validFromEmail()?Rs.messages.feedbackfromEmailInvalid():""}
1794
1815
  />
1795
- `:nt}
1816
+ `:fe}
1796
1817
  <ft-text-area outlined
1797
1818
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1798
- label="${Ca.messages.feedbackInputLabel()}"
1819
+ label="${Rs.messages.feedbackInputLabel()}"
1799
1820
  @live-change=${t=>this.feedbackMessage=t.detail.trim()}
1800
1821
  ></ft-text-area>
1801
1822
  ${r}
1802
1823
  </form>
1803
- `}return this.placeholderInEditor(Ea.messages.missingFeedbackRole())}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,i;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new CustomEvent("send-feedback",{detail:{message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}}))}placeholderInEditor(t){return this.editorMode?ot`
1824
+ `}return this.placeholderInEditor(Us.messages.missingFeedbackRole())}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,i;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new CustomEvent("send-feedback",{detail:{message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}}))}placeholderInEditor(t){return this.editorMode?ce`
1804
1825
  <div class="ft-reader-feedback--placeholder">
1805
1826
  <ft-typography variant="caption">${t}</ft-typography>
1806
1827
  <ft-tooltip position="left"
1807
- text="${Ea.messages.inDesignerOnlyNotice()}">
1828
+ text="${Us.messages.inDesignerOnlyNotice()}">
1808
1829
  <ft-icon>INFO</ft-icon>
1809
1830
  </ft-tooltip>
1810
1831
  </div>
1811
- `:nt}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}ts.elementDefinitions={"ft-button":Yn,"ft-typography":Kr,"ft-icon":en,"ft-tooltip":dn,"ft-switch":Sn,"ft-switch-option":xn,"ft-text-area":Dn,"ft-text-field":_a},ts.styles=mr,Qa([a({type:Boolean})],ts.prototype,"editorMode",void 0),Qa([a({type:Boolean})],ts.prototype,"hideTitle",void 0),Qa([a({type:Boolean})],ts.prototype,"ratingAllowed",void 0),Qa([a({attribute:!1})],ts.prototype,"i18nProperties",void 0),Qa([a({attribute:!1})],ts.prototype,"ratingSummary",void 0),Qa([a({attribute:!1})],ts.prototype,"session",void 0),Qa([c(".ft-reader-feedback--feedback-input")],ts.prototype,"feedbackInput",void 0),Qa([s()],ts.prototype,"from",void 0),Qa([s()],ts.prototype,"feedbackMessage",void 0),Qa([a()],ts.prototype,"iconVariant",void 0),Qa([a()],ts.prototype,"emptyStarIcon",void 0),Qa([a()],ts.prototype,"filledStarIcon",void 0),Qa([a()],ts.prototype,"emptyLikeIcon",void 0),Qa([a()],ts.prototype,"filledLikeIcon",void 0),Qa([a()],ts.prototype,"emptyDislikeIcon",void 0),Qa([a()],ts.prototype,"filledDislikeIcon",void 0),Qa([zi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],ts.prototype,"configuration",void 0),Qa([a()],ts.prototype,"feedbackMailLinkBuilder",void 0);const es=$a.fromGwt("server");class is{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,o,r){var n;this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(i,o.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(n=o.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}build(t){var e,i,o;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics))||(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))return;const r=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${es.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${r}&body=${n}`}}var os=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class rs extends(ma(Xi)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Qr.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 is,this.i18nProperties={feedbackMainTitle:Ca.properties.mapFeedbackMainTitle(),ratingSectionTitle:Ca.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Ca.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Ca.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new r(100),this.sendRatingDebouncer=new r(500),this.addStore(ia)}render(){return this.map&&(this.editorMode||this.componentVisible)?ot`
1832
+ `:fe}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}ol.elementDefinitions={"ft-button":Qa,"ft-typography":Vn,"ft-icon":na,"ft-tooltip":pa,"ft-switch":Ca,"ft-switch-option":Sa,"ft-text-area":Ma,"ft-text-field":Ws},ol.styles=Sn,il([k({type:Boolean})],ol.prototype,"editorMode",void 0),il([k({type:Boolean})],ol.prototype,"hideTitle",void 0),il([k({type:Boolean})],ol.prototype,"ratingAllowed",void 0),il([k({attribute:!1})],ol.prototype,"i18nProperties",void 0),il([k({attribute:!1})],ol.prototype,"ratingSummary",void 0),il([k({attribute:!1})],ol.prototype,"session",void 0),il([U(".ft-reader-feedback--feedback-input")],ol.prototype,"feedbackInput",void 0),il([R()],ol.prototype,"from",void 0),il([R()],ol.prototype,"feedbackMessage",void 0),il([k()],ol.prototype,"iconVariant",void 0),il([k()],ol.prototype,"emptyStarIcon",void 0),il([k()],ol.prototype,"filledStarIcon",void 0),il([k()],ol.prototype,"emptyLikeIcon",void 0),il([k()],ol.prototype,"filledLikeIcon",void 0),il([k()],ol.prototype,"emptyDislikeIcon",void 0),il([k()],ol.prototype,"filledDislikeIcon",void 0),il([Ko({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],ol.prototype,"configuration",void 0),il([k()],ol.prototype,"feedbackMailLinkBuilder",void 0);const rl=Es.fromGwt("server");class nl{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,i,o,r){var n;this.subject=t,this.url=e,this.configuration=o,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(i,o.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(i,null!==(n=o.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}build(t){var e,i,o;if(0===t.length||this.isAuthenticated&&(null==this.configuration||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopics))||(null===(i=this.configuration)||void 0===i?void 0:i.mailsSentByFluidTopicsForUnauthenticatedUsers))return;const r=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${t}\n\n_________________________________________________________________\n${rl.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${r}&body=${n}`}}var al=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class sl extends(Os(er)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=oa.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 nl,this.i18nProperties={feedbackMainTitle:Rs.properties.mapFeedbackMainTitle(),ratingSectionTitle:Rs.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Rs.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Rs.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new r(100),this.sendRatingDebouncer=new r(500),this.addStore(ns)}render(){return this.map&&(this.editorMode||this.componentVisible)?ce`
1812
1833
  <ft-reader-feedback
1813
1834
  ratingAllowed
1814
1835
  .i18nProperties=${this.i18nProperties}
@@ -1828,13 +1849,13 @@ const{I:Fn}=mt,jn=()=>document.createComment(""),zn=(t,e,i)=>{var o;const r=t._$
1828
1849
  @send-feedback=${this.sendFeedback}
1829
1850
  @mailer-feedback=${this.onMailerFeedbackSent}
1830
1851
  ></ft-reader-feedback>
1831
- `:ot`
1852
+ `:ce`
1832
1853
  <style>
1833
1854
  :host {
1834
1855
  display: none !important;
1835
1856
  }
1836
1857
  </style>
1837
- `}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Gi.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(Gi.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,o,r;super.update(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===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.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:Ca.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _t({type:"info",message:Ea.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new _t({type:"info",message:Ea.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new _t({type:"info",message:Ca.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new _t({type:"error",message:Ca.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}rs.elementDefinitions={"ft-reader-feedback":ts},os([zi({store:ia.name})],rs.prototype,"session",void 0),os([zi({store:"reader"})],rs.prototype,"map",void 0),os([zi({store:ia.name})],rs.prototype,"editorMode",void 0),os([zi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],rs.prototype,"configuration",void 0),os([s()],rs.prototype,"ratingSummary",void 0),os([a({type:Boolean})],rs.prototype,"hideTitle",void 0),os([a()],rs.prototype,"iconVariant",void 0),os([a()],rs.prototype,"emptyStarIcon",void 0),os([a()],rs.prototype,"filledStarIcon",void 0),os([a()],rs.prototype,"emptyLikeIcon",void 0),os([a()],rs.prototype,"filledLikeIcon",void 0),os([a()],rs.prototype,"emptyDislikeIcon",void 0),os([a()],rs.prototype,"filledDislikeIcon",void 0),os([c("ft-reader-feedback")],rs.prototype,"readerFeedback",void 0),os([Na(es.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],rs.prototype,"mailSubject",void 0);var ns=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class as extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const ss=Symbol("registerInterval");class ls extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[ss]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[ss]):this.dispatchEvent(new as)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=ss,ns([s()],i.prototype,"tocNode",void 0),ns([s()],i.prototype,"disableContextInteractions",void 0),i}(Xi)){}var cs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class fs extends(ma(ls)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Qr.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 is,this.i18nProperties={feedbackMainTitle:Ca.properties.topicFeedbackMainTitle(),ratingSectionTitle:Ca.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Ca.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Ca.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new r(100),this.sendRatingDebouncer=new r(500),this.addStore(ia)}render(){return this.map&&this.tocNode&&(this.editorMode||this.componentVisible)?ot`
1858
+ `}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Xo.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(Xo.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,o,r;super.update(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===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.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 _e({type:"error",message:Rs.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _e({type:"info",message:Us.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new _e({type:"info",message:Us.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new _e({type:"info",message:Rs.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new _e({type:"error",message:Rs.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}sl.elementDefinitions={"ft-reader-feedback":ol},al([Ko({store:ns.name})],sl.prototype,"session",void 0),al([Ko({store:"reader"})],sl.prototype,"map",void 0),al([Ko({store:ns.name})],sl.prototype,"editorMode",void 0),al([Ko({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],sl.prototype,"configuration",void 0),al([R()],sl.prototype,"ratingSummary",void 0),al([k({type:Boolean})],sl.prototype,"hideTitle",void 0),al([k()],sl.prototype,"iconVariant",void 0),al([k()],sl.prototype,"emptyStarIcon",void 0),al([k()],sl.prototype,"filledStarIcon",void 0),al([k()],sl.prototype,"emptyLikeIcon",void 0),al([k()],sl.prototype,"filledLikeIcon",void 0),al([k()],sl.prototype,"emptyDislikeIcon",void 0),al([k()],sl.prototype,"filledDislikeIcon",void 0),al([U("ft-reader-feedback")],sl.prototype,"readerFeedback",void 0),al([ks(rl.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],sl.prototype,"mailSubject",void 0);var ll=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class cl extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const hl=Symbol("registerInterval");class fl extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[hl]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[hl]):this.dispatchEvent(new cl)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=hl,ll([R()],i.prototype,"tocNode",void 0),ll([R()],i.prototype,"disableContextInteractions",void 0),i}(er)){}var dl=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ul extends(Os(fl)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=oa.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 nl,this.i18nProperties={feedbackMainTitle:Rs.properties.topicFeedbackMainTitle(),ratingSectionTitle:Rs.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Rs.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Rs.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new r(100),this.sendRatingDebouncer=new r(500),this.addStore(ns)}render(){return this.map&&this.tocNode&&(this.editorMode||this.componentVisible)?ce`
1838
1859
  <ft-reader-feedback
1839
1860
  .i18nProperties=${this.i18nProperties}
1840
1861
  ?ratingAllowed=${this.tocNode.hasRating}
@@ -1854,10 +1875,10 @@ const{I:Fn}=mt,jn=()=>document.createComment(""),zn=(t,e,i)=>{var o;const r=t._$
1854
1875
  @send-feedback=${this.sendFeedback}
1855
1876
  @mailer-feedback=${this.onMailerFeedbackSent}
1856
1877
  ></ft-reader-feedback>
1857
- `:ot`
1878
+ `:ce`
1858
1879
  <style>
1859
1880
  :host {
1860
1881
  display: none !important;
1861
1882
  }
1862
1883
  </style>
1863
- `}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Gi.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(Gi.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,o,r;super.update(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===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.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:Ca.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _t({type:"info",message:Ea.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.message,t.detail.from)),this.dispatchEvent(new _t({type:"info",message:Ca.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new _t({type:"info",message:Ea.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new _t({type:"error",message:Ca.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}fs.elementDefinitions={"ft-reader-feedback":ts},cs([zi({store:ia.name})],fs.prototype,"session",void 0),cs([zi({store:"reader"})],fs.prototype,"map",void 0),cs([zi({store:ia.name})],fs.prototype,"editorMode",void 0),cs([zi({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],fs.prototype,"configuration",void 0),cs([s()],fs.prototype,"ratingSummary",void 0),cs([a({type:Boolean})],fs.prototype,"hideTitle",void 0),cs([a()],fs.prototype,"iconVariant",void 0),cs([a()],fs.prototype,"emptyStarIcon",void 0),cs([a()],fs.prototype,"filledStarIcon",void 0),cs([a()],fs.prototype,"emptyLikeIcon",void 0),cs([a()],fs.prototype,"filledLikeIcon",void 0),cs([a()],fs.prototype,"emptyDislikeIcon",void 0),cs([a()],fs.prototype,"filledDislikeIcon",void 0),cs([c("ft-reader-feedback")],fs.prototype,"readerFeedback",void 0),cs([Na(es.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]})))],fs.prototype,"mailSubject",void 0),b("ft-reader-map-feedback")(rs),b("ft-reader-topic-feedback")(fs),t.FtReaderFeedbackCssVariables=vr,t.FtReaderMapFeedback=rs,t.FtReaderTopicFeedback=fs,t.styles=mr}({});
1884
+ `}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Xo.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(Xo.RATING,{session:this.session,ratingType:null===(i=this.ratingSummary)||void 0===i?void 0:i.type}))}update(t){var e,i,o,r;super.update(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===(r=null===(o=this.session)||void 0===o?void 0:o.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e,i;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&(this.ratingSummary=await(null===(i=this.service)||void 0===i?void 0:i.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 _e({type:"error",message:Rs.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _e({type:"info",message:Us.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.message,t.detail.from)),this.dispatchEvent(new _e({type:"info",message:Rs.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new _e({type:"info",message:Us.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new _e({type:"error",message:Rs.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}ul.elementDefinitions={"ft-reader-feedback":ol},dl([Ko({store:ns.name})],ul.prototype,"session",void 0),dl([Ko({store:"reader"})],ul.prototype,"map",void 0),dl([Ko({store:ns.name})],ul.prototype,"editorMode",void 0),dl([Ko({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],ul.prototype,"configuration",void 0),dl([R()],ul.prototype,"ratingSummary",void 0),dl([k({type:Boolean})],ul.prototype,"hideTitle",void 0),dl([k()],ul.prototype,"iconVariant",void 0),dl([k()],ul.prototype,"emptyStarIcon",void 0),dl([k()],ul.prototype,"filledStarIcon",void 0),dl([k()],ul.prototype,"emptyLikeIcon",void 0),dl([k()],ul.prototype,"filledLikeIcon",void 0),dl([k()],ul.prototype,"emptyDislikeIcon",void 0),dl([k()],ul.prototype,"filledDislikeIcon",void 0),dl([U("ft-reader-feedback")],ul.prototype,"readerFeedback",void 0),dl([ks(rl.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]})))],ul.prototype,"mailSubject",void 0),T("ft-reader-map-feedback")(sl),T("ft-reader-topic-feedback")(ul),t.FtReaderFeedbackCssVariables=On,t.FtReaderMapFeedback=sl,t.FtReaderTopicFeedback=ul,t.styles=Sn}({});