@fluid-topics/ft-reader-feedback 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,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 f=i.call(o,t);f||(f=h(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(){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,f=t=>{let e=t.getRootNode();if(!c(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const 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)}},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(gs){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)}}
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 f=i.call(o,t);f||(f=h(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(){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,f=t=>{let e=t.getRootNode();if(!c(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const 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)}},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(bs){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)}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -38,12 +38,17 @@ const N={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:O},C=(t=N,e,
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */const R=(t,e,i)=>(i.configurable=!0,i.enumerable=!0,i)
41
+ */function R(t){return(e,i)=>{const o="function"==typeof e?e:e[i];Object.assign(o,t)}}
42
42
  /**
43
43
  * @license
44
44
  * Copyright 2017 Google LLC
45
45
  * SPDX-License-Identifier: BSD-3-Clause
46
- */;function I(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 R(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 R(0,0,{get(){return n(this)}})}}
46
+ */const I=(t,e,i)=>(i.configurable=!0,i.enumerable=!0,i)
47
+ /**
48
+ * @license
49
+ * Copyright 2017 Google LLC
50
+ * SPDX-License-Identifier: BSD-3-Clause
51
+ */;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)}})}}
47
52
  /**
48
53
  * @license
49
54
  * Copyright 2021 Google LLC
@@ -54,44 +59,44 @@ const N={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:O},C=(t=N,e,
54
59
  * Copyright 2017 Google LLC
55
60
  * SPDX-License-Identifier: BSD-3-Clause
56
61
  */
