@fluid-topics/ft-reader-feedback 1.1.30 → 1.1.32

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(ts){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,o)=>t((t=>{this.isCanceled?o(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?o(new e("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class o{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class r{constructor(t,e,i,o){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=i,this.metadataDescriptors=o}static extractResultMetadata(t){var e,i;return(null!==(i=null!==(e=null==t?void 0:t.map)&&void 0!==e?e:null==t?void 0:t.document)&&void 0!==i?i:null==t?void 0:t.topic).metadata.map((t=>r.flattenMetadata(t)))}static flattenMetadata(t){if(t.hierarchicalValues){const e=[],i=[];return t.hierarchicalValues.forEach((t=>{e.push(t.join(" > ")),t.length>2?i.push(`... > ${t[t.length-1]}`):i.push(t.join(" > "))})),{key:t.key,value:e.join(", "),displayValue:i.join(", ")}}{const e=t.values.join(", ");return{key:t.key,value:e,displayValue:e}}}computeClustersItemsForMetadata(t,e){const i=this.allResults.flatMap((e=>r.extractResultMetadata(e).filter((e=>e.key===t)))).filter(((t,e,i)=>i.findIndex((e=>e.value===t.value))===e));return i.map((e=>({result:this.findMatchingResult(t,e.value),metadata:e}))).sort(((i,o)=>this.compareMetadata(i.metadata.value,o.metadata.value,t,e)))}compareMetadata(t,e,i,o){let r=this.metadataDescriptors.find((t=>i==t.key)),n=(null==r?void 0:r.sortRule)||"NONE",a=(null==r?void 0:r.reverseSort)||!1;if("ALPHABET"==n||"VERSION"==n){let i=t.localeCompare(e,o,{numeric:!0});return a?-1*i:i}return 0}findMatchingResult(t,e){var i,o;let n=r.extractResultMetadata(this.selectedResult).filter((t=>this.clusteringMetadata.has(t.key))),a=[...n.filter((e=>e.key!==t)),{key:t,value:e,displayValue:e}];return null!==(o=null!==(i=this.findResultMatchingMetadata(a))&&void 0!==i?i:this.findResultMatchingMetadata([{key:t,value:e,displayValue:e}]))&&void 0!==o?o:this.allResults[0]}findResultMatchingMetadata(t){return this.allResults.find((e=>this.resultMatchesMetadata(e,t)))}resultMatchesMetadata(t,e){let i=r.extractResultMetadata(t);return e.every((t=>i.some((e=>e.key==t.key&&e.value==t.value))))}}class n{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}}
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(es){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e extends Error{constructor(t,e,i){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=i}}class i extends Promise{constructor(t){super(((i,o)=>t((t=>{this.isCanceled?o(new e("Promise has been canceled",t)):i(t)}),(t=>{this.isCanceled?o(new e("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}class o{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof i&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){null!=this.clearTimeouts[t]&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,(async()=>e)),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,(async()=>e)),this.content[t]=e}async get(t,e,o){if(void 0===this.content[t]){if(null==(e=null!=e?e:this.loaders[t]))throw new Error("Unknown cache key "+t);const r=(t=>new i(((e,i)=>t.then(e).catch(i))))(e());return this.content[t]=r,r.then((e=>(this.content[t]=e,null!=o&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout((()=>this.clear(t)),o)),e)))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return!(null==t||t instanceof Promise||t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return null!=this.content[t]}resolvedKeys(){return Object.keys(this.content).filter((t=>this.isResolvedValue(this.content[t])))}resolvedValues(){return Object.values(this.content).filter((t=>this.isResolvedValue(t)))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}}class r{constructor(t,e,i,o){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=i,this.metadataDescriptors=o}static extractResultMetadata(t){var e,i;return(null!==(i=null!==(e=null==t?void 0:t.map)&&void 0!==e?e:null==t?void 0:t.document)&&void 0!==i?i:null==t?void 0:t.topic).metadata.map((t=>r.flattenMetadata(t)))}static flattenMetadata(t){if(t.hierarchicalValues){const e=[],i=[];return t.hierarchicalValues.forEach((t=>{e.push(t.join(" > ")),t.length>2?i.push(`... > ${t[t.length-1]}`):i.push(t.join(" > "))})),{key:t.key,value:e.join(", "),displayValue:i.join(", ")}}{const e=t.values.join(", ");return{key:t.key,value:e,displayValue:e}}}computeClustersItemsForMetadata(t,e){const i=this.allResults.flatMap((e=>r.extractResultMetadata(e).filter((e=>e.key===t)))).filter(((t,e,i)=>i.findIndex((e=>e.value===t.value))===e));return i.map((e=>({result:this.findMatchingResult(t,e.value),metadata:e}))).sort(((i,o)=>this.compareMetadata(i.metadata.value,o.metadata.value,t,e)))}compareMetadata(t,e,i,o){let r=this.metadataDescriptors.find((t=>i==t.key)),n=(null==r?void 0:r.sortRule)||"NONE",a=(null==r?void 0:r.reverseSort)||!1;if("ALPHABET"==n||"VERSION"==n){let i=t.localeCompare(e,o,{numeric:!0});return a?-1*i:i}return 0}findMatchingResult(t,e){var i,o;let n=r.extractResultMetadata(this.selectedResult).filter((t=>this.clusteringMetadata.has(t.key))),a=[...n.filter((e=>e.key!==t)),{key:t,value:e,displayValue:e}];return null!==(o=null!==(i=this.findResultMatchingMetadata(a))&&void 0!==i?i:this.findResultMatchingMetadata([{key:t,value:e,displayValue:e}]))&&void 0!==o?o:this.allResults[0]}findResultMatchingMetadata(t){return this.allResults.find((e=>this.resultMatchesMetadata(e,t)))}resultMatchesMetadata(t,e){let i=r.extractResultMetadata(t);return e.every((t=>i.some((e=>e.key==t.key&&e.value==t.value))))}}class n{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}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -59,12 +59,12 @@ const E={attribute:!0,type:String,converter:S,reflect:!1,hasChanged:N},k=(t=E,e,
59
59
  * Copyright 2017 Google LLC
60
60
  * SPDX-License-Identifier: BSD-3-Clause
61
61
  */
62
- function T(t){return(e,i)=>{const{slot:o}=t??{},r="slot"+(o?`[name=${o}]`:":not([name])");return L(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}const _=t=>new Promise((e=>setTimeout(e,t)));async function W(t,e=10,i=2e4){let o,r,n=await t();for(o=r=performance.now();null==n&&(!i||r-o<i);)await _(e),n=await t(),r=performance.now();if(null==n)throw new Error("Timeout exceeded");return n}function D(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(!D(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(!D(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(!D(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const F=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function M(t,e){const i=()=>JSON.parse(JSON.stringify(t));return I({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)=>!D(t,e),...null!=e?e:{}})}
62
+ function T(t){return(e,i)=>{const{slot:o}=t??{},r="slot"+(o?`[name=${o}]`:":not([name])");return L(0,0,{get(){const e=this.renderRoot?.querySelector(r);return e?.assignedNodes(t)??[]}})}}const _=t=>new Promise((e=>setTimeout(e,t)));async function W(t,e=10,i=2e4){let o,r,n=await t();for(o=r=performance.now();null==n&&(!i||r-o<i);)await _(e),n=await t(),r=performance.now();if(null==n)throw new Error("Timeout exceeded");return n}function D(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(!D(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(!D(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(!D(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}const M=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function F(t,e){const i=()=>JSON.parse(JSON.stringify(t));return I({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)=>!D(t,e),...null!=e?e:{}})}
63
63
  /**
64
64
  * @license
65
65
  * Copyright 2017 Google LLC
66
66
  * SPDX-License-Identifier: BSD-3-Clause
67
- */const P=globalThis,z=P.trustedTypes,j=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,B="$lit$",K=`lit$${(Math.random()+"").slice(9)}$`,Z="?"+K,H=`<${Z}>`,G=document,V=()=>G.createComment(""),q=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Y=Array.isArray,X=t=>Y(t)||"function"==typeof t?.[Symbol.iterator],J="[ \t\n\f\r]",Q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,tt=/-->/g,et=/>/g,it=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ot=/'/g,rt=/"/g,nt=/^(?:script|style|textarea|title)$/i,at=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),st=Symbol.for("lit-noChange"),lt=Symbol.for("lit-nothing"),ct=new WeakMap,ft=G.createTreeWalker(G,129);function ht(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==j?j.createHTML(e):e}const dt=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",a=Q;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===Q?"!--"===l[1]?a=tt:void 0!==l[1]?a=et:void 0!==l[2]?(nt.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=it):void 0!==l[3]&&(a=it):a===it?">"===l[0]?(a=r??Q,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?it:'"'===l[3]?rt:ot):a===rt||a===ot?a=it:a===tt||a===et?a=Q:(a=it,r=void 0);const h=a===it&&t[e+1].startsWith("/>")?" ":"";n+=a===Q?i+H:c>=0?(o.push(s),i.slice(0,c)+B+i.slice(c)+K+h):i+K+(-2===c?e:h)}return[ht(t,n+(t[i]||"<?>")+(2===e?"</svg>":"")),o]};let ut=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]=dt(e,i);if(this.el=t.createElement(c,o),ft.currentNode=this.el.content,2===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=ft.nextNode())&&l.length<s;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(B)){const e=f[a++],i=r.getAttribute(t).split(K),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:o[2],strings:i,ctor:"."===o[1]?vt:"?"===o[1]?mt:"@"===o[1]?xt:bt}),r.removeAttribute(t)}else t.startsWith(K)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(nt.test(r.tagName)){const t=r.textContent.split(K),e=t.length-1;if(e>0){r.textContent=z?z.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],V()),ft.nextNode(),l.push({type:2,index:++n});r.append(t[e],V())}}}else if(8===r.nodeType)if(r.data===Z)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(K,t+1));)l.push({type:7,index:n}),t+=K.length-1}n++}}static createElement(t,e){const i=G.createElement("template");return i.innerHTML=t,i}};function pt(t,e,i=t,o){if(e===st)return e;let r=void 0!==o?i._$Co?.[o]:i._$Cl;const n=q(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=pt(t,r._$AS(t,e.values),r,o)),e}let yt=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??G).importNode(e,!0);ft.currentNode=o;let r=ft.nextNode(),n=0,a=0,s=i[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new gt(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new wt(r,this,t)),this._$AV.push(e),s=i[++a]}n!==s?.index&&(r=ft.nextNode(),n++)}return ft.currentNode=G,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++}},gt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=lt,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=pt(this,t,e),q(t)?t===lt||null==t||""===t?(this._$AH!==lt&&this._$AR(),this._$AH=lt):t!==this._$AH&&t!==st&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):X(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!==lt&&q(this._$AH)?this._$AA.nextSibling.data=t:this.$(G.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=ut.createElement(ht(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new yt(o,this),i=t.u(this.options);t.p(e),this.$(i),this._$AH=t}}_$AC(t){let e=ct.get(t.strings);return void 0===e&&ct.set(t.strings,e=new ut(t)),e}T(e){Y(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(V()),this.k(V()),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))}},bt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=lt,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=lt}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=pt(this,t,e,0),n=!q(t)||t!==this._$AH&&t!==st,n&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=pt(this,o[i+a],e,a),s===st&&(s=this._$AH[a]),n||=!q(s)||s!==this._$AH[a],s===lt?t=lt:t!==lt&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.O(t)}O(t){t===lt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},vt=class extends bt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===lt?void 0:t}},mt=class extends bt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==lt)}},xt=class extends bt{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=pt(this,t,e,0)??lt)===st)return;const i=this._$AH,o=t===lt&&i!==lt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==lt&&(i===lt||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)}},wt=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){pt(this,t)}};const Ot={j:B,P:K,A:Z,C:1,M:dt,L:yt,R:X,V:pt,D:gt,I:bt,H:mt,N:xt,U:vt,B:wt},St=P.litHtmlPolyfillSupport;St?.(ut,gt),(P.litHtmlVersions??=[]).push("3.1.0");
67
+ */const P=globalThis,z=P.trustedTypes,B=z?z.createPolicy("lit-html",{createHTML:t=>t}):void 0,j="$lit$",K=`lit$${(Math.random()+"").slice(9)}$`,Z="?"+K,H=`<${Z}>`,G=document,V=()=>G.createComment(""),q=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Y=Array.isArray,X=t=>Y(t)||"function"==typeof t?.[Symbol.iterator],J="[ \t\n\f\r]",Q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,tt=/-->/g,et=/>/g,it=RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ot=/'/g,rt=/"/g,nt=/^(?:script|style|textarea|title)$/i,at=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),st=Symbol.for("lit-noChange"),lt=Symbol.for("lit-nothing"),ct=new WeakMap,ft=G.createTreeWalker(G,129);function ht(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==B?B.createHTML(e):e}const dt=(t,e)=>{const i=t.length-1,o=[];let r,n=2===e?"<svg>":"",a=Q;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===Q?"!--"===l[1]?a=tt:void 0!==l[1]?a=et:void 0!==l[2]?(nt.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=it):void 0!==l[3]&&(a=it):a===it?">"===l[0]?(a=r??Q,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?it:'"'===l[3]?rt:ot):a===rt||a===ot?a=it:a===tt||a===et?a=Q:(a=it,r=void 0);const h=a===it&&t[e+1].startsWith("/>")?" ":"";n+=a===Q?i+H:c>=0?(o.push(s),i.slice(0,c)+j+i.slice(c)+K+h):i+K+(-2===c?e:h)}return[ht(t,n+(t[i]||"<?>")+(2===e?"</svg>":"")),o]};let ut=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]=dt(e,i);if(this.el=t.createElement(c,o),ft.currentNode=this.el.content,2===i){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=ft.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(K),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:o[2],strings:i,ctor:"."===o[1]?vt:"?"===o[1]?mt:"@"===o[1]?xt:bt}),r.removeAttribute(t)}else t.startsWith(K)&&(l.push({type:6,index:n}),r.removeAttribute(t));if(nt.test(r.tagName)){const t=r.textContent.split(K),e=t.length-1;if(e>0){r.textContent=z?z.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],V()),ft.nextNode(),l.push({type:2,index:++n});r.append(t[e],V())}}}else if(8===r.nodeType)if(r.data===Z)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=r.data.indexOf(K,t+1));)l.push({type:7,index:n}),t+=K.length-1}n++}}static createElement(t,e){const i=G.createElement("template");return i.innerHTML=t,i}};function pt(t,e,i=t,o){if(e===st)return e;let r=void 0!==o?i._$Co?.[o]:i._$Cl;const n=q(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=pt(t,r._$AS(t,e.values),r,o)),e}let yt=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??G).importNode(e,!0);ft.currentNode=o;let r=ft.nextNode(),n=0,a=0,s=i[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new gt(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new wt(r,this,t)),this._$AV.push(e),s=i[++a]}n!==s?.index&&(r=ft.nextNode(),n++)}return ft.currentNode=G,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++}},gt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,o){this.type=2,this._$AH=lt,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=pt(this,t,e),q(t)?t===lt||null==t||""===t?(this._$AH!==lt&&this._$AR(),this._$AH=lt):t!==this._$AH&&t!==st&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):X(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!==lt&&q(this._$AH)?this._$AA.nextSibling.data=t:this.$(G.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=ut.createElement(ht(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new yt(o,this),i=t.u(this.options);t.p(e),this.$(i),this._$AH=t}}_$AC(t){let e=ct.get(t.strings);return void 0===e&&ct.set(t.strings,e=new ut(t)),e}T(e){Y(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(V()),this.k(V()),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))}},bt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=lt,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=lt}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(void 0===r)t=pt(this,t,e,0),n=!q(t)||t!==this._$AH&&t!==st,n&&(this._$AH=t);else{const o=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=pt(this,o[i+a],e,a),s===st&&(s=this._$AH[a]),n||=!q(s)||s!==this._$AH[a],s===lt?t=lt:t!==lt&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!o&&this.O(t)}O(t){t===lt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},vt=class extends bt{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===lt?void 0:t}},mt=class extends bt{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==lt)}},xt=class extends bt{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){if((t=pt(this,t,e,0)??lt)===st)return;const i=this._$AH,o=t===lt&&i!==lt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==lt&&(i===lt||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)}},wt=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){pt(this,t)}};const Ot={j,P:K,A:Z,C:1,M:dt,L:yt,R:X,V:pt,D:gt,I:bt,H:mt,N:xt,U:vt,B:wt},St=P.litHtmlPolyfillSupport;St?.(ut,gt),(P.litHtmlVersions??=[]).push("3.1.0");
68
68
  /**
69
69
  * @license
70
70
  * Copyright 2019 Google LLC
@@ -75,7 +75,7 @@ const Nt=globalThis,$t=Nt.ShadowRoot&&(void 0===Nt.ShadyCSS||Nt.ShadyCSS.nativeS
75
75
  * @license
76
76
  * Copyright 2017 Google LLC
77
77
  * SPDX-License-Identifier: BSD-3-Clause
78
- */,{is:Lt,defineProperty:At,getOwnPropertyDescriptor:Tt,getOwnPropertyNames:_t,getOwnPropertySymbols:Wt,getPrototypeOf:Dt}=Object,Ft=globalThis,Mt=Ft.trustedTypes,Pt=Mt?Mt.emptyScript:"",zt=Ft.reactiveElementPolyfillSupport,jt=(t,e)=>t,Bt={toAttribute(t,e){switch(e){case Boolean:t=t?Pt: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}},Kt=(t,e)=>!Lt(t,e),Zt={attribute:!0,type:String,converter:Bt,reflect:!1,hasChanged:Kt};Symbol.metadata??=Symbol("metadata"),Ft.litPropertyMetadata??=new WeakMap;let Ht=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Zt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&At(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=Tt(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)??Zt}static _$Ei(){if(this.hasOwnProperty(jt("elementProperties")))return;const t=Dt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(jt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(jt("properties"))){const t=this.properties,e=[..._t(t),...Wt(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(Ut(t))}else void 0!==t&&e.push(Ut(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($t)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),o=Nt.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:Bt).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:Bt;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??Kt)(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){}};Ht.elementStyles=[],Ht.shadowRootOptions={mode:"open"},Ht[jt("elementProperties")]=new Map,Ht[jt("finalized")]=new Map,zt?.({ReactiveElement:Ht}),(Ft.reactiveElementVersions??=[]).push("2.0.2");
78
+ */,{is:Lt,defineProperty:At,getOwnPropertyDescriptor:Tt,getOwnPropertyNames:_t,getOwnPropertySymbols:Wt,getPrototypeOf:Dt}=Object,Mt=globalThis,Ft=Mt.trustedTypes,Pt=Ft?Ft.emptyScript:"",zt=Mt.reactiveElementPolyfillSupport,Bt=(t,e)=>t,jt={toAttribute(t,e){switch(e){case Boolean:t=t?Pt: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}},Kt=(t,e)=>!Lt(t,e),Zt={attribute:!0,type:String,converter:jt,reflect:!1,hasChanged:Kt};Symbol.metadata??=Symbol("metadata"),Mt.litPropertyMetadata??=new WeakMap;let Ht=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Zt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);void 0!==o&&At(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){const{get:o,set:r}=Tt(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)??Zt}static _$Ei(){if(this.hasOwnProperty(Bt("elementProperties")))return;const t=Dt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Bt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Bt("properties"))){const t=this.properties,e=[..._t(t),...Wt(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(Ut(t))}else void 0!==t&&e.push(Ut(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($t)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),o=Nt.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??Kt)(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){}};Ht.elementStyles=[],Ht.shadowRootOptions={mode:"open"},Ht[Bt("elementProperties")]=new Map,Ht[Bt("finalized")]=new Map,zt?.({ReactiveElement:Ht}),(Mt.reactiveElementVersions??=[]).push("2.0.2");
79
79
  /**
80
80
  * @license
81
81
  * Copyright 2017 Google LLC
@@ -87,13 +87,13 @@ const Gt=globalThis,Vt=Gt.trustedTypes,qt=Vt?Vt.createPolicy("lit-html",{createH
87
87
  * Copyright 2017 Google LLC
88
88
  * SPDX-License-Identifier: BSD-3-Clause
89
89
  */
90
- let Ee=class extends Ht{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 xe(e.insertBefore(ee(),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 ue}};Ee._$litElement$=!0,Ee.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ee});const ke=globalThis.litElementPolyfillSupport;ke?.({LitElement:Ee}),(globalThis.litElementVersions??=[]).push("4.0.2");const Ie=t=>"string"==typeof t?It(t):t;class Re{static create(t,e,i,o){const r=t=>Ie(null!=t?t:o),n=Rt`var(${Ie(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>Rt`var(${Ie(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=Rt`var(${Ie(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=>Rt`var(${Ie(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):Ie(null!=e?e:t.lastResortDefaultValue()),o=Rt`var(${Ie(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=>Rt`var(${Ie(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>t.lastResortDefaultValue(),o}}function Ue(t,e){return Ie(`${t.name}: ${e}`)}const Le={colorWhite:Re.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Re.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Re.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Re.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Re.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Re.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Re.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Re.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Re.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Re.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Re.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Re.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Re.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Re.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Re.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Re.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Re.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Re.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Re.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Re.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Re.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Re.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Re.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Re.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Re.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Re.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Re.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Re.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Re.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Re.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Re.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Re.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Re.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Re.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Re.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Re.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Re.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Re.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Re.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Re.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Re.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Re.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Re.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Re.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Re.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Re.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Re.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Re.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Re.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Re.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Re.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Re.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Re.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Re.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Re.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Re.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Re.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Re.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Re.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Re.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Re.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Re.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Re.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Re.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Re.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Re.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Re.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Re.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Re.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Re.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Re.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Re.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Re.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Re.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Re.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Re.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Re.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Re.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Re.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Re.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Re.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Re.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Re.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Re.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Re.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Re.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Re.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Re.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Re.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Re.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Re.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Re.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Re.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Re.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Re.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Re.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Re.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Re.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Re.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Re.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Re.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Re.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Re.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Re.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Re.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Re.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Re.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Re.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Re.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Re.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Re.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Re.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Re.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Re.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Re.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Re.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Re.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Re.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Re.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Re.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Re.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Re.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Re.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Re.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Re.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Re.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Re.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Re.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Re.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Re.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Re.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Re.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Re.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Re.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Re.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Re.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Re.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Re.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Re.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Re.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Re.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Re.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Re.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Re.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Re.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Re.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Re.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Re.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Re.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Re.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Re.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Re.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Re.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Re.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Re.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Re.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Re.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Re.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Re.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Re.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Re.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Re.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Re.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Re.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Re.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Re.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Re.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Re.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Re.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Re.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Re.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Re.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Re.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Re.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Re.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Re.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Re.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Re.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Re.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Re.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Re.create("--ft-opacity-0","","NUMBER","0"),opacity8:Re.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Re.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Re.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Re.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Re.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:Re.create("--ft-shadow-elevation-01","","SHADOW","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)"),shadowElevation02:Re.create("--ft-shadow-elevation-02","","SHADOW","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)"),shadowElevation03:Re.create("--ft-shadow-elevation-03","","SHADOW","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)"),shadowElevation04:Re.create("--ft-shadow-elevation-04","","SHADOW","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)"),shadowElevation06:Re.create("--ft-shadow-elevation-06","","SHADOW","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)"),shadowElevation08:Re.create("--ft-shadow-elevation-08","","SHADOW","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)"),shadowElevation12:Re.create("--ft-shadow-elevation-12","","SHADOW","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)"),shadowElevation16:Re.create("--ft-shadow-elevation-16","","SHADOW","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)"),shadowElevation24:Re.create("--ft-shadow-elevation-24","","SHADOW","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)")},Ae={display:{fontFamily:Re.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Re.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Re.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:Re.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Re.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:Re.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Re.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:Re.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Re.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Re.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Re.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Re.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Re.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Re.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Re.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Re.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Re.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Re.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Re.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Re.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Re.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Re.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Re.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Re.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Re.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Re.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Re.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Re.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Re.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},"caption-3-medium":{fontFamily:Re.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:Re.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},"caption-3-semibold":{fontFamily:Re.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:Re.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},"caption-3-bold":{fontFamily:Re.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:Re.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")}},Te={backgroundActionPrimary:Re.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Le.colorBrand0),backgroundErrorPrimary:Re.extend("--ft-background-error-primary","Used as background of error components.",Le.colorRed0),backgroundErrorSubtle:Re.extend("--ft-background-error-subtle","Used as background of subtle error components.",Le.colorRed10),backgroundInfoPrimary:Re.extend("--ft-background-info-primary","Used as background of information components.",Le.colorCyan200),backgroundInfoSubtle:Re.extend("--ft-background-info-subtle","Used as background of subtle information components.",Le.colorCyan10),backgroundWarningPrimary:Re.extend("--ft-background-warning-primary","Used as background of warning components.",Le.colorOrange300),backgroundWarningSubtle:Re.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Le.colorOrange10),backgroundSuccessPrimary:Re.extend("--ft-background-success-primary","Used as background of success components.",Le.colorGreen200),backgroundSuccessSubtle:Re.extend("--ft-background-success-subtle","Used as background of subtle success components.",Le.colorGreen10),backgroundGlobalSurface:Re.extend("--ft-background-global-surface","Used as app background.",Le.colorWhite),backgroundGlobalOnSurface:Re.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Le.colorGray10),backgroundGlobalOnSurfaceDark:Re.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Le.colorGray30),contentActionPrimary:Re.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Le.colorBrand0),contentWarningPrimary:Re.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Le.colorOrange300),contentWarningIconOnly:Re.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Le.colorOrange0),contentErrorPrimary:Re.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Le.colorRed0),contentErrorIconOnly:Re.extend("--ft-content-error-icon-only","Used on error status icons alone",Le.colorRed0),contentInfoPrimary:Re.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Le.colorCyan200),contentInfoIconOnly:Re.extend("--ft-content-info-icon-only","Used on info status icons alone",Le.colorCyan0),contentSuccessPrimary:Re.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Le.colorGreen200),contentSuccessIconOnly:Re.extend("--ft-content-success-icon-only","Used on success status icons alone",Le.colorGreen0),contentGlobalPrimary:Re.extend("--ft-content-global-primary","Used for main content on the page.",Le.colorGray500),contentGlobalSecondary:Re.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Le.colorGray200),contentGlobalSubtle:Re.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Le.colorGray0),contentGlobalOnColor:Re.extend("--ft-content-global-on-color","Used for content on a dominant color.",Le.colorWhite),borderActionPrimary:Re.extend("--ft-border-action-primary","Used as border for primary action components.",Le.colorBrand0),borderActionFocusRing:Re.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Le.colorCyan0),borderWarningPrimary:Re.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",Le.colorOrange300),borderWarningSubtle:Re.extend("--ft-border-warning-subtle","Used as border for warning components.",Le.colorOrange30),borderSuccessPrimary:Re.extend("--ft-border-success-primary","Used as border for success buttons.",Le.colorGreen200),borderSuccessSubtle:Re.extend("--ft-border-success-subtle","Used as border for success components.",Le.colorGreen30),borderErrorPrimary:Re.extend("--ft-border-error-primary","Used as border for text fields in error states.",Le.colorRed0),borderErrorSubtle:Re.extend("--ft-border-error-subtle","Used as border for error components.",Le.colorRed30),borderInfoPrimary:Re.extend("--ft-border-info-primary","Used as border for buttons in info color.",Le.colorCyan200),borderInfoSubtle:Re.extend("--ft-border-info-subtle","Used as border for information components.",Le.colorCyan30),borderGlobalPrimary:Re.extend("--ft-border-global-primary","Used as border for element like input.",Le.colorGray50),borderGlobalSubtle:Re.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Le.colorGray30),borderInputPrimary:Re.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Le.colorGray80)},_e={largeHeight:Re.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Re.extend("--ft-button-large-horizontal-padding","",Le.spacing4),largeGap:Re.extend("--ft-button-large-gap","",Le.spacing2),largeBorderRadius:Re.extend("--ft-button-large-border-radius","",Le.borderRadiusS),largeIconSize:Re.extend("--ft-button-large-icon-size","",Le.iconSize3),largeBorderWidth:Re.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Re.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Re.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Re.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Re.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Re.extend("--ft-button-small-horizontal-padding","",Le.spacing3),smallGap:Re.extend("--ft-button-small-gap","",Le.spacing2),smallBorderRadius:Re.extend("--ft-button-small-border-radius","",Le.borderRadiusS),smallIconSize:Re.extend("--ft-button-small-icon-size","",Le.iconSize2),smallBorderWidth:Re.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Re.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Re.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Re.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Re.extend("--ft-button-primary-background-color","",Te.backgroundActionPrimary),primaryColor:Re.extend("--ft-button-primary-color","",Te.contentGlobalOnColor),primaryIconColor:Re.extend("--ft-button-primary-icon-color","",Te.contentGlobalOnColor),primaryStateLayerColor:Re.extend("--ft-button-primary-state-layer-color","",Te.contentGlobalOnColor),primaryStateLayerOpacityHover:Re.extend("--ft-button-primary-state-layer-opacity-hover","",Le.opacity16),primaryStateLayerOpacityFocus:Re.extend("--ft-button-primary-state-layer-opacity-focus","",Le.opacity16),primaryStateLayerOpacityActive:Re.extend("--ft-button-primary-state-layer-opacity-active","",Le.opacity24),primaryComponentOpacityDisabled:Re.extend("--ft-button-primary-component-opacity-disabled","",Le.opacity40),focusFocusRingColor:Re.extend("--ft-button-focus-focus-ring-color","",Te.borderActionFocusRing),tertiaryBackgroundColor:Re.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Re.extend("--ft-button-tertiary-color","",Te.contentActionPrimary),tertiaryIconColor:Re.extend("--ft-button-tertiary-icon-color","",Te.contentActionPrimary),tertiaryStateLayerColor:Re.extend("--ft-button-tertiary-state-layer-color","",Te.contentActionPrimary),tertiaryStateLayerOpacityHover:Re.extend("--ft-button-tertiary-state-layer-opacity-hover","",Le.opacity8),tertiaryStateLayerOpacityFocus:Re.extend("--ft-button-tertiary-state-layer-opacity-focus","",Le.opacity8),tertiaryStateLayerOpacityActive:Re.extend("--ft-button-tertiary-state-layer-opacity-active","",Le.opacity16),tertiaryComponentOpacityDisabled:Re.extend("--ft-button-tertiary-component-opacity-disabled","",Le.opacity40),secondaryBackgroundColor:Re.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:Re.extend("--ft-button-secondary-color","",Te.contentActionPrimary),secondaryIconColor:Re.extend("--ft-button-secondary-icon-color","",Te.contentActionPrimary),secondaryStateLayerColor:Re.extend("--ft-button-secondary-state-layer-color","",Te.contentActionPrimary),secondaryStateLayerOpacityHover:Re.extend("--ft-button-secondary-state-layer-opacity-hover","",Le.opacity8),secondaryStateLayerOpacityFocus:Re.extend("--ft-button-secondary-state-layer-opacity-focus","",Le.opacity8),secondaryStateLayerOpacityActive:Re.extend("--ft-button-secondary-state-layer-opacity-active","",Le.opacity16),secondaryComponentOpacityDisabled:Re.extend("--ft-button-secondary-component-opacity-disabled","",Le.opacity40),secondaryBorderColor:Re.extend("--ft-button-secondary-border-color","",Te.borderActionPrimary),neutralBackgroundColor:Re.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Re.extend("--ft-button-neutral-icon-color","",Te.contentGlobalSecondary),neutralColor:Re.extend("--ft-button-neutral-color","",Te.contentGlobalSecondary),neutralStateLayerColor:Re.extend("--ft-button-neutral-state-layer-color","",Te.contentGlobalSecondary),neutralStateLayerOpacityHover:Re.extend("--ft-button-neutral-state-layer-opacity-hover","",Le.opacity8),neutralStateLayerOpacityFocus:Re.extend("--ft-button-neutral-state-layer-opacity-focus","",Le.opacity8),neutralStateLayerOpacityActive:Re.extend("--ft-button-neutral-state-layer-opacity-active","",Le.opacity16),neutralComponentOpacityDisabled:Re.extend("--ft-button-neutral-component-opacity-disabled","",Le.opacity40)};Re.extend("--ft-floating-menu-horizontal-padding","",Le.spacing4),Re.extend("--ft-floating-menu-vertical-padding","",Le.spacing4),Re.extend("--ft-floating-menu-off-icon-color","",Te.contentGlobalPrimary),Re.extend("--ft-floating-menu-off-color","",Te.contentGlobalPrimary),Re.extend("--ft-floating-menu-on-color","",Te.contentActionPrimary),Re.extend("--ft-floating-menu-on-icon-color","",Te.contentActionPrimary),Re.extend("--ft-floating-menu-on-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-floating-menu-gap","",Le.spacing3),Re.extend("--ft-floating-menu-focus-focus-ring-color","",Te.borderActionFocusRing),Re.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),Re.extend("--ft-floating-menu-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-floating-menu-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-floating-menu-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-floating-menu-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-floating-menu-icon-size","",Le.iconSize3),Re.extend("--ft-floating-menu-background-color","",Te.backgroundGlobalOnSurface),Re.extend("--ft-tabs-top-left-border-radius","",Le.borderRadiusS),Re.extend("--ft-tabs-top-right-border-radius","",Le.borderRadiusS),Re.extend("--ft-tabs-label-horizontal-padding","",Le.spacing4),Re.extend("--ft-tabs-label-vertical-padding","",Le.spacing3),Re.extend("--ft-tabs-label-gap","",Le.spacing1),Re.extend("--ft-tabs-icon-horizontal-padding","",Le.spacing1),Re.extend("--ft-tabs-icon-vertical-padding","",Le.spacing4),Re.create("--ft-tabs-focus-outline-width","","SIZE","2px"),Re.extend("--ft-tabs-focus-focus-ring-color","",Te.borderActionFocusRing),Re.extend("--ft-tabs-off-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-tabs-off-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-tabs-off-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-tabs-off-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-tabs-off-color","",Te.contentGlobalSubtle),Re.extend("--ft-tabs-off-state-layer-color","",Te.contentGlobalSubtle),Re.extend("--ft-tabs-on-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-tabs-on-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-tabs-on-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-tabs-on-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-tabs-on-color","",Te.contentActionPrimary),Re.extend("--ft-tabs-on-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-collapsible-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-collapsible-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-collapsible-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-collapsible-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-collapsible-horizontal-padding","",Le.spacing4),Re.extend("--ft-collapsible-vertical-padding","",Le.spacing3),Re.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),Re.extend("--ft-collapsible-focus-focus-ring-color","",Te.borderActionFocusRing),Re.extend("--ft-collapsible-color","",Te.contentGlobalPrimary),Re.extend("--ft-collapsible-state-layer-color","",Te.contentGlobalPrimary),Re.extend("--ft-collapsible-background-color","",Te.backgroundGlobalOnSurface),Re.extend("--ft-collapsible-border-color","",Te.borderGlobalSubtle),Re.extend("--ft-collapsible-icon-size","",Le.iconSize3),Re.extend("--ft-switch-group-horizontal-padding","",Le.spacing1),Re.extend("--ft-switch-group-vertical-padding","",Le.spacing1),Re.extend("--ft-switch-group-gap","",Le.spacing1),Re.extend("--ft-switch-group-background-color","",Te.backgroundGlobalSurface),Re.extend("--ft-switch-group-border-color","",Te.borderGlobalSubtle),Re.create("--ft-switch-group-border-radius","","SIZE","6px"),Re.extend("--ft-switch-label-horizontal-padding","",Le.spacing2),Re.extend("--ft-switch-label-vertical-padding","",Le.spacing1),Re.extend("--ft-switch-icon-horizontal-padding","",Le.spacing1),Re.extend("--ft-switch-icon-vertical-padding","",Le.spacing1),Re.create("--ft-switch-focus-outline-width","","SIZE","2px"),Re.extend("--ft-switch-focus-focus-ring-color","",Te.borderActionFocusRing),Re.extend("--ft-switch-option-border-radius","",Le.borderRadiusS),Re.extend("--ft-switch-off-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-switch-off-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-switch-off-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-switch-off-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-switch-off-color","",Te.contentGlobalSubtle),Re.extend("--ft-switch-off-state-layer-color","",Te.contentGlobalSubtle),Re.extend("--ft-switch-on-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-switch-on-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-switch-on-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-switch-on-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-switch-on-color","",Te.contentActionPrimary),Re.extend("--ft-switch-on-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-chart-1-light","for area color charts",Le.colorBrand40),Re.extend("--ft-chart-1-base","for line charts",Le.colorBrand0),Re.extend("--ft-chart-2-light","for area color charts",Le.colorYellow60),Re.extend("--ft-chart-2-base","for line charts",Le.colorYellow100),Re.extend("--ft-chart-3-light","",Le.colorUltramarine40),Re.extend("--ft-chart-3-base","",Le.colorUltramarine70),Re.extend("--ft-chart-4-light","",Le.colorCyan50),Re.extend("--ft-chart-4-base","",Le.colorCyan100),Re.extend("--ft-chart-5-light","",Le.colorRed40),Re.extend("--ft-chart-5-base","",Le.colorRed60),Re.extend("--ft-chart-6-light","",Le.colorGreen40),Re.extend("--ft-chart-6-base","",Le.colorGreen70),Re.extend("--ft-chart-7-light","",Le.colorOrange70),Re.extend("--ft-chart-7-base","",Le.colorOrange100),Re.extend("--ft-chart-8-light","",Le.colorAvocado70),Re.extend("--ft-chart-8-base","",Le.colorAvocado200),Re.extend("--ft-chart-9-light","",Le.colorBrown50),Re.extend("--ft-chart-9-base","",Le.colorBrown200),Re.extend("--ft-chart-10-light","",Le.colorGray50),Re.extend("--ft-chart-10-base","",Le.colorGray80),Re.extend("--ft-chart-monochrome-10","",Le.colorBrand10),Re.extend("--ft-chart-monochrome-20","",Le.colorBrand20),Re.extend("--ft-chart-monochrome-30","",Le.colorBrand40),Re.extend("--ft-chart-monochrome-40","",Le.colorBrand60),Re.extend("--ft-chart-monochrome-50","",Le.colorBrand0),Re.extend("--ft-chart-monochrome-60","",Le.colorBrand200),Re.extend("--ft-chip-large-horizontal-padding","",Le.spacing4),Re.extend("--ft-chip-large-vertical-padding","",Le.spacing2),Re.extend("--ft-chip-large-gap","",Le.spacing1),Re.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-large-border-radius","",Le.borderRadiusPill),Re.create("--ft-chip-large-border-width","","SIZE","1px"),Re.extend("--ft-chip-large-icon-size","",Le.iconSize3),Re.extend("--ft-chip-medium-horizontal-padding","",Le.spacing3),Re.extend("--ft-chip-medium-vertical-padding","",Le.spacing1),Re.extend("--ft-chip-medium-gap","",Le.spacing1),Re.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-medium-border-radius","",Le.borderRadiusPill),Re.create("--ft-chip-medium-border-width","","SIZE","1px"),Re.extend("--ft-chip-medium-icon-size","",Le.iconSize2),Re.extend("--ft-chip-small-horizontal-padding","",Le.spacing2),Re.extend("--ft-chip-small-vertical-padding","",Le.spacing05),Re.extend("--ft-chip-small-gap","",Le.spacing1),Re.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-small-border-radius","",Le.borderRadiusPill),Re.create("--ft-chip-small-border-width","","SIZE","1px"),Re.extend("--ft-chip-small-icon-size","",Le.iconSize1),Re.extend("--ft-chip-neutral-background-color","",Te.backgroundGlobalOnSurface),Re.extend("--ft-chip-neutral-color","",Te.contentGlobalPrimary),Re.extend("--ft-chip-neutral-border-color","",Te.borderGlobalSubtle),Re.extend("--ft-chip-info-background-color","",Te.backgroundInfoSubtle),Re.extend("--ft-chip-info-color","",Te.contentInfoPrimary),Re.extend("--ft-chip-info-border-color","",Te.borderInfoSubtle),Re.extend("--ft-chip-success-background-color","",Te.backgroundSuccessSubtle),Re.extend("--ft-chip-success-color","",Te.contentSuccessPrimary),Re.extend("--ft-chip-success-border-color","",Te.borderSuccessSubtle),Re.extend("--ft-chip-warning-background-color","",Te.backgroundWarningSubtle),Re.extend("--ft-chip-warning-color","",Te.contentWarningPrimary),Re.extend("--ft-chip-warning-border-color","",Te.borderWarningSubtle),Re.extend("--ft-chip-error-background-color","",Te.backgroundErrorSubtle),Re.extend("--ft-chip-error-color","",Te.contentErrorPrimary),Re.extend("--ft-chip-error-border-color","",Te.borderErrorSubtle),Re.create("--ft-notice-border-width","","SIZE","1px"),Re.extend("--ft-notice-horizontal-padding","",Le.spacing2),Re.extend("--ft-notice-vertical-padding","",Le.spacing1),Re.extend("--ft-notice-border-radius","",Le.borderRadiusS),Re.extend("--ft-notice-gap","",Le.spacing2),Re.extend("--ft-notice-icon-size","",Le.iconSize3),Re.extend("--ft-notice-info-background-color","",Te.backgroundInfoSubtle),Re.extend("--ft-notice-info-border-color","",Te.borderInfoSubtle),Re.extend("--ft-notice-info-color","",Te.contentInfoPrimary),Re.extend("--ft-notice-warning-background-color","",Te.backgroundWarningSubtle),Re.extend("--ft-notice-warning-border-color","",Te.borderWarningSubtle),Re.extend("--ft-notice-warning-color","",Te.contentWarningPrimary),Re.extend("--ft-checkbox-label-color","",Te.contentGlobalPrimary),Re.extend("--ft-checkbox-checked-background-color","",Te.contentActionPrimary),Re.extend("--ft-checkbox-checked-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-checkbox-checked-color","",Te.contentGlobalOnColor),Re.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-checkbox-checked-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-checkbox-checked-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-checkbox-unchecked-border-color","",Le.colorGray80),Re.extend("--ft-checkbox-unchecked-state-layer-color","",Le.colorGray80),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-checkbox-focus-focus-ring-color","",Te.borderActionFocusRing),Re.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Re.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Re.extend("--ft-checkbox-gap","",Le.spacing3),Re.extend("--ft-toggle-off-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-toggle-off-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-toggle-off-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-toggle-off-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-toggle-off-background-color","",Te.contentGlobalSubtle),Re.extend("--ft-toggle-off-icon-color","",Te.contentGlobalSubtle),Re.extend("--ft-toggle-off-state-layer-color","",Te.contentGlobalSubtle),Re.extend("--ft-toggle-on-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-toggle-on-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-toggle-on-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-toggle-on-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-toggle-on-background-color","",Te.contentActionPrimary),Re.extend("--ft-toggle-on-icon-color","",Te.contentActionPrimary),Re.extend("--ft-toggle-on-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-toggle-label-color","",Te.contentGlobalPrimary),Re.extend("--ft-toggle-focus-focus-ring-color","",Te.borderActionFocusRing),Re.extend("--ft-toggle-gap","",Le.spacing3),Re.extend("--ft-radio-label-color","",Te.contentGlobalPrimary),Re.extend("--ft-radio-selected-color","",Te.contentActionPrimary),Re.extend("--ft-radio-selected-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-radio-selected-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-radio-selected-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-radio-selected-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-radio-selected-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-radio-unselected-state-layer-color","",Le.colorGray80),Re.extend("--ft-radio-unselected-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-radio-unselected-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-radio-unselected-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-radio-unselected-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-radio-focus-focus-ring-color","",Te.borderActionFocusRing),Re.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Re.create("--ft-radio-focus-outline-width","","SIZE","2px"),Re.extend("--ft-radio-gap","",Le.spacing3),Re.extend("--ft-notification-icon-size","",Le.iconSize4),Re.extend("--ft-notification-horizontal-padding","",Le.spacing4),Re.extend("--ft-notification-vertical-padding","",Le.spacing4),Re.extend("--ft-notification-info-background-color","",Te.backgroundInfoSubtle),Re.extend("--ft-notification-info-color","",Te.contentInfoPrimary),Re.extend("--ft-notification-info-border-color","",Te.borderInfoSubtle),Re.extend("--ft-notification-success-background-color","",Te.backgroundSuccessSubtle),Re.extend("--ft-notification-success-color","",Te.contentSuccessPrimary),Re.extend("--ft-notification-success-border-color","",Te.borderSuccessSubtle),Re.extend("--ft-notification-warning-background-color","",Te.backgroundWarningSubtle),Re.extend("--ft-notification-warning-color","",Te.contentWarningPrimary),Re.extend("--ft-notification-warning-border-color","",Te.borderWarningSubtle),Re.extend("--ft-notification-error-background-color","",Te.backgroundErrorSubtle),Re.extend("--ft-notification-error-color","",Te.contentErrorPrimary),Re.extend("--ft-notification-error-border-color","",Te.borderErrorSubtle),Re.extend("--ft-notification-border-radius","",Le.borderRadiusPill),Re.create("--ft-notification-border-width","","SIZE","1px"),Re.extend("--ft-notification-gap-leading","",Le.spacing2),Re.extend("--ft-notification-gap-trailing","",Le.spacing8),Re.extend("--ft-tooltip-horizontal-padding","",Le.spacing2),Re.extend("--ft-tooltip-vertical-padding","",Le.spacing2),Re.extend("--ft-tooltip-border-radius","",Le.borderRadiusS),Re.extend("--ft-tooltip-label","",Te.contentGlobalOnColor),Re.extend("--ft-tooltip-background","",Te.contentGlobalPrimary),Re.extend("--ft-tooltip-background-opacity","",Le.opacity80),Re.extend("--ft-tooltip-shadow","",Le.shadowElevation03);const We={colorPrimary:Re.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:Re.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:Re.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:Re.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:Re.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:Re.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Re.create("--ft-color-error","","COLOR","#B00020"),colorOutline:Re.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Re.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:Re.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:Re.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:Re.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:Re.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:Re.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Re.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Re.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:Re.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:Re.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Re.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Re.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Re.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Re.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Re.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Re.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:Re.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:Re.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:Re.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:Re.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:Re.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:Re.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Re.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Re.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:Re.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Re.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Re.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Re.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Re.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Re.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Re.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:Re.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Re.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Re.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Re.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Re.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:Re.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:Re.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:Re.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:Re.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:Re.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:Re.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:Re.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:Re.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:Re.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:Re.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:Re.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:Re.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:Re.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:Re.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:Re.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Re.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Re.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:Re.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};class De extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}const Fe=["start","end"],Me=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+Fe[0],e+"-"+Fe[1])),[]),Pe=Math.min,ze=Math.max,je=Math.round,Be=t=>({x:t,y:t}),Ke={left:"right",right:"left",bottom:"top",top:"bottom"},Ze={start:"end",end:"start"};function He(t,e,i){return ze(t,Pe(e,i))}function Ge(t,e){return"function"==typeof t?t(e):t}function Ve(t){return t.split("-")[0]}function qe(t){return t.split("-")[1]}function Ye(t){return"x"===t?"y":"x"}function Xe(t){return"y"===t?"height":"width"}function Je(t){return["top","bottom"].includes(Ve(t))?"y":"x"}function Qe(t){return Ye(Je(t))}function ti(t){return t.replace(/left|right|bottom|top/g,(t=>Ke[t]))}function ei(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ii(t,e,i){let{reference:o,floating:r}=t;const n=Je(e),a=Qe(e),s=Xe(a),l=Ve(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(qe(e)){case"start":u[a]-=d*(i&&c?-1:1);break;case"end":u[a]+=d*(i&&c?-1:1)}return u}async function oi(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}=Ge(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=ei(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=ei(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 ri(t,e,i){return(t?[...i.filter((e=>qe(e)===t)),...i.filter((e=>qe(e)!==t))]:i.filter((t=>Ve(t)===t))).filter((i=>!t||(qe(i)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Ze[t]))}(i)!==i)))}const ni=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=Me,autoAlignment:u=!0,...p}=Ge(t,e),y=void 0!==h||d===Me?ri(h||null,u,d):d,g=await oi(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=qe(t),r=Qe(t),n=Xe(r);let a="x"===r?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=ti(a)),[a,ti(a)]}(v,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==v)return{reset:{placement:y[0]}};const x=[g[Ve(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=qe(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])),N=S.filter((t=>t[2].slice(0,qe(t[0])?2:3).every((t=>t<=0)))),$=(null==(r=N[0])?void 0:r[0])||S[0][0];return $!==s?{data:{index:b+1,overflows:w},reset:{placement:$}}:{}}}};function ai(t){return ci(t)?(t.nodeName||"").toLowerCase():"#document"}function si(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function li(t){var e;return null==(e=(ci(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function ci(t){return t instanceof Node||t instanceof si(t).Node}function fi(t){return t instanceof Element||t instanceof si(t).Element}function hi(t){return t instanceof HTMLElement||t instanceof si(t).HTMLElement}function di(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof si(t).ShadowRoot)}function ui(t){const{overflow:e,overflowX:i,overflowY:o,display:r}=vi(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(r)}function pi(t){return["table","td","th"].includes(ai(t))}function yi(t){const e=gi(),i=vi(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 gi(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function bi(t){return["html","body","#document"].includes(ai(t))}function vi(t){return si(t).getComputedStyle(t)}function mi(t){return fi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function xi(t){if("html"===ai(t))return t;const e=t.assignedSlot||t.parentNode||di(t)&&t.host||li(t);return di(e)?e.host:e}function wi(t){const e=xi(t);return bi(e)?t.ownerDocument?t.ownerDocument.body:t.body:hi(e)&&ui(e)?e:wi(e)}function Oi(t,e,i){var o;void 0===e&&(e=[]),void 0===i&&(i=!0);const r=wi(t),n=r===(null==(o=t.ownerDocument)?void 0:o.body),a=si(r);return n?e.concat(a,a.visualViewport||[],ui(r)?r:[],a.frameElement&&i?Oi(a.frameElement):[]):e.concat(r,Oi(r,[],i))}function Si(t){const e=vi(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=hi(t),n=r?t.offsetWidth:i,a=r?t.offsetHeight:o,s=je(i)!==n||je(o)!==a;return s&&(i=n,o=a),{width:i,height:o,$:s}}function Ni(t){return fi(t)?t:t.contextElement}function $i(t){const e=Ni(t);if(!hi(e))return Be(1);const i=e.getBoundingClientRect(),{width:o,height:r,$:n}=Si(e);let a=(n?je(i.width):i.width)/o,s=(n?je(i.height):i.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ci=Be(0);function Ei(t){const e=si(t);return gi()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Ci}function ki(t,e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1);const r=t.getBoundingClientRect(),n=Ni(t);let a=Be(1);e&&(o?fi(o)&&(a=$i(o)):a=$i(t));const s=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==si(t))&&e}(n,i,o)?Ei(n):Be(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=si(n),e=o&&fi(o)?si(o):o;let i=t.frameElement;for(;i&&o&&e!==t;){const t=$i(i),e=i.getBoundingClientRect(),o=vi(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=si(i).frameElement}}return ei({width:f,height:h,x:l,y:c})}function Ii(t){return ki(li(t)).left+mi(t).scrollLeft}function Ri(t,e,i){let o;if("viewport"===e)o=function(t,e){const i=si(t),o=li(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=gi();(!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=li(t),i=mi(t),o=t.ownerDocument.body,r=ze(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),n=ze(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-i.scrollLeft+Ii(t);const s=-i.scrollTop;return"rtl"===vi(o).direction&&(a+=ze(e.clientWidth,o.clientWidth)-r),{width:r,height:n,x:a,y:s}}(li(t));else if(fi(e))o=function(t,e){const i=ki(t,!0,"fixed"===e),o=i.top+t.clientTop,r=i.left+t.clientLeft,n=hi(t)?$i(t):Be(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=Ei(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return ei(o)}function Ui(t,e){const i=xi(t);return!(i===e||!fi(i)||bi(i))&&("fixed"===vi(i).position||Ui(i,e))}function Li(t,e,i){const o=hi(e),r=li(e),n="fixed"===i,a=ki(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=Be(0);if(o||!o&&!n)if(("body"!==ai(e)||ui(r))&&(s=mi(e)),o){const t=ki(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Ii(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ai(t,e){return hi(t)&&"fixed"!==vi(t).position?e?e(t):t.offsetParent:null}function Ti(t,e){const i=si(t);if(!hi(t))return i;let o=Ai(t,e);for(;o&&pi(o)&&"static"===vi(o).position;)o=Ai(o,e);return o&&("html"===ai(o)||"body"===ai(o)&&"static"===vi(o).position&&!yi(o))?i:o||function(t){let e=xi(t);for(;hi(e)&&!bi(e);){if(yi(e))return e;e=xi(e)}return null}(t)||i}const _i={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:i,strategy:o}=t;const r=hi(i),n=li(i);if(i===n)return e;let a={scrollLeft:0,scrollTop:0},s=Be(1);const l=Be(0);if((r||!r&&"fixed"!==o)&&(("body"!==ai(i)||ui(n))&&(a=mi(i)),hi(i))){const t=ki(i);s=$i(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:li,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=Oi(t,[],!1).filter((t=>fi(t)&&"body"!==ai(t))),r=null;const n="fixed"===vi(t).position;let a=n?xi(t):t;for(;fi(a)&&!bi(a);){const e=vi(a),i=yi(a);i||"fixed"!==e.position||(r=null),(n?!i&&!r:!i&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||ui(a)&&!i&&Ui(t,a))?o=o.filter((t=>t!==a)):r=e,a=xi(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=Ri(e,i,r);return t.top=ze(o.top,t.top),t.right=Pe(o.right,t.right),t.bottom=Pe(o.bottom,t.bottom),t.left=ze(o.left,t.left),t}),Ri(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Ti,getElementRects:async function(t){let{reference:e,floating:i,strategy:o}=t;const r=this.getOffsetParent||Ti,n=this.getDimensions;return{reference:Li(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 Si(t)},getScale:$i,isElement:fi,isRTL:function(t){return"rtl"===vi(t).direction}},Wi=(t,e,i)=>{const o=new Map,r={platform:_i,...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}=ii(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}=ii(c,d,l))),i=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:u}})(t,e,{...r,platform:n})};function Di(t){return function(t){for(let e=t;e;e=Fi(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Fi(t);e;e=Fi(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function Fi(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}
90
+ let Ee=class extends Ht{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 xe(e.insertBefore(ee(),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 ue}};Ee._$litElement$=!0,Ee.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ee});const ke=globalThis.litElementPolyfillSupport;ke?.({LitElement:Ee}),(globalThis.litElementVersions??=[]).push("4.0.2");const Ie=t=>"string"==typeof t?It(t):t;class Re{static create(t,e,i,o){const r=t=>Ie(null!=t?t:o),n=Rt`var(${Ie(t)}, ${r(o)})`;return n.name=t,n.description=e,n.category=i,n.defaultValue=o,n.defaultCssValue=r,n.get=e=>Rt`var(${Ie(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=Rt`var(${Ie(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=>Rt`var(${Ie(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):Ie(null!=e?e:t.lastResortDefaultValue()),o=Rt`var(${Ie(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=>Rt`var(${Ie(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>t.lastResortDefaultValue(),o}}function Ue(t,e){return Ie(`${t.name}: ${e}`)}const Le={colorWhite:Re.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Re.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Re.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Re.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Re.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Re.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Re.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Re.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Re.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Re.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Re.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Re.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Re.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Re.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Re.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Re.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Re.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Re.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Re.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Re.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Re.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Re.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Re.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Re.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Re.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Re.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Re.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Re.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Re.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Re.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Re.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Re.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Re.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Re.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Re.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Re.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Re.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Re.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Re.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Re.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Re.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Re.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Re.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Re.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Re.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Re.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Re.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Re.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Re.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Re.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Re.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Re.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Re.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Re.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Re.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Re.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Re.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Re.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Re.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Re.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Re.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Re.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Re.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Re.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Re.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Re.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Re.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Re.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Re.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Re.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Re.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Re.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Re.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Re.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Re.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Re.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Re.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Re.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Re.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Re.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Re.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Re.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Re.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Re.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Re.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Re.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Re.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Re.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Re.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Re.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Re.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Re.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Re.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Re.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Re.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Re.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Re.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Re.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Re.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Re.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Re.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Re.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Re.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Re.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Re.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Re.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Re.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Re.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Re.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Re.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Re.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Re.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Re.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Re.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Re.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Re.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Re.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Re.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Re.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Re.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Re.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Re.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Re.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Re.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Re.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Re.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Re.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Re.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Re.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Re.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Re.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Re.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Re.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Re.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Re.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Re.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Re.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Re.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Re.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Re.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Re.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Re.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Re.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Re.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Re.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Re.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Re.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Re.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Re.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Re.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Re.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Re.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Re.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Re.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Re.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Re.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Re.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Re.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Re.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Re.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Re.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Re.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Re.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Re.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Re.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Re.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Re.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Re.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Re.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Re.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Re.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Re.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Re.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Re.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Re.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Re.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Re.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Re.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Re.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Re.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Re.create("--ft-opacity-0","","NUMBER","0"),opacity8:Re.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Re.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Re.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Re.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Re.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:Re.create("--ft-shadow-elevation-01","","SHADOW","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)"),shadowElevation02:Re.create("--ft-shadow-elevation-02","","SHADOW","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)"),shadowElevation03:Re.create("--ft-shadow-elevation-03","","SHADOW","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)"),shadowElevation04:Re.create("--ft-shadow-elevation-04","","SHADOW","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)"),shadowElevation06:Re.create("--ft-shadow-elevation-06","","SHADOW","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)"),shadowElevation08:Re.create("--ft-shadow-elevation-08","","SHADOW","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)"),shadowElevation12:Re.create("--ft-shadow-elevation-12","","SHADOW","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)"),shadowElevation16:Re.create("--ft-shadow-elevation-16","","SHADOW","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)"),shadowElevation24:Re.create("--ft-shadow-elevation-24","","SHADOW","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)")},Ae={display:{fontFamily:Re.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Re.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Re.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:Re.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Re.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:Re.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Re.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Re.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Re.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:Re.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Re.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Re.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Re.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Re.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Re.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Re.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Re.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Re.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Re.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Re.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Re.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Re.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Re.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Re.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Re.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Re.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Re.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Re.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Re.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Re.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Re.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Re.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Re.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Re.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Re.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Re.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Re.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Re.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Re.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Re.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Re.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},"caption-3-medium":{fontFamily:Re.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:Re.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:Re.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},"caption-3-semibold":{fontFamily:Re.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Re.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:Re.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},"caption-3-bold":{fontFamily:Re.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Re.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:Re.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:Re.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:Re.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:Re.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Re.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Re.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Re.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")}},Te={backgroundActionPrimary:Re.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Le.colorBrand0),backgroundErrorPrimary:Re.extend("--ft-background-error-primary","Used as background of error components.",Le.colorRed0),backgroundErrorSubtle:Re.extend("--ft-background-error-subtle","Used as background of subtle error components.",Le.colorRed10),backgroundInfoPrimary:Re.extend("--ft-background-info-primary","Used as background of information components.",Le.colorCyan200),backgroundInfoSubtle:Re.extend("--ft-background-info-subtle","Used as background of subtle information components.",Le.colorCyan10),backgroundWarningPrimary:Re.extend("--ft-background-warning-primary","Used as background of warning components.",Le.colorOrange300),backgroundWarningSubtle:Re.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Le.colorOrange10),backgroundSuccessPrimary:Re.extend("--ft-background-success-primary","Used as background of success components.",Le.colorGreen200),backgroundSuccessSubtle:Re.extend("--ft-background-success-subtle","Used as background of subtle success components.",Le.colorGreen10),backgroundGlobalSurface:Re.extend("--ft-background-global-surface","Used as app background.",Le.colorWhite),backgroundGlobalOnSurface:Re.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Le.colorGray10),backgroundGlobalOnSurfaceDark:Re.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Le.colorGray30),contentActionPrimary:Re.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Le.colorBrand0),contentWarningPrimary:Re.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Le.colorOrange300),contentWarningIconOnly:Re.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Le.colorOrange0),contentErrorPrimary:Re.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Le.colorRed0),contentErrorIconOnly:Re.extend("--ft-content-error-icon-only","Used on error status icons alone",Le.colorRed0),contentInfoPrimary:Re.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Le.colorCyan200),contentInfoIconOnly:Re.extend("--ft-content-info-icon-only","Used on info status icons alone",Le.colorCyan0),contentSuccessPrimary:Re.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Le.colorGreen200),contentSuccessIconOnly:Re.extend("--ft-content-success-icon-only","Used on success status icons alone",Le.colorGreen0),contentGlobalPrimary:Re.extend("--ft-content-global-primary","Used for main content on the page.",Le.colorGray500),contentGlobalSecondary:Re.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Le.colorGray200),contentGlobalSubtle:Re.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Le.colorGray0),contentGlobalOnColor:Re.extend("--ft-content-global-on-color","Used for content on a dominant color.",Le.colorWhite),borderActionPrimary:Re.extend("--ft-border-action-primary","Used as border for primary action components.",Le.colorBrand0),borderActionFocusRing:Re.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Le.colorCyan0),borderWarningPrimary:Re.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",Le.colorOrange300),borderWarningSubtle:Re.extend("--ft-border-warning-subtle","Used as border for warning components.",Le.colorOrange30),borderSuccessPrimary:Re.extend("--ft-border-success-primary","Used as border for success buttons.",Le.colorGreen200),borderSuccessSubtle:Re.extend("--ft-border-success-subtle","Used as border for success components.",Le.colorGreen30),borderErrorPrimary:Re.extend("--ft-border-error-primary","Used as border for text fields in error states.",Le.colorRed0),borderErrorSubtle:Re.extend("--ft-border-error-subtle","Used as border for error components.",Le.colorRed30),borderInfoPrimary:Re.extend("--ft-border-info-primary","Used as border for buttons in info color.",Le.colorCyan200),borderInfoSubtle:Re.extend("--ft-border-info-subtle","Used as border for information components.",Le.colorCyan30),borderGlobalPrimary:Re.extend("--ft-border-global-primary","Used as border for element like input.",Le.colorGray50),borderGlobalSubtle:Re.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Le.colorGray30),borderInputPrimary:Re.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Le.colorGray80)},_e={largeHeight:Re.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Re.extend("--ft-button-large-horizontal-padding","",Le.spacing4),largeGap:Re.extend("--ft-button-large-gap","",Le.spacing2),largeBorderRadius:Re.extend("--ft-button-large-border-radius","",Le.borderRadiusS),largeIconSize:Re.extend("--ft-button-large-icon-size","",Le.iconSize3),largeBorderWidth:Re.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Re.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Re.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Re.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Re.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Re.extend("--ft-button-small-horizontal-padding","",Le.spacing3),smallGap:Re.extend("--ft-button-small-gap","",Le.spacing2),smallBorderRadius:Re.extend("--ft-button-small-border-radius","",Le.borderRadiusS),smallIconSize:Re.extend("--ft-button-small-icon-size","",Le.iconSize2),smallBorderWidth:Re.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Re.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Re.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Re.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Re.extend("--ft-button-primary-background-color","",Te.backgroundActionPrimary),primaryColor:Re.extend("--ft-button-primary-color","",Te.contentGlobalOnColor),primaryIconColor:Re.extend("--ft-button-primary-icon-color","",Te.contentGlobalOnColor),primaryStateLayerColor:Re.extend("--ft-button-primary-state-layer-color","",Te.contentGlobalOnColor),primaryStateLayerOpacityHover:Re.extend("--ft-button-primary-state-layer-opacity-hover","",Le.opacity16),primaryStateLayerOpacityFocus:Re.extend("--ft-button-primary-state-layer-opacity-focus","",Le.opacity16),primaryStateLayerOpacityActive:Re.extend("--ft-button-primary-state-layer-opacity-active","",Le.opacity24),primaryComponentOpacityDisabled:Re.extend("--ft-button-primary-component-opacity-disabled","",Le.opacity40),focusFocusRingColor:Re.extend("--ft-button-focus-focus-ring-color","",Te.borderActionFocusRing),tertiaryBackgroundColor:Re.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Re.extend("--ft-button-tertiary-color","",Te.contentActionPrimary),tertiaryIconColor:Re.extend("--ft-button-tertiary-icon-color","",Te.contentActionPrimary),tertiaryStateLayerColor:Re.extend("--ft-button-tertiary-state-layer-color","",Te.contentActionPrimary),tertiaryStateLayerOpacityHover:Re.extend("--ft-button-tertiary-state-layer-opacity-hover","",Le.opacity8),tertiaryStateLayerOpacityFocus:Re.extend("--ft-button-tertiary-state-layer-opacity-focus","",Le.opacity8),tertiaryStateLayerOpacityActive:Re.extend("--ft-button-tertiary-state-layer-opacity-active","",Le.opacity16),tertiaryComponentOpacityDisabled:Re.extend("--ft-button-tertiary-component-opacity-disabled","",Le.opacity40),secondaryBackgroundColor:Re.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:Re.extend("--ft-button-secondary-color","",Te.contentActionPrimary),secondaryIconColor:Re.extend("--ft-button-secondary-icon-color","",Te.contentActionPrimary),secondaryStateLayerColor:Re.extend("--ft-button-secondary-state-layer-color","",Te.contentActionPrimary),secondaryStateLayerOpacityHover:Re.extend("--ft-button-secondary-state-layer-opacity-hover","",Le.opacity8),secondaryStateLayerOpacityFocus:Re.extend("--ft-button-secondary-state-layer-opacity-focus","",Le.opacity8),secondaryStateLayerOpacityActive:Re.extend("--ft-button-secondary-state-layer-opacity-active","",Le.opacity16),secondaryComponentOpacityDisabled:Re.extend("--ft-button-secondary-component-opacity-disabled","",Le.opacity40),secondaryBorderColor:Re.extend("--ft-button-secondary-border-color","",Te.borderActionPrimary),neutralBackgroundColor:Re.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Re.extend("--ft-button-neutral-icon-color","",Te.contentGlobalSecondary),neutralColor:Re.extend("--ft-button-neutral-color","",Te.contentGlobalSecondary),neutralStateLayerColor:Re.extend("--ft-button-neutral-state-layer-color","",Te.contentGlobalSecondary),neutralStateLayerOpacityHover:Re.extend("--ft-button-neutral-state-layer-opacity-hover","",Le.opacity8),neutralStateLayerOpacityFocus:Re.extend("--ft-button-neutral-state-layer-opacity-focus","",Le.opacity8),neutralStateLayerOpacityActive:Re.extend("--ft-button-neutral-state-layer-opacity-active","",Le.opacity16),neutralComponentOpacityDisabled:Re.extend("--ft-button-neutral-component-opacity-disabled","",Le.opacity40)};Re.extend("--ft-floating-menu-horizontal-padding","",Le.spacing4),Re.extend("--ft-floating-menu-vertical-padding","",Le.spacing4),Re.extend("--ft-floating-menu-off-icon-color","",Te.contentGlobalPrimary),Re.extend("--ft-floating-menu-off-color","",Te.contentGlobalPrimary),Re.extend("--ft-floating-menu-on-color","",Te.contentActionPrimary),Re.extend("--ft-floating-menu-on-icon-color","",Te.contentActionPrimary),Re.extend("--ft-floating-menu-on-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-floating-menu-gap","",Le.spacing3),Re.extend("--ft-floating-menu-focus-focus-ring-color","",Te.borderActionFocusRing),Re.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),Re.extend("--ft-floating-menu-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-floating-menu-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-floating-menu-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-floating-menu-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-floating-menu-icon-size","",Le.iconSize3),Re.extend("--ft-floating-menu-background-color","",Te.backgroundGlobalOnSurface),Re.extend("--ft-tabs-top-left-border-radius","",Le.borderRadiusS),Re.extend("--ft-tabs-top-right-border-radius","",Le.borderRadiusS),Re.extend("--ft-tabs-label-horizontal-padding","",Le.spacing4),Re.extend("--ft-tabs-label-vertical-padding","",Le.spacing3),Re.extend("--ft-tabs-label-gap","",Le.spacing1),Re.extend("--ft-tabs-icon-horizontal-padding","",Le.spacing1),Re.extend("--ft-tabs-icon-vertical-padding","",Le.spacing4),Re.create("--ft-tabs-focus-outline-width","","SIZE","2px"),Re.extend("--ft-tabs-focus-focus-ring-color","",Te.borderActionFocusRing),Re.extend("--ft-tabs-off-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-tabs-off-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-tabs-off-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-tabs-off-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-tabs-off-color","",Te.contentGlobalSubtle),Re.extend("--ft-tabs-off-state-layer-color","",Te.contentGlobalSubtle),Re.extend("--ft-tabs-on-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-tabs-on-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-tabs-on-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-tabs-on-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-tabs-on-color","",Te.contentActionPrimary),Re.extend("--ft-tabs-on-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-collapsible-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-collapsible-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-collapsible-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-collapsible-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-collapsible-horizontal-padding","",Le.spacing4),Re.extend("--ft-collapsible-vertical-padding","",Le.spacing3),Re.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),Re.extend("--ft-collapsible-focus-focus-ring-color","",Te.borderActionFocusRing),Re.extend("--ft-collapsible-color","",Te.contentGlobalPrimary),Re.extend("--ft-collapsible-state-layer-color","",Te.contentGlobalPrimary),Re.extend("--ft-collapsible-background-color","",Te.backgroundGlobalOnSurface),Re.extend("--ft-collapsible-border-color","",Te.borderGlobalSubtle),Re.extend("--ft-collapsible-icon-size","",Le.iconSize3),Re.extend("--ft-switch-group-horizontal-padding","",Le.spacing1),Re.extend("--ft-switch-group-vertical-padding","",Le.spacing1),Re.extend("--ft-switch-group-gap","",Le.spacing1),Re.extend("--ft-switch-group-background-color","",Te.backgroundGlobalSurface),Re.extend("--ft-switch-group-border-color","",Te.borderGlobalSubtle),Re.create("--ft-switch-group-border-radius","","SIZE","6px"),Re.extend("--ft-switch-label-horizontal-padding","",Le.spacing2),Re.extend("--ft-switch-label-vertical-padding","",Le.spacing1),Re.extend("--ft-switch-icon-horizontal-padding","",Le.spacing1),Re.extend("--ft-switch-icon-vertical-padding","",Le.spacing1),Re.create("--ft-switch-focus-outline-width","","SIZE","2px"),Re.extend("--ft-switch-focus-focus-ring-color","",Te.borderActionFocusRing),Re.extend("--ft-switch-option-border-radius","",Le.borderRadiusS),Re.extend("--ft-switch-off-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-switch-off-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-switch-off-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-switch-off-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-switch-off-color","",Te.contentGlobalSubtle),Re.extend("--ft-switch-off-state-layer-color","",Te.contentGlobalSubtle),Re.extend("--ft-switch-on-state-layer-opacity-hover","",Le.opacity8),Re.extend("--ft-switch-on-state-layer-opacity-focus","",Le.opacity8),Re.extend("--ft-switch-on-state-layer-opacity-active","",Le.opacity16),Re.extend("--ft-switch-on-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-switch-on-color","",Te.contentActionPrimary),Re.extend("--ft-switch-on-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-chart-1-light","for area color charts",Le.colorBrand40),Re.extend("--ft-chart-1-base","for line charts",Le.colorBrand0),Re.extend("--ft-chart-2-light","for area color charts",Le.colorYellow60),Re.extend("--ft-chart-2-base","for line charts",Le.colorYellow100),Re.extend("--ft-chart-3-light","",Le.colorUltramarine40),Re.extend("--ft-chart-3-base","",Le.colorUltramarine70),Re.extend("--ft-chart-4-light","",Le.colorCyan50),Re.extend("--ft-chart-4-base","",Le.colorCyan100),Re.extend("--ft-chart-5-light","",Le.colorRed40),Re.extend("--ft-chart-5-base","",Le.colorRed60),Re.extend("--ft-chart-6-light","",Le.colorGreen40),Re.extend("--ft-chart-6-base","",Le.colorGreen70),Re.extend("--ft-chart-7-light","",Le.colorOrange70),Re.extend("--ft-chart-7-base","",Le.colorOrange100),Re.extend("--ft-chart-8-light","",Le.colorAvocado70),Re.extend("--ft-chart-8-base","",Le.colorAvocado200),Re.extend("--ft-chart-9-light","",Le.colorBrown50),Re.extend("--ft-chart-9-base","",Le.colorBrown200),Re.extend("--ft-chart-10-light","",Le.colorGray50),Re.extend("--ft-chart-10-base","",Le.colorGray80),Re.extend("--ft-chart-monochrome-10","",Le.colorBrand10),Re.extend("--ft-chart-monochrome-20","",Le.colorBrand20),Re.extend("--ft-chart-monochrome-30","",Le.colorBrand40),Re.extend("--ft-chart-monochrome-40","",Le.colorBrand60),Re.extend("--ft-chart-monochrome-50","",Le.colorBrand0),Re.extend("--ft-chart-monochrome-60","",Le.colorBrand200),Re.extend("--ft-chip-large-horizontal-padding","",Le.spacing4),Re.extend("--ft-chip-large-vertical-padding","",Le.spacing2),Re.extend("--ft-chip-large-gap","",Le.spacing1),Re.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-large-border-radius","",Le.borderRadiusPill),Re.create("--ft-chip-large-border-width","","SIZE","1px"),Re.extend("--ft-chip-large-icon-size","",Le.iconSize3),Re.extend("--ft-chip-medium-horizontal-padding","",Le.spacing3),Re.extend("--ft-chip-medium-vertical-padding","",Le.spacing1),Re.extend("--ft-chip-medium-gap","",Le.spacing1),Re.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-medium-border-radius","",Le.borderRadiusPill),Re.create("--ft-chip-medium-border-width","","SIZE","1px"),Re.extend("--ft-chip-medium-icon-size","",Le.iconSize2),Re.extend("--ft-chip-small-horizontal-padding","",Le.spacing2),Re.extend("--ft-chip-small-vertical-padding","",Le.spacing05),Re.extend("--ft-chip-small-gap","",Le.spacing1),Re.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Re.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Re.extend("--ft-chip-small-border-radius","",Le.borderRadiusPill),Re.create("--ft-chip-small-border-width","","SIZE","1px"),Re.extend("--ft-chip-small-icon-size","",Le.iconSize1),Re.extend("--ft-chip-neutral-background-color","",Te.backgroundGlobalOnSurface),Re.extend("--ft-chip-neutral-color","",Te.contentGlobalPrimary),Re.extend("--ft-chip-neutral-border-color","",Te.borderGlobalSubtle),Re.extend("--ft-chip-info-background-color","",Te.backgroundInfoSubtle),Re.extend("--ft-chip-info-color","",Te.contentInfoPrimary),Re.extend("--ft-chip-info-border-color","",Te.borderInfoSubtle),Re.extend("--ft-chip-success-background-color","",Te.backgroundSuccessSubtle),Re.extend("--ft-chip-success-color","",Te.contentSuccessPrimary),Re.extend("--ft-chip-success-border-color","",Te.borderSuccessSubtle),Re.extend("--ft-chip-warning-background-color","",Te.backgroundWarningSubtle),Re.extend("--ft-chip-warning-color","",Te.contentWarningPrimary),Re.extend("--ft-chip-warning-border-color","",Te.borderWarningSubtle),Re.extend("--ft-chip-error-background-color","",Te.backgroundErrorSubtle),Re.extend("--ft-chip-error-color","",Te.contentErrorPrimary),Re.extend("--ft-chip-error-border-color","",Te.borderErrorSubtle),Re.create("--ft-notice-border-width","","SIZE","1px"),Re.extend("--ft-notice-horizontal-padding","",Le.spacing2),Re.extend("--ft-notice-vertical-padding","",Le.spacing1),Re.extend("--ft-notice-border-radius","",Le.borderRadiusS),Re.extend("--ft-notice-gap","",Le.spacing2),Re.extend("--ft-notice-icon-size","",Le.iconSize3),Re.extend("--ft-notice-info-background-color","",Te.backgroundInfoSubtle),Re.extend("--ft-notice-info-border-color","",Te.borderInfoSubtle),Re.extend("--ft-notice-info-color","",Te.contentInfoPrimary),Re.extend("--ft-notice-warning-background-color","",Te.backgroundWarningSubtle),Re.extend("--ft-notice-warning-border-color","",Te.borderWarningSubtle),Re.extend("--ft-notice-warning-color","",Te.contentWarningPrimary),Re.extend("--ft-checkbox-label-color","",Te.contentGlobalPrimary),Re.extend("--ft-checkbox-checked-background-color","",Te.contentActionPrimary),Re.extend("--ft-checkbox-checked-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-checkbox-checked-color","",Te.contentGlobalOnColor),Re.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-checkbox-checked-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-checkbox-checked-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-checkbox-unchecked-border-color","",Le.colorGray80),Re.extend("--ft-checkbox-unchecked-state-layer-color","",Le.colorGray80),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-checkbox-focus-focus-ring-color","",Te.borderActionFocusRing),Re.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Re.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Re.extend("--ft-checkbox-gap","",Le.spacing3),Re.extend("--ft-toggle-off-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-toggle-off-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-toggle-off-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-toggle-off-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-toggle-off-background-color","",Te.contentGlobalSubtle),Re.extend("--ft-toggle-off-icon-color","",Te.contentGlobalSubtle),Re.extend("--ft-toggle-off-state-layer-color","",Te.contentGlobalSubtle),Re.extend("--ft-toggle-on-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-toggle-on-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-toggle-on-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-toggle-on-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-toggle-on-background-color","",Te.contentActionPrimary),Re.extend("--ft-toggle-on-icon-color","",Te.contentActionPrimary),Re.extend("--ft-toggle-on-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-toggle-label-color","",Te.contentGlobalPrimary),Re.extend("--ft-toggle-focus-focus-ring-color","",Te.borderActionFocusRing),Re.extend("--ft-toggle-gap","",Le.spacing3),Re.extend("--ft-radio-label-color","",Te.contentGlobalPrimary),Re.extend("--ft-radio-selected-color","",Te.contentActionPrimary),Re.extend("--ft-radio-selected-state-layer-color","",Te.contentActionPrimary),Re.extend("--ft-radio-selected-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-radio-selected-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-radio-selected-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-radio-selected-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-radio-unselected-state-layer-color","",Le.colorGray80),Re.extend("--ft-radio-unselected-state-layer-opacity-hover","",Le.opacity16),Re.extend("--ft-radio-unselected-state-layer-opacity-focus","",Le.opacity16),Re.extend("--ft-radio-unselected-state-layer-opacity-active","",Le.opacity24),Re.extend("--ft-radio-unselected-component-opacity-disabled","",Le.opacity40),Re.extend("--ft-radio-focus-focus-ring-color","",Te.borderActionFocusRing),Re.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Re.create("--ft-radio-focus-outline-width","","SIZE","2px"),Re.extend("--ft-radio-gap","",Le.spacing3),Re.extend("--ft-notification-icon-size","",Le.iconSize4),Re.extend("--ft-notification-horizontal-padding","",Le.spacing4),Re.extend("--ft-notification-vertical-padding","",Le.spacing4),Re.extend("--ft-notification-info-background-color","",Te.backgroundInfoSubtle),Re.extend("--ft-notification-info-color","",Te.contentInfoPrimary),Re.extend("--ft-notification-info-border-color","",Te.borderInfoSubtle),Re.extend("--ft-notification-success-background-color","",Te.backgroundSuccessSubtle),Re.extend("--ft-notification-success-color","",Te.contentSuccessPrimary),Re.extend("--ft-notification-success-border-color","",Te.borderSuccessSubtle),Re.extend("--ft-notification-warning-background-color","",Te.backgroundWarningSubtle),Re.extend("--ft-notification-warning-color","",Te.contentWarningPrimary),Re.extend("--ft-notification-warning-border-color","",Te.borderWarningSubtle),Re.extend("--ft-notification-error-background-color","",Te.backgroundErrorSubtle),Re.extend("--ft-notification-error-color","",Te.contentErrorPrimary),Re.extend("--ft-notification-error-border-color","",Te.borderErrorSubtle),Re.extend("--ft-notification-border-radius","",Le.borderRadiusPill),Re.create("--ft-notification-border-width","","SIZE","1px"),Re.extend("--ft-notification-gap-leading","",Le.spacing2),Re.extend("--ft-notification-gap-trailing","",Le.spacing8),Re.extend("--ft-tooltip-horizontal-padding","",Le.spacing2),Re.extend("--ft-tooltip-vertical-padding","",Le.spacing2),Re.extend("--ft-tooltip-border-radius","",Le.borderRadiusS),Re.extend("--ft-tooltip-label","",Te.contentGlobalOnColor),Re.extend("--ft-tooltip-background","",Te.contentGlobalPrimary),Re.extend("--ft-tooltip-background-opacity","",Le.opacity80),Re.extend("--ft-tooltip-shadow","",Le.shadowElevation03);const We={colorPrimary:Re.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:Re.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:Re.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:Re.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:Re.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:Re.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Re.create("--ft-color-error","","COLOR","#B00020"),colorOutline:Re.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Re.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:Re.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:Re.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:Re.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:Re.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:Re.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Re.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Re.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:Re.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:Re.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Re.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Re.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Re.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Re.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Re.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Re.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:Re.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:Re.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:Re.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:Re.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:Re.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:Re.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Re.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Re.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:Re.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Re.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Re.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Re.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Re.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Re.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Re.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:Re.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Re.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Re.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Re.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Re.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:Re.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:Re.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:Re.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:Re.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:Re.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:Re.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:Re.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:Re.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:Re.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:Re.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:Re.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:Re.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:Re.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:Re.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:Re.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Re.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Re.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:Re.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};class De extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}const Me=["start","end"],Fe=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+Me[0],e+"-"+Me[1])),[]),Pe=Math.min,ze=Math.max,Be=Math.round,je=t=>({x:t,y:t}),Ke={left:"right",right:"left",bottom:"top",top:"bottom"},Ze={start:"end",end:"start"};function He(t,e,i){return ze(t,Pe(e,i))}function Ge(t,e){return"function"==typeof t?t(e):t}function Ve(t){return t.split("-")[0]}function qe(t){return t.split("-")[1]}function Ye(t){return"x"===t?"y":"x"}function Xe(t){return"y"===t?"height":"width"}function Je(t){return["top","bottom"].includes(Ve(t))?"y":"x"}function Qe(t){return Ye(Je(t))}function ti(t){return t.replace(/left|right|bottom|top/g,(t=>Ke[t]))}function ei(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ii(t,e,i){let{reference:o,floating:r}=t;const n=Je(e),a=Qe(e),s=Xe(a),l=Ve(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(qe(e)){case"start":u[a]-=d*(i&&c?-1:1);break;case"end":u[a]+=d*(i&&c?-1:1)}return u}async function oi(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}=Ge(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=ei(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=ei(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 ri(t,e,i){return(t?[...i.filter((e=>qe(e)===t)),...i.filter((e=>qe(e)!==t))]:i.filter((t=>Ve(t)===t))).filter((i=>!t||(qe(i)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Ze[t]))}(i)!==i)))}const ni=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=Fe,autoAlignment:u=!0,...p}=Ge(t,e),y=void 0!==h||d===Fe?ri(h||null,u,d):d,g=await oi(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=qe(t),r=Qe(t),n=Xe(r);let a="x"===r?o===(i?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=ti(a)),[a,ti(a)]}(v,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==v)return{reset:{placement:y[0]}};const x=[g[Ve(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=qe(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])),N=S.filter((t=>t[2].slice(0,qe(t[0])?2:3).every((t=>t<=0)))),$=(null==(r=N[0])?void 0:r[0])||S[0][0];return $!==s?{data:{index:b+1,overflows:w},reset:{placement:$}}:{}}}};function ai(t){return ci(t)?(t.nodeName||"").toLowerCase():"#document"}function si(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function li(t){var e;return null==(e=(ci(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function ci(t){return t instanceof Node||t instanceof si(t).Node}function fi(t){return t instanceof Element||t instanceof si(t).Element}function hi(t){return t instanceof HTMLElement||t instanceof si(t).HTMLElement}function di(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof si(t).ShadowRoot)}function ui(t){const{overflow:e,overflowX:i,overflowY:o,display:r}=vi(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+i)&&!["inline","contents"].includes(r)}function pi(t){return["table","td","th"].includes(ai(t))}function yi(t){const e=gi(),i=vi(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 gi(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function bi(t){return["html","body","#document"].includes(ai(t))}function vi(t){return si(t).getComputedStyle(t)}function mi(t){return fi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function xi(t){if("html"===ai(t))return t;const e=t.assignedSlot||t.parentNode||di(t)&&t.host||li(t);return di(e)?e.host:e}function wi(t){const e=xi(t);return bi(e)?t.ownerDocument?t.ownerDocument.body:t.body:hi(e)&&ui(e)?e:wi(e)}function Oi(t,e,i){var o;void 0===e&&(e=[]),void 0===i&&(i=!0);const r=wi(t),n=r===(null==(o=t.ownerDocument)?void 0:o.body),a=si(r);return n?e.concat(a,a.visualViewport||[],ui(r)?r:[],a.frameElement&&i?Oi(a.frameElement):[]):e.concat(r,Oi(r,[],i))}function Si(t){const e=vi(t);let i=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=hi(t),n=r?t.offsetWidth:i,a=r?t.offsetHeight:o,s=Be(i)!==n||Be(o)!==a;return s&&(i=n,o=a),{width:i,height:o,$:s}}function Ni(t){return fi(t)?t:t.contextElement}function $i(t){const e=Ni(t);if(!hi(e))return je(1);const i=e.getBoundingClientRect(),{width:o,height:r,$:n}=Si(e);let a=(n?Be(i.width):i.width)/o,s=(n?Be(i.height):i.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ci=je(0);function Ei(t){const e=si(t);return gi()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Ci}function ki(t,e,i,o){void 0===e&&(e=!1),void 0===i&&(i=!1);const r=t.getBoundingClientRect(),n=Ni(t);let a=je(1);e&&(o?fi(o)&&(a=$i(o)):a=$i(t));const s=function(t,e,i){return void 0===e&&(e=!1),!(!i||e&&i!==si(t))&&e}(n,i,o)?Ei(n):je(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=si(n),e=o&&fi(o)?si(o):o;let i=t.frameElement;for(;i&&o&&e!==t;){const t=$i(i),e=i.getBoundingClientRect(),o=vi(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=si(i).frameElement}}return ei({width:f,height:h,x:l,y:c})}function Ii(t){return ki(li(t)).left+mi(t).scrollLeft}function Ri(t,e,i){let o;if("viewport"===e)o=function(t,e){const i=si(t),o=li(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=gi();(!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=li(t),i=mi(t),o=t.ownerDocument.body,r=ze(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),n=ze(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-i.scrollLeft+Ii(t);const s=-i.scrollTop;return"rtl"===vi(o).direction&&(a+=ze(e.clientWidth,o.clientWidth)-r),{width:r,height:n,x:a,y:s}}(li(t));else if(fi(e))o=function(t,e){const i=ki(t,!0,"fixed"===e),o=i.top+t.clientTop,r=i.left+t.clientLeft,n=hi(t)?$i(t):je(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=Ei(t);o={...e,x:e.x-i.x,y:e.y-i.y}}return ei(o)}function Ui(t,e){const i=xi(t);return!(i===e||!fi(i)||bi(i))&&("fixed"===vi(i).position||Ui(i,e))}function Li(t,e,i){const o=hi(e),r=li(e),n="fixed"===i,a=ki(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=je(0);if(o||!o&&!n)if(("body"!==ai(e)||ui(r))&&(s=mi(e)),o){const t=ki(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Ii(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ai(t,e){return hi(t)&&"fixed"!==vi(t).position?e?e(t):t.offsetParent:null}function Ti(t,e){const i=si(t);if(!hi(t))return i;let o=Ai(t,e);for(;o&&pi(o)&&"static"===vi(o).position;)o=Ai(o,e);return o&&("html"===ai(o)||"body"===ai(o)&&"static"===vi(o).position&&!yi(o))?i:o||function(t){let e=xi(t);for(;hi(e)&&!bi(e);){if(yi(e))return e;e=xi(e)}return null}(t)||i}const _i={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:i,strategy:o}=t;const r=hi(i),n=li(i);if(i===n)return e;let a={scrollLeft:0,scrollTop:0},s=je(1);const l=je(0);if((r||!r&&"fixed"!==o)&&(("body"!==ai(i)||ui(n))&&(a=mi(i)),hi(i))){const t=ki(i);s=$i(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:li,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=Oi(t,[],!1).filter((t=>fi(t)&&"body"!==ai(t))),r=null;const n="fixed"===vi(t).position;let a=n?xi(t):t;for(;fi(a)&&!bi(a);){const e=vi(a),i=yi(a);i||"fixed"!==e.position||(r=null),(n?!i&&!r:!i&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||ui(a)&&!i&&Ui(t,a))?o=o.filter((t=>t!==a)):r=e,a=xi(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=Ri(e,i,r);return t.top=ze(o.top,t.top),t.right=Pe(o.right,t.right),t.bottom=Pe(o.bottom,t.bottom),t.left=ze(o.left,t.left),t}),Ri(e,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Ti,getElementRects:async function(t){let{reference:e,floating:i,strategy:o}=t;const r=this.getOffsetParent||Ti,n=this.getDimensions;return{reference:Li(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 Si(t)},getScale:$i,isElement:fi,isRTL:function(t){return"rtl"===vi(t).direction}},Wi=(t,e,i)=>{const o=new Map,r={platform:_i,...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}=ii(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}=ii(c,d,l))),i=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:u}})(t,e,{...r,platform:n})};function Di(t){return function(t){for(let e=t;e;e=Mi(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Mi(t);e;e=Mi(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function Mi(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}
91
91
  /**
92
92
  * @license
93
93
  * Copyright 2019 Google LLC
94
94
  * SPDX-License-Identifier: BSD-3-Clause
95
95
  */
96
- const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class zi extends Ee{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)=>{Pi?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=Mi.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))})(i,t.elementStyles),i}}var ji,Bi=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 Ki=Symbol("constructorPrototype"),Zi=Symbol("constructorName"),Hi=Symbol("exportpartsDebouncer");class Gi extends zi{constructor(){super(),this[ji]=new n(5),this[Zi]=this.constructor.name,this[Ki]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Zi]&&Object.setPrototypeOf(this,this[Ki])}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[Hi].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(", "))}}ji=Hi,Bi([I()],Gi.prototype,"exportpartsPrefix",void 0),Bi([M([])],Gi.prototype,"exportpartsPrefixes",void 0),Bi([I()],Gi.prototype,"customStylesheet",void 0);const Vi=Re.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Rt`
96
+ const Fi=window,Pi=Fi.ShadowRoot&&(void 0===Fi.ShadyCSS||Fi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class zi extends Ee{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)=>{Pi?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=Fi.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))})(i,t.elementStyles),i}}var Bi,ji=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 Ki=Symbol("constructorPrototype"),Zi=Symbol("constructorName"),Hi=Symbol("exportpartsDebouncer");class Gi extends zi{constructor(){super(),this[Bi]=new n(5),this[Zi]=this.constructor.name,this[Ki]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Zi]&&Object.setPrototypeOf(this,this[Ki])}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[Hi].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(", "))}}Bi=Hi,ji([I()],Gi.prototype,"exportpartsPrefix",void 0),ji([F([])],Gi.prototype,"exportpartsPrefixes",void 0),ji([I()],Gi.prototype,"customStylesheet",void 0);const Vi=Re.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");Rt`
97
97
  .highlight-html-match {
98
98
  background: ${Vi};
99
99
  }
@@ -129,7 +129,7 @@ const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShado
129
129
  display: inline-block;
130
130
  width: 0;
131
131
  }
132
- `;class Xi{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 Ji=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!D(t,e),attribute:!1,...e};I(r)(t,i);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}};class Qi{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function to(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var eo,io,oo;const ro=Symbol("internalReduxEventsUnsubscribers"),no=Symbol("internalStoresUnsubscribers"),ao=Symbol("internalStores");class so extends Gi{constructor(){super(...arguments),this[eo]=new Map,this[io]=new Map,this[oo]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[ao].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ao].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[ao].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:to(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[ao].delete(e)}setupStore(t,e){this[ao].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[ao].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.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[no].has(t.store):this[no].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[no].set(t,e.subscribe((()=>this.updateFromStores()))),to(e)&&e.eventBus&&(null===(i=this.reduxConstructor.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[ro].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[no].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[ro].forEach((t=>t())),this[ro]=[]}unsubscribeFromStore(t){this[no].has(t)&&this[no].get(t)(),this[no].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function lo(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 co(t){return!!t&&!!t[Yo]}function fo(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)===Xo}(t)||Array.isArray(t)||!!t[qo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[qo])||bo(t)||vo(t))}function ho(t,e,i){void 0===i&&(i=!1),0===uo(t)?(i?Object.keys:Jo)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function uo(t){var e=t[Yo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:bo(t)?2:vo(t)?3:0}function po(t,e){return 2===uo(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function yo(t,e,i){var o=uo(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function go(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function bo(t){return Zo&&t instanceof Map}function vo(t){return Ho&&t instanceof Set}function mo(t){return t.o||t.t}function xo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Qo(t);delete e[Yo];for(var i=Jo(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 wo(t,e){return void 0===e&&(e=!1),So(t)||co(t)||!fo(t)||(uo(t)>1&&(t.set=t.add=t.clear=t.delete=Oo),Object.freeze(t),e&&ho(t,(function(t,e){return wo(e,!0)}),!0)),t}function Oo(){lo(2)}function So(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function No(t){var e=tr[t];return e||lo(18,t),e}function $o(){return Bo}function Co(t,e){e&&(No("Patches"),t.u=[],t.s=[],t.v=e)}function Eo(t){ko(t),t.p.forEach(Ro),t.p=null}function ko(t){t===Bo&&(Bo=t.l)}function Io(t){return Bo={p:[],l:Bo,h:t,m:!0,_:0}}function Ro(t){var e=t[Yo];0===e.i||1===e.i?e.j():e.g=!0}function Uo(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||No("ES5").S(e,t,o),o?(i[Yo].P&&(Eo(e),lo(4)),fo(t)&&(t=Lo(e,t),e.l||To(e,t)),e.u&&No("Patches").M(i[Yo].t,t,e.u,e.s)):t=Lo(e,i,[]),Eo(e),e.u&&e.v(e.u,e.s),t!==Vo?t:void 0}function Lo(t,e,i){if(So(e))return e;var o=e[Yo];if(!o)return ho(e,(function(r,n){return Ao(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return To(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=xo(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),ho(n,(function(e,n){return Ao(t,o,r,e,n,i,a)})),To(t,r,!1),i&&t.u&&No("Patches").N(o,i,t.u,t.s)}return o.o}function Ao(t,e,i,o,r,n,a){if(co(r)){var s=Lo(t,r,n&&e&&3!==e.i&&!po(e.R,o)?n.concat(o):void 0);if(yo(i,o,s),!co(s))return;t.m=!1}else a&&i.add(r);if(fo(r)&&!So(r)){if(!t.h.D&&t._<1)return;Lo(t,r),e&&e.A.l||To(t,r)}}function To(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&wo(e,i)}function _o(t,e){var i=t[Yo];return(i?mo(i):t)[e]}function Wo(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 Do(t){t.P||(t.P=!0,t.l&&Do(t.l))}function Fo(t){t.o||(t.o=xo(t.t))}function Mo(t,e,i){var o=bo(e)?No("MapSet").F(e,i):vo(e)?No("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:$o(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=er;i&&(r=[o],n=ir);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):No("ES5").J(e,i);return(i?i.A:$o()).p.push(o),o}function Po(t){return co(t)||lo(22,t),function t(e){if(!fo(e))return e;var i,o=e[Yo],r=uo(e);if(o){if(!o.P&&(o.i<4||!No("ES5").K(o)))return o.t;o.I=!0,i=zo(e,r),o.I=!1}else i=zo(e,r);return ho(i,(function(e,r){o&&function(t,e){return 2===uo(t)?t.get(e):t[e]}(o.t,e)===r||yo(i,e,t(r))})),3===r?new Set(i):i}(t)}function zo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return xo(t)}eo=no,io=ao,oo=ro,so.reduxProperties=new Map,so.reduxReactiveProperties=new Set,so.reduxEventListeners=new Map;var jo,Bo,Ko="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Zo="undefined"!=typeof Map,Ho="undefined"!=typeof Set,Go="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Vo=Ko?Symbol.for("immer-nothing"):((jo={})["immer-nothing"]=!0,jo),qo=Ko?Symbol.for("immer-draftable"):"__$immer_draftable",Yo=Ko?Symbol.for("immer-state"):"__$immer_state",Xo=""+Object.prototype.constructor,Jo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Qo=Object.getOwnPropertyDescriptors||function(t){var e={};return Jo(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},tr={},er={get:function(t,e){if(e===Yo)return t;var i=mo(t);if(!po(i,e))return function(t,e,i){var o,r=Wo(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||!fo(o)?o:o===_o(t.t,e)?(Fo(t),t.o[e]=Mo(t.A.h,o,t)):o},has:function(t,e){return e in mo(t)},ownKeys:function(t){return Reflect.ownKeys(mo(t))},set:function(t,e,i){var o=Wo(mo(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=_o(mo(t),e),n=null==r?void 0:r[Yo];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(go(i,r)&&(void 0!==i||po(t.t,e)))return!0;Fo(t),Do(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!==_o(t.t,e)||e in t.t?(t.R[e]=!1,Fo(t),Do(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=mo(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(){lo(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){lo(12)}},ir={};ho(er,(function(t,e){ir[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),ir.deleteProperty=function(t,e){return ir.set.call(this,t,e,void 0)},ir.set=function(t,e,i){return er.set.call(this,t[0],e,i,t[0])};var or=function(){function t(t){var e=this;this.O=Go,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&&lo(6),void 0!==o&&"function"!=typeof o&&lo(7),fo(t)){var s=Io(e),l=Mo(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?Eo(s):ko(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Co(s,o),Uo(t,s)}),(function(t){throw Eo(s),t})):(Co(s,o),Uo(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===Vo&&(a=void 0),e.D&&wo(a,!0),o){var f=[],h=[];No("Patches").M(t,a,f,h),o(f,h)}return a}lo(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){fo(t)||lo(8),co(t)&&(t=Po(t));var e=Io(this),i=Mo(this,t,void 0);return i[Yo].C=!0,ko(e),i},e.finishDraft=function(t,e){var i=(t&&t[Yo]).A;return Co(i,e),Uo(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Go&&lo(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=No("Patches").$;return co(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),rr=new or,nr=rr.produce;function ar(t){return ar="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},ar(t)}function sr(t){var e=function(t,e){if("object"!==ar(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==ar(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ar(e)?e:String(e)}function lr(t,e,i){return(e=sr(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function cr(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 fr(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?cr(Object(i),!0).forEach((function(e){lr(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):cr(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function hr(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. "}rr.produceWithPatches.bind(rr),rr.setAutoFreeze.bind(rr),rr.setUseProxies.bind(rr),rr.applyPatches.bind(rr),rr.createDraft.bind(rr),rr.finishDraft.bind(rr);var dr="function"==typeof Symbol&&Symbol.observable||"@@observable",ur=function(){return Math.random().toString(36).substring(7).split("").join(".")},pr={INIT:"@@redux/INIT"+ur(),REPLACE:"@@redux/REPLACE"+ur(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ur()}};function yr(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(hr(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(hr(1));return i(yr)(t,e)}if("function"!=typeof t)throw new Error(hr(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(hr(3));return n}function h(t){if("function"!=typeof t)throw new Error(hr(4));if(l)throw new Error(hr(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(hr(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(hr(7));if(void 0===t.type)throw new Error(hr(8));if(l)throw new Error(hr(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:pr.INIT}),(o={dispatch:d,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(hr(10));r=t,d({type:pr.REPLACE})}})[dr]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(hr(11));function i(){t.next&&t.next(f())}return i(),{unsubscribe:e(i)}}})[dr]=function(){return this},t},o}function gr(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:pr.INIT}))throw new Error(hr(12));if(void 0===i(void 0,{type:pr.PROBE_UNKNOWN_ACTION()}))throw new Error(hr(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(hr(14));r[l]=h,o=o||h!==f}return(o=o||a.length!==Object.keys(t).length)?r:t}}function br(){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 vr(){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(hr(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=br.apply(void 0,n)(i.dispatch),fr(fr({},i),{},{dispatch:o})}}}function mr(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 xr=mr();xr.withExtraArgument=mr;var wr,Or=xr,Sr=(wr=function(t,e){return wr=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])},wr(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}wr(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),Nr=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])}}},$r=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},Cr=Object.defineProperty,Er=Object.defineProperties,kr=Object.getOwnPropertyDescriptors,Ir=Object.getOwnPropertySymbols,Rr=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable,Lr=function(t,e,i){return e in t?Cr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Ar=function(t,e){for(var i in e||(e={}))Rr.call(e,i)&&Lr(t,i,e[i]);if(Ir)for(var o=0,r=Ir(e);o<r.length;o++){i=r[o];Ur.call(e,i)&&Lr(t,i,e[i])}return t},Tr=function(t,e){return Er(t,kr(e))},_r="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?br:br.apply(null,arguments)};var Wr=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 Sr(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,$r([void 0],t[0].concat(this)))):new(e.bind.apply(e,$r([void 0],t.concat(this))))},e}(Array),Dr=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 Sr(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,$r([void 0],t[0].concat(this)))):new(e.bind.apply(e,$r([void 0],t.concat(this))))},e}(Array);function Fr(t){return fo(t)?nr(t,(function(){})):t}function Mr(){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 Wr;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(Or.withExtraArgument(i.extraArgument)):o.push(Or));return o}(t)}}function Pr(t){var e,i=Mr(),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=gr(n)}var p=s;"function"==typeof p&&(p=p(i));var y=vr.apply(void 0,p),g=br;c&&(g=_r(Ar({trace:!1},"object"==typeof c&&c)));var b=new Dr(y),v=b;return Array.isArray(u)?v=$r([y],u):"function"==typeof u&&(v=u(b)),yr(e,h,g.apply(void 0,v))}function zr(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 Ar(Ar({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 jr(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 Br(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:Fr(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?jr(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=Ar(Ar({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?jr(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Fr(t())};else{var c=Fr(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var i=$r([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(co(t))return void 0===(o=i(t,e))?t:o;if(fo(t))return nr(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?zr(c,o):zr(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 Kr=["name","message","stack","code"],Zr=function(t,e){this.payload=t,this.meta=e},Hr=function(t,e){this.payload=t,this.meta=e},Gr=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=Kr;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function Vr(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=zr(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:Tr(Ar({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=zr(t+"/pending",(function(t,e,i){return{payload:void 0,meta:Tr(Ar({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=zr(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Gr)(t||"Rejected"),meta:Tr(Ar({},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 Nr(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 Zr(t,e)},fulfillWithValue:function(t,e){return new Hr(t,e)}})).then((function(e){if(e instanceof Zr)throw e;return e instanceof Hr?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 Zr?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(Vr)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var qr="listenerMiddleware";zr(qr+"/add"),zr(qr+"/removeAll"),zr(qr+"/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[Yo];return er.get(e,t)},set:function(e){var i=this[Yo];er.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Yo];if(!r.P)switch(r.i){case 5:o(r)&&Do(r);break;case 4:i(r)&&Do(r)}}}function i(t){for(var e=t.t,i=t.k,o=Jo(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==Yo){var a=e[n];if(void 0===a&&!po(e,n))return!0;var s=i[n],l=s&&s[Yo];if(l?l.t!==a:!go(s,a))return!0}}var c=!!e[Yo];return o.length!==Jo(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){tr[t]||(tr[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=Qo(i);delete n[Yo];for(var a=Jo(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:$o(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Yo,{value:n,writable:!0}),r},S:function(t,i,r){r?co(i)&&i[Yo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Yo];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)ho(n,(function(e){e!==Yo&&(void 0!==r[e]||po(r,e)?a[e]||t(n[e]):(a[e]=!0,Do(i)))})),ho(r,(function(t){void 0!==n[t]||po(n,t)||(a[t]=!1,Do(i))}));else if(5===s){if(o(i)&&(Do(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 Yr{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(to(r))return r;if(null==o)return;const n=Br({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=Pr({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 Yr(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Qi,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 Xr=Symbol("elementInternals");function Jr(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Xr].form}constructor(...t){super(t),this[Xr]=this.attachInternals(),this[Xr].role=e}setFormValue(t){this[Xr].setFormValue(t)}}}var Qr,tn,en;const on=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(en=null===(tn=null===(Qr=window.safari)||void 0===Qr?void 0:Qr.pushNotification)||void 0===tn?void 0:tn.toString())&&void 0!==en?en:"");var rn;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(rn||(rn={}));var nn=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 an extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const sn=Symbol("registerInterval");class ln 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[sn]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[sn]):this.dispatchEvent(new an)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=sn,nn([R()],i.prototype,"stateManager",void 0),i}(so)){}const cn=Re.extend("--ft-ripple-color","",We.colorContent),fn={color:cn,backgroundColor:Re.extend("--ft-ripple-background-color","",cn),opacityContentOnSurfacePressed:Re.external(We.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Re.external(We.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Re.external(We.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Re.external(We.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Re.create("--ft-ripple-border-radius","","SIZE","0px")},hn=Re.extend("--ft-ripple-color","",We.colorPrimary),dn=hn,un=Re.extend("--ft-ripple-background-color","",hn),pn=Re.extend("--ft-ripple-color","",We.colorSecondary),yn=pn,gn=Re.extend("--ft-ripple-background-color","",pn),bn=Rt`
132
+ `;class Xi{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 Ji=t=>{const e=null!=t?t:{};return(t,i)=>{var o;const r={hasChanged:(t,e)=>!D(t,e),attribute:!1,...e};I(r)(t,i);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(i,{selector:null!==(o=e.selector)&&void 0!==o?o:t=>t[i],store:e.store})}},Qi=t=>(e,i)=>{const o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(i,t)};class to{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter((e=>e.type!==t.type))),this.queue.push(t)}consume(t){const e=this.queue.find((e=>e.type===t));return e&&(this.queue=this.queue.filter((t=>t!==e))),e}}function eo(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var io,oo,ro;const no=Symbol("internalReduxEventsUnsubscribers"),ao=Symbol("internalStoresUnsubscribers"),so=Symbol("internalStores");class lo extends Gi{constructor(){super(...arguments),this[io]=new Map,this[oo]=new Map,this[ro]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[so].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[so].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[so].get(t)}addStore(t,e){var i;e=null!==(i=null!=e?e:eo(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[so].delete(e)}setupStore(t,e){this[so].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[so].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.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[ao].has(t.store):this[ao].size>0)&&(this[e]=t.selector(i.getState(),this))}}))}subscribeToStore(t,e){var i;this[ao].set(t,e.subscribe((()=>this.updateFromStores()))),eo(e)&&e.eventBus&&(null===(i=this.reduxConstructor.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[no].push((()=>e.eventBus.removeEventListener(t.eventName,o)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ao].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[no].forEach((t=>t())),this[no]=[]}unsubscribeFromStore(t){this[ao].has(t)&&this[ao].get(t)(),this[ao].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function co(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 fo(t){return!!t&&!!t[Xo]}function ho(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)===Jo}(t)||Array.isArray(t)||!!t[Yo]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Yo])||vo(t)||mo(t))}function uo(t,e,i){void 0===i&&(i=!1),0===po(t)?(i?Object.keys:Qo)(t).forEach((function(o){i&&"symbol"==typeof o||e(o,t[o],t)})):t.forEach((function(i,o){return e(o,i,t)}))}function po(t){var e=t[Xo];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:vo(t)?2:mo(t)?3:0}function yo(t,e){return 2===po(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function go(t,e,i){var o=po(t);2===o?t.set(e,i):3===o?t.add(i):t[e]=i}function bo(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function vo(t){return Ho&&t instanceof Map}function mo(t){return Go&&t instanceof Set}function xo(t){return t.o||t.t}function wo(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=tr(t);delete e[Xo];for(var i=Qo(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 Oo(t,e){return void 0===e&&(e=!1),No(t)||fo(t)||!ho(t)||(po(t)>1&&(t.set=t.add=t.clear=t.delete=So),Object.freeze(t),e&&uo(t,(function(t,e){return Oo(e,!0)}),!0)),t}function So(){co(2)}function No(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function $o(t){var e=er[t];return e||co(18,t),e}function Co(){return Ko}function Eo(t,e){e&&($o("Patches"),t.u=[],t.s=[],t.v=e)}function ko(t){Io(t),t.p.forEach(Uo),t.p=null}function Io(t){t===Ko&&(Ko=t.l)}function Ro(t){return Ko={p:[],l:Ko,h:t,m:!0,_:0}}function Uo(t){var e=t[Xo];0===e.i||1===e.i?e.j():e.g=!0}function Lo(t,e){e._=e.p.length;var i=e.p[0],o=void 0!==t&&t!==i;return e.h.O||$o("ES5").S(e,t,o),o?(i[Xo].P&&(ko(e),co(4)),ho(t)&&(t=Ao(e,t),e.l||_o(e,t)),e.u&&$o("Patches").M(i[Xo].t,t,e.u,e.s)):t=Ao(e,i,[]),ko(e),e.u&&e.v(e.u,e.s),t!==qo?t:void 0}function Ao(t,e,i){if(No(e))return e;var o=e[Xo];if(!o)return uo(e,(function(r,n){return To(t,o,e,r,n,i)}),!0),e;if(o.A!==t)return e;if(!o.P)return _o(t,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var r=4===o.i||5===o.i?o.o=wo(o.k):o.o,n=r,a=!1;3===o.i&&(n=new Set(r),r.clear(),a=!0),uo(n,(function(e,n){return To(t,o,r,e,n,i,a)})),_o(t,r,!1),i&&t.u&&$o("Patches").N(o,i,t.u,t.s)}return o.o}function To(t,e,i,o,r,n,a){if(fo(r)){var s=Ao(t,r,n&&e&&3!==e.i&&!yo(e.R,o)?n.concat(o):void 0);if(go(i,o,s),!fo(s))return;t.m=!1}else a&&i.add(r);if(ho(r)&&!No(r)){if(!t.h.D&&t._<1)return;Ao(t,r),e&&e.A.l||_o(t,r)}}function _o(t,e,i){void 0===i&&(i=!1),!t.l&&t.h.D&&t.m&&Oo(e,i)}function Wo(t,e){var i=t[Xo];return(i?xo(i):t)[e]}function Do(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 Mo(t){t.P||(t.P=!0,t.l&&Mo(t.l))}function Fo(t){t.o||(t.o=wo(t.t))}function Po(t,e,i){var o=vo(e)?$o("MapSet").F(e,i):mo(e)?$o("MapSet").T(e,i):t.O?function(t,e){var i=Array.isArray(t),o={i:i?1:0,A:e?e.A:Co(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},r=o,n=ir;i&&(r=[o],n=or);var a=Proxy.revocable(r,n),s=a.revoke,l=a.proxy;return o.k=l,o.j=s,l}(e,i):$o("ES5").J(e,i);return(i?i.A:Co()).p.push(o),o}function zo(t){return fo(t)||co(22,t),function t(e){if(!ho(e))return e;var i,o=e[Xo],r=po(e);if(o){if(!o.P&&(o.i<4||!$o("ES5").K(o)))return o.t;o.I=!0,i=Bo(e,r),o.I=!1}else i=Bo(e,r);return uo(i,(function(e,r){o&&function(t,e){return 2===po(t)?t.get(e):t[e]}(o.t,e)===r||go(i,e,t(r))})),3===r?new Set(i):i}(t)}function Bo(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return wo(t)}io=ao,oo=so,ro=no,lo.reduxProperties=new Map,lo.reduxReactiveProperties=new Set,lo.reduxEventListeners=new Map;var jo,Ko,Zo="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Ho="undefined"!=typeof Map,Go="undefined"!=typeof Set,Vo="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,qo=Zo?Symbol.for("immer-nothing"):((jo={})["immer-nothing"]=!0,jo),Yo=Zo?Symbol.for("immer-draftable"):"__$immer_draftable",Xo=Zo?Symbol.for("immer-state"):"__$immer_state",Jo=""+Object.prototype.constructor,Qo="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,tr=Object.getOwnPropertyDescriptors||function(t){var e={};return Qo(t).forEach((function(i){e[i]=Object.getOwnPropertyDescriptor(t,i)})),e},er={},ir={get:function(t,e){if(e===Xo)return t;var i=xo(t);if(!yo(i,e))return function(t,e,i){var o,r=Do(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||!ho(o)?o:o===Wo(t.t,e)?(Fo(t),t.o[e]=Po(t.A.h,o,t)):o},has:function(t,e){return e in xo(t)},ownKeys:function(t){return Reflect.ownKeys(xo(t))},set:function(t,e,i){var o=Do(xo(t),e);if(null==o?void 0:o.set)return o.set.call(t.k,i),!0;if(!t.P){var r=Wo(xo(t),e),n=null==r?void 0:r[Xo];if(n&&n.t===i)return t.o[e]=i,t.R[e]=!1,!0;if(bo(i,r)&&(void 0!==i||yo(t.t,e)))return!0;Fo(t),Mo(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!==Wo(t.t,e)||e in t.t?(t.R[e]=!1,Fo(t),Mo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var i=xo(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(){co(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){co(12)}},or={};uo(ir,(function(t,e){or[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),or.deleteProperty=function(t,e){return or.set.call(this,t,e,void 0)},or.set=function(t,e,i){return ir.set.call(this,t[0],e,i,t[0])};var rr=function(){function t(t){var e=this;this.O=Vo,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&&co(6),void 0!==o&&"function"!=typeof o&&co(7),ho(t)){var s=Ro(e),l=Po(e,t,void 0),c=!0;try{a=i(l),c=!1}finally{c?ko(s):Io(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Eo(s,o),Lo(t,s)}),(function(t){throw ko(s),t})):(Eo(s,o),Lo(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===qo&&(a=void 0),e.D&&Oo(a,!0),o){var f=[],h=[];$o("Patches").M(t,a,f,h),o(f,h)}return a}co(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){ho(t)||co(8),fo(t)&&(t=zo(t));var e=Ro(this),i=Po(this,t,void 0);return i[Xo].C=!0,Io(e),i},e.finishDraft=function(t,e){var i=(t&&t[Xo]).A;return Eo(i,e),Lo(void 0,i)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Vo&&co(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=$o("Patches").$;return fo(t)?r(t,e):this.produce(t,(function(t){return r(t,e)}))},t}(),nr=new rr,ar=nr.produce;function sr(t){return sr="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},sr(t)}function lr(t){var e=function(t,e){if("object"!==sr(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!==sr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===sr(e)?e:String(e)}function cr(t,e,i){return(e=lr(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function fr(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 hr(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?fr(Object(i),!0).forEach((function(e){cr(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):fr(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function dr(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. "}nr.produceWithPatches.bind(nr),nr.setAutoFreeze.bind(nr),nr.setUseProxies.bind(nr),nr.applyPatches.bind(nr),nr.createDraft.bind(nr),nr.finishDraft.bind(nr);var ur="function"==typeof Symbol&&Symbol.observable||"@@observable",pr=function(){return Math.random().toString(36).substring(7).split("").join(".")},yr={INIT:"@@redux/INIT"+pr(),REPLACE:"@@redux/REPLACE"+pr(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+pr()}};function gr(t,e,i){var o;if("function"==typeof e&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(dr(0));if("function"==typeof e&&void 0===i&&(i=e,e=void 0),void 0!==i){if("function"!=typeof i)throw new Error(dr(1));return i(gr)(t,e)}if("function"!=typeof t)throw new Error(dr(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(dr(3));return n}function h(t){if("function"!=typeof t)throw new Error(dr(4));if(l)throw new Error(dr(5));var e=!0;return c(),s.push(t),function(){if(e){if(l)throw new Error(dr(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(dr(7));if(void 0===t.type)throw new Error(dr(8));if(l)throw new Error(dr(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:yr.INIT}),(o={dispatch:d,subscribe:h,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(dr(10));r=t,d({type:yr.REPLACE})}})[ur]=function(){var t,e=h;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(dr(11));function i(){t.next&&t.next(f())}return i(),{unsubscribe:e(i)}}})[ur]=function(){return this},t},o}function br(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:yr.INIT}))throw new Error(dr(12));if(void 0===i(void 0,{type:yr.PROBE_UNKNOWN_ACTION()}))throw new Error(dr(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(dr(14));r[l]=h,o=o||h!==f}return(o=o||a.length!==Object.keys(t).length)?r:t}}function vr(){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 mr(){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(dr(15))},r={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},n=e.map((function(t){return t(r)}));return o=vr.apply(void 0,n)(i.dispatch),hr(hr({},i),{},{dispatch:o})}}}function xr(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 wr=xr();wr.withExtraArgument=xr;var Or,Sr=wr,Nr=(Or=function(t,e){return Or=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])},Or(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}Or(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),$r=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])}}},Cr=function(t,e){for(var i=0,o=e.length,r=t.length;i<o;i++,r++)t[r]=e[i];return t},Er=Object.defineProperty,kr=Object.defineProperties,Ir=Object.getOwnPropertyDescriptors,Rr=Object.getOwnPropertySymbols,Ur=Object.prototype.hasOwnProperty,Lr=Object.prototype.propertyIsEnumerable,Ar=function(t,e,i){return e in t?Er(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i},Tr=function(t,e){for(var i in e||(e={}))Ur.call(e,i)&&Ar(t,i,e[i]);if(Rr)for(var o=0,r=Rr(e);o<r.length;o++){i=r[o];Lr.call(e,i)&&Ar(t,i,e[i])}return t},_r=function(t,e){return kr(t,Ir(e))},Wr="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?vr:vr.apply(null,arguments)};var Dr=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 Nr(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,Cr([void 0],t[0].concat(this)))):new(e.bind.apply(e,Cr([void 0],t.concat(this))))},e}(Array),Mr=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 Nr(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,Cr([void 0],t[0].concat(this)))):new(e.bind.apply(e,Cr([void 0],t.concat(this))))},e}(Array);function Fr(t){return ho(t)?ar(t,(function(){})):t}function Pr(){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 Dr;i&&(!function(t){return"boolean"==typeof t}(i)?o.push(Sr.withExtraArgument(i.extraArgument)):o.push(Sr));return o}(t)}}function zr(t){var e,i=Pr(),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=br(n)}var p=s;"function"==typeof p&&(p=p(i));var y=mr.apply(void 0,p),g=vr;c&&(g=Wr(Tr({trace:!1},"object"==typeof c&&c)));var b=new Mr(y),v=b;return Array.isArray(u)?v=Cr([y],u):"function"==typeof u&&(v=u(b)),gr(e,h,g.apply(void 0,v))}function Br(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 Tr(Tr({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 jr(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 Kr(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:Fr(t.initialState),r=t.reducers||{},n=Object.keys(r),a={},s={},l={};function c(){var e="function"==typeof t.extraReducers?jr(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=Tr(Tr({},r),s);return function(t,e,i,o){void 0===i&&(i=[]);var r,n="function"==typeof e?jr(e):[e,i,o],a=n[0],s=n[1],l=n[2];if(function(t){return"function"==typeof t}(t))r=function(){return Fr(t())};else{var c=Fr(t);r=function(){return c}}function f(t,e){void 0===t&&(t=r());var i=Cr([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(fo(t))return void 0===(o=i(t,e))?t:o;if(ho(t))return ar(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?Br(c,o):Br(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 Zr=["name","message","stack","code"],Hr=function(t,e){this.payload=t,this.meta=e},Gr=function(t,e){this.payload=t,this.meta=e},Vr=function(t){if("object"==typeof t&&null!==t){for(var e={},i=0,o=Zr;i<o.length;i++){var r=o[i];"string"==typeof t[r]&&(e[r]=t[r])}return e}return{message:String(t)}};function qr(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=Br(t+"/fulfilled",(function(t,e,i,o){return{payload:t,meta:_r(Tr({},o||{}),{arg:i,requestId:e,requestStatus:"fulfilled"})}})),r=Br(t+"/pending",(function(t,e,i){return{payload:void 0,meta:_r(Tr({},i||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=Br(t+"/rejected",(function(t,e,o,r,n){return{payload:r,error:(i&&i.serializeError||Vr)(t||"Rejected"),meta:_r(Tr({},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 $r(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 Hr(t,e)},fulfillWithValue:function(t,e){return new Gr(t,e)}})).then((function(e){if(e instanceof Hr)throw e;return e instanceof Gr?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 Hr?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(qr)}})}}),{pending:r,rejected:n,fulfilled:o,typePrefix:t})}t.withTypes=function(){return t}}();var Yr="listenerMiddleware";Br(Yr+"/add"),Br(Yr+"/removeAll"),Br(Yr+"/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[Xo];return ir.get(e,t)},set:function(e){var i=this[Xo];ir.set(i,t,e)}},i}function e(t){for(var e=t.length-1;e>=0;e--){var r=t[e][Xo];if(!r.P)switch(r.i){case 5:o(r)&&Mo(r);break;case 4:i(r)&&Mo(r)}}}function i(t){for(var e=t.t,i=t.k,o=Qo(i),r=o.length-1;r>=0;r--){var n=o[r];if(n!==Xo){var a=e[n];if(void 0===a&&!yo(e,n))return!0;var s=i[n],l=s&&s[Xo];if(l?l.t!==a:!bo(s,a))return!0}}var c=!!e[Xo];return o.length!==Qo(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){er[t]||(er[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=tr(i);delete n[Xo];for(var a=Qo(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:Co(),P:!1,I:!1,R:{},l:i,t:e,k:r,o:null,g:!1,C:!1};return Object.defineProperty(r,Xo,{value:n,writable:!0}),r},S:function(t,i,r){r?fo(i)&&i[Xo].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var i=e[Xo];if(i){var r=i.t,n=i.k,a=i.R,s=i.i;if(4===s)uo(n,(function(e){e!==Xo&&(void 0!==r[e]||yo(r,e)?a[e]||t(n[e]):(a[e]=!0,Mo(i)))})),uo(r,(function(t){void 0!==n[t]||yo(n,t)||(a[t]=!1,Mo(i))}));else if(5===s){if(o(i)&&(Mo(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 Xr{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(eo(r))return r;if(null==o)return;const n=Kr({...o,reducers:null!==(e=o.reducers)&&void 0!==e?e:{}}),a=zr({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 Xr(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new to,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 Jr=Symbol("elementInternals");function Qr(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Jr].form}constructor(...t){super(t),this[Jr]=this.attachInternals(),this[Jr].role=e}setFormValue(t){this[Jr].setFormValue(t)}}}var tn,en,on;const rn=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(on=null===(en=null===(tn=window.safari)||void 0===tn?void 0:tn.pushNotification)||void 0===en?void 0:en.toString())&&void 0!==on?on:"");var nn;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(nn||(nn={}));var an=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 sn extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const ln=Symbol("registerInterval");class cn 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[ln]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[ln]):this.dispatchEvent(new sn)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ln,an([R()],i.prototype,"stateManager",void 0),i}(lo)){}const fn=Re.extend("--ft-ripple-color","",We.colorContent),hn={color:fn,backgroundColor:Re.extend("--ft-ripple-background-color","",fn),opacityContentOnSurfacePressed:Re.external(We.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Re.external(We.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Re.external(We.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Re.external(We.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Re.create("--ft-ripple-border-radius","","SIZE","0px")},dn=Re.extend("--ft-ripple-color","",We.colorPrimary),un=dn,pn=Re.extend("--ft-ripple-background-color","",dn),yn=Re.extend("--ft-ripple-color","",We.colorSecondary),gn=yn,bn=Re.extend("--ft-ripple-background-color","",yn),vn=Rt`
133
133
  :host {
134
134
  display: contents;
135
135
  }
@@ -142,7 +142,7 @@ const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShado
142
142
 
143
143
  .ft-ripple:not(.ft-ripple--unbounded) {
144
144
  overflow: hidden;
145
- border-radius: ${fn.borderRadius};
145
+ border-radius: ${hn.borderRadius};
146
146
  }
147
147
 
148
148
  .ft-ripple .ft-ripple--background,
@@ -176,27 +176,27 @@ const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShado
176
176
  }
177
177
 
178
178
  .ft-ripple .ft-ripple--background {
179
- background-color: ${fn.backgroundColor};
179
+ background-color: ${hn.backgroundColor};
180
180
  }
181
181
 
182
182
  .ft-ripple .ft-ripple--effect {
183
- background-color: ${fn.color};
183
+ background-color: ${hn.color};
184
184
  }
185
185
 
186
186
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
187
- background-color: ${gn};
187
+ background-color: ${bn};
188
188
  }
189
189
 
190
190
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
191
- background-color: ${yn};
191
+ background-color: ${gn};
192
192
  }
193
193
 
194
194
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
195
- background-color: ${un};
195
+ background-color: ${pn};
196
196
  }
197
197
 
198
198
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
199
- background-color: ${dn};
199
+ background-color: ${un};
200
200
  }
201
201
 
202
202
  .ft-ripple .ft-ripple--background {
@@ -226,32 +226,23 @@ const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShado
226
226
  }
227
227
 
228
228
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
229
- opacity: ${fn.opacityContentOnSurfaceHover};
229
+ opacity: ${hn.opacityContentOnSurfaceHover};
230
230
  }
231
231
 
232
232
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
233
- opacity: ${fn.opacityContentOnSurfaceSelected};
233
+ opacity: ${hn.opacityContentOnSurfaceSelected};
234
234
  }
235
235
 
236
236
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
237
- opacity: ${fn.opacityContentOnSurfaceFocused};
237
+ opacity: ${hn.opacityContentOnSurfaceFocused};
238
238
  }
239
239
 
240
240
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
241
- opacity: ${fn.opacityContentOnSurfacePressed};
241
+ opacity: ${hn.opacityContentOnSurfacePressed};
242
242
  transform: translate(-50%, -50%) scale(1);
243
243
  }
244
- `;const vn=Re.extend("--ft-typography-font-family","",We.titleFont),mn=Re.extend("--ft-typography-font-family","",We.contentFont),xn={fontFamily:mn,fontSize:Re.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Re.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Re.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Re.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Re.create("--ft-typography-text-transform","","UNKNOWN","inherit")},wn={fontFamily:Re.extend("--ft-typography-title-font-family","",vn),fontSize:Re.extend("--ft-typography-title-font-size","",xn.fontSize,"20px"),fontWeight:Re.extend("--ft-typography-title-font-weight","",xn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-title-letter-spacing","",xn.letterSpacing,"0.15px"),lineHeight:Re.extend("--ft-typography-title-line-height","",xn.lineHeight,"1.2"),textTransform:Re.extend("--ft-typography-title-text-transform","",xn.textTransform,"inherit")},On={fontFamily:Re.extend("--ft-typography-title-dense-font-family","",vn),fontSize:Re.extend("--ft-typography-title-dense-font-size","",xn.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-title-dense-font-weight","",xn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-title-dense-letter-spacing","",xn.letterSpacing,"0.105px"),lineHeight:Re.extend("--ft-typography-title-dense-line-height","",xn.lineHeight,"1.7"),textTransform:Re.extend("--ft-typography-title-dense-text-transform","",xn.textTransform,"inherit")},Sn=Re.extend("--ft-typography-subtitle1-font-family","",mn),Nn=Re.extend("--ft-typography-subtitle1-font-size","",xn.fontSize,"16px"),$n=Re.extend("--ft-typography-subtitle1-font-weight","",xn.fontWeight,"600"),Cn=Re.extend("--ft-typography-subtitle1-letter-spacing","",xn.letterSpacing,"0.144px"),En=Re.extend("--ft-typography-subtitle1-line-height","",xn.lineHeight,"1.5"),kn=Re.extend("--ft-typography-subtitle1-text-transform","",xn.textTransform,"inherit"),In=Re.extend("--ft-typography-subtitle2-font-family","",mn),Rn=Re.extend("--ft-typography-subtitle2-font-size","",xn.fontSize,"14px"),Un=Re.extend("--ft-typography-subtitle2-font-weight","",xn.fontWeight,"normal"),Ln=Re.extend("--ft-typography-subtitle2-letter-spacing","",xn.letterSpacing,"0.098px"),An=Re.extend("--ft-typography-subtitle2-line-height","",xn.lineHeight,"1.7"),Tn=Re.extend("--ft-typography-subtitle2-text-transform","",xn.textTransform,"inherit"),_n={fontFamily:Re.extend("--ft-typography-body1-font-family","",mn),fontSize:Re.extend("--ft-typography-body1-font-size","",xn.fontSize,"16px"),fontWeight:Re.extend("--ft-typography-body1-font-weight","",xn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-body1-letter-spacing","",xn.letterSpacing,"0.496px"),lineHeight:Re.extend("--ft-typography-body1-line-height","",xn.lineHeight,"1.5"),textTransform:Re.extend("--ft-typography-body1-text-transform","",xn.textTransform,"inherit")},Wn=Re.extend("--ft-typography-body2-font-family","",mn),Dn=Re.extend("--ft-typography-body2-font-size","",xn.fontSize,"14px"),Fn=Re.extend("--ft-typography-body2-font-weight","",xn.fontWeight,"normal"),Mn=Re.extend("--ft-typography-body2-letter-spacing","",xn.letterSpacing,"0.252px"),Pn=Re.extend("--ft-typography-body2-line-height","",xn.lineHeight,"1.4"),zn=Re.extend("--ft-typography-body2-text-transform","",xn.textTransform,"inherit"),jn={fontFamily:Re.extend("--ft-typography-caption-font-family","",mn),fontSize:Re.extend("--ft-typography-caption-font-size","",xn.fontSize,"12px"),fontWeight:Re.extend("--ft-typography-caption-font-weight","",xn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-caption-letter-spacing","",xn.letterSpacing,"0.396px"),lineHeight:Re.extend("--ft-typography-caption-line-height","",xn.lineHeight,"1.33"),textTransform:Re.extend("--ft-typography-caption-text-transform","",xn.textTransform,"inherit")},Bn=Re.extend("--ft-typography-breadcrumb-font-family","",mn),Kn=Re.extend("--ft-typography-breadcrumb-font-size","",xn.fontSize,"10px"),Zn=Re.extend("--ft-typography-breadcrumb-font-weight","",xn.fontWeight,"normal"),Hn=Re.extend("--ft-typography-breadcrumb-letter-spacing","",xn.letterSpacing,"0.33px"),Gn=Re.extend("--ft-typography-breadcrumb-line-height","",xn.lineHeight,"1.6"),Vn=Re.extend("--ft-typography-breadcrumb-text-transform","",xn.textTransform,"inherit"),qn=Re.extend("--ft-typography-overline-font-family","",mn),Yn=Re.extend("--ft-typography-overline-font-size","",xn.fontSize,"10px"),Xn=Re.extend("--ft-typography-overline-font-weight","",xn.fontWeight,"normal"),Jn=Re.extend("--ft-typography-overline-letter-spacing","",xn.letterSpacing,"1.5px"),Qn=Re.extend("--ft-typography-overline-line-height","",xn.lineHeight,"1.6"),ta=Re.extend("--ft-typography-overline-text-transform","",xn.textTransform,"uppercase"),ea={fontFamily:Re.extend("--ft-typography-button-font-family","",mn),fontSize:Re.extend("--ft-typography-button-font-size","",xn.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-button-font-weight","",xn.fontWeight,"600"),letterSpacing:Re.extend("--ft-typography-button-letter-spacing","",xn.letterSpacing,"1.246px"),lineHeight:Re.extend("--ft-typography-button-line-height","",xn.lineHeight,"1.15"),textTransform:Re.extend("--ft-typography-button-text-transform","",xn.textTransform,"uppercase")},ia=Rt`
244
+ `;const mn=Re.extend("--ft-typography-font-family","",We.titleFont),xn=Re.extend("--ft-typography-font-family","",We.contentFont),wn={fontFamily:xn,fontSize:Re.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Re.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Re.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Re.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Re.create("--ft-typography-text-transform","","UNKNOWN","inherit")},On={fontFamily:Re.extend("--ft-typography-title-font-family","",mn),fontSize:Re.extend("--ft-typography-title-font-size","",wn.fontSize,"20px"),fontWeight:Re.extend("--ft-typography-title-font-weight","",wn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-title-letter-spacing","",wn.letterSpacing,"0.15px"),lineHeight:Re.extend("--ft-typography-title-line-height","",wn.lineHeight,"1.2"),textTransform:Re.extend("--ft-typography-title-text-transform","",wn.textTransform,"inherit")},Sn={fontFamily:Re.extend("--ft-typography-title-dense-font-family","",mn),fontSize:Re.extend("--ft-typography-title-dense-font-size","",wn.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-title-dense-font-weight","",wn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-title-dense-letter-spacing","",wn.letterSpacing,"0.105px"),lineHeight:Re.extend("--ft-typography-title-dense-line-height","",wn.lineHeight,"1.7"),textTransform:Re.extend("--ft-typography-title-dense-text-transform","",wn.textTransform,"inherit")},Nn=Re.extend("--ft-typography-subtitle1-font-family","",xn),$n=Re.extend("--ft-typography-subtitle1-font-size","",wn.fontSize,"16px"),Cn=Re.extend("--ft-typography-subtitle1-font-weight","",wn.fontWeight,"600"),En=Re.extend("--ft-typography-subtitle1-letter-spacing","",wn.letterSpacing,"0.144px"),kn=Re.extend("--ft-typography-subtitle1-line-height","",wn.lineHeight,"1.5"),In=Re.extend("--ft-typography-subtitle1-text-transform","",wn.textTransform,"inherit"),Rn=Re.extend("--ft-typography-subtitle2-font-family","",xn),Un=Re.extend("--ft-typography-subtitle2-font-size","",wn.fontSize,"14px"),Ln=Re.extend("--ft-typography-subtitle2-font-weight","",wn.fontWeight,"normal"),An=Re.extend("--ft-typography-subtitle2-letter-spacing","",wn.letterSpacing,"0.098px"),Tn=Re.extend("--ft-typography-subtitle2-line-height","",wn.lineHeight,"1.7"),_n=Re.extend("--ft-typography-subtitle2-text-transform","",wn.textTransform,"inherit"),Wn={fontFamily:Re.extend("--ft-typography-body1-font-family","",xn),fontSize:Re.extend("--ft-typography-body1-font-size","",wn.fontSize,"16px"),fontWeight:Re.extend("--ft-typography-body1-font-weight","",wn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-body1-letter-spacing","",wn.letterSpacing,"0.496px"),lineHeight:Re.extend("--ft-typography-body1-line-height","",wn.lineHeight,"1.5"),textTransform:Re.extend("--ft-typography-body1-text-transform","",wn.textTransform,"inherit")},Dn=Re.extend("--ft-typography-body2-font-family","",xn),Mn=Re.extend("--ft-typography-body2-font-size","",wn.fontSize,"14px"),Fn=Re.extend("--ft-typography-body2-font-weight","",wn.fontWeight,"normal"),Pn=Re.extend("--ft-typography-body2-letter-spacing","",wn.letterSpacing,"0.252px"),zn=Re.extend("--ft-typography-body2-line-height","",wn.lineHeight,"1.4"),Bn=Re.extend("--ft-typography-body2-text-transform","",wn.textTransform,"inherit"),jn={fontFamily:Re.extend("--ft-typography-caption-font-family","",xn),fontSize:Re.extend("--ft-typography-caption-font-size","",wn.fontSize,"12px"),fontWeight:Re.extend("--ft-typography-caption-font-weight","",wn.fontWeight,"normal"),letterSpacing:Re.extend("--ft-typography-caption-letter-spacing","",wn.letterSpacing,"0.396px"),lineHeight:Re.extend("--ft-typography-caption-line-height","",wn.lineHeight,"1.33"),textTransform:Re.extend("--ft-typography-caption-text-transform","",wn.textTransform,"inherit")},Kn=Re.extend("--ft-typography-breadcrumb-font-family","",xn),Zn=Re.extend("--ft-typography-breadcrumb-font-size","",wn.fontSize,"10px"),Hn=Re.extend("--ft-typography-breadcrumb-font-weight","",wn.fontWeight,"normal"),Gn=Re.extend("--ft-typography-breadcrumb-letter-spacing","",wn.letterSpacing,"0.33px"),Vn=Re.extend("--ft-typography-breadcrumb-line-height","",wn.lineHeight,"1.6"),qn=Re.extend("--ft-typography-breadcrumb-text-transform","",wn.textTransform,"inherit"),Yn=Re.extend("--ft-typography-overline-font-family","",xn),Xn=Re.extend("--ft-typography-overline-font-size","",wn.fontSize,"10px"),Jn=Re.extend("--ft-typography-overline-font-weight","",wn.fontWeight,"normal"),Qn=Re.extend("--ft-typography-overline-letter-spacing","",wn.letterSpacing,"1.5px"),ta=Re.extend("--ft-typography-overline-line-height","",wn.lineHeight,"1.6"),ea=Re.extend("--ft-typography-overline-text-transform","",wn.textTransform,"uppercase"),ia={fontFamily:Re.extend("--ft-typography-button-font-family","",xn),fontSize:Re.extend("--ft-typography-button-font-size","",wn.fontSize,"14px"),fontWeight:Re.extend("--ft-typography-button-font-weight","",wn.fontWeight,"600"),letterSpacing:Re.extend("--ft-typography-button-letter-spacing","",wn.letterSpacing,"1.246px"),lineHeight:Re.extend("--ft-typography-button-line-height","",wn.lineHeight,"1.15"),textTransform:Re.extend("--ft-typography-button-text-transform","",wn.textTransform,"uppercase")},oa=Rt`
245
245
  .ft-typography--title {
246
- font-family: ${wn.fontFamily};
247
- font-size: ${wn.fontSize};
248
- font-weight: ${wn.fontWeight};
249
- letter-spacing: ${wn.letterSpacing};
250
- line-height: ${wn.lineHeight};
251
- text-transform: ${wn.textTransform};
252
- }
253
- `,oa=Rt`
254
- .ft-typography--title-dense {
255
246
  font-family: ${On.fontFamily};
256
247
  font-size: ${On.fontSize};
257
248
  font-weight: ${On.fontWeight};
@@ -260,43 +251,52 @@ const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShado
260
251
  text-transform: ${On.textTransform};
261
252
  }
262
253
  `,ra=Rt`
263
- .ft-typography--subtitle1 {
264
- font-family: ${Sn};
265
- font-size: ${Nn};
266
- font-weight: ${$n};
267
- letter-spacing: ${Cn};
268
- line-height: ${En};
269
- text-transform: ${kn};
254
+ .ft-typography--title-dense {
255
+ font-family: ${Sn.fontFamily};
256
+ font-size: ${Sn.fontSize};
257
+ font-weight: ${Sn.fontWeight};
258
+ letter-spacing: ${Sn.letterSpacing};
259
+ line-height: ${Sn.lineHeight};
260
+ text-transform: ${Sn.textTransform};
270
261
  }
271
262
  `,na=Rt`
263
+ .ft-typography--subtitle1 {
264
+ font-family: ${Nn};
265
+ font-size: ${$n};
266
+ font-weight: ${Cn};
267
+ letter-spacing: ${En};
268
+ line-height: ${kn};
269
+ text-transform: ${In};
270
+ }
271
+ `,aa=Rt`
272
272
  .ft-typography--subtitle2 {
273
- font-family: ${In};
274
- font-size: ${Rn};
275
- font-weight: ${Un};
276
- letter-spacing: ${Ln};
277
- line-height: ${An};
278
- text-transform: ${Tn};
273
+ font-family: ${Rn};
274
+ font-size: ${Un};
275
+ font-weight: ${Ln};
276
+ letter-spacing: ${An};
277
+ line-height: ${Tn};
278
+ text-transform: ${_n};
279
279
  }
280
280
 
281
- `,aa=Rt`
281
+ `,sa=Rt`
282
282
  .ft-typography--body1 {
283
- font-family: ${_n.fontFamily};
284
- font-size: ${_n.fontSize};
285
- font-weight: ${_n.fontWeight};
286
- letter-spacing: ${_n.letterSpacing};
287
- line-height: ${_n.lineHeight};
288
- text-transform: ${_n.textTransform};
283
+ font-family: ${Wn.fontFamily};
284
+ font-size: ${Wn.fontSize};
285
+ font-weight: ${Wn.fontWeight};
286
+ letter-spacing: ${Wn.letterSpacing};
287
+ line-height: ${Wn.lineHeight};
288
+ text-transform: ${Wn.textTransform};
289
289
  }
290
- `,sa=Rt`
290
+ `,la=Rt`
291
291
  .ft-typography--body2 {
292
- font-family: ${Wn};
293
- font-size: ${Dn};
292
+ font-family: ${Dn};
293
+ font-size: ${Mn};
294
294
  font-weight: ${Fn};
295
- letter-spacing: ${Mn};
296
- line-height: ${Pn};
297
- text-transform: ${zn};
295
+ letter-spacing: ${Pn};
296
+ line-height: ${zn};
297
+ text-transform: ${Bn};
298
298
  }
299
- `,la=Rt`
299
+ `,ca=Rt`
300
300
  .ft-typography--caption {
301
301
  font-family: ${jn.fontFamily};
302
302
  font-size: ${jn.fontSize};
@@ -305,38 +305,38 @@ const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShado
305
305
  line-height: ${jn.lineHeight};
306
306
  text-transform: ${jn.textTransform};
307
307
  }
308
- `,ca=Rt`
309
- .ft-typography--breadcrumb {
310
- font-family: ${Bn};
311
- font-size: ${Kn};
312
- font-weight: ${Zn};
313
- letter-spacing: ${Hn};
314
- line-height: ${Gn};
315
- text-transform: ${Vn};
316
- }
317
308
  `,fa=Rt`
318
- .ft-typography--overline {
319
- font-family: ${qn};
320
- font-size: ${Yn};
321
- font-weight: ${Xn};
322
- letter-spacing: ${Jn};
323
- line-height: ${Qn};
324
- text-transform: ${ta};
309
+ .ft-typography--breadcrumb {
310
+ font-family: ${Kn};
311
+ font-size: ${Zn};
312
+ font-weight: ${Hn};
313
+ letter-spacing: ${Gn};
314
+ line-height: ${Vn};
315
+ text-transform: ${qn};
325
316
  }
326
317
  `,ha=Rt`
327
- .ft-typography--button {
328
- font-family: ${ea.fontFamily};
329
- font-size: ${ea.fontSize};
330
- font-weight: ${ea.fontWeight};
331
- letter-spacing: ${ea.letterSpacing};
332
- line-height: ${ea.lineHeight};
333
- text-transform: ${ea.textTransform};
318
+ .ft-typography--overline {
319
+ font-family: ${Yn};
320
+ font-size: ${Xn};
321
+ font-weight: ${Jn};
322
+ letter-spacing: ${Qn};
323
+ line-height: ${ta};
324
+ text-transform: ${ea};
334
325
  }
335
326
  `,da=Rt`
327
+ .ft-typography--button {
328
+ font-family: ${ia.fontFamily};
329
+ font-size: ${ia.fontSize};
330
+ font-weight: ${ia.fontWeight};
331
+ letter-spacing: ${ia.letterSpacing};
332
+ line-height: ${ia.lineHeight};
333
+ text-transform: ${ia.textTransform};
334
+ }
335
+ `,ua=Rt`
336
336
  .ft-typography {
337
337
  vertical-align: inherit;
338
338
  }
339
- `,ua=[Object.keys(Ae).map((t=>function(t){const e=Ae[t];return Rt`
339
+ `,pa=[Object.keys(Ae).map((t=>function(t){const e=Ae[t];return Rt`
340
340
  .ft-typography--${It(t)} {
341
341
  font-family: ${e.fontFamily};
342
342
  font-size: ${e.fontSize};
@@ -345,7 +345,7 @@ const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShado
345
345
  line-height: ${e.lineHeight};
346
346
  text-transform: ${e.textCase};
347
347
  }
348
- `}(t)))],pa={color:Re.extend("--ft-loader-color","",We.colorPrimary),size:Re.create("--ft-loader-size","","SIZE","80px")},ya=Rt`
348
+ `}(t)))],ya={color:Re.extend("--ft-loader-color","",We.colorPrimary),size:Re.create("--ft-loader-size","","SIZE","80px")},ga=Rt`
349
349
  :host {
350
350
  line-height: 0;
351
351
  }
@@ -354,8 +354,8 @@ const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShado
354
354
  display: inline-block;
355
355
  position: relative;
356
356
 
357
- width: ${pa.size};
358
- height: ${pa.size};
357
+ width: ${ya.size};
358
+ height: ${ya.size};
359
359
  }
360
360
 
361
361
  .ft-loader div {
@@ -364,7 +364,7 @@ const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShado
364
364
  width: 25%;
365
365
  height: 25%;
366
366
  border-radius: 50%;
367
- background: ${pa.color};
367
+ background: ${ya.color};
368
368
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
369
369
  }
370
370
 
@@ -411,10 +411,10 @@ const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShado
411
411
  transform: translate(0, 0);
412
412
  }
413
413
  100% {
414
- transform: translate(calc(0.35 * ${pa.size}), 0);
414
+ transform: translate(calc(0.35 * ${ya.size}), 0);
415
415
  }
416
416
  }
417
- `,ga={size:Re.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Re.extend("--ft-icon-fluid-topics-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Re.extend("--ft-icon-file-format-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Re.extend("--ft-icon-material-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Re.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ba=Rt`
417
+ `,ba={size:Re.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Re.extend("--ft-icon-fluid-topics-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Re.extend("--ft-icon-file-format-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Re.extend("--ft-icon-material-font-family","",Re.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Re.create("--ft-icon-vertical-align","","UNKNOWN","unset")},va=Rt`
418
418
  :host, i.ft-icon {
419
419
  display: inline-flex;
420
420
  align-items: center;
@@ -423,14 +423,14 @@ const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShado
423
423
  }
424
424
 
425
425
  :host {
426
- width: ${ga.size};
427
- height: ${ga.size};
426
+ width: ${ba.size};
427
+ height: ${ba.size};
428
428
  }
429
429
 
430
430
  i.ft-icon {
431
431
  width: 100%;
432
432
  height: 100%;
433
- font-size: ${ga.size};
433
+ font-size: ${ba.size};
434
434
  line-height: 1;
435
435
  font-weight: normal;
436
436
  text-transform: none;
@@ -441,28 +441,28 @@ const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShado
441
441
  text-rendering: auto;
442
442
  -webkit-font-smoothing: antialiased;
443
443
  -moz-osx-font-smoothing: grayscale;
444
- vertical-align: ${ga.verticalAlign};
444
+ vertical-align: ${ba.verticalAlign};
445
445
  }
446
446
 
447
447
  i.ft-icon.ft-icon--fluid-topics {
448
- font-family: ${ga.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
448
+ font-family: ${ba.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
449
449
 
450
450
  /* Ugly fix because font is broken */
451
- font-size: calc(0.75 * ${ga.size});
452
- line-height: ${ga.size};
451
+ font-size: calc(0.75 * ${ba.size});
452
+ line-height: ${ba.size};
453
453
  position: relative;
454
454
  top: -4%;
455
455
  justify-content: center;
456
456
  }
457
457
 
458
458
  .ft-icon--file-format {
459
- font-family: ${ga.fileFormatFontFamily}, ft-mime, sans-serif;
459
+ font-family: ${ba.fileFormatFontFamily}, ft-mime, sans-serif;
460
460
  }
461
461
 
462
462
  .ft-icon--material {
463
- font-family: ${ga.materialFontFamily}, "Material Icons", sans-serif;
463
+ font-family: ${ba.materialFontFamily}, "Material Icons", sans-serif;
464
464
  }
465
- `,va=Re.extend("--ft-button-color","",We.colorPrimary),ma={backgroundColor:Re.extend("--ft-button-background-color","",We.colorSurface),borderRadius:Re.extend("--ft-button-border-radius","",We.borderRadiusL),color:va,fontSize:Re.extend("--ft-button-font-size","",ea.fontSize),iconSize:Re.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Re.extend("--ft-button-ripple-color","",va),verticalPadding:Re.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Re.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Re.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Re.external(We.colorOpacityDisabled,"Design system")},xa=Re.extend("--ft-button-primary-color","",Re.extend("--ft-button-color","",We.colorOnPrimary)),wa={backgroundColor:Re.extend("--ft-button-primary-background-color","",Re.extend("--ft-button-background-color","",We.colorPrimary)),color:xa,rippleColor:Re.extend("--ft-button-primary-ripple-color","",xa)},Oa=Re.extend("--ft-button-dense-border-radius","",Re.extend("--ft-button-border-radius","",We.borderRadiusM)),Sa=Re.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Na=Re.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),$a=Re.create("--ft-button-dense-icon-padding","","SIZE","4px"),Ca=[Rt`
465
+ `,ma=Re.extend("--ft-button-color","",We.colorPrimary),xa={backgroundColor:Re.extend("--ft-button-background-color","",We.colorSurface),borderRadius:Re.extend("--ft-button-border-radius","",We.borderRadiusL),color:ma,fontSize:Re.extend("--ft-button-font-size","",ia.fontSize),iconSize:Re.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:Re.extend("--ft-button-ripple-color","",ma),verticalPadding:Re.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:Re.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:Re.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:Re.external(We.colorOpacityDisabled,"Design system")},wa=Re.extend("--ft-button-primary-color","",Re.extend("--ft-button-color","",We.colorOnPrimary)),Oa={backgroundColor:Re.extend("--ft-button-primary-background-color","",Re.extend("--ft-button-background-color","",We.colorPrimary)),color:wa,rippleColor:Re.extend("--ft-button-primary-ripple-color","",wa)},Sa=Re.extend("--ft-button-dense-border-radius","",Re.extend("--ft-button-border-radius","",We.borderRadiusM)),Na=Re.create("--ft-button-dense-vertical-padding","","SIZE","2px"),$a=Re.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Ca=Re.create("--ft-button-dense-icon-padding","","SIZE","4px"),Ea=[Rt`
466
466
  :host {
467
467
  display: inline-block;
468
468
  max-width: 100%;
@@ -473,7 +473,7 @@ const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShado
473
473
  box-shadow: 0px 0px 0px transparent;
474
474
  border: 0px solid transparent;
475
475
  text-shadow: 0px 0px 0px transparent;
476
- font-size: ${ma.fontSize};
476
+ font-size: ${xa.fontSize};
477
477
  }
478
478
 
479
479
  button:hover {
@@ -502,31 +502,31 @@ const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShado
502
502
  border: none;
503
503
  pointer-events: auto;
504
504
 
505
- --ft-button-internal-line-height: max(calc(${ma.fontSize} + 2px), ${ma.iconSize});
506
- --ft-button-internal-color: ${ma.color};
507
- ${Ue(ga.size,ma.iconSize)};
508
- ${Ue(fn.color,ma.rippleColor)};
505
+ --ft-button-internal-line-height: max(calc(${xa.fontSize} + 2px), ${xa.iconSize});
506
+ --ft-button-internal-color: ${xa.color};
507
+ ${Ue(ba.size,xa.iconSize)};
508
+ ${Ue(hn.color,xa.rippleColor)};
509
509
 
510
- border-radius: ${ma.borderRadius};
511
- padding: ${ma.verticalPadding} ${ma.horizontalPadding};
512
- background-color: ${ma.backgroundColor};
510
+ border-radius: ${xa.borderRadius};
511
+ padding: ${xa.verticalPadding} ${xa.horizontalPadding};
512
+ background-color: ${xa.backgroundColor};
513
513
  color: var(--ft-button-internal-color);
514
514
  -webkit-mask-image: radial-gradient(white, black);
515
515
  }
516
516
 
517
517
  .ft-button.ft-button--outlined {
518
518
  border: 1px solid var(--ft-button-internal-color);
519
- padding: calc(${ma.verticalPadding} - 1px) calc(${ma.horizontalPadding} - 1px);
519
+ padding: calc(${xa.verticalPadding} - 1px) calc(${xa.horizontalPadding} - 1px);
520
520
  }
521
521
 
522
522
  .ft-button.ft-button--dense {
523
- padding: ${Sa} ${Na};
524
- border-radius: ${Oa};
525
- gap: ${$a};
523
+ padding: ${Na} ${$a};
524
+ border-radius: ${Sa};
525
+ gap: ${Ca};
526
526
  }
527
527
 
528
528
  .ft-button.ft-button--dense.ft-button--outlined {
529
- padding: calc(${Sa} - 1px) calc(${Na} - 1px);
529
+ padding: calc(${Na} - 1px) calc(${$a} - 1px);
530
530
  }
531
531
 
532
532
  .ft-button:not([disabled]):hover {
@@ -534,22 +534,22 @@ const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShado
534
534
  }
535
535
 
536
536
  .ft-button--round {
537
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ma.verticalPadding});
537
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${xa.verticalPadding});
538
538
  }
539
539
 
540
540
  .ft-button--round.ft-button--dense {
541
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Sa});
541
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Na});
542
542
  }
543
543
 
544
544
  .ft-button[disabled] {
545
545
  filter: grayscale(1);
546
- opacity: ${ma.opacityDisabled};
546
+ opacity: ${xa.opacityDisabled};
547
547
  }
548
548
 
549
549
  .ft-button.ft-button--primary {
550
- background-color: ${wa.backgroundColor};
551
- --ft-button-internal-color: ${wa.color};
552
- ${Ue(fn.color,wa.rippleColor)};
550
+ background-color: ${Oa.backgroundColor};
551
+ --ft-button-internal-color: ${Oa.color};
552
+ ${Ue(hn.color,Oa.rippleColor)};
553
553
  }
554
554
 
555
555
  .ft-button:focus {
@@ -562,13 +562,13 @@ const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShado
562
562
  white-space: nowrap;
563
563
  text-overflow: ellipsis;
564
564
  display: block;
565
- margin: 0 ${ma.iconPadding};
566
- ${Ue(ea.fontSize,"1em")};
567
- ${Ue(ea.lineHeight,"var(--ft-button-internal-line-height)")};
565
+ margin: 0 ${xa.iconPadding};
566
+ ${Ue(ia.fontSize,"1em")};
567
+ ${Ue(ia.lineHeight,"var(--ft-button-internal-line-height)")};
568
568
  }
569
569
 
570
570
  .ft-button--dense .ft-button--label {
571
- margin: 0 ${$a};
571
+ margin: 0 ${Ca};
572
572
  }
573
573
 
574
574
  .ft-button--label[hidden] {
@@ -581,13 +581,13 @@ const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShado
581
581
  }
582
582
 
583
583
  .ft-button--label[hidden] + ft-icon {
584
- margin: 0 calc(${ma.horizontalPadding} * -1);
585
- padding: 0 ${ma.verticalPadding};
584
+ margin: 0 calc(${xa.horizontalPadding} * -1);
585
+ padding: 0 ${xa.verticalPadding};
586
586
  }
587
587
 
588
588
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
589
- margin: 0 calc(${Na} * -1);
590
- padding: 0 ${Sa};
589
+ margin: 0 calc(${$a} * -1);
590
+ padding: 0 ${Na};
591
591
  }
592
592
 
593
593
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -596,10 +596,10 @@ const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShado
596
596
  }
597
597
 
598
598
  ft-loader {
599
- ${Ue(pa.size,ma.iconSize)};
600
- ${Ue(pa.color,"var(--ft-button-internal-color)")};
599
+ ${Ue(ya.size,xa.iconSize)};
600
+ ${Ue(ya.color,"var(--ft-button-internal-color)")};
601
601
  }
602
- `,qi],Ea={textColor:Re.extend("--ft-switch-text-color","",We.colorOnSurfaceHigh),backgroundColor:Re.extend("--ft-switch-background-color","",We.colorSurface),selectedTextColor:Re.extend("--ft-switch-selected-text-color","",We.colorPrimary),selectedBackgroundColor:Re.extend("--ft-switch-selected-background-color","",We.colorPrimary),borderColor:Re.extend("--ft-switch-border-color","",We.colorOutline),borderRadius:Re.extend("--ft-switch-border-radius","",We.borderRadiusL),fontSize:Re.extend("--ft-switch-font-size","",ea.fontSize),iconSize:Re.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:Re.extend("--ft-switch-text-color","",We.colorOnSurfaceMedium),rippleColor:Re.extend("--ft-switch-ripple-color","",We.colorPrimary),outlineColor:Re.extend("--ft-switch-outline-color","",We.colorPrimary)},ka={feedbackInputMinWidth:Re.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:Re.external(We.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:Re.extend("--ft-reader-feedback-send-feedback-color","",We.colorOnPrimary),sendFeedbackBackgroundColor:Re.extend("--ft-reader-feedback-send-feedback-background-color","",We.colorPrimary),filledRatingColor:Re.extend("--ft-reader-feedback-filled-rating-color","",We.colorPrimary),emptyRatingColor:Re.extend("--ft-reader-feedback-empty-rating-color","",We.colorOnSurfaceMedium),mainTitleFontSize:Re.external(wn.fontSize,"Typography"),sectionTitleFontSize:Re.external(On.fontSize,"Typography"),starsBackgroundColor:Re.create("--ft-reader-feedback-stars-background-color","","COLOR",We.colorSurface)},Ia=Rt`
602
+ `,qi],ka={textColor:Re.extend("--ft-switch-text-color","",We.colorOnSurfaceHigh),backgroundColor:Re.extend("--ft-switch-background-color","",We.colorSurface),selectedTextColor:Re.extend("--ft-switch-selected-text-color","",We.colorPrimary),selectedBackgroundColor:Re.extend("--ft-switch-selected-background-color","",We.colorPrimary),borderColor:Re.extend("--ft-switch-border-color","",We.colorOutline),borderRadius:Re.extend("--ft-switch-border-radius","",We.borderRadiusL),fontSize:Re.extend("--ft-switch-font-size","",ia.fontSize),iconSize:Re.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:Re.extend("--ft-switch-text-color","",We.colorOnSurfaceMedium),rippleColor:Re.extend("--ft-switch-ripple-color","",We.colorPrimary),outlineColor:Re.extend("--ft-switch-outline-color","",We.colorPrimary)},Ia={feedbackInputMinWidth:Re.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:Re.external(We.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:Re.extend("--ft-reader-feedback-send-feedback-color","",We.colorOnPrimary),sendFeedbackBackgroundColor:Re.extend("--ft-reader-feedback-send-feedback-background-color","",We.colorPrimary),filledRatingColor:Re.extend("--ft-reader-feedback-filled-rating-color","",We.colorPrimary),emptyRatingColor:Re.extend("--ft-reader-feedback-empty-rating-color","",We.colorOnSurfaceMedium),mainTitleFontSize:Re.external(On.fontSize,"Typography"),sectionTitleFontSize:Re.external(Sn.fontSize,"Typography"),starsBackgroundColor:Re.create("--ft-reader-feedback-stars-background-color","","COLOR",We.colorSurface)},Ra=Rt`
603
603
  .ft-reader-feedback {
604
604
  box-sizing: border-box;
605
605
  display: flex;
@@ -612,7 +612,7 @@ const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShado
612
612
  flex-direction: row;
613
613
  align-items: center;
614
614
  margin-left: -6px;
615
- ${Ue(ma.backgroundColor,ka.starsBackgroundColor)}
615
+ ${Ue(xa.backgroundColor,Ia.starsBackgroundColor)}
616
616
  }
617
617
 
618
618
  .ft-reader-feedback--rating, .ft-reader-feedback--feedback {
@@ -625,14 +625,14 @@ const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShado
625
625
  }
626
626
 
627
627
  .ft-reader-feedback--rating {
628
- ${Ue(ma.color,ka.emptyRatingColor)};
629
- ${Ue(ma.rippleColor,ka.filledRatingColor)};
630
- ${Ue(Ea.textColor,ka.emptyRatingColor)};
631
- ${Ue(Ea.selectedTextColor,ka.filledRatingColor)};
628
+ ${Ue(xa.color,Ia.emptyRatingColor)};
629
+ ${Ue(xa.rippleColor,Ia.filledRatingColor)};
630
+ ${Ue(ka.textColor,Ia.emptyRatingColor)};
631
+ ${Ue(ka.selectedTextColor,Ia.filledRatingColor)};
632
632
  }
633
633
 
634
634
  .ft-reader-feedback--rating .ft-reader-feedback--active {
635
- ${Ue(ma.color,ka.filledRatingColor)};
635
+ ${Ue(xa.color,Ia.filledRatingColor)};
636
636
  }
637
637
 
638
638
  .ft-reader-feedback--feedback {
@@ -640,42 +640,45 @@ const Mi=window,Pi=Mi.ShadowRoot&&(void 0===Mi.ShadyCSS||Mi.ShadyCSS.nativeShado
640
640
  }
641
641
 
642
642
  .ft-reader-feedback--rating-date {
643
- color: ${ka.ratedDateColor};
643
+ color: ${Ia.ratedDateColor};
644
644
  }
645
645
 
646
646
  .ft-reader-feedback--feedback ft-text-area {
647
- min-width: ${ka.feedbackInputMinWidth};
647
+ min-width: ${Ia.feedbackInputMinWidth};
648
648
  }
649
649
 
650
650
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
651
+ ${Ue(xa.color,Ia.sendFeedbackColor)};
652
+ ${Ue(xa.backgroundColor,Ia.sendFeedbackBackgroundColor)};
653
+ }
654
+
655
+ [part="buttons-container"] {
651
656
  align-self: flex-end;
652
- ${Ue(ma.color,ka.sendFeedbackColor)};
653
- ${Ue(ma.backgroundColor,ka.sendFeedbackBackgroundColor)};
654
657
  }
655
658
  `
656
659
  /**
657
660
  * @license
658
661
  * Copyright 2020 Google LLC
659
662
  * SPDX-License-Identifier: BSD-3-Clause
660
- */,Ra=Symbol.for(""),Ua=t=>{if(t?.r===Ra)return t?._$litStatic$},La=t=>({_$litStatic$:t,r:Ra}),Aa=new Map,Ta=(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=Ua(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=Aa.get(t))&&(a.raw=a,Aa.set(t,e=a)),i=s}return t(e,...i)})(at);var _a;!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"}(_a||(_a={}));var Wa=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 Da extends Gi{constructor(){super(...arguments),this.variant=_a.body1}render(){return this.element?Ta`
661
- <${La(this.element)}
663
+ */,Ua=Symbol.for(""),La=t=>{if(t?.r===Ua)return t?._$litStatic$},Aa=t=>({_$litStatic$:t,r:Ua}),Ta=new Map,_a=(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=La(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=Ta.get(t))&&(a.raw=a,Ta.set(t,e=a)),i=s}return t(e,...i)})(at);var Wa;!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"}(Wa||(Wa={}));var Da=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ma extends Gi{constructor(){super(...arguments),this.variant=Wa.body1}render(){return this.element?_a`
664
+ <${Aa(this.element)}
662
665
  class="ft-typography ft-typography--${this.variant}">
663
666
  <slot></slot>
664
- </${La(this.element)}>
665
- `:Ta`
667
+ </${Aa(this.element)}>
668
+ `:_a`
666
669
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
667
- `}}Da.styles=[ia,oa,ra,na,aa,sa,la,ca,fa,ha,da,...ua],Wa([I()],Da.prototype,"element",void 0),Wa([I()],Da.prototype,"variant",void 0),F("ft-typography")(Da);
670
+ `}}Ma.styles=[oa,ra,na,aa,sa,la,ca,fa,ha,da,ua,...pa],Da([I()],Ma.prototype,"element",void 0),Da([I()],Ma.prototype,"variant",void 0),M("ft-typography")(Ma);
668
671
  /**
669
672
  * @license
670
673
  * Copyright 2017 Google LLC
671
674
  * SPDX-License-Identifier: BSD-3-Clause
672
675
  */
673
- const Fa=1,Ma=2,Pa=t=>(...e)=>({_$litDirective$:t,values:e});class za{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)}}
676
+ const Fa=1,Pa=2,za=t=>(...e)=>({_$litDirective$:t,values:e});class Ba{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)}}
674
677
  /**
675
678
  * @license
676
679
  * Copyright 2018 Google LLC
677
680
  * SPDX-License-Identifier: BSD-3-Clause
678
- */const ja=Pa(class extends za{constructor(t){if(super(t),t.type!==Fa||"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 st}});var Ba=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Ka extends Gi{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 n(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 n(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 de`
681
+ */const ja=za(class extends Ba{constructor(t){if(super(t),t.type!==Fa||"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 st}});var Ka=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 Za extends Gi{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 n(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 n(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 de`
679
682
  <style>
680
683
  .ft-ripple .ft-ripple--effect {
681
684
  left: ${this.originX}px;
@@ -686,7 +689,7 @@ const Fa=1,Ma=2,Pa=t=>(...e)=>({_$litDirective$:t,values:e});class za{constructo
686
689
  <div class="ft-ripple--background"></div>
687
690
  <div class="ft-ripple--effect"></div>
688
691
  </div>
689
- `}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()}}Ka.elementDefinitions={},Ka.styles=bn,Ba([I({type:Boolean})],Ka.prototype,"primary",void 0),Ba([I({type:Boolean})],Ka.prototype,"secondary",void 0),Ba([I({type:Boolean})],Ka.prototype,"unbounded",void 0),Ba([I({type:Boolean})],Ka.prototype,"activated",void 0),Ba([I({type:Boolean})],Ka.prototype,"selected",void 0),Ba([I({type:Boolean})],Ka.prototype,"disabled",void 0),Ba([R()],Ka.prototype,"hovered",void 0),Ba([R()],Ka.prototype,"focused",void 0),Ba([R()],Ka.prototype,"pressed",void 0),Ba([R()],Ka.prototype,"rippling",void 0),Ba([R()],Ka.prototype,"originX",void 0),Ba([R()],Ka.prototype,"originY",void 0),Ba([A(".ft-ripple")],Ka.prototype,"ripple",void 0),Ba([A(".ft-ripple--effect")],Ka.prototype,"rippleEffect",void 0),F("ft-ripple")(Ka);const Za=Re.create("--ft-tooltip-distance","","SIZE","4px"),Ha=Re.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Ga=Re.create("--ft-tooltip-background-color","","COLOR","#666666"),Va=Re.create("--ft-tooltip-z-index","","NUMBER","100"),qa=Re.external(We.borderRadiusS,"Design system"),Ya=Re.create("--ft-tooltip-max-width","","SIZE","150px"),Xa=Rt`
692
+ `}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()}}Za.elementDefinitions={},Za.styles=vn,Ka([I({type:Boolean})],Za.prototype,"primary",void 0),Ka([I({type:Boolean})],Za.prototype,"secondary",void 0),Ka([I({type:Boolean})],Za.prototype,"unbounded",void 0),Ka([I({type:Boolean})],Za.prototype,"activated",void 0),Ka([I({type:Boolean})],Za.prototype,"selected",void 0),Ka([I({type:Boolean})],Za.prototype,"disabled",void 0),Ka([R()],Za.prototype,"hovered",void 0),Ka([R()],Za.prototype,"focused",void 0),Ka([R()],Za.prototype,"pressed",void 0),Ka([R()],Za.prototype,"rippling",void 0),Ka([R()],Za.prototype,"originX",void 0),Ka([R()],Za.prototype,"originY",void 0),Ka([A(".ft-ripple")],Za.prototype,"ripple",void 0),Ka([A(".ft-ripple--effect")],Za.prototype,"rippleEffect",void 0),M("ft-ripple")(Za);const Ha=Re.create("--ft-tooltip-distance","","SIZE","4px"),Ga=Re.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Va=Re.create("--ft-tooltip-background-color","","COLOR","#666666"),qa=Re.create("--ft-tooltip-z-index","","NUMBER","100"),Ya=Re.external(We.borderRadiusS,"Design system"),Xa=Re.create("--ft-tooltip-max-width","","SIZE","150px"),Ja=Rt`
690
693
  .ft-tooltip--container {
691
694
  display: block;
692
695
  }
@@ -701,21 +704,21 @@ const Fa=1,Ma=2,Pa=t=>(...e)=>({_$litDirective$:t,values:e});class za{constructo
701
704
  box-sizing: border-box;
702
705
  overflow: hidden;
703
706
  width: max-content;
704
- max-width: ${Ya};
707
+ max-width: ${Xa};
705
708
  text-align: center;
706
- padding: ${Za};
707
- z-index: ${Va};
709
+ padding: ${Ha};
710
+ z-index: ${qa};
708
711
  }
709
712
 
710
713
  .ft-tooltip--content {
711
714
  padding: 4px 8px;
712
- border-radius: ${qa};
713
- background-color: ${Ga};
714
- color: ${Ha};
715
+ border-radius: ${Ya};
716
+ background-color: ${Va};
717
+ color: ${Ga};
715
718
  position: relative;
716
719
  word-break: break-word;
717
720
  }
718
- `;var Ja=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Qa extends Gi{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 n,this.revealDebouncer=new n}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return de`
721
+ `;var Qa=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class ts extends Gi{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 n,this.revealDebouncer=new n}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return de`
719
722
  <div part="container"
720
723
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
721
724
  @mouseenter=${this.onHover}
@@ -733,18 +736,18 @@ const Fa=1,Ma=2,Pa=t=>(...e)=>({_$litDirective$:t,values:e});class za{constructo
733
736
  </div>
734
737
  </div>
735
738
  </div>
736
- `}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()}async show(t){this.visible=!0,null!=t&&await this.hideDebounce.run((()=>{this.hide()}),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",async function(t,e,i){return Wi(t,e,{platform:{..._i,getOffsetParent:t=>_i.getOffsetParent(t,Di)},middleware:[(o={crossAxis:!0},void 0===o&&(o={}),{name:"shift",options:o,async fn(t){const{x:e,y:i,placement:r}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:i}=t;return{x:e,y:i}}},...l}=Ge(o,t),c={x:e,y:i},f=await oi(t,l),h=Je(Ve(r)),d=Ye(h);let u=c[d],p=c[h];if(n){const t="y"===d?"bottom":"right";u=He(u+f["y"===d?"top":"left"],u,u-f[t])}if(a){const t="y"===h?"bottom":"right";p=He(p+f["y"===h?"top":"left"],p,p-f[t])}const y=s.fn({...t,[d]:u,[h]:p});return{...y,data:{x:y.x-e,y:y.y-i}}}}),ni({allowedPlacements:[i]})]});var o}(this.slottedElement,this.tooltip,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())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Qa.elementDefinitions={"ft-typography":Da},Qa.styles=Xa,Ja([I()],Qa.prototype,"text",void 0),Ja([I({type:Boolean})],Qa.prototype,"manual",void 0),Ja([I({type:Boolean})],Qa.prototype,"inline",void 0),Ja([I({type:Number})],Qa.prototype,"delay",void 0),Ja([I()],Qa.prototype,"position",void 0),Ja([T()],Qa.prototype,"slotNodes",void 0),Ja([A(".ft-tooltip--container")],Qa.prototype,"container",void 0),Ja([A(".ft-tooltip")],Qa.prototype,"tooltip",void 0),Ja([A(".ft-tooltip--content")],Qa.prototype,"tooltipContent",void 0),Ja([R()],Qa.prototype,"visible",void 0),Ja([U({passive:!0})],Qa.prototype,"onTouch",null),Ja([U({passive:!0})],Qa.prototype,"onHover",null),Ja([U({passive:!0})],Qa.prototype,"onOut",null),Ja([U({passive:!0})],Qa.prototype,"onClick",null),F("ft-tooltip")(Qa);
739
+ `}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()}async show(t){this.visible=!0,null!=t&&await this.hideDebounce.run((()=>{this.hide()}),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",async function(t,e,i){return Wi(t,e,{platform:{..._i,getOffsetParent:t=>_i.getOffsetParent(t,Di)},middleware:[(o={crossAxis:!0},void 0===o&&(o={}),{name:"shift",options:o,async fn(t){const{x:e,y:i,placement:r}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:i}=t;return{x:e,y:i}}},...l}=Ge(o,t),c={x:e,y:i},f=await oi(t,l),h=Je(Ve(r)),d=Ye(h);let u=c[d],p=c[h];if(n){const t="y"===d?"bottom":"right";u=He(u+f["y"===d?"top":"left"],u,u-f[t])}if(a){const t="y"===h?"bottom":"right";p=He(p+f["y"===h?"top":"left"],p,p-f[t])}const y=s.fn({...t,[d]:u,[h]:p});return{...y,data:{x:y.x-e,y:y.y-i}}}}),ni({allowedPlacements:[i]})]});var o}(this.slottedElement,this.tooltip,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())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}ts.elementDefinitions={"ft-typography":Ma},ts.styles=Ja,Qa([I()],ts.prototype,"text",void 0),Qa([I({type:Boolean})],ts.prototype,"manual",void 0),Qa([I({type:Boolean})],ts.prototype,"inline",void 0),Qa([I({type:Number})],ts.prototype,"delay",void 0),Qa([I()],ts.prototype,"position",void 0),Qa([T()],ts.prototype,"slotNodes",void 0),Qa([A(".ft-tooltip--container")],ts.prototype,"container",void 0),Qa([A(".ft-tooltip")],ts.prototype,"tooltip",void 0),Qa([A(".ft-tooltip--content")],ts.prototype,"tooltipContent",void 0),Qa([R()],ts.prototype,"visible",void 0),Qa([U({passive:!0})],ts.prototype,"onTouch",null),Qa([U({passive:!0})],ts.prototype,"onHover",null),Qa([U({passive:!0})],ts.prototype,"onOut",null),Qa([U({passive:!0})],ts.prototype,"onClick",null),M("ft-tooltip")(ts);
737
740
  /**
738
741
  * @license
739
742
  * Copyright 2017 Google LLC
740
743
  * SPDX-License-Identifier: BSD-3-Clause
741
744
  */
742
- class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===lt||null==t)return this.vt=void 0,this.et=t;if(t===st)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:[]}}}ts.directiveName="unsafeHTML",ts.resultType=1;const es=Pa(ts);var is,os,rs;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;"}(is||(is={})),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;"}(os||(os={})),new Map([...["abw"].map((t=>[t,os.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,os.AUDIO])),...["avi"].map((t=>[t,os.AVI])),...["chm","xhs"].map((t=>[t,os.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,os.CODE])),...["csv"].map((t=>[t,os.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,os.DITA])),...["epub"].map((t=>[t,os.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,os.EXCEL])),...["flac"].map((t=>[t,os.FLAC])),...["gif"].map((t=>[t,os.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,os.GZIP])),...["html","htm","xhtml"].map((t=>[t,os.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map((t=>[t,os.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,os.JPEG])),...["json"].map((t=>[t,os.JSON])),...["m4a","m4p"].map((t=>[t,os.M4A])),...["mov","qt"].map((t=>[t,os.MOV])),...["mp3"].map((t=>[t,os.MP3])),...["mp4","m4v"].map((t=>[t,os.MP4])),...["ogg","oga"].map((t=>[t,os.OGG])),...["pdf","ps"].map((t=>[t,os.PDF])),...["png"].map((t=>[t,os.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,os.POWERPOINT])),...["rar"].map((t=>[t,os.RAR])),...["stp"].map((t=>[t,os.STP])),...["txt","rtf","md","mdown"].map((t=>[t,os.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,os.VIDEO])),...["wav"].map((t=>[t,os.WAV])),...["wma"].map((t=>[t,os.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,os.WORD])),...["xml","xsl","rdf"].map((t=>[t,os.XML])),...["yaml","yml","x-yaml"].map((t=>[t,os.YAML])),...["zip"].map((t=>[t,os.ZIP]))]),os.ABW,os.AUDIO,os.AVI,os.CHM,os.CODE,os.CSV,os.DITA,os.EPUB,os.EXCEL,os.FLAC,os.GIF,os.GZIP,os.HTML,os.IMAGE,os.JPEG,os.JSON,os.M4A,os.MOV,os.MP3,os.MP4,os.OGG,os.PDF,os.PNG,os.POWERPOINT,os.RAR,os.STP,os.TEXT,os.UNKNOWN,os.VIDEO,os.WAV,os.WMA,os.WORD,os.XML,os.YAML,os.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(rs||(rs={}));var ns=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class as extends Gi{constructor(){super(...arguments),this.resolvedIcon=pe}render(){const t=this.variant&&Object.values(rs).includes(this.variant)?this.variant:rs.fluid_topics,e=t!==rs.material||!!this.value;return de`
745
+ class es extends Ba{constructor(t){if(super(t),this.et=lt,t.type!==Pa)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===lt||null==t)return this.vt=void 0,this.et=t;if(t===st)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:[]}}}es.directiveName="unsafeHTML",es.resultType=1;const is=za(es);var os,rs,ns;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;"}(os||(os={})),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;"}(rs||(rs={})),new Map([...["abw"].map((t=>[t,rs.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,rs.AUDIO])),...["avi"].map((t=>[t,rs.AVI])),...["chm","xhs"].map((t=>[t,rs.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,rs.CODE])),...["csv"].map((t=>[t,rs.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,rs.DITA])),...["epub"].map((t=>[t,rs.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,rs.EXCEL])),...["flac"].map((t=>[t,rs.FLAC])),...["gif"].map((t=>[t,rs.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,rs.GZIP])),...["html","htm","xhtml"].map((t=>[t,rs.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map((t=>[t,rs.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,rs.JPEG])),...["json"].map((t=>[t,rs.JSON])),...["m4a","m4p"].map((t=>[t,rs.M4A])),...["mov","qt"].map((t=>[t,rs.MOV])),...["mp3"].map((t=>[t,rs.MP3])),...["mp4","m4v"].map((t=>[t,rs.MP4])),...["ogg","oga"].map((t=>[t,rs.OGG])),...["pdf","ps"].map((t=>[t,rs.PDF])),...["png"].map((t=>[t,rs.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,rs.POWERPOINT])),...["rar"].map((t=>[t,rs.RAR])),...["stp"].map((t=>[t,rs.STP])),...["txt","rtf","md","mdown"].map((t=>[t,rs.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,rs.VIDEO])),...["wav"].map((t=>[t,rs.WAV])),...["wma"].map((t=>[t,rs.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,rs.WORD])),...["xml","xsl","rdf"].map((t=>[t,rs.XML])),...["yaml","yml","x-yaml"].map((t=>[t,rs.YAML])),...["zip"].map((t=>[t,rs.ZIP]))]),rs.ABW,rs.AUDIO,rs.AVI,rs.CHM,rs.CODE,rs.CSV,rs.DITA,rs.EPUB,rs.EXCEL,rs.FLAC,rs.GIF,rs.GZIP,rs.HTML,rs.IMAGE,rs.JPEG,rs.JSON,rs.M4A,rs.MOV,rs.MP3,rs.MP4,rs.OGG,rs.PDF,rs.PNG,rs.POWERPOINT,rs.RAR,rs.STP,rs.TEXT,rs.UNKNOWN,rs.VIDEO,rs.WAV,rs.WMA,rs.WORD,rs.XML,rs.YAML,rs.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ns||(ns={}));var as=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 Gi{constructor(){super(...arguments),this.resolvedIcon=pe}render(){const t=this.variant&&Object.values(ns).includes(this.variant)?this.variant:ns.fluid_topics,e=t!==ns.material||!!this.value;return de`
743
746
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
744
- ${es(this.resolvedIcon)}
747
+ ${is(this.resolvedIcon)}
745
748
  <slot ?hidden=${e}></slot>
746
749
  </i>
747
- `}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 rs.file_format:this.resolvedIcon=null!==(t=os[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case rs.material:this.resolvedIcon=this.value||pe;break;default:this.resolvedIcon=null!==(e=is[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}as.elementDefinitions={},as.styles=ba,ns([I()],as.prototype,"variant",void 0),ns([I()],as.prototype,"value",void 0),ns([R()],as.prototype,"resolvedIcon",void 0),ns([A("slot")],as.prototype,"slottedContent",void 0),F("ft-icon")(as);const ss={borderRadiusLeft:Re.extend("--ft-switch-option-border-radius-left","",We.borderRadiusL),borderRadiusRight:Re.extend("--ft-switch-option-border-radius-right","",We.borderRadiusL),borderWidthLeft:Re.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Re.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Re.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},ls=Rt`
750
+ `}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 ns.file_format:this.resolvedIcon=null!==(t=rs[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case ns.material:this.resolvedIcon=this.value||pe;break;default:this.resolvedIcon=null!==(e=os[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ss.elementDefinitions={},ss.styles=va,as([I()],ss.prototype,"variant",void 0),as([I()],ss.prototype,"value",void 0),as([R()],ss.prototype,"resolvedIcon",void 0),as([A("slot")],ss.prototype,"slottedContent",void 0),M("ft-icon")(ss);const ls={borderRadiusLeft:Re.extend("--ft-switch-option-border-radius-left","",We.borderRadiusL),borderRadiusRight:Re.extend("--ft-switch-option-border-radius-right","",We.borderRadiusL),borderWidthLeft:Re.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Re.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Re.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},cs=Rt`
748
751
  .ft-switch-option {
749
752
  position: relative;
750
753
  display: inline-block;
@@ -758,20 +761,20 @@ class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Erro
758
761
  }
759
762
 
760
763
  .ft-switch-option--content {
761
- --ft-switch-option-internal-line-height: calc(${Ea.fontSize} + 2px);
762
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Ea.iconSize});
764
+ --ft-switch-option-internal-line-height: calc(${ka.fontSize} + 2px);
765
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${ka.iconSize});
763
766
 
764
767
  border-style: solid;
765
- border-color: ${Ea.borderColor};
766
- border-width: ${ss.borderWidthVertical} ${ss.borderWidthRight} ${ss.borderWidthVertical} ${ss.borderWidthLeft};
767
- border-radius: ${ss.borderRadiusLeft} ${ss.borderRadiusRight} ${ss.borderRadiusRight} ${ss.borderRadiusLeft};
768
+ border-color: ${ka.borderColor};
769
+ border-width: ${ls.borderWidthVertical} ${ls.borderWidthRight} ${ls.borderWidthVertical} ${ls.borderWidthLeft};
770
+ border-radius: ${ls.borderRadiusLeft} ${ls.borderRadiusRight} ${ls.borderRadiusRight} ${ls.borderRadiusLeft};
768
771
  display: flex;
769
772
  align-items: center;
770
773
  justify-content: center;
771
774
  overflow: hidden;
772
- ${Ue(ga.size,Ea.iconSize)};
775
+ ${Ue(ba.size,ka.iconSize)};
773
776
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
774
- background-color: ${Ea.backgroundColor};
777
+ background-color: ${ka.backgroundColor};
775
778
  -webkit-mask-image: radial-gradient(white, black);
776
779
  }
777
780
 
@@ -780,8 +783,8 @@ class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Erro
780
783
  }
781
784
 
782
785
  .ft-switch-option--selected .ft-switch-option--content:before {
783
- background-color: ${Ea.selectedBackgroundColor};
784
- border-radius: ${ss.borderRadiusLeft} ${ss.borderRadiusRight} ${ss.borderRadiusRight} ${ss.borderRadiusLeft};
786
+ background-color: ${ka.selectedBackgroundColor};
787
+ border-radius: ${ls.borderRadiusLeft} ${ls.borderRadiusRight} ${ls.borderRadiusRight} ${ls.borderRadiusLeft};
785
788
  position: absolute;
786
789
  inset: 0;
787
790
  content: "";
@@ -790,18 +793,18 @@ class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Erro
790
793
  }
791
794
 
792
795
  .ft-switch-option--label {
793
- color: ${Ea.textColor};
796
+ color: ${ka.textColor};
794
797
  overflow: hidden;
795
798
  white-space: nowrap;
796
799
  text-overflow: ellipsis;
797
800
  display: block;
798
801
  margin: 0 8px;
799
- ${Ue(ea.fontSize,Ea.fontSize)};
800
- ${Ue(ea.lineHeight,"var(--ft-switch-option-internal-content-height)")}
802
+ ${Ue(ia.fontSize,ka.fontSize)};
803
+ ${Ue(ia.lineHeight,"var(--ft-switch-option-internal-content-height)")}
801
804
  }
802
805
 
803
806
  .ft-switch-option--selected .ft-switch-option--label {
804
- color: ${Ea.selectedTextColor};
807
+ color: ${ka.selectedTextColor};
805
808
  }
806
809
 
807
810
  .ft-switch-option--label[hidden] {
@@ -809,7 +812,7 @@ class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Erro
809
812
  }
810
813
 
811
814
  .ft-switch-option--ripple {
812
- ${Ue(fn.color,Ea.rippleColor)};
815
+ ${Ue(hn.color,ka.rippleColor)};
813
816
  }
814
817
 
815
818
  ft-icon, ft-ripple, ft-typography {
@@ -822,20 +825,20 @@ class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Erro
822
825
 
823
826
  ft-icon {
824
827
  flex-shrink: 0;
825
- color: ${Ea.iconColor};
828
+ color: ${ka.iconColor};
826
829
  }
827
830
 
828
831
  .ft-switch-option--selected ft-icon {
829
- color: ${Ea.selectedTextColor};
832
+ color: ${ka.selectedTextColor};
830
833
  }
831
- `;var cs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class fs extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class hs extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class ds extends Gi{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 hs(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(de`
834
+ `;var fs=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class hs extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class ds extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class us extends Gi{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 ds(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(de`
832
835
  <label part="label" for="input" class=${ja(t)}
833
836
  @click=${this.onChange}>
834
837
  <div class="ft-switch-option--content">
835
838
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
836
839
  <ft-typography part="text"
837
840
  variant="button"
838
- class="ft-switch-option--label ${on?"ft-safari-ellipsis-fix":""}"
841
+ class="ft-switch-option--label ${rn?"ft-safari-ellipsis-fix":""}"
839
842
  ?hidden=${!this.hasTextContent()}>
840
843
  <slot @slotchange=${this.onSlotchange}></slot>
841
844
  </ft-typography>
@@ -850,23 +853,23 @@ class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Erro
850
853
  position="${this.tooltipPosition}">
851
854
  ${t}
852
855
  </ft-tooltip>
853
- `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new fs(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?de`
856
+ `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new hs(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?de`
854
857
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
855
- `:pe}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()}}ds.elementDefinitions={"ft-ripple":Ka,"ft-typography":Da,"ft-tooltip":Qa,"ft-icon":as},ds.styles=[Yi,ls],cs([I()],ds.prototype,"value",void 0),cs([I()],ds.prototype,"icon",void 0),cs([I()],ds.prototype,"iconVariant",void 0),cs([I()],ds.prototype,"label",void 0),cs([I()],ds.prototype,"tooltipPosition",void 0),cs([I({type:Boolean,reflect:!0})],ds.prototype,"selected",void 0),cs([I({type:Boolean})],ds.prototype,"trailingIcon",void 0),cs([I({type:Boolean})],ds.prototype,"unselectable",void 0),cs([A(".ft-switch-option--content slot")],ds.prototype,"slottedContent",void 0),cs([A(".ft-switch-option--input")],ds.prototype,"input",void 0);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 ps extends CustomEvent{constructor(t){super("change",{detail:t})}}class ys extends Gi{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 de`
858
+ `:pe}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()}}us.elementDefinitions={"ft-ripple":Za,"ft-typography":Ma,"ft-tooltip":ts,"ft-icon":ss},us.styles=[Yi,cs],fs([I()],us.prototype,"value",void 0),fs([I()],us.prototype,"icon",void 0),fs([I()],us.prototype,"iconVariant",void 0),fs([I()],us.prototype,"label",void 0),fs([I()],us.prototype,"tooltipPosition",void 0),fs([I({type:Boolean,reflect:!0})],us.prototype,"selected",void 0),fs([I({type:Boolean})],us.prototype,"trailingIcon",void 0),fs([I({type:Boolean})],us.prototype,"unselectable",void 0),fs([A(".ft-switch-option--content slot")],us.prototype,"slottedContent",void 0),fs([A(".ft-switch-option--input")],us.prototype,"input",void 0);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 CustomEvent{constructor(t){super("change",{detail:t})}}class gs extends Gi{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 de`
856
859
  <div @keydown=${this.onKeyDown} tabindex="0" class="${ja(t)}">
857
860
  <slot @slotchange=${this.onSlotchange}
858
861
  @option-change=${this.onOptionChangeByScript}
859
862
  @option-change-by-user=${this.onOptionChangeByUser}
860
863
  ></slot>
861
864
  </div>
862
- `}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 ds&&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 ps(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}))}}ys.elementDefinitions={},ys.styles=Rt`
865
+ `}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 us&&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 ys(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}))}}gs.elementDefinitions={},gs.styles=Rt`
863
866
  :host {
864
867
  display: inline-block;
865
868
  }
866
869
 
867
870
  .ft-switch {
868
- border-radius: ${Ea.borderRadius};
869
- outline-color: ${Ea.outlineColor};
871
+ border-radius: ${ka.borderRadius};
872
+ outline-color: ${ka.outlineColor};
870
873
  }
871
874
 
872
875
  .ft-switch slot {
@@ -875,25 +878,25 @@ class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Erro
875
878
  }
876
879
 
877
880
  .ft-switch slot::slotted(ft-switch-option) {
878
- ${Ue(ss.borderRadiusLeft,"0")};
879
- ${Ue(ss.borderRadiusRight,"0")};
880
- ${Ue(ss.borderWidthLeft,"0")};
881
+ ${Ue(ls.borderRadiusLeft,"0")};
882
+ ${Ue(ls.borderRadiusRight,"0")};
883
+ ${Ue(ls.borderWidthLeft,"0")};
881
884
  }
882
885
 
883
886
  .ft-switch slot::slotted(ft-switch-option:first-child) {
884
- ${Ue(ss.borderRadiusLeft,Ea.borderRadius)};
885
- ${Ue(ss.borderWidthLeft,"1px")};
887
+ ${Ue(ls.borderRadiusLeft,ka.borderRadius)};
888
+ ${Ue(ls.borderWidthLeft,"1px")};
886
889
  }
887
890
 
888
891
  .ft-switch slot::slotted(ft-switch-option:last-child) {
889
- ${Ue(ss.borderRadiusRight,Ea.borderRadius)};
892
+ ${Ue(ls.borderRadiusRight,ka.borderRadius)};
890
893
  }
891
894
 
892
895
  .ft-switch--dense slot::slotted(ft-switch-option) {
893
896
  --ft-switch-internal-vertical-padding: 2px;
894
897
  --ft-switch-internal-horizontal-padding: 4px;
895
898
  }
896
- `,us([I({type:Boolean})],ys.prototype,"dense",void 0),us([I({type:Boolean})],ys.prototype,"unselectable",void 0),us([A(".ft-switch slot")],ys.prototype,"slottedContent",void 0),us([R()],ys.prototype,"selectedOption",void 0),us([A(".ft-switch")],ys.prototype,"ftSwitchDiv",void 0),F("ft-switch")(ys),F("ft-switch-option")(ds);const gs=Re.external(We.colorOutline,"Design system"),bs=Re.external(We.colorOnSurfaceMedium,"Design system"),vs=Rt`
899
+ `,ps([I({type:Boolean})],gs.prototype,"dense",void 0),ps([I({type:Boolean})],gs.prototype,"unselectable",void 0),ps([A(".ft-switch slot")],gs.prototype,"slottedContent",void 0),ps([R()],gs.prototype,"selectedOption",void 0),ps([A(".ft-switch")],gs.prototype,"ftSwitchDiv",void 0),M("ft-switch")(gs),M("ft-switch-option")(us);const bs=Re.external(We.colorOutline,"Design system"),vs=Re.external(We.colorOnSurfaceMedium,"Design system"),ms=Rt`
897
900
  :host {
898
901
  display: block;
899
902
  }
@@ -904,14 +907,14 @@ class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Erro
904
907
 
905
908
  ft-icon {
906
909
  transform: rotate(-45deg);
907
- color: ${gs};
910
+ color: ${bs};
908
911
  }
909
912
 
910
913
  .ft-resizer--dragging ft-icon,
911
914
  .ft-resizer:hover ft-icon {
912
- color: ${bs};
915
+ color: ${vs};
913
916
  }
914
- `;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 xs extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class ws extends Gi{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=rs.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 de`
917
+ `;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 ws extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class Os extends Gi{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=ns.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 de`
915
918
  <style>
916
919
  .ft-resizer {
917
920
  cursor: ${It(this.cursor)}
@@ -922,25 +925,25 @@ class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Erro
922
925
  @touchstart=${this.initDragFromTouch}>
923
926
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
924
927
  </div>
925
- `}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 xs(i,o))}}ws.elementDefinitions={"ft-icon":as},ws.styles=[qi,vs],ms([I({type:Number})],ws.prototype,"initialWidth",void 0),ms([I({type:Number})],ws.prototype,"initialHeight",void 0),ms([I()],ws.prototype,"icon",void 0),ms([I()],ws.prototype,"iconVariant",void 0),ms([I()],ws.prototype,"cursor",void 0),ms([R()],ws.prototype,"dragging",void 0),ms([U({passive:!0})],ws.prototype,"initDragFromMouse",null),ms([U({passive:!0})],ws.prototype,"initDragFromTouch",null),F("ft-resizer")(ws);const Os={fontSize:Re.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Re.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Re.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Re.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Re.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Re.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Re.extend("--ft-input-label-border-color","",We.colorOutline),textColor:Re.extend("--ft-input-label-text-color","",We.colorOnSurfaceMedium),disabledTextColor:Re.extend("--ft-input-label-disabled-text-color","",We.colorOnSurfaceDisabled),colorSurface:Re.external(We.colorSurface,"Design system"),borderRadiusS:Re.external(We.borderRadiusS,"Design system"),colorError:Re.external(We.colorError,"Design system")},Ss=Rt`
928
+ `}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 ws(i,o))}}Os.elementDefinitions={"ft-icon":ss},Os.styles=[qi,ms],xs([I({type:Number})],Os.prototype,"initialWidth",void 0),xs([I({type:Number})],Os.prototype,"initialHeight",void 0),xs([I()],Os.prototype,"icon",void 0),xs([I()],Os.prototype,"iconVariant",void 0),xs([I()],Os.prototype,"cursor",void 0),xs([R()],Os.prototype,"dragging",void 0),xs([U({passive:!0})],Os.prototype,"initDragFromMouse",null),xs([U({passive:!0})],Os.prototype,"initDragFromTouch",null),M("ft-resizer")(Os);const Ss={fontSize:Re.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Re.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Re.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Re.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Re.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Re.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Re.extend("--ft-input-label-border-color","",We.colorOutline),textColor:Re.extend("--ft-input-label-text-color","",We.colorOnSurfaceMedium),disabledTextColor:Re.extend("--ft-input-label-disabled-text-color","",We.colorOnSurfaceDisabled),colorSurface:Re.external(We.colorSurface,"Design system"),borderRadiusS:Re.external(We.borderRadiusS,"Design system"),colorError:Re.external(We.colorError,"Design system")},Ns=Rt`
926
929
  .ft-input-label {
927
930
  position: absolute;
928
931
  inset: 0;
929
932
  display: flex;
930
- background-color: ${Os.colorSurface};
931
- border-radius: ${Os.borderRadiusS} ${Os.borderRadiusS} 0 0;
933
+ background-color: ${Ss.colorSurface};
934
+ border-radius: ${Ss.borderRadiusS} ${Ss.borderRadiusS} 0 0;
932
935
  }
933
936
 
934
937
  .ft-input-label--outlined {
935
- border-radius: ${Os.borderRadiusS};
938
+ border-radius: ${Ss.borderRadiusS};
936
939
  }
937
940
 
938
941
  .ft-input-label {
939
- border-color: ${Os.borderColor};
942
+ border-color: ${Ss.borderColor};
940
943
  }
941
944
 
942
945
  .ft-input-label.ft-input-label--in-error {
943
- border-color: ${Os.colorError}
946
+ border-color: ${Ss.colorError}
944
947
  }
945
948
 
946
949
  .ft-input-label:before,
@@ -953,7 +956,7 @@ class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Erro
953
956
  }
954
957
 
955
958
  .ft-input-label:before {
956
- width: calc(${Os.horizontalSpacing} - 4px);
959
+ width: calc(${Ss.horizontalSpacing} - 4px);
957
960
  flex-shrink: 0;
958
961
  }
959
962
 
@@ -969,20 +972,20 @@ class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Erro
969
972
  border-bottom-width: 1px;
970
973
  border-bottom-style: solid;
971
974
  border-color: inherit;
972
- color: ${Os.textColor};
975
+ color: ${Ss.textColor};
973
976
  transition: font-size 250ms, line-height 250ms, color 250ms;
974
- max-width: calc(${Os.labelMaxWidth} - 2 * (${Os.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
977
+ max-width: calc(${Ss.labelMaxWidth} - 2 * (${Ss.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
975
978
  text-overflow: ellipsis;
976
- ${Ue(jn.fontSize,Os.fontSize)};
977
- ${Ue(jn.lineHeight,Os.fontSize)};
979
+ ${Ue(jn.fontSize,Ss.fontSize)};
980
+ ${Ue(jn.lineHeight,Ss.fontSize)};
978
981
  }
979
982
 
980
983
  .ft-input-label--in-error .ft-input-label--text {
981
- color: ${Os.colorError}
984
+ color: ${Ss.colorError}
982
985
  }
983
986
 
984
987
  .ft-input-label--disabled .ft-input-label--text {
985
- color: ${Os.disabledTextColor};
988
+ color: ${Ss.disabledTextColor};
986
989
  }
987
990
 
988
991
  .ft-input-label--hidden-text {
@@ -999,19 +1002,19 @@ class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Erro
999
1002
  overflow: hidden;
1000
1003
  white-space: nowrap;
1001
1004
  text-overflow: ellipsis;
1002
- padding: ${Os.verticalSpacing} 4px;
1003
- margin: calc(${Os.verticalSpacing} * -1) 0;
1005
+ padding: ${Ss.verticalSpacing} 4px;
1006
+ margin: calc(${Ss.verticalSpacing} * -1) 0;
1004
1007
  max-width: 100%;
1005
1008
  box-sizing: border-box;
1006
1009
  }
1007
1010
 
1008
1011
  .ft-input-label--raised .ft-input-label--text {
1009
- ${Ue(jn.fontSize,Os.raisedFontSize)};
1010
- ${Ue(jn.lineHeight,Os.raisedFontSize)};
1012
+ ${Ue(jn.fontSize,Ss.raisedFontSize)};
1013
+ ${Ue(jn.lineHeight,Ss.raisedFontSize)};
1011
1014
  }
1012
1015
 
1013
1016
  .ft-input-label--raised .ft-input-label--floating-text {
1014
- top: ${Os.verticalSpacing};
1017
+ top: ${Ss.verticalSpacing};
1015
1018
  }
1016
1019
 
1017
1020
  .ft-input-label--outlined .ft-input-label--text,
@@ -1024,27 +1027,27 @@ class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Erro
1024
1027
  .ft-input-label--outlined:before {
1025
1028
  border-left-width: 1px;
1026
1029
  border-left-style: solid;
1027
- border-radius: ${Os.borderRadiusS} 0 0 ${Os.borderRadiusS};
1030
+ border-radius: ${Ss.borderRadiusS} 0 0 ${Ss.borderRadiusS};
1028
1031
  }
1029
1032
 
1030
1033
  .ft-input-label--outlined:after {
1031
1034
  border-right-width: 1px;
1032
1035
  border-right-style: solid;
1033
- border-radius: 0 ${Os.borderRadiusS} ${Os.borderRadiusS} 0;
1036
+ border-radius: 0 ${Ss.borderRadiusS} ${Ss.borderRadiusS} 0;
1034
1037
  }
1035
1038
 
1036
1039
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1037
1040
  padding: 2px 4px;
1038
- z-index: ${Os.raisedZIndex};
1039
- background-color: ${Os.colorSurface};
1040
- border-radius: ${Os.borderRadiusS};
1041
+ z-index: ${Ss.raisedZIndex};
1042
+ background-color: ${Ss.colorSurface};
1043
+ border-radius: ${Ss.borderRadiusS};
1041
1044
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
1042
1045
  }
1043
1046
 
1044
1047
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1045
1048
  border-top: none;
1046
1049
  }
1047
- `;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 $s extends Gi{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 de`
1050
+ `;var $s=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 Gi{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 de`
1048
1051
  <div class="${ja(t)}">
1049
1052
  ${this.text?de`
1050
1053
  <div class="ft-input-label--text ft-typography--caption">
@@ -1053,7 +1056,7 @@ class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Erro
1053
1056
  </div>
1054
1057
  `:null}
1055
1058
  </div>
1056
- `}}$s.elementDefinitions={},$s.styles=[la,Ss],Ns([I({type:String})],$s.prototype,"text",void 0),Ns([I({type:Boolean})],$s.prototype,"raised",void 0),Ns([I({type:Boolean})],$s.prototype,"outlined",void 0),Ns([I({type:Boolean})],$s.prototype,"disabled",void 0),Ns([I({type:Boolean})],$s.prototype,"error",void 0),F("ft-input-label")($s);const Cs={fontSize:Re.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:Re.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:Re.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:Re.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:Re.extend("--ft-text-area-helper-color","",We.colorOnSurfaceMedium),colorPrimary:Re.external(We.colorPrimary,"Design system"),colorOnSurface:Re.external(We.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Re.external(We.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Re.external(We.borderRadiusS,"Design system"),colorError:Re.external(We.colorError,"Design system")},Es=Rt`
1059
+ `}}Cs.elementDefinitions={},Cs.styles=[ca,Ns],$s([I({type:String})],Cs.prototype,"text",void 0),$s([I({type:Boolean})],Cs.prototype,"raised",void 0),$s([I({type:Boolean})],Cs.prototype,"outlined",void 0),$s([I({type:Boolean})],Cs.prototype,"disabled",void 0),$s([I({type:Boolean})],Cs.prototype,"error",void 0),M("ft-input-label")(Cs);const Es={fontSize:Re.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:Re.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:Re.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:Re.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:Re.extend("--ft-text-area-helper-color","",We.colorOnSurfaceMedium),colorPrimary:Re.external(We.colorPrimary,"Design system"),colorOnSurface:Re.external(We.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Re.external(We.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Re.external(We.borderRadiusS,"Design system"),colorError:Re.external(We.colorError,"Design system")},ks=Rt`
1057
1060
  *:focus {
1058
1061
  outline: none;
1059
1062
  }
@@ -1065,10 +1068,10 @@ class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Erro
1065
1068
  }
1066
1069
 
1067
1070
  ft-input-label {
1068
- ${Ue(Os.fontSize,Cs.fontSize)};
1069
- ${Ue(Os.raisedFontSize,Cs.labelSize)};
1070
- ${Ue(Os.verticalSpacing,Cs.verticalSpacing)};
1071
- ${Ue(Os.horizontalSpacing,Cs.horizontalSpacing)};
1071
+ ${Ue(Ss.fontSize,Es.fontSize)};
1072
+ ${Ue(Ss.raisedFontSize,Es.labelSize)};
1073
+ ${Ue(Ss.verticalSpacing,Es.verticalSpacing)};
1074
+ ${Ue(Ss.horizontalSpacing,Es.horizontalSpacing)};
1072
1075
  }
1073
1076
 
1074
1077
  .ft-text-area--main-panel {
@@ -1086,8 +1089,8 @@ class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Erro
1086
1089
  }
1087
1090
 
1088
1091
  .ft-text-area--input-panel ft-ripple {
1089
- ${Ue(fn.opacityContentOnSurfaceHover,"0.08")};
1090
- ${Ue(fn.opacityContentOnSurfacePressed,"0.04")};
1092
+ ${Ue(hn.opacityContentOnSurfaceHover,"0.08")};
1093
+ ${Ue(hn.opacityContentOnSurfacePressed,"0.04")};
1091
1094
  }
1092
1095
 
1093
1096
  .ft-text-area--input {
@@ -1099,12 +1102,12 @@ class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Erro
1099
1102
  align-self: stretch;
1100
1103
  resize: none;
1101
1104
 
1102
- ${Ue(_n.fontSize,Cs.fontSize)};
1103
- ${Ue(_n.lineHeight,Cs.fontSize)};
1104
- color: ${Cs.colorOnSurface};
1105
+ ${Ue(Wn.fontSize,Es.fontSize)};
1106
+ ${Ue(Wn.lineHeight,Es.fontSize)};
1107
+ color: ${Es.colorOnSurface};
1105
1108
 
1106
- padding: 0 ${Cs.horizontalSpacing};
1107
- margin: calc(${Cs.verticalSpacing} + ${Cs.labelSize} / 2) 0 ${Cs.verticalSpacing} 0;
1109
+ padding: 0 ${Es.horizontalSpacing};
1110
+ margin: calc(${Es.verticalSpacing} + ${Es.labelSize} / 2) 0 ${Es.verticalSpacing} 0;
1108
1111
 
1109
1112
  border: none;
1110
1113
  background: none;
@@ -1113,7 +1116,7 @@ class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Erro
1113
1116
  }
1114
1117
 
1115
1118
  .ft-text-area--disabled .ft-text-area--input {
1116
- color: ${Cs.colorOnSurfaceDisabled};
1119
+ color: ${Es.colorOnSurfaceDisabled};
1117
1120
  }
1118
1121
 
1119
1122
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -1121,42 +1124,42 @@ class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Erro
1121
1124
  }
1122
1125
 
1123
1126
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
1124
- ${Ue(Os.borderColor,Cs.colorPrimary)};
1125
- ${Ue(Os.textColor,Cs.colorPrimary)};
1127
+ ${Ue(Ss.borderColor,Es.colorPrimary)};
1128
+ ${Ue(Ss.textColor,Es.colorPrimary)};
1126
1129
  }
1127
1130
 
1128
1131
  .ft-text-area--filled .ft-text-area--input-panel {
1129
- border-radius: ${Cs.borderRadiusS} ${Cs.borderRadiusS} 0 0;
1132
+ border-radius: ${Es.borderRadiusS} ${Es.borderRadiusS} 0 0;
1130
1133
  }
1131
1134
 
1132
1135
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
1133
1136
  align-self: stretch;
1134
- margin-bottom: ${Cs.verticalSpacing};
1135
- margin-top: calc(${Cs.labelSize} + 2 * ${Cs.verticalSpacing});
1137
+ margin-bottom: ${Es.verticalSpacing};
1138
+ margin-top: calc(${Es.labelSize} + 2 * ${Es.verticalSpacing});
1136
1139
  }
1137
1140
 
1138
1141
  .ft-text-area--outlined .ft-text-area--input-panel {
1139
- border-radius: ${Cs.borderRadiusS};
1142
+ border-radius: ${Es.borderRadiusS};
1140
1143
  }
1141
1144
 
1142
1145
  .ft-text-area--helper-text {
1143
- padding: 0 12px 0 ${Cs.horizontalSpacing};
1144
- color: ${Cs.helperColor};
1146
+ padding: 0 12px 0 ${Es.horizontalSpacing};
1147
+ color: ${Es.helperColor};
1145
1148
  }
1146
1149
 
1147
1150
  .ft-text-area--in-error .ft-text-area--input,
1148
1151
  .ft-text-area--in-error .ft-text-area--helper-text {
1149
- color: ${Cs.colorError};
1152
+ color: ${Es.colorError};
1150
1153
  }
1151
1154
 
1152
1155
  ft-resizer {
1153
1156
  position: absolute;
1154
1157
  bottom: 0;
1155
1158
  }
1156
- `;var ks=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Is extends(Jr(Gi,"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 de`
1159
+ `;var Is=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Rs extends(Qr(Gi,"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 de`
1157
1160
  <style>
1158
1161
  .ft-text-area--main-panel {
1159
- height: calc(4 * ${Cs.verticalSpacing} + ${Cs.labelSize} + ${Cs.fontSize} + ${this.height}px);
1162
+ height: calc(4 * ${Es.verticalSpacing} + ${Es.labelSize} + ${Es.fontSize} + ${this.height}px);
1160
1163
  }
1161
1164
 
1162
1165
  ft-resizer {
@@ -1195,13 +1198,13 @@ class ts extends za{constructor(t){if(super(t),this.et=lt,t.type!==Ma)throw Erro
1195
1198
  ${this.helper}
1196
1199
  </ft-typography>`:void 0}
1197
1200
  </div>
1198
- `}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})))}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)}}Is.elementDefinitions={"ft-input-label":$s,"ft-resizer":ws,"ft-ripple":Ka,"ft-typography":Da},Is.styles=[aa,Es],ks([I({type:String})],Is.prototype,"label",void 0),ks([I({reflect:!0})],Is.prototype,"value",void 0),ks([I({type:String})],Is.prototype,"helper",void 0),ks([I({type:Boolean})],Is.prototype,"outlined",void 0),ks([I({type:Boolean})],Is.prototype,"disabled",void 0),ks([I({type:Boolean})],Is.prototype,"error",void 0),ks([I({type:Number,reflect:!0})],Is.prototype,"height",void 0),ks([A("textarea")],Is.prototype,"textarea",void 0),ks([R()],Is.prototype,"focused",void 0),F("ft-text-area")(Is);
1201
+ `}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})))}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)}}Rs.elementDefinitions={"ft-input-label":Cs,"ft-resizer":Os,"ft-ripple":Za,"ft-typography":Ma},Rs.styles=[sa,ks],Is([I({type:String})],Rs.prototype,"label",void 0),Is([I({reflect:!0})],Rs.prototype,"value",void 0),Is([I({type:String})],Rs.prototype,"helper",void 0),Is([I({type:Boolean})],Rs.prototype,"outlined",void 0),Is([I({type:Boolean})],Rs.prototype,"disabled",void 0),Is([I({type:Boolean})],Rs.prototype,"error",void 0),Is([I({type:Number,reflect:!0})],Rs.prototype,"height",void 0),Is([A("textarea")],Rs.prototype,"textarea",void 0),Is([R()],Rs.prototype,"focused",void 0),M("ft-text-area")(Rs);
1199
1202
  /**
1200
1203
  * @license
1201
1204
  * Copyright 2020 Google LLC
1202
1205
  * SPDX-License-Identifier: BSD-3-Clause
1203
1206
  */
1204
- const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Us(),r),n=o.insertBefore(Us(),r);i=new Rs(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},As=(t,e,i=t)=>(t._$AI(e,i),t),Ts={},_s=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}},Ws=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},Ds=Pa(class extends za{constructor(t){if(super(t),t.type!==Ma)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]=As(r[h],n[u]),h++,u++;else if(s[d]===a[p])l[p]=As(r[d],n[p]),d--,p--;else if(s[h]===a[p])l[p]=As(r[h],n[p]),Ls(t,l[p+1],r[h]),h++,p--;else if(s[d]===a[u])l[u]=As(r[d],n[u]),Ls(t,r[h],r[d]),d--,u++;else if(void 0===c&&(c=Ws(a,u,p),f=Ws(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=Ls(t,r[h]);As(e,n[u]),l[u]=e}else l[u]=As(i,n[u]),Ls(t,r[h],i),r[e]=null;u++}else _s(r[d]),d--;else _s(r[h]),h++;for(;u<=p;){const e=Ls(t,l[p+1]);As(e,n[u]),l[u++]=e}for(;h<=d;){const t=r[h++];null!==t&&_s(t)}return this.dt=a,((t,e=Ts)=>{t._$AH=e})(t,l),st}});
1207
+ const{D:Us}=Ot,Ls=()=>document.createComment(""),As=(t,e,i)=>{const o=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(Ls(),r),n=o.insertBefore(Ls(),r);i=new Us(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},Ts=(t,e,i=t)=>(t._$AI(e,i),t),_s={},Ws=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}},Ds=(t,e,i)=>{const o=new Map;for(let r=e;r<=i;r++)o.set(t[r],r);return o},Ms=za(class extends Ba{constructor(t){if(super(t),t.type!==Pa)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]=Ts(r[h],n[u]),h++,u++;else if(s[d]===a[p])l[p]=Ts(r[d],n[p]),d--,p--;else if(s[h]===a[p])l[p]=Ts(r[h],n[p]),As(t,l[p+1],r[h]),h++,p--;else if(s[d]===a[u])l[u]=Ts(r[d],n[u]),As(t,r[h],r[d]),d--,u++;else if(void 0===c&&(c=Ds(a,u,p),f=Ds(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=As(t,r[h]);Ts(e,n[u]),l[u]=e}else l[u]=Ts(i,n[u]),As(t,r[h],i),r[e]=null;u++}else Ws(r[d]),d--;else Ws(r[h]),h++;for(;u<=p;){const e=As(t,l[p+1]);Ts(e,n[u]),l[u++]=e}for(;h<=d;){const t=r[h++];null!==t&&Ws(t)}return this.dt=a,((t,e=_s)=>{t._$AH=e})(t,l),st}});
1205
1208
  /**
1206
1209
  * @license
1207
1210
  * Copyright 2017 Google LLC
@@ -1213,7 +1216,7 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1213
1216
  <div></div>
1214
1217
  <div></div>
1215
1218
  </div>
1216
- `}}Fs.styles=ya,F("ft-loader")(Fs);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 Ps extends(Jr(Gi,"button")){constructor(){super(),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.addEventListener("click",(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(de`
1219
+ `}}Fs.styles=ga,M("ft-loader")(Fs);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 zs extends(Qr(Gi,"button")){constructor(){super(),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.addEventListener("click",(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(de`
1217
1220
  <button part="button"
1218
1221
  class="${ja(this.buttonClasses)}"
1219
1222
  aria-label="${this.getLabel()}"
@@ -1222,7 +1225,7 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1222
1225
  <ft-typography part="label"
1223
1226
  variant=${this.typographyVariant}
1224
1227
  element="span"
1225
- class="ft-button--label ${on?"ft-safari-ellipsis-fix":""}"
1228
+ class="ft-button--label ${rn?"ft-safari-ellipsis-fix":""}"
1226
1229
  ?hidden=${!this.hasTextContent()}>
1227
1230
  <slot @slotchange=${this.onSlotchange}></slot>
1228
1231
  </ft-typography>
@@ -1236,7 +1239,7 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1236
1239
  </ft-tooltip>
1237
1240
  `:t}resolveIcon(){return this.loading?de`
1238
1241
  <ft-loader part="loader icon"></ft-loader> `:this.icon?de`
1239
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:pe}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}}Ps.elementDefinitions={"ft-ripple":Ka,"ft-tooltip":Qa,"ft-typography":Da,"ft-icon":as,"ft-loader":Fs},Ms([I({type:String,reflect:!0})],Ps.prototype,"role",void 0),Ms([I()],Ps.prototype,"type",void 0),Ms([I({type:Boolean})],Ps.prototype,"disabled",void 0),Ms([I()],Ps.prototype,"label",void 0),Ms([I()],Ps.prototype,"icon",void 0),Ms([I()],Ps.prototype,"iconVariant",void 0),Ms([I({type:Boolean})],Ps.prototype,"trailingIcon",void 0),Ms([I({type:Boolean})],Ps.prototype,"loading",void 0),Ms([I()],Ps.prototype,"tooltipPosition",void 0),Ms([I({type:Boolean})],Ps.prototype,"hideTooltip",void 0),Ms([I({type:Boolean})],Ps.prototype,"forceTooltip",void 0),Ms([A(".ft-button")],Ps.prototype,"button",void 0),Ms([A(".ft-button--label slot")],Ps.prototype,"slottedContent",void 0);var zs=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 Ps{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"}}js.styles=[Yi,Ca],zs([I({type:Boolean})],js.prototype,"primary",void 0),zs([I({type:Boolean})],js.prototype,"outlined",void 0),zs([I({type:Boolean})],js.prototype,"dense",void 0),zs([I({type:Boolean})],js.prototype,"round",void 0);const Bs=[Rt`
1242
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:pe}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}}zs.elementDefinitions={"ft-ripple":Za,"ft-tooltip":ts,"ft-typography":Ma,"ft-icon":ss,"ft-loader":Fs},Ps([I({type:String,reflect:!0})],zs.prototype,"role",void 0),Ps([I()],zs.prototype,"type",void 0),Ps([I({type:Boolean})],zs.prototype,"disabled",void 0),Ps([I()],zs.prototype,"label",void 0),Ps([I()],zs.prototype,"icon",void 0),Ps([I()],zs.prototype,"iconVariant",void 0),Ps([I({type:Boolean})],zs.prototype,"trailingIcon",void 0),Ps([I({type:Boolean})],zs.prototype,"loading",void 0),Ps([I()],zs.prototype,"tooltipPosition",void 0),Ps([I({type:Boolean})],zs.prototype,"hideTooltip",void 0),Ps([I({type:Boolean})],zs.prototype,"forceTooltip",void 0),Ps([A(".ft-button")],zs.prototype,"button",void 0),Ps([A(".ft-button--label slot")],zs.prototype,"slottedContent",void 0);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 js extends zs{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"}}js.styles=[Yi,Ea],Bs([I({type:Boolean})],js.prototype,"primary",void 0),Bs([I({type:Boolean})],js.prototype,"outlined",void 0),Bs([I({type:Boolean})],js.prototype,"dense",void 0),Bs([I({type:Boolean})],js.prototype,"round",void 0);const Ks=[Rt`
1240
1243
  :host {
1241
1244
  display: inline-block;
1242
1245
  max-width: 100%;
@@ -1315,13 +1318,13 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1315
1318
  /** Primary styles **/
1316
1319
 
1317
1320
  .ft-button--primary {
1318
- ${Ue(pa.color,_e.primaryIconColor)};
1321
+ ${Ue(ya.color,_e.primaryIconColor)};
1319
1322
 
1320
- ${Ue(fn.color,_e.primaryStateLayerColor)};
1321
- ${Ue(fn.opacityContentOnSurfaceHover,_e.primaryStateLayerOpacityHover)};
1322
- ${Ue(fn.opacityContentOnSurfaceFocused,_e.primaryStateLayerOpacityFocus)};
1323
- ${Ue(fn.opacityContentOnSurfaceSelected,_e.primaryStateLayerOpacityActive)};
1324
- ${Ue(fn.opacityContentOnSurfacePressed,_e.primaryStateLayerOpacityActive)};
1323
+ ${Ue(hn.color,_e.primaryStateLayerColor)};
1324
+ ${Ue(hn.opacityContentOnSurfaceHover,_e.primaryStateLayerOpacityHover)};
1325
+ ${Ue(hn.opacityContentOnSurfaceFocused,_e.primaryStateLayerOpacityFocus)};
1326
+ ${Ue(hn.opacityContentOnSurfaceSelected,_e.primaryStateLayerOpacityActive)};
1327
+ ${Ue(hn.opacityContentOnSurfacePressed,_e.primaryStateLayerOpacityActive)};
1325
1328
 
1326
1329
  background-color: ${_e.primaryBackgroundColor};
1327
1330
  color: ${_e.primaryColor};
@@ -1339,13 +1342,13 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1339
1342
  /** Secondary styles **/
1340
1343
 
1341
1344
  .ft-button--secondary {
1342
- ${Ue(pa.color,_e.secondaryIconColor)};
1345
+ ${Ue(ya.color,_e.secondaryIconColor)};
1343
1346
 
1344
- ${Ue(fn.color,_e.secondaryStateLayerColor)};
1345
- ${Ue(fn.opacityContentOnSurfaceHover,_e.secondaryStateLayerOpacityHover)};
1346
- ${Ue(fn.opacityContentOnSurfaceFocused,_e.secondaryStateLayerOpacityFocus)};
1347
- ${Ue(fn.opacityContentOnSurfaceSelected,_e.secondaryStateLayerOpacityActive)};
1348
- ${Ue(fn.opacityContentOnSurfacePressed,_e.secondaryStateLayerOpacityActive)};
1347
+ ${Ue(hn.color,_e.secondaryStateLayerColor)};
1348
+ ${Ue(hn.opacityContentOnSurfaceHover,_e.secondaryStateLayerOpacityHover)};
1349
+ ${Ue(hn.opacityContentOnSurfaceFocused,_e.secondaryStateLayerOpacityFocus)};
1350
+ ${Ue(hn.opacityContentOnSurfaceSelected,_e.secondaryStateLayerOpacityActive)};
1351
+ ${Ue(hn.opacityContentOnSurfacePressed,_e.secondaryStateLayerOpacityActive)};
1349
1352
 
1350
1353
  background-color: ${_e.secondaryBackgroundColor};
1351
1354
  color: ${_e.secondaryColor};
@@ -1364,13 +1367,13 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1364
1367
  /** Tertiary styles **/
1365
1368
 
1366
1369
  .ft-button--tertiary {
1367
- ${Ue(pa.color,_e.tertiaryIconColor)};
1370
+ ${Ue(ya.color,_e.tertiaryIconColor)};
1368
1371
 
1369
- ${Ue(fn.color,_e.tertiaryStateLayerColor)};
1370
- ${Ue(fn.opacityContentOnSurfaceHover,_e.tertiaryStateLayerOpacityHover)};
1371
- ${Ue(fn.opacityContentOnSurfaceFocused,_e.tertiaryStateLayerOpacityFocus)};
1372
- ${Ue(fn.opacityContentOnSurfaceSelected,_e.tertiaryStateLayerOpacityActive)};
1373
- ${Ue(fn.opacityContentOnSurfacePressed,_e.tertiaryStateLayerOpacityActive)};
1372
+ ${Ue(hn.color,_e.tertiaryStateLayerColor)};
1373
+ ${Ue(hn.opacityContentOnSurfaceHover,_e.tertiaryStateLayerOpacityHover)};
1374
+ ${Ue(hn.opacityContentOnSurfaceFocused,_e.tertiaryStateLayerOpacityFocus)};
1375
+ ${Ue(hn.opacityContentOnSurfaceSelected,_e.tertiaryStateLayerOpacityActive)};
1376
+ ${Ue(hn.opacityContentOnSurfacePressed,_e.tertiaryStateLayerOpacityActive)};
1374
1377
 
1375
1378
  background-color: ${_e.tertiaryBackgroundColor};
1376
1379
  color: ${_e.tertiaryColor};
@@ -1388,13 +1391,13 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1388
1391
  /** Neutral styles **/
1389
1392
 
1390
1393
  .ft-button--neutral {
1391
- ${Ue(pa.color,_e.neutralIconColor)};
1394
+ ${Ue(ya.color,_e.neutralIconColor)};
1392
1395
 
1393
- ${Ue(fn.backgroundColor,_e.neutralStateLayerColor)};
1394
- ${Ue(fn.opacityContentOnSurfaceHover,_e.neutralStateLayerOpacityHover)};
1395
- ${Ue(fn.opacityContentOnSurfaceFocused,_e.neutralStateLayerOpacityFocus)};
1396
- ${Ue(fn.opacityContentOnSurfaceSelected,_e.neutralStateLayerOpacityActive)};
1397
- ${Ue(fn.opacityContentOnSurfacePressed,_e.neutralStateLayerOpacityActive)};
1396
+ ${Ue(hn.backgroundColor,_e.neutralStateLayerColor)};
1397
+ ${Ue(hn.opacityContentOnSurfaceHover,_e.neutralStateLayerOpacityHover)};
1398
+ ${Ue(hn.opacityContentOnSurfaceFocused,_e.neutralStateLayerOpacityFocus)};
1399
+ ${Ue(hn.opacityContentOnSurfaceSelected,_e.neutralStateLayerOpacityActive)};
1400
+ ${Ue(hn.opacityContentOnSurfacePressed,_e.neutralStateLayerOpacityActive)};
1398
1401
 
1399
1402
  background-color: ${_e.neutralBackgroundColor};
1400
1403
  color: ${_e.neutralColor};
@@ -1412,8 +1415,8 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1412
1415
  /** Large styles **/
1413
1416
 
1414
1417
  .ft-button--large {
1415
- ${Ue(ga.size,_e.largeIconSize)};
1416
- ${Ue(pa.size,_e.largeIconSize)};
1418
+ ${Ue(ba.size,_e.largeIconSize)};
1419
+ ${Ue(ya.size,_e.largeIconSize)};
1417
1420
 
1418
1421
  height: ${_e.largeHeight};
1419
1422
  padding: 0 ${_e.largeHorizontalPadding};
@@ -1435,8 +1438,8 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1435
1438
  /** Small styles **/
1436
1439
 
1437
1440
  .ft-button--small {
1438
- ${Ue(ga.size,_e.smallIconSize)};
1439
- ${Ue(pa.size,_e.smallIconSize)};
1441
+ ${Ue(ba.size,_e.smallIconSize)};
1442
+ ${Ue(ya.size,_e.smallIconSize)};
1440
1443
 
1441
1444
  height: ${_e.smallHeight};
1442
1445
  padding: 0 ${_e.smallHorizontalPadding};
@@ -1454,15 +1457,15 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1454
1457
  width: ${_e.smallIconOnlyWidth};
1455
1458
  padding: unset;
1456
1459
  }
1457
- `,qi];var Ks=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 Ps{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?_a.caption1medium:_a.body2medium}}Zs.styles=[Yi,Bs],Ks([I({type:Boolean})],Zs.prototype,"primary",void 0),Ks([I({type:Boolean})],Zs.prototype,"secondary",void 0),Ks([I({type:Boolean})],Zs.prototype,"tertiary",void 0),Ks([I({type:Boolean})],Zs.prototype,"neutral",void 0),Ks([I({type:Boolean})],Zs.prototype,"small",void 0),F("ft-button")(js),F("ftds-button")(Zs);const Hs=Rt`
1458
- `,Gs=Rt`
1459
- `,Vs=Yr.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0}});class qs{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=Vs.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?qs.build(t):null!==(e=qs.API)&&void 0!==e?e:qs.API=qs.build()}static await(t){return new Promise((e=>{let i=qs.get(t);if(i)e(i);else{const o=Vs.subscribe((()=>{i=qs.get(t),i&&(o(),e(i))}))}}))}}var Ys;const Xs=Symbol("clearAfterUnitTest");class Js{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[Ys]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=Vs.getState().uiLocale,Vs.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Vs.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const o={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};D(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var o,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 Xi(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)))))}}Ys=Xs,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Js((async(t,e)=>(await qs.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Js((async(t,e)=>(await qs.await()).getCustomMessageContext(t,e))));const Qs=window.FluidTopicsI18nService,tl=window.FluidTopicsCustomI18nService;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 il extends Gi{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>qs.get(),this.cache=new o,this.cleanSessionDebouncer=new n}render(){return de`
1460
+ `,qi];var Zs=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 Hs extends zs{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?Wa.caption1medium:Wa.body2medium}}Hs.styles=[Yi,Ks],Zs([I({type:Boolean})],Hs.prototype,"primary",void 0),Zs([I({type:Boolean})],Hs.prototype,"secondary",void 0),Zs([I({type:Boolean})],Hs.prototype,"tertiary",void 0),Zs([I({type:Boolean})],Hs.prototype,"neutral",void 0),Zs([I({type:Boolean})],Hs.prototype,"small",void 0),M("ft-button")(js),M("ftds-button")(Hs);const Gs=Rt`
1461
+ `,Vs=Rt`
1462
+ `,qs=Xr.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0}});class Ys{static build(t){const{baseUrl:e,apiIntegrationIdentifier:i}=qs.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?Ys.build(t):null!==(e=Ys.API)&&void 0!==e?e:Ys.API=Ys.build()}static await(t){return new Promise((e=>{let i=Ys.get(t);if(i)e(i);else{const o=qs.subscribe((()=>{i=Ys.get(t),i&&(o(),e(i))}))}}))}}var Xs;const Js=Symbol("clearAfterUnitTest");class Qs{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o,this.listeners={},this.currentUiLocale="",this[Xs]=()=>{this.defaultMessages={},this.cache=new o,this.listeners={}},this.currentUiLocale=qs.getState().uiLocale,qs.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=qs.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const o={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};D(this.defaultMessages[t],o)||(this.defaultMessages[t]=o,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var o,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 Xi(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)))))}}Xs=Js,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Qs((async(t,e)=>(await Ys.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Qs((async(t,e)=>(await Ys.await()).getCustomMessageContext(t,e))));const tl=window.FluidTopicsI18nService,el=window.FluidTopicsCustomI18nService;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 Gi{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Ys.get(),this.cache=new o,this.cleanSessionDebouncer=new n}render(){return de`
1460
1463
  <slot></slot>
1461
- `}update(t){super.update(t),t.has("baseUrl")&&(Vs.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Vs.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Vs.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Vs.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Vs.actions.noCustom(this.noCustom),t.has("editorMode")&&Vs.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Vs.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Vs.actions.session(this.session),t.has("availableUiLocales")&&Vs.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Qs.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}il.elementDefinitions={},il.styles=Gs,el([I()],il.prototype,"baseUrl",void 0),el([I()],il.prototype,"apiIntegrationIdentifier",void 0),el([I()],il.prototype,"uiLocale",void 0),el([M(null)],il.prototype,"availableUiLocales",void 0),el([M(null)],il.prototype,"metadataConfiguration",void 0),el([I({type:Boolean})],il.prototype,"editorMode",void 0),el([I({type:Boolean})],il.prototype,"noCustom",void 0),el([I({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],il.prototype,"noCustomComponent",void 0),el([I({type:Boolean})],il.prototype,"withManualResources",void 0),el([M([])],il.prototype,"messageContexts",void 0),el([M(void 0)],il.prototype,"session",void 0),el([I({type:Object})],il.prototype,"apiProvider",void 0);class ol{async listMySearches(){var t;return(null===(t=Vs.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await qs.await()).listMySearches(Vs.getState().session.profile.userId):[]}}const rl=new o;class nl{async listMyBookmarks(){return rl.get("bookmarks",(async()=>(await qs.await()).listMyBookmarks(Vs.getState().session.profile.userId)))}clearCache(){rl.clear("bookmarks")}}const al=Yr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const sl=new class{constructor(){this.currentSession=Vs.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new nl,Vs.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Vs.getState();D(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(){al.actions.savedSearches(void 0)}clearMyBookmarks(){al.actions.bookmarks(void 0)}async reloadMySearches(){const t=new ol,e=await t.listMySearches();al.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;al.actions.bookmarks(e)}}};F("ft-app-context")(il);var ll=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const cl=Symbol("i18nProperties"),fl=Symbol("i18nUnsubs");function hl(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?tl:Qs}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[cl])||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[cl])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[cl]&&new Set([...this[cl].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[fl].has(t)||this[fl].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[fl].forEach((t=>t())),this[fl].clear()}}return e=fl,ll([I({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class dl extends(hl(Gi)){}class ul extends(hl(so)){}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 ul{constructor(){super(),this.editorMode=!1,this.addStore(Vs)}render(){return this.key&&this.context?de`
1464
+ `}update(t){super.update(t),t.has("baseUrl")&&(qs.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&qs.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&qs.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&qs.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&qs.actions.noCustom(this.noCustom),t.has("editorMode")&&qs.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&qs.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&qs.actions.session(this.session),t.has("availableUiLocales")&&qs.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>tl.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}ol.elementDefinitions={},ol.styles=Vs,il([I()],ol.prototype,"baseUrl",void 0),il([I()],ol.prototype,"apiIntegrationIdentifier",void 0),il([I()],ol.prototype,"uiLocale",void 0),il([F(null)],ol.prototype,"availableUiLocales",void 0),il([F(null)],ol.prototype,"metadataConfiguration",void 0),il([I({type:Boolean})],ol.prototype,"editorMode",void 0),il([I({type:Boolean})],ol.prototype,"noCustom",void 0),il([I({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],ol.prototype,"noCustomComponent",void 0),il([I({type:Boolean})],ol.prototype,"withManualResources",void 0),il([F([])],ol.prototype,"messageContexts",void 0),il([F(void 0)],ol.prototype,"session",void 0),il([I({type:Object})],ol.prototype,"apiProvider",void 0);class rl{async listMySearches(){var t;return(null===(t=qs.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Ys.await()).listMySearches(qs.getState().session.profile.userId):[]}}const nl=new o;class al{async listMyBookmarks(){return nl.get("bookmarks",(async()=>(await Ys.await()).listMyBookmarks(qs.getState().session.profile.userId)))}clearCache(){nl.clear("bookmarks")}}const sl=Xr.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const ll=new class{constructor(){this.currentSession=qs.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new al,qs.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=qs.getState();D(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(){sl.actions.savedSearches(void 0)}clearMyBookmarks(){sl.actions.bookmarks(void 0)}async reloadMySearches(){const t=new rl,e=await t.listMySearches();sl.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;sl.actions.bookmarks(e)}}};M("ft-app-context")(ol);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};const fl=Symbol("i18nProperties"),hl=Symbol("i18nUnsubs");function dl(t){var e;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?el:tl}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[fl])||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[fl])||void 0===e||e.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[fl]&&new Set([...this[fl].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[hl].has(t)||this[hl].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[hl].forEach((t=>t())),this[hl].clear()}}return e=hl,cl([I({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}class ul extends(dl(Gi)){}class pl extends(dl(lo)){}var yl=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 gl extends pl{constructor(){super(),this.editorMode=!1,this.addStore(qs)}render(){return this.key&&this.context?de`
1462
1465
  <span class="ft-i18n">
1463
1466
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1464
1467
  </span>
1465
- `:this.editorMode?"Select a context and a label key.":pe}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:""})}}yl.elementDefinitions={},yl.styles=Hs,pl([Ji()],yl.prototype,"editorMode",void 0),pl([I()],yl.prototype,"context",void 0),pl([I()],yl.prototype,"key",void 0),pl([M([])],yl.prototype,"args",void 0),pl([I()],yl.prototype,"defaultMessage",void 0);class gl{static build(t){return new gl(t)}static fromGwt(t){return new gl(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)=>Qs.resolveMessage(this.name,e,...t)})}}const bl=(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[cl]=null!==(n=i[cl])&&void 0!==n?n:new Map,i[cl].set(o,a)};F("ft-i18n")(yl);const vl=gl.build("integratedFeedbackComponent"),ml={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"},xl={fontSize:Re.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:Re.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:Re.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:Re.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:Re.extend("--ft-text-field-helper-color","",We.colorOnSurfaceMedium),colorPrimary:Re.external(We.colorPrimary,"Design system"),colorOnSurface:Re.external(We.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Re.external(We.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Re.external(We.borderRadiusS,"Design system"),colorError:Re.external(We.colorError,"Design system"),prefixColor:Re.extend("--ft-text-field-prefix-color","",We.colorOnSurfaceMedium),iconColor:Re.extend("--ft-text-field-icon-color","",We.colorOnSurfaceMedium),floatingZIndex:Re.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:Re.external(We.colorSurface,"Design system"),colorOutline:Re.external(We.colorOutline,"Design system"),elevation02:Re.external(We.elevation02,"Design system"),suggestSize:Re.create("--ft-text-field-suggest-size","","SIZE","300px")},wl=Rt`
1468
+ `:this.editorMode?"Select a context and a label key.":pe}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:""})}}gl.elementDefinitions={},gl.styles=Gs,yl([Ji()],gl.prototype,"editorMode",void 0),yl([I()],gl.prototype,"context",void 0),yl([I()],gl.prototype,"key",void 0),yl([F([])],gl.prototype,"args",void 0),yl([I()],gl.prototype,"defaultMessage",void 0);class bl{static build(t){return new bl(t)}static fromGwt(t){return new bl(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)=>tl.resolveMessage(this.name,e,...t)})}}const vl=(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[fl]=null!==(n=i[fl])&&void 0!==n?n:new Map,i[fl].set(o,a)};M("ft-i18n")(gl);const ml=bl.build("integratedFeedbackComponent"),xl={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",moreOptionsButton:"More options",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"},wl={fontSize:Re.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:Re.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:Re.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:Re.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:Re.extend("--ft-text-field-helper-color","",We.colorOnSurfaceMedium),colorPrimary:Re.external(We.colorPrimary,"Design system"),colorOnSurface:Re.external(We.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Re.external(We.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Re.external(We.borderRadiusS,"Design system"),colorError:Re.external(We.colorError,"Design system"),prefixColor:Re.extend("--ft-text-field-prefix-color","",We.colorOnSurfaceMedium),iconColor:Re.extend("--ft-text-field-icon-color","",We.colorOnSurfaceMedium),floatingZIndex:Re.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:Re.external(We.colorSurface,"Design system"),colorOutline:Re.external(We.colorOutline,"Design system"),elevation02:Re.external(We.elevation02,"Design system"),suggestSize:Re.create("--ft-text-field-suggest-size","","SIZE","300px")},Ol=Rt`
1466
1469
  *:focus {
1467
1470
  outline: none;
1468
1471
  }
@@ -1475,16 +1478,16 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1475
1478
  }
1476
1479
 
1477
1480
  ft-input-label {
1478
- ${Ue(Os.fontSize,xl.fontSize)};
1479
- ${Ue(Os.raisedFontSize,xl.labelSize)};
1480
- ${Ue(Os.verticalSpacing,xl.verticalSpacing)};
1481
- ${Ue(Os.horizontalSpacing,xl.horizontalSpacing)};
1481
+ ${Ue(Ss.fontSize,wl.fontSize)};
1482
+ ${Ue(Ss.raisedFontSize,wl.labelSize)};
1483
+ ${Ue(Ss.verticalSpacing,wl.verticalSpacing)};
1484
+ ${Ue(Ss.horizontalSpacing,wl.horizontalSpacing)};
1482
1485
  }
1483
1486
 
1484
1487
  .ft-text-field--main-panel {
1485
1488
  position: relative;
1486
1489
  display: flex;
1487
- height: calc(4 * ${xl.verticalSpacing} + ${xl.labelSize} + ${xl.fontSize});
1490
+ height: calc(4 * ${wl.verticalSpacing} + ${wl.labelSize} + ${wl.fontSize});
1488
1491
  }
1489
1492
 
1490
1493
  .ft-text-field--input-panel {
@@ -1493,24 +1496,24 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1493
1496
  display: flex;
1494
1497
  align-items: center;
1495
1498
  overflow: hidden;
1496
- padding: 0 ${xl.horizontalSpacing};
1499
+ padding: 0 ${wl.horizontalSpacing};
1497
1500
 
1498
- ${Ue(_n.fontSize,xl.fontSize)};
1499
- ${Ue(_n.lineHeight,xl.fontSize)};
1501
+ ${Ue(Wn.fontSize,wl.fontSize)};
1502
+ ${Ue(Wn.lineHeight,wl.fontSize)};
1500
1503
  }
1501
1504
 
1502
1505
  .ft-text-field--input-panel ft-ripple {
1503
- ${Ue(fn.opacityContentOnSurfaceHover,"0.08")};
1504
- ${Ue(fn.opacityContentOnSurfacePressed,"0.04")};
1506
+ ${Ue(hn.opacityContentOnSurfaceHover,"0.08")};
1507
+ ${Ue(hn.opacityContentOnSurfacePressed,"0.04")};
1505
1508
  }
1506
1509
 
1507
1510
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
1508
1511
  align-items: flex-end;
1509
- padding: 0 ${xl.horizontalSpacing} ${xl.verticalSpacing} ${xl.horizontalSpacing};
1512
+ padding: 0 ${wl.horizontalSpacing} ${wl.verticalSpacing} ${wl.horizontalSpacing};
1510
1513
  }
1511
1514
 
1512
1515
  .ft-text-field--prefix {
1513
- color: ${xl.prefixColor};
1516
+ color: ${wl.prefixColor};
1514
1517
  margin-right: 2px;
1515
1518
  flex-shrink: 1;
1516
1519
  overflow: hidden;
@@ -1529,15 +1532,15 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1529
1532
  flex-shrink: 1;
1530
1533
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
1531
1534
 
1532
- color: ${xl.colorOnSurface};
1533
- padding: calc(2 * ${xl.verticalSpacing}) 0;
1535
+ color: ${wl.colorOnSurface};
1536
+ padding: calc(2 * ${wl.verticalSpacing}) 0;
1534
1537
  border: none;
1535
1538
  background: none;
1536
1539
  }
1537
1540
 
1538
1541
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
1539
1542
  padding-bottom: 0;
1540
- padding-top: calc(${xl.labelSize} + 2 * ${xl.verticalSpacing});
1543
+ padding-top: calc(${wl.labelSize} + 2 * ${wl.verticalSpacing});
1541
1544
  }
1542
1545
 
1543
1546
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -1546,37 +1549,37 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1546
1549
  }
1547
1550
 
1548
1551
  .ft-text-field--disabled .ft-text-field--input {
1549
- color: ${xl.colorOnSurfaceDisabled};
1552
+ color: ${wl.colorOnSurfaceDisabled};
1550
1553
  }
1551
1554
 
1552
1555
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1553
- ${Ue(Os.borderColor,xl.colorPrimary)};
1554
- ${Ue(Os.textColor,xl.colorPrimary)};
1556
+ ${Ue(Ss.borderColor,wl.colorPrimary)};
1557
+ ${Ue(Ss.textColor,wl.colorPrimary)};
1555
1558
  }
1556
1559
 
1557
1560
  .ft-text-field--filled .ft-text-field--input-panel {
1558
- border-radius: ${xl.borderRadiusS} ${xl.borderRadiusS} 0 0;
1561
+ border-radius: ${wl.borderRadiusS} ${wl.borderRadiusS} 0 0;
1559
1562
  }
1560
1563
 
1561
1564
  .ft-text-field--outlined .ft-text-field--input-panel {
1562
- border-radius: ${xl.borderRadiusS};
1565
+ border-radius: ${wl.borderRadiusS};
1563
1566
  }
1564
1567
 
1565
1568
  .ft-text-field--helper-text {
1566
- padding: 0 12px 0 ${xl.horizontalSpacing};
1567
- color: ${xl.helperColor};
1569
+ padding: 0 12px 0 ${wl.horizontalSpacing};
1570
+ color: ${wl.helperColor};
1568
1571
  }
1569
1572
 
1570
1573
  .ft-text-field--in-error .ft-text-field--input,
1571
1574
  .ft-text-field--in-error .ft-text-field--helper-text,
1572
1575
  .ft-text-field--in-error .ft-text-field--prefix {
1573
- color: ${xl.colorError};
1576
+ color: ${wl.colorError};
1574
1577
  }
1575
1578
 
1576
1579
  .ft-text-field--icon {
1577
1580
  align-self: center;
1578
1581
  margin-left: 8px;
1579
- color: ${xl.iconColor};
1582
+ color: ${wl.iconColor};
1580
1583
  }
1581
1584
 
1582
1585
  .ft-text-field--container {
@@ -1589,13 +1592,13 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1589
1592
  position: absolute;
1590
1593
  left: 0;
1591
1594
  right: 0;
1592
- z-index: ${xl.floatingZIndex};
1593
- background: ${xl.colorSurface};
1594
- border: 1px solid ${xl.colorOutline};
1595
- border-radius: 0 0 ${xl.borderRadiusS} ${xl.borderRadiusS};
1596
- box-shadow: ${xl.elevation02};
1595
+ z-index: ${wl.floatingZIndex};
1596
+ background: ${wl.colorSurface};
1597
+ border: 1px solid ${wl.colorOutline};
1598
+ border-radius: 0 0 ${wl.borderRadiusS} ${wl.borderRadiusS};
1599
+ box-shadow: ${wl.elevation02};
1597
1600
  outline: none;
1598
- max-height: ${xl.suggestSize};
1601
+ max-height: ${wl.suggestSize};
1599
1602
  overflow-y: auto;
1600
1603
  }
1601
1604
 
@@ -1612,13 +1615,13 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1612
1615
  }
1613
1616
 
1614
1617
  .ft-text-field--with-icon {
1615
- ${Ue(Os.labelMaxWidth,`calc(100% - ${ga.size} - ${Os.horizontalSpacing})`)};
1618
+ ${Ue(Ss.labelMaxWidth,`calc(100% - ${ba.size} - ${Ss.horizontalSpacing})`)};
1616
1619
  }
1617
1620
 
1618
1621
  .ft-text-field--with-password ft-icon:hover {
1619
1622
  cursor: pointer;
1620
1623
  }
1621
- `;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 Sl extends(Jr(Gi,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=is.EYE_SLASH,this.passwordRevealedIcon=is.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 de`
1624
+ `;var Sl=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 Nl extends(Qr(Gi,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=os.EYE_SLASH,this.passwordRevealedIcon=os.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 de`
1622
1625
  <div class="${ja(t)}">
1623
1626
  <div class="ft-text-field--main-panel"
1624
1627
  @keydown=${this.handleKeyboardNavigation}
@@ -1670,7 +1673,7 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1670
1673
  .variant=${this.iconVariant}
1671
1674
  .value=${this.icon}
1672
1675
  @click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
1673
- `:pe}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}}Sl.elementDefinitions={"ft-input-label":$s,"ft-ripple":Ka,"ft-typography":Da,"ft-icon":as},Sl.styles=[aa,wl],Ol([I()],Sl.prototype,"label",void 0),Ol([I({noAccessor:!0})],Sl.prototype,"value",null),Ol([R()],Sl.prototype,"dispatchedValue",void 0),Ol([I()],Sl.prototype,"helper",void 0),Ol([I({type:Boolean})],Sl.prototype,"outlined",void 0),Ol([I({type:Boolean})],Sl.prototype,"disabled",void 0),Ol([I({type:Boolean})],Sl.prototype,"error",void 0),Ol([I()],Sl.prototype,"prefix",void 0),Ol([I()],Sl.prototype,"icon",void 0),Ol([I()],Sl.prototype,"passwordHiddenIcon",void 0),Ol([I()],Sl.prototype,"passwordRevealedIcon",void 0),Ol([I()],Sl.prototype,"iconVariant",void 0),Ol([I({type:Boolean})],Sl.prototype,"filterSuggestions",void 0),Ol([I({type:Number})],Sl.prototype,"maxLength",void 0),Ol([I({type:Boolean})],Sl.prototype,"password",void 0),Ol([R()],Sl.prototype,"focused",void 0),Ol([R()],Sl.prototype,"hidePassword",void 0),Ol([R()],Sl.prototype,"suggestionsOnTop",void 0),Ol([R()],Sl.prototype,"hideSuggestions",void 0),Ol([R()],Sl.prototype,"visibleSuggestions",void 0),Ol([A(".ft-text-field--main-panel")],Sl.prototype,"mainPanel",void 0),Ol([A(".ft-text-field--input")],Sl.prototype,"input",void 0),Ol([A(".ft-text-field--suggestions")],Sl.prototype,"suggestionsContainer",void 0),Ol([function(t){return(e,i)=>{const{slot:o,selector:r}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return L(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"})],Sl.prototype,"suggestions",void 0);const Nl=Rt`
1676
+ `:pe}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}}Nl.elementDefinitions={"ft-input-label":Cs,"ft-ripple":Za,"ft-typography":Ma,"ft-icon":ss},Nl.styles=[sa,Ol],Sl([I()],Nl.prototype,"label",void 0),Sl([I({noAccessor:!0})],Nl.prototype,"value",null),Sl([R()],Nl.prototype,"dispatchedValue",void 0),Sl([I()],Nl.prototype,"helper",void 0),Sl([I({type:Boolean})],Nl.prototype,"outlined",void 0),Sl([I({type:Boolean})],Nl.prototype,"disabled",void 0),Sl([I({type:Boolean})],Nl.prototype,"error",void 0),Sl([I()],Nl.prototype,"prefix",void 0),Sl([I()],Nl.prototype,"icon",void 0),Sl([I()],Nl.prototype,"passwordHiddenIcon",void 0),Sl([I()],Nl.prototype,"passwordRevealedIcon",void 0),Sl([I()],Nl.prototype,"iconVariant",void 0),Sl([I({type:Boolean})],Nl.prototype,"filterSuggestions",void 0),Sl([I({type:Number})],Nl.prototype,"maxLength",void 0),Sl([I({type:Boolean})],Nl.prototype,"password",void 0),Sl([R()],Nl.prototype,"focused",void 0),Sl([R()],Nl.prototype,"hidePassword",void 0),Sl([R()],Nl.prototype,"suggestionsOnTop",void 0),Sl([R()],Nl.prototype,"hideSuggestions",void 0),Sl([R()],Nl.prototype,"visibleSuggestions",void 0),Sl([A(".ft-text-field--main-panel")],Nl.prototype,"mainPanel",void 0),Sl([A(".ft-text-field--input")],Nl.prototype,"input",void 0),Sl([A(".ft-text-field--suggestions")],Nl.prototype,"suggestionsContainer",void 0),Sl([function(t){return(e,i)=>{const{slot:o,selector:r}=t??{},n="slot"+(o?`[name=${o}]`:":not([name])");return L(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"})],Nl.prototype,"suggestions",void 0);const $l=Rt`
1674
1677
  .ft-text-field-suggestion {
1675
1678
  position: relative;
1676
1679
  padding: 8px 16px;
@@ -1695,7 +1698,7 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1695
1698
  slot {
1696
1699
  pointer-events: none;
1697
1700
  }
1698
- `;var $l=function(t,e,i,o){for(var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};class Cl extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class El extends Gi{render(){return de`
1701
+ `;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 CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class kl extends Gi{render(){return de`
1699
1702
  <div class="ft-text-field-suggestion"
1700
1703
  tabindex="-1"
1701
1704
  @keydown=${this.onKeyDown}
@@ -1707,15 +1710,15 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1707
1710
  <slot></slot>
1708
1711
  </ft-typography>
1709
1712
  </div>
1710
- `}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 Cl(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())}}El.elementDefinitions={"ft-ripple":Ka,"ft-typography":Da,"ft-icon":as},El.styles=Nl,$l([I()],El.prototype,"value",void 0),$l([A(".ft-text-field-suggestion")],El.prototype,"container",void 0),$l([T()],El.prototype,"assignedNodes",void 0),F("ft-text-field")(Sl),F("ft-text-field-suggestion")(El);class kl{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 Il{convertPaginatedToc(t){return new kl(t).build()}}var Rl,Ul,Ll,Al,Tl,_l,Wl,Dl,Fl,Ml,Pl,zl,jl,Bl,Kl,Zl,Hl,Gl;!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"}(Rl||(Rl={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Ul||(Ul={})),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"}(Ll||(Ll={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(Al||(Al={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(Tl||(Tl={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(_l||(_l={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Wl||(Wl={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Dl||(Dl={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Fl||(Fl={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Ml||(Ml={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Pl||(Pl={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(zl||(zl={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(jl||(jl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Bl||(Bl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Kl||(Kl={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Zl||(Zl={})),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"}(Hl||(Hl={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Gl||(Gl={}));const Vl={[Hl.PERSONAL_BOOK_SHARE_USER]:[Hl.PERSONAL_BOOK_USER],[Hl.HTML_EXPORT_USER]:[Hl.PERSONAL_BOOK_USER],[Hl.PDF_EXPORT_USER]:[Hl.PERSONAL_BOOK_USER],[Hl.KHUB_ADMIN]:[Hl.CONTENT_PUBLISHER],[Hl.ADMIN]:[Hl.KHUB_ADMIN,Hl.USERS_ADMIN,Hl.PORTAL_ADMIN],[Hl.DEVELOPER]:[Hl.BETA_USER,Hl.DEBUG_USER]};function ql(t,e){return t===e||(Vl[t]??[]).some((t=>ql(t,e)))}function Yl(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=>ql(t,e)))}class Xl{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 Yl(null!==(e=null===(t=Vs.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)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),(()=>this.fetchRelativesForDocument(t,e)))}getRelativesForTopicInMap(t,e,i){return this.cache.get("topic-relatives-"+[t,e,...i].join("-"),(()=>this.fetchRelativesForTopicInMap(t,e,i)))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}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")}reloadRating(){this.cache.clear("ratingSummary"),this.getRatingSummary()}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=Vs.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 rn.FEEDBACK:return Yl(null!=e?e:[],Hl.FEEDBACK_USER);case rn.RATING:return Yl(null!=e?e:[],Hl.RATING_USER)&&null!=i&&i!==Wl.NO_RATING;case rn.PRINT:return Yl(null!=e?e:[],Hl.PRINT_USER);case rn.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case rn.COLLECTIONS:return Yl(null!=e?e:[],Hl.COLLECTION_USER);case rn.PERSONAL_BOOKS:return Yl(null!=e?e:[],Hl.PERSONAL_BOOK_USER);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class Jl extends Xl{static async build(t){return new Jl(new Il,await qs.await(),new o,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}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)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,i){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:i,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}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 Ql{static build(t,e){return new Ql((t=>Yr.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,relatives:void 0}}))(t.trim()||"context"),null!=e?e:Jl.build)}constructor(t,e){this.store=t,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new n(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(){return W((()=>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 load(){var t;(null===(t=this.service)||void 0===t?void 0:t.mapId)&&null==this.store.getState().map&&await this.loadDebouncer.run((()=>this.fetchData()))}clear(){var t;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(""),this.store.actions.relatives(void 0),null===(t=this.service)||void 0===t||t.clear(),this.metadataForSwitchToRelatives=new Set,this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}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)))]).then((()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}))}catch(t){!this.errorHandler||t instanceof e||this.errorHandler(t)}}fetchRelatives(){var t,e,i;const o=null===(t=this.store.getState().map)||void 0===t?void 0:t.metadata.filter((t=>{var e;return t.key==(null===(e=this.store.getState().configuration)||void 0===e?void 0:e.relativePivotMetadata)})).flatMap((t=>t.values));void 0!==o&&o.length>0&&(null===(e=this.service)||void 0===e||e.getRelativesForDocument(null===(i=this.store.getState().configuration)||void 0===i?void 0:i.relativePivotMetadata,o).then((t=>{const e=t.results.flatMap((t=>t.entries));this.store.actions.relatives(e),this.createClusteringHelper()})))}createClusteringHelper(){var t,e;this.store.getState().relatives&&(this.clusteringHelper=new r(this.store.getState().relatives,this.store.getState().relatives.find((t=>{var e;return(null===(e=t.map)||void 0===e?void 0:e.mapId)==this.store.getState().mapId})),this.metadataForSwitchToRelatives,null!==(e=null===(t=Vs.getState().metadataConfiguration)||void 0===t?void 0:t.descriptors)&&void 0!==e?e:[]),this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created")))}async navigateToRelativeTopicIfFound(t){var e,i,o;const r=await W((()=>{var t;return null===(t=this.store.getState().configuration)||void 0===t?void 0:t.relativeTopicPivotMetadata})),n=this.store.getState().mapId,a=await this.awaitService(),s=await a.getRelativesForTopicInMap(n,r,[t]);if(null===(o=null===(i=null===(e=null==s?void 0:s.results)||void 0===e?void 0:e[0])||void 0===i?void 0:i.entries)||void 0===o?void 0:o[0]){const t=s.results[0].entries[0].topic.tocId;return await this.navigateToTopic(t),!0}return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),null==this.store.getState().relatives?this.fetchRelatives():this.createClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.createClusteringHelper()}}const tc=Rt`
1711
- `;class ec extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class ic extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class oc extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class rc extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class nc extends Event{constructor(){super("ft-reader-map-not-found")}}class ac extends Event{constructor(){super("ft-reader-map-unauthorized")}}class sc extends Event{constructor(){super("ft-reader-map-forbidden")}}class lc extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!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 so{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new n(5),this.navigationDebouncer=new n(10),this.addStore(Vs)}render(){return de`
1713
+ `}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 El(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())}}kl.elementDefinitions={"ft-ripple":Za,"ft-typography":Ma,"ft-icon":ss},kl.styles=$l,Cl([I()],kl.prototype,"value",void 0),Cl([A(".ft-text-field-suggestion")],kl.prototype,"container",void 0),Cl([T()],kl.prototype,"assignedNodes",void 0),M("ft-text-field")(Nl),M("ft-text-field-suggestion")(kl);class Il{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 Rl{convertPaginatedToc(t){return new Il(t).build()}}var Ul,Ll,Al,Tl,_l,Wl,Dl,Ml,Fl,Pl,zl,Bl,jl,Kl,Zl,Hl,Gl,Vl;!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"}(Ul||(Ul={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Ll||(Ll={})),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"}(Al||(Al={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(Tl||(Tl={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(_l||(_l={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(Wl||(Wl={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Dl||(Dl={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Ml||(Ml={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Fl||(Fl={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Pl||(Pl={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(zl||(zl={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Bl||(Bl={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(jl||(jl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Kl||(Kl={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Zl||(Zl={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Hl||(Hl={})),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.GENERATIVE_AI_USER="GENERATIVE_AI_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"}(Gl||(Gl={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Vl||(Vl={}));const ql={[Gl.PERSONAL_BOOK_SHARE_USER]:[Gl.PERSONAL_BOOK_USER],[Gl.HTML_EXPORT_USER]:[Gl.PERSONAL_BOOK_USER],[Gl.PDF_EXPORT_USER]:[Gl.PERSONAL_BOOK_USER],[Gl.KHUB_ADMIN]:[Gl.CONTENT_PUBLISHER],[Gl.ADMIN]:[Gl.KHUB_ADMIN,Gl.USERS_ADMIN,Gl.PORTAL_ADMIN],[Gl.DEVELOPER]:[Gl.BETA_USER,Gl.DEBUG_USER]};function Yl(t,e){return t===e||(ql[t]??[]).some((t=>Yl(t,e)))}function Xl(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=>Yl(t,e)))}class Jl{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 Xl(null!==(e=null===(t=qs.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)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),(()=>this.fetchRelativesForDocument(t,e)))}getRelativesForTopicInMap(t,e,i){return this.cache.get("topic-relatives-"+[t,e,...i].join("-"),(()=>this.fetchRelativesForTopicInMap(t,e,i)))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}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")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}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=qs.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 nn.FEEDBACK:return Xl(null!=e?e:[],Gl.FEEDBACK_USER);case nn.RATING:return Xl(null!=e?e:[],Gl.RATING_USER)&&null!=i&&i!==Dl.NO_RATING;case nn.PRINT:return Xl(null!=e?e:[],Gl.PRINT_USER);case nn.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case nn.COLLECTIONS:return Xl(null!=e?e:[],Gl.COLLECTION_USER);case nn.PERSONAL_BOOKS:return Xl(null!=e?e:[],Gl.PERSONAL_BOOK_USER);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class Ql extends Jl{static async build(t){return new Ql(new Rl,await Ys.await(),new o,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}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)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,i){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:i,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}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 tc{static build(t,e){return new tc((t=>Xr.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,relatives:void 0}}))(t.trim()||"context"),null!=e?e:Ql.build)}constructor(t,e){this.store=t,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new n(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(){return W((()=>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 load(){var t;(null===(t=this.service)||void 0===t?void 0:t.mapId)&&null==this.store.getState().map&&await this.loadDebouncer.run((()=>this.fetchData()))}clear(){var t;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(""),this.store.actions.relatives(void 0),null===(t=this.service)||void 0===t||t.clear(),this.metadataForSwitchToRelatives=new Set,this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}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)))]).then((()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}))}catch(t){!this.errorHandler||t instanceof e||this.errorHandler(t)}}fetchRelatives(){var t,e,i;const o=null===(t=this.store.getState().map)||void 0===t?void 0:t.metadata.filter((t=>{var e;return t.key==(null===(e=this.store.getState().configuration)||void 0===e?void 0:e.relativePivotMetadata)})).flatMap((t=>t.values));void 0!==o&&o.length>0&&(null===(e=this.service)||void 0===e||e.getRelativesForDocument(null===(i=this.store.getState().configuration)||void 0===i?void 0:i.relativePivotMetadata,o).then((t=>{const e=t.results.flatMap((t=>t.entries));this.store.actions.relatives(e),this.createClusteringHelper()})))}createClusteringHelper(){var t,e;this.store.getState().relatives&&(this.clusteringHelper=new r(this.store.getState().relatives,this.store.getState().relatives.find((t=>{var e;return(null===(e=t.map)||void 0===e?void 0:e.mapId)==this.store.getState().mapId})),this.metadataForSwitchToRelatives,null!==(e=null===(t=qs.getState().metadataConfiguration)||void 0===t?void 0:t.descriptors)&&void 0!==e?e:[]),this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created")))}async navigateToRelativeTopicIfFound(t){var e,i,o;const r=await W((()=>{var t;return null===(t=this.store.getState().configuration)||void 0===t?void 0:t.relativeTopicPivotMetadata})),n=this.store.getState().mapId,a=await this.awaitService(),s=await a.getRelativesForTopicInMap(n,r,[t]);if(null===(o=null===(i=null===(e=null==s?void 0:s.results)||void 0===e?void 0:e[0])||void 0===i?void 0:i.entries)||void 0===o?void 0:o[0]){const t=s.results[0].entries[0].topic.tocId;return await this.navigateToTopic(t),!0}return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),null==this.store.getState().relatives?this.fetchRelatives():this.createClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.createClusteringHelper()}}const ec=Rt`
1714
+ `;class ic extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class oc extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class rc extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class nc extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class ac extends Event{constructor(){super("ft-reader-map-not-found")}}class sc extends Event{constructor(){super("ft-reader-map-unauthorized")}}class lc extends Event{constructor(){super("ft-reader-map-forbidden")}}class cc extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!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 lo{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new n(5),this.navigationDebouncer=new n(10),this.addStore(qs)}render(){return de`
1712
1715
  ${this.importStyleIfNeeded()}
1713
1716
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1714
1717
  `}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:"")?pe:de`
1715
1718
  <style>
1716
1719
  @import "${i}"
1717
1720
  </style>
1718
- `}get stateManager(){return null==this._stateManager&&(this._stateManager=Ql.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","topicPivot"].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 ec(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 oc(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 ic(this.map,e))}))}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run((async()=>{if(null!=this.topicPivot){await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)||this.dispatchEvent(new lc)}else null!=this.tocId?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&await 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;401===e.status?this.dispatchEvent(new ac):403===e.status?this.dispatchEvent(new sc):404===e.status?this.dispatchEvent(new nc):this.dispatchEvent(new rc(t))}reloadBookmarks(){sl.reloadBookmarks()}reloadRating(){var t;null===(t=this.stateManager.service)||void 0===t||t.reloadRating()}}var hc;fc.styles=tc,cc([Ji({store:Vs.name})],fc.prototype,"baseUrl",void 0),cc([I()],fc.prototype,"mapId",void 0),cc([I()],fc.prototype,"tocId",void 0),cc([I()],fc.prototype,"section",void 0),cc([I()],fc.prototype,"topicPivot",void 0),cc([I()],fc.prototype,"searchInDocumentQuery",void 0),cc([I({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:hc}})],fc.prototype,"page",void 0),cc([Ji({store:"reader"})],fc.prototype,"map",void 0),cc([Ji({store:"reader"})],fc.prototype,"toc",void 0),cc([Ji({store:"reader"})],fc.prototype,"visibleTopics",void 0),cc([Ji({store:"reader"})],fc.prototype,"currentPage",void 0),cc([Ji({store:"reader"})],fc.prototype,"scrollTarget",void 0),cc([I({attribute:!1})],fc.prototype,"readerServiceProvider",void 0),F("ft-reader-context")(fc);var dc=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 uc extends(hl(ln)){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(vl,ml)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(rn.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(rn.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}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.canAccessFeedback||this.canAccessRating?de`
1721
+ `}get stateManager(){return null==this._stateManager&&(this._stateManager=tc.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),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].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 ic(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 rc(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 oc(this.map,e))}))}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run((async()=>{if(null!=this.topicPivot){await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)||this.lastNotifiedNotFoundRelative===this.mapId+this.topicPivot?this.lastNotifiedNotFoundRelative=void 0:(this.dispatchEvent(new cc),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot)}else null!=this.tocId?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&await 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;401===e.status?this.dispatchEvent(new sc):403===e.status?this.dispatchEvent(new lc):404===e.status?this.dispatchEvent(new ac):this.dispatchEvent(new nc(t))}reloadBookmarks(){ll.reloadBookmarks()}async reloadRating(){var t,e;await(null===(t=this.stateManager.service)||void 0===t?void 0:t.reloadRating()),null===(e=this.stateManager.store)||void 0===e||e.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}}var dc;hc.styles=ec,fc([Ji({store:qs.name})],hc.prototype,"baseUrl",void 0),fc([I()],hc.prototype,"mapId",void 0),fc([I()],hc.prototype,"tocId",void 0),fc([I()],hc.prototype,"section",void 0),fc([I()],hc.prototype,"topicPivot",void 0),fc([I()],hc.prototype,"searchInDocumentQuery",void 0),fc([I({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:dc}})],hc.prototype,"page",void 0),fc([Ji({store:"reader"})],hc.prototype,"map",void 0),fc([Ji({store:"reader"})],hc.prototype,"toc",void 0),fc([Ji({store:"reader"})],hc.prototype,"visibleTopics",void 0),fc([Ji({store:"reader"})],hc.prototype,"currentPage",void 0),fc([Ji({store:"reader"})],hc.prototype,"scrollTarget",void 0),fc([I({attribute:!1})],hc.prototype,"readerServiceProvider",void 0),M("ft-reader-context")(hc);class uc extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}}class pc extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}}class yc extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}}class gc extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:t})}}class bc extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}}var vc=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 mc extends(dl(cn)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!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(ml,xl)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(nn.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(nn.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}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.canAccessFeedback||this.canAccessRating?de`
1719
1722
  <div class="ft-reader-feedback">
1720
1723
  ${this.hideTitle?pe:de`
1721
1724
  <ft-typography variant="title" part="main-title">
@@ -1735,11 +1738,11 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1735
1738
  ${this.renderRatingDate()}
1736
1739
  </ft-typography>
1737
1740
  </div>
1738
- `:pe}renderRatingDate(){const t=this.ratingDate;if(null==t)return vl.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return vl.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?vl.messages.ratedToday():vl.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return de`
1741
+ `:pe}renderRatingDate(){const t=this.ratingDate;if(null==t)return ml.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return ml.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?ml.messages.ratedToday():ml.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return de`
1739
1742
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1740
- ${Ds(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const o=e+1;return de`
1743
+ ${Ms(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const o=e+1;return de`
1741
1744
  <ft-button round part="rating-stars-${o}"
1742
- label="${vl.messages.starsRating(o)}"
1745
+ label="${ml.messages.starsRating(o)}"
1743
1746
  tooltipPosition="top"
1744
1747
  .iconVariant=${this.iconVariant}
1745
1748
  icon="${i?this.filledStarIcon:this.emptyStarIcon}"
@@ -1756,13 +1759,13 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1756
1759
  ?selected=${e}
1757
1760
  .iconVariant=${this.iconVariant}
1758
1761
  icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
1759
- ${vl.messages.like()}
1762
+ ${ml.messages.like()}
1760
1763
  </ft-switch-option>
1761
1764
  <ft-switch-option .value=${0}
1762
1765
  ?selected=${t}
1763
1766
  .iconVariant=${this.iconVariant}
1764
1767
  icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
1765
- ${vl.messages.dislike()}
1768
+ ${ml.messages.dislike()}
1766
1769
  </ft-switch-option>
1767
1770
  </ft-switch>
1768
1771
  `;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,o="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return de`
@@ -1771,53 +1774,65 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1771
1774
  part="rating rating-dichotomous">
1772
1775
  <ft-switch-option .value=${1}
1773
1776
  ?selected=${o}>
1774
- ${vl.messages.dichotomousYes()}
1777
+ ${ml.messages.dichotomousYes()}
1775
1778
  </ft-switch-option>
1776
1779
  <ft-switch-option .value=${0}
1777
1780
  ?selected=${i}>
1778
- ${vl.messages.dichotomousNo()}
1781
+ ${ml.messages.dichotomousNo()}
1779
1782
  </ft-switch-option>
1780
1783
  </ft-switch>
1781
- `}return pe}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=de`
1784
+ `}return pe}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,i,o,r;if(this.canAccessFeedback){const n=this.feedbackMailLinkBuilder(this.feedbackMessage);let a=de`
1782
1785
  <ft-button primary
1783
1786
  type="submit" name="submit"
1784
1787
  class="ft-reader-feedback--send-feedback"
1785
1788
  ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1786
1789
  part="send-feedback">
1787
- ${vl.messages.okButton()}
1790
+ ${ml.messages.okButton()}
1788
1791
  </ft-button>
1789
- `;return o&&(r=de`
1790
- <a class="ft-reader-feedback--feedback-link" href="${o}">
1791
- ${r}
1792
+ `;n&&(a=de`
1793
+ <a class="ft-reader-feedback--feedback-link" href="${n}">
1794
+ ${a}
1792
1795
  </a>
1793
- `),de`
1796
+ `);let s=this.withMoreOptionsButton&&((null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopics)||(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers))?de`
1797
+ <ft-button outlined
1798
+ type="button" name="more-options"
1799
+ class="ft-reader-feedback--more-options"
1800
+ @click="${this.onOpenMoreDetails}"
1801
+ part="more-options">
1802
+ ${ml.messages.moreOptionsButton()}
1803
+ </ft-button>
1804
+ `:pe;return de`
1794
1805
  <form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
1795
- @submit="${t=>this.onFormSubmitEvent(t,!!o)}">
1806
+ @submit="${t=>this.onFormSubmitEvent(t,!!n)}">
1796
1807
  <ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
1797
1808
  ${this.i18n(this.i18nProperties.feedbackSectionTitle)}
1798
1809
  </ft-typography>
1799
- ${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)?de`
1810
+ ${null==(null===(o=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===o?void 0:o.userId)&&(null===(r=this.configuration)||void 0===r?void 0:r.mailsSentByFluidTopicsForUnauthenticatedUsers)?de`
1800
1811
  <ft-text-field outlined name="email" type="email" autocomplete="email"
1801
1812
  class="ft-reader-feedback--from-input"
1802
- label=${vl.messages.feedbackfromEmail()}
1813
+ label=${ml.messages.feedbackfromEmail()}
1803
1814
  @change=${t=>this.from=t.detail.trim()}
1804
1815
  ?error=${this.from&&!this.validFromEmail()}
1805
- helper=${this.from&&!this.validFromEmail()?vl.messages.feedbackfromEmailInvalid():""}
1816
+ helper=${this.from&&!this.validFromEmail()?ml.messages.feedbackfromEmailInvalid():""}
1806
1817
  />
1807
1818
  `:pe}
1808
1819
  <ft-text-area outlined
1809
1820
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1810
- label="${vl.messages.feedbackInputLabel()}"
1821
+ label="${ml.messages.feedbackInputLabel()}"
1811
1822
  @live-change=${t=>this.feedbackMessage=t.detail.trim()}
1812
1823
  ></ft-text-area>
1813
- ${r}
1824
+ <div part="buttons-container">
1825
+ ${s}
1826
+ ${a}
1827
+ </div>
1814
1828
  </form>
1815
- `}return pe}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}}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}uc.elementDefinitions={"ft-button":js,"ft-typography":Da,"ft-switch":ys,"ft-switch-option":ds,"ft-text-area":Is,"ft-text-field":Sl},uc.styles=Ia,dc([I({type:Boolean})],uc.prototype,"editorMode",void 0),dc([I({type:Boolean})],uc.prototype,"hideTitle",void 0),dc([I({type:Boolean})],uc.prototype,"ratingAllowed",void 0),dc([I({attribute:!1})],uc.prototype,"i18nProperties",void 0),dc([I({attribute:!1})],uc.prototype,"ratingSummary",void 0),dc([I({attribute:!1})],uc.prototype,"session",void 0),dc([A(".ft-reader-feedback--feedback-input")],uc.prototype,"feedbackInput",void 0),dc([R()],uc.prototype,"from",void 0),dc([R()],uc.prototype,"feedbackMessage",void 0),dc([I()],uc.prototype,"iconVariant",void 0),dc([I()],uc.prototype,"emptyStarIcon",void 0),dc([I()],uc.prototype,"filledStarIcon",void 0),dc([I()],uc.prototype,"emptyLikeIcon",void 0),dc([I()],uc.prototype,"filledLikeIcon",void 0),dc([I()],uc.prototype,"emptyDislikeIcon",void 0),dc([I()],uc.prototype,"filledDislikeIcon",void 0),dc([Ji({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],uc.prototype,"configuration",void 0),dc([I()],uc.prototype,"feedbackMailLinkBuilder",void 0);const pc=gl.fromGwt("server");class yc{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${pc.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${r}&body=${n}`}}const gc=gl.build("inDesignerFeedbackComponent"),bc={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var vc=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 mc extends(hl(ln)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=rs.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 yc,this.i18nProperties={feedbackMainTitle:vl.properties.mapFeedbackMainTitle(),ratingSectionTitle:vl.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:vl.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:vl.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new n(100),this.sendRatingDebouncer=new n(500),this.addStore(Vs)}render(){return de`
1829
+ `}return pe}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 uc({message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}mc.elementDefinitions={"ft-button":js,"ft-typography":Ma,"ft-switch":gs,"ft-switch-option":us,"ft-text-area":Rs,"ft-text-field":Nl},mc.styles=Ra,vc([I({type:Boolean})],mc.prototype,"editorMode",void 0),vc([I({type:Boolean})],mc.prototype,"hideTitle",void 0),vc([I({type:Boolean})],mc.prototype,"withMoreOptionsButton",void 0),vc([I({type:Boolean})],mc.prototype,"ratingAllowed",void 0),vc([I({attribute:!1})],mc.prototype,"i18nProperties",void 0),vc([I({attribute:!1})],mc.prototype,"ratingSummary",void 0),vc([I({attribute:!1})],mc.prototype,"session",void 0),vc([A(".ft-reader-feedback--feedback-input")],mc.prototype,"feedbackInput",void 0),vc([R()],mc.prototype,"from",void 0),vc([R()],mc.prototype,"feedbackMessage",void 0),vc([I()],mc.prototype,"iconVariant",void 0),vc([I()],mc.prototype,"emptyStarIcon",void 0),vc([I()],mc.prototype,"filledStarIcon",void 0),vc([I()],mc.prototype,"emptyLikeIcon",void 0),vc([I()],mc.prototype,"filledLikeIcon",void 0),vc([I()],mc.prototype,"emptyDislikeIcon",void 0),vc([I()],mc.prototype,"filledDislikeIcon",void 0),vc([Ji({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],mc.prototype,"configuration",void 0),vc([I()],mc.prototype,"feedbackMailLinkBuilder",void 0);const xc=bl.fromGwt("server");class wc{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${xc.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(o=this.configuration)||void 0===o?void 0:o.recipients.join(",")}?subject=${r}&body=${n}`}}const Oc=bl.build("inDesignerFeedbackComponent"),Sc={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Nc=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 $c extends(dl(cn)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=ns.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 wc,this.i18nProperties={feedbackMainTitle:ml.properties.mapFeedbackMainTitle(),ratingSectionTitle:ml.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:ml.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:ml.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new n(100),this.sendRatingDebouncer=new n(500),this.addStore(qs)}render(){return de`
1816
1830
  <ft-reader-feedback
1817
1831
  ratingAllowed
1818
1832
  .i18nProperties=${this.i18nProperties}
1819
1833
  .editorMode=${this.editorMode}
1820
1834
  ?hideTitle=${this.hideTitle}
1835
+ ?withMoreOptionsButton=${this.withMoreOptionsButton}
1821
1836
  .ratingSummary=${this.ratingSummary}
1822
1837
  .session=${this.session}
1823
1838
  .iconVariant=${this.iconVariant}
@@ -1831,13 +1846,15 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1831
1846
  @rate=${this.rate}
1832
1847
  @send-feedback=${this.sendFeedback}
1833
1848
  @mailer-feedback=${this.onMailerFeedbackSent}
1849
+ @open-more-options=${this.openMoreOptions}
1834
1850
  ></ft-reader-feedback>
1835
- `}update(t){var e,i,o,r;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(gc,bc),["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 De({type:"error",message:vl.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new De({type:"info",message:gc.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new De({type:"info",message:gc.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new De({type:"info",message:vl.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new De({type:"error",message:vl.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0}))}}mc.elementDefinitions={"ft-reader-feedback":uc},vc([Ji({store:Vs.name})],mc.prototype,"session",void 0),vc([Ji({store:"reader"})],mc.prototype,"map",void 0),vc([Ji({store:Vs.name})],mc.prototype,"editorMode",void 0),vc([Ji({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],mc.prototype,"configuration",void 0),vc([R()],mc.prototype,"ratingSummary",void 0),vc([I({type:Boolean})],mc.prototype,"hideTitle",void 0),vc([I()],mc.prototype,"iconVariant",void 0),vc([I()],mc.prototype,"emptyStarIcon",void 0),vc([I()],mc.prototype,"filledStarIcon",void 0),vc([I()],mc.prototype,"emptyLikeIcon",void 0),vc([I()],mc.prototype,"filledLikeIcon",void 0),vc([I()],mc.prototype,"emptyDislikeIcon",void 0),vc([I()],mc.prototype,"filledDislikeIcon",void 0),vc([A("ft-reader-feedback")],mc.prototype,"readerFeedback",void 0),vc([bl(pc.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],mc.prototype,"mailSubject",void 0);var xc=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 wc extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const Oc=Symbol("registerInterval");class Sc extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Oc]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[Oc]):this.dispatchEvent(new wc)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Oc,xc([R()],i.prototype,"tocNode",void 0),xc([R()],i.prototype,"disableContextInteractions",void 0),i}(ln)){}var Nc=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 $c extends(hl(Sc)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.iconVariant=rs.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 yc,this.i18nProperties={feedbackMainTitle:vl.properties.topicFeedbackMainTitle(),ratingSectionTitle:vl.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:vl.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:vl.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new n(100),this.sendRatingDebouncer=new n(500),this.addStore(Vs)}render(){var t;return de`
1851
+ `}update(t){var e,i,o,r;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(Oc,Sc),["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;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)&&await this.fetchRatingSummary()}))}async fetchRatingSummary(){var t;this.ratingSummary=await(null===(t=this.service)||void 0===t?void 0:t.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 De({type:"error",message:ml.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new De({type:"info",message:Oc.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new De({type:"info",message:Oc.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(e=this.service)||void 0===e?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new De({type:"info",message:ml.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new De({type:"error",message:ml.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new bc)}openMoreOptions(){var t,e,i;this.dispatchEvent(new yc({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:(null===(t=this.map)||void 0===t?void 0:t.metadata)||[],ratingType:(null===(e=this.ratingSummary)||void 0===e?void 0:e.type)||Dl.NO_RATING,ratingValue:null===(i=this.ratingSummary)||void 0===i?void 0:i.rating}))}}$c.elementDefinitions={"ft-reader-feedback":mc},Nc([Ji({store:qs.name})],$c.prototype,"session",void 0),Nc([Ji({store:"reader"})],$c.prototype,"map",void 0),Nc([Ji({store:qs.name})],$c.prototype,"editorMode",void 0),Nc([Ji({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],$c.prototype,"configuration",void 0),Nc([R()],$c.prototype,"ratingSummary",void 0),Nc([I({type:Boolean})],$c.prototype,"hideTitle",void 0),Nc([I({type:Boolean})],$c.prototype,"withMoreOptionsButton",void 0),Nc([I()],$c.prototype,"iconVariant",void 0),Nc([I()],$c.prototype,"emptyStarIcon",void 0),Nc([I()],$c.prototype,"filledStarIcon",void 0),Nc([I()],$c.prototype,"emptyLikeIcon",void 0),Nc([I()],$c.prototype,"filledLikeIcon",void 0),Nc([I()],$c.prototype,"emptyDislikeIcon",void 0),Nc([I()],$c.prototype,"filledDislikeIcon",void 0),Nc([A("ft-reader-feedback")],$c.prototype,"readerFeedback",void 0),Nc([vl(xc.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],$c.prototype,"mailSubject",void 0),Nc([Qi({eventName:"rating-changed"})],$c.prototype,"fetchRatingSummary",null);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 Ec extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const kc=Symbol("registerInterval");class Ic extends(function(t){var e;class i extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[kc]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[kc]):this.dispatchEvent(new Ec)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=kc,Cc([R()],i.prototype,"tocNode",void 0),Cc([R()],i.prototype,"disableContextInteractions",void 0),i}(cn)){}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 Uc extends(dl(Ic)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=ns.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 wc,this.i18nProperties={feedbackMainTitle:ml.properties.topicFeedbackMainTitle(),ratingSectionTitle:ml.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:ml.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:ml.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new n(100),this.sendRatingDebouncer=new n(500),this.addStore(qs)}render(){var t;return de`
1836
1852
  <ft-reader-feedback
1837
1853
  .i18nProperties=${this.i18nProperties}
1838
1854
  ?ratingAllowed=${null===(t=this.tocNode)||void 0===t?void 0:t.hasRating}
1839
1855
  .editorMode=${this.editorMode}
1840
1856
  ?hideTitle=${this.hideTitle}
1857
+ ?withMoreOptionsButton=${this.withMoreOptionsButton}
1841
1858
  .ratingSummary=${this.ratingSummary}
1842
1859
  .session=${this.session}
1843
1860
  .iconVariant=${this.iconVariant}
@@ -1851,5 +1868,6 @@ const{D:Rs}=Ot,Us=()=>document.createComment(""),Ls=(t,e,i)=>{const o=t._$AA.par
1851
1868
  @rate=${this.rate}
1852
1869
  @send-feedback=${this.sendFeedback}
1853
1870
  @mailer-feedback=${this.onMailerFeedbackSent}
1871
+ @open-more-options=${this.openMoreOptions}
1854
1872
  ></ft-reader-feedback>
1855
- `}update(t){var e,i,o,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(gc,bc),["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 De({type:"error",message:vl.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new De({type:"info",message:gc.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 De({type:"info",message:vl.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new De({type:"info",message:gc.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new De({type:"error",message:vl.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new CustomEvent("ft-reader-mailer-topic-feedback",{detail:{topic:t},composed:!0,bubbles:!0}))}}$c.elementDefinitions={"ft-reader-feedback":uc},Nc([Ji({store:Vs.name})],$c.prototype,"session",void 0),Nc([Ji({store:"reader"})],$c.prototype,"map",void 0),Nc([Ji({store:Vs.name})],$c.prototype,"editorMode",void 0),Nc([Ji({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],$c.prototype,"configuration",void 0),Nc([R()],$c.prototype,"ratingSummary",void 0),Nc([I({type:Boolean})],$c.prototype,"hideTitle",void 0),Nc([I()],$c.prototype,"iconVariant",void 0),Nc([I()],$c.prototype,"emptyStarIcon",void 0),Nc([I()],$c.prototype,"filledStarIcon",void 0),Nc([I()],$c.prototype,"emptyLikeIcon",void 0),Nc([I()],$c.prototype,"filledLikeIcon",void 0),Nc([I()],$c.prototype,"emptyDislikeIcon",void 0),Nc([I()],$c.prototype,"filledDislikeIcon",void 0),Nc([A("ft-reader-feedback")],$c.prototype,"readerFeedback",void 0),Nc([bl(pc.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]})))],$c.prototype,"mailSubject",void 0),F("ft-reader-map-feedback")(mc),F("ft-reader-topic-feedback")($c),t.FtReaderFeedbackCssVariables=ka,t.FtReaderMapFeedback=mc,t.FtReaderTopicFeedback=$c,t.styles=Ia}({});
1873
+ `}update(t){var e,i,o,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(Oc,Sc),["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;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)&&await this.fetchRatingSummary()}))}async fetchRatingSummary(){var t;this.ratingSummary=await(null===(t=this.service)||void 0===t?void 0:t.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 De({type:"error",message:ml.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new De({type:"info",message:Oc.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 De({type:"info",message:ml.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new De({type:"info",message:Oc.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new De({type:"error",message:ml.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new gc(t))}openMoreOptions(){var t,e,i,o,r,n,a,s;this.dispatchEvent(new pc({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:null!==(e=null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocNode.tocId))&&void 0!==e?e:"",mapMetadata:(null===(i=this.map)||void 0===i?void 0:i.metadata)||[],breadcrumb:(null===(r=null===(o=this.stateManager)||void 0===o?void 0:o.service)||void 0===r?void 0:r.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:((null===(n=this.tocNode)||void 0===n?void 0:n.hasRating)?null===(a=this.ratingSummary)||void 0===a?void 0:a.type:Dl.NO_RATING)||Dl.NO_RATING,ratingValue:null===(s=this.ratingSummary)||void 0===s?void 0:s.rating}))}}Uc.elementDefinitions={"ft-reader-feedback":mc},Rc([Ji({store:qs.name})],Uc.prototype,"session",void 0),Rc([Ji({store:"reader"})],Uc.prototype,"map",void 0),Rc([Ji({store:qs.name})],Uc.prototype,"editorMode",void 0),Rc([Ji({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Uc.prototype,"configuration",void 0),Rc([R()],Uc.prototype,"ratingSummary",void 0),Rc([I({type:Boolean})],Uc.prototype,"hideTitle",void 0),Rc([I({type:Boolean})],Uc.prototype,"withMoreOptionsButton",void 0),Rc([I()],Uc.prototype,"iconVariant",void 0),Rc([I()],Uc.prototype,"emptyStarIcon",void 0),Rc([I()],Uc.prototype,"filledStarIcon",void 0),Rc([I()],Uc.prototype,"emptyLikeIcon",void 0),Rc([I()],Uc.prototype,"filledLikeIcon",void 0),Rc([I()],Uc.prototype,"emptyDislikeIcon",void 0),Rc([I()],Uc.prototype,"filledDislikeIcon",void 0),Rc([A("ft-reader-feedback")],Uc.prototype,"readerFeedback",void 0),Rc([vl(xc.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]})))],Uc.prototype,"mailSubject",void 0),Rc([Qi({eventName:"rating-changed"})],Uc.prototype,"fetchRatingSummary",null),M("ft-reader-map-feedback")($c),M("ft-reader-topic-feedback")(Uc),t.FtReaderFeedbackCssVariables=Ia,t.FtReaderMapFeedback=$c,t.FtReaderTopicFeedback=Uc,t.styles=Ra}({});