57
- function U(t){return(e,i)=>{const{slot:o}=t??{},r="slot"+(o?`[name=${o}]`:":not([name])");return R(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}class L{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}}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 E({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:{}})}
62
+ 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)??[]}})}}class A{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}}const _=t=>new Promise((e=>setTimeout(e,t)));function T(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(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(!T(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(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const W=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function D(t,e){const i=()=>JSON.parse(JSON.stringify(t));return E({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(t,e),...null!=e?e:{}})}
58
63
  /**
59
64
  * @license
60
65
  * Copyright 2017 Google LLC
61
66
  * 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,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=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 h=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+h):i+z+(-2===c?e:h)}return[lt(t,n+(t[i]||"<?>")+(2===e?"</svg>":"")),o]};let ft=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,f]=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=f[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 ht(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=ht(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=ht(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=ft.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 ft(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=ht(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=ht(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=ht(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){ht(this,t)}};const mt={j:M,P:z,A:j,C:1,M:ct,L:dt,R:V,V:ht,D:ut,I:pt,H:gt,N:bt,U:yt,B:vt},xt=D.litHtmlPolyfillSupport;xt?.(ft,ut),(D.litHtmlVersions??=[]).push("3.1.0");
67
+ */const F=globalThis,P=F.trustedTypes,M=P?P.createPolicy("lit-html",{createHTML:t=>t}):void 0,j="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,B="?"+z,K=`<${B}>`,Z=document,H=()=>Z.createComment(""),G=t=>null===t||"object"!=typeof t&&"function"!=typeof t,V=Array.isArray,q=t=>V(t)||"function"==typeof t?.[Symbol.iterator],Y="[ \t\n\f\r]",X=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,J=/-->/g,Q=/>/g,tt=RegExp(`>|${Y}(?:([^\\s"'>=/]+)(${Y}*=${Y}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),et=/'/g,it=/"/g,ot=/^(?:script|style|textarea|title)$/i,rt=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),nt=Symbol.for("lit-noChange"),at=Symbol.for("lit-nothing"),st=new WeakMap,lt=Z.createTreeWalker(Z,129);function ct(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==M?M.createHTML(e):e}const ft=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",a=X;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===X?"!--"===l[1]?a=J:void 0!==l[1]?a=Q:void 0!==l[2]?(ot.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=tt):void 0!==l[3]&&(a=tt):a===tt?">"===l[0]?(a=r??X,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?tt:'"'===l[3]?it:et):a===it||a===et?a=tt:a===J||a===Q?a=X:(a=tt,r=void 0);const h=a===tt&&t[e+1].startsWith("/>")?" ":"";n+=a===X?i+K:c>=0?(o.push(s),i.slice(0,c)+j+i.slice(c)+z+h):i+z+(-2===c?e:h)}return[ct(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,f]=ft(e,i);if(this.el=t.createElement(c,o),lt.currentNode=this.el.content,2===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=lt.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(j)){const e=f[a++],i=r.getAttribute(t).split(z),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:o[2],strings:i,ctor:"."===o[1]?gt:"?"===o[1]?bt:"@"===o[1]?vt:yt}),r.removeAttribute(t)}else t.startsWith(z)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(ot.test(r.tagName)){const t=r.textContent.split(z),e=t.length-1;if(e>0){r.textContent=P?P.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],H()),lt.nextNode(),l.push({type:2,index:++n});r.append(t[e],H())}}}else if(8===r.nodeType)if(r.data===B)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=Z.createElement("template");return i.innerHTML=t,i}};function dt(t,e,i=t,o){if(e===nt)return e;let r=void 0!==o?i._$Co?.[o]:i._$Cl;const n=G(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=dt(t,r._$AS(t,e.values),r,o)),e}let ut=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??Z).importNode(e,!0);lt.currentNode=o;let r=lt.nextNode(),n=0,a=0,s=i[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new pt(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new mt(r,this,t)),this._$AV.push(e),s=i[++a]}n!==s?.index&&(r=lt.nextNode(),n++)}return lt.currentNode=Z,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++}},pt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=at,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=dt(this,t,e),G(t)?t===at||null==t||""===t?(this._$AH!==at&&this._$AR(),this._$AH=at):t!==this._$AH&&t!==nt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):q(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!==at&&G(this._$AH)?this._$AA.nextSibling.data=t:this.$(Z.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(ct(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new ut(o,this),i=t.u(this.options);t.p(e),this.$(i),this._$AH=t}}_$AC(t){let e=st.get(t.strings);return void 0===e&&st.set(t.strings,e=new ht(t)),e}T(e){V(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(H()),this.k(H()),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))}},yt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=at,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=at}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=dt(this,t,e,0),n=!G(t)||t!==this._$AH&&t!==nt,n&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=dt(this,o[i+a],e,a),s===nt&&(s=this._$AH[a]),n||=!G(s)||s!==this._$AH[a],s===at?t=at:t!==at&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.O(t)}O(t){t===at?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},gt=class extends yt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===at?void 0:t}},bt=class extends yt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==at)}},vt=class extends yt{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=dt(this,t,e,0)??at)===nt)return;const i=this._$AH,o=t===at&&i!==at||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==at&&(i===at||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)}},mt=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){dt(this,t)}};const xt={j,P:z,A:B,C:1,M:ft,L:ut,R:q,V:dt,D:pt,I:yt,H:bt,N:vt,U:gt,B:mt},wt=F.litHtmlPolyfillSupport;wt?.(ht,pt),(F.litHtmlVersions??=[]).push("3.1.0");
63
68
  /**
64
69
  * @license
65
70
  * Copyright 2019 Google LLC
66
71
  * SPDX-License-Identifier: BSD-3-Clause
67
72
  */
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
73
+ const Ot=globalThis,St=Ot.ShadowRoot&&(void 0===Ot.ShadyCSS||Ot.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$t=Symbol(),Nt=new WeakMap;let Ct=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==$t)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(St&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=Nt.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Nt.set(e,t))}return t}toString(){return this.cssText}};const Et=t=>new Ct("string"==typeof t?t:t+"",void 0,$t),kt=(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 Ct(i,t,$t)},Rt=St?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Et(e)})(t):t
69
74
  /**
70
75
  * @license
71
76
  * Copyright 2017 Google LLC
72
77
  * 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");
78
+ */,{is:It,defineProperty:Ut,getOwnPropertyDescriptor:Lt,getOwnPropertyNames:At,getOwnPropertySymbols:_t,getPrototypeOf:Tt}=Object,Wt=globalThis,Dt=Wt.trustedTypes,Ft=Dt?Dt.emptyScript:"",Pt=Wt.reactiveElementPolyfillSupport,Mt=(t,e)=>t,jt={toAttribute(t,e){switch(e){case Boolean:t=t?Ft: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)=>!It(t,e),Bt={attribute:!0,type:String,converter:jt,reflect:!1,hasChanged:zt};Symbol.metadata??=Symbol("metadata"),Wt.litPropertyMetadata??=new WeakMap;let Kt=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=Bt){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&&Ut(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=Lt(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)??Bt}static _$Ei(){if(this.hasOwnProperty(Mt("elementProperties")))return;const t=Tt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Mt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Mt("properties"))){const t=this.properties,e=[...At(t),..._t(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(Rt(t))}else void 0!==t&&e.push(Rt(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(St)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),o=Ot.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:jt).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:jt;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){}};Kt.elementStyles=[],Kt.shadowRootOptions={mode:"open"},Kt[Mt("elementProperties")]=new Map,Kt[Mt("finalized")]=new Map,Pt?.({ReactiveElement:Kt}),(Wt.reactiveElementVersions??=[]).push("2.0.2");
74
79
  /**
75
80
  * @license
76
81
  * Copyright 2017 Google LLC
77
82
  * SPDX-License-Identifier: BSD-3-Clause
78
83
  */
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),fe=Symbol.for("lit-noChange"),he=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,f=0;for(;f<i.length&&(a.lastIndex=f,l=a.exec(i),null!==l);)f=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 h=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+h):i+Vt+(-2===c?e:h)}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===fe)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=he,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===he||null==t||""===t?(this._$AH!==he&&this._$AR(),this._$AH=he):t!==this._$AH&&t!==fe&&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!==he&&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=he,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=he}_$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!==fe,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===fe&&(s=this._$AH[a]),n||=!Qt(s)||s!==this._$AH[a],s===he?t=he:t!==he&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.O(t)}O(t){t===he?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===he?void 0:t}},xe=class extends ve{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==he)}},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)??he)===fe)return;const i=this._$AH,o=t===he&&i!==he||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==he&&(i===he||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");
84
+ const Zt=globalThis,Ht=Zt.trustedTypes,Gt=Ht?Ht.createPolicy("lit-html",{createHTML:t=>t}):void 0,Vt="$lit$",qt=`lit$${(Math.random()+"").slice(9)}$`,Yt="?"+qt,Xt=`<${Yt}>`,Jt=document,Qt=()=>Jt.createComment(""),te=t=>null===t||"object"!=typeof t&&"function"!=typeof t,ee=Array.isArray,ie="[ \t\n\f\r]",oe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,re=/-->/g,ne=/>/g,ae=RegExp(`>|${ie}(?:([^\\s"'>=/]+)(${ie}*=${ie}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),se=/'/g,le=/"/g,ce=/^(?:script|style|textarea|title)$/i,fe=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),he=Symbol.for("lit-noChange"),de=Symbol.for("lit-nothing"),ue=new WeakMap,pe=Jt.createTreeWalker(Jt,129);function ye(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Gt?Gt.createHTML(e):e}class ge{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=oe;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===oe?"!--"===l[1]?a=re:void 0!==l[1]?a=ne:void 0!==l[2]?(ce.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=ae):void 0!==l[3]&&(a=ae):a===ae?">"===l[0]?(a=r??oe,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?ae:'"'===l[3]?le:se):a===le||a===se?a=ae:a===re||a===ne?a=oe:(a=ae,r=void 0);const h=a===ae&&t[e+1].startsWith("/>")?" ":"";n+=a===oe?i+Xt:c>=0?(o.push(s),i.slice(0,c)+Vt+i.slice(c)+qt+h):i+qt+(-2===c?e:h)}return[ye(t,n+(t[i]||"<?>")+(2===e?"</svg>":"")),o]})(t,e);if(this.el=ge.createElement(l,i),pe.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=pe.nextNode())&&s.length<a;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(Vt)){const e=c[n++],i=o.getAttribute(t).split(qt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:i,ctor:"."===a[1]?xe:"?"===a[1]?we:"@"===a[1]?Oe:me}),o.removeAttribute(t)}else t.startsWith(qt)&&(s.push({type:6,index:r}),o.removeAttribute(t));if(ce.test(o.tagName)){const t=o.textContent.split(qt),e=t.length-1;if(e>0){o.textContent=Ht?Ht.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],Qt()),pe.nextNode(),s.push({type:2,index:++r});o.append(t[e],Qt())}}}else if(8===o.nodeType)if(o.data===Yt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(qt,t+1));)s.push({type:7,index:r}),t+=qt.length-1}r++}}static createElement(t,e){const i=Jt.createElement("template");return i.innerHTML=t,i}}function be(t,e,i=t,o){if(e===he)return e;let r=void 0!==o?i._$Co?.[o]:i._$Cl;const n=te(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=be(t,r._$AS(t,e.values),r,o)),e}let ve=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=de,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=be(this,t,e),te(t)?t===de||null==t||""===t?(this._$AH!==de&&this._$AR(),this._$AH=de):t!==this._$AH&&t!==he&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>ee(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!==de&&te(this._$AH)?this._$AA.nextSibling.data=t:this.$(Jt.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=ge.createElement(ye(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??Jt).importNode(e,!0);pe.currentNode=o;let r=pe.nextNode(),n=0,a=0,s=i[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new ve(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new Se(r,this,t)),this._$AV.push(e),s=i[++a]}n!==s?.index&&(r=pe.nextNode(),n++)}return pe.currentNode=Jt,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=ue.get(t.strings);return void 0===e&&ue.set(t.strings,e=new ge(t)),e}T(e){ee(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(Qt()),this.k(Qt()),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))}},me=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=de,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=de}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=be(this,t,e,0),n=!te(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=be(this,o[i+a],e,a),s===he&&(s=this._$AH[a]),n||=!te(s)||s!==this._$AH[a],s===de?t=de:t!==de&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.O(t)}O(t){t===de?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},xe=class extends me{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===de?void 0:t}},we=class extends me{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==de)}},Oe=class extends me{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=be(this,t,e,0)??de)===he)return;const i=this._$AH,o=t===de&&i!==de||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==de&&(i===de||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)}},Se=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){be(this,t)}};const $e=Zt.litHtmlPolyfillSupport;$e?.(ge,ve),(Zt.litHtmlVersions??=[]).push("3.1.0");
80
85
  /**
81
86
  * @license
82
87
  * Copyright 2017 Google LLC
83
88
  * SPDX-License-Identifier: BSD-3-Clause
84
89
  */
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 fe}};$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})}}
90
+ let Ne=class extends Kt{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 ve(e.insertBefore(Qt(),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}};Ne._$litElement$=!0,Ne.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ne});const Ce=globalThis.litElementPolyfillSupport;Ce?.({LitElement:Ne}),(globalThis.litElementVersions??=[]).push("4.0.2");const Ee=t=>"string"==typeof t?Et(t):t;class ke{static create(t,e,i,o){const r=t=>Ee(null!=t?t:o),n=kt`var(${Ee(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>kt`var(${Ee(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=kt`var(${Ee(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=>kt`var(${Ee(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):Ee(null!=e?e:t.lastResortDefaultValue()),o=kt`var(${Ee(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=>kt`var(${Ee(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>t.lastResortDefaultValue(),o}}function Re(t,e){return Ee(`${t.name}: ${e}`)}const Ie={colorWhite:ke.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:ke.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:ke.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:ke.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:ke.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:ke.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:ke.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:ke.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:ke.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:ke.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:ke.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:ke.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:ke.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:ke.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:ke.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:ke.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:ke.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:ke.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:ke.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:ke.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:ke.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:ke.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:ke.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:ke.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:ke.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:ke.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:ke.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:ke.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:ke.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:ke.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:ke.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:ke.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:ke.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:ke.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:ke.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:ke.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:ke.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:ke.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:ke.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:ke.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:ke.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:ke.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:ke.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:ke.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:ke.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:ke.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:ke.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:ke.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:ke.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:ke.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:ke.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:ke.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:ke.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:ke.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:ke.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:ke.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:ke.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:ke.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:ke.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:ke.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:ke.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:ke.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:ke.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:ke.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:ke.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:ke.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:ke.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:ke.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:ke.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:ke.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:ke.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:ke.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:ke.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:ke.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:ke.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:ke.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:ke.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:ke.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:ke.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:ke.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:ke.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:ke.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:ke.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:ke.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:ke.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:ke.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:ke.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:ke.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:ke.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:ke.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:ke.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:ke.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:ke.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:ke.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:ke.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:ke.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:ke.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:ke.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:ke.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:ke.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:ke.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:ke.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:ke.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:ke.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:ke.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:ke.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:ke.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:ke.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:ke.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:ke.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:ke.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:ke.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:ke.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:ke.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:ke.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:ke.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:ke.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:ke.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:ke.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:ke.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:ke.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:ke.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:ke.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:ke.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:ke.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:ke.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:ke.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:ke.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:ke.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:ke.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:ke.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:ke.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:ke.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:ke.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:ke.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:ke.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:ke.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:ke.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:ke.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:ke.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:ke.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:ke.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:ke.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:ke.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:ke.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:ke.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:ke.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:ke.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:ke.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:ke.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:ke.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:ke.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:ke.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:ke.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:ke.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:ke.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:ke.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:ke.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:ke.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:ke.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:ke.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:ke.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:ke.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:ke.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:ke.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:ke.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:ke.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:ke.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:ke.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:ke.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:ke.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:ke.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:ke.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:ke.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:ke.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:ke.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:ke.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:ke.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:ke.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:ke.create("--ft-icon-size-6","","SIZE","48px"),opacity0:ke.create("--ft-opacity-0","","NUMBER","0"),opacity8:ke.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:ke.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:ke.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:ke.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:ke.create("--ft-opacity-80","","NUMBER","0.8")},Ue={display:{fontFamily:ke.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:ke.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:ke.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:ke.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:ke.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:ke.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:ke.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:ke.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:ke.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:ke.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:ke.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:ke.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:ke.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:ke.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:ke.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:ke.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:ke.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:ke.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:ke.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:ke.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:ke.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:ke.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:ke.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:ke.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:ke.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:ke.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:ke.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:ke.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:ke.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:ke.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:ke.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:ke.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:ke.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:ke.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:ke.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:ke.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:ke.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:ke.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:ke.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:ke.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:ke.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:ke.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:ke.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:ke.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:ke.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:ke.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:ke.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:ke.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:ke.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:ke.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:ke.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:ke.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:ke.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:ke.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:ke.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:ke.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:ke.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:ke.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:ke.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:ke.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:ke.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:ke.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:ke.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:ke.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:ke.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:ke.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:ke.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:ke.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:ke.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:ke.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:ke.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:ke.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:ke.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:ke.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:ke.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:ke.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:ke.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:ke.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:ke.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:ke.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:ke.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:ke.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:ke.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:ke.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:ke.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:ke.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:ke.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:ke.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:ke.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:ke.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:ke.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:ke.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:ke.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:ke.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:ke.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:ke.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:ke.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:ke.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:ke.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:ke.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:ke.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:ke.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:ke.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:ke.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:ke.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:ke.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:ke.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:ke.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:ke.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:ke.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:ke.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:ke.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:ke.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:ke.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:ke.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:ke.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:ke.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:ke.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:ke.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:ke.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:ke.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:ke.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:ke.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:ke.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:ke.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:ke.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:ke.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:ke.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:ke.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:ke.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:ke.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:ke.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:ke.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:ke.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:ke.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},Le={backgroundActionPrimary:ke.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Ie.colorBrand0),backgroundErrorPrimary:ke.extend("--ft-background-error-primary","Used as background of error components.",Ie.colorRed0),backgroundErrorSubtle:ke.extend("--ft-background-error-subtle","Used as background of subtle error components.",Ie.colorRed10),backgroundInfoPrimary:ke.extend("--ft-background-info-primary","Used as background of information components.",Ie.colorCyan200),backgroundInfoSubtle:ke.extend("--ft-background-info-subtle","Used as background of subtle information components.",Ie.colorCyan10),backgroundWarningPrimary:ke.extend("--ft-background-warning-primary","Used as background of warning components.",Ie.colorOrange300),backgroundWarningSubtle:ke.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Ie.colorOrange10),backgroundSuccessPrimary:ke.extend("--ft-background-success-primary","Used as background of success components.",Ie.colorGreen200),backgroundSuccessSubtle:ke.extend("--ft-background-success-subtle","Used as background of subtle success components.",Ie.colorGreen10),backgroundGlobalSurface:ke.extend("--ft-background-global-surface","Used as app background.",Ie.colorWhite),backgroundGlobalOnSurface:ke.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Ie.colorGray10),backgroundGlobalOnSurfaceDark:ke.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Ie.colorGray30),contentActionPrimary:ke.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Ie.colorBrand0),contentWarningPrimary:ke.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Ie.colorOrange300),contentWarningIconOnly:ke.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Ie.colorOrange0),contentErrorPrimary:ke.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Ie.colorRed0),contentErrorIconOnly:ke.extend("--ft-content-error-icon-only","Used on error status icons alone",Ie.colorRed0),contentInfoPrimary:ke.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Ie.colorCyan200),contentInfoIconOnly:ke.extend("--ft-content-info-icon-only","Used on info status icons alone",Ie.colorCyan0),contentSuccessIconOnly:ke.extend("--ft-content-success-icon-only","Used on success status icons alone",Ie.colorGreen0),contentSuccessPrimary:ke.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Ie.colorGreen200),contentGlobalPrimary:ke.extend("--ft-content-global-primary","Used for main content on the page.",Ie.colorGray500),contentGlobalSecondary:ke.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Ie.colorGray200),contentGlobalSubtle:ke.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Ie.colorGray0),contentGlobalOnColor:ke.extend("--ft-content-global-on-color","Used for content on a dominant color.",Ie.colorWhite),borderActionPrimary:ke.extend("--ft-border-action-primary","Used as border for primary action components.",Ie.colorBrand0),borderActionFocusRing:ke.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Ie.colorCyan0),borderWarningPrimary:ke.extend("--ft-border-warning-primary","Used as border for warning components.",Ie.colorOrange30),borderSuccessPrimary:ke.extend("--ft-border-success-primary","Used as border for success components.",Ie.colorGreen30),borderErrorPrimary:ke.extend("--ft-border-error-primary","Used as border for error components.",Ie.colorRed30),borderInfoPrimary:ke.extend("--ft-border-info-primary","Used as border for information components.",Ie.colorCyan30),borderGlobalSubtle:ke.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Ie.colorGray30),borderGlobalPrimary:ke.extend("--ft-border-global-primary","Used as border for element like input.",Ie.colorGray50),borderInputPrimary:ke.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Ie.colorGray80)},Ae={largeHeight:ke.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:ke.extend("--ft-button-large-horizontal-padding","",Ie.spacing4),largeGap:ke.extend("--ft-button-large-gap","",Ie.spacing2),largeBorderRadius:ke.extend("--ft-button-large-border-radius","",Ie.borderRadiusS),largeIconSize:ke.extend("--ft-button-large-icon-size","",Ie.iconSize3),largeBorderWidth:ke.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:ke.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:ke.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:ke.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:ke.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:ke.extend("--ft-button-small-horizontal-padding","",Ie.spacing3),smallGap:ke.extend("--ft-button-small-gap","",Ie.spacing2),smallBorderRadius:ke.extend("--ft-button-small-border-radius","",Ie.borderRadiusS),smallIconSize:ke.extend("--ft-button-small-icon-size","",Ie.iconSize2),smallBorderWidth:ke.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:ke.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:ke.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:ke.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:ke.extend("--ft-button-primary-background-color","",Le.backgroundActionPrimary),primaryColor:ke.extend("--ft-button-primary-color","",Le.contentGlobalOnColor),primaryIconColor:ke.extend("--ft-button-primary-icon-color","",Le.contentGlobalOnColor),primaryStateLayerColor:ke.extend("--ft-button-primary-state-layer-color","",Le.contentGlobalOnColor),primaryStateLayerOpacityHover:ke.extend("--ft-button-primary-state-layer-opacity-hover","",Ie.opacity16),primaryStateLayerOpacityFocus:ke.extend("--ft-button-primary-state-layer-opacity-focus","",Ie.opacity16),primaryStateLayerOpacityActive:ke.extend("--ft-button-primary-state-layer-opacity-active","",Ie.opacity24),primaryComponentOpacityDisabled:ke.extend("--ft-button-primary-component-opacity-disabled","",Ie.opacity40),focusFocusRingColor:ke.extend("--ft-button-focus-focus-ring-color","",Le.borderActionFocusRing),tertiaryBackgroundColor:ke.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:ke.extend("--ft-button-tertiary-color","",Le.contentActionPrimary),tertiaryIconColor:ke.extend("--ft-button-tertiary-icon-color","",Le.contentActionPrimary),tertiaryStateLayerColor:ke.extend("--ft-button-tertiary-state-layer-color","",Le.contentActionPrimary),tertiaryStateLayerOpacityHover:ke.extend("--ft-button-tertiary-state-layer-opacity-hover","",Ie.opacity8),tertiaryStateLayerOpacityFocus:ke.extend("--ft-button-tertiary-state-layer-opacity-focus","",Ie.opacity8),tertiaryStateLayerOpacityActive:ke.extend("--ft-button-tertiary-state-layer-opacity-active","",Ie.opacity16),tertiaryComponentOpacityDisabled:ke.extend("--ft-button-tertiary-component-opacity-disabled","",Ie.opacity40),secondaryBackgroundColor:ke.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:ke.extend("--ft-button-secondary-color","",Le.contentActionPrimary),secondaryIconColor:ke.extend("--ft-button-secondary-icon-color","",Le.contentActionPrimary),secondaryStateLayerColor:ke.extend("--ft-button-secondary-state-layer-color","",Le.contentActionPrimary),secondaryStateLayerOpacityHover:ke.extend("--ft-button-secondary-state-layer-opacity-hover","",Ie.opacity8),secondaryStateLayerOpacityFocus:ke.extend("--ft-button-secondary-state-layer-opacity-focus","",Ie.opacity8),secondaryStateLayerOpacityActive:ke.extend("--ft-button-secondary-state-layer-opacity-active","",Ie.opacity16),secondaryComponentOpacityDisabled:ke.extend("--ft-button-secondary-component-opacity-disabled","",Ie.opacity40),secondaryBorderColor:ke.extend("--ft-button-secondary-border-color","",Le.borderActionPrimary),neutralBackgroundColor:ke.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:ke.extend("--ft-button-neutral-icon-color","",Le.contentGlobalSecondary),neutralColor:ke.extend("--ft-button-neutral-color","",Le.contentGlobalSecondary),neutralStateLayerColor:ke.extend("--ft-button-neutral-state-layer-color","",Le.contentGlobalSecondary),neutralStateLayerOpacityHover:ke.extend("--ft-button-neutral-state-layer-opacity-hover","",Ie.opacity8),neutralStateLayerOpacityFocus:ke.extend("--ft-button-neutral-state-layer-opacity-focus","",Ie.opacity8),neutralStateLayerOpacityActive:ke.extend("--ft-button-neutral-state-layer-opacity-active","",Ie.opacity16),neutralComponentOpacityDisabled:ke.extend("--ft-button-neutral-component-opacity-disabled","",Ie.opacity40)};ke.extend("--ft-tabs-top-left-border-radius","",Ie.borderRadiusS),ke.extend("--ft-tabs-top-right-border-radius","",Ie.borderRadiusS),ke.extend("--ft-tabs-label-horizontal-padding","",Ie.spacing4),ke.extend("--ft-tabs-label-vertical-padding","",Ie.spacing3),ke.extend("--ft-tabs-label-gap","",Ie.spacing1),ke.extend("--ft-switch-group-horizontal-padding","",Ie.spacing1),ke.extend("--ft-switch-group-vertical-padding","",Ie.spacing1),ke.extend("--ft-switch-group-gap","",Ie.spacing1),ke.extend("--ft-switch-group-background-color","",Le.backgroundGlobalSurface),ke.extend("--ft-switch-group-border-color","",Le.borderGlobalSubtle),ke.create("--ft-switch-group-border-radius","","SIZE","6px"),ke.extend("--ft-switch-label-horizontal-padding","",Ie.spacing2),ke.extend("--ft-switch-label-vertical-padding","",Ie.spacing1),ke.extend("--ft-switch-icon-horizontal-padding","",Ie.spacing1),ke.extend("--ft-switch-icon-vertical-padding","",Ie.spacing1),ke.create("--ft-switch-focus-outline-width","","SIZE","2px"),ke.extend("--ft-switch-focus-focus-ring-color","",Le.borderActionFocusRing),ke.extend("--ft-switch-option-border-radius","",Ie.borderRadiusS),ke.extend("--ft-switch-off-state-layer-opacity-hover","",Ie.opacity8),ke.extend("--ft-switch-off-state-layer-opacity-focus","",Ie.opacity8),ke.extend("--ft-switch-off-state-layer-opacity-active","",Ie.opacity16),ke.extend("--ft-switch-off-component-opacity-disabled","",Ie.opacity40),ke.extend("--ft-switch-off-color","",Le.contentGlobalSubtle),ke.extend("--ft-switch-off-state-layer-color","",Le.contentGlobalSubtle),ke.extend("--ft-chart-1-light","for area color charts",Ie.colorBrand40),ke.extend("--ft-chart-1-base","for line charts",Ie.colorBrand0),ke.extend("--ft-chart-2-light","for area color charts",Ie.colorYellow60),ke.extend("--ft-chart-2-base","for line charts",Ie.colorYellow100),ke.extend("--ft-chart-3-light","",Ie.colorUltramarine40),ke.extend("--ft-chart-3-base","",Ie.colorUltramarine70),ke.extend("--ft-chart-4-light","",Ie.colorCyan50),ke.extend("--ft-chart-4-base","",Ie.colorCyan100),ke.extend("--ft-chart-5-light","",Ie.colorRed40),ke.extend("--ft-chart-5-base","",Ie.colorRed60),ke.extend("--ft-chart-6-light","",Ie.colorGreen40),ke.extend("--ft-chart-6-base","",Ie.colorGreen70),ke.extend("--ft-chart-7-light","",Ie.colorOrange70),ke.extend("--ft-chart-7-base","",Ie.colorOrange100),ke.extend("--ft-chart-8-light","",Ie.colorAvocado70),ke.extend("--ft-chart-8-base","",Ie.colorAvocado200),ke.extend("--ft-chart-9-light","",Ie.colorBrown50),ke.extend("--ft-chart-9-base","",Ie.colorBrown200),ke.extend("--ft-chart-10-light","",Ie.colorGray50),ke.extend("--ft-chart-10-base","",Ie.colorGray80),ke.extend("--ft-chart-monochrome-10","",Ie.colorBrand10),ke.extend("--ft-chart-monochrome-20","",Ie.colorBrand20),ke.extend("--ft-chart-monochrome-30","",Ie.colorBrand40),ke.extend("--ft-chart-monochrome-40","",Ie.colorBrand60),ke.extend("--ft-chart-monochrome-50","",Ie.colorBrand0),ke.extend("--ft-chart-monochrome-60","",Ie.colorBrand200),ke.extend("--ft-chip-large-horizontal-padding","",Ie.spacing4),ke.extend("--ft-chip-large-vertical-padding","",Ie.spacing2),ke.extend("--ft-chip-large-gap","",Ie.spacing1),ke.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),ke.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),ke.extend("--ft-chip-large-border-radius","",Ie.borderRadiusPill),ke.create("--ft-chip-large-border-width","","SIZE","1px"),ke.extend("--ft-chip-large-icon-size","",Ie.iconSize3),ke.extend("--ft-chip-medium-horizontal-padding","",Ie.spacing3),ke.extend("--ft-chip-medium-vertical-padding","",Ie.spacing1),ke.extend("--ft-chip-medium-gap","",Ie.spacing1),ke.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),ke.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),ke.extend("--ft-chip-medium-border-radius","",Ie.borderRadiusPill),ke.create("--ft-chip-medium-border-width","","SIZE","1px"),ke.extend("--ft-chip-medium-icon-size","",Ie.iconSize2),ke.extend("--ft-chip-small-horizontal-padding","",Ie.spacing2),ke.extend("--ft-chip-small-vertical-padding","",Ie.spacing05),ke.extend("--ft-chip-small-gap","",Ie.spacing1),ke.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),ke.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),ke.extend("--ft-chip-small-border-radius","",Ie.borderRadiusPill),ke.create("--ft-chip-small-border-width","","SIZE","1px"),ke.extend("--ft-chip-small-icon-size","",Ie.iconSize1),ke.extend("--ft-chip-neutral-background-color","",Le.backgroundGlobalOnSurface),ke.extend("--ft-chip-neutral-color","",Le.contentGlobalPrimary),ke.extend("--ft-chip-neutral-border-color","",Le.borderGlobalSubtle),ke.extend("--ft-chip-info-background-color","",Le.backgroundInfoSubtle),ke.extend("--ft-chip-info-color","",Le.contentInfoPrimary),ke.extend("--ft-chip-info-border-color","",Le.borderInfoPrimary),ke.extend("--ft-chip-success-background-color","",Le.backgroundSuccessSubtle),ke.extend("--ft-chip-success-color","",Le.contentSuccessPrimary),ke.extend("--ft-chip-success-border-color","",Le.borderSuccessPrimary),ke.extend("--ft-chip-warning-background-color","",Le.backgroundWarningSubtle),ke.extend("--ft-chip-warning-color","",Le.contentWarningPrimary),ke.extend("--ft-chip-warning-border-color","",Le.borderWarningPrimary),ke.extend("--ft-chip-error-background-color","",Le.backgroundErrorSubtle),ke.extend("--ft-chip-error-color","",Le.contentErrorPrimary),ke.extend("--ft-chip-error-border-color","",Le.borderErrorPrimary),ke.create("--ft-notice-border-width","","SIZE","1px"),ke.extend("--ft-notice-horizontal-padding","",Ie.spacing2),ke.extend("--ft-notice-vertical-padding","",Ie.spacing1),ke.extend("--ft-notice-border-radius","",Ie.borderRadiusS),ke.extend("--ft-notice-gap","",Ie.spacing2),ke.extend("--ft-notice-icon-size","",Ie.iconSize3),ke.extend("--ft-notice-info-background-color","",Le.backgroundInfoSubtle),ke.extend("--ft-notice-info-border-color","",Le.borderInfoPrimary),ke.extend("--ft-notice-info-color","",Le.contentInfoPrimary),ke.extend("--ft-notice-warning-background-color","",Le.backgroundWarningSubtle),ke.extend("--ft-notice-warning-border-color","",Le.borderWarningPrimary),ke.extend("--ft-notice-warning-color","",Le.contentWarningPrimary),ke.extend("--ft-checkbox-label-color","",Le.contentGlobalPrimary),ke.extend("--ft-checkbox-checked-background-color","",Le.contentActionPrimary),ke.extend("--ft-checkbox-checked-state-layer-color","",Le.contentActionPrimary),ke.extend("--ft-checkbox-checked-color","",Le.contentGlobalOnColor),ke.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Ie.opacity16),ke.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Ie.opacity16),ke.extend("--ft-checkbox-checked-state-layer-opacity-active","",Ie.opacity24),ke.extend("--ft-checkbox-checked-component-opacity-disabled","",Ie.opacity40),ke.extend("--ft-checkbox-unchecked-border-color","",Ie.colorGray80),ke.extend("--ft-checkbox-unchecked-state-layer-color","",Ie.colorGray80),ke.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Ie.opacity16),ke.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Ie.opacity16),ke.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Ie.opacity24),ke.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Ie.opacity40),ke.extend("--ft-checkbox-focus-focus-ring-color","",Le.borderActionFocusRing),ke.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),ke.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),ke.extend("--ft-checkbox-gap","",Ie.spacing3),ke.extend("--ft-toggle-off-state-layer-opacity-hover","",Ie.opacity16),ke.extend("--ft-toggle-off-state-layer-opacity-focus","",Ie.opacity16),ke.extend("--ft-toggle-off-state-layer-opacity-active","",Ie.opacity24),ke.extend("--ft-toggle-off-component-opacity-disabled","",Ie.opacity40),ke.extend("--ft-toggle-off-background-color","",Le.contentGlobalSubtle),ke.extend("--ft-toggle-off-icon-color","",Le.contentGlobalSubtle),ke.extend("--ft-toggle-off-state-layer-color","",Le.contentGlobalSubtle),ke.extend("--ft-toggle-on-state-layer-opacity-hover","",Ie.opacity16),ke.extend("--ft-toggle-on-state-layer-opacity-focus","",Ie.opacity16),ke.extend("--ft-toggle-on-state-layer-opacity-active","",Ie.opacity24),ke.extend("--ft-toggle-on-component-opacity-disabled","",Ie.opacity40),ke.extend("--ft-toggle-on-background-color","",Le.contentActionPrimary),ke.extend("--ft-toggle-on-icon-color","",Le.contentActionPrimary),ke.extend("--ft-toggle-on-state-layer-color","",Le.contentActionPrimary),ke.extend("--ft-toggle-label-color","",Le.contentGlobalPrimary),ke.extend("--ft-toggle-focus-focus-ring-color","",Le.borderActionFocusRing),ke.extend("--ft-toggle-gap","",Ie.spacing3),ke.extend("--ft-radio-label-color","",Le.contentGlobalPrimary),ke.extend("--ft-radio-selected-color","",Le.contentActionPrimary),ke.extend("--ft-radio-selected-state-layer-color","",Le.contentActionPrimary),ke.extend("--ft-radio-selected-state-layer-opacity-hover","",Ie.opacity16),ke.extend("--ft-radio-selected-state-layer-opacity-focus","",Ie.opacity16),ke.extend("--ft-radio-selected-state-layer-opacity-active","",Ie.opacity24),ke.extend("--ft-radio-selected-component-opacity-disabled","",Ie.opacity40),ke.extend("--ft-radio-unselected-state-layer-color","",Ie.colorGray80),ke.extend("--ft-radio-unselected-state-layer-opacity-hover","",Ie.opacity16),ke.extend("--ft-radio-unselected-state-layer-opacity-focus","",Ie.opacity16),ke.extend("--ft-radio-unselected-state-layer-opacity-active","",Ie.opacity24),ke.extend("--ft-radio-unselected-component-opacity-disabled","",Ie.opacity40),ke.extend("--ft-radio-focus-focus-ring-color","",Le.borderActionFocusRing),ke.create("--ft-radio-focus-outline-offset","","SIZE","3px"),ke.create("--ft-radio-focus-outline-width","","SIZE","2px"),ke.extend("--ft-radio-gap","",Ie.spacing3),ke.extend("--ft-notification-icon-size","",Ie.iconSize4),ke.extend("--ft-notification-horizontal-padding","",Ie.spacing4),ke.extend("--ft-notification-vertical-padding","",Ie.spacing4),ke.extend("--ft-notification-info-background-color","",Le.backgroundInfoSubtle),ke.extend("--ft-notification-info-color","",Le.contentInfoPrimary),ke.extend("--ft-notification-info-border-color","",Le.borderInfoPrimary),ke.extend("--ft-notification-success-background-color","",Le.backgroundSuccessSubtle),ke.extend("--ft-notification-success-color","",Le.contentSuccessPrimary),ke.extend("--ft-notification-success-border-color","",Le.borderSuccessPrimary),ke.extend("--ft-notification-warning-background-color","",Le.backgroundWarningSubtle),ke.extend("--ft-notification-warning-color","",Le.contentWarningPrimary),ke.extend("--ft-notification-warning-border-color","",Le.borderWarningPrimary),ke.extend("--ft-notification-error-background-color","",Le.backgroundErrorSubtle),ke.extend("--ft-notification-error-color","",Le.contentErrorPrimary),ke.extend("--ft-notification-error-border-color","",Le.borderErrorPrimary),ke.extend("--ft-notification-border-radius","",Ie.borderRadiusPill),ke.create("--ft-notification-border-width","","SIZE","1px"),ke.extend("--ft-notification-gap-leading","",Ie.spacing2),ke.extend("--ft-notification-gap-trailing","",Ie.spacing8);const _e={colorPrimary:ke.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:ke.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:ke.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:ke.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:ke.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:ke.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ke.create("--ft-color-error","","COLOR","#B00020"),colorOutline:ke.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ke.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:ke.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:ke.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:ke.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:ke.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:ke.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ke.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ke.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:ke.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:ke.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ke.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ke.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ke.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ke.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ke.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ke.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:ke.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:ke.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:ke.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:ke.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:ke.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:ke.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ke.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ke.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:ke.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ke.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ke.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ke.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ke.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ke.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ke.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:ke.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ke.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ke.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ke.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ke.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:ke.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:ke.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:ke.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:ke.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:ke.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:ke.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:ke.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:ke.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:ke.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:ke.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:ke.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:ke.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:ke.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:ke.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:ke.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ke.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ke.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:ke.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};class Te extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}
86
91
  /**
87
92
  * @license
88
93
  * Copyright 2019 Google LLC
89
94
  * 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 L(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 f=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Fe=je,Pe([E()],Be.prototype,"exportpartsPrefix",void 0),Pe([W([])],Be.prototype,"exportpartsPrefixes",void 0),Pe([E()],Be.prototype,"customStylesheet",void 0);const Ke=Ee.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Et`
95
+ */const We=window,De=We.ShadowRoot&&(void 0===We.ShadyCSS||We.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Fe extends Ne{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)=>{De?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=We.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))})(i,t.elementStyles),i}}var Pe,Me=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 je=Symbol("constructorPrototype"),ze=Symbol("constructorName"),Be=Symbol("exportpartsDebouncer");class Ke extends Fe{constructor(){super(),this[Pe]=new A(5),this[ze]=this.constructor.name,this[je]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ze]&&Object.setPrototypeOf(this,this[je])}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[Be].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(", "))}}Pe=Be,Me([E()],Ke.prototype,"exportpartsPrefix",void 0),Me([D([])],Ke.prototype,"exportpartsPrefixes",void 0),Me([E()],Ke.prototype,"customStylesheet",void 0);const Ze=ke.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");kt`
91
96
  .highlight-html-match {
92
- background: ${Ke};
97
+ background: ${Ze};
93
98
  }
94
- `;const Ze=Et`
99
+ `;const He=kt`
95
100
  .ft-no-text-select {
96
101
  -webkit-touch-callout: none;
97
102
  -webkit-user-select: none;
@@ -100,7 +105,7 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
100
105
  -ms-user-select: none;
101
106
  user-select: none;
102
107
  }
103
- `;Et`
108
+ `;kt`
104
109
  .ft-word-wrap {
105
110
  white-space: normal;
106
111
  word-wrap: break-word;
@@ -112,7 +117,7 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
112
117
  -webkit-hyphens: auto;
113
118
  hyphens: auto
114
119
  }
115
- `;const He=Et`
120
+ `;const Ge=kt`
116
121
  .ft-safari-ellipsis-fix {
117
122
  margin-right: 0;
118
123
 
@@ -123,7 +128,7 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
123
128
  display: inline-block;
124
129
  width: 0;
125
130
  }
126
- `;class Ge{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()}}}const Ve=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!_(t,e),attribute:!1,...e};E(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})}};class qe{constructor(){this.stack=[]}add(t,e=!1){e&&(this.stack=this.stack.filter((e=>e.type!==t.type))),this.stack.push(t)}consume(t){const e=this.stack.find((e=>e.type===t));return e&&(this.stack=this.stack.filter((t=>t!==e))),e}}function Ye(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Xe,Je,Qe;const ti=Symbol("internalReduxEventsUnsubscribers"),ei=Symbol("internalStoresUnsubscribers"),ii=Symbol("internalStores");class oi extends Be{constructor(){super(...arguments),this[Xe]=new Map,this[Je]=new Map,this[Qe]=[]}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[ii].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ii].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ii].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Ye(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[ii].delete(e)}setupStore(t,e){this[ii].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ii].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[ei].has(t.store):this[ei].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[ei].set(t,e.subscribe((()=>this.updateFromStores()))),Ye(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[ti].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ei].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[ti].forEach((t=>t())),this[ti]=[]}unsubscribeFromStore(t){this[ei].has(t)&&this[ei].get(t)(),this[ei].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function ri(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 ni(t){return!!t&&!!t[Zi]}function ai(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)===Hi}(t)||Array.isArray(t)||!!t[Ki]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Ki])||di(t)||ui(t))}function si(t,e,i){void 0===i&&(i=!1),0===li(t)?(i?Object.keys:Gi)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function li(t){var e=t[Zi];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:di(t)?2:ui(t)?3:0}function ci(t,e){return 2===li(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function fi(t,e,i){var o=li(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function hi(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function di(t){return Mi&&t instanceof Map}function ui(t){return zi&&t instanceof Set}function pi(t){return t.o||t.t}function yi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Vi(t);delete e[Zi];for(var i=Gi(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 gi(t,e){return void 0===e&&(e=!1),vi(t)||ni(t)||!ai(t)||(li(t)>1&&(t.set=t.add=t.clear=t.delete=bi),Object.freeze(t),e&&si(t,(function(t,e){return gi(e,!0)}),!0)),t}function bi(){ri(2)}function vi(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function mi(t){var e=qi[t];return e||ri(18,t),e}function xi(){return Fi}function wi(t,e){e&&(mi("Patches"),t.u=[],t.s=[],t.v=e)}function Oi(t){Si(t),t.p.forEach(Ni),t.p=null}function Si(t){t===Fi&&(Fi=t.l)}function $i(t){return Fi={p:[],l:Fi,h:t,m:!0,_:0}}function Ni(t){var e=t[Zi];0===e.i||1===e.i?e.j():e.g=!0}function Ci(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||mi("ES5").S(e,t,o),o?(i[Zi].P&&(Oi(e),ri(4)),ai(t)&&(t=Ei(e,t),e.l||Ri(e,t)),e.u&&mi("Patches").M(i[Zi].t,t,e.u,e.s)):t=Ei(e,i,[]),Oi(e),e.u&&e.v(e.u,e.s),t!==Bi?t:void 0}function Ei(t,e,i){if(vi(e))return e;var o=e[Zi];if(!o)return si(e,(function(r,n){return ki(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Ri(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=yi(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),si(n,(function(e,n){return ki(t,o,r,e,n,i,a)})),Ri(t,r,!1),i&&t.u&&mi("Patches").N(o,i,t.u,t.s)}return o.o}function ki(t,e,i,o,r,n,a){if(ni(r)){var s=Ei(t,r,n&&e&&3!==e.i&&!ci(e.R,o)?n.concat(o):void 0);if(fi(i,o,s),!ni(s))return;t.m=!1}else a&&i.add(r);if(ai(r)&&!vi(r)){if(!t.h.D&&t._<1)return;Ei(t,r),e&&e.A.l||Ri(t,r)}}function Ri(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&gi(e,i)}function Ii(t,e){var i=t[Zi];return(i?pi(i):t)[e]}function Ui(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 Li(t){t.P||(t.P=!0,t.l&&Li(t.l))}function Ai(t){t.o||(t.o=yi(t.t))}function _i(t,e,i){var o=di(e)?mi("MapSet").F(e,i):ui(e)?mi("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:xi(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=Yi;i&&(r=[o],n=Xi);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):mi("ES5").J(e,i);return(i?i.A:xi()).p.push(o),o}function Ti(t){return ni(t)||ri(22,t),function t(e){if(!ai(e))return e;var i,o=e[Zi],r=li(e);if(o){if(!o.P&&(o.i<4||!mi("ES5").K(o)))return o.t;o.I=!0,i=Wi(e,r),o.I=!1}else i=Wi(e,r);return si(i,(function(e,r){o&&function(t,e){return 2===li(t)?t.get(e):t[e]}(o.t,e)===r||fi(i,e,t(r))})),3===r?new Set(i):i}(t)}function Wi(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return yi(t)}Xe=ei,Je=ii,Qe=ti;var Di,Fi,Pi="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Mi="undefined"!=typeof Map,zi="undefined"!=typeof Set,ji="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Bi=Pi?Symbol.for("immer-nothing"):((Di={})["immer-nothing"]=!0,Di),Ki=Pi?Symbol.for("immer-draftable"):"__$immer_draftable",Zi=Pi?Symbol.for("immer-state"):"__$immer_state",Hi=""+Object.prototype.constructor,Gi="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Vi=Object.getOwnPropertyDescriptors||function(t){var e={};return Gi(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},qi={},Yi={get:function(t,e){if(e===Zi)return t;var i=pi(t);if(!ci(i,e))return function(t,e,i){var o,r=Ui(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||!ai(o)?o:o===Ii(t.t,e)?(Ai(t),t.o[e]=_i(t.A.h,o,t)):o},has:function(t,e){return e in pi(t)},ownKeys:function(t){return Reflect.ownKeys(pi(t))},set:function(t,e,i){var o=Ui(pi(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=Ii(pi(t),e),n=null==r?void 0:r[Zi];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(hi(i,r)&&(void 0!==i||ci(t.t,e)))return!0;Ai(t),Li(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!==Ii(t.t,e)||e in t.t?(t.R[e]=!1,Ai(t),Li(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=pi(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(){ri(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ri(12)}},Xi={};si(Yi,(function(t,e){Xi[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Xi.deleteProperty=function(t,e){return Xi.set.call(this,t,e,void 0)},Xi.set=function(t,e,i){return Yi.set.call(this,t[0],e,i,t[0])};var Ji=function(){function t(t){var e=this;this.O=ji,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&&ri(6),void 0!==o&&"function"!=typeof o&&ri(7),ai(t)){var s=$i(e),l=_i(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?Oi(s):Si(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return wi(s,o),Ci(t,s)}),(function(t){throw Oi(s),t})):(wi(s,o),Ci(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===Bi&&(a=void 0),e.D&&gi(a,!0),o){var f=[],h=[];mi("Patches").M(t,a,f,h),o(f,h)}return a}ri(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){ai(t)||ri(8),ni(t)&&(t=Ti(t));var e=$i(this),i=_i(this,t,void 0);return i[Zi].C=!0,Si(e),i},e.finishDraft=function(t,e){var i=(t&&t[Zi]).A;return wi(i,e),Ci(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!ji&&ri(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=mi("Patches").$;return ni(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),Qi=new Ji,to=Qi.produce;function eo(t){return eo="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},eo(t)}function io(t){var e=function(t,e){if("object"!==eo(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==eo(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===eo(e)?e:String(e)}function oo(t,e,i){return(e=io(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function ro(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 no(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?ro(Object(i),!0).forEach((function(e){oo(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ro(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function ao(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. "}Qi.produceWithPatches.bind(Qi),Qi.setAutoFreeze.bind(Qi),Qi.setUseProxies.bind(Qi),Qi.applyPatches.bind(Qi),Qi.createDraft.bind(Qi),Qi.finishDraft.bind(Qi);var so="function"==typeof Symbol&&Symbol.observable||"@@observable",lo=function(){return Math.random().toString(36).substring(7).split("").join(".")},co={INIT:"@@redux/INIT"+lo(),REPLACE:"@@redux/REPLACE"+lo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+lo()}};function fo(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(ao(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(ao(1));return i(fo)(t,e)}if("function"!=typeof t)throw new Error(ao(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(ao(3));return n}function h(t){if("function"!=typeof t)throw new Error(ao(4));if(l)throw new Error(ao(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(ao(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(ao(7));if(void 0===t.type)throw new Error(ao(8));if(l)throw new Error(ao(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:co.INIT}),(o={dispatch:d,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(ao(10));r=t,d({type:co.REPLACE})}})[so]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(ao(11));function i(){t.next&&t.next(f())}return i(),{unsubscribe:e(i)}}})[so]=function(){return this},t},o}function ho(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:co.INIT}))throw new Error(ao(12));if(void 0===i(void 0,{type:co.PROBE_UNKNOWN_ACTION()}))throw new Error(ao(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],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(ao(14));r[l]=h,o=o||h!==f}return(o=o||a.length!==Object.keys(t).length)?r:t}}function uo(){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 po(){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(ao(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=uo.apply(void 0,n)(i.dispatch),no(no({},i),{},{dispatch:o})}}}function yo(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 go=yo();go.withExtraArgument=yo;var bo,vo=go,mo=(bo=function(t,e){return bo=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])},bo(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}bo(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),xo=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])}}},wo=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},Oo=Object.defineProperty,So=Object.defineProperties,$o=Object.getOwnPropertyDescriptors,No=Object.getOwnPropertySymbols,Co=Object.prototype.hasOwnProperty,Eo=Object.prototype.propertyIsEnumerable,ko=function(t,e,i){return e in t?Oo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Ro=function(t,e){for(var i in e||(e={}))Co.call(e,i)&&ko(t,i,e[i]);if(No)for(var o=0,r=No(e);o<r.length;o++){i=r[o];Eo.call(e,i)&&ko(t,i,e[i])}return t},Io=function(t,e){return So(t,$o(e))},Uo="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?uo:uo.apply(null,arguments)};var Lo=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 mo(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,wo([void 0],t[0].concat(this)))):new(e.bind.apply(e,wo([void 0],t.concat(this))))},e}(Array),Ao=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 mo(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,wo([void 0],t[0].concat(this)))):new(e.bind.apply(e,wo([void 0],t.concat(this))))},e}(Array);function _o(t){return ai(t)?to(t,(function(){})):t}function To(){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 Lo;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(vo.withExtraArgument(i.extraArgument)):o.push(vo));return o}(t)}}function Wo(t){var e,i=To(),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,h=void 0===f?void 0:f,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=ho(n)}var p=s;"function"==typeof p&&(p=p(i));var y=po.apply(void 0,p),g=uo;c&&(g=Uo(Ro({trace:!1},"object"==typeof c&&c)));var b=new Ao(y),v=b;return Array.isArray(u)?v=wo([y],u):"function"==typeof u&&(v=u(b)),fo(e,h,g.apply(void 0,v))}function Do(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 Ro(Ro({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 Fo(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 Po(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:_o(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Fo(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=Ro(Ro({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?Fo(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return _o(t())};else{var c=_o(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var i=wo([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(ni(t))return void 0===(o=i(t,e))?t:o;if(ai(t))return to(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?Do(c,o):Do(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 Mo=["name","message","stack","code"],zo=function(t,e){this.payload=t,this.meta=e},jo=function(t,e){this.payload=t,this.meta=e},Bo=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=Mo;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Ko(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=Do(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:Io(Ro({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=Do(t+"/pending",(function(t,e,i){return{payload:void 0,meta:Io(Ro({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Do(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Bo)(t||"Rejected"),meta:Io(Ro({},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,h=(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){f=t,d.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,g,b,v;return xo(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:f||"Aborted"})}))})),s(r(h,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:d.signal,abort:u,rejectWithValue:function(t,e){return new zo(t,e)},fulfillWithValue:function(t,e){return new jo(t,e)}})).then((function(e){if(e instanceof zo)throw e;return e instanceof jo?o(e.payload,h,t,e.meta):o(e,h,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof zo?n(null,h,t,v.payload,v.meta):n(v,h,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:h,arg:t,unwrap:function(){return p.then(Ko)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Zo="listenerMiddleware";Do(Zo+"/add"),Do(Zo+"/removeAll"),Do(Zo+"/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[Zi];return Yi.get(e,t)},set:function(e){var i=this[Zi];Yi.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Zi];if(!r.P)switch(r.i){case 5:o(r)&&Li(r);break;case 4:i(r)&&Li(r)}}}function i(t){for(var e=t.t,i=t.k,o=Gi(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==Zi){var a=e[n];if(void 0===a&&!ci(e,n))return!0;var s=i[n],l=s&&s[Zi];if(l?l.t!==a:!hi(s,a))return!0}}var c=!!e[Zi];return o.length!==Gi(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){qi[t]||(qi[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=Vi(i);delete n[Zi];for(var a=Gi(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:xi(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Zi,{value:n,writable:!0}),r},S:function(t,i,r){r?ni(i)&&i[Zi].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Zi];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)si(n,(function(e){e!==Zi&&(void 0!==r[e]||ci(r,e)?a[e]||t(n[e]):(a[e]=!0,Li(i)))})),si(r,(function(t){void 0!==n[t]||ci(n,t)||(a[t]=!1,Li(i))}));else if(5===s){if(o(i)&&(Li(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),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Ho{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(Ye(r))return r;if(null==o)return;const n=Po({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=Wo({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 Ho(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new qe,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 Go=Symbol("elementInternals");function Vo(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Go].form}constructor(...t){super(t),this[Go]=this.attachInternals(),this[Go].role=e}setFormValue(t){this[Go].setFormValue(t)}}}var qo,Yo,Xo;const Jo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Xo=null===(Yo=null===(qo=window.safari)||void 0===qo?void 0:qo.pushNotification)||void 0===Yo?void 0:Yo.toString())&&void 0!==Xo?Xo:"");var Qo;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(Qo||(Qo={}));var tr=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 er extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const ir=Symbol("registerInterval");class or 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[ir]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[ir]):this.dispatchEvent(new er)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ir,tr([k()],i.prototype,"stateManager",void 0),i}(oi)){}const rr=Ee.extend("--ft-ripple-color","",Ae.colorContent),nr={color:rr,backgroundColor:Ee.extend("--ft-ripple-background-color","",rr),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")},ar=Ee.extend("--ft-ripple-color","",Ae.colorPrimary),sr=ar,lr=Ee.extend("--ft-ripple-background-color","",ar),cr=Ee.extend("--ft-ripple-color","",Ae.colorSecondary),fr=cr,hr=Ee.extend("--ft-ripple-background-color","",cr),dr=Et`
131
+ `;class Ve{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()}}}const qe=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!T(t,e),attribute:!1,...e};E(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})}};class Ye{constructor(){this.stack=[]}add(t,e=!1){e&&(this.stack=this.stack.filter((e=>e.type!==t.type))),this.stack.push(t)}consume(t){const e=this.stack.find((e=>e.type===t));return e&&(this.stack=this.stack.filter((t=>t!==e))),e}}function Xe(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Je,Qe,ti;const ei=Symbol("internalReduxEventsUnsubscribers"),ii=Symbol("internalStoresUnsubscribers"),oi=Symbol("internalStores");class ri extends Ke{constructor(){super(...arguments),this[Je]=new Map,this[Qe]=new Map,this[ti]=[]}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[oi].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[oi].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[oi].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:Xe(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[oi].delete(e)}setupStore(t,e){this[oi].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[oi].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[ii].has(t.store):this[ii].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[ii].set(t,e.subscribe((()=>this.updateFromStores()))),Xe(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[ei].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ii].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[ei].forEach((t=>t())),this[ei]=[]}unsubscribeFromStore(t){this[ii].has(t)&&this[ii].get(t)(),this[ii].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function ni(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 ai(t){return!!t&&!!t[Hi]}function si(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)===Gi}(t)||Array.isArray(t)||!!t[Zi]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Zi])||ui(t)||pi(t))}function li(t,e,i){void 0===i&&(i=!1),0===ci(t)?(i?Object.keys:Vi)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function ci(t){var e=t[Hi];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ui(t)?2:pi(t)?3:0}function fi(t,e){return 2===ci(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function hi(t,e,i){var o=ci(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function di(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function ui(t){return ji&&t instanceof Map}function pi(t){return zi&&t instanceof Set}function yi(t){return t.o||t.t}function gi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=qi(t);delete e[Hi];for(var i=Vi(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 bi(t,e){return void 0===e&&(e=!1),mi(t)||ai(t)||!si(t)||(ci(t)>1&&(t.set=t.add=t.clear=t.delete=vi),Object.freeze(t),e&&li(t,(function(t,e){return bi(e,!0)}),!0)),t}function vi(){ni(2)}function mi(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function xi(t){var e=Yi[t];return e||ni(18,t),e}function wi(){return Pi}function Oi(t,e){e&&(xi("Patches"),t.u=[],t.s=[],t.v=e)}function Si(t){$i(t),t.p.forEach(Ci),t.p=null}function $i(t){t===Pi&&(Pi=t.l)}function Ni(t){return Pi={p:[],l:Pi,h:t,m:!0,_:0}}function Ci(t){var e=t[Hi];0===e.i||1===e.i?e.j():e.g=!0}function Ei(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||xi("ES5").S(e,t,o),o?(i[Hi].P&&(Si(e),ni(4)),si(t)&&(t=ki(e,t),e.l||Ii(e,t)),e.u&&xi("Patches").M(i[Hi].t,t,e.u,e.s)):t=ki(e,i,[]),Si(e),e.u&&e.v(e.u,e.s),t!==Ki?t:void 0}function ki(t,e,i){if(mi(e))return e;var o=e[Hi];if(!o)return li(e,(function(r,n){return Ri(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return Ii(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=gi(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),li(n,(function(e,n){return Ri(t,o,r,e,n,i,a)})),Ii(t,r,!1),i&&t.u&&xi("Patches").N(o,i,t.u,t.s)}return o.o}function Ri(t,e,i,o,r,n,a){if(ai(r)){var s=ki(t,r,n&&e&&3!==e.i&&!fi(e.R,o)?n.concat(o):void 0);if(hi(i,o,s),!ai(s))return;t.m=!1}else a&&i.add(r);if(si(r)&&!mi(r)){if(!t.h.D&&t._<1)return;ki(t,r),e&&e.A.l||Ii(t,r)}}function Ii(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&bi(e,i)}function Ui(t,e){var i=t[Hi];return(i?yi(i):t)[e]}function Li(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 Ai(t){t.P||(t.P=!0,t.l&&Ai(t.l))}function _i(t){t.o||(t.o=gi(t.t))}function Ti(t,e,i){var o=ui(e)?xi("MapSet").F(e,i):pi(e)?xi("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:wi(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=Xi;i&&(r=[o],n=Ji);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):xi("ES5").J(e,i);return(i?i.A:wi()).p.push(o),o}function Wi(t){return ai(t)||ni(22,t),function t(e){if(!si(e))return e;var i,o=e[Hi],r=ci(e);if(o){if(!o.P&&(o.i<4||!xi("ES5").K(o)))return o.t;o.I=!0,i=Di(e,r),o.I=!1}else i=Di(e,r);return li(i,(function(e,r){o&&function(t,e){return 2===ci(t)?t.get(e):t[e]}(o.t,e)===r||hi(i,e,t(r))})),3===r?new Set(i):i}(t)}function Di(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return gi(t)}Je=ii,Qe=oi,ti=ei;var Fi,Pi,Mi="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ji="undefined"!=typeof Map,zi="undefined"!=typeof Set,Bi="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Ki=Mi?Symbol.for("immer-nothing"):((Fi={})["immer-nothing"]=!0,Fi),Zi=Mi?Symbol.for("immer-draftable"):"__$immer_draftable",Hi=Mi?Symbol.for("immer-state"):"__$immer_state",Gi=""+Object.prototype.constructor,Vi="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,qi=Object.getOwnPropertyDescriptors||function(t){var e={};return Vi(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},Yi={},Xi={get:function(t,e){if(e===Hi)return t;var i=yi(t);if(!fi(i,e))return function(t,e,i){var o,r=Li(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||!si(o)?o:o===Ui(t.t,e)?(_i(t),t.o[e]=Ti(t.A.h,o,t)):o},has:function(t,e){return e in yi(t)},ownKeys:function(t){return Reflect.ownKeys(yi(t))},set:function(t,e,i){var o=Li(yi(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=Ui(yi(t),e),n=null==r?void 0:r[Hi];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(di(i,r)&&(void 0!==i||fi(t.t,e)))return!0;_i(t),Ai(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!==Ui(t.t,e)||e in t.t?(t.R[e]=!1,_i(t),Ai(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=yi(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(){ni(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ni(12)}},Ji={};li(Xi,(function(t,e){Ji[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ji.deleteProperty=function(t,e){return Ji.set.call(this,t,e,void 0)},Ji.set=function(t,e,i){return Xi.set.call(this,t[0],e,i,t[0])};var Qi=function(){function t(t){var e=this;this.O=Bi,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&&ni(6),void 0!==o&&"function"!=typeof o&&ni(7),si(t)){var s=Ni(e),l=Ti(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?Si(s):$i(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Oi(s,o),Ei(t,s)}),(function(t){throw Si(s),t})):(Oi(s,o),Ei(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===Ki&&(a=void 0),e.D&&bi(a,!0),o){var f=[],h=[];xi("Patches").M(t,a,f,h),o(f,h)}return a}ni(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){si(t)||ni(8),ai(t)&&(t=Wi(t));var e=Ni(this),i=Ti(this,t,void 0);return i[Hi].C=!0,$i(e),i},e.finishDraft=function(t,e){var i=(t&&t[Hi]).A;return Oi(i,e),Ei(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Bi&&ni(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=xi("Patches").$;return ai(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),to=new Qi,eo=to.produce;function io(t){return io="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},io(t)}function oo(t){var e=function(t,e){if("object"!==io(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==io(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===io(e)?e:String(e)}function ro(t,e,i){return(e=oo(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function no(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 ao(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?no(Object(i),!0).forEach((function(e){ro(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):no(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function so(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. "}to.produceWithPatches.bind(to),to.setAutoFreeze.bind(to),to.setUseProxies.bind(to),to.applyPatches.bind(to),to.createDraft.bind(to),to.finishDraft.bind(to);var lo="function"==typeof Symbol&&Symbol.observable||"@@observable",co=function(){return Math.random().toString(36).substring(7).split("").join(".")},fo={INIT:"@@redux/INIT"+co(),REPLACE:"@@redux/REPLACE"+co(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+co()}};function ho(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(so(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(so(1));return i(ho)(t,e)}if("function"!=typeof t)throw new Error(so(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(so(3));return n}function h(t){if("function"!=typeof t)throw new Error(so(4));if(l)throw new Error(so(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(so(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(so(7));if(void 0===t.type)throw new Error(so(8));if(l)throw new Error(so(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:fo.INIT}),(o={dispatch:d,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(so(10));r=t,d({type:fo.REPLACE})}})[lo]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(so(11));function i(){t.next&&t.next(f())}return i(),{unsubscribe:e(i)}}})[lo]=function(){return this},t},o}function uo(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:fo.INIT}))throw new Error(so(12));if(void 0===i(void 0,{type:fo.PROBE_UNKNOWN_ACTION()}))throw new Error(so(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],h=c(f,e);if(void 0===h)throw e&&e.type,new Error(so(14));r[l]=h,o=o||h!==f}return(o=o||a.length!==Object.keys(t).length)?r:t}}function po(){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 yo(){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(so(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=po.apply(void 0,n)(i.dispatch),ao(ao({},i),{},{dispatch:o})}}}function go(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 bo=go();bo.withExtraArgument=go;var vo,mo=bo,xo=(vo=function(t,e){return vo=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])},vo(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}vo(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),wo=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])}}},Oo=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},So=Object.defineProperty,$o=Object.defineProperties,No=Object.getOwnPropertyDescriptors,Co=Object.getOwnPropertySymbols,Eo=Object.prototype.hasOwnProperty,ko=Object.prototype.propertyIsEnumerable,Ro=function(t,e,i){return e in t?So(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Io=function(t,e){for(var i in e||(e={}))Eo.call(e,i)&&Ro(t,i,e[i]);if(Co)for(var o=0,r=Co(e);o<r.length;o++){i=r[o];ko.call(e,i)&&Ro(t,i,e[i])}return t},Uo=function(t,e){return $o(t,No(e))},Lo="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?po:po.apply(null,arguments)};var Ao=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 xo(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,Oo([void 0],t[0].concat(this)))):new(e.bind.apply(e,Oo([void 0],t.concat(this))))},e}(Array),_o=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 xo(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,Oo([void 0],t[0].concat(this)))):new(e.bind.apply(e,Oo([void 0],t.concat(this))))},e}(Array);function To(t){return si(t)?eo(t,(function(){})):t}function Wo(){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 Ao;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(mo.withExtraArgument(i.extraArgument)):o.push(mo));return o}(t)}}function Do(t){var e,i=Wo(),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,h=void 0===f?void 0:f,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=uo(n)}var p=s;"function"==typeof p&&(p=p(i));var y=yo.apply(void 0,p),g=po;c&&(g=Lo(Io({trace:!1},"object"==typeof c&&c)));var b=new _o(y),v=b;return Array.isArray(u)?v=Oo([y],u):"function"==typeof u&&(v=u(b)),ho(e,h,g.apply(void 0,v))}function Fo(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 Io(Io({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 Po(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 Mo(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:To(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?Po(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=Io(Io({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?Po(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return To(t())};else{var c=To(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var i=Oo([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(ai(t))return void 0===(o=i(t,e))?t:o;if(si(t))return eo(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?Fo(c,o):Fo(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 jo=["name","message","stack","code"],zo=function(t,e){this.payload=t,this.meta=e},Bo=function(t,e){this.payload=t,this.meta=e},Ko=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=jo;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=Fo(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:Uo(Io({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=Fo(t+"/pending",(function(t,e,i){return{payload:void 0,meta:Uo(Io({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Fo(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Ko)(t||"Rejected"),meta:Uo(Io({},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,h=(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){f=t,d.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,g,b,v;return wo(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:f||"Aborted"})}))})),s(r(h,t,null==(p=null==i?void 0:i.getPendingMeta)?void 0:p.call(i,{requestId:h,arg:t},{getState:l,extra:c}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:l,extra:c,requestId:h,signal:d.signal,abort:u,rejectWithValue:function(t,e){return new zo(t,e)},fulfillWithValue:function(t,e){return new Bo(t,e)}})).then((function(e){if(e instanceof zo)throw e;return e instanceof Bo?o(e.payload,h,t,e.meta):o(e,h,t)}))])];case 3:return y=m.sent(),[3,5];case 4:return v=m.sent(),y=v instanceof zo?n(null,h,t,v.payload,v.meta):n(v,h,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:h,arg:t,unwrap:function(){return p.then(Zo)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Ho="listenerMiddleware";Fo(Ho+"/add"),Fo(Ho+"/removeAll"),Fo(Ho+"/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[Hi];return Xi.get(e,t)},set:function(e){var i=this[Hi];Xi.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Hi];if(!r.P)switch(r.i){case 5:o(r)&&Ai(r);break;case 4:i(r)&&Ai(r)}}}function i(t){for(var e=t.t,i=t.k,o=Vi(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==Hi){var a=e[n];if(void 0===a&&!fi(e,n))return!0;var s=i[n],l=s&&s[Hi];if(l?l.t!==a:!di(s,a))return!0}}var c=!!e[Hi];return o.length!==Vi(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){Yi[t]||(Yi[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=qi(i);delete n[Hi];for(var a=Vi(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:wi(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Hi,{value:n,writable:!0}),r},S:function(t,i,r){r?ai(i)&&i[Hi].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Hi];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)li(n,(function(e){e!==Hi&&(void 0!==r[e]||fi(r,e)?a[e]||t(n[e]):(a[e]=!0,Ai(i)))})),li(r,(function(t){void 0!==n[t]||fi(n,t)||(a[t]=!1,Ai(i))}));else if(5===s){if(o(i)&&(Ai(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),h=0;h<f;h++)n.hasOwnProperty(h)||(a[h]=!0),void 0===a[h]&&t(n[h])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?i(t):o(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Go{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(Xe(r))return r;if(null==o)return;const n=Mo({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=Do({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 Go(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ye,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 Vo=Symbol("elementInternals");function qo(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Vo].form}constructor(...t){super(t),this[Vo]=this.attachInternals(),this[Vo].role=e}setFormValue(t){this[Vo].setFormValue(t)}}}var Yo,Xo,Jo;const Qo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Jo=null===(Xo=null===(Yo=window.safari)||void 0===Yo?void 0:Yo.pushNotification)||void 0===Xo?void 0:Xo.toString())&&void 0!==Jo?Jo:"");var tr;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(tr||(tr={}));var er=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 ir extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const or=Symbol("registerInterval");class rr 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[or]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[or]):this.dispatchEvent(new ir)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=or,er([k()],i.prototype,"stateManager",void 0),i}(ri)){}const nr=ke.extend("--ft-ripple-color","",_e.colorContent),ar={color:nr,backgroundColor:ke.extend("--ft-ripple-background-color","",nr),opacityContentOnSurfacePressed:ke.external(_e.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ke.external(_e.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ke.external(_e.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ke.external(_e.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ke.create("--ft-ripple-border-radius","","SIZE","0px")},sr=ke.extend("--ft-ripple-color","",_e.colorPrimary),lr=sr,cr=ke.extend("--ft-ripple-background-color","",sr),fr=ke.extend("--ft-ripple-color","",_e.colorSecondary),hr=fr,dr=ke.extend("--ft-ripple-background-color","",fr),ur=kt`
127
132
  :host {
128
133
  display: contents;
129
134
  }
@@ -136,7 +141,7 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
136
141
 
137
142
  .ft-ripple:not(.ft-ripple--unbounded) {
138
143
  overflow: hidden;
139
- border-radius: ${nr.borderRadius};
144
+ border-radius: ${ar.borderRadius};
140
145
  }
141
146
 
142
147
  .ft-ripple .ft-ripple--background,
@@ -170,27 +175,27 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
170
175
  }
171
176
 
172
177
  .ft-ripple .ft-ripple--background {
173
- background-color: ${nr.backgroundColor};
178
+ background-color: ${ar.backgroundColor};
174
179
  }
175
180
 
176
181
  .ft-ripple .ft-ripple--effect {
177
- background-color: ${nr.color};
182
+ background-color: ${ar.color};
178
183
  }
179
184
 
180
185
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
181
- background-color: ${hr};
186
+ background-color: ${dr};
182
187
  }
183
188
 
184
189
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
185
- background-color: ${fr};
190
+ background-color: ${hr};
186
191
  }
187
192
 
188
193
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
189
- background-color: ${lr};
194
+ background-color: ${cr};
190
195
  }
191
196
 
192
197
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
193
- background-color: ${sr};
198
+ background-color: ${lr};
194
199
  }
195
200
 
196
201
  .ft-ripple .ft-ripple--background {
@@ -220,32 +225,23 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
220
225
  }
221
226
 
222
227
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
223
- opacity: ${nr.opacityContentOnSurfaceHover};
228
+ opacity: ${ar.opacityContentOnSurfaceHover};
224
229
  }
225
230
 
226
231
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
227
- opacity: ${nr.opacityContentOnSurfaceSelected};
232
+ opacity: ${ar.opacityContentOnSurfaceSelected};
228
233
  }
229
234
 
230
235
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
231
- opacity: ${nr.opacityContentOnSurfaceFocused};
236
+ opacity: ${ar.opacityContentOnSurfaceFocused};
232
237
  }
233
238
 
234
239
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
235
- opacity: ${nr.opacityContentOnSurfacePressed};
240
+ opacity: ${ar.opacityContentOnSurfacePressed};
236
241
  transform: translate(-50%, -50%) scale(1);
237
242
  }
238
- `;const ur=Ee.extend("--ft-typography-font-family","",Ae.titleFont),pr=Ee.extend("--ft-typography-font-family","",Ae.contentFont),yr={fontFamily:pr,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")},gr={fontFamily:Ee.extend("--ft-typography-title-font-family","",ur),fontSize:Ee.extend("--ft-typography-title-font-size","",yr.fontSize,"20px"),fontWeight:Ee.extend("--ft-typography-title-font-weight","",yr.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-title-letter-spacing","",yr.letterSpacing,"0.15px"),lineHeight:Ee.extend("--ft-typography-title-line-height","",yr.lineHeight,"1.2"),textTransform:Ee.extend("--ft-typography-title-text-transform","",yr.textTransform,"inherit")},br={fontFamily:Ee.extend("--ft-typography-title-dense-font-family","",ur),fontSize:Ee.extend("--ft-typography-title-dense-font-size","",yr.fontSize,"14px"),fontWeight:Ee.extend("--ft-typography-title-dense-font-weight","",yr.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-title-dense-letter-spacing","",yr.letterSpacing,"0.105px"),lineHeight:Ee.extend("--ft-typography-title-dense-line-height","",yr.lineHeight,"1.7"),textTransform:Ee.extend("--ft-typography-title-dense-text-transform","",yr.textTransform,"inherit")},vr=Ee.extend("--ft-typography-subtitle1-font-family","",pr),mr=Ee.extend("--ft-typography-subtitle1-font-size","",yr.fontSize,"16px"),xr=Ee.extend("--ft-typography-subtitle1-font-weight","",yr.fontWeight,"600"),wr=Ee.extend("--ft-typography-subtitle1-letter-spacing","",yr.letterSpacing,"0.144px"),Or=Ee.extend("--ft-typography-subtitle1-line-height","",yr.lineHeight,"1.5"),Sr=Ee.extend("--ft-typography-subtitle1-text-transform","",yr.textTransform,"inherit"),$r=Ee.extend("--ft-typography-subtitle2-font-family","",pr),Nr=Ee.extend("--ft-typography-subtitle2-font-size","",yr.fontSize,"14px"),Cr=Ee.extend("--ft-typography-subtitle2-font-weight","",yr.fontWeight,"normal"),Er=Ee.extend("--ft-typography-subtitle2-letter-spacing","",yr.letterSpacing,"0.098px"),kr=Ee.extend("--ft-typography-subtitle2-line-height","",yr.lineHeight,"1.7"),Rr=Ee.extend("--ft-typography-subtitle2-text-transform","",yr.textTransform,"inherit"),Ir={fontFamily:Ee.extend("--ft-typography-body1-font-family","",pr),fontSize:Ee.extend("--ft-typography-body1-font-size","",yr.fontSize,"16px"),fontWeight:Ee.extend("--ft-typography-body1-font-weight","",yr.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-body1-letter-spacing","",yr.letterSpacing,"0.496px"),lineHeight:Ee.extend("--ft-typography-body1-line-height","",yr.lineHeight,"1.5"),textTransform:Ee.extend("--ft-typography-body1-text-transform","",yr.textTransform,"inherit")},Ur=Ee.extend("--ft-typography-body2-font-family","",pr),Lr=Ee.extend("--ft-typography-body2-font-size","",yr.fontSize,"14px"),Ar=Ee.extend("--ft-typography-body2-font-weight","",yr.fontWeight,"normal"),_r=Ee.extend("--ft-typography-body2-letter-spacing","",yr.letterSpacing,"0.252px"),Tr=Ee.extend("--ft-typography-body2-line-height","",yr.lineHeight,"1.4"),Wr=Ee.extend("--ft-typography-body2-text-transform","",yr.textTransform,"inherit"),Dr={fontFamily:Ee.extend("--ft-typography-caption-font-family","",pr),fontSize:Ee.extend("--ft-typography-caption-font-size","",yr.fontSize,"12px"),fontWeight:Ee.extend("--ft-typography-caption-font-weight","",yr.fontWeight,"normal"),letterSpacing:Ee.extend("--ft-typography-caption-letter-spacing","",yr.letterSpacing,"0.396px"),lineHeight:Ee.extend("--ft-typography-caption-line-height","",yr.lineHeight,"1.33"),textTransform:Ee.extend("--ft-typography-caption-text-transform","",yr.textTransform,"inherit")},Fr=Ee.extend("--ft-typography-breadcrumb-font-family","",pr),Pr=Ee.extend("--ft-typography-breadcrumb-font-size","",yr.fontSize,"10px"),Mr=Ee.extend("--ft-typography-breadcrumb-font-weight","",yr.fontWeight,"normal"),zr=Ee.extend("--ft-typography-breadcrumb-letter-spacing","",yr.letterSpacing,"0.33px"),jr=Ee.extend("--ft-typography-breadcrumb-line-height","",yr.lineHeight,"1.6"),Br=Ee.extend("--ft-typography-breadcrumb-text-transform","",yr.textTransform,"inherit"),Kr=Ee.extend("--ft-typography-overline-font-family","",pr),Zr=Ee.extend("--ft-typography-overline-font-size","",yr.fontSize,"10px"),Hr=Ee.extend("--ft-typography-overline-font-weight","",yr.fontWeight,"normal"),Gr=Ee.extend("--ft-typography-overline-letter-spacing","",yr.letterSpacing,"1.5px"),Vr=Ee.extend("--ft-typography-overline-line-height","",yr.lineHeight,"1.6"),qr=Ee.extend("--ft-typography-overline-text-transform","",yr.textTransform,"uppercase"),Yr={fontFamily:Ee.extend("--ft-typography-button-font-family","",pr),fontSize:Ee.extend("--ft-typography-button-font-size","",yr.fontSize,"14px"),fontWeight:Ee.extend("--ft-typography-button-font-weight","",yr.fontWeight,"600"),letterSpacing:Ee.extend("--ft-typography-button-letter-spacing","",yr.letterSpacing,"1.246px"),lineHeight:Ee.extend("--ft-typography-button-line-height","",yr.lineHeight,"1.15"),textTransform:Ee.extend("--ft-typography-button-text-transform","",yr.textTransform,"uppercase")},Xr=Et`
243
+ `;const pr=ke.extend("--ft-typography-font-family","",_e.titleFont),yr=ke.extend("--ft-typography-font-family","",_e.contentFont),gr={fontFamily:yr,fontSize:ke.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:ke.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:ke.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:ke.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:ke.create("--ft-typography-text-transform","","UNKNOWN","inherit")},br={fontFamily:ke.extend("--ft-typography-title-font-family","",pr),fontSize:ke.extend("--ft-typography-title-font-size","",gr.fontSize,"20px"),fontWeight:ke.extend("--ft-typography-title-font-weight","",gr.fontWeight,"normal"),letterSpacing:ke.extend("--ft-typography-title-letter-spacing","",gr.letterSpacing,"0.15px"),lineHeight:ke.extend("--ft-typography-title-line-height","",gr.lineHeight,"1.2"),textTransform:ke.extend("--ft-typography-title-text-transform","",gr.textTransform,"inherit")},vr={fontFamily:ke.extend("--ft-typography-title-dense-font-family","",pr),fontSize:ke.extend("--ft-typography-title-dense-font-size","",gr.fontSize,"14px"),fontWeight:ke.extend("--ft-typography-title-dense-font-weight","",gr.fontWeight,"normal"),letterSpacing:ke.extend("--ft-typography-title-dense-letter-spacing","",gr.letterSpacing,"0.105px"),lineHeight:ke.extend("--ft-typography-title-dense-line-height","",gr.lineHeight,"1.7"),textTransform:ke.extend("--ft-typography-title-dense-text-transform","",gr.textTransform,"inherit")},mr=ke.extend("--ft-typography-subtitle1-font-family","",yr),xr=ke.extend("--ft-typography-subtitle1-font-size","",gr.fontSize,"16px"),wr=ke.extend("--ft-typography-subtitle1-font-weight","",gr.fontWeight,"600"),Or=ke.extend("--ft-typography-subtitle1-letter-spacing","",gr.letterSpacing,"0.144px"),Sr=ke.extend("--ft-typography-subtitle1-line-height","",gr.lineHeight,"1.5"),$r=ke.extend("--ft-typography-subtitle1-text-transform","",gr.textTransform,"inherit"),Nr=ke.extend("--ft-typography-subtitle2-font-family","",yr),Cr=ke.extend("--ft-typography-subtitle2-font-size","",gr.fontSize,"14px"),Er=ke.extend("--ft-typography-subtitle2-font-weight","",gr.fontWeight,"normal"),kr=ke.extend("--ft-typography-subtitle2-letter-spacing","",gr.letterSpacing,"0.098px"),Rr=ke.extend("--ft-typography-subtitle2-line-height","",gr.lineHeight,"1.7"),Ir=ke.extend("--ft-typography-subtitle2-text-transform","",gr.textTransform,"inherit"),Ur={fontFamily:ke.extend("--ft-typography-body1-font-family","",yr),fontSize:ke.extend("--ft-typography-body1-font-size","",gr.fontSize,"16px"),fontWeight:ke.extend("--ft-typography-body1-font-weight","",gr.fontWeight,"normal"),letterSpacing:ke.extend("--ft-typography-body1-letter-spacing","",gr.letterSpacing,"0.496px"),lineHeight:ke.extend("--ft-typography-body1-line-height","",gr.lineHeight,"1.5"),textTransform:ke.extend("--ft-typography-body1-text-transform","",gr.textTransform,"inherit")},Lr=ke.extend("--ft-typography-body2-font-family","",yr),Ar=ke.extend("--ft-typography-body2-font-size","",gr.fontSize,"14px"),_r=ke.extend("--ft-typography-body2-font-weight","",gr.fontWeight,"normal"),Tr=ke.extend("--ft-typography-body2-letter-spacing","",gr.letterSpacing,"0.252px"),Wr=ke.extend("--ft-typography-body2-line-height","",gr.lineHeight,"1.4"),Dr=ke.extend("--ft-typography-body2-text-transform","",gr.textTransform,"inherit"),Fr={fontFamily:ke.extend("--ft-typography-caption-font-family","",yr),fontSize:ke.extend("--ft-typography-caption-font-size","",gr.fontSize,"12px"),fontWeight:ke.extend("--ft-typography-caption-font-weight","",gr.fontWeight,"normal"),letterSpacing:ke.extend("--ft-typography-caption-letter-spacing","",gr.letterSpacing,"0.396px"),lineHeight:ke.extend("--ft-typography-caption-line-height","",gr.lineHeight,"1.33"),textTransform:ke.extend("--ft-typography-caption-text-transform","",gr.textTransform,"inherit")},Pr=ke.extend("--ft-typography-breadcrumb-font-family","",yr),Mr=ke.extend("--ft-typography-breadcrumb-font-size","",gr.fontSize,"10px"),jr=ke.extend("--ft-typography-breadcrumb-font-weight","",gr.fontWeight,"normal"),zr=ke.extend("--ft-typography-breadcrumb-letter-spacing","",gr.letterSpacing,"0.33px"),Br=ke.extend("--ft-typography-breadcrumb-line-height","",gr.lineHeight,"1.6"),Kr=ke.extend("--ft-typography-breadcrumb-text-transform","",gr.textTransform,"inherit"),Zr=ke.extend("--ft-typography-overline-font-family","",yr),Hr=ke.extend("--ft-typography-overline-font-size","",gr.fontSize,"10px"),Gr=ke.extend("--ft-typography-overline-font-weight","",gr.fontWeight,"normal"),Vr=ke.extend("--ft-typography-overline-letter-spacing","",gr.letterSpacing,"1.5px"),qr=ke.extend("--ft-typography-overline-line-height","",gr.lineHeight,"1.6"),Yr=ke.extend("--ft-typography-overline-text-transform","",gr.textTransform,"uppercase"),Xr={fontFamily:ke.extend("--ft-typography-button-font-family","",yr),fontSize:ke.extend("--ft-typography-button-font-size","",gr.fontSize,"14px"),fontWeight:ke.extend("--ft-typography-button-font-weight","",gr.fontWeight,"600"),letterSpacing:ke.extend("--ft-typography-button-letter-spacing","",gr.letterSpacing,"1.246px"),lineHeight:ke.extend("--ft-typography-button-line-height","",gr.lineHeight,"1.15"),textTransform:ke.extend("--ft-typography-button-text-transform","",gr.textTransform,"uppercase")},Jr=kt`
239
244
  .ft-typography--title {
240
- font-family: ${gr.fontFamily};
241
- font-size: ${gr.fontSize};
242
- font-weight: ${gr.fontWeight};
243
- letter-spacing: ${gr.letterSpacing};
244
- line-height: ${gr.lineHeight};
245
- text-transform: ${gr.textTransform};
246
- }
247
- `,Jr=Et`
248
- .ft-typography--title-dense {
249
245
  font-family: ${br.fontFamily};
250
246
  font-size: ${br.fontSize};
251
247
  font-weight: ${br.fontWeight};
@@ -253,85 +249,94 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
253
249
  line-height: ${br.lineHeight};
254
250
  text-transform: ${br.textTransform};
255
251
  }
256
- `,Qr=Et`
252
+ `,Qr=kt`
253
+ .ft-typography--title-dense {
254
+ font-family: ${vr.fontFamily};
255
+ font-size: ${vr.fontSize};
256
+ font-weight: ${vr.fontWeight};
257
+ letter-spacing: ${vr.letterSpacing};
258
+ line-height: ${vr.lineHeight};
259
+ text-transform: ${vr.textTransform};
260
+ }
261
+ `,tn=kt`
257
262
  .ft-typography--subtitle1 {
258
- font-family: ${vr};
259
- font-size: ${mr};
260
- font-weight: ${xr};
261
- letter-spacing: ${wr};
262
- line-height: ${Or};
263
- text-transform: ${Sr};
264
- }
265
- `,tn=Et`
263
+ font-family: ${mr};
264
+ font-size: ${xr};
265
+ font-weight: ${wr};
266
+ letter-spacing: ${Or};
267
+ line-height: ${Sr};
268
+ text-transform: ${$r};
269
+ }
270
+ `,en=kt`
266
271
  .ft-typography--subtitle2 {
267
- font-family: ${$r};
268
- font-size: ${Nr};
269
- font-weight: ${Cr};
270
- letter-spacing: ${Er};
271
- line-height: ${kr};
272
- text-transform: ${Rr};
272
+ font-family: ${Nr};
273
+ font-size: ${Cr};
274
+ font-weight: ${Er};
275
+ letter-spacing: ${kr};
276
+ line-height: ${Rr};
277
+ text-transform: ${Ir};
273
278
  }
274
279
 
275
- `,en=Et`
280
+ `,on=kt`
276
281
  .ft-typography--body1 {
277
- font-family: ${Ir.fontFamily};
278
- font-size: ${Ir.fontSize};
279
- font-weight: ${Ir.fontWeight};
280
- letter-spacing: ${Ir.letterSpacing};
281
- line-height: ${Ir.lineHeight};
282
- text-transform: ${Ir.textTransform};
283
- }
284
- `,on=Et`
282
+ font-family: ${Ur.fontFamily};
283
+ font-size: ${Ur.fontSize};
284
+ font-weight: ${Ur.fontWeight};
285
+ letter-spacing: ${Ur.letterSpacing};
286
+ line-height: ${Ur.lineHeight};
287
+ text-transform: ${Ur.textTransform};
288
+ }
289
+ `,rn=kt`
285
290
  .ft-typography--body2 {
286
- font-family: ${Ur};
287
- font-size: ${Lr};
288
- font-weight: ${Ar};
289
- letter-spacing: ${_r};
290
- line-height: ${Tr};
291
- text-transform: ${Wr};
292
- }
293
- `,rn=Et`
291
+ font-family: ${Lr};
292
+ font-size: ${Ar};
293
+ font-weight: ${_r};
294
+ letter-spacing: ${Tr};
295
+ line-height: ${Wr};
296
+ text-transform: ${Dr};
297
+ }
298
+ `,nn=kt`
294
299
  .ft-typography--caption {
295
- font-family: ${Dr.fontFamily};
296
- font-size: ${Dr.fontSize};
297
- font-weight: ${Dr.fontWeight};
298
- letter-spacing: ${Dr.letterSpacing};
299
- line-height: ${Dr.lineHeight};
300
- text-transform: ${Dr.textTransform};
301
- }
302
- `,nn=Et`
300
+ font-family: ${Fr.fontFamily};
301
+ font-size: ${Fr.fontSize};
302
+ font-weight: ${Fr.fontWeight};
303
+ letter-spacing: ${Fr.letterSpacing};
304
+ line-height: ${Fr.lineHeight};
305
+ text-transform: ${Fr.textTransform};
306
+ }
307
+ `,an=kt`
303
308
  .ft-typography--breadcrumb {
304
- font-family: ${Fr};
305
- font-size: ${Pr};
306
- font-weight: ${Mr};
309
+ font-family: ${Pr};
310
+ font-size: ${Mr};
311
+ font-weight: ${jr};
307
312
  letter-spacing: ${zr};
308
- line-height: ${jr};
309
- text-transform: ${Br};
313
+ line-height: ${Br};
314
+ text-transform: ${Kr};
310
315
  }
311
- `,an=Et`
316
+ `,sn=kt`
312
317
  .ft-typography--overline {
313
- font-family: ${Kr};
314
- font-size: ${Zr};
315
- font-weight: ${Hr};
316
- letter-spacing: ${Gr};
317
- line-height: ${Vr};
318
- text-transform: ${qr};
319
- }
320
- `,sn=Et`
318
+ font-family: ${Zr};
319
+ font-size: ${Hr};
320
+ font-weight: ${Gr};
321
+ letter-spacing: ${Vr};
322
+ line-height: ${qr};
323
+ text-transform: ${Yr};
324
+ }
325
+ `,ln=kt`
321
326
  .ft-typography--button {
322
- font-family: ${Yr.fontFamily};
323
- font-size: ${Yr.fontSize};
324
- font-weight: ${Yr.fontWeight};
325
- letter-spacing: ${Yr.letterSpacing};
326
- line-height: ${Yr.lineHeight};
327
- text-transform: ${Yr.textTransform};
328
- }
329
- `,ln=Et`
327
+ font-family: ${Xr.fontFamily};
328
+ font-size: ${Xr.fontSize};
329
+ font-weight: ${Xr.fontWeight};
330
+ letter-spacing: ${Xr.letterSpacing};
331
+ line-height: ${Xr.lineHeight};
332
+ text-transform: ${Xr.textTransform};
333
+ }
334
+ `,cn=kt`
330
335
  .ft-typography {
331
336
  vertical-align: inherit;
332
337
  }
333
- `,cn=[Object.keys(Ie).map((t=>function(t){const e=Ie[t];return Et`
334
- .ft-typography--${Ct(t)} {
338
+ `,fn=[Object.keys(Ue).map((t=>function(t){const e=Ue[t];return kt`
339
+ .ft-typography--${Et(t)} {
335
340
  font-family: ${e.fontFamily};
336
341
  font-size: ${e.fontSize};
337
342
  font-weight: ${e.fontWeight};
@@ -339,7 +344,7 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
339
344
  line-height: ${e.lineHeight};
340
345
  text-transform: ${e.textCase};
341
346
  }
342
- `}(t)))],fn={color:Ee.extend("--ft-loader-color","",Ae.colorPrimary),size:Ee.create("--ft-loader-size","","SIZE","80px")},hn=Et`
347
+ `}(t)))],hn={color:ke.extend("--ft-loader-color","",_e.colorPrimary),size:ke.create("--ft-loader-size","","SIZE","80px")},dn=kt`
343
348
  :host {
344
349
  line-height: 0;
345
350
  }
@@ -348,8 +353,8 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
348
353
  display: inline-block;
349
354
  position: relative;
350
355
 
351
- width: ${fn.size};
352
- height: ${fn.size};
356
+ width: ${hn.size};
357
+ height: ${hn.size};
353
358
  }
354
359
 
355
360
  .ft-loader div {
@@ -358,7 +363,7 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
358
363
  width: 25%;
359
364
  height: 25%;
360
365
  border-radius: 50%;
361
- background: ${fn.color};
366
+ background: ${hn.color};
362
367
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
363
368
  }
364
369
 
@@ -405,10 +410,10 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
405
410
  transform: translate(0, 0);
406
411
  }
407
412
  100% {
408
- transform: translate(calc(0.35 * ${fn.size}), 0);
413
+ transform: translate(calc(0.35 * ${hn.size}), 0);
409
414
  }
410
415
  }
411
- `,dn={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")},un=Et`
416
+ `,un={size:ke.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:ke.extend("--ft-icon-fluid-topics-font-family","",ke.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:ke.extend("--ft-icon-file-format-font-family","",ke.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:ke.extend("--ft-icon-material-font-family","",ke.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:ke.create("--ft-icon-vertical-align","","UNKNOWN","unset")},pn=kt`
412
417
  :host, i.ft-icon {
413
418
  display: inline-flex;
414
419
  align-items: center;
@@ -417,14 +422,14 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
417
422
  }
418
423
 
419
424
  :host {
420
- width: ${dn.size};
421
- height: ${dn.size};
425
+ width: ${un.size};
426
+ height: ${un.size};
422
427
  }
423
428
 
424
429
  i.ft-icon {
425
430
  width: 100%;
426
431
  height: 100%;
427
- font-size: ${dn.size};
432
+ font-size: ${un.size};
428
433
  line-height: 1;
429
434
  font-weight: normal;
430
435
  text-transform: none;
@@ -435,28 +440,28 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
435
440
  text-rendering: auto;
436
441
  -webkit-font-smoothing: antialiased;
437
442
  -moz-osx-font-smoothing: grayscale;
438
- vertical-align: ${dn.verticalAlign};
443
+ vertical-align: ${un.verticalAlign};
439
444
  }
440
445
 
441
446
  i.ft-icon.ft-icon--fluid-topics {
442
- font-family: ${dn.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
447
+ font-family: ${un.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
443
448
 
444
449
  /* Ugly fix because font is broken */
445
- font-size: calc(0.75 * ${dn.size});
446
- line-height: ${dn.size};
450
+ font-size: calc(0.75 * ${un.size});
451
+ line-height: ${un.size};
447
452
  position: relative;
448
453
  top: -4%;
449
454
  justify-content: center;
450
455
  }
451
456
 
452
457
  .ft-icon--file-format {
453
- font-family: ${dn.fileFormatFontFamily}, ft-mime, sans-serif;
458
+ font-family: ${un.fileFormatFontFamily}, ft-mime, sans-serif;
454
459
  }
455
460
 
456
461
  .ft-icon--material {
457
- font-family: ${dn.materialFontFamily}, "Material Icons", sans-serif;
462
+ font-family: ${un.materialFontFamily}, "Material Icons", sans-serif;
458
463
  }
459
- `,pn=Ee.extend("--ft-button-color","",Ae.colorPrimary),yn={backgroundColor:Ee.extend("--ft-button-background-color","",Ae.colorSurface),borderRadius:Ee.extend("--ft-button-border-radius","",Ae.borderRadiusL),color:pn,fontSize:Ee.extend("--ft-button-font-size","",Yr.fontSize),iconSize:Ee.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Ee.extend("--ft-button-ripple-color","",pn),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")},gn=Ee.extend("--ft-button-primary-color","",Ee.extend("--ft-button-color","",Ae.colorOnPrimary)),bn={backgroundColor:Ee.extend("--ft-button-primary-background-color","",Ee.extend("--ft-button-background-color","",Ae.colorPrimary)),color:gn,rippleColor:Ee.extend("--ft-button-primary-ripple-color","",gn)},vn=Ee.extend("--ft-button-dense-border-radius","",Ee.extend("--ft-button-border-radius","",Ae.borderRadiusM)),mn=Ee.create("--ft-button-dense-vertical-padding","","SIZE","2px"),xn=Ee.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),wn=Ee.create("--ft-button-dense-icon-padding","","SIZE","4px"),On=[Et`
464
+ `,yn=ke.extend("--ft-button-color","",_e.colorPrimary),gn={backgroundColor:ke.extend("--ft-button-background-color","",_e.colorSurface),borderRadius:ke.extend("--ft-button-border-radius","",_e.borderRadiusL),color:yn,fontSize:ke.extend("--ft-button-font-size","",Xr.fontSize),iconSize:ke.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:ke.extend("--ft-button-ripple-color","",yn),verticalPadding:ke.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:ke.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:ke.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:ke.external(_e.colorOpacityDisabled,"Design system")},bn=ke.extend("--ft-button-primary-color","",ke.extend("--ft-button-color","",_e.colorOnPrimary)),vn={backgroundColor:ke.extend("--ft-button-primary-background-color","",ke.extend("--ft-button-background-color","",_e.colorPrimary)),color:bn,rippleColor:ke.extend("--ft-button-primary-ripple-color","",bn)},mn=ke.extend("--ft-button-dense-border-radius","",ke.extend("--ft-button-border-radius","",_e.borderRadiusM)),xn=ke.create("--ft-button-dense-vertical-padding","","SIZE","2px"),wn=ke.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),On=ke.create("--ft-button-dense-icon-padding","","SIZE","4px"),Sn=[kt`
460
465
  :host {
461
466
  display: inline-block;
462
467
  max-width: 100%;
@@ -467,7 +472,7 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
467
472
  box-shadow: 0px 0px 0px transparent;
468
473
  border: 0px solid transparent;
469
474
  text-shadow: 0px 0px 0px transparent;
470
- font-size: ${yn.fontSize};
475
+ font-size: ${gn.fontSize};
471
476
  }
472
477
 
473
478
  button:hover {
@@ -496,31 +501,31 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
496
501
  border: none;
497
502
  pointer-events: auto;
498
503
 
499
- --ft-button-internal-line-height: max(calc(${yn.fontSize} + 2px), ${yn.iconSize});
500
- --ft-button-internal-color: ${yn.color};
501
- ${ke(dn.size,yn.iconSize)};
502
- ${ke(nr.color,yn.rippleColor)};
504
+ --ft-button-internal-line-height: max(calc(${gn.fontSize} + 2px), ${gn.iconSize});
505
+ --ft-button-internal-color: ${gn.color};
506
+ ${Re(un.size,gn.iconSize)};
507
+ ${Re(ar.color,gn.rippleColor)};
503
508
 
504
- border-radius: ${yn.borderRadius};
505
- padding: ${yn.verticalPadding} ${yn.horizontalPadding};
506
- background-color: ${yn.backgroundColor};
509
+ border-radius: ${gn.borderRadius};
510
+ padding: ${gn.verticalPadding} ${gn.horizontalPadding};
511
+ background-color: ${gn.backgroundColor};
507
512
  color: var(--ft-button-internal-color);
508
513
  -webkit-mask-image: radial-gradient(white, black);
509
514
  }
510
515
 
511
516
  .ft-button.ft-button--outlined {
512
517
  border: 1px solid var(--ft-button-internal-color);
513
- padding: calc(${yn.verticalPadding} - 1px) calc(${yn.horizontalPadding} - 1px);
518
+ padding: calc(${gn.verticalPadding} - 1px) calc(${gn.horizontalPadding} - 1px);
514
519
  }
515
520
 
516
521
  .ft-button.ft-button--dense {
517
- padding: ${mn} ${xn};
518
- border-radius: ${vn};
519
- gap: ${wn};
522
+ padding: ${xn} ${wn};
523
+ border-radius: ${mn};
524
+ gap: ${On};
520
525
  }
521
526
 
522
527
  .ft-button.ft-button--dense.ft-button--outlined {
523
- padding: calc(${mn} - 1px) calc(${xn} - 1px);
528
+ padding: calc(${xn} - 1px) calc(${wn} - 1px);
524
529
  }
525
530
 
526
531
  .ft-button:not([disabled]):hover {
@@ -528,22 +533,22 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
528
533
  }
529
534
 
530
535
  .ft-button--round {
531
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${yn.verticalPadding});
536
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${gn.verticalPadding});
532
537
  }
533
538
 
534
539
  .ft-button--round.ft-button--dense {
535
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${mn});
540
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${xn});
536
541
  }
537
542
 
538
543
  .ft-button[disabled] {
539
544
  filter: grayscale(1);
540
- opacity: ${yn.opacityDisabled};
545
+ opacity: ${gn.opacityDisabled};
541
546
  }
542
547
 
543
548
  .ft-button.ft-button--primary {
544
- background-color: ${bn.backgroundColor};
545
- --ft-button-internal-color: ${bn.color};
546
- ${ke(nr.color,bn.rippleColor)};
549
+ background-color: ${vn.backgroundColor};
550
+ --ft-button-internal-color: ${vn.color};
551
+ ${Re(ar.color,vn.rippleColor)};
547
552
  }
548
553
 
549
554
  .ft-button:focus {
@@ -556,13 +561,13 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
556
561
  white-space: nowrap;
557
562
  text-overflow: ellipsis;
558
563
  display: block;
559
- margin: 0 ${yn.iconPadding};
560
- ${ke(Yr.fontSize,"1em")};
561
- ${ke(Yr.lineHeight,"var(--ft-button-internal-line-height)")};
564
+ margin: 0 ${gn.iconPadding};
565
+ ${Re(Xr.fontSize,"1em")};
566
+ ${Re(Xr.lineHeight,"var(--ft-button-internal-line-height)")};
562
567
  }
563
568
 
564
569
  .ft-button--dense .ft-button--label {
565
- margin: 0 ${wn};
570
+ margin: 0 ${On};
566
571
  }
567
572
 
568
573
  .ft-button--label[hidden] {
@@ -575,13 +580,13 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
575
580
  }
576
581
 
577
582
  .ft-button--label[hidden] + ft-icon {
578
- margin: 0 calc(${yn.horizontalPadding} * -1);
579
- padding: 0 ${yn.verticalPadding};
583
+ margin: 0 calc(${gn.horizontalPadding} * -1);
584
+ padding: 0 ${gn.verticalPadding};
580
585
  }
581
586
 
582
587
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
583
- margin: 0 calc(${xn} * -1);
584
- padding: 0 ${mn};
588
+ margin: 0 calc(${wn} * -1);
589
+ padding: 0 ${xn};
585
590
  }
586
591
 
587
592
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -590,10 +595,10 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
590
595
  }
591
596
 
592
597
  ft-loader {
593
- ${ke(fn.size,yn.iconSize)};
594
- ${ke(fn.color,"var(--ft-button-internal-color)")};
598
+ ${Re(hn.size,gn.iconSize)};
599
+ ${Re(hn.color,"var(--ft-button-internal-color)")};
595
600
  }
596
- `,Ze],Sn={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","",Yr.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)},$n={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(gr.fontSize,"Typography"),sectionTitleFontSize:Ee.external(br.fontSize,"Typography")},Nn=Et`
601
+ `,He],$n={textColor:ke.extend("--ft-switch-text-color","",_e.colorOnSurfaceHigh),backgroundColor:ke.extend("--ft-switch-background-color","",_e.colorSurface),selectedTextColor:ke.extend("--ft-switch-selected-text-color","",_e.colorPrimary),selectedBackgroundColor:ke.extend("--ft-switch-selected-background-color","",_e.colorPrimary),borderColor:ke.extend("--ft-switch-border-color","",_e.colorOutline),borderRadius:ke.extend("--ft-switch-border-radius","",_e.borderRadiusL),fontSize:ke.extend("--ft-switch-font-size","",Xr.fontSize),iconSize:ke.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:ke.extend("--ft-switch-text-color","",_e.colorOnSurfaceMedium),rippleColor:ke.extend("--ft-switch-ripple-color","",_e.colorPrimary),outlineColor:ke.extend("--ft-switch-outline-color","",_e.colorPrimary)},Nn={feedbackInputMinWidth:ke.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:ke.external(_e.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:ke.extend("--ft-reader-feedback-send-feedback-color","",_e.colorOnPrimary),sendFeedbackBackgroundColor:ke.extend("--ft-reader-feedback-send-feedback-background-color","",_e.colorPrimary),filledRatingColor:ke.extend("--ft-reader-feedback-filled-rating-color","",_e.colorPrimary),emptyRatingColor:ke.extend("--ft-reader-feedback-empty-rating-color","",_e.colorOnSurfaceMedium),mainTitleFontSize:ke.external(br.fontSize,"Typography"),sectionTitleFontSize:ke.external(vr.fontSize,"Typography")},Cn=kt`
597
602
  .ft-reader-feedback {
598
603
  box-sizing: border-box;
599
604
  display: flex;
@@ -639,14 +644,14 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
639
644
  }
640
645
 
641
646
  .ft-reader-feedback--rating {
642
- ${ke(yn.color,$n.emptyRatingColor)};
643
- ${ke(yn.rippleColor,$n.filledRatingColor)};
644
- ${ke(Sn.textColor,$n.emptyRatingColor)};
645
- ${ke(Sn.selectedTextColor,$n.filledRatingColor)};
647
+ ${Re(gn.color,Nn.emptyRatingColor)};
648
+ ${Re(gn.rippleColor,Nn.filledRatingColor)};
649
+ ${Re($n.textColor,Nn.emptyRatingColor)};
650
+ ${Re($n.selectedTextColor,Nn.filledRatingColor)};
646
651
  }
647
652
 
648
653
  .ft-reader-feedback--rating .ft-reader-feedback--active {
649
- ${ke(yn.color,$n.filledRatingColor)};
654
+ ${Re(gn.color,Nn.filledRatingColor)};
650
655
  }
651
656
 
652
657
  .ft-reader-feedback--feedback {
@@ -654,47 +659,47 @@ let $e=class extends Bt{constructor(){super(...arguments),this.renderOptions={ho
654
659
  }
655
660
 
656
661
  .ft-reader-feedback--rating-date {
657
- color: ${$n.ratedDateColor};
662
+ color: ${Nn.ratedDateColor};
658
663
  }
659
664
 
660
665
  .ft-reader-feedback--feedback ft-text-area {
661
- min-width: ${$n.feedbackInputMinWidth};
666
+ min-width: ${Nn.feedbackInputMinWidth};
662
667
  }
663
668
 
664
669
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
665
670
  align-self: flex-end;
666
- ${ke(yn.color,$n.sendFeedbackColor)};
667
- ${ke(yn.backgroundColor,$n.sendFeedbackBackgroundColor)};
671
+ ${Re(gn.color,Nn.sendFeedbackColor)};
672
+ ${Re(gn.backgroundColor,Nn.sendFeedbackBackgroundColor)};
668
673
  }
669
- `;var Cn,En,kn,Rn,In,Un,Ln,An,_n,Tn,Wn,Dn,Fn,Pn;!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 h(t){var e=new FileReader,i=f(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(h)}),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(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"}(Cn||(Cn={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(En||(En={})),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"}(kn||(kn={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Rn||(Rn={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(In||(In={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Un||(Un={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Ln||(Ln={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(An||(An={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(_n||(_n={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Tn||(Tn={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Wn||(Wn={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Dn||(Dn={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Fn||(Fn={})),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"}(Pn||(Pn={}));const Mn={[Pn.PERSONAL_BOOK_SHARE_USER]:[Pn.PERSONAL_BOOK_USER],[Pn.HTML_EXPORT_USER]:[Pn.PERSONAL_BOOK_USER],[Pn.PDF_EXPORT_USER]:[Pn.PERSONAL_BOOK_USER],[Pn.KHUB_ADMIN]:[Pn.CONTENT_PUBLISHER],[Pn.ADMIN]:[Pn.KHUB_ADMIN,Pn.USERS_ADMIN,Pn.PORTAL_ADMIN],[Pn.DEVELOPER]:[Pn.BETA_USER,Pn.DEBUG_USER]};function zn(t,e){return t===e||(Mn[t]??[]).some((t=>zn(t,e)))}function jn(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=>zn(t,e)))}
674
+ `;var En,kn,Rn,In,Un,Ln,An,_n,Tn,Wn,Dn,Fn,Pn,Mn;!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 h(t){var e=new FileReader,i=f(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(h)}),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(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"}(En||(En={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(kn||(kn={})),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"}(Rn||(Rn={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(In||(In={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Un||(Un={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Ln||(Ln={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(An||(An={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(_n||(_n={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Tn||(Tn={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Wn||(Wn={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Dn||(Dn={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Fn||(Fn={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Pn||(Pn={})),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"}(Mn||(Mn={}));const jn={[Mn.PERSONAL_BOOK_SHARE_USER]:[Mn.PERSONAL_BOOK_USER],[Mn.HTML_EXPORT_USER]:[Mn.PERSONAL_BOOK_USER],[Mn.PDF_EXPORT_USER]:[Mn.PERSONAL_BOOK_USER],[Mn.KHUB_ADMIN]:[Mn.CONTENT_PUBLISHER],[Mn.ADMIN]:[Mn.KHUB_ADMIN,Mn.USERS_ADMIN,Mn.PORTAL_ADMIN],[Mn.DEVELOPER]:[Mn.BETA_USER,Mn.DEBUG_USER]};function zn(t,e){return t===e||(jn[t]??[]).some((t=>zn(t,e)))}function Bn(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=>zn(t,e)))}
670
675
  /**
671
676
  * @license
672
677
  * Copyright 2020 Google LLC
673
678
  * SPDX-License-Identifier: BSD-3-Clause
674
- */const Bn=Symbol.for(""),Kn=t=>{if(t?.r===Bn)return t?._$litStatic$},Zn=t=>({_$litStatic$:t,r:Bn}),Hn=new Map,Gn=(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=Kn(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=Hn.get(t))&&(a.raw=a,Hn.set(t,e=a)),i=s}return t(e,...i)})(ot);var Vn;!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"}(Vn||(Vn={}));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 Be{constructor(){super(...arguments),this.variant=Vn.body1}render(){return this.element?Gn`
675
- <${Zn(this.element)}
679
+ */const Kn=Symbol.for(""),Zn=t=>{if(t?.r===Kn)return t?._$litStatic$},Hn=t=>({_$litStatic$:t,r:Kn}),Gn=new Map,Vn=(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=Zn(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=Gn.get(t))&&(a.raw=a,Gn.set(t,e=a)),i=s}return t(e,...i)})(rt);var qn;!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"}(qn||(qn={}));var Yn=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 Xn extends Ke{constructor(){super(...arguments),this.variant=qn.body1}render(){return this.element?Vn`
680
+ <${Hn(this.element)}
676
681
  class="ft-typography ft-typography--${this.variant}">
677
682
  <slot></slot>
678
- </${Zn(this.element)}>
679
- `:Gn`
683
+ </${Hn(this.element)}>
684
+ `:Vn`
680
685
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
681
- `}}Yn.styles=[Xr,Jr,Qr,tn,en,on,rn,nn,an,sn,ln,...cn],qn([E()],Yn.prototype,"element",void 0),qn([E()],Yn.prototype,"variant",void 0),T("ft-typography")(Yn);
686
+ `}}Xn.styles=[Jr,Qr,tn,en,on,rn,nn,an,sn,ln,cn,...fn],Yn([E()],Xn.prototype,"element",void 0),Yn([E()],Xn.prototype,"variant",void 0),W("ft-typography")(Xn);
682
687
  /**
683
688
  * @license
684
689
  * Copyright 2017 Google LLC
685
690
  * SPDX-License-Identifier: BSD-3-Clause
686
691
  */
687
- const Xn=1,Jn=2,Qn=t=>(...e)=>({_$litDirective$:t,values:e});class ta{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)}}
692
+ const Jn=1,Qn=2,ta=t=>(...e)=>({_$litDirective$:t,values:e});class ea{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)}}
688
693
  /**
689
694
  * @license
690
695
  * Copyright 2017 Google LLC
691
696
  * SPDX-License-Identifier: BSD-3-Clause
692
- */let ea=class extends ta{constructor(t){if(super(t),this.et=nt,t.type!==Jn)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:[]}}};ea.directiveName="unsafeHTML",ea.resultType=1;const ia=Qn(ea);var oa,ra,na;!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;"}(oa||(oa={})),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;"}(ra||(ra={})),new Map([...["abw"].map((t=>[t,ra.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,ra.AUDIO])),...["avi"].map((t=>[t,ra.AVI])),...["chm","xhs"].map((t=>[t,ra.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,ra.CODE])),...["csv"].map((t=>[t,ra.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ra.DITA])),...["epub"].map((t=>[t,ra.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ra.EXCEL])),...["flac"].map((t=>[t,ra.FLAC])),...["gif"].map((t=>[t,ra.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ra.GZIP])),...["html","htm","xhtml"].map((t=>[t,ra.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,ra.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ra.JPEG])),...["json"].map((t=>[t,ra.JSON])),...["m4a","m4p"].map((t=>[t,ra.M4A])),...["mov","qt"].map((t=>[t,ra.MOV])),...["mp3"].map((t=>[t,ra.MP3])),...["mp4","m4v"].map((t=>[t,ra.MP4])),...["ogg","oga"].map((t=>[t,ra.OGG])),...["pdf","ps"].map((t=>[t,ra.PDF])),...["png"].map((t=>[t,ra.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ra.POWERPOINT])),...["rar"].map((t=>[t,ra.RAR])),...["stp"].map((t=>[t,ra.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ra.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,ra.VIDEO])),...["wav"].map((t=>[t,ra.WAV])),...["wma"].map((t=>[t,ra.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ra.WORD])),...["xml","xsl","rdf"].map((t=>[t,ra.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ra.YAML])),...["zip"].map((t=>[t,ra.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(na||(na={}));var aa=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 Be{constructor(){super(...arguments),this.resolvedIcon=he}render(){const t=this.variant&&Object.values(na).includes(this.variant)?this.variant:na.fluid_topics,e=t!==na.material||!!this.value;return ce`
697
+ */let ia=class extends ea{constructor(t){if(super(t),this.et=at,t.type!==Qn)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===at||null==t)return this.vt=void 0,this.et=t;if(t===nt)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:[]}}};ia.directiveName="unsafeHTML",ia.resultType=1;const oa=ta(ia);var ra,na,aa;!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;"}(ra||(ra={})),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;"}(na||(na={})),new Map([...["abw"].map((t=>[t,na.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,na.AUDIO])),...["avi"].map((t=>[t,na.AVI])),...["chm","xhs"].map((t=>[t,na.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,na.CODE])),...["csv"].map((t=>[t,na.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,na.DITA])),...["epub"].map((t=>[t,na.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,na.EXCEL])),...["flac"].map((t=>[t,na.FLAC])),...["gif"].map((t=>[t,na.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,na.GZIP])),...["html","htm","xhtml"].map((t=>[t,na.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,na.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,na.JPEG])),...["json"].map((t=>[t,na.JSON])),...["m4a","m4p"].map((t=>[t,na.M4A])),...["mov","qt"].map((t=>[t,na.MOV])),...["mp3"].map((t=>[t,na.MP3])),...["mp4","m4v"].map((t=>[t,na.MP4])),...["ogg","oga"].map((t=>[t,na.OGG])),...["pdf","ps"].map((t=>[t,na.PDF])),...["png"].map((t=>[t,na.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,na.POWERPOINT])),...["rar"].map((t=>[t,na.RAR])),...["stp"].map((t=>[t,na.STP])),...["txt","rtf","md","mdown"].map((t=>[t,na.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,na.VIDEO])),...["wav"].map((t=>[t,na.WAV])),...["wma"].map((t=>[t,na.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,na.WORD])),...["xml","xsl","rdf"].map((t=>[t,na.XML])),...["yaml","yml","x-yaml"].map((t=>[t,na.YAML])),...["zip"].map((t=>[t,na.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(aa||(aa={}));var sa=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 la extends Ke{constructor(){super(...arguments),this.resolvedIcon=de}render(){const t=this.variant&&Object.values(aa).includes(this.variant)?this.variant:aa.fluid_topics,e=t!==aa.material||!!this.value;return fe`
693
698
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
694
- ${ia(this.resolvedIcon)}
699
+ ${oa(this.resolvedIcon)}
695
700
  <slot ?hidden=${e}></slot>
696
701
  </i>
697
- `}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 na.file_format:this.resolvedIcon=null!==(t=ra[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case na.material:this.resolvedIcon=this.value||he;break;default:this.resolvedIcon=null!==(e=oa[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}sa.elementDefinitions={},sa.styles=un,aa([E()],sa.prototype,"variant",void 0),aa([E()],sa.prototype,"value",void 0),aa([k()],sa.prototype,"resolvedIcon",void 0),aa([I("slot")],sa.prototype,"slottedContent",void 0),T("ft-icon")(sa);const la=Ee.create("--ft-tooltip-distance","","SIZE","4px"),ca=Ee.create("--ft-tooltip-color","","COLOR","#FFFFFF"),fa=Ee.create("--ft-tooltip-background-color","","COLOR","#666666"),ha=Ee.create("--ft-tooltip-z-index","","NUMBER","100"),da=Ee.external(Ae.borderRadiusS,"Design system"),ua=Ee.create("--ft-tooltip-max-width","","SIZE","150px"),pa=Et`
702
+ `}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 aa.file_format:this.resolvedIcon=null!==(t=na[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case aa.material:this.resolvedIcon=this.value||de;break;default:this.resolvedIcon=null!==(e=ra[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}la.elementDefinitions={},la.styles=pn,sa([E()],la.prototype,"variant",void 0),sa([E()],la.prototype,"value",void 0),sa([k()],la.prototype,"resolvedIcon",void 0),sa([U("slot")],la.prototype,"slottedContent",void 0),W("ft-icon")(la);const ca=ke.create("--ft-tooltip-distance","","SIZE","4px"),fa=ke.create("--ft-tooltip-color","","COLOR","#FFFFFF"),ha=ke.create("--ft-tooltip-background-color","","COLOR","#666666"),da=ke.create("--ft-tooltip-z-index","","NUMBER","100"),ua=ke.external(_e.borderRadiusS,"Design system"),pa=ke.create("--ft-tooltip-max-width","","SIZE","150px"),ya=kt`
698
703
  .ft-tooltip--container {
699
704
  display: block;
700
705
  }
@@ -709,21 +714,21 @@ const Xn=1,Jn=2,Qn=t=>(...e)=>({_$litDirective$:t,values:e});class ta{constructo
709
714
  box-sizing: border-box;
710
715
  overflow: hidden;
711
716
  width: max-content;
712
- max-width: ${ua};
717
+ max-width: ${pa};
713
718
  text-align: center;
714
- padding: ${la};
715
- z-index: ${ha};
719
+ padding: ${ca};
720
+ z-index: ${da};
716
721
  }
717
722
 
718
723
  .ft-tooltip--content {
719
724
  padding: 4px 8px;
720
- border-radius: ${da};
721
- background-color: ${fa};
722
- color: ${ca};
725
+ border-radius: ${ua};
726
+ background-color: ${ha};
727
+ color: ${fa};
723
728
  position: relative;
724
729
  word-break: break-word;
725
730
  }
726
- `,ya=["start","end"],ga=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ya[0],e+"-"+ya[1])),[]),ba=Math.min,va=Math.max,ma=Math.round,xa=t=>({x:t,y:t}),wa={left:"right",right:"left",bottom:"top",top:"bottom"},Oa={start:"end",end:"start"};function Sa(t,e,i){return va(t,ba(e,i))}function $a(t,e){return"function"==typeof t?t(e):t}function Na(t){return t.split("-")[0]}function Ca(t){return t.split("-")[1]}function Ea(t){return"x"===t?"y":"x"}function ka(t){return"y"===t?"height":"width"}function Ra(t){return["top","bottom"].includes(Na(t))?"y":"x"}function Ia(t){return Ea(Ra(t))}function Ua(t){return t.replace(/left|right|bottom|top/g,(t=>wa[t]))}function La(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Aa(t,e,i){let{reference:o,floating:r}=t;const n=Ra(e),a=Ia(e),s=ka(a),l=Na(e),c="y"===n,f=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[s]/2-r[s]/2;let u;switch(l){case"top":u={x:f,y:o.y-r.height};break;case"bottom":u={x:f,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:h};break;case"left":u={x:o.x-r.width,y:h};break;default:u={x:o.x,y:o.y}}switch(Ca(e)){case"start":u[a]-=d*(i&&c?-1:1);break;case"end":u[a]+=d*(i&&c?-1:1)}return u}async function _a(t,e){var i;void 0===e&&(e={});const{x:o,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:u=0}=$a(e,t),p=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(u),y=s[d?"floating"===h?"reference":"floating":h],g=La(await n.getClippingRect({element:null==(i=await(null==n.isElement?void 0:n.isElement(y)))||i?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===h?{...a.floating,x:o,y:r}:a.reference,v=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),m=await(null==n.isElement?void 0:n.isElement(v))&&await(null==n.getScale?void 0:n.getScale(v))||{x:1,y:1},x=La(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-x.top+p.top)/m.y,bottom:(x.bottom-g.bottom+p.bottom)/m.y,left:(g.left-x.left+p.left)/m.x,right:(x.right-g.right+p.right)/m.x}}function Ta(t,e,i){return(t?[...i.filter((e=>Ca(e)===t)),...i.filter((e=>Ca(e)!==t))]:i.filter((t=>Na(t)===t))).filter((i=>!t||(Ca(i)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Oa[t]))}(i)!==i)))}const Wa=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,o,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:d=ga,autoAlignment:u=!0,...p}=$a(t,e),y=void 0!==h||d===ga?Ta(h||null,u,d):d,g=await _a(e,p),b=(null==(i=a.autoPlacement)?void 0:i.index)||0,v=y[b];if(null==v)return{};const m=function(t,e,i){void 0===i&&(i=!1);const o=Ca(t),r=Ia(t),n=ka(r);let a="x"===r?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=Ua(a)),[a,Ua(a)]}(v,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==v)return{reset:{placement:y[0]}};const x=[g[Na(v)],g[m[0]],g[m[1]]],w=[...(null==(o=a.autoPlacement)?void 0:o.overflows)||[],{placement:v,overflows:x}],O=y[b+1];if(O)return{data:{index:b+1,overflows:w},reset:{placement:O}};const S=w.map((t=>{const e=Ca(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),$=S.filter((t=>t[2].slice(0,Ca(t[0])?2:3).every((t=>t<=0)))),N=(null==(r=$[0])?void 0:r[0])||S[0][0];return N!==s?{data:{index:b+1,overflows:w},reset:{placement:N}}:{}}}};function Da(t){return Ma(t)?(t.nodeName||"").toLowerCase():"#document"}function Fa(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Pa(t){var e;return null==(e=(Ma(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Ma(t){return t instanceof Node||t instanceof Fa(t).Node}function za(t){return t instanceof Element||t instanceof Fa(t).Element}function ja(t){return t instanceof HTMLElement||t instanceof Fa(t).HTMLElement}function Ba(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Fa(t).ShadowRoot)}function Ka(t){const{overflow:e,overflowX:i,overflowY:o,display:r}=qa(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(r)}function Za(t){return["table","td","th"].includes(Da(t))}function Ha(t){const e=Ga(),i=qa(t);return"none"!==i.transform||"none"!==i.perspective||!!i.containerType&&"normal"!==i.containerType||!e&&!!i.backdropFilter&&"none"!==i.backdropFilter||!e&&!!i.filter&&"none"!==i.filter||["transform","perspective","filter"].some((t=>(i.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(i.contain||"").includes(t)))}function Ga(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Va(t){return["html","body","#document"].includes(Da(t))}function qa(t){return Fa(t).getComputedStyle(t)}function Ya(t){return za(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Xa(t){if("html"===Da(t))return t;const e=t.assignedSlot||t.parentNode||Ba(t)&&t.host||Pa(t);return Ba(e)?e.host:e}function Ja(t){const e=Xa(t);return Va(e)?t.ownerDocument?t.ownerDocument.body:t.body:ja(e)&&Ka(e)?e:Ja(e)}function Qa(t,e,i){var o;void 0===e&&(e=[]),void 0===i&&(i=!0);const r=Ja(t),n=r===(null==(o=t.ownerDocument)?void 0:o.body),a=Fa(r);return n?e.concat(a,a.visualViewport||[],Ka(r)?r:[],a.frameElement&&i?Qa(a.frameElement):[]):e.concat(r,Qa(r,[],i))}function ts(t){const e=qa(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=ja(t),n=r?t.offsetWidth:i,a=r?t.offsetHeight:o,s=ma(i)!==n||ma(o)!==a;return s&&(i=n,o=a),{width:i,height:o,$:s}}function es(t){return za(t)?t:t.contextElement}function is(t){const e=es(t);if(!ja(e))return xa(1);const i=e.getBoundingClientRect(),{width:o,height:r,$:n}=ts(e);let a=(n?ma(i.width):i.width)/o,s=(n?ma(i.height):i.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const os=xa(0);function rs(t){const e=Fa(t);return Ga()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:os}function ns(t,e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1);const r=t.getBoundingClientRect(),n=es(t);let a=xa(1);e&&(o?za(o)&&(a=is(o)):a=is(t));const s=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==Fa(t))&&e}(n,i,o)?rs(n):xa(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,f=r.width/a.x,h=r.height/a.y;if(n){const t=Fa(n),e=o&&za(o)?Fa(o):o;let i=t.frameElement;for(;i&&o&&e!==t;){const t=is(i),e=i.getBoundingClientRect(),o=qa(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,n=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,h*=t.y,l+=r,c+=n,i=Fa(i).frameElement}}return La({width:f,height:h,x:l,y:c})}function as(t){return ns(Pa(t)).left+Ya(t).scrollLeft}function ss(t,e,i){let o;if("viewport"===e)o=function(t,e){const i=Fa(t),o=Pa(t),r=i.visualViewport;let n=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=Ga();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,i);else if("document"===e)o=function(t){const e=Pa(t),i=Ya(t),o=t.ownerDocument.body,r=va(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),n=va(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-i.scrollLeft+as(t);const s=-i.scrollTop;return"rtl"===qa(o).direction&&(a+=va(e.clientWidth,o.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Pa(t));else if(za(e))o=function(t,e){const i=ns(t,!0,"fixed"===e),o=i.top+t.clientTop,r=i.left+t.clientLeft,n=ja(t)?is(t):xa(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:o*n.y}}(e,i);else{const i=rs(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return La(o)}function ls(t,e){const i=Xa(t);return!(i===e||!za(i)||Va(i))&&("fixed"===qa(i).position||ls(i,e))}function cs(t,e,i){const o=ja(e),r=Pa(e),n="fixed"===i,a=ns(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=xa(0);if(o||!o&&!n)if(("body"!==Da(e)||Ka(r))&&(s=Ya(e)),o){const t=ns(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=as(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function fs(t,e){return ja(t)&&"fixed"!==qa(t).position?e?e(t):t.offsetParent:null}function hs(t,e){const i=Fa(t);if(!ja(t))return i;let o=fs(t,e);for(;o&&Za(o)&&"static"===qa(o).position;)o=fs(o,e);return o&&("html"===Da(o)||"body"===Da(o)&&"static"===qa(o).position&&!Ha(o))?i:o||function(t){let e=Xa(t);for(;ja(e)&&!Va(e);){if(Ha(e))return e;e=Xa(e)}return null}(t)||i}const ds={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:i,strategy:o}=t;const r=ja(i),n=Pa(i);if(i===n)return e;let a={scrollLeft:0,scrollTop:0},s=xa(1);const l=xa(0);if((r||!r&&"fixed"!==o)&&(("body"!==Da(i)||Ka(n))&&(a=Ya(i)),ja(i))){const t=ns(i);s=is(i),l.x=t.x+i.clientLeft,l.y=t.y+i.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Pa,getClippingRect:function(t){let{element:e,boundary:i,rootBoundary:o,strategy:r}=t;const n="clippingAncestors"===i?function(t,e){const i=e.get(t);if(i)return i;let o=Qa(t,[],!1).filter((t=>za(t)&&"body"!==Da(t))),r=null;const n="fixed"===qa(t).position;let a=n?Xa(t):t;for(;za(a)&&!Va(a);){const e=qa(a),i=Ha(a);i||"fixed"!==e.position||(r=null),(n?!i&&!r:!i&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Ka(a)&&!i&&ls(t,a))?o=o.filter((t=>t!==a)):r=e,a=Xa(a)}return e.set(t,o),o}(e,this._c):[].concat(i),a=[...n,o],s=a[0],l=a.reduce(((t,i)=>{const o=ss(e,i,r);return t.top=va(o.top,t.top),t.right=ba(o.right,t.right),t.bottom=ba(o.bottom,t.bottom),t.left=va(o.left,t.left),t}),ss(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:hs,getElementRects:async function(t){let{reference:e,floating:i,strategy:o}=t;const r=this.getOffsetParent||hs,n=this.getDimensions;return{reference:cs(e,await r(i),o),floating:{x:0,y:0,...await n(i)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return ts(t)},getScale:is,isElement:za,isRTL:function(t){return"rtl"===qa(t).direction}},us=(t,e,i)=>{const o=new Map,r={platform:ds,...i},n={...r.platform,_c:o};return(async(t,e,i)=>{const{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:a}=i,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=Aa(c,o,l),d=o,u={},p=0;for(let i=0;i<s.length;i++){const{name:n,fn:y}=s[i],{x:g,y:b,data:v,reset:m}=await y({x:f,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:u,rects:c,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,u={...u,[n]:{...u[n],...v}},m&&p<=50&&(p++,"object"==typeof m&&(m.placement&&(d=m.placement),m.rects&&(c=!0===m.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):m.rects),({x:f,y:h}=Aa(c,d,l))),i=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:u}})(t,e,{...r,platform:n})};var ps=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 ys 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 L,this.revealDebouncer=new L}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ce`
731
+ `,ga=["start","end"],ba=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ga[0],e+"-"+ga[1])),[]),va=Math.min,ma=Math.max,xa=Math.round,wa=t=>({x:t,y:t}),Oa={left:"right",right:"left",bottom:"top",top:"bottom"},Sa={start:"end",end:"start"};function $a(t,e,i){return ma(t,va(e,i))}function Na(t,e){return"function"==typeof t?t(e):t}function Ca(t){return t.split("-")[0]}function Ea(t){return t.split("-")[1]}function ka(t){return"x"===t?"y":"x"}function Ra(t){return"y"===t?"height":"width"}function Ia(t){return["top","bottom"].includes(Ca(t))?"y":"x"}function Ua(t){return ka(Ia(t))}function La(t){return t.replace(/left|right|bottom|top/g,(t=>Oa[t]))}function Aa(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function _a(t,e,i){let{reference:o,floating:r}=t;const n=Ia(e),a=Ua(e),s=Ra(a),l=Ca(e),c="y"===n,f=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[s]/2-r[s]/2;let u;switch(l){case"top":u={x:f,y:o.y-r.height};break;case"bottom":u={x:f,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:h};break;case"left":u={x:o.x-r.width,y:h};break;default:u={x:o.x,y:o.y}}switch(Ea(e)){case"start":u[a]-=d*(i&&c?-1:1);break;case"end":u[a]+=d*(i&&c?-1:1)}return u}async function Ta(t,e){var i;void 0===e&&(e={});const{x:o,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:u=0}=Na(e,t),p=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(u),y=s[d?"floating"===h?"reference":"floating":h],g=Aa(await n.getClippingRect({element:null==(i=await(null==n.isElement?void 0:n.isElement(y)))||i?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:f,strategy:l})),b="floating"===h?{...a.floating,x:o,y:r}:a.reference,v=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),m=await(null==n.isElement?void 0:n.isElement(v))&&await(null==n.getScale?void 0:n.getScale(v))||{x:1,y:1},x=Aa(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-x.top+p.top)/m.y,bottom:(x.bottom-g.bottom+p.bottom)/m.y,left:(g.left-x.left+p.left)/m.x,right:(x.right-g.right+p.right)/m.x}}function Wa(t,e,i){return(t?[...i.filter((e=>Ea(e)===t)),...i.filter((e=>Ea(e)!==t))]:i.filter((t=>Ca(t)===t))).filter((i=>!t||(Ea(i)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Sa[t]))}(i)!==i)))}const Da=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,o,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:f=!1,alignment:h,allowedPlacements:d=ba,autoAlignment:u=!0,...p}=Na(t,e),y=void 0!==h||d===ba?Wa(h||null,u,d):d,g=await Ta(e,p),b=(null==(i=a.autoPlacement)?void 0:i.index)||0,v=y[b];if(null==v)return{};const m=function(t,e,i){void 0===i&&(i=!1);const o=Ea(t),r=Ua(t),n=Ra(r);let a="x"===r?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=La(a)),[a,La(a)]}(v,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==v)return{reset:{placement:y[0]}};const x=[g[Ca(v)],g[m[0]],g[m[1]]],w=[...(null==(o=a.autoPlacement)?void 0:o.overflows)||[],{placement:v,overflows:x}],O=y[b+1];if(O)return{data:{index:b+1,overflows:w},reset:{placement:O}};const S=w.map((t=>{const e=Ea(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),$=S.filter((t=>t[2].slice(0,Ea(t[0])?2:3).every((t=>t<=0)))),N=(null==(r=$[0])?void 0:r[0])||S[0][0];return N!==s?{data:{index:b+1,overflows:w},reset:{placement:N}}:{}}}};function Fa(t){return ja(t)?(t.nodeName||"").toLowerCase():"#document"}function Pa(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Ma(t){var e;return null==(e=(ja(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function ja(t){return t instanceof Node||t instanceof Pa(t).Node}function za(t){return t instanceof Element||t instanceof Pa(t).Element}function Ba(t){return t instanceof HTMLElement||t instanceof Pa(t).HTMLElement}function Ka(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Pa(t).ShadowRoot)}function Za(t){const{overflow:e,overflowX:i,overflowY:o,display:r}=Ya(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(r)}function Ha(t){return["table","td","th"].includes(Fa(t))}function Ga(t){const e=Va(),i=Ya(t);return"none"!==i.transform||"none"!==i.perspective||!!i.containerType&&"normal"!==i.containerType||!e&&!!i.backdropFilter&&"none"!==i.backdropFilter||!e&&!!i.filter&&"none"!==i.filter||["transform","perspective","filter"].some((t=>(i.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(i.contain||"").includes(t)))}function Va(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function qa(t){return["html","body","#document"].includes(Fa(t))}function Ya(t){return Pa(t).getComputedStyle(t)}function Xa(t){return za(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ja(t){if("html"===Fa(t))return t;const e=t.assignedSlot||t.parentNode||Ka(t)&&t.host||Ma(t);return Ka(e)?e.host:e}function Qa(t){const e=Ja(t);return qa(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ba(e)&&Za(e)?e:Qa(e)}function ts(t,e,i){var o;void 0===e&&(e=[]),void 0===i&&(i=!0);const r=Qa(t),n=r===(null==(o=t.ownerDocument)?void 0:o.body),a=Pa(r);return n?e.concat(a,a.visualViewport||[],Za(r)?r:[],a.frameElement&&i?ts(a.frameElement):[]):e.concat(r,ts(r,[],i))}function es(t){const e=Ya(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=Ba(t),n=r?t.offsetWidth:i,a=r?t.offsetHeight:o,s=xa(i)!==n||xa(o)!==a;return s&&(i=n,o=a),{width:i,height:o,$:s}}function is(t){return za(t)?t:t.contextElement}function os(t){const e=is(t);if(!Ba(e))return wa(1);const i=e.getBoundingClientRect(),{width:o,height:r,$:n}=es(e);let a=(n?xa(i.width):i.width)/o,s=(n?xa(i.height):i.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const rs=wa(0);function ns(t){const e=Pa(t);return Va()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:rs}function as(t,e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1);const r=t.getBoundingClientRect(),n=is(t);let a=wa(1);e&&(o?za(o)&&(a=os(o)):a=os(t));const s=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==Pa(t))&&e}(n,i,o)?ns(n):wa(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,f=r.width/a.x,h=r.height/a.y;if(n){const t=Pa(n),e=o&&za(o)?Pa(o):o;let i=t.frameElement;for(;i&&o&&e!==t;){const t=os(i),e=i.getBoundingClientRect(),o=Ya(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,n=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,c*=t.y,f*=t.x,h*=t.y,l+=r,c+=n,i=Pa(i).frameElement}}return Aa({width:f,height:h,x:l,y:c})}function ss(t){return as(Ma(t)).left+Xa(t).scrollLeft}function ls(t,e,i){let o;if("viewport"===e)o=function(t,e){const i=Pa(t),o=Ma(t),r=i.visualViewport;let n=o.clientWidth,a=o.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=Va();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,i);else if("document"===e)o=function(t){const e=Ma(t),i=Xa(t),o=t.ownerDocument.body,r=ma(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),n=ma(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-i.scrollLeft+ss(t);const s=-i.scrollTop;return"rtl"===Ya(o).direction&&(a+=ma(e.clientWidth,o.clientWidth)-r),{width:r,height:n,x:a,y:s}}(Ma(t));else if(za(e))o=function(t,e){const i=as(t,!0,"fixed"===e),o=i.top+t.clientTop,r=i.left+t.clientLeft,n=Ba(t)?os(t):wa(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:o*n.y}}(e,i);else{const i=ns(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return Aa(o)}function cs(t,e){const i=Ja(t);return!(i===e||!za(i)||qa(i))&&("fixed"===Ya(i).position||cs(i,e))}function fs(t,e,i){const o=Ba(e),r=Ma(e),n="fixed"===i,a=as(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=wa(0);if(o||!o&&!n)if(("body"!==Fa(e)||Za(r))&&(s=Xa(e)),o){const t=as(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=ss(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function hs(t,e){return Ba(t)&&"fixed"!==Ya(t).position?e?e(t):t.offsetParent:null}function ds(t,e){const i=Pa(t);if(!Ba(t))return i;let o=hs(t,e);for(;o&&Ha(o)&&"static"===Ya(o).position;)o=hs(o,e);return o&&("html"===Fa(o)||"body"===Fa(o)&&"static"===Ya(o).position&&!Ga(o))?i:o||function(t){let e=Ja(t);for(;Ba(e)&&!qa(e);){if(Ga(e))return e;e=Ja(e)}return null}(t)||i}const us={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:i,strategy:o}=t;const r=Ba(i),n=Ma(i);if(i===n)return e;let a={scrollLeft:0,scrollTop:0},s=wa(1);const l=wa(0);if((r||!r&&"fixed"!==o)&&(("body"!==Fa(i)||Za(n))&&(a=Xa(i)),Ba(i))){const t=as(i);s=os(i),l.x=t.x+i.clientLeft,l.y=t.y+i.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:Ma,getClippingRect:function(t){let{element:e,boundary:i,rootBoundary:o,strategy:r}=t;const n="clippingAncestors"===i?function(t,e){const i=e.get(t);if(i)return i;let o=ts(t,[],!1).filter((t=>za(t)&&"body"!==Fa(t))),r=null;const n="fixed"===Ya(t).position;let a=n?Ja(t):t;for(;za(a)&&!qa(a);){const e=Ya(a),i=Ga(a);i||"fixed"!==e.position||(r=null),(n?!i&&!r:!i&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||Za(a)&&!i&&cs(t,a))?o=o.filter((t=>t!==a)):r=e,a=Ja(a)}return e.set(t,o),o}(e,this._c):[].concat(i),a=[...n,o],s=a[0],l=a.reduce(((t,i)=>{const o=ls(e,i,r);return t.top=ma(o.top,t.top),t.right=va(o.right,t.right),t.bottom=va(o.bottom,t.bottom),t.left=ma(o.left,t.left),t}),ls(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:ds,getElementRects:async function(t){let{reference:e,floating:i,strategy:o}=t;const r=this.getOffsetParent||ds,n=this.getDimensions;return{reference:fs(e,await r(i),o),floating:{x:0,y:0,...await n(i)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return es(t)},getScale:os,isElement:za,isRTL:function(t){return"rtl"===Ya(t).direction}},ps=(t,e,i)=>{const o=new Map,r={platform:us,...i},n={...r.platform,_c:o};return(async(t,e,i)=>{const{placement:o="bottom",strategy:r="absolute",middleware:n=[],platform:a}=i,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:f,y:h}=_a(c,o,l),d=o,u={},p=0;for(let i=0;i<s.length;i++){const{name:n,fn:y}=s[i],{x:g,y:b,data:v,reset:m}=await y({x:f,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:u,rects:c,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,h=null!=b?b:h,u={...u,[n]:{...u[n],...v}},m&&p<=50&&(p++,"object"==typeof m&&(m.placement&&(d=m.placement),m.rects&&(c=!0===m.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):m.rects),({x:f,y:h}=_a(c,d,l))),i=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:u}})(t,e,{...r,platform:n})};var ys=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 gs extends Ke{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 A,this.revealDebouncer=new A}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return fe`
727
732
  <div part="container"
728
733
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
729
734
  @mouseenter=${this.onHover}
@@ -741,24 +746,24 @@ const Xn=1,Jn=2,Qn=t=>(...e)=>({_$litDirective$:t,values:e});class ta{constructo
741
746
  </div>
742
747
  </div>
743
748
  </div>
744
- `}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(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",us(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:i,y:o,placement:r}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:i}=t;return{x:e,y:i}}},...l}=$a(t,e),c={x:i,y:o},f=await _a(e,l),h=Ra(Na(r)),d=Ea(h);let u=c[d],p=c[h];if(n){const t="y"===d?"bottom":"right";u=Sa(u+f["y"===d?"top":"left"],u,u-f[t])}if(a){const t="y"===h?"bottom":"right";p=Sa(p+f["y"===h?"top":"left"],p,p-f[t])}const y=s.fn({...e,[d]:u,[h]:p});return{...y,data:{x:y.x-i,y:y.y-o}}}}),Wa({allowedPlacements:[this.position]})]}).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),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))}}ys.elementDefinitions={"ft-typography":Yn},ys.styles=pa,ps([E()],ys.prototype,"text",void 0),ps([E({type:Boolean})],ys.prototype,"manual",void 0),ps([E({type:Boolean})],ys.prototype,"inline",void 0),ps([E({type:Number})],ys.prototype,"delay",void 0),ps([E()],ys.prototype,"position",void 0),ps([U()],ys.prototype,"slotNodes",void 0),ps([I(".ft-tooltip--container")],ys.prototype,"container",void 0),ps([I(".ft-tooltip")],ys.prototype,"tooltip",void 0),ps([I(".ft-tooltip--content")],ys.prototype,"tooltipContent",void 0),ps([k()],ys.prototype,"visible",void 0),T("ft-tooltip")(ys);
749
+ `}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(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",ps(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:i,y:o,placement:r}=e,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:i}=t;return{x:e,y:i}}},...l}=Na(t,e),c={x:i,y:o},f=await Ta(e,l),h=Ia(Ca(r)),d=ka(h);let u=c[d],p=c[h];if(n){const t="y"===d?"bottom":"right";u=$a(u+f["y"===d?"top":"left"],u,u-f[t])}if(a){const t="y"===h?"bottom":"right";p=$a(p+f["y"===h?"top":"left"],p,p-f[t])}const y=s.fn({...e,[d]:u,[h]:p});return{...y,data:{x:y.x-i,y:y.y-o}}}}),Da({allowedPlacements:[this.position]})]}).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),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))}}gs.elementDefinitions={"ft-typography":Xn},gs.styles=ya,ys([E()],gs.prototype,"text",void 0),ys([E({type:Boolean})],gs.prototype,"manual",void 0),ys([E({type:Boolean})],gs.prototype,"inline",void 0),ys([E({type:Number})],gs.prototype,"delay",void 0),ys([E()],gs.prototype,"position",void 0),ys([L()],gs.prototype,"slotNodes",void 0),ys([U(".ft-tooltip--container")],gs.prototype,"container",void 0),ys([U(".ft-tooltip")],gs.prototype,"tooltip",void 0),ys([U(".ft-tooltip--content")],gs.prototype,"tooltipContent",void 0),ys([k()],gs.prototype,"visible",void 0),ys([R({passive:!0})],gs.prototype,"onTouch",null),ys([R({passive:!0})],gs.prototype,"onHover",null),ys([R({passive:!0})],gs.prototype,"onOut",null),W("ft-tooltip")(gs);
745
750
  /**
746
751
  * @license
747
752
  * Copyright 2018 Google LLC
748
753
  * SPDX-License-Identifier: BSD-3-Clause
749
754
  */
750
- const gs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Xn||"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 bs=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 vs 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 L(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 L(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`
755
+ const bs=ta(class extends ea{constructor(t){if(super(t),t.type!==Jn||"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 nt}});var vs=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 ms extends Ke{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 A(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 A(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 fe`
751
756
  <style>
752
757
  .ft-ripple .ft-ripple--effect {
753
758
  left: ${this.originX}px;
754
759
  top: ${this.originY}px;
755
760
  }
756
761
  </style>
757
- <div class="${gs(t)}">
762
+ <div class="${bs(t)}">
758
763
  <div class="ft-ripple--background"></div>
759
764
  <div class="ft-ripple--effect"></div>
760
765
  </div>
761
- `}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()}}vs.elementDefinitions={},vs.styles=dr,bs([E({type:Boolean})],vs.prototype,"primary",void 0),bs([E({type:Boolean})],vs.prototype,"secondary",void 0),bs([E({type:Boolean})],vs.prototype,"unbounded",void 0),bs([E({type:Boolean})],vs.prototype,"activated",void 0),bs([E({type:Boolean})],vs.prototype,"selected",void 0),bs([E({type:Boolean})],vs.prototype,"disabled",void 0),bs([k()],vs.prototype,"hovered",void 0),bs([k()],vs.prototype,"focused",void 0),bs([k()],vs.prototype,"pressed",void 0),bs([k()],vs.prototype,"rippling",void 0),bs([k()],vs.prototype,"originX",void 0),bs([k()],vs.prototype,"originY",void 0),bs([I(".ft-ripple")],vs.prototype,"ripple",void 0),bs([I(".ft-ripple--effect")],vs.prototype,"rippleEffect",void 0),T("ft-ripple")(vs);const ms={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")},xs=Et`
766
+ `}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)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",i,n),t.addEventListener("touchstart",o,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",i,n),t.removeEventListener("touchstart",o,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,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()}}ms.elementDefinitions={},ms.styles=ur,vs([E({type:Boolean})],ms.prototype,"primary",void 0),vs([E({type:Boolean})],ms.prototype,"secondary",void 0),vs([E({type:Boolean})],ms.prototype,"unbounded",void 0),vs([E({type:Boolean})],ms.prototype,"activated",void 0),vs([E({type:Boolean})],ms.prototype,"selected",void 0),vs([E({type:Boolean})],ms.prototype,"disabled",void 0),vs([k()],ms.prototype,"hovered",void 0),vs([k()],ms.prototype,"focused",void 0),vs([k()],ms.prototype,"pressed",void 0),vs([k()],ms.prototype,"rippling",void 0),vs([k()],ms.prototype,"originX",void 0),vs([k()],ms.prototype,"originY",void 0),vs([U(".ft-ripple")],ms.prototype,"ripple",void 0),vs([U(".ft-ripple--effect")],ms.prototype,"rippleEffect",void 0),W("ft-ripple")(ms);const xs={borderRadiusLeft:ke.extend("--ft-switch-option-border-radius-left","",_e.borderRadiusL),borderRadiusRight:ke.extend("--ft-switch-option-border-radius-right","",_e.borderRadiusL),borderWidthLeft:ke.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:ke.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:ke.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},ws=kt`
762
767
  .ft-switch-option {
763
768
  position: relative;
764
769
  display: inline-block;
@@ -772,20 +777,20 @@ const gs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Xn||"class"!==t
772
777
  }
773
778
 
774
779
  .ft-switch-option--content {
775
- --ft-switch-option-internal-line-height: calc(${Sn.fontSize} + 2px);
776
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Sn.iconSize});
780
+ --ft-switch-option-internal-line-height: calc(${$n.fontSize} + 2px);
781
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${$n.iconSize});
777
782
 
778
783
  border-style: solid;
779
- border-color: ${Sn.borderColor};
780
- border-width: ${ms.borderWidthVertical} ${ms.borderWidthRight} ${ms.borderWidthVertical} ${ms.borderWidthLeft};
781
- border-radius: ${ms.borderRadiusLeft} ${ms.borderRadiusRight} ${ms.borderRadiusRight} ${ms.borderRadiusLeft};
784
+ border-color: ${$n.borderColor};
785
+ border-width: ${xs.borderWidthVertical} ${xs.borderWidthRight} ${xs.borderWidthVertical} ${xs.borderWidthLeft};
786
+ border-radius: ${xs.borderRadiusLeft} ${xs.borderRadiusRight} ${xs.borderRadiusRight} ${xs.borderRadiusLeft};
782
787
  display: flex;
783
788
  align-items: center;
784
789
  justify-content: center;
785
790
  overflow: hidden;
786
- ${ke(dn.size,Sn.iconSize)};
791
+ ${Re(un.size,$n.iconSize)};
787
792
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
788
- background-color: ${Sn.backgroundColor};
793
+ background-color: ${$n.backgroundColor};
789
794
  -webkit-mask-image: radial-gradient(white, black);
790
795
  }
791
796
 
@@ -794,28 +799,28 @@ const gs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Xn||"class"!==t
794
799
  }
795
800
 
796
801
  .ft-switch-option--selected .ft-switch-option--content:before {
797
- background-color: ${Sn.selectedBackgroundColor};
798
- border-radius: ${ms.borderRadiusLeft} ${ms.borderRadiusRight} ${ms.borderRadiusRight} ${ms.borderRadiusLeft};
802
+ background-color: ${$n.selectedBackgroundColor};
803
+ border-radius: ${xs.borderRadiusLeft} ${xs.borderRadiusRight} ${xs.borderRadiusRight} ${xs.borderRadiusLeft};
799
804
  position: absolute;
800
805
  inset: 0;
801
806
  content: "";
802
807
  z-index: 1;
803
- opacity: ${Ae.opacityPrimaryOnSurfaceSelected};
808
+ opacity: ${_e.opacityPrimaryOnSurfaceSelected};
804
809
  }
805
810
 
806
811
  .ft-switch-option--label {
807
- color: ${Sn.textColor};
812
+ color: ${$n.textColor};
808
813
  overflow: hidden;
809
814
  white-space: nowrap;
810
815
  text-overflow: ellipsis;
811
816
  display: block;
812
817
  margin: 0 8px;
813
- ${ke(Yr.fontSize,Sn.fontSize)};
814
- ${ke(Yr.lineHeight,"var(--ft-switch-option-internal-content-height)")}
818
+ ${Re(Xr.fontSize,$n.fontSize)};
819
+ ${Re(Xr.lineHeight,"var(--ft-switch-option-internal-content-height)")}
815
820
  }
816
821
 
817
822
  .ft-switch-option--selected .ft-switch-option--label {
818
- color: ${Sn.selectedTextColor};
823
+ color: ${$n.selectedTextColor};
819
824
  }
820
825
 
821
826
  .ft-switch-option--label[hidden] {
@@ -823,7 +828,7 @@ const gs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Xn||"class"!==t
823
828
  }
824
829
 
825
830
  .ft-switch-option--ripple {
826
- ${ke(nr.color,Sn.rippleColor)};
831
+ ${Re(ar.color,$n.rippleColor)};
827
832
  }
828
833
 
829
834
  ft-icon, ft-ripple, ft-typography {
@@ -836,20 +841,20 @@ const gs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Xn||"class"!==t
836
841
 
837
842
  ft-icon {
838
843
  flex-shrink: 0;
839
- color: ${Sn.iconColor};
844
+ color: ${$n.iconColor};
840
845
  }
841
846
 
842
847
  .ft-switch-option--selected ft-icon {
843
- color: ${Sn.selectedTextColor};
848
+ color: ${$n.selectedTextColor};
844
849
  }
845
- `;var ws=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 Os extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class Ss extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class $s 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 Ss(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`
846
- <label part="label" for="input" class=${gs(t)}
850
+ `;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 Ss extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class $s extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class Ns extends Ke{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 $s(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(fe`
851
+ <label part="label" for="input" class=${bs(t)}
847
852
  @click=${this.onChange}>
848
853
  <div class="ft-switch-option--content">
849
854
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
850
855
  <ft-typography part="text"
851
856
  variant="button"
852
- class="ft-switch-option--label ${Jo?"ft-safari-ellipsis-fix":""}"
857
+ class="ft-switch-option--label ${Qo?"ft-safari-ellipsis-fix":""}"
853
858
  ?hidden=${!this.hasTextContent()}>
854
859
  <slot @slotchange=${this.onSlotchange}></slot>
855
860
  </ft-typography>
@@ -858,29 +863,29 @@ const gs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Xn||"class"!==t
858
863
  </label>
859
864
  <input id="input" type="radio" class="ft-switch-option--input"
860
865
  .checked=${this.selected}>
861
- `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:ce`
866
+ `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:fe`
862
867
  <ft-tooltip part="tooltip"
863
868
  text="${this.getLabel()}"
864
869
  position="${this.tooltipPosition}">
865
870
  ${t}
866
871
  </ft-tooltip>
867
- `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new Os(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?ce`
872
+ `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new Ss(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?fe`
868
873
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
869
- `:he}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()}}$s.elementDefinitions={"ft-ripple":vs,"ft-typography":Yn,"ft-tooltip":ys,"ft-icon":sa},$s.styles=[He,xs],ws([E()],$s.prototype,"value",void 0),ws([E()],$s.prototype,"icon",void 0),ws([E()],$s.prototype,"iconVariant",void 0),ws([E()],$s.prototype,"label",void 0),ws([E()],$s.prototype,"tooltipPosition",void 0),ws([E({type:Boolean,reflect:!0})],$s.prototype,"selected",void 0),ws([E({type:Boolean})],$s.prototype,"trailingIcon",void 0),ws([E({type:Boolean})],$s.prototype,"unselectable",void 0),ws([I(".ft-switch-option--content slot")],$s.prototype,"slottedContent",void 0),ws([I(".ft-switch-option--input")],$s.prototype,"input",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 Cs extends CustomEvent{constructor(t){super("change",{detail:t})}}class Es 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`
870
- <div @keydown=${this.onKeyDown} tabindex="0" class="${gs(t)}">
874
+ `:de}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()}}Ns.elementDefinitions={"ft-ripple":ms,"ft-typography":Xn,"ft-tooltip":gs,"ft-icon":la},Ns.styles=[Ge,ws],Os([E()],Ns.prototype,"value",void 0),Os([E()],Ns.prototype,"icon",void 0),Os([E()],Ns.prototype,"iconVariant",void 0),Os([E()],Ns.prototype,"label",void 0),Os([E()],Ns.prototype,"tooltipPosition",void 0),Os([E({type:Boolean,reflect:!0})],Ns.prototype,"selected",void 0),Os([E({type:Boolean})],Ns.prototype,"trailingIcon",void 0),Os([E({type:Boolean})],Ns.prototype,"unselectable",void 0),Os([U(".ft-switch-option--content slot")],Ns.prototype,"slottedContent",void 0),Os([U(".ft-switch-option--input")],Ns.prototype,"input",void 0);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 Es extends CustomEvent{constructor(t){super("change",{detail:t})}}class ks extends Ke{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 fe`
875
+ <div @keydown=${this.onKeyDown} tabindex="0" class="${bs(t)}">
871
876
  <slot @slotchange=${this.onSlotchange}
872
877
  @option-change=${this.onOptionChangeByScript}
873
878
  @option-change-by-user=${this.onOptionChangeByUser}
874
879
  ></slot>
875
880
  </div>
876
- `}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 $s&&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 Cs(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}))}}Es.elementDefinitions={},Es.styles=Et`
881
+ `}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 Ns&&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 Es(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}))}}ks.elementDefinitions={},ks.styles=kt`
877
882
  :host {
878
883
  display: inline-block;
879
884
  }
880
885
 
881
886
  .ft-switch {
882
- border-radius: ${Sn.borderRadius};
883
- outline-color: ${Sn.outlineColor};
887
+ border-radius: ${$n.borderRadius};
888
+ outline-color: ${$n.outlineColor};
884
889
  }
885
890
 
886
891
  .ft-switch slot {
@@ -889,25 +894,25 @@ const gs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Xn||"class"!==t
889
894
  }
890
895
 
891
896
  .ft-switch slot::slotted(ft-switch-option) {
892
- ${ke(ms.borderRadiusLeft,"0")};
893
- ${ke(ms.borderRadiusRight,"0")};
894
- ${ke(ms.borderWidthLeft,"0")};
897
+ ${Re(xs.borderRadiusLeft,"0")};
898
+ ${Re(xs.borderRadiusRight,"0")};
899
+ ${Re(xs.borderWidthLeft,"0")};
895
900
  }
896
901
 
897
902
  .ft-switch slot::slotted(ft-switch-option:first-child) {
898
- ${ke(ms.borderRadiusLeft,Sn.borderRadius)};
899
- ${ke(ms.borderWidthLeft,"1px")};
903
+ ${Re(xs.borderRadiusLeft,$n.borderRadius)};
904
+ ${Re(xs.borderWidthLeft,"1px")};
900
905
  }
901
906
 
902
907
  .ft-switch slot::slotted(ft-switch-option:last-child) {
903
- ${ke(ms.borderRadiusRight,Sn.borderRadius)};
908
+ ${Re(xs.borderRadiusRight,$n.borderRadius)};
904
909
  }
905
910
 
906
911
  .ft-switch--dense slot::slotted(ft-switch-option) {
907
912
  --ft-switch-internal-vertical-padding: 2px;
908
913
  --ft-switch-internal-horizontal-padding: 4px;
909
914
  }
910
- `,Ns([E({type:Boolean})],Es.prototype,"dense",void 0),Ns([E({type:Boolean})],Es.prototype,"unselectable",void 0),Ns([I(".ft-switch slot")],Es.prototype,"slottedContent",void 0),Ns([k()],Es.prototype,"selectedOption",void 0),Ns([I(".ft-switch")],Es.prototype,"ftSwitchDiv",void 0),T("ft-switch")(Es),T("ft-switch-option")($s);const ks=Ee.external(Ae.colorOutline,"Design system"),Rs=Ee.external(Ae.colorOnSurfaceMedium,"Design system"),Is=Et`
915
+ `,Cs([E({type:Boolean})],ks.prototype,"dense",void 0),Cs([E({type:Boolean})],ks.prototype,"unselectable",void 0),Cs([U(".ft-switch slot")],ks.prototype,"slottedContent",void 0),Cs([k()],ks.prototype,"selectedOption",void 0),Cs([U(".ft-switch")],ks.prototype,"ftSwitchDiv",void 0),W("ft-switch")(ks),W("ft-switch-option")(Ns);const Rs=ke.external(_e.colorOutline,"Design system"),Is=ke.external(_e.colorOnSurfaceMedium,"Design system"),Us=kt`
911
916
  :host {
912
917
  display: block;
913
918
  }
@@ -918,17 +923,17 @@ const gs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Xn||"class"!==t
918
923
 
919
924
  ft-icon {
920
925
  transform: rotate(-45deg);
921
- color: ${ks};
926
+ color: ${Rs};
922
927
  }
923
928
 
924
929
  .ft-resizer--dragging ft-icon,
925
930
  .ft-resizer:hover ft-icon {
926
- color: ${Rs};
931
+ color: ${Is};
927
932
  }
928
- `;var Us=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 Ls extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class As extends Be{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=na.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`
933
+ `;var Ls=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 CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class _s extends Ke{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=aa.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 fe`
929
934
  <style>
930
935
  .ft-resizer {
931
- cursor: ${Ct(this.cursor)}
936
+ cursor: ${Et(this.cursor)}
932
937
  }
933
938
  </style>
934
939
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
@@ -936,25 +941,25 @@ const gs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Xn||"class"!==t
936
941
  @touchstart=${this.initDragFromTouch}>
937
942
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
938
943
  </div>
939
- `}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 Ls(i,o))}}As.elementDefinitions={"ft-icon":sa},As.styles=[Ze,Is],Us([E({type:Number})],As.prototype,"initialWidth",void 0),Us([E({type:Number})],As.prototype,"initialHeight",void 0),Us([E()],As.prototype,"icon",void 0),Us([E()],As.prototype,"iconVariant",void 0),Us([E()],As.prototype,"cursor",void 0),Us([k()],As.prototype,"dragging",void 0),T("ft-resizer")(As);const _s={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")},Ts=Et`
944
+ `}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 As(i,o))}}_s.elementDefinitions={"ft-icon":la},_s.styles=[He,Us],Ls([E({type:Number})],_s.prototype,"initialWidth",void 0),Ls([E({type:Number})],_s.prototype,"initialHeight",void 0),Ls([E()],_s.prototype,"icon",void 0),Ls([E()],_s.prototype,"iconVariant",void 0),Ls([E()],_s.prototype,"cursor",void 0),Ls([k()],_s.prototype,"dragging",void 0),Ls([R({passive:!0})],_s.prototype,"initDragFromMouse",null),Ls([R({passive:!0})],_s.prototype,"initDragFromTouch",null),W("ft-resizer")(_s);const Ts={fontSize:ke.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:ke.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:ke.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:ke.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:ke.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:ke.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:ke.extend("--ft-input-label-border-color","",_e.colorOutline),textColor:ke.extend("--ft-input-label-text-color","",_e.colorOnSurfaceMedium),disabledTextColor:ke.extend("--ft-input-label-disabled-text-color","",_e.colorOnSurfaceDisabled),colorSurface:ke.external(_e.colorSurface,"Design system"),borderRadiusS:ke.external(_e.borderRadiusS,"Design system"),colorError:ke.external(_e.colorError,"Design system")},Ws=kt`
940
945
  .ft-input-label {
941
946
  position: absolute;
942
947
  inset: 0;
943
948
  display: flex;
944
- background-color: ${_s.colorSurface};
945
- border-radius: ${_s.borderRadiusS} ${_s.borderRadiusS} 0 0;
949
+ background-color: ${Ts.colorSurface};
950
+ border-radius: ${Ts.borderRadiusS} ${Ts.borderRadiusS} 0 0;
946
951
  }
947
952
 
948
953
  .ft-input-label--outlined {
949
- border-radius: ${_s.borderRadiusS};
954
+ border-radius: ${Ts.borderRadiusS};
950
955
  }
951
956
 
952
957
  .ft-input-label {
953
- border-color: ${_s.borderColor};
958
+ border-color: ${Ts.borderColor};
954
959
  }
955
960
 
956
961
  .ft-input-label.ft-input-label--in-error {
957
- border-color: ${_s.colorError}
962
+ border-color: ${Ts.colorError}
958
963
  }
959
964
 
960
965
  .ft-input-label:before,
@@ -967,7 +972,7 @@ const gs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Xn||"class"!==t
967
972
  }
968
973
 
969
974
  .ft-input-label:before {
970
- width: calc(${_s.horizontalSpacing} - 4px);
975
+ width: calc(${Ts.horizontalSpacing} - 4px);
971
976
  flex-shrink: 0;
972
977
  }
973
978
 
@@ -983,20 +988,20 @@ const gs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Xn||"class"!==t
983
988
  border-bottom-width: 1px;
984
989
  border-bottom-style: solid;
985
990
  border-color: inherit;
986
- color: ${_s.textColor};
991
+ color: ${Ts.textColor};
987
992
  transition: font-size 250ms, line-height 250ms, color 250ms;
988
- max-width: calc(${_s.labelMaxWidth} - 2 * (${_s.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
993
+ max-width: calc(${Ts.labelMaxWidth} - 2 * (${Ts.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
989
994
  text-overflow: ellipsis;
990
- ${ke(Dr.fontSize,_s.fontSize)};
991
- ${ke(Dr.lineHeight,_s.fontSize)};
995
+ ${Re(Fr.fontSize,Ts.fontSize)};
996
+ ${Re(Fr.lineHeight,Ts.fontSize)};
992
997
  }
993
998
 
994
999
  .ft-input-label--in-error .ft-input-label--text {
995
- color: ${_s.colorError}
1000
+ color: ${Ts.colorError}
996
1001
  }
997
1002
 
998
1003
  .ft-input-label--disabled .ft-input-label--text {
999
- color: ${_s.disabledTextColor};
1004
+ color: ${Ts.disabledTextColor};
1000
1005
  }
1001
1006
 
1002
1007
  .ft-input-label--hidden-text {
@@ -1013,19 +1018,19 @@ const gs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Xn||"class"!==t
1013
1018
  overflow: hidden;
1014
1019
  white-space: nowrap;
1015
1020
  text-overflow: ellipsis;
1016
- padding: ${_s.verticalSpacing} 4px;
1017
- margin: calc(${_s.verticalSpacing} * -1) 0;
1021
+ padding: ${Ts.verticalSpacing} 4px;
1022
+ margin: calc(${Ts.verticalSpacing} * -1) 0;
1018
1023
  max-width: 100%;
1019
1024
  box-sizing: border-box;
1020
1025
  }
1021
1026
 
1022
1027
  .ft-input-label--raised .ft-input-label--text {
1023
- ${ke(Dr.fontSize,_s.raisedFontSize)};
1024
- ${ke(Dr.lineHeight,_s.raisedFontSize)};
1028
+ ${Re(Fr.fontSize,Ts.raisedFontSize)};
1029
+ ${Re(Fr.lineHeight,Ts.raisedFontSize)};
1025
1030
  }
1026
1031
 
1027
1032
  .ft-input-label--raised .ft-input-label--floating-text {
1028
- top: ${_s.verticalSpacing};
1033
+ top: ${Ts.verticalSpacing};
1029
1034
  }
1030
1035
 
1031
1036
  .ft-input-label--outlined .ft-input-label--text,
@@ -1038,36 +1043,36 @@ const gs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Xn||"class"!==t
1038
1043
  .ft-input-label--outlined:before {
1039
1044
  border-left-width: 1px;
1040
1045
  border-left-style: solid;
1041
- border-radius: ${_s.borderRadiusS} 0 0 ${_s.borderRadiusS};
1046
+ border-radius: ${Ts.borderRadiusS} 0 0 ${Ts.borderRadiusS};
1042
1047
  }
1043
1048
 
1044
1049
  .ft-input-label--outlined:after {
1045
1050
  border-right-width: 1px;
1046
1051
  border-right-style: solid;
1047
- border-radius: 0 ${_s.borderRadiusS} ${_s.borderRadiusS} 0;
1052
+ border-radius: 0 ${Ts.borderRadiusS} ${Ts.borderRadiusS} 0;
1048
1053
  }
1049
1054
 
1050
1055
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1051
1056
  padding: 2px 4px;
1052
- z-index: ${_s.raisedZIndex};
1053
- background-color: ${_s.colorSurface};
1054
- border-radius: ${_s.borderRadiusS};
1057
+ z-index: ${Ts.raisedZIndex};
1058
+ background-color: ${Ts.colorSurface};
1059
+ border-radius: ${Ts.borderRadiusS};
1055
1060
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
1056
1061
  }
1057
1062
 
1058
1063
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1059
1064
  border-top: none;
1060
1065
  }
1061
- `;var Ws=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 Ds 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`
1062
- <div class="${gs(t)}">
1063
- ${this.text?ce`
1066
+ `;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 Fs extends Ke{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 fe`
1067
+ <div class="${bs(t)}">
1068
+ ${this.text?fe`
1064
1069
  <div class="ft-input-label--text ft-typography--caption">
1065
1070
  <span class="ft-input-label--floating-text">${this.text}</span>
1066
1071
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1067
1072
  </div>
1068
1073
  `:null}
1069
1074
  </div>
1070
- `}}Ds.elementDefinitions={},Ds.styles=[rn,Ts],Ws([E({type:String})],Ds.prototype,"text",void 0),Ws([E({type:Boolean})],Ds.prototype,"raised",void 0),Ws([E({type:Boolean})],Ds.prototype,"outlined",void 0),Ws([E({type:Boolean})],Ds.prototype,"disabled",void 0),Ws([E({type:Boolean})],Ds.prototype,"error",void 0),T("ft-input-label")(Ds);const Fs={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")},Ps=Et`
1075
+ `}}Fs.elementDefinitions={},Fs.styles=[nn,Ws],Ds([E({type:String})],Fs.prototype,"text",void 0),Ds([E({type:Boolean})],Fs.prototype,"raised",void 0),Ds([E({type:Boolean})],Fs.prototype,"outlined",void 0),Ds([E({type:Boolean})],Fs.prototype,"disabled",void 0),Ds([E({type:Boolean})],Fs.prototype,"error",void 0),W("ft-input-label")(Fs);const Ps={fontSize:ke.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:ke.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:ke.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:ke.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:ke.extend("--ft-text-area-helper-color","",_e.colorOnSurfaceMedium),colorPrimary:ke.external(_e.colorPrimary,"Design system"),colorOnSurface:ke.external(_e.colorOnSurface,"Design system"),colorOnSurfaceDisabled:ke.external(_e.colorOnSurfaceDisabled,"Design system"),borderRadiusS:ke.external(_e.borderRadiusS,"Design system"),colorError:ke.external(_e.colorError,"Design system")},Ms=kt`
1071
1076
  *:focus {
1072
1077
  outline: none;
1073
1078
  }
@@ -1079,10 +1084,10 @@ const gs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Xn||"class"!==t
1079
1084
  }
1080
1085
 
1081
1086
  ft-input-label {
1082
- ${ke(_s.fontSize,Fs.fontSize)};
1083
- ${ke(_s.raisedFontSize,Fs.labelSize)};
1084
- ${ke(_s.verticalSpacing,Fs.verticalSpacing)};
1085
- ${ke(_s.horizontalSpacing,Fs.horizontalSpacing)};
1087
+ ${Re(Ts.fontSize,Ps.fontSize)};
1088
+ ${Re(Ts.raisedFontSize,Ps.labelSize)};
1089
+ ${Re(Ts.verticalSpacing,Ps.verticalSpacing)};
1090
+ ${Re(Ts.horizontalSpacing,Ps.horizontalSpacing)};
1086
1091
  }
1087
1092
 
1088
1093
  .ft-text-area--main-panel {
@@ -1100,8 +1105,8 @@ const gs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Xn||"class"!==t
1100
1105
  }
1101
1106
 
1102
1107
  .ft-text-area--input-panel ft-ripple {
1103
- ${ke(nr.opacityContentOnSurfaceHover,"0.08")};
1104
- ${ke(nr.opacityContentOnSurfacePressed,"0.04")};
1108
+ ${Re(ar.opacityContentOnSurfaceHover,"0.08")};
1109
+ ${Re(ar.opacityContentOnSurfacePressed,"0.04")};
1105
1110
  }
1106
1111
 
1107
1112
  .ft-text-area--input {
@@ -1113,12 +1118,12 @@ const gs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Xn||"class"!==t
1113
1118
  align-self: stretch;
1114
1119
  resize: none;
1115
1120
 
1116
- ${ke(Ir.fontSize,Fs.fontSize)};
1117
- ${ke(Ir.lineHeight,Fs.fontSize)};
1118
- color: ${Fs.colorOnSurface};
1121
+ ${Re(Ur.fontSize,Ps.fontSize)};
1122
+ ${Re(Ur.lineHeight,Ps.fontSize)};
1123
+ color: ${Ps.colorOnSurface};
1119
1124
 
1120
- padding: 0 ${Fs.horizontalSpacing};
1121
- margin: calc(${Fs.verticalSpacing} + ${Fs.labelSize} / 2) 0 ${Fs.verticalSpacing} 0;
1125
+ padding: 0 ${Ps.horizontalSpacing};
1126
+ margin: calc(${Ps.verticalSpacing} + ${Ps.labelSize} / 2) 0 ${Ps.verticalSpacing} 0;
1122
1127
 
1123
1128
  border: none;
1124
1129
  background: none;
@@ -1127,7 +1132,7 @@ const gs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Xn||"class"!==t
1127
1132
  }
1128
1133
 
1129
1134
  .ft-text-area--disabled .ft-text-area--input {
1130
- color: ${Fs.colorOnSurfaceDisabled};
1135
+ color: ${Ps.colorOnSurfaceDisabled};
1131
1136
  }
1132
1137
 
1133
1138
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -1135,49 +1140,49 @@ const gs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Xn||"class"!==t
1135
1140
  }
1136
1141
 
1137
1142
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
1138
- ${ke(_s.borderColor,Fs.colorPrimary)};
1139
- ${ke(_s.textColor,Fs.colorPrimary)};
1143
+ ${Re(Ts.borderColor,Ps.colorPrimary)};
1144
+ ${Re(Ts.textColor,Ps.colorPrimary)};
1140
1145
  }
1141
1146
 
1142
1147
  .ft-text-area--filled .ft-text-area--input-panel {
1143
- border-radius: ${Fs.borderRadiusS} ${Fs.borderRadiusS} 0 0;
1148
+ border-radius: ${Ps.borderRadiusS} ${Ps.borderRadiusS} 0 0;
1144
1149
  }
1145
1150
 
1146
1151
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
1147
1152
  align-self: stretch;
1148
- margin-bottom: ${Fs.verticalSpacing};
1149
- margin-top: calc(${Fs.labelSize} + 2 * ${Fs.verticalSpacing});
1153
+ margin-bottom: ${Ps.verticalSpacing};
1154
+ margin-top: calc(${Ps.labelSize} + 2 * ${Ps.verticalSpacing});
1150
1155
  }
1151
1156
 
1152
1157
  .ft-text-area--outlined .ft-text-area--input-panel {
1153
- border-radius: ${Fs.borderRadiusS};
1158
+ border-radius: ${Ps.borderRadiusS};
1154
1159
  }
1155
1160
 
1156
1161
  .ft-text-area--helper-text {
1157
- padding: 0 12px 0 ${Fs.horizontalSpacing};
1158
- color: ${Fs.helperColor};
1162
+ padding: 0 12px 0 ${Ps.horizontalSpacing};
1163
+ color: ${Ps.helperColor};
1159
1164
  }
1160
1165
 
1161
1166
  .ft-text-area--in-error .ft-text-area--input,
1162
1167
  .ft-text-area--in-error .ft-text-area--helper-text {
1163
- color: ${Fs.colorError};
1168
+ color: ${Ps.colorError};
1164
1169
  }
1165
1170
 
1166
1171
  ft-resizer {
1167
1172
  position: absolute;
1168
1173
  bottom: 0;
1169
1174
  }
1170
- `;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};class zs extends(Vo(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`
1175
+ `;var js=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 zs extends(qo(Ke,"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 fe`
1171
1176
  <style>
1172
1177
  .ft-text-area--main-panel {
1173
- height: calc(4 * ${Fs.verticalSpacing} + ${Fs.labelSize} + ${Fs.fontSize} + ${this.height}px);
1178
+ height: calc(4 * ${Ps.verticalSpacing} + ${Ps.labelSize} + ${Ps.fontSize} + ${this.height}px);
1174
1179
  }
1175
1180
 
1176
1181
  ft-resizer {
1177
1182
  right: ${null!=this.textarea?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
1178
1183
  }
1179
1184
  </style>
1180
- <div class="${gs(t)}">
1185
+ <div class="${bs(t)}">
1181
1186
  <div class="ft-text-area--main-panel">
1182
1187
  <ft-input-label text="${this.label}"
1183
1188
  ?disabled=${this.disabled}
@@ -1187,7 +1192,7 @@ const gs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Xn||"class"!==t
1187
1192
  ></ft-input-label>
1188
1193
  <div class="ft-text-area--input-panel"
1189
1194
  aria-label="${this.label}">
1190
- ${this.outlined?null:ce`
1195
+ ${this.outlined?null:fe`
1191
1196
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1192
1197
  `}
1193
1198
  <textarea class="ft-typography--body1 ft-text-area--input"
@@ -1204,53 +1209,53 @@ const gs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Xn||"class"!==t
1204
1209
  initialHeight="${this.height}"
1205
1210
  cursor="ns-resize"></ft-resizer>
1206
1211
  </div>
1207
- ${this.helper?ce`
1212
+ ${this.helper?fe`
1208
1213
  <ft-typography class="ft-text-area--helper-text" variant="caption">
1209
1214
  ${this.helper}
1210
1215
  </ft-typography>`:void 0}
1211
1216
  </div>
1212
- `}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)}}zs.elementDefinitions={"ft-input-label":Ds,"ft-resizer":As,"ft-ripple":vs,"ft-typography":Yn},zs.styles=[en,Ps],Ms([E({type:String})],zs.prototype,"label",void 0),Ms([E({reflect:!0})],zs.prototype,"value",void 0),Ms([E({type:String})],zs.prototype,"helper",void 0),Ms([E({type:Boolean})],zs.prototype,"outlined",void 0),Ms([E({type:Boolean})],zs.prototype,"disabled",void 0),Ms([E({type:Boolean})],zs.prototype,"error",void 0),Ms([E({type:Number,reflect:!0})],zs.prototype,"height",void 0),Ms([I("textarea")],zs.prototype,"textarea",void 0),Ms([k()],zs.prototype,"focused",void 0),T("ft-text-area")(zs);
1217
+ `}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)}}zs.elementDefinitions={"ft-input-label":Fs,"ft-resizer":_s,"ft-ripple":ms,"ft-typography":Xn},zs.styles=[on,Ms],js([E({type:String})],zs.prototype,"label",void 0),js([E({reflect:!0})],zs.prototype,"value",void 0),js([E({type:String})],zs.prototype,"helper",void 0),js([E({type:Boolean})],zs.prototype,"outlined",void 0),js([E({type:Boolean})],zs.prototype,"disabled",void 0),js([E({type:Boolean})],zs.prototype,"error",void 0),js([E({type:Number,reflect:!0})],zs.prototype,"height",void 0),js([U("textarea")],zs.prototype,"textarea",void 0),js([k()],zs.prototype,"focused",void 0),W("ft-text-area")(zs);
1213
1218
  /**
1214
1219
  * @license
1215
1220
  * Copyright 2020 Google LLC
1216
1221
  * SPDX-License-Identifier: BSD-3-Clause
1217
1222
  */
1218
- const{D:js}=mt,Bs=()=>document.createComment(""),Ks=(t,e,i)=>{const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Bs(),r),n=o.insertBefore(Bs(),r);i=new js(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},Zs=(t,e,i=t)=>(t._$AI(e,i),t),Hs={},Gs=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}},Vs=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},qs=Qn(class extends ta{constructor(t){if(super(t),t.type!==Jn)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,f,h=0,d=r.length-1,u=0,p=n.length-1;for(;h<=d&&u<=p;)if(null===r[h])h++;else if(null===r[d])d--;else if(s[h]===a[u])l[u]=Zs(r[h],n[u]),h++,u++;else if(s[d]===a[p])l[p]=Zs(r[d],n[p]),d--,p--;else if(s[h]===a[p])l[p]=Zs(r[h],n[p]),Ks(t,l[p+1],r[h]),h++,p--;else if(s[d]===a[u])l[u]=Zs(r[d],n[u]),Ks(t,r[h],r[d]),d--,u++;else if(void 0===c&&(c=Vs(a,u,p),f=Vs(s,h,d)),c.has(s[h]))if(c.has(s[d])){const e=f.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=Ks(t,r[h]);Zs(e,n[u]),l[u]=e}else l[u]=Zs(i,n[u]),Ks(t,r[h],i),r[e]=null;u++}else Gs(r[d]),d--;else Gs(r[h]),h++;for(;u<=p;){const e=Ks(t,l[p+1]);Zs(e,n[u]),l[u++]=e}for(;h<=d;){const t=r[h++];null!==t&&Gs(t)}return this.dt=a,((t,e=Hs)=>{t._$AH=e})(t,l),rt}});
1223
+ const{D:Bs}=xt,Ks=()=>document.createComment(""),Zs=(t,e,i)=>{const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Ks(),r),n=o.insertBefore(Ks(),r);i=new Bs(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},Hs=(t,e,i=t)=>(t._$AI(e,i),t),Gs={},Vs=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}},qs=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},Ys=ta(class extends ea{constructor(t){if(super(t),t.type!==Qn)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,f,h=0,d=r.length-1,u=0,p=n.length-1;for(;h<=d&&u<=p;)if(null===r[h])h++;else if(null===r[d])d--;else if(s[h]===a[u])l[u]=Hs(r[h],n[u]),h++,u++;else if(s[d]===a[p])l[p]=Hs(r[d],n[p]),d--,p--;else if(s[h]===a[p])l[p]=Hs(r[h],n[p]),Zs(t,l[p+1],r[h]),h++,p--;else if(s[d]===a[u])l[u]=Hs(r[d],n[u]),Zs(t,r[h],r[d]),d--,u++;else if(void 0===c&&(c=qs(a,u,p),f=qs(s,h,d)),c.has(s[h]))if(c.has(s[d])){const e=f.get(a[u]),i=void 0!==e?r[e]:null;if(null===i){const e=Zs(t,r[h]);Hs(e,n[u]),l[u]=e}else l[u]=Hs(i,n[u]),Zs(t,r[h],i),r[e]=null;u++}else Vs(r[d]),d--;else Vs(r[h]),h++;for(;u<=p;){const e=Zs(t,l[p+1]);Hs(e,n[u]),l[u++]=e}for(;h<=d;){const t=r[h++];null!==t&&Vs(t)}return this.dt=a,((t,e=Gs)=>{t._$AH=e})(t,l),nt}});
1219
1224
  /**
1220
1225
  * @license
1221
1226
  * Copyright 2017 Google LLC
1222
1227
  * SPDX-License-Identifier: BSD-3-Clause
1223
- */class Ys extends Be{render(){return ce`
1228
+ */class Xs extends Ke{render(){return fe`
1224
1229
  <div class="ft-loader">
1225
1230
  <div></div>
1226
1231
  <div></div>
1227
1232
  <div></div>
1228
1233
  <div></div>
1229
1234
  </div>
1230
- `}}Ys.styles=hn,T("ft-loader")(Ys);var Xs=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 Js extends(Vo(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`
1235
+ `}}Xs.styles=dn,W("ft-loader")(Xs);var Js=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 Qs extends(qo(Ke,"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(fe`
1231
1236
  <button part="button"
1232
- class="${gs(this.buttonClasses)}"
1237
+ class="${bs(this.buttonClasses)}"
1233
1238
  aria-label="${this.getLabel()}"
1234
1239
  ?disabled=${this.isDisabled()}>
1235
1240
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
1236
1241
  <ft-typography part="label"
1237
1242
  variant=${this.typographyVariant}
1238
1243
  element="span"
1239
- class="ft-button--label ${Jo?"ft-safari-ellipsis-fix":""}"
1244
+ class="ft-button--label ${Qo?"ft-safari-ellipsis-fix":""}"
1240
1245
  ?hidden=${!this.hasTextContent()}>
1241
1246
  <slot @slotchange=${this.onSlotchange}></slot>
1242
1247
  </ft-typography>
1243
1248
  ${this.resolveIcon()}
1244
1249
  </button>
1245
- `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?ce`
1250
+ `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?fe`
1246
1251
  <ft-tooltip part="tooltip"
1247
1252
  text="${this.getLabel()}"
1248
1253
  position="${this.tooltipPosition}">
1249
1254
  ${t}
1250
1255
  </ft-tooltip>
1251
- `:t}resolveIcon(){return this.loading?ce`
1252
- <ft-loader part="loader icon"></ft-loader> `:this.icon?ce`
1253
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:he}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}}Js.elementDefinitions={"ft-ripple":vs,"ft-tooltip":ys,"ft-typography":Yn,"ft-icon":sa,"ft-loader":Ys},Xs([E({type:String,reflect:!0})],Js.prototype,"role",void 0),Xs([E()],Js.prototype,"type",void 0),Xs([E({type:Boolean})],Js.prototype,"disabled",void 0),Xs([E()],Js.prototype,"label",void 0),Xs([E()],Js.prototype,"icon",void 0),Xs([E()],Js.prototype,"iconVariant",void 0),Xs([E({type:Boolean})],Js.prototype,"trailingIcon",void 0),Xs([E({type:Boolean})],Js.prototype,"loading",void 0),Xs([E()],Js.prototype,"tooltipPosition",void 0),Xs([E({type:Boolean})],Js.prototype,"hideTooltip",void 0),Xs([E({type:Boolean})],Js.prototype,"forceTooltip",void 0),Xs([I(".ft-button")],Js.prototype,"button",void 0),Xs([I(".ft-button--label slot")],Js.prototype,"slottedContent",void 0);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 Js{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"}}tl.styles=[He,On],Qs([E({type:Boolean})],tl.prototype,"primary",void 0),Qs([E({type:Boolean})],tl.prototype,"outlined",void 0),Qs([E({type:Boolean})],tl.prototype,"dense",void 0),Qs([E({type:Boolean})],tl.prototype,"round",void 0);const el=[Et`
1256
+ `:t}resolveIcon(){return this.loading?fe`
1257
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?fe`
1258
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:de}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}}Qs.elementDefinitions={"ft-ripple":ms,"ft-tooltip":gs,"ft-typography":Xn,"ft-icon":la,"ft-loader":Xs},Js([E({type:String,reflect:!0})],Qs.prototype,"role",void 0),Js([E()],Qs.prototype,"type",void 0),Js([E({type:Boolean})],Qs.prototype,"disabled",void 0),Js([E()],Qs.prototype,"label",void 0),Js([E()],Qs.prototype,"icon",void 0),Js([E()],Qs.prototype,"iconVariant",void 0),Js([E({type:Boolean})],Qs.prototype,"trailingIcon",void 0),Js([E({type:Boolean})],Qs.prototype,"loading",void 0),Js([E()],Qs.prototype,"tooltipPosition",void 0),Js([E({type:Boolean})],Qs.prototype,"hideTooltip",void 0),Js([E({type:Boolean})],Qs.prototype,"forceTooltip",void 0),Js([U(".ft-button")],Qs.prototype,"button",void 0),Js([U(".ft-button--label slot")],Qs.prototype,"slottedContent",void 0);var tl=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 el extends Qs{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"}}el.styles=[Ge,Sn],tl([E({type:Boolean})],el.prototype,"primary",void 0),tl([E({type:Boolean})],el.prototype,"outlined",void 0),tl([E({type:Boolean})],el.prototype,"dense",void 0),tl([E({type:Boolean})],el.prototype,"round",void 0);const il=[kt`
1254
1259
  :host {
1255
1260
  display: inline-block;
1256
1261
  max-width: 100%;
@@ -1300,7 +1305,7 @@ const{D:js}=mt,Bs=()=>document.createComment(""),Ks=(t,e,i)=>{const o=t._$AA.par
1300
1305
  }
1301
1306
 
1302
1307
  .ft-button:focus-visible {
1303
- outline-color: ${Le.focusFocusRingColor};
1308
+ outline-color: ${Ae.focusFocusRingColor};
1304
1309
  outline-style: solid;
1305
1310
  }
1306
1311
 
@@ -1329,154 +1334,154 @@ const{D:js}=mt,Bs=()=>document.createComment(""),Ks=(t,e,i)=>{const o=t._$AA.par
1329
1334
  /** Primary styles **/
1330
1335
 
1331
1336
  .ft-button--primary {
1332
- ${ke(fn.color,Le.primaryIconColor)};
1337
+ ${Re(hn.color,Ae.primaryIconColor)};
1333
1338
 
1334
- ${ke(nr.color,Le.primaryStateLayerColor)};
1335
- ${ke(nr.opacityContentOnSurfaceHover,Le.primaryStateLayerOpacityHover)};
1336
- ${ke(nr.opacityContentOnSurfaceFocused,Le.primaryStateLayerOpacityFocus)};
1337
- ${ke(nr.opacityContentOnSurfaceSelected,Le.primaryStateLayerOpacityActive)};
1338
- ${ke(nr.opacityContentOnSurfacePressed,Le.primaryStateLayerOpacityActive)};
1339
+ ${Re(ar.color,Ae.primaryStateLayerColor)};
1340
+ ${Re(ar.opacityContentOnSurfaceHover,Ae.primaryStateLayerOpacityHover)};
1341
+ ${Re(ar.opacityContentOnSurfaceFocused,Ae.primaryStateLayerOpacityFocus)};
1342
+ ${Re(ar.opacityContentOnSurfaceSelected,Ae.primaryStateLayerOpacityActive)};
1343
+ ${Re(ar.opacityContentOnSurfacePressed,Ae.primaryStateLayerOpacityActive)};
1339
1344
 
1340
- background-color: ${Le.primaryBackgroundColor};
1341
- color: ${Le.primaryColor};
1345
+ background-color: ${Ae.primaryBackgroundColor};
1346
+ color: ${Ae.primaryColor};
1342
1347
  border-style: none;
1343
1348
  }
1344
1349
 
1345
1350
  .ft-button--primary[disabled] {
1346
- opacity: ${Le.primaryComponentOpacityDisabled};
1351
+ opacity: ${Ae.primaryComponentOpacityDisabled};
1347
1352
  }
1348
1353
 
1349
1354
  .ft-button--primary ft-icon {
1350
- color: ${Le.primaryIconColor};
1355
+ color: ${Ae.primaryIconColor};
1351
1356
  }
1352
1357
 
1353
1358
  /** Secondary styles **/
1354
1359
 
1355
1360
  .ft-button--secondary {
1356
- ${ke(fn.color,Le.secondaryIconColor)};
1361
+ ${Re(hn.color,Ae.secondaryIconColor)};
1357
1362
 
1358
- ${ke(nr.color,Le.secondaryStateLayerColor)};
1359
- ${ke(nr.opacityContentOnSurfaceHover,Le.secondaryStateLayerOpacityHover)};
1360
- ${ke(nr.opacityContentOnSurfaceFocused,Le.secondaryStateLayerOpacityFocus)};
1361
- ${ke(nr.opacityContentOnSurfaceSelected,Le.secondaryStateLayerOpacityActive)};
1362
- ${ke(nr.opacityContentOnSurfacePressed,Le.secondaryStateLayerOpacityActive)};
1363
+ ${Re(ar.color,Ae.secondaryStateLayerColor)};
1364
+ ${Re(ar.opacityContentOnSurfaceHover,Ae.secondaryStateLayerOpacityHover)};
1365
+ ${Re(ar.opacityContentOnSurfaceFocused,Ae.secondaryStateLayerOpacityFocus)};
1366
+ ${Re(ar.opacityContentOnSurfaceSelected,Ae.secondaryStateLayerOpacityActive)};
1367
+ ${Re(ar.opacityContentOnSurfacePressed,Ae.secondaryStateLayerOpacityActive)};
1363
1368
 
1364
- background-color: ${Le.secondaryBackgroundColor};
1365
- color: ${Le.secondaryColor};
1366
- border-color: ${Le.secondaryBorderColor};
1369
+ background-color: ${Ae.secondaryBackgroundColor};
1370
+ color: ${Ae.secondaryColor};
1371
+ border-color: ${Ae.secondaryBorderColor};
1367
1372
  border-style: solid;
1368
1373
  }
1369
1374
 
1370
1375
  .ft-button--secondary[disabled] {
1371
- opacity: ${Le.secondaryComponentOpacityDisabled};
1376
+ opacity: ${Ae.secondaryComponentOpacityDisabled};
1372
1377
  }
1373
1378
 
1374
1379
  .ft-button--secondary ft-icon {
1375
- color: ${Le.secondaryIconColor};
1380
+ color: ${Ae.secondaryIconColor};
1376
1381
  }
1377
1382
 
1378
1383
  /** Tertiary styles **/
1379
1384
 
1380
1385
  .ft-button--tertiary {
1381
- ${ke(fn.color,Le.tertiaryIconColor)};
1386
+ ${Re(hn.color,Ae.tertiaryIconColor)};
1382
1387
 
1383
- ${ke(nr.color,Le.tertiaryStateLayerColor)};
1384
- ${ke(nr.opacityContentOnSurfaceHover,Le.tertiaryStateLayerOpacityHover)};
1385
- ${ke(nr.opacityContentOnSurfaceFocused,Le.tertiaryStateLayerOpacityFocus)};
1386
- ${ke(nr.opacityContentOnSurfaceSelected,Le.tertiaryStateLayerOpacityActive)};
1387
- ${ke(nr.opacityContentOnSurfacePressed,Le.tertiaryStateLayerOpacityActive)};
1388
+ ${Re(ar.color,Ae.tertiaryStateLayerColor)};
1389
+ ${Re(ar.opacityContentOnSurfaceHover,Ae.tertiaryStateLayerOpacityHover)};
1390
+ ${Re(ar.opacityContentOnSurfaceFocused,Ae.tertiaryStateLayerOpacityFocus)};
1391
+ ${Re(ar.opacityContentOnSurfaceSelected,Ae.tertiaryStateLayerOpacityActive)};
1392
+ ${Re(ar.opacityContentOnSurfacePressed,Ae.tertiaryStateLayerOpacityActive)};
1388
1393
 
1389
- background-color: ${Le.tertiaryBackgroundColor};
1390
- color: ${Le.tertiaryColor};
1394
+ background-color: ${Ae.tertiaryBackgroundColor};
1395
+ color: ${Ae.tertiaryColor};
1391
1396
  border-style: none;
1392
1397
  }
1393
1398
 
1394
1399
  .ft-button--tertiary[disabled] {
1395
- opacity: ${Le.tertiaryComponentOpacityDisabled};
1400
+ opacity: ${Ae.tertiaryComponentOpacityDisabled};
1396
1401
  }
1397
1402
 
1398
1403
  .ft-button--tertiary ft-icon {
1399
- color: ${Le.tertiaryIconColor};
1404
+ color: ${Ae.tertiaryIconColor};
1400
1405
  }
1401
1406
 
1402
1407
  /** Neutral styles **/
1403
1408
 
1404
1409
  .ft-button--neutral {
1405
- ${ke(fn.color,Le.neutralIconColor)};
1410
+ ${Re(hn.color,Ae.neutralIconColor)};
1406
1411
 
1407
- ${ke(nr.backgroundColor,Le.neutralStateLayerColor)};
1408
- ${ke(nr.opacityContentOnSurfaceHover,Le.neutralStateLayerOpacityHover)};
1409
- ${ke(nr.opacityContentOnSurfaceFocused,Le.neutralStateLayerOpacityFocus)};
1410
- ${ke(nr.opacityContentOnSurfaceSelected,Le.neutralStateLayerOpacityActive)};
1411
- ${ke(nr.opacityContentOnSurfacePressed,Le.neutralStateLayerOpacityActive)};
1412
+ ${Re(ar.backgroundColor,Ae.neutralStateLayerColor)};
1413
+ ${Re(ar.opacityContentOnSurfaceHover,Ae.neutralStateLayerOpacityHover)};
1414
+ ${Re(ar.opacityContentOnSurfaceFocused,Ae.neutralStateLayerOpacityFocus)};
1415
+ ${Re(ar.opacityContentOnSurfaceSelected,Ae.neutralStateLayerOpacityActive)};
1416
+ ${Re(ar.opacityContentOnSurfacePressed,Ae.neutralStateLayerOpacityActive)};
1412
1417
 
1413
- background-color: ${Le.neutralBackgroundColor};
1414
- color: ${Le.neutralColor};
1418
+ background-color: ${Ae.neutralBackgroundColor};
1419
+ color: ${Ae.neutralColor};
1415
1420
  border-style: none;
1416
1421
  }
1417
1422
 
1418
1423
  .ft-button--neutral[disabled] {
1419
- opacity: ${Le.neutralComponentOpacityDisabled};
1424
+ opacity: ${Ae.neutralComponentOpacityDisabled};
1420
1425
  }
1421
1426
 
1422
1427
  .ft-button--neutral ft-icon {
1423
- color: ${Le.neutralIconColor};
1428
+ color: ${Ae.neutralIconColor};
1424
1429
  }
1425
1430
 
1426
1431
  /** Large styles **/
1427
1432
 
1428
1433
  .ft-button--large {
1429
- ${ke(dn.size,Le.largeIconSize)};
1430
- ${ke(fn.size,Le.largeIconSize)};
1434
+ ${Re(un.size,Ae.largeIconSize)};
1435
+ ${Re(hn.size,Ae.largeIconSize)};
1431
1436
 
1432
- height: ${Le.largeHeight};
1433
- padding: 0 ${Le.largeHorizontalPadding};
1434
- gap: ${Le.largeGap};
1435
- border-radius: ${Le.largeBorderRadius};
1436
- border-width: ${Le.largeBorderWidth};
1437
+ height: ${Ae.largeHeight};
1438
+ padding: 0 ${Ae.largeHorizontalPadding};
1439
+ gap: ${Ae.largeGap};
1440
+ border-radius: ${Ae.largeBorderRadius};
1441
+ border-width: ${Ae.largeBorderWidth};
1437
1442
  }
1438
1443
 
1439
1444
  .ft-button--large:focus-visible {
1440
- outline-width: ${Le.largeFocusOutlineWidth};
1441
- outline-offset: ${Le.largeFocusOutlineOffset};
1445
+ outline-width: ${Ae.largeFocusOutlineWidth};
1446
+ outline-offset: ${Ae.largeFocusOutlineOffset};
1442
1447
  }
1443
1448
 
1444
1449
  .ft-button--large.ft-button--icon-only {
1445
- width: ${Le.largeIconOnlyWidth};
1450
+ width: ${Ae.largeIconOnlyWidth};
1446
1451
  padding: unset;
1447
1452
  }
1448
1453
 
1449
1454
  /** Small styles **/
1450
1455
 
1451
1456
  .ft-button--small {
1452
- ${ke(dn.size,Le.smallIconSize)};
1453
- ${ke(fn.size,Le.smallIconSize)};
1457
+ ${Re(un.size,Ae.smallIconSize)};
1458
+ ${Re(hn.size,Ae.smallIconSize)};
1454
1459
 
1455
- height: ${Le.smallHeight};
1456
- padding: 0 ${Le.smallHorizontalPadding};
1457
- gap: ${Le.smallGap};
1458
- border-radius: ${Le.smallBorderRadius};
1459
- border-width: ${Le.smallBorderWidth};
1460
+ height: ${Ae.smallHeight};
1461
+ padding: 0 ${Ae.smallHorizontalPadding};
1462
+ gap: ${Ae.smallGap};
1463
+ border-radius: ${Ae.smallBorderRadius};
1464
+ border-width: ${Ae.smallBorderWidth};
1460
1465
  }
1461
1466
 
1462
1467
  .ft-button--small:focus-visible {
1463
- outline-width: ${Le.smallFocusOutlineWidth};
1464
- outline-offset: ${Le.smallFocusOutlineOffset};
1468
+ outline-width: ${Ae.smallFocusOutlineWidth};
1469
+ outline-offset: ${Ae.smallFocusOutlineOffset};
1465
1470
  }
1466
1471
 
1467
1472
  .ft-button--small.ft-button--icon-only {
1468
- width: ${Le.smallIconOnlyWidth};
1473
+ width: ${Ae.smallIconOnlyWidth};
1469
1474
  padding: unset;
1470
1475
  }
1471
- `,Ze];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 Js{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?Vn.caption1medium:Vn.body2medium}}ol.styles=[He,el],il([E({type:Boolean})],ol.prototype,"primary",void 0),il([E({type:Boolean})],ol.prototype,"secondary",void 0),il([E({type:Boolean})],ol.prototype,"tertiary",void 0),il([E({type:Boolean})],ol.prototype,"neutral",void 0),il([E({type:Boolean})],ol.prototype,"small",void 0),T("ft-button")(tl),T("ftds-button")(ol);const rl=Et`
1472
- `,nl=Et`
1473
- `,al=Ho.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 sl{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=al.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?sl.build(t):null!==(e=sl.API)&&void 0!==e?e:sl.API=sl.build()}static await(t){return new Promise((e=>{let i=sl.get(t);if(i)e(i);else{const o=al.subscribe((()=>{i=sl.get(t),i&&(o(),e(i))}))}}))}}var ll;const cl=Symbol("clearAfterUnitTest");class fl{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[ll]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=al.getState().uiLocale,al.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=al.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 Ge(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)))))}}ll=cl,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new fl((async(t,e)=>(await sl.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new fl((async(t,e)=>(await sl.await()).getCustomMessageContext(t,e))));const hl=window.FluidTopicsI18nService,dl=window.FluidTopicsCustomI18nService;var ul=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 pl 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=()=>sl.get(),this.cache=new o,this.cleanSessionDebouncer=new L}render(){return ce`
1476
+ `,He];var ol=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 rl extends Qs{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?qn.caption1medium:qn.body2medium}}rl.styles=[Ge,il],ol([E({type:Boolean})],rl.prototype,"primary",void 0),ol([E({type:Boolean})],rl.prototype,"secondary",void 0),ol([E({type:Boolean})],rl.prototype,"tertiary",void 0),ol([E({type:Boolean})],rl.prototype,"neutral",void 0),ol([E({type:Boolean})],rl.prototype,"small",void 0),W("ft-button")(el),W("ftds-button")(rl);const nl=kt`
1477
+ `,al=kt`
1478
+ `,sl=Go.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 ll{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=sl.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?ll.build(t):null!==(e=ll.API)&&void 0!==e?e:ll.API=ll.build()}static await(t){return new Promise((e=>{let i=ll.get(t);if(i)e(i);else{const o=sl.subscribe((()=>{i=ll.get(t),i&&(o(),e(i))}))}}))}}var cl;const fl=Symbol("clearAfterUnitTest");class hl{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[cl]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=sl.getState().uiLocale,sl.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=sl.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};T(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 Ve(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=>_(0).then((()=>t())).catch((()=>null)))))}}cl=fl,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new hl((async(t,e)=>(await ll.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new hl((async(t,e)=>(await ll.await()).getCustomMessageContext(t,e))));const dl=window.FluidTopicsI18nService,ul=window.FluidTopicsCustomI18nService;var pl=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 yl extends Ke{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=()=>ll.get(),this.cache=new o,this.cleanSessionDebouncer=new A}render(){return fe`
1474
1479
  <slot></slot>
1475
- `}update(t){super.update(t),t.has("baseUrl")&&al.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&al.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&al.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&al.actions.setNoCustom(this.noCustom),t.has("editorMode")&&al.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&al.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&al.actions.setSession(this.session),t.has("availableUiLocales")&&al.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>hl.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()))))}}pl.elementDefinitions={},pl.styles=nl,ul([E()],pl.prototype,"baseUrl",void 0),ul([E()],pl.prototype,"apiIntegrationIdentifier",void 0),ul([E()],pl.prototype,"uiLocale",void 0),ul([W([])],pl.prototype,"availableUiLocales",void 0),ul([E({type:Boolean})],pl.prototype,"editorMode",void 0),ul([E({type:Boolean})],pl.prototype,"noCustom",void 0),ul([E({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],pl.prototype,"noCustomComponent",void 0),ul([E({type:Boolean})],pl.prototype,"withManualResources",void 0),ul([W([])],pl.prototype,"messageContexts",void 0),ul([W(void 0)],pl.prototype,"session",void 0),ul([E({type:Object})],pl.prototype,"apiProvider",void 0);class yl{async listMySearches(){var t;return(null===(t=al.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await sl.await()).listMySearches(al.getState().session.profile.userId):[]}}const gl=new o;class bl{async listMyBookmarks(){return gl.get("bookmarks",(async()=>(await sl.await()).listMyBookmarks(al.getState().session.profile.userId)))}clearCache(){gl.clear("bookmarks")}}const vl=Ho.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const ml=new class{constructor(){this.currentSession=al.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new bl,al.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=al.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(){vl.actions.savedSearches(void 0)}clearMyBookmarks(){vl.actions.bookmarks(void 0)}async reloadMySearches(){const t=new yl,e=await t.listMySearches();vl.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;vl.actions.bookmarks(e)}}};T("ft-app-context")(pl);var xl=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 wl=Symbol("i18nProperties"),Ol=Symbol("i18nUnsubs");function Sl(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?dl:hl}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[wl])||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[wl])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[wl]&&new Set([...this[wl].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Ol].has(t)||this[Ol].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[Ol].forEach((t=>t())),this[Ol].clear()}}return e=Ol,xl([E({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class $l extends(Sl(Be)){}class Nl extends(Sl(oi)){}var Cl=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 El extends Nl{constructor(){super(),this.editorMode=!1,this.addStore(al)}render(){return this.key&&this.context?ce`
1480
+ `}update(t){super.update(t),t.has("baseUrl")&&sl.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&sl.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&sl.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&sl.actions.setNoCustom(this.noCustom),t.has("editorMode")&&sl.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&sl.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&sl.actions.setSession(this.session),t.has("availableUiLocales")&&sl.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>dl.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()))))}}yl.elementDefinitions={},yl.styles=al,pl([E()],yl.prototype,"baseUrl",void 0),pl([E()],yl.prototype,"apiIntegrationIdentifier",void 0),pl([E()],yl.prototype,"uiLocale",void 0),pl([D([])],yl.prototype,"availableUiLocales",void 0),pl([E({type:Boolean})],yl.prototype,"editorMode",void 0),pl([E({type:Boolean})],yl.prototype,"noCustom",void 0),pl([E({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],yl.prototype,"noCustomComponent",void 0),pl([E({type:Boolean})],yl.prototype,"withManualResources",void 0),pl([D([])],yl.prototype,"messageContexts",void 0),pl([D(void 0)],yl.prototype,"session",void 0),pl([E({type:Object})],yl.prototype,"apiProvider",void 0);class gl{async listMySearches(){var t;return(null===(t=sl.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await ll.await()).listMySearches(sl.getState().session.profile.userId):[]}}const bl=new o;class vl{async listMyBookmarks(){return bl.get("bookmarks",(async()=>(await ll.await()).listMyBookmarks(sl.getState().session.profile.userId)))}clearCache(){bl.clear("bookmarks")}}const ml=Go.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const xl=new class{constructor(){this.currentSession=sl.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new vl,sl.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=sl.getState();T(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(){ml.actions.savedSearches(void 0)}clearMyBookmarks(){ml.actions.bookmarks(void 0)}async reloadMySearches(){const t=new gl,e=await t.listMySearches();ml.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;ml.actions.bookmarks(e)}}};W("ft-app-context")(yl);var wl=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 Ol=Symbol("i18nProperties"),Sl=Symbol("i18nUnsubs");function $l(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?ul:dl}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[Ol])||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[Ol])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ol]&&new Set([...this[Ol].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Sl].has(t)||this[Sl].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[Sl].forEach((t=>t())),this[Sl].clear()}}return e=Sl,wl([E({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class Nl extends($l(Ke)){}class Cl extends($l(ri)){}var El=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 kl extends Cl{constructor(){super(),this.editorMode=!1,this.addStore(sl)}render(){return this.key&&this.context?fe`
1476
1481
  <span class="ft-i18n">
1477
1482
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1478
1483
  </span>
1479
- `:this.editorMode?"Select a context and a label key.":he}update(t){var e;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}El.elementDefinitions={},El.styles=rl,Cl([Ve()],El.prototype,"editorMode",void 0),Cl([E()],El.prototype,"context",void 0),Cl([E()],El.prototype,"key",void 0),Cl([W([])],El.prototype,"args",void 0),Cl([E()],El.prototype,"defaultMessage",void 0);class kl{static build(t){return new kl(t)}static fromGwt(t){return new kl(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)=>hl.resolveMessage(this.name,e,...t)})}}const Rl=(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[wl]=null!==(n=i[wl])&&void 0!==n?n:new Map,i[wl].set(o,a)};T("ft-i18n")(El);const Il=kl.build("integratedFeedbackComponent"),Ul={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"},Ll=kl.build("inDesignerFeedbackComponent"),Al={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."},_l={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")},Tl=Et`
1484
+ `:this.editorMode?"Select a context and a label key.":de}update(t){var e;super.update(t),this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}kl.elementDefinitions={},kl.styles=nl,El([qe()],kl.prototype,"editorMode",void 0),El([E()],kl.prototype,"context",void 0),El([E()],kl.prototype,"key",void 0),El([D([])],kl.prototype,"args",void 0),El([E()],kl.prototype,"defaultMessage",void 0);class Rl{static build(t){return new Rl(t)}static fromGwt(t){return new Rl(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)=>dl.resolveMessage(this.name,e,...t)})}}const Il=(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[Ol]=null!==(n=i[Ol])&&void 0!==n?n:new Map,i[Ol].set(o,a)};W("ft-i18n")(kl);const Ul=Rl.build("integratedFeedbackComponent"),Ll={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"},Al=Rl.build("inDesignerFeedbackComponent"),_l={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."},Tl={fontSize:ke.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:ke.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:ke.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:ke.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:ke.extend("--ft-text-field-helper-color","",_e.colorOnSurfaceMedium),colorPrimary:ke.external(_e.colorPrimary,"Design system"),colorOnSurface:ke.external(_e.colorOnSurface,"Design system"),colorOnSurfaceDisabled:ke.external(_e.colorOnSurfaceDisabled,"Design system"),borderRadiusS:ke.external(_e.borderRadiusS,"Design system"),colorError:ke.external(_e.colorError,"Design system"),prefixColor:ke.extend("--ft-text-field-prefix-color","",_e.colorOnSurfaceMedium),iconColor:ke.extend("--ft-text-field-icon-color","",_e.colorOnSurfaceMedium),floatingZIndex:ke.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:ke.external(_e.colorSurface,"Design system"),colorOutline:ke.external(_e.colorOutline,"Design system"),elevation02:ke.external(_e.elevation02,"Design system"),suggestSize:ke.create("--ft-text-field-suggest-size","","SIZE","300px")},Wl=kt`
1480
1485
  *:focus {
1481
1486
  outline: none;
1482
1487
  }
@@ -1489,16 +1494,16 @@ const{D:js}=mt,Bs=()=>document.createComment(""),Ks=(t,e,i)=>{const o=t._$AA.par
1489
1494
  }
1490
1495
 
1491
1496
  ft-input-label {
1492
- ${ke(_s.fontSize,_l.fontSize)};
1493
- ${ke(_s.raisedFontSize,_l.labelSize)};
1494
- ${ke(_s.verticalSpacing,_l.verticalSpacing)};
1495
- ${ke(_s.horizontalSpacing,_l.horizontalSpacing)};
1497
+ ${Re(Ts.fontSize,Tl.fontSize)};
1498
+ ${Re(Ts.raisedFontSize,Tl.labelSize)};
1499
+ ${Re(Ts.verticalSpacing,Tl.verticalSpacing)};
1500
+ ${Re(Ts.horizontalSpacing,Tl.horizontalSpacing)};
1496
1501
  }
1497
1502
 
1498
1503
  .ft-text-field--main-panel {
1499
1504
  position: relative;
1500
1505
  display: flex;
1501
- height: calc(4 * ${_l.verticalSpacing} + ${_l.labelSize} + ${_l.fontSize});
1506
+ height: calc(4 * ${Tl.verticalSpacing} + ${Tl.labelSize} + ${Tl.fontSize});
1502
1507
  }
1503
1508
 
1504
1509
  .ft-text-field--input-panel {
@@ -1507,24 +1512,24 @@ const{D:js}=mt,Bs=()=>document.createComment(""),Ks=(t,e,i)=>{const o=t._$AA.par
1507
1512
  display: flex;
1508
1513
  align-items: center;
1509
1514
  overflow: hidden;
1510
- padding: 0 ${_l.horizontalSpacing};
1515
+ padding: 0 ${Tl.horizontalSpacing};
1511
1516
 
1512
- ${ke(Ir.fontSize,_l.fontSize)};
1513
- ${ke(Ir.lineHeight,_l.fontSize)};
1517
+ ${Re(Ur.fontSize,Tl.fontSize)};
1518
+ ${Re(Ur.lineHeight,Tl.fontSize)};
1514
1519
  }
1515
1520
 
1516
1521
  .ft-text-field--input-panel ft-ripple {
1517
- ${ke(nr.opacityContentOnSurfaceHover,"0.08")};
1518
- ${ke(nr.opacityContentOnSurfacePressed,"0.04")};
1522
+ ${Re(ar.opacityContentOnSurfaceHover,"0.08")};
1523
+ ${Re(ar.opacityContentOnSurfacePressed,"0.04")};
1519
1524
  }
1520
1525
 
1521
1526
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
1522
1527
  align-items: flex-end;
1523
- padding: 0 ${_l.horizontalSpacing} ${_l.verticalSpacing} ${_l.horizontalSpacing};
1528
+ padding: 0 ${Tl.horizontalSpacing} ${Tl.verticalSpacing} ${Tl.horizontalSpacing};
1524
1529
  }
1525
1530
 
1526
1531
  .ft-text-field--prefix {
1527
- color: ${_l.prefixColor};
1532
+ color: ${Tl.prefixColor};
1528
1533
  margin-right: 2px;
1529
1534
  flex-shrink: 1;
1530
1535
  overflow: hidden;
@@ -1543,15 +1548,15 @@ const{D:js}=mt,Bs=()=>document.createComment(""),Ks=(t,e,i)=>{const o=t._$AA.par
1543
1548
  flex-shrink: 1;
1544
1549
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
1545
1550
 
1546
- color: ${_l.colorOnSurface};
1547
- padding: calc(2 * ${_l.verticalSpacing}) 0;
1551
+ color: ${Tl.colorOnSurface};
1552
+ padding: calc(2 * ${Tl.verticalSpacing}) 0;
1548
1553
  border: none;
1549
1554
  background: none;
1550
1555
  }
1551
1556
 
1552
1557
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
1553
1558
  padding-bottom: 0;
1554
- padding-top: calc(${_l.labelSize} + 2 * ${_l.verticalSpacing});
1559
+ padding-top: calc(${Tl.labelSize} + 2 * ${Tl.verticalSpacing});
1555
1560
  }
1556
1561
 
1557
1562
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -1560,37 +1565,37 @@ const{D:js}=mt,Bs=()=>document.createComment(""),Ks=(t,e,i)=>{const o=t._$AA.par
1560
1565
  }
1561
1566
 
1562
1567
  .ft-text-field--disabled .ft-text-field--input {
1563
- color: ${_l.colorOnSurfaceDisabled};
1568
+ color: ${Tl.colorOnSurfaceDisabled};
1564
1569
  }
1565
1570
 
1566
1571
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1567
- ${ke(_s.borderColor,_l.colorPrimary)};
1568
- ${ke(_s.textColor,_l.colorPrimary)};
1572
+ ${Re(Ts.borderColor,Tl.colorPrimary)};
1573
+ ${Re(Ts.textColor,Tl.colorPrimary)};
1569
1574
  }
1570
1575
 
1571
1576
  .ft-text-field--filled .ft-text-field--input-panel {
1572
- border-radius: ${_l.borderRadiusS} ${_l.borderRadiusS} 0 0;
1577
+ border-radius: ${Tl.borderRadiusS} ${Tl.borderRadiusS} 0 0;
1573
1578
  }
1574
1579
 
1575
1580
  .ft-text-field--outlined .ft-text-field--input-panel {
1576
- border-radius: ${_l.borderRadiusS};
1581
+ border-radius: ${Tl.borderRadiusS};
1577
1582
  }
1578
1583
 
1579
1584
  .ft-text-field--helper-text {
1580
- padding: 0 12px 0 ${_l.horizontalSpacing};
1581
- color: ${_l.helperColor};
1585
+ padding: 0 12px 0 ${Tl.horizontalSpacing};
1586
+ color: ${Tl.helperColor};
1582
1587
  }
1583
1588
 
1584
1589
  .ft-text-field--in-error .ft-text-field--input,
1585
1590
  .ft-text-field--in-error .ft-text-field--helper-text,
1586
1591
  .ft-text-field--in-error .ft-text-field--prefix {
1587
- color: ${_l.colorError};
1592
+ color: ${Tl.colorError};
1588
1593
  }
1589
1594
 
1590
1595
  .ft-text-field--icon {
1591
1596
  align-self: center;
1592
1597
  margin-left: 8px;
1593
- color: ${_l.iconColor};
1598
+ color: ${Tl.iconColor};
1594
1599
  }
1595
1600
 
1596
1601
  .ft-text-field--container {
@@ -1603,13 +1608,13 @@ const{D:js}=mt,Bs=()=>document.createComment(""),Ks=(t,e,i)=>{const o=t._$AA.par
1603
1608
  position: absolute;
1604
1609
  left: 0;
1605
1610
  right: 0;
1606
- z-index: ${_l.floatingZIndex};
1607
- background: ${_l.colorSurface};
1608
- border: 1px solid ${_l.colorOutline};
1609
- border-radius: 0 0 ${_l.borderRadiusS} ${_l.borderRadiusS};
1610
- box-shadow: ${_l.elevation02};
1611
+ z-index: ${Tl.floatingZIndex};
1612
+ background: ${Tl.colorSurface};
1613
+ border: 1px solid ${Tl.colorOutline};
1614
+ border-radius: 0 0 ${Tl.borderRadiusS} ${Tl.borderRadiusS};
1615
+ box-shadow: ${Tl.elevation02};
1611
1616
  outline: none;
1612
- max-height: ${_l.suggestSize};
1617
+ max-height: ${Tl.suggestSize};
1613
1618
  overflow-y: auto;
1614
1619
  }
1615
1620
 
@@ -1626,14 +1631,14 @@ const{D:js}=mt,Bs=()=>document.createComment(""),Ks=(t,e,i)=>{const o=t._$AA.par
1626
1631
  }
1627
1632
 
1628
1633
  .ft-text-field--with-icon {
1629
- ${ke(_s.labelMaxWidth,`calc(100% - ${dn.size} - ${_s.horizontalSpacing})`)};
1634
+ ${Re(Ts.labelMaxWidth,`calc(100% - ${un.size} - ${Ts.horizontalSpacing})`)};
1630
1635
  }
1631
1636
 
1632
1637
  .ft-text-field--with-password ft-icon:hover {
1633
1638
  cursor: pointer;
1634
1639
  }
1635
- `;var Wl=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 Dl extends(Vo(Be,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=oa.EYE_SLASH,this.passwordRevealedIcon=oa.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`
1636
- <div class="${gs(t)}">
1640
+ `;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 Fl extends(qo(Ke,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=ra.EYE_SLASH,this.passwordRevealedIcon=ra.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 fe`
1641
+ <div class="${bs(t)}">
1637
1642
  <div class="ft-text-field--main-panel"
1638
1643
  @keydown=${this.handleKeyboardNavigation}
1639
1644
  @focusout=${this.onMainPanelBlur}>
@@ -1643,16 +1648,16 @@ const{D:js}=mt,Bs=()=>document.createComment(""),Ks=(t,e,i)=>{const o=t._$AA.par
1643
1648
  ?raised=${this.focused||""!=this.value}
1644
1649
  ?error=${this.error}></ft-input-label>
1645
1650
  <div class="ft-text-field--input-panel">
1646
- ${this.outlined?he:ce`
1651
+ ${this.outlined?de:fe`
1647
1652
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1648
1653
  `}
1649
- ${this.prefix?ce`
1654
+ ${this.prefix?fe`
1650
1655
  <ft-typography class="ft-text-field--prefix" vaiant="body1">
1651
1656
  ${this.prefix}
1652
1657
  </ft-typography>
1653
- `:he}
1658
+ `:de}
1654
1659
  <input type=${this.password&&this.hidePassword?"password":"text"}
1655
- maxlength=${(t=>t??nt)(this.maxLength||void 0)}
1660
+ maxlength=${(t=>t??at)(this.maxLength||void 0)}
1656
1661
  aria-label="${this.label}"
1657
1662
  class="ft-typography--body1 ft-text-field--input"
1658
1663
  ?disabled=${this.disabled}
@@ -1667,23 +1672,23 @@ const{D:js}=mt,Bs=()=>document.createComment(""),Ks=(t,e,i)=>{const o=t._$AA.par
1667
1672
  <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
1668
1673
  </div>
1669
1674
  </div>
1670
- ${this.helper?ce`
1675
+ ${this.helper?fe`
1671
1676
  <ft-typography class="ft-text-field--helper-text" variant="caption">
1672
1677
  ${this.helper}
1673
1678
  </ft-typography>
1674
- `:he}
1679
+ `:de}
1675
1680
  </div>
1676
- `}renderPasswordIcon(){return ce`
1681
+ `}renderPasswordIcon(){return fe`
1677
1682
  <ft-icon class="ft-text-field--icon"
1678
1683
  .variant=${this.iconVariant}
1679
1684
  .value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
1680
1685
  @click=${()=>this.togglePasswordVisibility()}></ft-icon>
1681
- `}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?ce`
1686
+ `}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?fe`
1682
1687
  <ft-icon class="ft-text-field--icon"
1683
1688
  .variant=${this.iconVariant}
1684
1689
  .value=${this.icon}
1685
1690
  @click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
1686
- `:he}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}}Dl.elementDefinitions={"ft-input-label":Ds,"ft-ripple":vs,"ft-typography":Yn,"ft-icon":sa},Dl.styles=[en,Tl],Wl([E()],Dl.prototype,"label",void 0),Wl([E({noAccessor:!0})],Dl.prototype,"value",null),Wl([k()],Dl.prototype,"dispatchedValue",void 0),Wl([E()],Dl.prototype,"helper",void 0),Wl([E({type:Boolean})],Dl.prototype,"outlined",void 0),Wl([E({type:Boolean})],Dl.prototype,"disabled",void 0),Wl([E({type:Boolean})],Dl.prototype,"error",void 0),Wl([E()],Dl.prototype,"prefix",void 0),Wl([E()],Dl.prototype,"icon",void 0),Wl([E()],Dl.prototype,"passwordHiddenIcon",void 0),Wl([E()],Dl.prototype,"passwordRevealedIcon",void 0),Wl([E()],Dl.prototype,"iconVariant",void 0),Wl([E({type:Boolean})],Dl.prototype,"filterSuggestions",void 0),Wl([E({type:Number})],Dl.prototype,"maxLength",void 0),Wl([E({type:Boolean})],Dl.prototype,"password",void 0),Wl([k()],Dl.prototype,"focused",void 0),Wl([k()],Dl.prototype,"hidePassword",void 0),Wl([k()],Dl.prototype,"suggestionsOnTop",void 0),Wl([k()],Dl.prototype,"hideSuggestions",void 0),Wl([k()],Dl.prototype,"visibleSuggestions",void 0),Wl([I(".ft-text-field--main-panel")],Dl.prototype,"mainPanel",void 0),Wl([I(".ft-text-field--input")],Dl.prototype,"input",void 0),Wl([I(".ft-text-field--suggestions")],Dl.prototype,"suggestionsContainer",void 0),Wl([function(t){return(e,i)=>{const{slot:o,selector:r}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return R(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"})],Dl.prototype,"suggestions",void 0);const Fl=Et`
1691
+ `:de}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}}Fl.elementDefinitions={"ft-input-label":Fs,"ft-ripple":ms,"ft-typography":Xn,"ft-icon":la},Fl.styles=[on,Wl],Dl([E()],Fl.prototype,"label",void 0),Dl([E({noAccessor:!0})],Fl.prototype,"value",null),Dl([k()],Fl.prototype,"dispatchedValue",void 0),Dl([E()],Fl.prototype,"helper",void 0),Dl([E({type:Boolean})],Fl.prototype,"outlined",void 0),Dl([E({type:Boolean})],Fl.prototype,"disabled",void 0),Dl([E({type:Boolean})],Fl.prototype,"error",void 0),Dl([E()],Fl.prototype,"prefix",void 0),Dl([E()],Fl.prototype,"icon",void 0),Dl([E()],Fl.prototype,"passwordHiddenIcon",void 0),Dl([E()],Fl.prototype,"passwordRevealedIcon",void 0),Dl([E()],Fl.prototype,"iconVariant",void 0),Dl([E({type:Boolean})],Fl.prototype,"filterSuggestions",void 0),Dl([E({type:Number})],Fl.prototype,"maxLength",void 0),Dl([E({type:Boolean})],Fl.prototype,"password",void 0),Dl([k()],Fl.prototype,"focused",void 0),Dl([k()],Fl.prototype,"hidePassword",void 0),Dl([k()],Fl.prototype,"suggestionsOnTop",void 0),Dl([k()],Fl.prototype,"hideSuggestions",void 0),Dl([k()],Fl.prototype,"visibleSuggestions",void 0),Dl([U(".ft-text-field--main-panel")],Fl.prototype,"mainPanel",void 0),Dl([U(".ft-text-field--input")],Fl.prototype,"input",void 0),Dl([U(".ft-text-field--suggestions")],Fl.prototype,"suggestionsContainer",void 0),Dl([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"})],Fl.prototype,"suggestions",void 0);const Pl=kt`
1687
1692
  .ft-text-field-suggestion {
1688
1693
  position: relative;
1689
1694
  padding: 8px 16px;
@@ -1708,7 +1713,7 @@ const{D:js}=mt,Bs=()=>document.createComment(""),Ks=(t,e,i)=>{const o=t._$AA.par
1708
1713
  slot {
1709
1714
  pointer-events: none;
1710
1715
  }
1711
- `;var Pl=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 Ml extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class zl extends Be{render(){return ce`
1716
+ `;var Ml=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 jl extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class zl extends Ke{render(){return fe`
1712
1717
  <div class="ft-text-field-suggestion"
1713
1718
  tabindex="-1"
1714
1719
  @keydown=${this.onKeyDown}
@@ -1720,17 +1725,17 @@ const{D:js}=mt,Bs=()=>document.createComment(""),Ks=(t,e,i)=>{const o=t._$AA.par
1720
1725
  <slot></slot>
1721
1726
  </ft-typography>
1722
1727
  </div>
1723
- `}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 Ml(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())}}zl.elementDefinitions={"ft-ripple":vs,"ft-typography":Yn,"ft-icon":sa},zl.styles=Fl,Pl([E()],zl.prototype,"value",void 0),Pl([I(".ft-text-field-suggestion")],zl.prototype,"container",void 0),Pl([U()],zl.prototype,"assignedNodes",void 0),T("ft-text-field")(Dl),T("ft-text-field-suggestion")(zl);class jl{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 Bl{convertPaginatedToc(t){return new jl(t).build()}}class Kl{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 jn(null!==(e=null===(t=al.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=al.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 Qo.FEEDBACK:return jn(null!=e?e:[],Pn.FEEDBACK_USER);case Qo.RATING:return jn(null!=e?e:[],Pn.RATING_USER)&&null!=i&&i!==Rn.NO_RATING;case Qo.PRINT:return jn(null!=e?e:[],Pn.PRINT_USER);case Qo.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case Qo.COLLECTIONS:return jn(null!=e?e:[],Pn.COLLECTION_USER);case Qo.PERSONAL_BOOKS:return jn(null!=e?e:[],Pn.PERSONAL_BOOK_USER);default:return!1}}}class Zl extends Kl{static async build(t){return new Zl(new Bl,await sl.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 Hl{static build(t,e){return new Hl((t=>Ho.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,searchInDocumentQuery:void 0}}))(t.trim()||"context"),null!=e?e:Zl.build)}constructor(t,e){this.store=t,this.reloadDebouncer=new L(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),this.store.actions.searchInDocumentQuery(""),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)}}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}}const Gl=Et`
1724
- `;class Vl extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class ql extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Yl extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Xl extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class Jl extends Event{constructor(){super("ft-reader-map-not-found")}}class Ql extends Event{constructor(){super("ft-reader-map-unauthorized")}}var tc=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 ec extends oi{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new L(5),this.navigationDebouncer=new L(10),this.addStore(al)}render(){return ce`
1728
+ `}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 jl(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())}}zl.elementDefinitions={"ft-ripple":ms,"ft-typography":Xn,"ft-icon":la},zl.styles=Pl,Ml([E()],zl.prototype,"value",void 0),Ml([U(".ft-text-field-suggestion")],zl.prototype,"container",void 0),Ml([L()],zl.prototype,"assignedNodes",void 0),W("ft-text-field")(Fl),W("ft-text-field-suggestion")(zl);class Bl{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 Kl{convertPaginatedToc(t){return new Bl(t).build()}}class Zl{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 Bn(null!==(e=null===(t=sl.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=sl.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 tr.FEEDBACK:return Bn(null!=e?e:[],Mn.FEEDBACK_USER);case tr.RATING:return Bn(null!=e?e:[],Mn.RATING_USER)&&null!=i&&i!==In.NO_RATING;case tr.PRINT:return Bn(null!=e?e:[],Mn.PRINT_USER);case tr.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case tr.COLLECTIONS:return Bn(null!=e?e:[],Mn.COLLECTION_USER);case tr.PERSONAL_BOOKS:return Bn(null!=e?e:[],Mn.PERSONAL_BOOK_USER);default:return!1}}}class Hl extends Zl{static async build(t){return new Hl(new Kl,await ll.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 Gl{static build(t,e){return new Gl((t=>Go.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,searchInDocumentQuery:void 0}}))(t.trim()||"context"),null!=e?e:Hl.build)}constructor(t,e){this.store=t,this.reloadDebouncer=new A(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 _(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),this.store.actions.searchInDocumentQuery(""),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)}}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}}const Vl=kt`
1729
+ `;class ql extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Yl extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Xl extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Jl extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class Ql extends Event{constructor(){super("ft-reader-map-not-found")}}class tc extends Event{constructor(){super("ft-reader-map-unauthorized")}}var ec=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 ic extends ri{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new A(5),this.navigationDebouncer=new A(10),this.addStore(sl)}render(){return fe`
1725
1730
  ${this.importStyleIfNeeded()}
1726
1731
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1727
- `}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:"")?he:ce`
1732
+ `}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:"")?de:fe`
1728
1733
  <style>
1729
1734
  @import "${i}"
1730
1735
  </style>
1731
- `}get stateManager(){return null==this._stateManager&&(this._stateManager=Hl.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),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["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 Vl(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 Yl(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 ql(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 Jl):401===e.status?this.dispatchEvent(new Ql):this.dispatchEvent(new Xl(t))}reloadBookmarks(){ml.reloadBookmarks()}}var ic;ec.styles=Gl,tc([Ve({store:al.name})],ec.prototype,"baseUrl",void 0),tc([E()],ec.prototype,"mapId",void 0),tc([E()],ec.prototype,"tocId",void 0),tc([E()],ec.prototype,"section",void 0),tc([E()],ec.prototype,"searchInDocumentQuery",void 0),tc([E({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:ic}})],ec.prototype,"page",void 0),tc([Ve({store:"reader"})],ec.prototype,"map",void 0),tc([Ve({store:"reader"})],ec.prototype,"toc",void 0),tc([Ve({store:"reader"})],ec.prototype,"visibleTopics",void 0),tc([Ve({store:"reader"})],ec.prototype,"currentPage",void 0),tc([Ve({store:"reader"})],ec.prototype,"scrollTarget",void 0),tc([E({attribute:!1})],ec.prototype,"readerServiceProvider",void 0),T("ft-reader-context")(ec);var oc=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 rc extends(Sl(or)){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(Il,Ul),this.addI18nContext(Ll,Al)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Qo.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Qo.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get userHasRatingRole(){return this.session&&jn(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`
1736
+ `}get stateManager(){return null==this._stateManager&&(this._stateManager=Gl.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),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["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 ql(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 Xl(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 Yl(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 Ql):401===e.status?this.dispatchEvent(new tc):this.dispatchEvent(new Jl(t))}reloadBookmarks(){xl.reloadBookmarks()}}var oc;ic.styles=Vl,ec([qe({store:sl.name})],ic.prototype,"baseUrl",void 0),ec([E()],ic.prototype,"mapId",void 0),ec([E()],ic.prototype,"tocId",void 0),ec([E()],ic.prototype,"section",void 0),ec([E()],ic.prototype,"searchInDocumentQuery",void 0),ec([E({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:oc}})],ic.prototype,"page",void 0),ec([qe({store:"reader"})],ic.prototype,"map",void 0),ec([qe({store:"reader"})],ic.prototype,"toc",void 0),ec([qe({store:"reader"})],ic.prototype,"visibleTopics",void 0),ec([qe({store:"reader"})],ic.prototype,"currentPage",void 0),ec([qe({store:"reader"})],ic.prototype,"scrollTarget",void 0),ec([E({attribute:!1})],ic.prototype,"readerServiceProvider",void 0),W("ft-reader-context")(ic);var rc=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 nc extends($l(rr)){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(Ul,Ll),this.addI18nContext(Al,_l)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(tr.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(tr.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get userHasRatingRole(){return this.session&&Bn(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?fe`
1732
1737
  <div class="ft-reader-feedback">
1733
- ${this.hideTitle?he:ce`
1738
+ ${this.hideTitle?de:fe`
1734
1739
  <ft-typography variant="title" part="main-title">
1735
1740
  ${this.i18n(this.i18nProperties.feedbackMainTitle)}
1736
1741
  </ft-typography>
@@ -1738,7 +1743,7 @@ const{D:js}=mt,Bs=()=>document.createComment(""),Ks=(t,e,i)=>{const o=t._$AA.par
1738
1743
  ${this.renderRatingSection()}
1739
1744
  ${this.renderFeedbackSection()}
1740
1745
  </div>
1741
- `:he}renderRatingSection(){return this.canAccessRating?ce`
1746
+ `:de}renderRatingSection(){return this.canAccessRating?fe`
1742
1747
  <div class="ft-reader-feedback--rating" part="rating-container">
1743
1748
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1744
1749
  ${this.i18n("DICHOTOMOUS"===this.ratingSummary.type?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
@@ -1748,11 +1753,11 @@ const{D:js}=mt,Bs=()=>document.createComment(""),Ks=(t,e,i)=>{const o=t._$AA.par
1748
1753
  ${this.renderRatingDate()}
1749
1754
  </ft-typography>
1750
1755
  </div>
1751
- `:this.placeholderInEditor(this.userHasRatingRole?Ll.messages.ratingNotConfigured():Ll.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return Il.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return Il.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?Il.messages.ratedToday():Il.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return ce`
1756
+ `:this.placeholderInEditor(this.userHasRatingRole?Al.messages.ratingNotConfigured():Al.messages.missingRatingRole())}renderRatingDate(){const t=this.ratingDate;if(null==t)return Ul.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return Ul.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?Ul.messages.ratedToday():Ul.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return fe`
1752
1757
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1753
- ${qs(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const o=e+1;return ce`
1758
+ ${Ys(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const o=e+1;return fe`
1754
1759
  <ft-button round part="rating-stars-${o}"
1755
- label="${Il.messages.starsRating(o)}"
1760
+ label="${Ul.messages.starsRating(o)}"
1756
1761
  tooltipPosition="top"
1757
1762
  .iconVariant=${this.iconVariant}
1758
1763
  icon="${i?this.filledStarIcon:this.emptyStarIcon}"
@@ -1761,7 +1766,7 @@ const{D:js}=mt,Bs=()=>document.createComment(""),Ks=(t,e,i)=>{const o=t._$AA.par
1761
1766
  ></ft-button>
1762
1767
  `}))}
1763
1768
  </div>
1764
- `;case"LIKE":const t="LIKE"===this.ratingType&&0===this.ratingValue,e="LIKE"===this.ratingType&&1===this.ratingValue;return ce`
1769
+ `;case"LIKE":const t="LIKE"===this.ratingType&&0===this.ratingValue,e="LIKE"===this.ratingType&&1===this.ratingValue;return fe`
1765
1770
  <ft-switch unselectable
1766
1771
  @change=${t=>this.rate(t.detail)}
1767
1772
  part="rating rating-like">
@@ -1769,71 +1774,71 @@ const{D:js}=mt,Bs=()=>document.createComment(""),Ks=(t,e,i)=>{const o=t._$AA.par
1769
1774
  ?selected=${e}
1770
1775
  .iconVariant=${this.iconVariant}
1771
1776
  icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
1772
- ${Il.messages.like()}
1777
+ ${Ul.messages.like()}
1773
1778
  </ft-switch-option>
1774
1779
  <ft-switch-option .value=${0}
1775
1780
  ?selected=${t}
1776
1781
  .iconVariant=${this.iconVariant}
1777
1782
  icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
1778
- ${Il.messages.dislike()}
1783
+ ${Ul.messages.dislike()}
1779
1784
  </ft-switch-option>
1780
1785
  </ft-switch>
1781
- `;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,o="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return ce`
1786
+ `;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,o="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return fe`
1782
1787
  <ft-switch unselectable
1783
1788
  @change=${t=>this.rate(t.detail)}
1784
1789
  part="rating rating-dichotomous">
1785
1790
  <ft-switch-option .value=${1}
1786
1791
  ?selected=${o}>
1787
- ${Il.messages.dichotomousYes()}
1792
+ ${Ul.messages.dichotomousYes()}
1788
1793
  </ft-switch-option>
1789
1794
  <ft-switch-option .value=${0}
1790
1795
  ?selected=${i}>
1791
- ${Il.messages.dichotomousNo()}
1796
+ ${Ul.messages.dichotomousNo()}
1792
1797
  </ft-switch-option>
1793
1798
  </ft-switch>
1794
- `}return he}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`
1799
+ `}return de}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=fe`
1795
1800
  <ft-button primary
1796
1801
  type="submit" name="submit"
1797
1802
  class="ft-reader-feedback--send-feedback"
1798
1803
  ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1799
1804
  part="send-feedback">
1800
- ${Il.messages.okButton()}
1805
+ ${Ul.messages.okButton()}
1801
1806
  </ft-button>
1802
- `;return o&&(r=ce`
1807
+ `;return o&&(r=fe`
1803
1808
  <a class="ft-reader-feedback--feedback-link" href="${o}">
1804
1809
  ${r}
1805
1810
  </a>
1806
- `),ce`
1811
+ `),fe`
1807
1812
  <form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
1808
1813
  @submit="${t=>this.onFormSubmitEvent(t,!!o)}">
1809
1814
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1810
1815
  ${this.i18n(this.i18nProperties.feedbackSectionTitle)}
1811
1816
  </ft-typography>
1812
- ${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`
1817
+ ${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)?fe`
1813
1818
  <ft-text-field outlined name="email" type="email" autocomplete="email"
1814
1819
  class="ft-reader-feedback--from-input"
1815
- label=${Il.messages.feedbackfromEmail()}
1820
+ label=${Ul.messages.feedbackfromEmail()}
1816
1821
  @change=${t=>this.from=t.detail.trim()}
1817
1822
  ?error=${this.from&&!this.validFromEmail()}
1818
- helper=${this.from&&!this.validFromEmail()?Il.messages.feedbackfromEmailInvalid():""}
1823
+ helper=${this.from&&!this.validFromEmail()?Ul.messages.feedbackfromEmailInvalid():""}
1819
1824
  />
1820
- `:he}
1825
+ `:de}
1821
1826
  <ft-text-area outlined
1822
1827
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1823
- label="${Il.messages.feedbackInputLabel()}"
1828
+ label="${Ul.messages.feedbackInputLabel()}"
1824
1829
  @live-change=${t=>this.feedbackMessage=t.detail.trim()}
1825
1830
  ></ft-text-area>
1826
1831
  ${r}
1827
1832
  </form>
1828
- `}return this.placeholderInEditor(Ll.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`
1833
+ `}return this.placeholderInEditor(Al.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?fe`
1829
1834
  <div class="ft-reader-feedback--placeholder">
1830
1835
  <ft-typography variant="caption">${t}</ft-typography>
1831
1836
  <ft-tooltip position="left"
1832
- text="${Ll.messages.inDesignerOnlyNotice()}">
1837
+ text="${Al.messages.inDesignerOnlyNotice()}">
1833
1838
  <ft-icon>INFO</ft-icon>
1834
1839
  </ft-tooltip>
1835
1840
  </div>
1836
- `:he}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}rc.elementDefinitions={"ft-button":tl,"ft-typography":Yn,"ft-icon":sa,"ft-tooltip":ys,"ft-switch":Es,"ft-switch-option":$s,"ft-text-area":zs,"ft-text-field":Dl},rc.styles=Nn,oc([E({type:Boolean})],rc.prototype,"editorMode",void 0),oc([E({type:Boolean})],rc.prototype,"hideTitle",void 0),oc([E({type:Boolean})],rc.prototype,"ratingAllowed",void 0),oc([E({attribute:!1})],rc.prototype,"i18nProperties",void 0),oc([E({attribute:!1})],rc.prototype,"ratingSummary",void 0),oc([E({attribute:!1})],rc.prototype,"session",void 0),oc([I(".ft-reader-feedback--feedback-input")],rc.prototype,"feedbackInput",void 0),oc([k()],rc.prototype,"from",void 0),oc([k()],rc.prototype,"feedbackMessage",void 0),oc([E()],rc.prototype,"iconVariant",void 0),oc([E()],rc.prototype,"emptyStarIcon",void 0),oc([E()],rc.prototype,"filledStarIcon",void 0),oc([E()],rc.prototype,"emptyLikeIcon",void 0),oc([E()],rc.prototype,"filledLikeIcon",void 0),oc([E()],rc.prototype,"emptyDislikeIcon",void 0),oc([E()],rc.prototype,"filledDislikeIcon",void 0),oc([Ve({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],rc.prototype,"configuration",void 0),oc([E()],rc.prototype,"feedbackMailLinkBuilder",void 0);const nc=kl.fromGwt("server");class ac{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${nc.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${r}&body=${n}`}}var sc=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 lc extends(Sl(or)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=na.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 ac,this.i18nProperties={feedbackMainTitle:Il.properties.mapFeedbackMainTitle(),ratingSectionTitle:Il.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Il.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Il.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new L(100),this.sendRatingDebouncer=new L(500),this.addStore(al)}render(){return this.map&&(this.editorMode||this.componentVisible)?ce`
1841
+ `:de}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}nc.elementDefinitions={"ft-button":el,"ft-typography":Xn,"ft-icon":la,"ft-tooltip":gs,"ft-switch":ks,"ft-switch-option":Ns,"ft-text-area":zs,"ft-text-field":Fl},nc.styles=Cn,rc([E({type:Boolean})],nc.prototype,"editorMode",void 0),rc([E({type:Boolean})],nc.prototype,"hideTitle",void 0),rc([E({type:Boolean})],nc.prototype,"ratingAllowed",void 0),rc([E({attribute:!1})],nc.prototype,"i18nProperties",void 0),rc([E({attribute:!1})],nc.prototype,"ratingSummary",void 0),rc([E({attribute:!1})],nc.prototype,"session",void 0),rc([U(".ft-reader-feedback--feedback-input")],nc.prototype,"feedbackInput",void 0),rc([k()],nc.prototype,"from",void 0),rc([k()],nc.prototype,"feedbackMessage",void 0),rc([E()],nc.prototype,"iconVariant",void 0),rc([E()],nc.prototype,"emptyStarIcon",void 0),rc([E()],nc.prototype,"filledStarIcon",void 0),rc([E()],nc.prototype,"emptyLikeIcon",void 0),rc([E()],nc.prototype,"filledLikeIcon",void 0),rc([E()],nc.prototype,"emptyDislikeIcon",void 0),rc([E()],nc.prototype,"filledDislikeIcon",void 0),rc([qe({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],nc.prototype,"configuration",void 0),rc([E()],nc.prototype,"feedbackMailLinkBuilder",void 0);const ac=Rl.fromGwt("server");class sc{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${ac.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${r}&body=${n}`}}var lc=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 cc extends($l(rr)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=aa.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 sc,this.i18nProperties={feedbackMainTitle:Ul.properties.mapFeedbackMainTitle(),ratingSectionTitle:Ul.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Ul.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Ul.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new A(100),this.sendRatingDebouncer=new A(500),this.addStore(sl)}render(){return this.map&&(this.editorMode||this.componentVisible)?fe`
1837
1842
  <ft-reader-feedback
1838
1843
  ratingAllowed
1839
1844
  .i18nProperties=${this.i18nProperties}
@@ -1853,13 +1858,13 @@ const{D:js}=mt,Bs=()=>document.createComment(""),Ks=(t,e,i)=>{const o=t._$AA.par
1853
1858
  @send-feedback=${this.sendFeedback}
1854
1859
  @mailer-feedback=${this.onMailerFeedbackSent}
1855
1860
  ></ft-reader-feedback>
1856
- `:ce`
1861
+ `:fe`
1857
1862
  <style>
1858
1863
  :host {
1859
1864
  display: none !important;
1860
1865
  }
1861
1866
  </style>
1862
- `}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Qo.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(Qo.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:Il.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _e({type:"info",message:Ll.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new _e({type:"info",message:Ll.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:Il.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new _e({type:"error",message:Il.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}lc.elementDefinitions={"ft-reader-feedback":rc},sc([Ve({store:al.name})],lc.prototype,"session",void 0),sc([Ve({store:"reader"})],lc.prototype,"map",void 0),sc([Ve({store:al.name})],lc.prototype,"editorMode",void 0),sc([Ve({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],lc.prototype,"configuration",void 0),sc([k()],lc.prototype,"ratingSummary",void 0),sc([E({type:Boolean})],lc.prototype,"hideTitle",void 0),sc([E()],lc.prototype,"iconVariant",void 0),sc([E()],lc.prototype,"emptyStarIcon",void 0),sc([E()],lc.prototype,"filledStarIcon",void 0),sc([E()],lc.prototype,"emptyLikeIcon",void 0),sc([E()],lc.prototype,"filledLikeIcon",void 0),sc([E()],lc.prototype,"emptyDislikeIcon",void 0),sc([E()],lc.prototype,"filledDislikeIcon",void 0),sc([I("ft-reader-feedback")],lc.prototype,"readerFeedback",void 0),sc([Rl(nc.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],lc.prototype,"mailSubject",void 0);var cc=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 fc extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const hc=Symbol("registerInterval");class dc extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[hc]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[hc]):this.dispatchEvent(new fc)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=hc,cc([k()],i.prototype,"tocNode",void 0),cc([k()],i.prototype,"disableContextInteractions",void 0),i}(or)){}var uc=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 pc extends(Sl(dc)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=na.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 ac,this.i18nProperties={feedbackMainTitle:Il.properties.topicFeedbackMainTitle(),ratingSectionTitle:Il.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Il.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Il.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new L(100),this.sendRatingDebouncer=new L(500),this.addStore(al)}render(){return this.map&&this.tocNode&&(this.editorMode||this.componentVisible)?ce`
1867
+ `}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(tr.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(tr.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 Te({type:"error",message:Ul.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Te({type:"info",message:Al.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new Te({type:"info",message:Al.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Te({type:"info",message:Ul.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Te({type:"error",message:Ul.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}cc.elementDefinitions={"ft-reader-feedback":nc},lc([qe({store:sl.name})],cc.prototype,"session",void 0),lc([qe({store:"reader"})],cc.prototype,"map",void 0),lc([qe({store:sl.name})],cc.prototype,"editorMode",void 0),lc([qe({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],cc.prototype,"configuration",void 0),lc([k()],cc.prototype,"ratingSummary",void 0),lc([E({type:Boolean})],cc.prototype,"hideTitle",void 0),lc([E()],cc.prototype,"iconVariant",void 0),lc([E()],cc.prototype,"emptyStarIcon",void 0),lc([E()],cc.prototype,"filledStarIcon",void 0),lc([E()],cc.prototype,"emptyLikeIcon",void 0),lc([E()],cc.prototype,"filledLikeIcon",void 0),lc([E()],cc.prototype,"emptyDislikeIcon",void 0),lc([E()],cc.prototype,"filledDislikeIcon",void 0),lc([U("ft-reader-feedback")],cc.prototype,"readerFeedback",void 0),lc([Il(ac.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],cc.prototype,"mailSubject",void 0);var fc=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 hc extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const dc=Symbol("registerInterval");class uc extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[dc]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[dc]):this.dispatchEvent(new hc)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=dc,fc([k()],i.prototype,"tocNode",void 0),fc([k()],i.prototype,"disableContextInteractions",void 0),i}(rr)){}var pc=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 yc extends($l(uc)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=aa.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 sc,this.i18nProperties={feedbackMainTitle:Ul.properties.topicFeedbackMainTitle(),ratingSectionTitle:Ul.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Ul.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Ul.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new A(100),this.sendRatingDebouncer=new A(500),this.addStore(sl)}render(){return this.map&&this.tocNode&&(this.editorMode||this.componentVisible)?fe`
1863
1868
  <ft-reader-feedback
1864
1869
  .i18nProperties=${this.i18nProperties}
1865
1870
  ?ratingAllowed=${this.tocNode.hasRating}
@@ -1879,10 +1884,10 @@ const{D:js}=mt,Bs=()=>document.createComment(""),Ks=(t,e,i)=>{const o=t._$AA.par
1879
1884
  @send-feedback=${this.sendFeedback}
1880
1885
  @mailer-feedback=${this.onMailerFeedbackSent}
1881
1886
  ></ft-reader-feedback>
1882
- `:ce`
1887
+ `:fe`
1883
1888
  <style>
1884
1889
  :host {
1885
1890
  display: none !important;
1886
1891
  }
1887
1892
  </style>
1888
- `}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(Qo.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(Qo.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:Il.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new _e({type:"info",message:Ll.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:Il.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new _e({type:"info",message:Ll.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new _e({type:"error",message:Il.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}pc.elementDefinitions={"ft-reader-feedback":rc},uc([Ve({store:al.name})],pc.prototype,"session",void 0),uc([Ve({store:"reader"})],pc.prototype,"map",void 0),uc([Ve({store:al.name})],pc.prototype,"editorMode",void 0),uc([Ve({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],pc.prototype,"configuration",void 0),uc([k()],pc.prototype,"ratingSummary",void 0),uc([E({type:Boolean})],pc.prototype,"hideTitle",void 0),uc([E()],pc.prototype,"iconVariant",void 0),uc([E()],pc.prototype,"emptyStarIcon",void 0),uc([E()],pc.prototype,"filledStarIcon",void 0),uc([E()],pc.prototype,"emptyLikeIcon",void 0),uc([E()],pc.prototype,"filledLikeIcon",void 0),uc([E()],pc.prototype,"emptyDislikeIcon",void 0),uc([E()],pc.prototype,"filledDislikeIcon",void 0),uc([I("ft-reader-feedback")],pc.prototype,"readerFeedback",void 0),uc([Rl(nc.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]})))],pc.prototype,"mailSubject",void 0),T("ft-reader-map-feedback")(lc),T("ft-reader-topic-feedback")(pc),t.FtReaderFeedbackCssVariables=$n,t.FtReaderMapFeedback=lc,t.FtReaderTopicFeedback=pc,t.styles=Nn}({});
1893
+ `}get componentVisible(){var t,e,i;return(null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(tr.FEEDBACK,{session:this.session}))||(null===(e=this.service)||void 0===e?void 0:e.isFeatureAccessible(tr.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 Te({type:"error",message:Ul.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Te({type:"info",message:Al.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 Te({type:"info",message:Ul.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Te({type:"info",message:Al.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Te({type:"error",message:Ul.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}yc.elementDefinitions={"ft-reader-feedback":nc},pc([qe({store:sl.name})],yc.prototype,"session",void 0),pc([qe({store:"reader"})],yc.prototype,"map",void 0),pc([qe({store:sl.name})],yc.prototype,"editorMode",void 0),pc([qe({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],yc.prototype,"configuration",void 0),pc([k()],yc.prototype,"ratingSummary",void 0),pc([E({type:Boolean})],yc.prototype,"hideTitle",void 0),pc([E()],yc.prototype,"iconVariant",void 0),pc([E()],yc.prototype,"emptyStarIcon",void 0),pc([E()],yc.prototype,"filledStarIcon",void 0),pc([E()],yc.prototype,"emptyLikeIcon",void 0),pc([E()],yc.prototype,"filledLikeIcon",void 0),pc([E()],yc.prototype,"emptyDislikeIcon",void 0),pc([E()],yc.prototype,"filledDislikeIcon",void 0),pc([U("ft-reader-feedback")],yc.prototype,"readerFeedback",void 0),pc([Il(ac.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]})))],yc.prototype,"mailSubject",void 0),W("ft-reader-map-feedback")(cc),W("ft-reader-topic-feedback")(yc),t.FtReaderFeedbackCssVariables=Nn,t.FtReaderMapFeedback=cc,t.FtReaderTopicFeedback=yc,t.styles=Cn}({});