@fluid-topics/ft-reader-context 1.1.49 → 1.1.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let f=o.call(r,t);f||(f=u(t),e.call(r,t,f)),this===window.customElements&&(a.set(i,l),l.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),p(t,l,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){g.push(this),r.upgrade.apply(r,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),i.set(e,o),e},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!l(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),l(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},u=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,i=r._getDefinition(e);return i?p(o,i):n.set(o,r),o}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n,i),o.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),o.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const e=this.getAttribute(i);o.call(this,i,t,e)}else n.call(this,i,r)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):d(o)},p=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),i.set(t,e),c=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){g.push(this),o.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===i.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),i=e.get(r)||[];this[+o]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=i.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(xi){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,t)}}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,o=window.customElements.get,r=window.customElements,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let f=o.call(r,t);f||(f=u(t),e.call(r,t,f)),this===window.customElements&&(a.set(i,l),l.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),p(t,l,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){y.push(this),r.upgrade.apply(r,arguments),y.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let o=this._whenDefinedPromises.get(t);return void 0===o&&(o={},o.promise=new Promise((t=>o.resolve=t)),this._whenDefinedPromises.set(t,o)),o.promise}_upgradeWhenDefined(t,e,o){let r=this._awaitingUpgrade.get(e);r||this._awaitingUpgrade.set(e,r=new Set),o?r.add(t):r.delete(t)}},window.HTMLElement=function(){let e=c;if(e)return c=void 0,e;const o=a.get(this.constructor);if(!o)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],o.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),i.set(e,o),e},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!l(e)){const t=y[y.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),l(e)||(e=s.get(e)?.getRootNode()||document)}return e.customElements},u=e=>class{static get formAssociated(){return!0}constructor(){const o=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(o,HTMLElement.prototype);const r=f(o)||window.customElements,i=r._getDefinition(e);return i?p(o,i):n.set(o,r),o}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,e,o)=>{if(0===e.size||void 0===o)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);r.call(this,n,i),o.call(this,n,t,i)}else r.call(this,n,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);i.call(this,r),o.call(this,r,t,null)}else i.call(this,r)});const n=t.prototype.toggleAttribute;n&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(e.has(i)){const t=this.getAttribute(i);n.call(this,i,r);const e=this.getAttribute(i);o.call(this,i,t,e)}else n.call(this,i,r)})},d=e=>{const o=Object.getPrototypeOf(e);if(o!==window.HTMLElement)return o===t?Object.setPrototypeOf(e,window.HTMLElement):d(o)},p=(t,e,o=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),i.set(t,e),c=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.attributeChangedCallback&&e.observedAttributes.forEach((o=>{t.hasAttribute(o)&&e.attributeChangedCallback.call(t,o,null,t.getAttribute(o))})),o&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=g.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let y=[document];const b=(t,e,o=void 0)=>{const r=(o?Object.getPrototypeOf(o):t.prototype)[e];t.prototype[e]=function(){y.push(this);const t=r.apply(o||this,arguments);return void 0!==t&&s.set(t,this),y.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,e)=>{const o=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...o,set(t){y.push(this),o.set.call(this,t),y.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,o=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...o){const r=e.call(this,...o);return t.set(r,this),r},o.forEach((e=>{const o=window.ElementInternals.prototype,r=o[e];o[e]=function(...e){const o=t.get(this);if(!0===i.get(o).formAssociated)return r?.call(this,...e);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,o)=>{const r=t.getAttribute("name"),i=e.get(r)||[];this[+o]=t,i.push(t),e.set(r,i)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new r(t))}))}namedItem(t){return this[t]}}const a=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=a.get.call(this,[]),e=[];for(const o of t){const t=i.get(o);t&&!0!==t.formAssociated||e.push(o)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ci){const t=window.customElements.define;window.customElements.define=(e,o,r)=>{if(null!==o)try{t.bind(window.customElements)(e,o,r)}catch(t){console.info(e,o,r,t)}}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -22,13 +22,13 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */,{is:s,defineProperty:c,getOwnPropertyDescriptor:l,getOwnPropertyNames:f,getOwnPropertySymbols:u,getPrototypeOf:h}=Object,d=globalThis,p=d.trustedTypes,y=p?p.emptyScript:"",g=d.reactiveElementPolyfillSupport,b=(t,e)=>t,m={toAttribute(t,e){switch(e){case Boolean:t=t?y:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},v=(t,e)=>!s(t,e),O={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:v};Symbol.metadata??=Symbol("metadata"),d.litPropertyMetadata??=new WeakMap;let S=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=O){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&c(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:i}=l(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const n=r?.call(this);i.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??O}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=h(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,e=[...f(t),...u(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,r)=>{if(o)t.adoptedStyleSheets=r.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of r){const r=document.createElement("style"),i=e.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=o.cssText,t.appendChild(r)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const i=(void 0!==o.converter?.toAttribute?o.converter:m).toAttribute(e,o.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=r,this[r]=i.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,r=!1,i){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??v)(r?i:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};S.elementStyles=[],S.shadowRootOptions={mode:"open"},S[b("elementProperties")]=new Map,S[b("finalized")]=new Map,g?.({ReactiveElement:S}),(d.reactiveElementVersions??=[]).push("2.0.2");
25
+ */,{is:s,defineProperty:c,getOwnPropertyDescriptor:l,getOwnPropertyNames:f,getOwnPropertySymbols:u,getPrototypeOf:h}=Object,d=globalThis,p=d.trustedTypes,g=p?p.emptyScript:"",y=d.reactiveElementPolyfillSupport,b=(t,e)=>t,m={toAttribute(t,e){switch(e){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},v=(t,e)=>!s(t,e),O={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:v};Symbol.metadata??=Symbol("metadata"),d.litPropertyMetadata??=new WeakMap;let w=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=O){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&c(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:i}=l(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const n=r?.call(this);i.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??O}static _$Ei(){if(this.hasOwnProperty(b("elementProperties")))return;const t=h(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(b("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(b("properties"))){const t=this.properties,e=[...f(t),...u(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,r)=>{if(o)t.adoptedStyleSheets=r.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const o of r){const r=document.createElement("style"),i=e.litNonce;void 0!==i&&r.setAttribute("nonce",i),r.textContent=o.cssText,t.appendChild(r)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const i=(void 0!==o.converter?.toAttribute?o.converter:m).toAttribute(e,o.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=r,this[r]=i.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,r=!1,i){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??v)(r?i:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[b("elementProperties")]=new Map,w[b("finalized")]=new Map,y?.({ReactiveElement:w}),(d.reactiveElementVersions??=[]).push("2.0.2");
26
26
  /**
27
27
  * @license
28
28
  * Copyright 2017 Google LLC
29
29
  * SPDX-License-Identifier: BSD-3-Clause
30
30
  */
31
- const w=globalThis,x=w.trustedTypes,N=x?x.createPolicy("lit-html",{createHTML:t=>t}):void 0,C="$lit$",E=`lit$${(Math.random()+"").slice(9)}$`,R="?"+E,I=`<${R}>`,L=document,U=()=>L.createComment(""),W=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,k=t=>A(t)||"function"==typeof t?.[Symbol.iterator],F="[ \t\n\f\r]",P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,B=/>/g,T=RegExp(`>|${F}(?:([^\\s"'>=/]+)(${F}*=${F}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),D=/'/g,M=/"/g,z=/^(?:script|style|textarea|title)$/i,K=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),H=new WeakMap,Z=L.createTreeWalker(L,129);function $(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==N?N.createHTML(e):e}const G=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":"",a=P;for(let e=0;e<o;e++){const o=t[e];let s,c,l=-1,f=0;for(;f<o.length&&(a.lastIndex=f,c=a.exec(o),null!==c);)f=a.lastIndex,a===P?"!--"===c[1]?a=_:void 0!==c[1]?a=B:void 0!==c[2]?(z.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=T):void 0!==c[3]&&(a=T):a===T?">"===c[0]?(a=i??P,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?T:'"'===c[3]?M:D):a===M||a===D?a=T:a===_||a===B?a=P:(a=T,i=void 0);const u=a===T&&t[e+1].startsWith("/>")?" ":"";n+=a===P?o+I:l>=0?(r.push(s),o.slice(0,l)+C+o.slice(l)+E+u):o+E+(-2===l?e:u)}return[$(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),r]};let V=class t{constructor({strings:e,_$litType$:o},r){let i;this.parts=[];let n=0,a=0;const s=e.length-1,c=this.parts,[l,f]=G(e,o);if(this.el=t.createElement(l,r),Z.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=Z.nextNode())&&c.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(C)){const e=f[a++],o=i.getAttribute(t).split(E),r=/([.?@])?(.*)/.exec(e);c.push({type:1,index:n,name:r[2],strings:o,ctor:"."===r[1]?Q:"?"===r[1]?tt:"@"===r[1]?et:X}),i.removeAttribute(t)}else t.startsWith(E)&&(c.push({type:6,index:n}),i.removeAttribute(t));if(z.test(i.tagName)){const t=i.textContent.split(E),e=t.length-1;if(e>0){i.textContent=x?x.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],U()),Z.nextNode(),c.push({type:2,index:++n});i.append(t[e],U())}}}else if(8===i.nodeType)if(i.data===R)c.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(E,t+1));)c.push({type:7,index:n}),t+=E.length-1}n++}}static createElement(t,e){const o=L.createElement("template");return o.innerHTML=t,o}};function q(t,e,o=t,r){if(e===K)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=W(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=i:o._$Cl=i),void 0!==i&&(e=q(t,i._$AS(t,e.values),i,r)),e}let Y=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??L).importNode(e,!0);Z.currentNode=r;let i=Z.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new J(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new ot(i,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(i=Z.nextNode(),n++)}return Z.currentNode=L,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},J=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=q(this,t,e),W(t)?t===j||null==t||""===t?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==K&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):k(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!==j&&W(this._$AH)?this._$AA.nextSibling.data=t:this.$(L.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=V.createElement($(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new Y(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new V(t)),e}T(e){A(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,i=0;for(const n of e)i===o.length?o.push(r=new t(this.k(U()),this.k(U()),this,this.options)):r=o[i],r._$AI(n),i++;i<o.length&&(this._$AR(r&&r._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},X=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=j,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=j}_$AI(t,e=this,o,r){const i=this.strings;let n=!1;if(void 0===i)t=q(this,t,e,0),n=!W(t)||t!==this._$AH&&t!==K,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=q(this,r[o+a],e,a),s===K&&(s=this._$AH[a]),n||=!W(s)||s!==this._$AH[a],s===j?t=j:t!==j&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Q=class extends X{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===j?void 0:t}},tt=class extends X{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==j)}},et=class extends X{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=q(this,t,e,0)??j)===K)return;const o=this._$AH,r=t===j&&o!==j||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==j&&(o===j||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ot=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){q(this,t)}};const rt={j:C,P:E,A:R,C:1,M:G,L:Y,R:k,V:q,D:J,I:X,H:tt,N:et,U:Q,B:ot},it=w.litHtmlPolyfillSupport;it?.(V,J),(w.litHtmlVersions??=[]).push("3.1.0");
31
+ const S=globalThis,x=S.trustedTypes,C=x?x.createPolicy("lit-html",{createHTML:t=>t}):void 0,N="$lit$",E=`lit$${(Math.random()+"").slice(9)}$`,R="?"+E,I=`<${R}>`,L=document,U=()=>L.createComment(""),W=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,A=t=>k(t)||"function"==typeof t?.[Symbol.iterator],B="[ \t\n\f\r]",P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,_=/>/g,T=RegExp(`>|${B}(?:([^\\s"'>=/]+)(${B}*=${B}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),D=/'/g,M=/"/g,z=/^(?:script|style|textarea|title)$/i,K=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),H=new WeakMap,Z=L.createTreeWalker(L,129);function $(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==C?C.createHTML(e):e}const G=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":"",a=P;for(let e=0;e<o;e++){const o=t[e];let s,c,l=-1,f=0;for(;f<o.length&&(a.lastIndex=f,c=a.exec(o),null!==c);)f=a.lastIndex,a===P?"!--"===c[1]?a=F:void 0!==c[1]?a=_:void 0!==c[2]?(z.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=T):void 0!==c[3]&&(a=T):a===T?">"===c[0]?(a=i??P,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?T:'"'===c[3]?M:D):a===M||a===D?a=T:a===F||a===_?a=P:(a=T,i=void 0);const u=a===T&&t[e+1].startsWith("/>")?" ":"";n+=a===P?o+I:l>=0?(r.push(s),o.slice(0,l)+N+o.slice(l)+E+u):o+E+(-2===l?e:u)}return[$(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),r]};let V=class t{constructor({strings:e,_$litType$:o},r){let i;this.parts=[];let n=0,a=0;const s=e.length-1,c=this.parts,[l,f]=G(e,o);if(this.el=t.createElement(l,r),Z.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=Z.nextNode())&&c.length<s;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(N)){const e=f[a++],o=i.getAttribute(t).split(E),r=/([.?@])?(.*)/.exec(e);c.push({type:1,index:n,name:r[2],strings:o,ctor:"."===r[1]?Q:"?"===r[1]?tt:"@"===r[1]?et:X}),i.removeAttribute(t)}else t.startsWith(E)&&(c.push({type:6,index:n}),i.removeAttribute(t));if(z.test(i.tagName)){const t=i.textContent.split(E),e=t.length-1;if(e>0){i.textContent=x?x.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],U()),Z.nextNode(),c.push({type:2,index:++n});i.append(t[e],U())}}}else if(8===i.nodeType)if(i.data===R)c.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(E,t+1));)c.push({type:7,index:n}),t+=E.length-1}n++}}static createElement(t,e){const o=L.createElement("template");return o.innerHTML=t,o}};function q(t,e,o=t,r){if(e===K)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=W(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=i:o._$Cl=i),void 0!==i&&(e=q(t,i._$AS(t,e.values),i,r)),e}let Y=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??L).importNode(e,!0);Z.currentNode=r;let i=Z.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new J(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new ot(i,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(i=Z.nextNode(),n++)}return Z.currentNode=L,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},J=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=q(this,t,e),W(t)?t===j||null==t||""===t?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==K&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):A(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!==j&&W(this._$AH)?this._$AA.nextSibling.data=t:this.$(L.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=V.createElement($(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new Y(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new V(t)),e}T(e){k(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,i=0;for(const n of e)i===o.length?o.push(r=new t(this.k(U()),this.k(U()),this,this.options)):r=o[i],r._$AI(n),i++;i<o.length&&(this._$AR(r&&r._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},X=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=j,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=j}_$AI(t,e=this,o,r){const i=this.strings;let n=!1;if(void 0===i)t=q(this,t,e,0),n=!W(t)||t!==this._$AH&&t!==K,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=q(this,r[o+a],e,a),s===K&&(s=this._$AH[a]),n||=!W(s)||s!==this._$AH[a],s===j?t=j:t!==j&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Q=class extends X{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===j?void 0:t}},tt=class extends X{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==j)}},et=class extends X{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=q(this,t,e,0)??j)===K)return;const o=this._$AH,r=t===j&&o!==j||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==j&&(o===j||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},ot=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){q(this,t)}};const rt={j:N,P:E,A:R,C:1,M:G,L:Y,R:A,V:q,D:J,I:X,H:tt,N:et,U:Q,B:ot},it=S.litHtmlPolyfillSupport;it?.(V,J),(S.litHtmlVersions??=[]).push("3.1.0");
32
32
  /**
33
33
  * @license
34
34
  * Copyright 2019 Google LLC
@@ -39,18 +39,18 @@ const nt=globalThis,at=nt.ShadowRoot&&(void 0===nt.ShadyCSS||nt.ShadyCSS.nativeS
39
39
  * @license
40
40
  * Copyright 2017 Google LLC
41
41
  * SPDX-License-Identifier: BSD-3-Clause
42
- */,{is:pt,defineProperty:yt,getOwnPropertyDescriptor:gt,getOwnPropertyNames:bt,getOwnPropertySymbols:mt,getPrototypeOf:vt}=Object,Ot=globalThis,St=Ot.trustedTypes,wt=St?St.emptyScript:"",xt=Ot.reactiveElementPolyfillSupport,Nt=(t,e)=>t,Ct={toAttribute(t,e){switch(e){case Boolean:t=t?wt:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},Et=(t,e)=>!pt(t,e),Rt={attribute:!0,type:String,converter:Ct,reflect:!1,hasChanged:Et};Symbol.metadata??=Symbol("metadata"),Ot.litPropertyMetadata??=new WeakMap;let It=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=Rt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&yt(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:i}=gt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const n=r?.call(this);i.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Rt}static _$Ei(){if(this.hasOwnProperty(Nt("elementProperties")))return;const t=vt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Nt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Nt("properties"))){const t=this.properties,e=[...bt(t),...mt(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(dt(t))}else void 0!==t&&e.push(dt(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ht(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const i=(void 0!==o.converter?.toAttribute?o.converter:Ct).toAttribute(e,o.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Ct;this._$Em=r,this[r]=i.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,r=!1,i){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Et)(r?i:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};It.elementStyles=[],It.shadowRootOptions={mode:"open"},It[Nt("elementProperties")]=new Map,It[Nt("finalized")]=new Map,xt?.({ReactiveElement:It}),(Ot.reactiveElementVersions??=[]).push("2.0.2");
42
+ */,{is:pt,defineProperty:gt,getOwnPropertyDescriptor:yt,getOwnPropertyNames:bt,getOwnPropertySymbols:mt,getPrototypeOf:vt}=Object,Ot=globalThis,wt=Ot.trustedTypes,St=wt?wt.emptyScript:"",xt=Ot.reactiveElementPolyfillSupport,Ct=(t,e)=>t,Nt={toAttribute(t,e){switch(e){case Boolean:t=t?St:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},Et=(t,e)=>!pt(t,e),Rt={attribute:!0,type:String,converter:Nt,reflect:!1,hasChanged:Et};Symbol.metadata??=Symbol("metadata"),Ot.litPropertyMetadata??=new WeakMap;let It=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=Rt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);void 0!==r&&gt(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){const{get:r,set:i}=yt(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const n=r?.call(this);i.call(this,e),this.requestUpdate(t,n,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Rt}static _$Ei(){if(this.hasOwnProperty(Ct("elementProperties")))return;const t=vt(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Ct("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ct("properties"))){const t=this.properties,e=[...bt(t),...mt(t)];for(const o of e)this.createProperty(o,t[o])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,o]of e)this.elementProperties.set(t,o)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const o=this._$Eu(t,e);void 0!==o&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(dt(t))}else void 0!==t&&e.push(dt(t));return e}static _$Eu(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$E_??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ht(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(void 0!==r&&!0===o.reflect){const i=(void 0!==o.converter?.toAttribute?o.converter:Nt).toAttribute(e,o.type);this._$Em=t,null==i?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){const o=this.constructor,r=o._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=o.getPropertyOptions(r),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Nt;this._$Em=r,this[r]=i.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,o,r=!1,i){if(void 0!==t){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Et)(r?i:this[t],e))return;this.C(t,e,o)}!1===this.isUpdatePending&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,o]of t)!0!==o.wrapped||this._$AL.has(e)||void 0===this[e]||this.C(e,this[e],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$ET()}catch(e){throw t=!1,this._$ET(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EO(t,this[t]))),this._$ET()}updated(t){}firstUpdated(t){}};It.elementStyles=[],It.shadowRootOptions={mode:"open"},It[Ct("elementProperties")]=new Map,It[Ct("finalized")]=new Map,xt?.({ReactiveElement:It}),(Ot.reactiveElementVersions??=[]).push("2.0.2");
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const Lt=globalThis,Ut=Lt.trustedTypes,Wt=Ut?Ut.createPolicy("lit-html",{createHTML:t=>t}):void 0,At="$lit$",kt=`lit$${(Math.random()+"").slice(9)}$`,Ft="?"+kt,Pt=`<${Ft}>`,_t=document,Bt=()=>_t.createComment(""),Tt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Dt=Array.isArray,Mt=t=>Dt(t)||"function"==typeof t?.[Symbol.iterator],zt="[ \t\n\f\r]",Kt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,jt=/-->/g,Ht=/>/g,Zt=RegExp(`>|${zt}(?:([^\\s"'>=/]+)(${zt}*=${zt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),$t=/'/g,Gt=/"/g,Vt=/^(?:script|style|textarea|title)$/i,qt=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Yt=qt(1),Jt=qt(2),Xt=Symbol.for("lit-noChange"),Qt=Symbol.for("lit-nothing"),te=new WeakMap,ee=_t.createTreeWalker(_t,129);function oe(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Wt?Wt.createHTML(e):e}const re=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":"",a=Kt;for(let e=0;e<o;e++){const o=t[e];let s,c,l=-1,f=0;for(;f<o.length&&(a.lastIndex=f,c=a.exec(o),null!==c);)f=a.lastIndex,a===Kt?"!--"===c[1]?a=jt:void 0!==c[1]?a=Ht:void 0!==c[2]?(Vt.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=Zt):void 0!==c[3]&&(a=Zt):a===Zt?">"===c[0]?(a=i??Kt,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?Zt:'"'===c[3]?Gt:$t):a===Gt||a===$t?a=Zt:a===jt||a===Ht?a=Kt:(a=Zt,i=void 0);const u=a===Zt&&t[e+1].startsWith("/>")?" ":"";n+=a===Kt?o+Pt:l>=0?(r.push(s),o.slice(0,l)+At+o.slice(l)+kt+u):o+kt+(-2===l?e:u)}return[oe(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),r]};class ie{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let i=0,n=0;const a=t.length-1,s=this.parts,[c,l]=re(t,e);if(this.el=ie.createElement(c,o),ee.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=ee.nextNode())&&s.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(At)){const e=l[n++],o=r.getAttribute(t).split(kt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:i,name:a[2],strings:o,ctor:"."===a[1]?le:"?"===a[1]?fe:"@"===a[1]?ue:ce}),r.removeAttribute(t)}else t.startsWith(kt)&&(s.push({type:6,index:i}),r.removeAttribute(t));if(Vt.test(r.tagName)){const t=r.textContent.split(kt),e=t.length-1;if(e>0){r.textContent=Ut?Ut.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],Bt()),ee.nextNode(),s.push({type:2,index:++i});r.append(t[e],Bt())}}}else if(8===r.nodeType)if(r.data===Ft)s.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(kt,t+1));)s.push({type:7,index:i}),t+=kt.length-1}i++}}static createElement(t,e){const o=_t.createElement("template");return o.innerHTML=t,o}}function ne(t,e,o=t,r){if(e===Xt)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=Tt(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=i:o._$Cl=i),void 0!==i&&(e=ne(t,i._$AS(t,e.values),i,r)),e}let ae=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??_t).importNode(e,!0);ee.currentNode=r;let i=ee.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new se(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new he(i,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(i=ee.nextNode(),n++)}return ee.currentNode=_t,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},se=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=Qt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ne(this,t,e),Tt(t)?t===Qt||null==t||""===t?(this._$AH!==Qt&&this._$AR(),this._$AH=Qt):t!==this._$AH&&t!==Xt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):Mt(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!==Qt&&Tt(this._$AH)?this._$AA.nextSibling.data=t:this.$(_t.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ie.createElement(oe(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new ae(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=te.get(t.strings);return void 0===e&&te.set(t.strings,e=new ie(t)),e}T(e){Dt(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,i=0;for(const n of e)i===o.length?o.push(r=new t(this.k(Bt()),this.k(Bt()),this,this.options)):r=o[i],r._$AI(n),i++;i<o.length&&(this._$AR(r&&r._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},ce=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=Qt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Qt}_$AI(t,e=this,o,r){const i=this.strings;let n=!1;if(void 0===i)t=ne(this,t,e,0),n=!Tt(t)||t!==this._$AH&&t!==Xt,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=ne(this,r[o+a],e,a),s===Xt&&(s=this._$AH[a]),n||=!Tt(s)||s!==this._$AH[a],s===Qt?t=Qt:t!==Qt&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===Qt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},le=class extends ce{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===Qt?void 0:t}},fe=class extends ce{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==Qt)}},ue=class extends ce{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=ne(this,t,e,0)??Qt)===Xt)return;const o=this._$AH,r=t===Qt&&o!==Qt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==Qt&&(o===Qt||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},he=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ne(this,t)}};const de={j:At,P:kt,A:Ft,C:1,M:re,L:ae,R:Mt,V:ne,D:se,I:ce,H:fe,N:ue,U:le,B:he},pe=Lt.litHtmlPolyfillSupport;pe?.(ie,se),(Lt.litHtmlVersions??=[]).push("3.1.0");const ye=(t,e,o)=>{const r=o?.renderBefore??e;let i=r._$litPart$;if(void 0===i){const t=o?.renderBefore??null;r._$litPart$=i=new se(e.insertBefore(Bt(),t),t,void 0,o??{})}return i._$AI(t),i
48
+ const Lt=globalThis,Ut=Lt.trustedTypes,Wt=Ut?Ut.createPolicy("lit-html",{createHTML:t=>t}):void 0,kt="$lit$",At=`lit$${(Math.random()+"").slice(9)}$`,Bt="?"+At,Pt=`<${Bt}>`,Ft=document,_t=()=>Ft.createComment(""),Tt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Dt=Array.isArray,Mt=t=>Dt(t)||"function"==typeof t?.[Symbol.iterator],zt="[ \t\n\f\r]",Kt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,jt=/-->/g,Ht=/>/g,Zt=RegExp(`>|${zt}(?:([^\\s"'>=/]+)(${zt}*=${zt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),$t=/'/g,Gt=/"/g,Vt=/^(?:script|style|textarea|title)$/i,qt=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Yt=qt(1),Jt=qt(2),Xt=Symbol.for("lit-noChange"),Qt=Symbol.for("lit-nothing"),te=new WeakMap,ee=Ft.createTreeWalker(Ft,129);function oe(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Wt?Wt.createHTML(e):e}const re=(t,e)=>{const o=t.length-1,r=[];let i,n=2===e?"<svg>":"",a=Kt;for(let e=0;e<o;e++){const o=t[e];let s,c,l=-1,f=0;for(;f<o.length&&(a.lastIndex=f,c=a.exec(o),null!==c);)f=a.lastIndex,a===Kt?"!--"===c[1]?a=jt:void 0!==c[1]?a=Ht:void 0!==c[2]?(Vt.test(c[2])&&(i=RegExp("</"+c[2],"g")),a=Zt):void 0!==c[3]&&(a=Zt):a===Zt?">"===c[0]?(a=i??Kt,l=-1):void 0===c[1]?l=-2:(l=a.lastIndex-c[2].length,s=c[1],a=void 0===c[3]?Zt:'"'===c[3]?Gt:$t):a===Gt||a===$t?a=Zt:a===jt||a===Ht?a=Kt:(a=Zt,i=void 0);const u=a===Zt&&t[e+1].startsWith("/>")?" ":"";n+=a===Kt?o+Pt:l>=0?(r.push(s),o.slice(0,l)+kt+o.slice(l)+At+u):o+At+(-2===l?e:u)}return[oe(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),r]};class ie{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let i=0,n=0;const a=t.length-1,s=this.parts,[c,l]=re(t,e);if(this.el=ie.createElement(c,o),ee.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=ee.nextNode())&&s.length<a;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(kt)){const e=l[n++],o=r.getAttribute(t).split(At),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:i,name:a[2],strings:o,ctor:"."===a[1]?le:"?"===a[1]?fe:"@"===a[1]?ue:ce}),r.removeAttribute(t)}else t.startsWith(At)&&(s.push({type:6,index:i}),r.removeAttribute(t));if(Vt.test(r.tagName)){const t=r.textContent.split(At),e=t.length-1;if(e>0){r.textContent=Ut?Ut.emptyScript:"";for(let o=0;o<e;o++)r.append(t[o],_t()),ee.nextNode(),s.push({type:2,index:++i});r.append(t[e],_t())}}}else if(8===r.nodeType)if(r.data===Bt)s.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(At,t+1));)s.push({type:7,index:i}),t+=At.length-1}i++}}static createElement(t,e){const o=Ft.createElement("template");return o.innerHTML=t,o}}function ne(t,e,o=t,r){if(e===Xt)return e;let i=void 0!==r?o._$Co?.[r]:o._$Cl;const n=Tt(e)?void 0:e._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(t),i._$AT(t,o,r)),void 0!==r?(o._$Co??=[])[r]=i:o._$Cl=i),void 0!==i&&(e=ne(t,i._$AS(t,e.values),i,r)),e}let ae=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??Ft).importNode(e,!0);ee.currentNode=r;let i=ee.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new se(i,i.nextSibling,this,t):1===s.type?e=new s.ctor(i,s.name,s.strings,this,t):6===s.type&&(e=new he(i,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(i=ee.nextNode(),n++)}return ee.currentNode=Ft,r}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},se=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=Qt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ne(this,t,e),Tt(t)?t===Qt||null==t||""===t?(this._$AH!==Qt&&this._$AR(),this._$AH=Qt):t!==this._$AH&&t!==Xt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):Mt(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!==Qt&&Tt(this._$AH)?this._$AA.nextSibling.data=t:this.$(Ft.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=ie.createElement(oe(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new ae(r,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=te.get(t.strings);return void 0===e&&te.set(t.strings,e=new ie(t)),e}T(e){Dt(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let r,i=0;for(const n of e)i===o.length?o.push(r=new t(this.k(_t()),this.k(_t()),this,this.options)):r=o[i],r._$AI(n),i++;i<o.length&&(this._$AR(r&&r._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},ce=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=Qt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=Qt}_$AI(t,e=this,o,r){const i=this.strings;let n=!1;if(void 0===i)t=ne(this,t,e,0),n=!Tt(t)||t!==this._$AH&&t!==Xt,n&&(this._$AH=t);else{const r=t;let a,s;for(t=i[0],a=0;a<i.length-1;a++)s=ne(this,r[o+a],e,a),s===Xt&&(s=this._$AH[a]),n||=!Tt(s)||s!==this._$AH[a],s===Qt?t=Qt:t!==Qt&&(t+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!r&&this.O(t)}O(t){t===Qt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},le=class extends ce{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===Qt?void 0:t}},fe=class extends ce{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==Qt)}},ue=class extends ce{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=ne(this,t,e,0)??Qt)===Xt)return;const o=this._$AH,r=t===Qt&&o!==Qt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==Qt&&(o===Qt||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},he=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){ne(this,t)}};const de={j:kt,P:At,A:Bt,C:1,M:re,L:ae,R:Mt,V:ne,D:se,I:ce,H:fe,N:ue,U:le,B:he},pe=Lt.litHtmlPolyfillSupport;pe?.(ie,se),(Lt.litHtmlVersions??=[]).push("3.1.0");const ge=(t,e,o)=>{const r=o?.renderBefore??e;let i=r._$litPart$;if(void 0===i){const t=o?.renderBefore??null;r._$litPart$=i=new se(e.insertBefore(_t(),t),t,void 0,o??{})}return i._$AI(t),i
49
49
  /**
50
50
  * @license
51
51
  * Copyright 2017 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
53
- */};let ge=class extends It{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=ye(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Xt}};ge._$litElement$=!0,ge.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ge});const be=globalThis.litElementPolyfillSupport;be?.({LitElement:ge});(globalThis.litElementVersions??=[]).push("4.0.2");var me=Object.freeze({__proto__:null,CSSResult:lt,LitElement:ge,ReactiveElement:It,_$LE:{_$AK:(t,e,o)=>{t._$AK(e,o)},_$AL:t=>t._$AL},_$LH:de,adoptStyles:ht,css:ut,defaultConverter:Ct,getCompatibleStyle:dt,html:Yt,isServer:!1,noChange:Xt,notEqual:Et,nothing:Qt,render:ye,supportsAdoptingStyleSheets:at,svg:Jt,unsafeCSS:ft});
53
+ */};let ye=class extends It{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=ge(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Xt}};ye._$litElement$=!0,ye.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ye});const be=globalThis.litElementPolyfillSupport;be?.({LitElement:ye});(globalThis.litElementVersions??=[]).push("4.0.2");var me=Object.freeze({__proto__:null,CSSResult:lt,LitElement:ye,ReactiveElement:It,_$LE:{_$AK:(t,e,o)=>{t._$AK(e,o)},_$AL:t=>t._$AL},_$LH:de,adoptStyles:ht,css:ut,defaultConverter:Nt,getCompatibleStyle:dt,html:Yt,isServer:!1,noChange:Xt,notEqual:Et,nothing:Qt,render:ge,supportsAdoptingStyleSheets:at,svg:Jt,unsafeCSS:ft});
54
54
  /**
55
55
  * @license
56
56
  * Copyright 2017 Google LLC
@@ -60,7 +60,7 @@ const Lt=globalThis,Ut=Lt.trustedTypes,Wt=Ut?Ut.createPolicy("lit-html",{createH
60
60
  * @license
61
61
  * Copyright 2017 Google LLC
62
62
  * SPDX-License-Identifier: BSD-3-Clause
63
- */function Se(t){return(e,o)=>"object"==typeof o?Oe(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
63
+ */function we(t){return(e,o)=>"object"==typeof o?Oe(t,e,o):((t,e,o)=>{const r=e.hasOwnProperty(o);return e.constructor.createProperty(o,r?{...t,wrapped:!0}:t),r?Object.getOwnPropertyDescriptor(e,o):void 0})(t,e,o)
64
64
  /**
65
65
  * @license
66
66
  * Copyright 2017 Google LLC
@@ -71,7 +71,7 @@ const Lt=globalThis,Ut=Lt.trustedTypes,Wt=Ut?Ut.createPolicy("lit-html",{createH
71
71
  * Copyright 2017 Google LLC
72
72
  * SPDX-License-Identifier: BSD-3-Clause
73
73
  */
74
- const we=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,o)
74
+ const Se=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,o)
75
75
  /**
76
76
  * @license
77
77
  * Copyright 2017 Google LLC
@@ -82,13 +82,13 @@ const we=(t,e,o)=>(o.configurable=!0,o.enumerable=!0,o)
82
82
  * Copyright 2017 Google LLC
83
83
  * SPDX-License-Identifier: BSD-3-Clause
84
84
  */
85
- let xe;var Ne=Object.freeze({__proto__:null,customElement:t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},eventOptions:
85
+ let xe;var Ce=Object.freeze({__proto__:null,customElement:t=>(e,o)=>{void 0!==o?o.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},eventOptions:
86
86
  /**
87
87
  * @license
88
88
  * Copyright 2017 Google LLC
89
89
  * SPDX-License-Identifier: BSD-3-Clause
90
90
  */
91
- function(t){return(e,o)=>{const r="function"==typeof e?e:e[o];Object.assign(r,t)}},property:Se,query:function(t,e){return(o,r,i)=>{const n=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof r?o:i??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return we(0,0,{get(){let o=t.call(this);return void 0===o&&(o=n(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return we(0,0,{get(){return n(this)}})}},queryAll:function(t){return(e,o)=>we(0,0,{get(){return(this.renderRoot??(xe??=document.createDocumentFragment())).querySelectorAll(t)}})
91
+ function(t){return(e,o)=>{const r="function"==typeof e?e:e[o];Object.assign(r,t)}},property:we,query:function(t,e){return(o,r,i)=>{const n=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof r?o:i??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return Se(0,0,{get(){let o=t.call(this);return void 0===o&&(o=n(this),(null!==o||this.hasUpdated)&&e.call(this,o)),o}})}return Se(0,0,{get(){return n(this)}})}},queryAll:function(t){return(e,o)=>Se(0,0,{get(){return(this.renderRoot??(xe??=document.createDocumentFragment())).querySelectorAll(t)}})
92
92
  /**
93
93
  * @license
94
94
  * Copyright 2017 Google LLC
@@ -99,51 +99,51 @@ function(t){return(e,o)=>{const r="function"==typeof e?e:e[o];Object.assign(r,t)
99
99
  * Copyright 2021 Google LLC
100
100
  * SPDX-License-Identifier: BSD-3-Clause
101
101
  */
102
- function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}]`:":not([name])");return we(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===i?o:o.filter((t=>t.matches(i)))}})}}
102
+ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}]`:":not([name])");return Se(0,0,{get(){const e=this.renderRoot?.querySelector(n),o=e?.assignedElements(t)??[];return void 0===i?o:o.filter((t=>t.matches(i)))}})}}
103
103
  /**
104
104
  * @license
105
105
  * Copyright 2017 Google LLC
106
106
  * SPDX-License-Identifier: BSD-3-Clause
107
- */,queryAssignedNodes:function(t){return(e,o)=>{const{slot:r}=t??{},i="slot"+(r?`[name=${r}]`:":not([name])");return we(0,0,{get(){const e=this.renderRoot?.querySelector(i);return e?.assignedNodes(t)??[]}})}},queryAsync:function(t){return(e,o)=>we(0,0,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})},standardProperty:Oe,state:function(t){return Se({...t,state:!0,attribute:!1})}});
107
+ */,queryAssignedNodes:function(t){return(e,o)=>{const{slot:r}=t??{},i="slot"+(r?`[name=${r}]`:":not([name])");return Se(0,0,{get(){const e=this.renderRoot?.querySelector(i);return e?.assignedNodes(t)??[]}})}},queryAsync:function(t){return(e,o)=>Se(0,0,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})},standardProperty:Oe,state:function(t){return we({...t,state:!0,attribute:!1})}});
108
108
  /**
109
109
  * @license
110
110
  * Copyright 2017 Google LLC
111
111
  * SPDX-License-Identifier: BSD-3-Clause
112
- */const Ce=1,Ee=2,Re=t=>(...e)=>({_$litDirective$:t,values:e});let Ie=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
112
+ */const Ne=1,Ee=2,Re=t=>(...e)=>({_$litDirective$:t,values:e});let Ie=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
113
113
  /**
114
114
  * @license
115
115
  * Copyright 2020 Google LLC
116
116
  * SPDX-License-Identifier: BSD-3-Clause
117
- */const{D:Le}=rt,Ue=()=>document.createComment(""),We=(t,e,o)=>{const r=t._$AA.parentNode,i=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=r.insertBefore(Ue(),i),n=r.insertBefore(Ue(),i);o=new Le(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,a=n!==t;if(a){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==i||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,i),t=e}}}return o},Ae=(t,e,o=t)=>(t._$AI(e,o),t),ke={},Fe=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},Pe=(t,e,o)=>{const r=new Map;for(let i=e;i<=o;i++)r.set(t[i],i);return r},_e=Re(class extends Ie{constructor(t){if(super(t),t.type!==Ee)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let r;void 0===o?o=e:void 0!==e&&(r=e);const i=[],n=[];let a=0;for(const e of t)i[a]=r?r(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:i}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,r]){const i=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,o,r);if(!Array.isArray(i))return this.dt=a,n;const s=this.dt??=[],c=[];let l,f,u=0,h=i.length-1,d=0,p=n.length-1;for(;u<=h&&d<=p;)if(null===i[u])u++;else if(null===i[h])h--;else if(s[u]===a[d])c[d]=Ae(i[u],n[d]),u++,d++;else if(s[h]===a[p])c[p]=Ae(i[h],n[p]),h--,p--;else if(s[u]===a[p])c[p]=Ae(i[u],n[p]),We(t,c[p+1],i[u]),u++,p--;else if(s[h]===a[d])c[d]=Ae(i[h],n[d]),We(t,i[u],i[h]),h--,d++;else if(void 0===l&&(l=Pe(a,d,p),f=Pe(s,u,h)),l.has(s[u]))if(l.has(s[h])){const e=f.get(a[d]),o=void 0!==e?i[e]:null;if(null===o){const e=We(t,i[u]);Ae(e,n[d]),c[d]=e}else c[d]=Ae(o,n[d]),We(t,i[u],o),i[e]=null;d++}else Fe(i[h]),h--;else Fe(i[u]),u++;for(;d<=p;){const e=We(t,c[p+1]);Ae(e,n[d]),c[d++]=e}for(;u<=h;){const t=i[u++];null!==t&&Fe(t)}return this.dt=a,((t,e=ke)=>{t._$AH=e})(t,c),K}});
117
+ */const{D:Le}=rt,Ue=()=>document.createComment(""),We=(t,e,o)=>{const r=t._$AA.parentNode,i=void 0===e?t._$AB:e._$AA;if(void 0===o){const e=r.insertBefore(Ue(),i),n=r.insertBefore(Ue(),i);o=new Le(e,n,t,t.options)}else{const e=o._$AB.nextSibling,n=o._$AM,a=n!==t;if(a){let e;o._$AQ?.(t),o._$AM=t,void 0!==o._$AP&&(e=t._$AU)!==n._$AU&&o._$AP(e)}if(e!==i||a){let t=o._$AA;for(;t!==e;){const e=t.nextSibling;r.insertBefore(t,i),t=e}}}return o},ke=(t,e,o=t)=>(t._$AI(e,o),t),Ae={},Be=t=>{t._$AP?.(!1,!0);let e=t._$AA;const o=t._$AB.nextSibling;for(;e!==o;){const t=e.nextSibling;e.remove(),e=t}},Pe=(t,e,o)=>{const r=new Map;for(let i=e;i<=o;i++)r.set(t[i],i);return r},Fe=Re(class extends Ie{constructor(t){if(super(t),t.type!==Ee)throw Error("repeat() can only be used in text expressions")}ht(t,e,o){let r;void 0===o?o=e:void 0!==e&&(r=e);const i=[],n=[];let a=0;for(const e of t)i[a]=r?r(e,a):a,n[a]=o(e,a),a++;return{values:n,keys:i}}render(t,e,o){return this.ht(t,e,o).values}update(t,[e,o,r]){const i=(t=>t._$AH)(t),{values:n,keys:a}=this.ht(e,o,r);if(!Array.isArray(i))return this.dt=a,n;const s=this.dt??=[],c=[];let l,f,u=0,h=i.length-1,d=0,p=n.length-1;for(;u<=h&&d<=p;)if(null===i[u])u++;else if(null===i[h])h--;else if(s[u]===a[d])c[d]=ke(i[u],n[d]),u++,d++;else if(s[h]===a[p])c[p]=ke(i[h],n[p]),h--,p--;else if(s[u]===a[p])c[p]=ke(i[u],n[p]),We(t,c[p+1],i[u]),u++,p--;else if(s[h]===a[d])c[d]=ke(i[h],n[d]),We(t,i[u],i[h]),h--,d++;else if(void 0===l&&(l=Pe(a,d,p),f=Pe(s,u,h)),l.has(s[u]))if(l.has(s[h])){const e=f.get(a[d]),o=void 0!==e?i[e]:null;if(null===o){const e=We(t,i[u]);ke(e,n[d]),c[d]=e}else c[d]=ke(o,n[d]),We(t,i[u],o),i[e]=null;d++}else Be(i[h]),h--;else Be(i[u]),u++;for(;d<=p;){const e=We(t,c[p+1]);ke(e,n[d]),c[d++]=e}for(;u<=h;){const t=i[u++];null!==t&&Be(t)}return this.dt=a,((t,e=Ae)=>{t._$AH=e})(t,c),K}});
118
118
  /**
119
119
  * @license
120
120
  * Copyright 2017 Google LLC
121
121
  * SPDX-License-Identifier: BSD-3-Clause
122
- */var Be=Object.freeze({__proto__:null,repeat:_e});
122
+ */var _e=Object.freeze({__proto__:null,repeat:Fe});
123
123
  /**
124
124
  * @license
125
125
  * Copyright 2018 Google LLC
126
126
  * SPDX-License-Identifier: BSD-3-Clause
127
- */const Te=Re(class extends Ie{constructor(t){if(super(t),t.type!==Ce||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const r=!!e[t];r===this.it.has(t)||this.st?.has(t)||(r?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return K}});var De=Object.freeze({__proto__:null,classMap:Te});
127
+ */const Te=Re(class extends Ie{constructor(t){if(super(t),t.type!==Ne||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(e)}const o=t.element.classList;for(const t of this.it)t in e||(o.remove(t),this.it.delete(t));for(const t in e){const r=!!e[t];r===this.it.has(t)||this.st?.has(t)||(r?(o.add(t),this.it.add(t)):(o.remove(t),this.it.delete(t)))}return K}});var De=Object.freeze({__proto__:null,classMap:Te});
128
128
  /**
129
129
  * @license
130
130
  * Copyright 2018 Google LLC
131
131
  * SPDX-License-Identifier: BSD-3-Clause
132
- */const Me="important",ze=" !"+Me,Ke=Re(class extends Ie{constructor(t){if(super(t),t.type!==Ce||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,o)=>{const r=t[o];return null==r?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(t,[e]){const{style:o}=t.element;if(void 0===this.ut)return this.ut=new Set(Object.keys(e)),this.render(e);for(const t of this.ut)null==e[t]&&(this.ut.delete(t),t.includes("-")?o.removeProperty(t):o[t]=null);for(const t in e){const r=e[t];if(null!=r){this.ut.add(t);const e="string"==typeof r&&r.endsWith(ze);t.includes("-")||e?o.setProperty(t,e?r.slice(0,-11):r,e?Me:""):o[t]=r}}return K}});var je=Object.freeze({__proto__:null,styleMap:Ke});
132
+ */const Me="important",ze=" !"+Me,Ke=Re(class extends Ie{constructor(t){if(super(t),t.type!==Ne||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,o)=>{const r=t[o];return null==r?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(t,[e]){const{style:o}=t.element;if(void 0===this.ut)return this.ut=new Set(Object.keys(e)),this.render(e);for(const t of this.ut)null==e[t]&&(this.ut.delete(t),t.includes("-")?o.removeProperty(t):o[t]=null);for(const t in e){const r=e[t];if(null!=r){this.ut.add(t);const e="string"==typeof r&&r.endsWith(ze);t.includes("-")||e?o.setProperty(t,e?r.slice(0,-11):r,e?Me:""):o[t]=r}}return K}});var je=Object.freeze({__proto__:null,styleMap:Ke});
133
133
  /**
134
134
  * @license
135
135
  * Copyright 2017 Google LLC
136
136
  * SPDX-License-Identifier: BSD-3-Clause
137
- */let He=class extends Ie{constructor(t){if(super(t),this.et=j,t.type!==Ee)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===j||null==t)return this.vt=void 0,this.et=t;if(t===K)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:[]}}};He.directiveName="unsafeHTML",He.resultType=1;const Ze=Re(He);var $e=Object.freeze({__proto__:null,UnsafeHTMLDirective:He,unsafeHTML:Ze});class Ge extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class Ve extends Promise{constructor(t){super(((e,o)=>t((t=>{this.isCanceled?o(new Ge("Promise has been canceled",t)):e(t)}),(t=>{this.isCanceled?o(new Ge("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const qe=t=>new Ve(((e,o)=>t.then(e).catch(o)));var Ye=Object.freeze({__proto__:null,CancelablePromise:Ve,CanceledPromiseError:Ge,cancelable:qe});class Je{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 Ve&&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=qe(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)}}var Xe=Object.freeze({__proto__:null,CacheRegistry:Je});class Qe{constructor(t,e,o,r){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=o,this.metadataDescriptors=r}static extractResultMetadata(t){var e,o;return(null!==(o=null!==(e=null==t?void 0:t.map)&&void 0!==e?e:null==t?void 0:t.document)&&void 0!==o?o:null==t?void 0:t.topic).metadata.map((t=>Qe.flattenMetadata(t)))}static flattenMetadata(t){if(t.hierarchicalValues){const e=[],o=[];return t.hierarchicalValues.forEach((t=>{e.push(t.join(" > ")),t.length>2?o.push(`... > ${t[t.length-1]}`):o.push(t.join(" > "))})),{key:t.key,value:e.join(", "),displayValue:o.join(", ")}}{const e=t.values.join(", ");return{key:t.key,value:e,displayValue:e}}}computeClustersItemsForMetadata(t,e){let o=Qe.extractResultMetadata(this.selectedResult).find((e=>e.key===t));const r=this.allResults.flatMap((e=>Qe.extractResultMetadata(e).filter((e=>e.key===t)))).filter((t=>!(t.key===(null==o?void 0:o.key)&&t.value===(null==o?void 0:o.value)))).filter(((t,e,o)=>o.findIndex((e=>e.value===t.value))===e));return r.map((e=>({result:this.findBestResultForMetadataValue(t,e.value),metadata:e}))).sort(((o,r)=>this.compareMetadata(o.metadata.value,r.metadata.value,t,e)))}compareMetadata(t,e,o,r){let i=this.metadataDescriptors.find((t=>o==t.key)),n=(null==i?void 0:i.sortRule)||"NONE",a=(null==i?void 0:i.reverseSort)||!1;if("ALPHABET"==n||"VERSION"==n){let o=t.localeCompare(e,r,{numeric:!0});return a?-1*o:o}return 0}findBestResultForMetadataValue(t,e){const o=this.allResults.filter((o=>Qe.extractResultMetadata(o).find((o=>o.key===t&&o.value===e))));let r,i=Qe.extractResultMetadata(this.selectedResult).filter((t=>this.clusteringMetadata.has(t.key))),n=[...i.filter((e=>e.key!==t))],a=-1;for(let t of o){let e=this.countMatchingMetadata(t,n);if(e>a&&(a=e,r=t,e===n.length))break}return r}countMatchingMetadata(t,e){return Qe.extractResultMetadata(t).filter((t=>e.some((e=>e.key===t.key&&e.value===t.value)))).length}}var to=Object.freeze({__proto__:null,ClusteringHelper:Qe});class eo{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const o=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}var oo=Object.freeze({__proto__:null,Debouncer:eo});const ro=t=>new Promise((e=>setTimeout(e,t)));async function io(t,e=10,o=2e4){let r,i,n=await t();for(r=i=performance.now();null==n&&(!o||i-r<o);)await ro(e),n=await t(),i=performance.now();if(null==n)throw new Error("Timeout exceeded");return n}function no(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,o,r)=>e+o+":"+r)),new Date(t)}function ao(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 o,r,i;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(r=o;0!=r--;)if(!ao(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!ao(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[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((o=(i=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;for(r=o;0!=r--;){var n=i[r];if(!ao(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}var so=Object.freeze({__proto__:null,dateReviver:function(...t){return function(e,o){return t.includes(e)?no(o):o}},deepEqual:ao,delay:ro,eventPathContainsMatchingElement:function(t,e,o=window.document.body){if(e.length>0){const r=t.composedPath();for(let t of r){if(t===o)return!1;if(t.matches&&e.some((e=>t.matches(e))))return!0}}return!1},flatDeep:function t(e,o){return e.flatMap((e=>[e,...t(o(e),o)]))},last:function(t){return t[t.length-1]},minmax:function(t,e,o){return Math.min(Math.max(t,e),o)},parseDate:no,waitFor:io,waitUntil:async function(t,e=10,o=2e4){await io((async()=>await t()||void 0),e,o)}});const co=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function lo(t,e){const o=()=>JSON.parse(JSON.stringify(t));return Se({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!ao(t,e),...null!=e?e:{}})}function fo(t){return!isNaN(parseFloat(t))}var uo=Object.freeze({__proto__:null,customElement:co,isNumber:fo,jsonProperty:lo,optionalNumberProperty:function(t){return Se({type:Object,converter:{fromAttribute:t=>{if(null!=t)return fo(t)?+t:void 0},toAttribute:t=>null==t?void 0:""+t},...null!=t?t:{}})}});const ho=t=>"string"==typeof t?ft(t):t;class po{static create(t,e,o,r){const i=t=>ho(null!=t?t:r),n=ut`var(${ho(t)}, ${i(r)})`;return n.name=t,n.description=e,n.category=o,n.defaultValue=r,n.defaultCssValue=i,n.get=e=>ut`var(${ho(t)}, ${i(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>r,n}static extend(t,e,o,r){const i=t=>o.get(null!=t?t:r),n=ut`var(${ho(t)}, ${i(r)})`;return n.name=t,n.description=e,n.category=o.category,n.fallbackVariable=o,n.defaultValue=r,n.defaultCssValue=i,n.get=e=>ut`var(${ho(t)}, ${i(e)})`,n.breadcrumb=()=>[o.name,...o.breadcrumb()],n.lastResortDefaultValue=()=>null!=r?r:o.lastResortDefaultValue(),n}static external(t,e){const o=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):ho(null!=e?e:t.lastResortDefaultValue()),r=ut`var(${ho(t.name)}, ${o(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=e,r.defaultCssValue=o,r.get=e=>ut`var(${ho(t.name)}, ${o(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const yo={colorWhite:po.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:po.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:po.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:po.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:po.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:po.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:po.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:po.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:po.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:po.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:po.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:po.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:po.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:po.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:po.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:po.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:po.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:po.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:po.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:po.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:po.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:po.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:po.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:po.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:po.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:po.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:po.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:po.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:po.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:po.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:po.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:po.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:po.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:po.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:po.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:po.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:po.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:po.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:po.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:po.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:po.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:po.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:po.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:po.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:po.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:po.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:po.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:po.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:po.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:po.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:po.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:po.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:po.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:po.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:po.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:po.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:po.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:po.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:po.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:po.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:po.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:po.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:po.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:po.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:po.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:po.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:po.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:po.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:po.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:po.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:po.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:po.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:po.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:po.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:po.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:po.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:po.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:po.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:po.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:po.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:po.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:po.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:po.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:po.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:po.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:po.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:po.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:po.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:po.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:po.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:po.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:po.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:po.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:po.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:po.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:po.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:po.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:po.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:po.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:po.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:po.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:po.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:po.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:po.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:po.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:po.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:po.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:po.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:po.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:po.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:po.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:po.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:po.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:po.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:po.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:po.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:po.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:po.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:po.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:po.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:po.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:po.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:po.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:po.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:po.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:po.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:po.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:po.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:po.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:po.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:po.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:po.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:po.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:po.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:po.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:po.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:po.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:po.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:po.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:po.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:po.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:po.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:po.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:po.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:po.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:po.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:po.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:po.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:po.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:po.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:po.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:po.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:po.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:po.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:po.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:po.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:po.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:po.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:po.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:po.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:po.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:po.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:po.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:po.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:po.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:po.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:po.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:po.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:po.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:po.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:po.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:po.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:po.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:po.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:po.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:po.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:po.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:po.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:po.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:po.create("--ft-icon-size-6","","SIZE","48px"),opacity0:po.create("--ft-opacity-0","","NUMBER","0"),opacity8:po.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:po.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:po.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:po.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:po.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:po.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:po.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:po.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:po.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:po.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:po.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:po.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:po.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:po.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)"),underline:po.create("--ft-underline","","UNKNOWN","underline")},go={fontFamily:po.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:po.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:po.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:po.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-display-textCase","","UNKNOWN","none")},bo={fontFamily:po.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:po.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:po.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:po.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},mo={fontFamily:po.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:po.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:po.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:po.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},vo={fontFamily:po.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:po.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:po.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:po.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Oo={fontFamily:po.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:po.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:po.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:po.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:po.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},So={fontFamily:po.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:po.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:po.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:po.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},wo={fontFamily:po.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:po.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:po.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:po.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},xo={fontFamily:po.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:po.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:po.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:po.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:po.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},No={fontFamily:po.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:po.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:po.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:po.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Co={fontFamily:po.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:po.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:po.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:po.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:po.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:po.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},Eo={fontFamily:po.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:po.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:po.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:po.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Ro={fontFamily:po.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:po.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:po.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:po.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:po.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Io={fontFamily:po.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:po.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:po.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:po.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:po.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Lo={fontFamily:po.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:po.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:po.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:po.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:po.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:po.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Uo={fontFamily:po.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:po.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:po.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:po.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:po.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Wo={fontFamily:po.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:po.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:po.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:po.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:po.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},Ao={fontFamily:po.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:po.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:po.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:po.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:po.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:po.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},ko={fontFamily:po.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:po.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Fo={fontFamily:po.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:po.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Po={fontFamily:po.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:po.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:po.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},_o={fontFamily:po.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:po.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},Bo={fontFamily:po.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:po.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},To={fontFamily:po.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:po.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:po.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Do={fontFamily:po.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:po.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},Mo={fontFamily:po.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:po.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},zo={fontFamily:po.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:po.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:po.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Ko={display:go,"title-1":bo,"title-2":mo,"title-3":vo,"body-1-regular":Oo,"body-1-medium":So,"body-1-semibold":wo,"body-2-regular":xo,"body-2-medium":No,"body-2-medium-underline":Co,"body-2-semibold":Eo,"label-1-medium":Ro,"label-1-semibold":Io,"label-1-bold":Lo,"label-2-medium":Uo,"label-2-semibold":Wo,"label-2-bold":Ao,"caption-1-medium":ko,"caption-1-semibold":Fo,"caption-1-bold":Po,"caption-2-medium":_o,"caption-2-semibold":Bo,"caption-2-bold":To,"caption-3-medium":Do,"caption-3-semibold":Mo,"caption-3-bold":zo},jo={backgroundActionPrimary:po.extend("--ft-background-action-primary","Used as backgorund of primary action components.",yo.colorBrand0),backgroundErrorSubtle:po.extend("--ft-background-error-subtle","Used as background of subtle error components.",yo.colorRed10),backgroundInfoSubtle:po.extend("--ft-background-info-subtle","Used as background of subtle information components.",yo.colorCyan10),backgroundWarningSubtle:po.extend("--ft-background-warning-subtle","Used as background of subtle information components.",yo.colorOrange10),backgroundSuccessSubtle:po.extend("--ft-background-success-subtle","Used as background of subtle success components.",yo.colorGreen10),backgroundGlobalSurface:po.extend("--ft-background-global-surface","Used as app background.",yo.colorWhite),backgroundGlobalOnSurface:po.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",yo.colorGray10),backgroundGlobalOnSurfaceDark:po.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",yo.colorGray30),contentActionPrimary:po.extend("--ft-content-action-primary","Used on label of primary action on light surface.",yo.colorBrand0),contentWarningPrimary:po.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",yo.colorOrange200),contentWarningIconOnly:po.extend("--ft-content-warning-icon-only","Used on warning status icons alone",yo.colorOrange0),contentErrorPrimary:po.extend("--ft-content-error-primary","Used on label of error messages on light surface.",yo.colorRed0),contentErrorIconOnly:po.extend("--ft-content-error-icon-only","Used on error status icons alone",yo.colorRed70),contentInfoPrimary:po.extend("--ft-content-info-primary","Used on label of information messages on light surface.",yo.colorCyan200),contentInfoIconOnly:po.extend("--ft-content-info-icon-only","Used on info status icons alone",yo.colorCyan0),contentSuccessPrimary:po.extend("--ft-content-success-primary","Used on label of success messages on light surface.",yo.colorGreen200),contentSuccessIconOnly:po.extend("--ft-content-success-icon-only","Used on success status icons alone",yo.colorGreen0),contentGlobalPrimary:po.extend("--ft-content-global-primary","Used for main content on the page.",yo.colorGray500),contentGlobalSecondary:po.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",yo.colorGray200),contentGlobalSubtle:po.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",yo.colorGray0),contentGlobalOnColor:po.extend("--ft-content-global-on-color","Used for content on a dominant color.",yo.colorWhite),borderActionPrimary:po.extend("--ft-border-action-primary","Used as border for primary action components.",yo.colorBrand0),borderActionFocusRing:po.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",yo.colorCyan0),borderWarningPrimary:po.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",yo.colorOrange200),borderWarningSubtle:po.extend("--ft-border-warning-subtle","Used as border for warning components.",yo.colorOrange30),borderSuccessPrimary:po.extend("--ft-border-success-primary","Used as border for success buttons.",yo.colorGreen200),borderSuccessSubtle:po.extend("--ft-border-success-subtle","Used as border for success components.",yo.colorGreen30),borderErrorPrimary:po.extend("--ft-border-error-primary","Used as border for text fields in error states.",yo.colorRed0),borderErrorSubtle:po.extend("--ft-border-error-subtle","Used as border for error components.",yo.colorRed30),borderInfoPrimary:po.extend("--ft-border-info-primary","Used as border for buttons in info color.",yo.colorCyan200),borderInfoSubtle:po.extend("--ft-border-info-subtle","Used as border for information components.",yo.colorCyan30),borderGlobalPrimary:po.extend("--ft-border-global-primary","Used as border for element like input.",yo.colorGray50),borderGlobalSubtle:po.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",yo.colorGray30),borderInputPrimary:po.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",yo.colorGray80)},Ho={largeHeight:po.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:po.extend("--ft-button-large-horizontal-padding","",yo.spacing4),largeGap:po.extend("--ft-button-large-gap","",yo.spacing2),largeBorderRadius:po.extend("--ft-button-large-border-radius","",yo.borderRadiusS),largeIconSize:po.extend("--ft-button-large-icon-size","",yo.iconSize3),largeBorderWidth:po.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:po.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:po.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:po.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:po.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:po.extend("--ft-button-small-horizontal-padding","",yo.spacing3),smallGap:po.extend("--ft-button-small-gap","",yo.spacing2),smallBorderRadius:po.extend("--ft-button-small-border-radius","",yo.borderRadiusS),smallIconSize:po.extend("--ft-button-small-icon-size","",yo.iconSize2),smallBorderWidth:po.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:po.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:po.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:po.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:po.extend("--ft-button-primary-background-color","",jo.backgroundActionPrimary),primaryColor:po.extend("--ft-button-primary-color","",jo.contentGlobalOnColor),primaryIconColor:po.extend("--ft-button-primary-icon-color","",jo.contentGlobalOnColor),primaryStateLayerColor:po.extend("--ft-button-primary-state-layer-color","",jo.contentGlobalOnColor),primaryHoverStateLayerOpacity:po.extend("--ft-button-primary-hover-state-layer-opacity","",yo.opacity16),primaryFocusStateLayerOpacity:po.extend("--ft-button-primary-focus-state-layer-opacity","",yo.opacity16),primaryActiveStateLayerOpacity:po.extend("--ft-button-primary-active-state-layer-opacity","",yo.opacity24),primaryDisabledComponentOpacity:po.extend("--ft-button-primary-disabled-component-opacity","",yo.opacity40),focusFocusRingColor:po.extend("--ft-button-focus-focus-ring-color","",jo.borderActionFocusRing),tertiaryBackgroundColor:po.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:po.extend("--ft-button-tertiary-color","",jo.contentActionPrimary),tertiaryIconColor:po.extend("--ft-button-tertiary-icon-color","",jo.contentActionPrimary),tertiaryStateLayerColor:po.extend("--ft-button-tertiary-state-layer-color","",jo.contentActionPrimary),tertiaryHoverStateLayerOpacity:po.extend("--ft-button-tertiary-hover-state-layer-opacity","",yo.opacity8),tertiaryFocusStateLayerOpacity:po.extend("--ft-button-tertiary-focus-state-layer-opacity","",yo.opacity8),tertiaryActiveStateLayerOpacity:po.extend("--ft-button-tertiary-active-state-layer-opacity","",yo.opacity16),tertiaryDisabledComponentOpacity:po.extend("--ft-button-tertiary-disabled-component-opacity","",yo.opacity40),secondaryBackgroundColor:po.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:po.extend("--ft-button-secondary-color","",jo.contentActionPrimary),secondaryIconColor:po.extend("--ft-button-secondary-icon-color","",jo.contentActionPrimary),secondaryStateLayerColor:po.extend("--ft-button-secondary-state-layer-color","",jo.contentActionPrimary),secondaryHoverStateLayerOpacity:po.extend("--ft-button-secondary-hover-state-layer-opacity","",yo.opacity8),secondaryFocusStateLayerOpacity:po.extend("--ft-button-secondary-focus-state-layer-opacity","",yo.opacity8),secondaryActiveStateLayerOpacity:po.extend("--ft-button-secondary-active-state-layer-opacity","",yo.opacity16),secondaryDisabledComponentOpacity:po.extend("--ft-button-secondary-disabled-component-opacity","",yo.opacity40),secondaryBorderColor:po.extend("--ft-button-secondary-border-color","",jo.borderActionPrimary),neutralBackgroundColor:po.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:po.extend("--ft-button-neutral-icon-color","",jo.contentGlobalSecondary),neutralColor:po.extend("--ft-button-neutral-color","",jo.contentGlobalSecondary),neutralStateLayerColor:po.extend("--ft-button-neutral-state-layer-color","",jo.contentGlobalSecondary),neutralHoverStateLayerOpacity:po.extend("--ft-button-neutral-hover-state-layer-opacity","",yo.opacity8),neutralFocusStateLayerOpacity:po.extend("--ft-button-neutral-focus-state-layer-opacity","",yo.opacity8),neutralActiveStateLayerOpacity:po.extend("--ft-button-neutral-active-state-layer-opacity","",yo.opacity16),neutralDisabledComponentOpacity:po.extend("--ft-button-neutral-disabled-component-opacity","",yo.opacity40)},Zo={iconSize:po.extend("--ft-banner-icon-size","",yo.iconSize5),borderWidth:po.create("--ft-banner-border-width","","SIZE","1px"),horizontalPadding:po.extend("--ft-banner-horizontal-padding","",yo.spacing6),verticalPadding:po.extend("--ft-banner-vertical-padding","",yo.spacing6),horizontalSideGap:po.extend("--ft-banner-horizontal-side-gap","",yo.spacing6),horizontalMobileGap:po.extend("--ft-banner-horizontal-mobile-gap","",yo.spacing4),verticalMobileGap:po.extend("--ft-banner-vertical-mobile-gap","",yo.spacing6),horizontalMiddleGap:po.extend("--ft-banner-horizontal-middle-gap","",yo.spacing20),infoBackgroundColor:po.extend("--ft-banner-info-background-color","",jo.backgroundInfoSubtle),infoColor:po.extend("--ft-banner-info-color","",jo.contentInfoPrimary),infoIconColor:po.extend("--ft-banner-info-icon-color","",jo.contentInfoIconOnly)},$o={gap:po.extend("--ft-breadcrumb-gap","",yo.spacing1)},Go={horizontalPadding:po.extend("--ft-page-header-horizontal-padding","",yo.spacing12),verticalPadding:po.extend("--ft-page-header-vertical-padding","",yo.spacing6)},Vo={smallContainerWidth:po.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:po.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:po.extend("--ft-modal-overlay-background-color","",yo.colorGray700),overlayOpacity:po.extend("--ft-modal-overlay-opacity","",yo.opacity40),shadow:po.extend("--ft-modal-shadow","",yo.shadowElevation03),bodyBackgroundColor:po.extend("--ft-modal-body-background-color","",yo.colorWhite),bodyColor:po.extend("--ft-modal-body-color","",jo.contentGlobalPrimary),bodyHorizontalPadding:po.extend("--ft-modal-body-horizontal-padding","",yo.spacing6),bodyVerticalPadding:po.extend("--ft-modal-body-vertical-padding","",yo.spacing6),bodyVerticalGap:po.extend("--ft-modal-body-vertical-gap","",yo.spacing6),containerMargin:po.extend("--ft-modal-container-margin","",yo.spacing3),headerBackgroundColor:po.extend("--ft-modal-header-background-color","",jo.backgroundGlobalOnSurface),headerBorderColor:po.extend("--ft-modal-header-border-color","",jo.borderGlobalSubtle),headerColor:po.extend("--ft-modal-header-color","",jo.contentGlobalPrimary),headerTrailingIconColor:po.extend("--ft-modal-header-trailing-icon-color","",jo.contentGlobalSecondary),headerVerticalPadding:po.extend("--ft-modal-header-vertical-padding","",yo.spacing1),headerRightPadding:po.extend("--ft-modal-header-right-padding","",yo.spacing1),headerLeftPadding:po.extend("--ft-modal-header-left-padding","",yo.spacing6),headerGap:po.extend("--ft-modal-header-gap","",yo.spacing2),headerBorderBottom:po.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:po.extend("--ft-modal-border-radius","",yo.borderRadiusM)},qo={fieldHorizontalPadding:po.extend("--ft-text-input-field-horizontal-padding","",yo.spacing4),fieldHorizontalGap:po.extend("--ft-text-input-field-horizontal-gap","",yo.spacing3),fieldVerticalGap:po.extend("--ft-text-input-field-vertical-gap","",yo.spacing05),fieldIconSize:po.extend("--ft-text-input-field-icon-size","",yo.iconSize3),fieldHeight:po.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:po.extend("--ft-text-input-helper-horizontal-padding","",yo.spacing4),helperHorizontalGap:po.extend("--ft-text-input-helper-horizontal-gap","",yo.spacing1),helperIconSize:po.extend("--ft-text-input-helper-icon-size","",yo.iconSize2),borderRadius:po.extend("--ft-text-input-border-radius","",yo.borderRadiusM),backgroundColor:po.extend("--ft-text-input-background-color","",yo.colorWhite),contentValueColor:po.extend("--ft-text-input-content-value-color","",jo.contentGlobalPrimary),trailingIconColor:po.extend("--ft-text-input-trailing-icon-color","",jo.contentGlobalSubtle),labelColor:po.extend("--ft-text-input-label-color","",jo.contentGlobalSubtle),defaultBorderColor:po.extend("--ft-text-input-default-border-color","",jo.borderInputPrimary),defaultHelperTextColor:po.extend("--ft-text-input-default-helper-text-color","",jo.contentGlobalSubtle),defaultBorderWidth:po.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:po.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:po.extend("--ft-text-input-error-border-color","",jo.borderErrorPrimary),errorHelperTextColor:po.extend("--ft-text-input-error-helper-text-color","",jo.contentErrorPrimary),errorHelperIconColor:po.extend("--ft-text-input-error-helper-icon-color","",jo.contentErrorIconOnly),warningBorderWidth:po.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:po.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:po.extend("--ft-text-input-focus-focus-ring-color","",jo.borderActionFocusRing),focusOutlineOffset:po.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:po.extend("--ft-text-input-disabled-component-opacity","",yo.opacity40)},Yo={backgroundColor:po.extend("--ft-text-area-background-color","",yo.colorWhite),contentValueColor:po.extend("--ft-text-area-content-value-color","",jo.contentGlobalPrimary),labelColor:po.extend("--ft-text-area-label-color","",jo.contentGlobalSubtle),defaultBorderColor:po.extend("--ft-text-area-default-border-color","",jo.borderInputPrimary),defaultHelperTextColor:po.extend("--ft-text-area-default-helper-text-color","",jo.contentGlobalSubtle),defaultBorderWidth:po.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:po.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:po.extend("--ft-text-area-error-border-color","",jo.borderErrorPrimary),errorHelperTextColor:po.extend("--ft-text-area-error-helper-text-color","",jo.contentErrorPrimary),errorHelperIconColor:po.extend("--ft-text-area-error-helper-icon-color","",jo.contentErrorIconOnly),focusFocusRingColor:po.extend("--ft-text-area-focus-focus-ring-color","",jo.borderActionFocusRing),focusOutlineWidth:po.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:po.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:po.extend("--ft-text-area-disabled-component-opacity","",yo.opacity40),fieldHorizontalLeftPadding:po.extend("--ft-text-area-field-horizontal-left-padding","",yo.spacing4),fieldHorizontalGap:po.extend("--ft-text-area-field-horizontal-gap","",yo.spacing3),fieldVerticalGap:po.extend("--ft-text-area-field-vertical-gap","",yo.spacing05),fieldMinHeight:po.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:po.extend("--ft-text-area-helper-horizontal-padding","",yo.spacing4),helperHorizontalGap:po.extend("--ft-text-area-helper-horizontal-gap","",yo.spacing1),helperIconSize:po.extend("--ft-text-area-helper-icon-size","",yo.iconSize2),borderRadius:po.extend("--ft-text-area-border-radius","",yo.borderRadiusM)},Jo={height:po.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:po.extend("--ft-floating-menu-horizontal-padding","",yo.spacing4),offIconColor:po.extend("--ft-floating-menu-off-icon-color","",jo.contentGlobalPrimary),offColor:po.extend("--ft-floating-menu-off-color","",jo.contentGlobalPrimary),onColor:po.extend("--ft-floating-menu-on-color","",jo.contentActionPrimary),onStateLayerColor:po.extend("--ft-floating-menu-on-state-layer-color","",jo.contentActionPrimary),gap:po.extend("--ft-floating-menu-gap","",yo.spacing3),focusFocusRingColor:po.extend("--ft-floating-menu-focus-focus-ring-color","",jo.borderActionFocusRing),focusOutlineWidth:po.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:po.extend("--ft-floating-menu-focus-state-layer-opacity","",yo.opacity8),hoverStateLayerOpacity:po.extend("--ft-floating-menu-hover-state-layer-opacity","",yo.opacity8),activeStateLayerOpacity:po.extend("--ft-floating-menu-active-state-layer-opacity","",yo.opacity16),disabledComponentOpacity:po.extend("--ft-floating-menu-disabled-component-opacity","",yo.opacity40),iconSize:po.extend("--ft-floating-menu-icon-size","",yo.iconSize3),backgroundColor:po.extend("--ft-floating-menu-background-color","",jo.backgroundGlobalOnSurface)},Xo={fieldHorizontalPadding:po.extend("--ft-combobox-single-select-field-horizontal-padding","",yo.spacing4),fieldHorizontalGap:po.extend("--ft-combobox-single-select-field-horizontal-gap","",yo.spacing3),fieldVerticalGap:po.extend("--ft-combobox-single-select-field-vertical-gap","",yo.spacing05),fieldIconSize:po.extend("--ft-combobox-single-select-field-icon-size","",yo.iconSize3),fieldHeight:po.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:po.extend("--ft-combobox-single-select-helper-horizontal-padding","",yo.spacing4),helperHorizontalGap:po.extend("--ft-combobox-single-select-helper-horizontal-gap","",yo.spacing1),helperVerticalGap:po.extend("--ft-combobox-single-select-helper-vertical-gap","",yo.spacing1),helperIconSize:po.extend("--ft-combobox-single-select-helper-icon-size","",yo.iconSize2),menuVerticalGap:po.extend("--ft-combobox-single-select-menu-vertical-gap","",yo.spacing2),borderRadius:po.extend("--ft-combobox-single-select-border-radius","",yo.borderRadiusM),backgroundColor:po.extend("--ft-combobox-single-select-background-color","",yo.colorWhite),labelColor:po.extend("--ft-combobox-single-select-label-color","",jo.contentGlobalSubtle),contentValueColor:po.extend("--ft-combobox-single-select-content-value-color","",jo.contentGlobalPrimary),trailingIconColor:po.extend("--ft-combobox-single-select-trailing-icon-color","",jo.contentGlobalSubtle),defaultBorderColor:po.extend("--ft-combobox-single-select-default-border-color","",jo.borderInputPrimary),defaultHelperTextColor:po.extend("--ft-combobox-single-select-default-helper-text-color","",jo.contentGlobalSubtle),defaultBorderWidth:po.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:po.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:po.extend("--ft-combobox-single-select-error-border-color","",jo.borderErrorPrimary),errorHelperTextColor:po.extend("--ft-combobox-single-select-error-helper-text-color","",jo.contentErrorPrimary),warningBorderWidth:po.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:po.extend("--ft-combobox-single-select-warning-border-color","",jo.borderWarningPrimary),warningHelperTextColor:po.extend("--ft-combobox-single-select-warning-helper-text-color","",jo.contentWarningPrimary),warningHelperIconColor:po.extend("--ft-combobox-single-select-warning-helper-icon-color","",jo.contentWarningIconOnly),focusOutlineWidth:po.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:po.extend("--ft-combobox-single-select-focus-focus-ring-color","",jo.borderActionFocusRing),focusOutlineOffset:po.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:po.extend("--ft-combobox-single-select-disabled-component-opacity","",yo.opacity40)},Qo={backgroundColor:po.extend("--ft-combobox-multi-select-background-color","",yo.colorWhite),labelColor:po.extend("--ft-combobox-multi-select-label-color","",jo.contentGlobalSubtle),trailingIconColor:po.extend("--ft-combobox-multi-select-trailing-icon-color","",jo.contentGlobalSubtle),defaultBorderColor:po.extend("--ft-combobox-multi-select-default-border-color","",jo.borderInputPrimary),defaultHelperTextColor:po.extend("--ft-combobox-multi-select-default-helper-text-color","",jo.contentGlobalSubtle),defaultBorderWidth:po.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:po.extend("--ft-combobox-multi-select-error-border-color","",jo.borderErrorPrimary),errorHelperTextColor:po.extend("--ft-combobox-multi-select-error-helper-text-color","",jo.contentErrorPrimary),errorHelperIcon:po.extend("--ft-combobox-multi-select-error-helper-icon","",jo.contentErrorIconOnly),errorBorderWidth:po.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:po.extend("--ft-combobox-multi-select-warning-border-color","",jo.borderWarningPrimary),warningHelperTextColor:po.extend("--ft-combobox-multi-select-warning-helper-text-color","",jo.contentWarningPrimary),warningHelperIconColor:po.extend("--ft-combobox-multi-select-warning-helper-icon-color","",jo.contentWarningIconOnly),warningBorderWidth:po.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:po.extend("--ft-combobox-multi-select-focus-focus-ring-color","",jo.borderActionFocusRing),focusOutlineWidth:po.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:po.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:po.extend("--ft-combobox-multi-select-disabled-component-opacity","",yo.opacity40),helperHorizontalPadding:po.extend("--ft-combobox-multi-select-helper-horizontal-padding","",yo.spacing4),helperHorizontalGap:po.extend("--ft-combobox-multi-select-helper-horizontal-gap","",yo.spacing1),helperVerticalGap:po.extend("--ft-combobox-multi-select-helper-vertical-gap","",yo.spacing1),helperIconSize:po.extend("--ft-combobox-multi-select-helper-icon-size","",yo.iconSize2),fieldHorizontalPadding:po.extend("--ft-combobox-multi-select-field-horizontal-padding","",yo.spacing4),fieldHorizontalGap:po.extend("--ft-combobox-multi-select-field-horizontal-gap","",yo.spacing3),fieldVerticalGap:po.extend("--ft-combobox-multi-select-field-vertical-gap","",yo.spacing05),fieldIconSize:po.extend("--ft-combobox-multi-select-field-icon-size","",yo.iconSize3),fieldMaxHeight:po.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:po.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",yo.spacing1),contentValuesVerticalGap:po.extend("--ft-combobox-multi-select-content-values-vertical-gap","",yo.spacing1),borderRadius:po.extend("--ft-combobox-multi-select-border-radius","",yo.borderRadiusM)},tr={backgroundColor:po.extend("--ft-popover-background-color","",jo.backgroundGlobalOnSurface),horizontalPadding:po.extend("--ft-popover-horizontal-padding","",yo.spacing6),verticalPadding:po.extend("--ft-popover-vertical-padding","",yo.spacing6),iconColor:po.extend("--ft-popover-icon-color","",jo.contentGlobalSecondary),iconSize:po.extend("--ft-popover-icon-size","",yo.iconSize2),titleColor:po.extend("--ft-popover-title-color","",jo.contentGlobalPrimary),bodyColor:po.extend("--ft-popover-body-color","",jo.contentGlobalSecondary),linkColor:po.extend("--ft-popover-link-color","",jo.contentActionPrimary),gap:po.extend("--ft-popover-gap","",yo.spacing3),borderRadius:po.extend("--ft-popover-border-radius","",yo.borderRadiusM),shadow:po.extend("--ft-popover-shadow","",yo.shadowElevation02)},er={topLeftBorderRadius:po.extend("--ft-tabs-top-left-border-radius","",yo.borderRadiusS),topRightBorderRadius:po.extend("--ft-tabs-top-right-border-radius","",yo.borderRadiusS),labelHorizontalPadding:po.extend("--ft-tabs-label-horizontal-padding","",yo.spacing4),labelVerticalPadding:po.extend("--ft-tabs-label-vertical-padding","",yo.spacing3),labelGap:po.extend("--ft-tabs-label-gap","",yo.spacing1),offHoverStateLayerOpacity:po.extend("--ft-tabs-off-hover-state-layer-opacity","",yo.opacity8),offFocusStateLayerOpacity:po.extend("--ft-tabs-off-focus-state-layer-opacity","",yo.opacity8),offActiveStateLayerOpacity:po.extend("--ft-tabs-off-active-state-layer-opacity","",yo.opacity16),offDisabledComponentOpacity:po.extend("--ft-tabs-off-disabled-component-opacity","",yo.opacity40),offColor:po.extend("--ft-tabs-off-color","",jo.contentGlobalSubtle),offStateLayerColor:po.extend("--ft-tabs-off-state-layer-color","",jo.contentGlobalSubtle),onHoverStateLayerOpacity:po.extend("--ft-tabs-on-hover-state-layer-opacity","",yo.opacity8),onFocusStateLayerOpacity:po.extend("--ft-tabs-on-focus-state-layer-opacity","",yo.opacity8),onActiveStateLayerOpacity:po.extend("--ft-tabs-on-active-state-layer-opacity","",yo.opacity16),onDisabledComponentOpacity:po.extend("--ft-tabs-on-disabled-component-opacity","",yo.opacity40),onColor:po.extend("--ft-tabs-on-color","",jo.contentActionPrimary),onStateLayerColor:po.extend("--ft-tabs-on-state-layer-color","",jo.contentActionPrimary),iconHorizontalPadding:po.extend("--ft-tabs-icon-horizontal-padding","",yo.spacing1),iconVerticalPadding:po.extend("--ft-tabs-icon-vertical-padding","",yo.spacing4),focusOutlineWidth:po.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:po.extend("--ft-tabs-focus-focus-ring-color","",jo.borderActionFocusRing)},or={hoverStateLayerOpacity:po.extend("--ft-collapsible-hover-state-layer-opacity","",yo.opacity8),focusStateLayerOpacity:po.extend("--ft-collapsible-focus-state-layer-opacity","",yo.opacity8),focusOutlineWidth:po.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:po.extend("--ft-collapsible-focus-focus-ring-color","",jo.borderActionFocusRing),activeStateLayerOpacity:po.extend("--ft-collapsible-active-state-layer-opacity","",yo.opacity16),disabledComponentOpacity:po.extend("--ft-collapsible-disabled-component-opacity","",yo.opacity40),horizontalPadding:po.extend("--ft-collapsible-horizontal-padding","",yo.spacing4),verticalPadding:po.extend("--ft-collapsible-vertical-padding","",yo.spacing3),color:po.extend("--ft-collapsible-color","",jo.contentGlobalPrimary),stateLayerColor:po.extend("--ft-collapsible-state-layer-color","",jo.contentGlobalPrimary),backgroundColor:po.extend("--ft-collapsible-background-color","",jo.backgroundGlobalOnSurface),borderColor:po.extend("--ft-collapsible-border-color","",jo.borderGlobalSubtle),iconSize:po.extend("--ft-collapsible-icon-size","",yo.iconSize3)},rr={groupHorizontalPadding:po.extend("--ft-switch-group-horizontal-padding","",yo.spacing1),groupVerticalPadding:po.extend("--ft-switch-group-vertical-padding","",yo.spacing1),groupGap:po.extend("--ft-switch-group-gap","",yo.spacing1),groupBackgroundColor:po.extend("--ft-switch-group-background-color","",jo.backgroundGlobalSurface),groupBorderColor:po.extend("--ft-switch-group-border-color","",jo.borderGlobalSubtle),groupBorderRadius:po.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:po.extend("--ft-switch-label-horizontal-padding","",yo.spacing2),labelVerticalPadding:po.extend("--ft-switch-label-vertical-padding","",yo.spacing1),offHoverStateLayerOpacity:po.extend("--ft-switch-off-hover-state-layer-opacity","",yo.opacity8),offFocusStateLayerOpacity:po.extend("--ft-switch-off-focus-state-layer-opacity","",yo.opacity8),offActiveStateLayerOpacity:po.extend("--ft-switch-off-active-state-layer-opacity","",yo.opacity16),offDisabledComponentOpacity:po.extend("--ft-switch-off-disabled-component-opacity","",yo.opacity40),offColor:po.extend("--ft-switch-off-color","",jo.contentGlobalSubtle),offStateLayerColor:po.extend("--ft-switch-off-state-layer-color","",jo.contentGlobalSubtle),onHoverStateLayerOpacity:po.extend("--ft-switch-on-hover-state-layer-opacity","",yo.opacity8),onFocusStateLayerOpacity:po.extend("--ft-switch-on-focus-state-layer-opacity","",yo.opacity8),onActiveStateLayerOpacity:po.extend("--ft-switch-on-active-state-layer-opacity","",yo.opacity16),onDisabledComponentOpacity:po.extend("--ft-switch-on-disabled-component-opacity","",yo.opacity40),onColor:po.extend("--ft-switch-on-color","",jo.contentActionPrimary),onStateLayerColor:po.extend("--ft-switch-on-state-layer-color","",jo.contentActionPrimary),iconHorizontalPadding:po.extend("--ft-switch-icon-horizontal-padding","",yo.spacing1),iconVerticalPadding:po.extend("--ft-switch-icon-vertical-padding","",yo.spacing1),focusOutlineWidth:po.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:po.extend("--ft-switch-focus-focus-ring-color","",jo.borderActionFocusRing),optionBorderRadius:po.extend("--ft-switch-option-border-radius","",yo.borderRadiusS)},ir={color1Light:po.extend("--ft-chart-1-light","for area color charts",yo.colorBrand40),color1Base:po.extend("--ft-chart-1-base","for line charts",yo.colorBrand0),color2Light:po.extend("--ft-chart-2-light","for area color charts",yo.colorYellow60),color2Base:po.extend("--ft-chart-2-base","for line charts",yo.colorYellow100),color3Light:po.extend("--ft-chart-3-light","",yo.colorUltramarine40),color3Base:po.extend("--ft-chart-3-base","",yo.colorUltramarine70),color4Light:po.extend("--ft-chart-4-light","",yo.colorCyan50),color4Base:po.extend("--ft-chart-4-base","",yo.colorCyan100),color5Light:po.extend("--ft-chart-5-light","",yo.colorRed40),color5Base:po.extend("--ft-chart-5-base","",yo.colorRed60),color6Light:po.extend("--ft-chart-6-light","",yo.colorGreen40),color6Base:po.extend("--ft-chart-6-base","",yo.colorGreen70),color7Light:po.extend("--ft-chart-7-light","",yo.colorOrange70),color7Base:po.extend("--ft-chart-7-base","",yo.colorOrange100),color8Light:po.extend("--ft-chart-8-light","",yo.colorAvocado70),color8Base:po.extend("--ft-chart-8-base","",yo.colorAvocado200),color9Light:po.extend("--ft-chart-9-light","",yo.colorBrown50),color9Base:po.extend("--ft-chart-9-base","",yo.colorBrown200),color10Light:po.extend("--ft-chart-10-light","",yo.colorGray50),color10Base:po.extend("--ft-chart-10-base","",yo.colorGray80),monochrome10:po.extend("--ft-chart-monochrome-10","",yo.colorBrand10),monochrome20:po.extend("--ft-chart-monochrome-20","",yo.colorBrand20),monochrome30:po.extend("--ft-chart-monochrome-30","",yo.colorBrand40),monochrome40:po.extend("--ft-chart-monochrome-40","",yo.colorBrand60),monochrome50:po.extend("--ft-chart-monochrome-50","",yo.colorBrand0),monochrome60:po.extend("--ft-chart-monochrome-60","",yo.colorBrand200)},nr={largeHorizontalPadding:po.extend("--ft-chip-large-horizontal-padding","",yo.spacing4),largeVerticalPadding:po.extend("--ft-chip-large-vertical-padding","",yo.spacing2),largeGap:po.extend("--ft-chip-large-gap","",yo.spacing1),largeFocusOutlineOffset:po.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:po.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:po.extend("--ft-chip-large-border-radius","",yo.borderRadiusPill),largeBorderWidth:po.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:po.extend("--ft-chip-large-icon-size","",yo.iconSize3),mediumHorizontalPadding:po.extend("--ft-chip-medium-horizontal-padding","",yo.spacing3),mediumVerticalPadding:po.extend("--ft-chip-medium-vertical-padding","",yo.spacing1),mediumGap:po.extend("--ft-chip-medium-gap","",yo.spacing1),mediumFocusOutlineOffset:po.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:po.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:po.extend("--ft-chip-medium-border-radius","",yo.borderRadiusPill),mediumBorderWidth:po.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:po.extend("--ft-chip-medium-icon-size","",yo.iconSize2),smallHorizontalPadding:po.extend("--ft-chip-small-horizontal-padding","",yo.spacing2),smallVerticalPadding:po.extend("--ft-chip-small-vertical-padding","",yo.spacing05),smallGap:po.extend("--ft-chip-small-gap","",yo.spacing1),smallFocusOutlineOffset:po.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:po.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:po.extend("--ft-chip-small-border-radius","",yo.borderRadiusPill),smallBorderWidth:po.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:po.extend("--ft-chip-small-icon-size","",yo.iconSize1),neutralBackgroundColor:po.extend("--ft-chip-neutral-background-color","",jo.backgroundGlobalOnSurface),neutralColor:po.extend("--ft-chip-neutral-color","",jo.contentGlobalPrimary),neutralIconColor:po.extend("--ft-chip-neutral-icon-color","",jo.contentGlobalPrimary),neutralBorderColor:po.extend("--ft-chip-neutral-border-color","",jo.borderGlobalSubtle),infoBackgroundColor:po.extend("--ft-chip-info-background-color","",jo.backgroundInfoSubtle),infoColor:po.extend("--ft-chip-info-color","",jo.contentInfoPrimary),infoIconColor:po.extend("--ft-chip-info-icon-color","",jo.contentInfoIconOnly),infoBorderColor:po.extend("--ft-chip-info-border-color","",jo.borderInfoSubtle),successBackgroundColor:po.extend("--ft-chip-success-background-color","",jo.backgroundSuccessSubtle),successColor:po.extend("--ft-chip-success-color","",jo.contentSuccessPrimary),successIconColor:po.extend("--ft-chip-success-icon-color","",jo.contentSuccessIconOnly),successBorderColor:po.extend("--ft-chip-success-border-color","",jo.borderSuccessSubtle),warningBackgroundColor:po.extend("--ft-chip-warning-background-color","",jo.backgroundWarningSubtle),warningColor:po.extend("--ft-chip-warning-color","",jo.contentWarningPrimary),warningIconColor:po.extend("--ft-chip-warning-icon-color","",jo.contentWarningIconOnly),warningBorderColor:po.extend("--ft-chip-warning-border-color","",jo.borderWarningSubtle),errorBackgroundColor:po.extend("--ft-chip-error-background-color","",jo.backgroundErrorSubtle),errorColor:po.extend("--ft-chip-error-color","",jo.contentErrorPrimary),errorIconColor:po.extend("--ft-chip-error-icon-color","",jo.contentErrorIconOnly),errorBorderColor:po.extend("--ft-chip-error-border-color","",jo.borderErrorSubtle)},ar={infoBorderColor:po.extend("--ft-border-info-border-color","",jo.borderInfoSubtle)},sr={borderWidth:po.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:po.extend("--ft-notice-horizontal-padding","",yo.spacing2),verticalPadding:po.extend("--ft-notice-vertical-padding","",yo.spacing1),borderRadius:po.extend("--ft-notice-border-radius","",yo.borderRadiusS),gap:po.extend("--ft-notice-gap","",yo.spacing2),iconSize:po.extend("--ft-notice-icon-size","",yo.iconSize3),infoBackgroundColor:po.extend("--ft-notice-info-background-color","",jo.backgroundInfoSubtle),infoBorderColor:po.extend("--ft-notice-info-border-color","",jo.borderInfoSubtle),infoColor:po.extend("--ft-notice-info-color","",jo.contentInfoPrimary),infoIconColor:po.extend("--ft-notice-info-icon-color","",jo.contentInfoIconOnly),warningBackgroundColor:po.extend("--ft-notice-warning-background-color","",jo.backgroundWarningSubtle),warningBorderColor:po.extend("--ft-notice-warning-border-color","",jo.borderWarningSubtle),warningColor:po.extend("--ft-notice-warning-color","",jo.contentWarningPrimary),warningIconColor:po.extend("--ft-notice-warning-icon-color","",jo.contentWarningIconOnly)},cr={color:po.extend("--ft-checkbox-color","",jo.contentGlobalPrimary),checkedBackgroundColor:po.extend("--ft-checkbox-checked-background-color","",jo.contentActionPrimary),checkedStateLayerColor:po.extend("--ft-checkbox-checked-state-layer-color","",jo.contentActionPrimary),checkedIconColor:po.extend("--ft-checkbox-checked-icon-color","",jo.contentGlobalOnColor),checkedHoverStateLayerOpacity:po.extend("--ft-checkbox-checked-hover-state-layer-opacity","",yo.opacity16),checkedFocusStateLayerOpacity:po.extend("--ft-checkbox-checked-focus-state-layer-opacity","",yo.opacity16),checkedActiveStateLayerOpacity:po.extend("--ft-checkbox-checked-active-state-layer-opacity","",yo.opacity24),checkedDisabledComponentOpacity:po.extend("--ft-checkbox-checked-disabled-component-opacity","",yo.opacity40),uncheckedBorderColor:po.extend("--ft-checkbox-unchecked-border-color","",yo.colorGray80),uncheckedStateLayerColor:po.extend("--ft-checkbox-unchecked-state-layer-color","",yo.colorGray80),uncheckedHoverStateLayerOpacity:po.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",yo.opacity16),uncheckedFocusStateLayerOpacity:po.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",yo.opacity16),uncheckedActiveStateLayerOpacity:po.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",yo.opacity24),uncheckedDisabledComponentOpacity:po.extend("--ft-checkbox-unchecked-disabled-component-opacity","",yo.opacity40),focusFocusRingColor:po.extend("--ft-checkbox-focus-focus-ring-color","",jo.borderActionFocusRing),focusOutlineOffset:po.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:po.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:po.extend("--ft-checkbox-gap","",yo.spacing3)},lr={offHoverStateLayerOpacity:po.extend("--ft-toggle-off-hover-state-layer-opacity","",yo.opacity16),offFocusStateLayerOpacity:po.extend("--ft-toggle-off-focus-state-layer-opacity","",yo.opacity16),offActiveStateLayerOpacity:po.extend("--ft-toggle-off-active-state-layer-opacity","",yo.opacity24),offDisabledComponentOpacity:po.extend("--ft-toggle-off-disabled-component-opacity","",yo.opacity40),offBackgroundColor:po.extend("--ft-toggle-off-background-color","",jo.contentGlobalSubtle),offIconColor:po.extend("--ft-toggle-off-icon-color","",jo.contentGlobalSubtle),offStateLayerColor:po.extend("--ft-toggle-off-state-layer-color","",jo.contentGlobalSubtle),onHoverStateLayerOpacity:po.extend("--ft-toggle-on-hover-state-layer-opacity","",yo.opacity16),onFocusStateLayerOpacity:po.extend("--ft-toggle-on-focus-state-layer-opacity","",yo.opacity16),onActiveStateLayerOpacity:po.extend("--ft-toggle-on-active-state-layer-opacity","",yo.opacity24),onDisabledComponentOpacity:po.extend("--ft-toggle-on-disabled-component-opacity","",yo.opacity40),onBackgroundColor:po.extend("--ft-toggle-on-background-color","",jo.contentActionPrimary),onStateLayerColor:po.extend("--ft-toggle-on-state-layer-color","",jo.contentActionPrimary),onIconColor:po.extend("--ft-toggle-on-icon-color","",jo.contentActionPrimary),color:po.extend("--ft-toggle-color","",jo.contentGlobalPrimary),focusFocusRingColor:po.extend("--ft-toggle-focus-focus-ring-color","",jo.borderActionFocusRing),gap:po.extend("--ft-toggle-gap","",yo.spacing3)},fr={color:po.extend("--ft-radio-color","",jo.contentGlobalPrimary),selectedRadioColor:po.extend("--ft-radio-selected-radio-color","",jo.contentActionPrimary),selectedStateLayerColor:po.extend("--ft-radio-selected-state-layer-color","",jo.contentActionPrimary),selectedHoverStateLayerOpacity:po.extend("--ft-radio-selected-hover-state-layer-opacity","",yo.opacity16),selectedFocusStateLayerOpacity:po.extend("--ft-radio-selected-focus-state-layer-opacity","",yo.opacity16),selectedActiveStateLayerOpacity:po.extend("--ft-radio-selected-active-state-layer-opacity","",yo.opacity24),selectedDisabledComponentOpacity:po.extend("--ft-radio-selected-disabled-component-opacity","",yo.opacity40),unselectedStateLayerColor:po.extend("--ft-radio-unselected-state-layer-color","",jo.borderInputPrimary),unselectedBorderColor:po.extend("--ft-radio-unselected-border-color","",jo.borderInputPrimary),unselectedHoverStateLayerOpacity:po.extend("--ft-radio-unselected-hover-state-layer-opacity","",yo.opacity16),unselectedFocusStateLayerOpacity:po.extend("--ft-radio-unselected-focus-state-layer-opacity","",yo.opacity16),unselectedActiveStateLayerOpacity:po.extend("--ft-radio-unselected-active-state-layer-opacity","",yo.opacity24),unselectedDisabledComponentOpacity:po.extend("--ft-radio-unselected-disabled-component-opacity","",yo.opacity40),focusFocusRingColor:po.extend("--ft-radio-focus-focus-ring-color","",jo.borderActionFocusRing),focusOutlineOffset:po.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:po.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:po.extend("--ft-radio-gap","",yo.spacing3)},ur={iconSize:po.extend("--ft-notification-icon-size","",yo.iconSize4),horizontalPadding:po.extend("--ft-notification-horizontal-padding","",yo.spacing4),verticalPadding:po.extend("--ft-notification-vertical-padding","",yo.spacing4),infoBackgroundColor:po.extend("--ft-notification-info-background-color","",jo.backgroundInfoSubtle),infoColor:po.extend("--ft-notification-info-color","",jo.contentInfoPrimary),infoIconColor:po.extend("--ft-notification-info-icon-color","",jo.contentInfoIconOnly),infoBorderColor:po.extend("--ft-notification-info-border-color","",jo.borderInfoSubtle),successBackgroundColor:po.extend("--ft-notification-success-background-color","",jo.backgroundSuccessSubtle),successColor:po.extend("--ft-notification-success-color","",jo.contentSuccessPrimary),successIconColor:po.extend("--ft-notification-success-icon-color","",jo.contentSuccessIconOnly),successBorderColor:po.extend("--ft-notification-success-border-color","",jo.borderSuccessSubtle),warningBackgroundColor:po.extend("--ft-notification-warning-background-color","",jo.backgroundWarningSubtle),warningColor:po.extend("--ft-notification-warning-color","",jo.contentWarningPrimary),warningIconColor:po.extend("--ft-notification-warning-icon-color","",jo.contentWarningIconOnly),warningBorderColor:po.extend("--ft-notification-warning-border-color","",jo.borderWarningSubtle),errorBackgroundColor:po.extend("--ft-notification-error-background-color","",jo.backgroundErrorSubtle),errorColor:po.extend("--ft-notification-error-color","",jo.contentErrorPrimary),errorIconColor:po.extend("--ft-notification-error-icon-color","",jo.contentErrorIconOnly),errorBorderColor:po.extend("--ft-notification-error-border-color","",jo.borderErrorSubtle),borderRadius:po.extend("--ft-notification-border-radius","",yo.borderRadiusPill),borderWidth:po.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:po.extend("--ft-notification-leading-gap","",yo.spacing2),trailingGap:po.extend("--ft-notification-trailing-gap","",yo.spacing8)},hr={horizontalPadding:po.extend("--ft-tooltip-horizontal-padding","",yo.spacing2),verticalPadding:po.extend("--ft-tooltip-vertical-padding","",yo.spacing2),borderRadius:po.extend("--ft-tooltip-border-radius","",yo.borderRadiusS),color:po.extend("--ft-tooltip-color","",jo.contentGlobalOnColor),backgroundColor:po.extend("--ft-tooltip-background-color","",jo.contentGlobalPrimary),backgroundOpacity:po.extend("--ft-tooltip-background-opacity","",yo.opacity80),shadow:po.extend("--ft-tooltip-shadow","",yo.shadowElevation03),maxWidth:po.create("--ft-tooltip-max-width","","SIZE","256px"),gap:po.extend("--ft-tooltip-gap","",yo.spacing05)};var dr=Object.freeze({__proto__:null,FtCssVariableFactory:po,banner:Zo,border:ar,breadcrumb:$o,button:Ho,chart:ir,checkbox:cr,chip:nr,collapsible:or,comboboxMultiSelect:Qo,comboboxSingleSelect:Xo,floatingMenu:Jo,foundation:yo,modal:Vo,notice:sr,notification:ur,pageHeader:Go,popover:tr,radio:fr,semantic:jo,setVariable:function(t,e){return ho(`${t.name}: ${e}`)},switch_:rr,tabs:er,textArea:Yo,textInput:qo,toggle:lr,tooltip:hr,typographies:Ko,typographyBody1Medium:So,typographyBody1Regular:Oo,typographyBody1Semibold:wo,typographyBody2Medium:No,typographyBody2MediumUnderline:Co,typographyBody2Regular:xo,typographyBody2Semibold:Eo,typographyCaption1Bold:Po,typographyCaption1Medium:ko,typographyCaption1Semibold:Fo,typographyCaption2Bold:To,typographyCaption2Medium:_o,typographyCaption2Semibold:Bo,typographyCaption3Bold:zo,typographyCaption3Medium:Do,typographyCaption3Semibold:Mo,typographyDisplay:go,typographyLabel1Bold:Lo,typographyLabel1Medium:Ro,typographyLabel1Semibold:Io,typographyLabel2Bold:Ao,typographyLabel2Medium:Uo,typographyLabel2Semibold:Wo,typographyTitle1:bo,typographyTitle2:mo,typographyTitle3:vo,typographyVariants:["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"]});const pr={colorPrimary:po.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:po.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:po.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:po.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:po.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:po.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:po.create("--ft-color-error","","COLOR","#B00020"),colorOutline:po.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:po.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:po.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:po.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:po.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:po.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:po.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:po.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:po.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:po.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:po.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:po.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:po.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:po.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:po.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:po.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:po.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:po.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:po.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:po.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:po.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:po.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:po.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:po.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:po.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:po.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:po.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:po.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:po.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:po.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:po.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:po.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:po.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:po.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:po.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:po.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:po.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:po.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:po.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:po.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:po.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:po.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:po.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:po.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:po.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:po.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:po.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:po.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:po.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:po.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:po.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:po.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:po.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:po.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:po.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var yr=Object.freeze({__proto__:null,designSystemVariables:pr});class gr extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}class br extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}}class mr extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}}var vr=Object.freeze({__proto__:null,FtNotificationEvent:gr,PostResizeEvent:mr,PreResizeEvent:br});const Or=["start","end"],Sr=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+Or[0],e+"-"+Or[1])),[]),wr=Math.min,xr=Math.max,Nr=Math.round,Cr=t=>({x:t,y:t}),Er={left:"right",right:"left",bottom:"top",top:"bottom"},Rr={start:"end",end:"start"};function Ir(t,e,o){return xr(t,wr(e,o))}function Lr(t,e){return"function"==typeof t?t(e):t}function Ur(t){return t.split("-")[0]}function Wr(t){return t.split("-")[1]}function Ar(t){return"x"===t?"y":"x"}function kr(t){return"y"===t?"height":"width"}function Fr(t){return["top","bottom"].includes(Ur(t))?"y":"x"}function Pr(t){return Ar(Fr(t))}function _r(t){return t.replace(/left|right|bottom|top/g,(t=>Er[t]))}function Br(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Tr(t,e,o){let{reference:r,floating:i}=t;const n=Fr(e),a=Pr(e),s=kr(a),c=Ur(e),l="y"===n,f=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let d;switch(c){case"top":d={x:f,y:r.y-i.height};break;case"bottom":d={x:f,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:u};break;case"left":d={x:r.x-i.width,y:u};break;default:d={x:r.x,y:r.y}}switch(Wr(e)){case"start":d[a]-=h*(o&&l?-1:1);break;case"end":d[a]+=h*(o&&l?-1:1)}return d}async function Dr(t,e){var o;void 0===e&&(e={});const{x:r,y:i,platform:n,rects:a,elements:s,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:h=!1,padding:d=0}=Lr(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}}(d),y=s[h?"floating"===u?"reference":"floating":u],g=Br(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(y)))||o?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:l,rootBoundary:f,strategy:c})),b="floating"===u?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=Br(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:c}):b);return{top:(g.top-O.top+p.top)/v.y,bottom:(O.bottom-g.bottom+p.bottom)/v.y,left:(g.left-O.left+p.left)/v.x,right:(O.right-g.right+p.right)/v.x}}function Mr(t,e,o){return(t?[...o.filter((e=>Wr(e)===t)),...o.filter((e=>Wr(e)!==t))]:o.filter((t=>Ur(t)===t))).filter((o=>!t||(Wr(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Rr[t]))}(o)!==o)))}const zr=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,r,i;const{rects:n,middlewareData:a,placement:s,platform:c,elements:l}=e,{crossAxis:f=!1,alignment:u,allowedPlacements:h=Sr,autoAlignment:d=!0,...p}=Lr(t,e),y=void 0!==u||h===Sr?Mr(u||null,d,h):h,g=await Dr(e,p),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=y[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const r=Wr(t),i=Pr(t),n=kr(i);let a="x"===i?r===(o?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=_r(a)),[a,_r(a)]}(m,n,await(null==c.isRTL?void 0:c.isRTL(l.floating)));if(s!==m)return{reset:{placement:y[0]}};const O=[g[Ur(m)],g[v[0]],g[v[1]]],S=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:O}],w=y[b+1];if(w)return{data:{index:b+1,overflows:S},reset:{placement:w}};const x=S.map((t=>{const e=Wr(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=x.filter((t=>t[2].slice(0,Wr(t[0])?2:3).every((t=>t<=0)))),C=(null==(i=N[0])?void 0:i[0])||x[0][0];return C!==s?{data:{index:b+1,overflows:S},reset:{placement:C}}:{}}}};function Kr(t){return Zr(t)?(t.nodeName||"").toLowerCase():"#document"}function jr(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Hr(t){var e;return null==(e=(Zr(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Zr(t){return t instanceof Node||t instanceof jr(t).Node}function $r(t){return t instanceof Element||t instanceof jr(t).Element}function Gr(t){return t instanceof HTMLElement||t instanceof jr(t).HTMLElement}function Vr(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof jr(t).ShadowRoot)}function qr(t){const{overflow:e,overflowX:o,overflowY:r,display:i}=ti(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+o)&&!["inline","contents"].includes(i)}function Yr(t){return["table","td","th"].includes(Kr(t))}function Jr(t){const e=Xr(),o=ti(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function Xr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Qr(t){return["html","body","#document"].includes(Kr(t))}function ti(t){return jr(t).getComputedStyle(t)}function ei(t){return $r(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function oi(t){if("html"===Kr(t))return t;const e=t.assignedSlot||t.parentNode||Vr(t)&&t.host||Hr(t);return Vr(e)?e.host:e}function ri(t){const e=oi(t);return Qr(e)?t.ownerDocument?t.ownerDocument.body:t.body:Gr(e)&&qr(e)?e:ri(e)}function ii(t,e,o){var r;void 0===e&&(e=[]),void 0===o&&(o=!0);const i=ri(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=jr(i);return n?e.concat(a,a.visualViewport||[],qr(i)?i:[],a.frameElement&&o?ii(a.frameElement):[]):e.concat(i,ii(i,[],o))}function ni(t){const e=ti(t);let o=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=Gr(t),n=i?t.offsetWidth:o,a=i?t.offsetHeight:r,s=Nr(o)!==n||Nr(r)!==a;return s&&(o=n,r=a),{width:o,height:r,$:s}}function ai(t){return $r(t)?t:t.contextElement}function si(t){const e=ai(t);if(!Gr(e))return Cr(1);const o=e.getBoundingClientRect(),{width:r,height:i,$:n}=ni(e);let a=(n?Nr(o.width):o.width)/r,s=(n?Nr(o.height):o.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const ci=Cr(0);function li(t){const e=jr(t);return Xr()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:ci}function fi(t,e,o,r){void 0===e&&(e=!1),void 0===o&&(o=!1);const i=t.getBoundingClientRect(),n=ai(t);let a=Cr(1);e&&(r?$r(r)&&(a=si(r)):a=si(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==jr(t))&&e}(n,o,r)?li(n):Cr(0);let c=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,f=i.width/a.x,u=i.height/a.y;if(n){const t=jr(n),e=r&&$r(r)?jr(r):r;let o=t.frameElement;for(;o&&r&&e!==t;){const t=si(o),e=o.getBoundingClientRect(),r=ti(o),i=e.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,l*=t.y,f*=t.x,u*=t.y,c+=i,l+=n,o=jr(o).frameElement}}return Br({width:f,height:u,x:c,y:l})}function ui(t){return fi(Hr(t)).left+ei(t).scrollLeft}function hi(t,e,o){let r;if("viewport"===e)r=function(t,e){const o=jr(t),r=Hr(t),i=o.visualViewport;let n=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){n=i.width,a=i.height;const t=Xr();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:n,height:a,x:s,y:c}}(t,o);else if("document"===e)r=function(t){const e=Hr(t),o=ei(t),r=t.ownerDocument.body,i=xr(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=xr(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-o.scrollLeft+ui(t);const s=-o.scrollTop;return"rtl"===ti(r).direction&&(a+=xr(e.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:s}}(Hr(t));else if($r(e))r=function(t,e){const o=fi(t,!0,"fixed"===e),r=o.top+t.clientTop,i=o.left+t.clientLeft,n=Gr(t)?si(t):Cr(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(e,o);else{const o=li(t);r={...e,x:e.x-o.x,y:e.y-o.y}}return Br(r)}function di(t,e){const o=oi(t);return!(o===e||!$r(o)||Qr(o))&&("fixed"===ti(o).position||di(o,e))}function pi(t,e,o){const r=Gr(e),i=Hr(e),n="fixed"===o,a=fi(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const c=Cr(0);if(r||!r&&!n)if(("body"!==Kr(e)||qr(i))&&(s=ei(e)),r){const t=fi(e,!0,n,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&(c.x=ui(i));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function yi(t,e){return Gr(t)&&"fixed"!==ti(t).position?e?e(t):t.offsetParent:null}function gi(t,e){const o=jr(t);if(!Gr(t))return o;let r=yi(t,e);for(;r&&Yr(r)&&"static"===ti(r).position;)r=yi(r,e);return r&&("html"===Kr(r)||"body"===Kr(r)&&"static"===ti(r).position&&!Jr(r))?o:r||function(t){let e=oi(t);for(;Gr(e)&&!Qr(e);){if(Jr(e))return e;e=oi(e)}return null}(t)||o}const bi={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:r}=t;const i=Gr(o),n=Hr(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=Cr(1);const c=Cr(0);if((i||!i&&"fixed"!==r)&&(("body"!==Kr(o)||qr(n))&&(a=ei(o)),Gr(o))){const t=fi(o);s=si(o),c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+c.x,y:e.y*s.y-a.scrollTop*s.y+c.y}},getDocumentElement:Hr,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:r,strategy:i}=t;const n=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let r=ii(t,[],!1).filter((t=>$r(t)&&"body"!==Kr(t))),i=null;const n="fixed"===ti(t).position;let a=n?oi(t):t;for(;$r(a)&&!Qr(a);){const e=ti(a),o=Jr(a);o||"fixed"!==e.position||(i=null),(n?!o&&!i:!o&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||qr(a)&&!o&&di(t,a))?r=r.filter((t=>t!==a)):i=e,a=oi(a)}return e.set(t,r),r}(e,this._c):[].concat(o),r],a=n[0],s=n.reduce(((t,o)=>{const r=hi(e,o,i);return t.top=xr(r.top,t.top),t.right=wr(r.right,t.right),t.bottom=wr(r.bottom,t.bottom),t.left=xr(r.left,t.left),t}),hi(e,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:gi,getElementRects:async function(t){let{reference:e,floating:o,strategy:r}=t;const i=this.getOffsetParent||gi,n=this.getDimensions;return{reference:pi(e,await i(o),r),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return ni(t)},getScale:si,isElement:$r,isRTL:function(t){return"rtl"===ti(t).direction}},mi=(t,e,o)=>{const r=new Map,i={platform:bi,...o},n={...i.platform,_c:r};return(async(t,e,o)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=Tr(l,r,c),h=r,d={},p=0;for(let o=0;o<s.length;o++){const{name:n,fn:y}=s[o],{x:g,y:b,data:m,reset:v}=await y({x:f,y:u,initialPlacement:r,placement:h,strategy:i,middlewareData:d,rects:l,platform:a,elements:{reference:t,floating:e}});f=null!=g?g:f,u=null!=b?b:u,d={...d,[n]:{...d[n],...m}},v&&p<=50&&(p++,"object"==typeof v&&(v.placement&&(h=v.placement),v.rects&&(l=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:i}):v.rects),({x:f,y:u}=Tr(l,h,c))),o=-1)}return{x:f,y:u,placement:h,strategy:i,middlewareData:d}})(t,e,{...i,platform:n})};function vi(t){return function(t){for(let e=t;e;e=Oi(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Oi(t);e;e=Oi(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 Oi(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var Si=Object.freeze({__proto__:null,computeOffsetPosition:async function(t,e,o){return mi(t,e,{platform:{...bi,getOffsetParent:t=>bi.getOffsetParent(t,vi)},middleware:[(r={crossAxis:!0},void 0===r&&(r={}),{name:"shift",options:r,async fn(t){const{x:e,y:o,placement:i}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...c}=Lr(r,t),l={x:e,y:o},f=await Dr(t,c),u=Fr(Ur(i)),h=Ar(u);let d=l[h],p=l[u];if(n){const t="y"===h?"bottom":"right";d=Ir(d+f["y"===h?"top":"left"],d,d-f[t])}if(a){const t="y"===u?"bottom":"right";p=Ir(p+f["y"===u?"top":"left"],p,p-f[t])}const y=s.fn({...t,[h]:d,[u]:p});return{...y,data:{x:y.x-e,y:y.y-o}}}}),zr({allowedPlacements:[o]})]});var r}});
137
+ */let He=class extends Ie{constructor(t){if(super(t),this.et=j,t.type!==Ee)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===j||null==t)return this.vt=void 0,this.et=t;if(t===K)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:[]}}};He.directiveName="unsafeHTML",He.resultType=1;const Ze=Re(He);var $e=Object.freeze({__proto__:null,UnsafeHTMLDirective:He,unsafeHTML:Ze});class Ge extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}}class Ve extends Promise{constructor(t){super(((e,o)=>t((t=>{this.isCanceled?o(new Ge("Promise has been canceled",t)):e(t)}),(t=>{this.isCanceled?o(new Ge("Promise has been canceled",void 0,t)):o(t)})))),this.isCanceled=!1}cancel(){this.isCanceled=!0}}const qe=t=>new Ve(((e,o)=>t.then(e).catch(o)));var Ye=Object.freeze({__proto__:null,CancelablePromise:Ve,CanceledPromiseError:Ge,cancelable:qe});class Je{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 Ve&&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=qe(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)}}var Xe=Object.freeze({__proto__:null,CacheRegistry:Je});class Qe{constructor(t,e,o,r){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=o,this.metadataDescriptors=r}static extractResultMetadata(t){var e,o;return(null!==(o=null!==(e=null==t?void 0:t.map)&&void 0!==e?e:null==t?void 0:t.document)&&void 0!==o?o:null==t?void 0:t.topic).metadata.map((t=>Qe.flattenMetadata(t)))}static flattenMetadata(t){if(t.hierarchicalValues){const e=[],o=[];return t.hierarchicalValues.forEach((t=>{e.push(t.join(" > ")),t.length>2?o.push(`... > ${t[t.length-1]}`):o.push(t.join(" > "))})),{key:t.key,value:e.join(", "),displayValue:o.join(", ")}}{const e=t.values.join(", ");return{key:t.key,value:e,displayValue:e}}}computeClustersItemsForMetadata(t,e){let o=Qe.extractResultMetadata(this.selectedResult).find((e=>e.key===t));const r=this.allResults.flatMap((e=>Qe.extractResultMetadata(e).filter((e=>e.key===t)))).filter((t=>!(t.key===(null==o?void 0:o.key)&&t.value===(null==o?void 0:o.value)))).filter(((t,e,o)=>o.findIndex((e=>e.value===t.value))===e));return r.map((e=>({result:this.findBestResultForMetadataValue(t,e.value),metadata:e}))).sort(((o,r)=>this.compareMetadata(o.metadata.value,r.metadata.value,t,e)))}compareMetadata(t,e,o,r){let i=this.metadataDescriptors.find((t=>o==t.key)),n=(null==i?void 0:i.sortRule)||"NONE",a=(null==i?void 0:i.reverseSort)||!1;if("ALPHABET"==n||"VERSION"==n){let o=t.localeCompare(e,r,{numeric:!0});return a?-1*o:o}return 0}findBestResultForMetadataValue(t,e){const o=this.allResults.filter((o=>Qe.extractResultMetadata(o).find((o=>o.key===t&&o.value===e))));let r,i=Qe.extractResultMetadata(this.selectedResult).filter((t=>this.clusteringMetadata.has(t.key))),n=[...i.filter((e=>e.key!==t))],a=-1;for(let t of o){let e=this.countMatchingMetadata(t,n);if(e>a&&(a=e,r=t,e===n.length))break}return r}countMatchingMetadata(t,e){return Qe.extractResultMetadata(t).filter((t=>e.some((e=>e.key===t.key&&e.value===t.value)))).length}}var to=Object.freeze({__proto__:null,ClusteringHelper:Qe});class eo{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const o=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of o)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}var oo=Object.freeze({__proto__:null,Debouncer:eo});const ro=t=>new Promise((e=>setTimeout(e,t)));async function io(t,e=10,o=2e4){let r,i,n=await t();for(r=i=performance.now();null==n&&(!o||i-r<o);)await ro(e),n=await t(),i=performance.now();if(null==n)throw new Error("Timeout exceeded");return n}function no(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,((t,e,o,r)=>e+o+":"+r)),new Date(t)}function ao(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 o,r,i;if(Array.isArray(t)){if((o=t.length)!=e.length)return!1;for(r=o;0!=r--;)if(!ao(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!ao(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[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((o=(i=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=o;0!=r--;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;for(r=o;0!=r--;){var n=i[r];if(!ao(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}var so=Object.freeze({__proto__:null,dateReviver:function(...t){return function(e,o){return t.includes(e)?no(o):o}},deepEqual:ao,delay:ro,eventPathContainsMatchingElement:function(t,e,o=window.document.body){if(e.length>0){const r=t.composedPath();for(let t of r){if(t===o)return!1;if(t.matches&&e.some((e=>t.matches(e))))return!0}}return!1},flatDeep:function t(e,o){return e.flatMap((e=>[e,...t(o(e),o)]))},last:function(t){return t[t.length-1]},minmax:function(t,e,o){return Math.min(Math.max(t,e),o)},parseDate:no,waitFor:io,waitUntil:async function(t,e=10,o=2e4){await io((async()=>await t()||void 0),e,o)}});const co=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function lo(t,e){const o=()=>JSON.parse(JSON.stringify(t));return we({type:Object,converter:{fromAttribute:t=>{if(null==t)return o();try{return JSON.parse(t)}catch{return o()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!ao(t,e),...null!=e?e:{}})}function fo(t){return!isNaN(parseFloat(t))}var uo=Object.freeze({__proto__:null,customElement:co,isNumber:fo,jsonProperty:lo,optionalNumberProperty:function(t){return we({type:Object,converter:{fromAttribute:t=>{if(null!=t)return fo(t)?+t:void 0},toAttribute:t=>null==t?void 0:""+t},...null!=t?t:{}})}});const ho=t=>"string"==typeof t?ft(t):t;class po{static create(t,e,o,r){const i=t=>ho(null!=t?t:r),n=ut`var(${ho(t)}, ${i(r)})`;return n.name=t,n.description=e,n.category=o,n.defaultValue=r,n.defaultCssValue=i,n.get=e=>ut`var(${ho(t)}, ${i(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>r,n}static extend(t,e,o,r){const i=t=>o.get(null!=t?t:r),n=ut`var(${ho(t)}, ${i(r)})`;return n.name=t,n.description=e,n.category=o.category,n.fallbackVariable=o,n.defaultValue=r,n.defaultCssValue=i,n.get=e=>ut`var(${ho(t)}, ${i(e)})`,n.breadcrumb=()=>[o.name,...o.breadcrumb()],n.lastResortDefaultValue=()=>null!=r?r:o.lastResortDefaultValue(),n}static external(t,e){const o=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):ho(null!=e?e:t.lastResortDefaultValue()),r=ut`var(${ho(t.name)}, ${o(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=e,r.defaultCssValue=o,r.get=e=>ut`var(${ho(t.name)}, ${o(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const go={colorWhite:po.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:po.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:po.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:po.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:po.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:po.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:po.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:po.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:po.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:po.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:po.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:po.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:po.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:po.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:po.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:po.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:po.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:po.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:po.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:po.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:po.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:po.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:po.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:po.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:po.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:po.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:po.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:po.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:po.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:po.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:po.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:po.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:po.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:po.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:po.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:po.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:po.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:po.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:po.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:po.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:po.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:po.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:po.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:po.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:po.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:po.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:po.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:po.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:po.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:po.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:po.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:po.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:po.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:po.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:po.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:po.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:po.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:po.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:po.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:po.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:po.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:po.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:po.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:po.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:po.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:po.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:po.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:po.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:po.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:po.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:po.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:po.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:po.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:po.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:po.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:po.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:po.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:po.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:po.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:po.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:po.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:po.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:po.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:po.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:po.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:po.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:po.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:po.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:po.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:po.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:po.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:po.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:po.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:po.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:po.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:po.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:po.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:po.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:po.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:po.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:po.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:po.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:po.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:po.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:po.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:po.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:po.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:po.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:po.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:po.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:po.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:po.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:po.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:po.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:po.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:po.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:po.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:po.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:po.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:po.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:po.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:po.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:po.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:po.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:po.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:po.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:po.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:po.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:po.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:po.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:po.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:po.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:po.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:po.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:po.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:po.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:po.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:po.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:po.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:po.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:po.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:po.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:po.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:po.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:po.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:po.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:po.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:po.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:po.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:po.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:po.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:po.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:po.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:po.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:po.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:po.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:po.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:po.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:po.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:po.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:po.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:po.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:po.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:po.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:po.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:po.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:po.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:po.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:po.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:po.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:po.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:po.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:po.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:po.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:po.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:po.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:po.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:po.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:po.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:po.create("--ft-icon-size-6","","SIZE","48px"),opacity0:po.create("--ft-opacity-0","","NUMBER","0"),opacity8:po.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:po.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:po.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:po.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:po.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:po.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:po.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:po.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:po.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:po.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:po.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:po.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:po.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:po.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)")},yo={fontFamily:po.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:po.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:po.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:po.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-display-textCase","","UNKNOWN","none")},bo={fontFamily:po.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:po.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:po.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:po.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},mo={fontFamily:po.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:po.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:po.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:po.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},vo={fontFamily:po.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:po.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:po.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:po.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Oo={fontFamily:po.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:po.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:po.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:po.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:po.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},wo={fontFamily:po.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:po.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:po.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:po.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},So={fontFamily:po.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:po.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:po.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:po.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},xo={fontFamily:po.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:po.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:po.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:po.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:po.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Co={fontFamily:po.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:po.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:po.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:po.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},No={fontFamily:po.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:po.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:po.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:po.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:po.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:po.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},Eo={fontFamily:po.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:po.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:po.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:po.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:po.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Ro={fontFamily:po.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:po.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:po.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:po.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:po.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Io={fontFamily:po.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:po.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:po.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:po.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:po.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Lo={fontFamily:po.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:po.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:po.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:po.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:po.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:po.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Uo={fontFamily:po.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:po.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:po.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:po.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:po.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Wo={fontFamily:po.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:po.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:po.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:po.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:po.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},ko={fontFamily:po.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:po.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:po.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:po.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:po.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:po.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Ao={fontFamily:po.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:po.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Bo={fontFamily:po.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:po.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Po={fontFamily:po.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:po.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:po.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},Fo={fontFamily:po.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:po.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},_o={fontFamily:po.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:po.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},To={fontFamily:po.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:po.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:po.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Do={fontFamily:po.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:po.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:po.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},Mo={fontFamily:po.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:po.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:po.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},zo={fontFamily:po.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:po.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:po.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:po.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:po.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:po.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:po.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:po.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:po.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Ko={display:yo,"title-1":bo,"title-2":mo,"title-3":vo,"body-1-regular":Oo,"body-1-medium":wo,"body-1-semibold":So,"body-2-regular":xo,"body-2-medium":Co,"body-2-medium-underline":No,"body-2-semibold":Eo,"label-1-medium":Ro,"label-1-semibold":Io,"label-1-bold":Lo,"label-2-medium":Uo,"label-2-semibold":Wo,"label-2-bold":ko,"caption-1-medium":Ao,"caption-1-semibold":Bo,"caption-1-bold":Po,"caption-2-medium":Fo,"caption-2-semibold":_o,"caption-2-bold":To,"caption-3-medium":Do,"caption-3-semibold":Mo,"caption-3-bold":zo},jo={backgroundActionPrimary:po.extend("--ft-background-action-primary","Used as backgorund of primary action components.",go.colorBrand0),backgroundErrorSubtle:po.extend("--ft-background-error-subtle","Used as background of subtle error components.",go.colorRed10),backgroundInfoSubtle:po.extend("--ft-background-info-subtle","Used as background of subtle information components.",go.colorCyan10),backgroundWarningSubtle:po.extend("--ft-background-warning-subtle","Used as background of subtle information components.",go.colorOrange10),backgroundSuccessSubtle:po.extend("--ft-background-success-subtle","Used as background of subtle success components.",go.colorGreen10),backgroundGlobalSurface:po.extend("--ft-background-global-surface","Used as app background.",go.colorWhite),backgroundGlobalOnSurface:po.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",go.colorGray10),backgroundGlobalOnSurfaceDark:po.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",go.colorGray30),contentActionPrimary:po.extend("--ft-content-action-primary","Used on label of primary action on light surface.",go.colorBrand0),contentWarningPrimary:po.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",go.colorOrange200),contentWarningIconOnly:po.extend("--ft-content-warning-icon-only","Used on warning status icons alone",go.colorOrange0),contentErrorPrimary:po.extend("--ft-content-error-primary","Used on label of error messages on light surface.",go.colorRed0),contentErrorIconOnly:po.extend("--ft-content-error-icon-only","Used on error status icons alone",go.colorRed70),contentInfoPrimary:po.extend("--ft-content-info-primary","Used on label of information messages on light surface.",go.colorCyan200),contentInfoIconOnly:po.extend("--ft-content-info-icon-only","Used on info status icons alone",go.colorCyan0),contentSuccessPrimary:po.extend("--ft-content-success-primary","Used on label of success messages on light surface.",go.colorGreen200),contentSuccessIconOnly:po.extend("--ft-content-success-icon-only","Used on success status icons alone",go.colorGreen0),contentGlobalPrimary:po.extend("--ft-content-global-primary","Used for main content on the page.",go.colorGray500),contentGlobalSecondary:po.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",go.colorGray200),contentGlobalSubtle:po.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",go.colorGray0),contentGlobalOnColor:po.extend("--ft-content-global-on-color","Used for content on a dominant color.",go.colorWhite),borderActionPrimary:po.extend("--ft-border-action-primary","Used as border for primary action components.",go.colorBrand0),borderActionFocusRing:po.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",go.colorCyan0),borderWarningPrimary:po.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",go.colorOrange200),borderWarningSubtle:po.extend("--ft-border-warning-subtle","Used as border for warning components.",go.colorOrange30),borderSuccessPrimary:po.extend("--ft-border-success-primary","Used as border for success buttons.",go.colorGreen200),borderSuccessSubtle:po.extend("--ft-border-success-subtle","Used as border for success components.",go.colorGreen30),borderErrorPrimary:po.extend("--ft-border-error-primary","Used as border for text fields in error states.",go.colorRed0),borderErrorSubtle:po.extend("--ft-border-error-subtle","Used as border for error components.",go.colorRed30),borderInfoPrimary:po.extend("--ft-border-info-primary","Used as border for buttons in info color.",go.colorCyan200),borderInfoSubtle:po.extend("--ft-border-info-subtle","Used as border for information components.",go.colorCyan30),borderGlobalPrimary:po.extend("--ft-border-global-primary","Used as border for element like input.",go.colorGray50),borderGlobalSubtle:po.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",go.colorGray30),borderInputPrimary:po.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",go.colorGray80)},Ho={largeHeight:po.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:po.extend("--ft-button-large-horizontal-padding","",go.spacing4),largeGap:po.extend("--ft-button-large-gap","",go.spacing2),largeBorderRadius:po.extend("--ft-button-large-border-radius","",go.borderRadiusS),largeIconSize:po.extend("--ft-button-large-icon-size","",go.iconSize3),largeBorderWidth:po.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:po.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:po.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:po.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:po.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:po.extend("--ft-button-small-horizontal-padding","",go.spacing3),smallGap:po.extend("--ft-button-small-gap","",go.spacing2),smallBorderRadius:po.extend("--ft-button-small-border-radius","",go.borderRadiusS),smallIconSize:po.extend("--ft-button-small-icon-size","",go.iconSize2),smallBorderWidth:po.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:po.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:po.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:po.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:po.extend("--ft-button-primary-background-color","",jo.backgroundActionPrimary),primaryColor:po.extend("--ft-button-primary-color","",jo.contentGlobalOnColor),primaryIconColor:po.extend("--ft-button-primary-icon-color","",jo.contentGlobalOnColor),primaryStateLayerColor:po.extend("--ft-button-primary-state-layer-color","",jo.contentGlobalOnColor),primaryHoverStateLayerOpacity:po.extend("--ft-button-primary-hover-state-layer-opacity","",go.opacity16),primaryFocusStateLayerOpacity:po.extend("--ft-button-primary-focus-state-layer-opacity","",go.opacity16),primaryActiveStateLayerOpacity:po.extend("--ft-button-primary-active-state-layer-opacity","",go.opacity24),primaryDisabledComponentOpacity:po.extend("--ft-button-primary-disabled-component-opacity","",go.opacity40),focusFocusRingColor:po.extend("--ft-button-focus-focus-ring-color","",jo.borderActionFocusRing),tertiaryBackgroundColor:po.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:po.extend("--ft-button-tertiary-color","",jo.contentActionPrimary),tertiaryIconColor:po.extend("--ft-button-tertiary-icon-color","",jo.contentActionPrimary),tertiaryStateLayerColor:po.extend("--ft-button-tertiary-state-layer-color","",jo.contentActionPrimary),tertiaryHoverStateLayerOpacity:po.extend("--ft-button-tertiary-hover-state-layer-opacity","",go.opacity8),tertiaryFocusStateLayerOpacity:po.extend("--ft-button-tertiary-focus-state-layer-opacity","",go.opacity8),tertiaryActiveStateLayerOpacity:po.extend("--ft-button-tertiary-active-state-layer-opacity","",go.opacity16),tertiaryDisabledComponentOpacity:po.extend("--ft-button-tertiary-disabled-component-opacity","",go.opacity40),secondaryBackgroundColor:po.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:po.extend("--ft-button-secondary-color","",jo.contentActionPrimary),secondaryIconColor:po.extend("--ft-button-secondary-icon-color","",jo.contentActionPrimary),secondaryStateLayerColor:po.extend("--ft-button-secondary-state-layer-color","",jo.contentActionPrimary),secondaryHoverStateLayerOpacity:po.extend("--ft-button-secondary-hover-state-layer-opacity","",go.opacity8),secondaryFocusStateLayerOpacity:po.extend("--ft-button-secondary-focus-state-layer-opacity","",go.opacity8),secondaryActiveStateLayerOpacity:po.extend("--ft-button-secondary-active-state-layer-opacity","",go.opacity16),secondaryDisabledComponentOpacity:po.extend("--ft-button-secondary-disabled-component-opacity","",go.opacity40),secondaryBorderColor:po.extend("--ft-button-secondary-border-color","",jo.borderActionPrimary),neutralBackgroundColor:po.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:po.extend("--ft-button-neutral-icon-color","",jo.contentGlobalSecondary),neutralColor:po.extend("--ft-button-neutral-color","",jo.contentGlobalSecondary),neutralStateLayerColor:po.extend("--ft-button-neutral-state-layer-color","",jo.contentGlobalSecondary),neutralHoverStateLayerOpacity:po.extend("--ft-button-neutral-hover-state-layer-opacity","",go.opacity8),neutralFocusStateLayerOpacity:po.extend("--ft-button-neutral-focus-state-layer-opacity","",go.opacity8),neutralActiveStateLayerOpacity:po.extend("--ft-button-neutral-active-state-layer-opacity","",go.opacity16),neutralDisabledComponentOpacity:po.extend("--ft-button-neutral-disabled-component-opacity","",go.opacity40)},Zo={iconSize:po.extend("--ft-banner-icon-size","",go.iconSize5),borderWidth:po.create("--ft-banner-border-width","","SIZE","1px"),horizontalPadding:po.extend("--ft-banner-horizontal-padding","",go.spacing6),verticalPadding:po.extend("--ft-banner-vertical-padding","",go.spacing6),horizontalSideGap:po.extend("--ft-banner-horizontal-side-gap","",go.spacing6),horizontalMobileGap:po.extend("--ft-banner-horizontal-mobile-gap","",go.spacing4),verticalMobileGap:po.extend("--ft-banner-vertical-mobile-gap","",go.spacing6),horizontalMiddleGap:po.extend("--ft-banner-horizontal-middle-gap","",go.spacing20),infoBackgroundColor:po.extend("--ft-banner-info-background-color","",jo.backgroundInfoSubtle),infoColor:po.extend("--ft-banner-info-color","",jo.contentInfoPrimary),infoIconColor:po.extend("--ft-banner-info-icon-color","",jo.contentInfoIconOnly)},$o={horizontalGap:po.extend("--ft-breadcrumb-horizontal-gap","",go.spacing1),verticalGap:po.extend("--ft-breadcrumb-vertical-gap","",go.spacing2),currentElementColor:po.extend("--ft-breadcrumb-current-element-color","",jo.contentGlobalPrimary),iconColor:po.extend("--ft-breadcrumb-icon-color","",jo.contentGlobalSubtle)},Go={horizontalPadding:po.extend("--ft-page-header-horizontal-padding","",go.spacing12),horizontalGap:po.extend("--ft-page-header-horizontal-gap","",go.spacing4),verticalGap:po.extend("--ft-page-header-vertical-gap","",go.spacing2),classicVerticalPadding:po.extend("--ft-page-header-classic-vertical-padding","",go.spacing6),multilineVerticalPadding:po.extend("--ft-page-header-multiline-vertical-padding","",go.spacing4),inlineVerticalPadding:po.extend("--ft-page-header-inline-vertical-padding","",go.spacing2),backgroundColor:po.extend("--ft-page-header-background-color","",go.colorWhite),bottomBorderColor:po.extend("--ft-page-header-bottom-border-color","",jo.borderGlobalSubtle),titleColor:po.extend("--ft-page-header-title-color","",jo.contentGlobalPrimary),subtitleColor:po.extend("--ft-page-header-subtitle-color","",jo.contentGlobalSecondary)},Vo={smallContainerWidth:po.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:po.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:po.extend("--ft-modal-overlay-background-color","",go.colorGray700),overlayOpacity:po.extend("--ft-modal-overlay-opacity","",go.opacity40),shadow:po.extend("--ft-modal-shadow","",go.shadowElevation03),bodyBackgroundColor:po.extend("--ft-modal-body-background-color","",go.colorWhite),bodyColor:po.extend("--ft-modal-body-color","",jo.contentGlobalPrimary),bodyHorizontalPadding:po.extend("--ft-modal-body-horizontal-padding","",go.spacing6),bodyVerticalPadding:po.extend("--ft-modal-body-vertical-padding","",go.spacing6),bodyVerticalGap:po.extend("--ft-modal-body-vertical-gap","",go.spacing6),containerMargin:po.extend("--ft-modal-container-margin","",go.spacing3),headerBackgroundColor:po.extend("--ft-modal-header-background-color","",jo.backgroundGlobalOnSurface),headerBorderColor:po.extend("--ft-modal-header-border-color","",jo.borderGlobalSubtle),headerColor:po.extend("--ft-modal-header-color","",jo.contentGlobalPrimary),headerTrailingIconColor:po.extend("--ft-modal-header-trailing-icon-color","",jo.contentGlobalSecondary),headerVerticalPadding:po.extend("--ft-modal-header-vertical-padding","",go.spacing1),headerRightPadding:po.extend("--ft-modal-header-right-padding","",go.spacing1),headerLeftPadding:po.extend("--ft-modal-header-left-padding","",go.spacing6),headerGap:po.extend("--ft-modal-header-gap","",go.spacing2),headerBorderBottom:po.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:po.extend("--ft-modal-border-radius","",go.borderRadiusM)},qo={overlayOpacity:po.extend("--ft-drawer-overlay-opacity","",go.opacity40),shadow:po.extend("--ft-drawer-shadow","",go.shadowElevation03),bodyColor:po.extend("--ft-drawer-body-color","",jo.contentGlobalPrimary),bodyHorizontalPadding:po.extend("--ft-drawer-body-horizontal-padding","",go.spacing6),bodyVerticalPadding:po.extend("--ft-drawer-body-vertical-padding","",go.spacing6),bodyGap:po.extend("--ft-drawer-body-gap","",go.spacing6),bodyBackgroundColor:po.extend("--ft-drawer-body-background-color","",go.colorWhite),headerBackgroundColor:po.extend("--ft-drawer-header-background-color","",jo.backgroundGlobalOnSurface),headerBorderColor:po.extend("--ft-drawer-header-border-color","",jo.borderGlobalSubtle),headerColor:po.extend("--ft-drawer-header-color","",jo.contentGlobalPrimary),headerTrailingIconColor:po.extend("--ft-drawer-header-trailing-icon-color","",jo.contentGlobalSecondary),headerHeight:po.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:po.extend("--ft-drawer-header-horizontal-padding","",go.spacing2),headerBorderWidth:po.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:po.extend("--ft-drawer-header-gap","",go.spacing3),buttonsBarBackgroundColor:po.extend("--ft-drawer-buttons-bar-background-color","",jo.backgroundGlobalOnSurface),buttonsBarBorderColor:po.extend("--ft-drawer-buttons-bar-border-color","",jo.borderGlobalSubtle),buttonsBarColor:po.extend("--ft-drawer-buttons-bar-color","",jo.contentGlobalPrimary),buttonsBarHorizontalPadding:po.extend("--ft-drawer-buttons-bar-horizontal-padding","",go.spacing4),buttonsBarVerticalPadding:po.extend("--ft-drawer-buttons-bar-vertical-padding","",go.spacing4),buttonsBarGap:po.extend("--ft-drawer-buttons-bar-gap","",go.spacing3),buttonsBarBorderWidth:po.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:po.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:po.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:po.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:po.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:po.extend("--ft-drawer-overlay-background-color","",go.colorGray700)},Yo={fieldHorizontalPadding:po.extend("--ft-text-input-field-horizontal-padding","",go.spacing4),fieldHorizontalGap:po.extend("--ft-text-input-field-horizontal-gap","",go.spacing3),fieldVerticalGap:po.extend("--ft-text-input-field-vertical-gap","",go.spacing05),fieldIconSize:po.extend("--ft-text-input-field-icon-size","",go.iconSize3),fieldHeight:po.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:po.extend("--ft-text-input-helper-horizontal-padding","",go.spacing4),helperHorizontalGap:po.extend("--ft-text-input-helper-horizontal-gap","",go.spacing1),helperIconSize:po.extend("--ft-text-input-helper-icon-size","",go.iconSize2),borderRadius:po.extend("--ft-text-input-border-radius","",go.borderRadiusM),backgroundColor:po.extend("--ft-text-input-background-color","",go.colorWhite),contentValueColor:po.extend("--ft-text-input-content-value-color","",jo.contentGlobalPrimary),trailingIconColor:po.extend("--ft-text-input-trailing-icon-color","",jo.contentGlobalSubtle),labelColor:po.extend("--ft-text-input-label-color","",jo.contentGlobalSubtle),defaultBorderColor:po.extend("--ft-text-input-default-border-color","",jo.borderInputPrimary),defaultHelperTextColor:po.extend("--ft-text-input-default-helper-text-color","",jo.contentGlobalSubtle),defaultBorderWidth:po.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:po.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:po.extend("--ft-text-input-error-border-color","",jo.borderErrorPrimary),errorHelperTextColor:po.extend("--ft-text-input-error-helper-text-color","",jo.contentErrorPrimary),errorHelperIconColor:po.extend("--ft-text-input-error-helper-icon-color","",jo.contentErrorIconOnly),warningBorderWidth:po.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:po.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:po.extend("--ft-text-input-focus-focus-ring-color","",jo.borderActionFocusRing),focusOutlineOffset:po.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:po.extend("--ft-text-input-disabled-component-opacity","",go.opacity40)},Jo={backgroundColor:po.extend("--ft-text-area-background-color","",go.colorWhite),contentValueColor:po.extend("--ft-text-area-content-value-color","",jo.contentGlobalPrimary),labelColor:po.extend("--ft-text-area-label-color","",jo.contentGlobalSubtle),defaultBorderColor:po.extend("--ft-text-area-default-border-color","",jo.borderInputPrimary),defaultHelperTextColor:po.extend("--ft-text-area-default-helper-text-color","",jo.contentGlobalSubtle),defaultBorderWidth:po.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:po.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:po.extend("--ft-text-area-error-border-color","",jo.borderErrorPrimary),errorHelperTextColor:po.extend("--ft-text-area-error-helper-text-color","",jo.contentErrorPrimary),errorHelperIconColor:po.extend("--ft-text-area-error-helper-icon-color","",jo.contentErrorIconOnly),focusFocusRingColor:po.extend("--ft-text-area-focus-focus-ring-color","",jo.borderActionFocusRing),focusOutlineWidth:po.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:po.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:po.extend("--ft-text-area-disabled-component-opacity","",go.opacity40),fieldHorizontalLeftPadding:po.extend("--ft-text-area-field-horizontal-left-padding","",go.spacing4),fieldHorizontalGap:po.extend("--ft-text-area-field-horizontal-gap","",go.spacing3),fieldVerticalGap:po.extend("--ft-text-area-field-vertical-gap","",go.spacing05),fieldMinHeight:po.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:po.extend("--ft-text-area-helper-horizontal-padding","",go.spacing4),helperHorizontalGap:po.extend("--ft-text-area-helper-horizontal-gap","",go.spacing1),helperIconSize:po.extend("--ft-text-area-helper-icon-size","",go.iconSize2),borderRadius:po.extend("--ft-text-area-border-radius","",go.borderRadiusM)},Xo={height:po.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:po.extend("--ft-floating-menu-horizontal-padding","",go.spacing4),offIconColor:po.extend("--ft-floating-menu-off-icon-color","",jo.contentGlobalPrimary),offColor:po.extend("--ft-floating-menu-off-color","",jo.contentGlobalPrimary),onColor:po.extend("--ft-floating-menu-on-color","",jo.contentActionPrimary),onStateLayerColor:po.extend("--ft-floating-menu-on-state-layer-color","",jo.contentActionPrimary),gap:po.extend("--ft-floating-menu-gap","",go.spacing3),focusFocusRingColor:po.extend("--ft-floating-menu-focus-focus-ring-color","",jo.borderActionFocusRing),focusOutlineWidth:po.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:po.extend("--ft-floating-menu-focus-state-layer-opacity","",go.opacity8),hoverStateLayerOpacity:po.extend("--ft-floating-menu-hover-state-layer-opacity","",go.opacity8),activeStateLayerOpacity:po.extend("--ft-floating-menu-active-state-layer-opacity","",go.opacity16),disabledComponentOpacity:po.extend("--ft-floating-menu-disabled-component-opacity","",go.opacity40),iconSize:po.extend("--ft-floating-menu-icon-size","",go.iconSize3),backgroundColor:po.extend("--ft-floating-menu-background-color","",jo.backgroundGlobalOnSurface)},Qo={fieldHorizontalPadding:po.extend("--ft-combobox-single-select-field-horizontal-padding","",go.spacing4),fieldHorizontalGap:po.extend("--ft-combobox-single-select-field-horizontal-gap","",go.spacing3),fieldVerticalGap:po.extend("--ft-combobox-single-select-field-vertical-gap","",go.spacing05),fieldIconSize:po.extend("--ft-combobox-single-select-field-icon-size","",go.iconSize3),fieldHeight:po.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:po.extend("--ft-combobox-single-select-helper-horizontal-padding","",go.spacing4),helperHorizontalGap:po.extend("--ft-combobox-single-select-helper-horizontal-gap","",go.spacing1),helperVerticalGap:po.extend("--ft-combobox-single-select-helper-vertical-gap","",go.spacing1),helperIconSize:po.extend("--ft-combobox-single-select-helper-icon-size","",go.iconSize2),menuVerticalGap:po.extend("--ft-combobox-single-select-menu-vertical-gap","",go.spacing2),borderRadius:po.extend("--ft-combobox-single-select-border-radius","",go.borderRadiusM),backgroundColor:po.extend("--ft-combobox-single-select-background-color","",go.colorWhite),labelColor:po.extend("--ft-combobox-single-select-label-color","",jo.contentGlobalSubtle),contentValueColor:po.extend("--ft-combobox-single-select-content-value-color","",jo.contentGlobalPrimary),trailingIconColor:po.extend("--ft-combobox-single-select-trailing-icon-color","",jo.contentGlobalSubtle),defaultBorderColor:po.extend("--ft-combobox-single-select-default-border-color","",jo.borderInputPrimary),defaultHelperTextColor:po.extend("--ft-combobox-single-select-default-helper-text-color","",jo.contentGlobalSubtle),defaultBorderWidth:po.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:po.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:po.extend("--ft-combobox-single-select-error-border-color","",jo.borderErrorPrimary),errorHelperTextColor:po.extend("--ft-combobox-single-select-error-helper-text-color","",jo.contentErrorPrimary),warningBorderWidth:po.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:po.extend("--ft-combobox-single-select-warning-border-color","",jo.borderWarningPrimary),warningHelperTextColor:po.extend("--ft-combobox-single-select-warning-helper-text-color","",jo.contentWarningPrimary),warningHelperIconColor:po.extend("--ft-combobox-single-select-warning-helper-icon-color","",jo.contentWarningIconOnly),focusOutlineWidth:po.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:po.extend("--ft-combobox-single-select-focus-focus-ring-color","",jo.borderActionFocusRing),focusOutlineOffset:po.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:po.extend("--ft-combobox-single-select-disabled-component-opacity","",go.opacity40)},tr={backgroundColor:po.extend("--ft-combobox-multi-select-background-color","",go.colorWhite),labelColor:po.extend("--ft-combobox-multi-select-label-color","",jo.contentGlobalSubtle),trailingIconColor:po.extend("--ft-combobox-multi-select-trailing-icon-color","",jo.contentGlobalSubtle),defaultBorderColor:po.extend("--ft-combobox-multi-select-default-border-color","",jo.borderInputPrimary),defaultHelperTextColor:po.extend("--ft-combobox-multi-select-default-helper-text-color","",jo.contentGlobalSubtle),defaultBorderWidth:po.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:po.extend("--ft-combobox-multi-select-error-border-color","",jo.borderErrorPrimary),errorHelperTextColor:po.extend("--ft-combobox-multi-select-error-helper-text-color","",jo.contentErrorPrimary),errorHelperIcon:po.extend("--ft-combobox-multi-select-error-helper-icon","",jo.contentErrorIconOnly),errorBorderWidth:po.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:po.extend("--ft-combobox-multi-select-warning-border-color","",jo.borderWarningPrimary),warningHelperTextColor:po.extend("--ft-combobox-multi-select-warning-helper-text-color","",jo.contentWarningPrimary),warningHelperIconColor:po.extend("--ft-combobox-multi-select-warning-helper-icon-color","",jo.contentWarningIconOnly),warningBorderWidth:po.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:po.extend("--ft-combobox-multi-select-focus-focus-ring-color","",jo.borderActionFocusRing),focusOutlineWidth:po.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:po.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:po.extend("--ft-combobox-multi-select-disabled-component-opacity","",go.opacity40),helperHorizontalPadding:po.extend("--ft-combobox-multi-select-helper-horizontal-padding","",go.spacing4),helperHorizontalGap:po.extend("--ft-combobox-multi-select-helper-horizontal-gap","",go.spacing1),helperVerticalGap:po.extend("--ft-combobox-multi-select-helper-vertical-gap","",go.spacing1),helperIconSize:po.extend("--ft-combobox-multi-select-helper-icon-size","",go.iconSize2),fieldHorizontalPadding:po.extend("--ft-combobox-multi-select-field-horizontal-padding","",go.spacing4),fieldHorizontalGap:po.extend("--ft-combobox-multi-select-field-horizontal-gap","",go.spacing3),fieldVerticalGap:po.extend("--ft-combobox-multi-select-field-vertical-gap","",go.spacing05),fieldIconSize:po.extend("--ft-combobox-multi-select-field-icon-size","",go.iconSize3),fieldMaxHeight:po.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:po.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",go.spacing1),contentValuesVerticalGap:po.extend("--ft-combobox-multi-select-content-values-vertical-gap","",go.spacing1),borderRadius:po.extend("--ft-combobox-multi-select-border-radius","",go.borderRadiusM)},er={backgroundColor:po.extend("--ft-popover-background-color","",jo.backgroundGlobalOnSurface),horizontalPadding:po.extend("--ft-popover-horizontal-padding","",go.spacing6),verticalPadding:po.extend("--ft-popover-vertical-padding","",go.spacing6),iconColor:po.extend("--ft-popover-icon-color","",jo.contentGlobalSecondary),iconSize:po.extend("--ft-popover-icon-size","",go.iconSize2),titleColor:po.extend("--ft-popover-title-color","",jo.contentGlobalPrimary),bodyColor:po.extend("--ft-popover-body-color","",jo.contentGlobalSecondary),linkColor:po.extend("--ft-popover-link-color","",jo.contentActionPrimary),gap:po.extend("--ft-popover-gap","",go.spacing3),borderRadius:po.extend("--ft-popover-border-radius","",go.borderRadiusM),shadow:po.extend("--ft-popover-shadow","",go.shadowElevation02)},or={topLeftBorderRadius:po.extend("--ft-tabs-top-left-border-radius","",go.borderRadiusS),topRightBorderRadius:po.extend("--ft-tabs-top-right-border-radius","",go.borderRadiusS),labelHorizontalPadding:po.extend("--ft-tabs-label-horizontal-padding","",go.spacing4),labelVerticalPadding:po.extend("--ft-tabs-label-vertical-padding","",go.spacing3),labelGap:po.extend("--ft-tabs-label-gap","",go.spacing1),offHoverStateLayerOpacity:po.extend("--ft-tabs-off-hover-state-layer-opacity","",go.opacity8),offFocusStateLayerOpacity:po.extend("--ft-tabs-off-focus-state-layer-opacity","",go.opacity8),offActiveStateLayerOpacity:po.extend("--ft-tabs-off-active-state-layer-opacity","",go.opacity16),offDisabledComponentOpacity:po.extend("--ft-tabs-off-disabled-component-opacity","",go.opacity40),offColor:po.extend("--ft-tabs-off-color","",jo.contentGlobalSubtle),offStateLayerColor:po.extend("--ft-tabs-off-state-layer-color","",jo.contentGlobalSubtle),onHoverStateLayerOpacity:po.extend("--ft-tabs-on-hover-state-layer-opacity","",go.opacity8),onFocusStateLayerOpacity:po.extend("--ft-tabs-on-focus-state-layer-opacity","",go.opacity8),onActiveStateLayerOpacity:po.extend("--ft-tabs-on-active-state-layer-opacity","",go.opacity16),onDisabledComponentOpacity:po.extend("--ft-tabs-on-disabled-component-opacity","",go.opacity40),onColor:po.extend("--ft-tabs-on-color","",jo.contentActionPrimary),onStateLayerColor:po.extend("--ft-tabs-on-state-layer-color","",jo.contentActionPrimary),iconHorizontalPadding:po.extend("--ft-tabs-icon-horizontal-padding","",go.spacing1),iconVerticalPadding:po.extend("--ft-tabs-icon-vertical-padding","",go.spacing4),focusOutlineWidth:po.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:po.extend("--ft-tabs-focus-focus-ring-color","",jo.borderActionFocusRing)},rr={hoverStateLayerOpacity:po.extend("--ft-collapsible-hover-state-layer-opacity","",go.opacity8),focusStateLayerOpacity:po.extend("--ft-collapsible-focus-state-layer-opacity","",go.opacity8),focusOutlineWidth:po.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:po.extend("--ft-collapsible-focus-focus-ring-color","",jo.borderActionFocusRing),activeStateLayerOpacity:po.extend("--ft-collapsible-active-state-layer-opacity","",go.opacity16),disabledComponentOpacity:po.extend("--ft-collapsible-disabled-component-opacity","",go.opacity40),horizontalPadding:po.extend("--ft-collapsible-horizontal-padding","",go.spacing4),verticalPadding:po.extend("--ft-collapsible-vertical-padding","",go.spacing3),color:po.extend("--ft-collapsible-color","",jo.contentGlobalPrimary),stateLayerColor:po.extend("--ft-collapsible-state-layer-color","",jo.contentGlobalPrimary),backgroundColor:po.extend("--ft-collapsible-background-color","",jo.backgroundGlobalOnSurface),borderColor:po.extend("--ft-collapsible-border-color","",jo.borderGlobalSubtle),iconSize:po.extend("--ft-collapsible-icon-size","",go.iconSize3)},ir={groupHorizontalPadding:po.extend("--ft-switch-group-horizontal-padding","",go.spacing1),groupVerticalPadding:po.extend("--ft-switch-group-vertical-padding","",go.spacing1),groupGap:po.extend("--ft-switch-group-gap","",go.spacing1),groupBackgroundColor:po.extend("--ft-switch-group-background-color","",jo.backgroundGlobalSurface),groupBorderColor:po.extend("--ft-switch-group-border-color","",jo.borderGlobalSubtle),groupBorderRadius:po.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:po.extend("--ft-switch-label-horizontal-padding","",go.spacing2),labelVerticalPadding:po.extend("--ft-switch-label-vertical-padding","",go.spacing1),offHoverStateLayerOpacity:po.extend("--ft-switch-off-hover-state-layer-opacity","",go.opacity8),offFocusStateLayerOpacity:po.extend("--ft-switch-off-focus-state-layer-opacity","",go.opacity8),offActiveStateLayerOpacity:po.extend("--ft-switch-off-active-state-layer-opacity","",go.opacity16),offDisabledComponentOpacity:po.extend("--ft-switch-off-disabled-component-opacity","",go.opacity40),offColor:po.extend("--ft-switch-off-color","",jo.contentGlobalSubtle),offStateLayerColor:po.extend("--ft-switch-off-state-layer-color","",jo.contentGlobalSubtle),onHoverStateLayerOpacity:po.extend("--ft-switch-on-hover-state-layer-opacity","",go.opacity8),onFocusStateLayerOpacity:po.extend("--ft-switch-on-focus-state-layer-opacity","",go.opacity8),onActiveStateLayerOpacity:po.extend("--ft-switch-on-active-state-layer-opacity","",go.opacity16),onDisabledComponentOpacity:po.extend("--ft-switch-on-disabled-component-opacity","",go.opacity40),onColor:po.extend("--ft-switch-on-color","",jo.contentActionPrimary),onStateLayerColor:po.extend("--ft-switch-on-state-layer-color","",jo.contentActionPrimary),iconHorizontalPadding:po.extend("--ft-switch-icon-horizontal-padding","",go.spacing1),iconVerticalPadding:po.extend("--ft-switch-icon-vertical-padding","",go.spacing1),focusOutlineWidth:po.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:po.extend("--ft-switch-focus-focus-ring-color","",jo.borderActionFocusRing),optionBorderRadius:po.extend("--ft-switch-option-border-radius","",go.borderRadiusS)},nr={color1Light:po.extend("--ft-chart-1-light","for area color charts",go.colorBrand40),color1Base:po.extend("--ft-chart-1-base","for line charts",go.colorBrand0),color2Light:po.extend("--ft-chart-2-light","for area color charts",go.colorYellow60),color2Base:po.extend("--ft-chart-2-base","for line charts",go.colorYellow100),color3Light:po.extend("--ft-chart-3-light","",go.colorUltramarine40),color3Base:po.extend("--ft-chart-3-base","",go.colorUltramarine70),color4Light:po.extend("--ft-chart-4-light","",go.colorCyan50),color4Base:po.extend("--ft-chart-4-base","",go.colorCyan100),color5Light:po.extend("--ft-chart-5-light","",go.colorRed40),color5Base:po.extend("--ft-chart-5-base","",go.colorRed60),color6Light:po.extend("--ft-chart-6-light","",go.colorGreen40),color6Base:po.extend("--ft-chart-6-base","",go.colorGreen70),color7Light:po.extend("--ft-chart-7-light","",go.colorOrange70),color7Base:po.extend("--ft-chart-7-base","",go.colorOrange100),color8Light:po.extend("--ft-chart-8-light","",go.colorAvocado70),color8Base:po.extend("--ft-chart-8-base","",go.colorAvocado200),color9Light:po.extend("--ft-chart-9-light","",go.colorBrown50),color9Base:po.extend("--ft-chart-9-base","",go.colorBrown200),color10Light:po.extend("--ft-chart-10-light","",go.colorGray50),color10Base:po.extend("--ft-chart-10-base","",go.colorGray80),monochrome10:po.extend("--ft-chart-monochrome-10","",go.colorBrand10),monochrome20:po.extend("--ft-chart-monochrome-20","",go.colorBrand20),monochrome30:po.extend("--ft-chart-monochrome-30","",go.colorBrand40),monochrome40:po.extend("--ft-chart-monochrome-40","",go.colorBrand60),monochrome50:po.extend("--ft-chart-monochrome-50","",go.colorBrand0),monochrome60:po.extend("--ft-chart-monochrome-60","",go.colorBrand200)},ar={largeHorizontalPadding:po.extend("--ft-chip-large-horizontal-padding","",go.spacing4),largeVerticalPadding:po.extend("--ft-chip-large-vertical-padding","",go.spacing2),largeGap:po.extend("--ft-chip-large-gap","",go.spacing1),largeFocusOutlineOffset:po.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:po.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:po.extend("--ft-chip-large-border-radius","",go.borderRadiusPill),largeBorderWidth:po.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:po.extend("--ft-chip-large-icon-size","",go.iconSize3),mediumHorizontalPadding:po.extend("--ft-chip-medium-horizontal-padding","",go.spacing3),mediumVerticalPadding:po.extend("--ft-chip-medium-vertical-padding","",go.spacing1),mediumGap:po.extend("--ft-chip-medium-gap","",go.spacing1),mediumFocusOutlineOffset:po.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:po.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:po.extend("--ft-chip-medium-border-radius","",go.borderRadiusPill),mediumBorderWidth:po.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:po.extend("--ft-chip-medium-icon-size","",go.iconSize2),smallHorizontalPadding:po.extend("--ft-chip-small-horizontal-padding","",go.spacing2),smallVerticalPadding:po.extend("--ft-chip-small-vertical-padding","",go.spacing05),smallGap:po.extend("--ft-chip-small-gap","",go.spacing1),smallFocusOutlineOffset:po.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:po.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:po.extend("--ft-chip-small-border-radius","",go.borderRadiusPill),smallBorderWidth:po.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:po.extend("--ft-chip-small-icon-size","",go.iconSize1),neutralBackgroundColor:po.extend("--ft-chip-neutral-background-color","",jo.backgroundGlobalOnSurface),neutralColor:po.extend("--ft-chip-neutral-color","",jo.contentGlobalPrimary),neutralIconColor:po.extend("--ft-chip-neutral-icon-color","",jo.contentGlobalPrimary),neutralBorderColor:po.extend("--ft-chip-neutral-border-color","",jo.borderGlobalSubtle),infoBackgroundColor:po.extend("--ft-chip-info-background-color","",jo.backgroundInfoSubtle),infoColor:po.extend("--ft-chip-info-color","",jo.contentInfoPrimary),infoIconColor:po.extend("--ft-chip-info-icon-color","",jo.contentInfoIconOnly),infoBorderColor:po.extend("--ft-chip-info-border-color","",jo.borderInfoSubtle),successBackgroundColor:po.extend("--ft-chip-success-background-color","",jo.backgroundSuccessSubtle),successColor:po.extend("--ft-chip-success-color","",jo.contentSuccessPrimary),successIconColor:po.extend("--ft-chip-success-icon-color","",jo.contentSuccessIconOnly),successBorderColor:po.extend("--ft-chip-success-border-color","",jo.borderSuccessSubtle),warningBackgroundColor:po.extend("--ft-chip-warning-background-color","",jo.backgroundWarningSubtle),warningColor:po.extend("--ft-chip-warning-color","",jo.contentWarningPrimary),warningIconColor:po.extend("--ft-chip-warning-icon-color","",jo.contentWarningIconOnly),warningBorderColor:po.extend("--ft-chip-warning-border-color","",jo.borderWarningSubtle),errorBackgroundColor:po.extend("--ft-chip-error-background-color","",jo.backgroundErrorSubtle),errorColor:po.extend("--ft-chip-error-color","",jo.contentErrorPrimary),errorIconColor:po.extend("--ft-chip-error-icon-color","",jo.contentErrorIconOnly),errorBorderColor:po.extend("--ft-chip-error-border-color","",jo.borderErrorSubtle)},sr={infoBorderColor:po.extend("--ft-border-info-border-color","",jo.borderInfoSubtle)},cr={borderWidth:po.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:po.extend("--ft-notice-horizontal-padding","",go.spacing2),verticalPadding:po.extend("--ft-notice-vertical-padding","",go.spacing1),borderRadius:po.extend("--ft-notice-border-radius","",go.borderRadiusS),gap:po.extend("--ft-notice-gap","",go.spacing2),iconSize:po.extend("--ft-notice-icon-size","",go.iconSize3),infoBackgroundColor:po.extend("--ft-notice-info-background-color","",jo.backgroundInfoSubtle),infoBorderColor:po.extend("--ft-notice-info-border-color","",jo.borderInfoSubtle),infoColor:po.extend("--ft-notice-info-color","",jo.contentInfoPrimary),infoIconColor:po.extend("--ft-notice-info-icon-color","",jo.contentInfoIconOnly),warningBackgroundColor:po.extend("--ft-notice-warning-background-color","",jo.backgroundWarningSubtle),warningBorderColor:po.extend("--ft-notice-warning-border-color","",jo.borderWarningSubtle),warningColor:po.extend("--ft-notice-warning-color","",jo.contentWarningPrimary),warningIconColor:po.extend("--ft-notice-warning-icon-color","",jo.contentWarningIconOnly),errorBackgroundColor:po.extend("--ft-notice-error-background-color","",jo.backgroundErrorSubtle),errorBorderColor:po.extend("--ft-notice-error-border-color","",jo.borderErrorSubtle),errorColor:po.extend("--ft-notice-error-color","",jo.contentErrorPrimary),errorIconColor:po.extend("--ft-notice-error-icon-color","",jo.contentErrorIconOnly),successBackgroundColor:po.extend("--ft-notice-success-background-color","",jo.backgroundSuccessSubtle),successBorderColor:po.extend("--ft-notice-success-border-color","",jo.borderSuccessSubtle),successColor:po.extend("--ft-notice-success-color","",jo.contentSuccessPrimary),successIconColor:po.extend("--ft-notice-success-icon-color","",jo.contentSuccessIconOnly)},lr={color:po.extend("--ft-checkbox-color","",jo.contentGlobalPrimary),checkedBackgroundColor:po.extend("--ft-checkbox-checked-background-color","",jo.contentActionPrimary),checkedStateLayerColor:po.extend("--ft-checkbox-checked-state-layer-color","",jo.contentActionPrimary),checkedIconColor:po.extend("--ft-checkbox-checked-icon-color","",jo.contentGlobalOnColor),checkedHoverStateLayerOpacity:po.extend("--ft-checkbox-checked-hover-state-layer-opacity","",go.opacity16),checkedFocusStateLayerOpacity:po.extend("--ft-checkbox-checked-focus-state-layer-opacity","",go.opacity16),checkedActiveStateLayerOpacity:po.extend("--ft-checkbox-checked-active-state-layer-opacity","",go.opacity24),checkedDisabledComponentOpacity:po.extend("--ft-checkbox-checked-disabled-component-opacity","",go.opacity40),uncheckedBorderColor:po.extend("--ft-checkbox-unchecked-border-color","",go.colorGray80),uncheckedStateLayerColor:po.extend("--ft-checkbox-unchecked-state-layer-color","",go.colorGray80),uncheckedHoverStateLayerOpacity:po.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",go.opacity16),uncheckedFocusStateLayerOpacity:po.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",go.opacity16),uncheckedActiveStateLayerOpacity:po.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",go.opacity24),uncheckedDisabledComponentOpacity:po.extend("--ft-checkbox-unchecked-disabled-component-opacity","",go.opacity40),focusFocusRingColor:po.extend("--ft-checkbox-focus-focus-ring-color","",jo.borderActionFocusRing),focusOutlineOffset:po.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:po.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:po.extend("--ft-checkbox-gap","",go.spacing3)},fr={offHoverStateLayerOpacity:po.extend("--ft-toggle-off-hover-state-layer-opacity","",go.opacity16),offFocusStateLayerOpacity:po.extend("--ft-toggle-off-focus-state-layer-opacity","",go.opacity16),offActiveStateLayerOpacity:po.extend("--ft-toggle-off-active-state-layer-opacity","",go.opacity24),offDisabledComponentOpacity:po.extend("--ft-toggle-off-disabled-component-opacity","",go.opacity40),offBackgroundColor:po.extend("--ft-toggle-off-background-color","",jo.contentGlobalSubtle),offIconColor:po.extend("--ft-toggle-off-icon-color","",jo.contentGlobalSubtle),offStateLayerColor:po.extend("--ft-toggle-off-state-layer-color","",jo.contentGlobalSubtle),onHoverStateLayerOpacity:po.extend("--ft-toggle-on-hover-state-layer-opacity","",go.opacity16),onFocusStateLayerOpacity:po.extend("--ft-toggle-on-focus-state-layer-opacity","",go.opacity16),onActiveStateLayerOpacity:po.extend("--ft-toggle-on-active-state-layer-opacity","",go.opacity24),onDisabledComponentOpacity:po.extend("--ft-toggle-on-disabled-component-opacity","",go.opacity40),onBackgroundColor:po.extend("--ft-toggle-on-background-color","",jo.contentActionPrimary),onStateLayerColor:po.extend("--ft-toggle-on-state-layer-color","",jo.contentActionPrimary),onIconColor:po.extend("--ft-toggle-on-icon-color","",jo.contentActionPrimary),color:po.extend("--ft-toggle-color","",jo.contentGlobalPrimary),focusFocusRingColor:po.extend("--ft-toggle-focus-focus-ring-color","",jo.borderActionFocusRing),gap:po.extend("--ft-toggle-gap","",go.spacing3)},ur={color:po.extend("--ft-radio-color","",jo.contentGlobalPrimary),selectedRadioColor:po.extend("--ft-radio-selected-radio-color","",jo.contentActionPrimary),selectedStateLayerColor:po.extend("--ft-radio-selected-state-layer-color","",jo.contentActionPrimary),selectedHoverStateLayerOpacity:po.extend("--ft-radio-selected-hover-state-layer-opacity","",go.opacity16),selectedFocusStateLayerOpacity:po.extend("--ft-radio-selected-focus-state-layer-opacity","",go.opacity16),selectedActiveStateLayerOpacity:po.extend("--ft-radio-selected-active-state-layer-opacity","",go.opacity24),selectedDisabledComponentOpacity:po.extend("--ft-radio-selected-disabled-component-opacity","",go.opacity40),unselectedStateLayerColor:po.extend("--ft-radio-unselected-state-layer-color","",jo.borderInputPrimary),unselectedBorderColor:po.extend("--ft-radio-unselected-border-color","",jo.borderInputPrimary),unselectedHoverStateLayerOpacity:po.extend("--ft-radio-unselected-hover-state-layer-opacity","",go.opacity16),unselectedFocusStateLayerOpacity:po.extend("--ft-radio-unselected-focus-state-layer-opacity","",go.opacity16),unselectedActiveStateLayerOpacity:po.extend("--ft-radio-unselected-active-state-layer-opacity","",go.opacity24),unselectedDisabledComponentOpacity:po.extend("--ft-radio-unselected-disabled-component-opacity","",go.opacity40),focusFocusRingColor:po.extend("--ft-radio-focus-focus-ring-color","",jo.borderActionFocusRing),focusOutlineOffset:po.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:po.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:po.extend("--ft-radio-gap","",go.spacing3)},hr={iconSize:po.extend("--ft-notification-icon-size","",go.iconSize4),horizontalPadding:po.extend("--ft-notification-horizontal-padding","",go.spacing4),verticalPadding:po.extend("--ft-notification-vertical-padding","",go.spacing4),infoBackgroundColor:po.extend("--ft-notification-info-background-color","",jo.backgroundInfoSubtle),infoColor:po.extend("--ft-notification-info-color","",jo.contentInfoPrimary),infoIconColor:po.extend("--ft-notification-info-icon-color","",jo.contentInfoIconOnly),infoBorderColor:po.extend("--ft-notification-info-border-color","",jo.borderInfoSubtle),successBackgroundColor:po.extend("--ft-notification-success-background-color","",jo.backgroundSuccessSubtle),successColor:po.extend("--ft-notification-success-color","",jo.contentSuccessPrimary),successIconColor:po.extend("--ft-notification-success-icon-color","",jo.contentSuccessIconOnly),successBorderColor:po.extend("--ft-notification-success-border-color","",jo.borderSuccessSubtle),warningBackgroundColor:po.extend("--ft-notification-warning-background-color","",jo.backgroundWarningSubtle),warningColor:po.extend("--ft-notification-warning-color","",jo.contentWarningPrimary),warningIconColor:po.extend("--ft-notification-warning-icon-color","",jo.contentWarningIconOnly),warningBorderColor:po.extend("--ft-notification-warning-border-color","",jo.borderWarningSubtle),errorBackgroundColor:po.extend("--ft-notification-error-background-color","",jo.backgroundErrorSubtle),errorColor:po.extend("--ft-notification-error-color","",jo.contentErrorPrimary),errorIconColor:po.extend("--ft-notification-error-icon-color","",jo.contentErrorIconOnly),errorBorderColor:po.extend("--ft-notification-error-border-color","",jo.borderErrorSubtle),borderRadius:po.extend("--ft-notification-border-radius","",go.borderRadiusPill),borderWidth:po.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:po.extend("--ft-notification-leading-gap","",go.spacing2),trailingGap:po.extend("--ft-notification-trailing-gap","",go.spacing8)},dr={horizontalPadding:po.extend("--ft-tooltip-horizontal-padding","",go.spacing2),verticalPadding:po.extend("--ft-tooltip-vertical-padding","",go.spacing2),borderRadius:po.extend("--ft-tooltip-border-radius","",go.borderRadiusS),color:po.extend("--ft-tooltip-color","",jo.contentGlobalOnColor),backgroundColor:po.extend("--ft-tooltip-background-color","",jo.contentGlobalPrimary),backgroundOpacity:po.extend("--ft-tooltip-background-opacity","",go.opacity80),shadow:po.extend("--ft-tooltip-shadow","",go.shadowElevation03),maxWidth:po.create("--ft-tooltip-max-width","","SIZE","256px"),gap:po.extend("--ft-tooltip-gap","",go.spacing05)};var pr=Object.freeze({__proto__:null,FtCssVariableFactory:po,banner:Zo,border:sr,breadcrumb:$o,button:Ho,chart:nr,checkbox:lr,chip:ar,collapsible:rr,comboboxMultiSelect:tr,comboboxSingleSelect:Qo,drawer:qo,floatingMenu:Xo,foundation:go,modal:Vo,notice:cr,notification:hr,pageHeader:Go,popover:er,radio:ur,semantic:jo,setVariable:function(t,e){return ho(`${t.name}: ${e}`)},switch_:ir,tabs:or,textArea:Jo,textInput:Yo,toggle:fr,tooltip:dr,typographies:Ko,typographyBody1Medium:wo,typographyBody1Regular:Oo,typographyBody1Semibold:So,typographyBody2Medium:Co,typographyBody2MediumUnderline:No,typographyBody2Regular:xo,typographyBody2Semibold:Eo,typographyCaption1Bold:Po,typographyCaption1Medium:Ao,typographyCaption1Semibold:Bo,typographyCaption2Bold:To,typographyCaption2Medium:Fo,typographyCaption2Semibold:_o,typographyCaption3Bold:zo,typographyCaption3Medium:Do,typographyCaption3Semibold:Mo,typographyDisplay:yo,typographyLabel1Bold:Lo,typographyLabel1Medium:Ro,typographyLabel1Semibold:Io,typographyLabel2Bold:ko,typographyLabel2Medium:Uo,typographyLabel2Semibold:Wo,typographyTitle1:bo,typographyTitle2:mo,typographyTitle3:vo,typographyVariants:["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"]});const gr={colorPrimary:po.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:po.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:po.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:po.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:po.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:po.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:po.create("--ft-color-error","","COLOR","#B00020"),colorOutline:po.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:po.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:po.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:po.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:po.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:po.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:po.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:po.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:po.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:po.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:po.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:po.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:po.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:po.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:po.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:po.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:po.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:po.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:po.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:po.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:po.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:po.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:po.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:po.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:po.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:po.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:po.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:po.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:po.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:po.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:po.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:po.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:po.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:po.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:po.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:po.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:po.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:po.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:po.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:po.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:po.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:po.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:po.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:po.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:po.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:po.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:po.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:po.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:po.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:po.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:po.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:po.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:po.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:po.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:po.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var yr=Object.freeze({__proto__:null,designSystemVariables:gr});class br extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}}class mr extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}}class vr extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}}var Or=Object.freeze({__proto__:null,FtNotificationEvent:br,PostResizeEvent:vr,PreResizeEvent:mr});const wr=["start","end"],Sr=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+wr[0],e+"-"+wr[1])),[]),xr=Math.min,Cr=Math.max,Nr=Math.round,Er=t=>({x:t,y:t}),Rr={left:"right",right:"left",bottom:"top",top:"bottom"},Ir={start:"end",end:"start"};function Lr(t,e,o){return Cr(t,xr(e,o))}function Ur(t,e){return"function"==typeof t?t(e):t}function Wr(t){return t.split("-")[0]}function kr(t){return t.split("-")[1]}function Ar(t){return"x"===t?"y":"x"}function Br(t){return"y"===t?"height":"width"}function Pr(t){return["top","bottom"].includes(Wr(t))?"y":"x"}function Fr(t){return Ar(Pr(t))}function _r(t){return t.replace(/left|right|bottom|top/g,(t=>Rr[t]))}function Tr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Dr(t,e,o){let{reference:r,floating:i}=t;const n=Pr(e),a=Fr(e),s=Br(a),c=Wr(e),l="y"===n,f=r.x+r.width/2-i.width/2,u=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let d;switch(c){case"top":d={x:f,y:r.y-i.height};break;case"bottom":d={x:f,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:u};break;case"left":d={x:r.x-i.width,y:u};break;default:d={x:r.x,y:r.y}}switch(kr(e)){case"start":d[a]-=h*(o&&l?-1:1);break;case"end":d[a]+=h*(o&&l?-1:1)}return d}async function Mr(t,e){var o;void 0===e&&(e={});const{x:r,y:i,platform:n,rects:a,elements:s,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:h=!1,padding:d=0}=Ur(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}}(d),g=s[h?"floating"===u?"reference":"floating":u],y=Tr(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(g)))||o?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:l,rootBoundary:f,strategy:c})),b="floating"===u?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=Tr(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:c}):b);return{top:(y.top-O.top+p.top)/v.y,bottom:(O.bottom-y.bottom+p.bottom)/v.y,left:(y.left-O.left+p.left)/v.x,right:(O.right-y.right+p.right)/v.x}}function zr(t,e,o){return(t?[...o.filter((e=>kr(e)===t)),...o.filter((e=>kr(e)!==t))]:o.filter((t=>Wr(t)===t))).filter((o=>!t||(kr(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Ir[t]))}(o)!==o)))}const Kr=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,r,i;const{rects:n,middlewareData:a,placement:s,platform:c,elements:l}=e,{crossAxis:f=!1,alignment:u,allowedPlacements:h=Sr,autoAlignment:d=!0,...p}=Ur(t,e),g=void 0!==u||h===Sr?zr(u||null,d,h):h,y=await Mr(e,p),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=g[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const r=kr(t),i=Fr(t),n=Br(i);let a="x"===i?r===(o?"end":"start")?"right":"left":"start"===r?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=_r(a)),[a,_r(a)]}(m,n,await(null==c.isRTL?void 0:c.isRTL(l.floating)));if(s!==m)return{reset:{placement:g[0]}};const O=[y[Wr(m)],y[v[0]],y[v[1]]],w=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:O}],S=g[b+1];if(S)return{data:{index:b+1,overflows:w},reset:{placement:S}};const x=w.map((t=>{const e=kr(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])),C=x.filter((t=>t[2].slice(0,kr(t[0])?2:3).every((t=>t<=0)))),N=(null==(i=C[0])?void 0:i[0])||x[0][0];return N!==s?{data:{index:b+1,overflows:w},reset:{placement:N}}:{}}}};function jr(t){return $r(t)?(t.nodeName||"").toLowerCase():"#document"}function Hr(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Zr(t){var e;return null==(e=($r(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function $r(t){return t instanceof Node||t instanceof Hr(t).Node}function Gr(t){return t instanceof Element||t instanceof Hr(t).Element}function Vr(t){return t instanceof HTMLElement||t instanceof Hr(t).HTMLElement}function qr(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Hr(t).ShadowRoot)}function Yr(t){const{overflow:e,overflowX:o,overflowY:r,display:i}=ei(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+o)&&!["inline","contents"].includes(i)}function Jr(t){return["table","td","th"].includes(jr(t))}function Xr(t){const e=Qr(),o=ei(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function Qr(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ti(t){return["html","body","#document"].includes(jr(t))}function ei(t){return Hr(t).getComputedStyle(t)}function oi(t){return Gr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ri(t){if("html"===jr(t))return t;const e=t.assignedSlot||t.parentNode||qr(t)&&t.host||Zr(t);return qr(e)?e.host:e}function ii(t){const e=ri(t);return ti(e)?t.ownerDocument?t.ownerDocument.body:t.body:Vr(e)&&Yr(e)?e:ii(e)}function ni(t,e,o){var r;void 0===e&&(e=[]),void 0===o&&(o=!0);const i=ii(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=Hr(i);return n?e.concat(a,a.visualViewport||[],Yr(i)?i:[],a.frameElement&&o?ni(a.frameElement):[]):e.concat(i,ni(i,[],o))}function ai(t){const e=ei(t);let o=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=Vr(t),n=i?t.offsetWidth:o,a=i?t.offsetHeight:r,s=Nr(o)!==n||Nr(r)!==a;return s&&(o=n,r=a),{width:o,height:r,$:s}}function si(t){return Gr(t)?t:t.contextElement}function ci(t){const e=si(t);if(!Vr(e))return Er(1);const o=e.getBoundingClientRect(),{width:r,height:i,$:n}=ai(e);let a=(n?Nr(o.width):o.width)/r,s=(n?Nr(o.height):o.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const li=Er(0);function fi(t){const e=Hr(t);return Qr()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:li}function ui(t,e,o,r){void 0===e&&(e=!1),void 0===o&&(o=!1);const i=t.getBoundingClientRect(),n=si(t);let a=Er(1);e&&(r?Gr(r)&&(a=ci(r)):a=ci(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==Hr(t))&&e}(n,o,r)?fi(n):Er(0);let c=(i.left+s.x)/a.x,l=(i.top+s.y)/a.y,f=i.width/a.x,u=i.height/a.y;if(n){const t=Hr(n),e=r&&Gr(r)?Hr(r):r;let o=t.frameElement;for(;o&&r&&e!==t;){const t=ci(o),e=o.getBoundingClientRect(),r=ei(o),i=e.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,l*=t.y,f*=t.x,u*=t.y,c+=i,l+=n,o=Hr(o).frameElement}}return Tr({width:f,height:u,x:c,y:l})}function hi(t){return ui(Zr(t)).left+oi(t).scrollLeft}function di(t,e,o){let r;if("viewport"===e)r=function(t,e){const o=Hr(t),r=Zr(t),i=o.visualViewport;let n=r.clientWidth,a=r.clientHeight,s=0,c=0;if(i){n=i.width,a=i.height;const t=Qr();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:n,height:a,x:s,y:c}}(t,o);else if("document"===e)r=function(t){const e=Zr(t),o=oi(t),r=t.ownerDocument.body,i=Cr(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=Cr(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-o.scrollLeft+hi(t);const s=-o.scrollTop;return"rtl"===ei(r).direction&&(a+=Cr(e.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:s}}(Zr(t));else if(Gr(e))r=function(t,e){const o=ui(t,!0,"fixed"===e),r=o.top+t.clientTop,i=o.left+t.clientLeft,n=Vr(t)?ci(t):Er(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(e,o);else{const o=fi(t);r={...e,x:e.x-o.x,y:e.y-o.y}}return Tr(r)}function pi(t,e){const o=ri(t);return!(o===e||!Gr(o)||ti(o))&&("fixed"===ei(o).position||pi(o,e))}function gi(t,e,o){const r=Vr(e),i=Zr(e),n="fixed"===o,a=ui(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const c=Er(0);if(r||!r&&!n)if(("body"!==jr(e)||Yr(i))&&(s=oi(e)),r){const t=ui(e,!0,n,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&(c.x=hi(i));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function yi(t,e){return Vr(t)&&"fixed"!==ei(t).position?e?e(t):t.offsetParent:null}function bi(t,e){const o=Hr(t);if(!Vr(t))return o;let r=yi(t,e);for(;r&&Jr(r)&&"static"===ei(r).position;)r=yi(r,e);return r&&("html"===jr(r)||"body"===jr(r)&&"static"===ei(r).position&&!Xr(r))?o:r||function(t){let e=ri(t);for(;Vr(e)&&!ti(e);){if(Xr(e))return e;e=ri(e)}return null}(t)||o}const mi={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:r}=t;const i=Vr(o),n=Zr(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=Er(1);const c=Er(0);if((i||!i&&"fixed"!==r)&&(("body"!==jr(o)||Yr(n))&&(a=oi(o)),Vr(o))){const t=ui(o);s=ci(o),c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+c.x,y:e.y*s.y-a.scrollTop*s.y+c.y}},getDocumentElement:Zr,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:r,strategy:i}=t;const n=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let r=ni(t,[],!1).filter((t=>Gr(t)&&"body"!==jr(t))),i=null;const n="fixed"===ei(t).position;let a=n?ri(t):t;for(;Gr(a)&&!ti(a);){const e=ei(a),o=Xr(a);o||"fixed"!==e.position||(i=null),(n?!o&&!i:!o&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||Yr(a)&&!o&&pi(t,a))?r=r.filter((t=>t!==a)):i=e,a=ri(a)}return e.set(t,r),r}(e,this._c):[].concat(o),r],a=n[0],s=n.reduce(((t,o)=>{const r=di(e,o,i);return t.top=Cr(r.top,t.top),t.right=xr(r.right,t.right),t.bottom=xr(r.bottom,t.bottom),t.left=Cr(r.left,t.left),t}),di(e,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:bi,getElementRects:async function(t){let{reference:e,floating:o,strategy:r}=t;const i=this.getOffsetParent||bi,n=this.getDimensions;return{reference:gi(e,await i(o),r),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return ai(t)},getScale:ci,isElement:Gr,isRTL:function(t){return"rtl"===ei(t).direction}},vi=(t,e,o)=>{const r=new Map,i={platform:mi,...o},n={...i.platform,_c:r};return(async(t,e,o)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=Dr(l,r,c),h=r,d={},p=0;for(let o=0;o<s.length;o++){const{name:n,fn:g}=s[o],{x:y,y:b,data:m,reset:v}=await g({x:f,y:u,initialPlacement:r,placement:h,strategy:i,middlewareData:d,rects:l,platform:a,elements:{reference:t,floating:e}});f=null!=y?y:f,u=null!=b?b:u,d={...d,[n]:{...d[n],...m}},v&&p<=50&&(p++,"object"==typeof v&&(v.placement&&(h=v.placement),v.rects&&(l=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:i}):v.rects),({x:f,y:u}=Dr(l,h,c))),o=-1)}return{x:f,y:u,placement:h,strategy:i,middlewareData:d}})(t,e,{...i,platform:n})};function Oi(t){return function(t){for(let e=t;e;e=wi(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=wi(t);e;e=wi(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 wi(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var Si=Object.freeze({__proto__:null,computeOffsetPosition:async function(t,e,o){return vi(t,e,{platform:{...mi,getOffsetParent:t=>mi.getOffsetParent(t,Oi)},middleware:[(r={crossAxis:!0},void 0===r&&(r={}),{name:"shift",options:r,async fn(t){const{x:e,y:o,placement:i}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...c}=Ur(r,t),l={x:e,y:o},f=await Mr(t,c),u=Pr(Wr(i)),h=Ar(u);let d=l[h],p=l[u];if(n){const t="y"===h?"bottom":"right";d=Lr(d+f["y"===h?"top":"left"],d,d-f[t])}if(a){const t="y"===u?"bottom":"right";p=Lr(p+f["y"===u?"top":"left"],p,p-f[t])}const g=s.fn({...t,[h]:d,[u]:p});return{...g,data:{x:g.x-e,y:g.y-o}}}}),Kr({allowedPlacements:[o]})]});var r}});
138
138
  /**
139
139
  * @license
140
140
  * Copyright 2019 Google LLC
141
141
  * SPDX-License-Identifier: BSD-3-Clause
142
- */const wi=window,xi=wi.ShadowRoot&&(void 0===wi.ShadyCSS||wi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Ni extends ge{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{xi?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),r=wi.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Ci,Ei=Object.freeze({__proto__:null,ScopedRegistryLitElement:Ni}),Ri=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ii=Symbol("constructorPrototype"),Li=Symbol("constructorName"),Ui=Symbol("exportpartsDebouncer");class Wi extends Ni{constructor(){super(),this[Ci]=new eo(5),this[Li]=this.constructor.name,this[Ii]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Li]&&Object.setPrototypeOf(this,this[Ii])}updated(t){super.updated(t),this.updateComplete.then((()=>{this.contentAvailableCallback(t),this.insertCustomStylesheet(),this.scheduleExportpartsUpdate()}))}contentAvailableCallback(t){}insertCustomStylesheet(){var t,e;if((null!==(e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).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(){var t,e,o;((null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())||null!==(o=null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)&&void 0!==o&&o)&&this[Ui].run((()=>{var t,e;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&(null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,r,i,n,a;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const f=[...l.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Ci=Ui,Ri([Se()],Wi.prototype,"exportpartsPrefix",void 0),Ri([lo([])],Wi.prototype,"exportpartsPrefixes",void 0),Ri([Se()],Wi.prototype,"customStylesheet",void 0);var Ai=Object.freeze({__proto__:null,FtLitElement:Wi}),ki=Object.freeze({__proto__:null});class Fi{constructor(t,e=!0,o=[],r=5e3){this.ctx=t,this.iframes=e,this.exclude=o,this.iframesTimeout=r}static matches(t,e){const o="string"==typeof e?[e]:e,r=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(r){let e=!1;return o.every((o=>!r.call(t,o)||(e=!0,!1))),e}return!1}getContexts(){let t,e=[];return t=void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[],t.forEach((t=>{const o=e.filter((e=>e.contains(t))).length>0;-1!==e.indexOf(t)||o||e.push(t)})),e}getIframeContents(t,e,o=(()=>{})){let r;try{const e=t.contentWindow;if(r=e.document,!e||!r)throw new Error("iframe inaccessible")}catch(t){o()}r&&e(r)}isIframeBlank(t){const e="about:blank",o=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&o!==e&&o}observeIframeLoad(t,e,o){let r=!1,i=null;const n=()=>{if(!r){r=!0,clearTimeout(i);try{this.isIframeBlank(t)||(t.removeEventListener("load",n),this.getIframeContents(t,e,o))}catch(t){o()}}};t.addEventListener("load",n),i=setTimeout(n,this.iframesTimeout)}onIframeReady(t,e,o){try{"complete"===t.contentWindow.document.readyState?this.isIframeBlank(t)?this.observeIframeLoad(t,e,o):this.getIframeContents(t,e,o):this.observeIframeLoad(t,e,o)}catch(t){o()}}waitForIframes(t,e){let o=0;this.forEachIframe(t,(()=>!0),(t=>{o++,this.waitForIframes(t.querySelector("html"),(()=>{--o||e()}))}),(t=>{t||e()}))}forEachIframe(t,e,o,r=(()=>{})){let i=t.querySelectorAll("iframe"),n=i.length,a=0;i=Array.prototype.slice.call(i);const s=()=>{--n<=0&&r(a)};n||s(),i.forEach((t=>{Fi.matches(t,this.exclude)?s():this.onIframeReady(t,(r=>{e(t)&&(a++,o(r)),s()}),s)}))}createIterator(t,e,o){return document.createNodeIterator(t,e,o,!1)}createInstanceOnIframe(t){return new Fi(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,o){if(t.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING){if(null===e)return!0;if(e.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}return!1}getIteratorNode(t){const e=t.previousNode();let o;return o=(null===e||t.nextNode())&&t.nextNode(),{prevNode:e,node:o}}checkIframeFilter(t,e,o,r){let i=!1,n=!1;return r.forEach(((t,e)=>{t.val===o&&(i=e,n=t.handled)})),this.compareNodeIframe(t,e,o)?(!1!==i||n?!1===i||n||(r[i].handled=!0):r.push({val:o,handled:!0}),!0):(!1===i&&r.push({val:o,handled:!1}),!1)}handleOpenIframes(t,e,o,r){t.forEach((t=>{t.handled||this.getIframeContents(t.val,(t=>{this.createInstanceOnIframe(t).forEachNode(e,o,r)}))}))}iterateThroughNodes(t,e,o,r,i){const n=this.createIterator(e,t,r);let a,s,c=[],l=[],f=()=>(({prevNode:s,node:a}=this.getIteratorNode(n)),a);for(;f();)this.iframes&&this.forEachIframe(e,(t=>this.checkIframeFilter(a,s,t,c)),(e=>{this.createInstanceOnIframe(e).forEachNode(t,(t=>l.push(t)),r)})),l.push(a);l.forEach((t=>{o(t)})),this.iframes&&this.handleOpenIframes(c,t,o,r),i()}forEachNode(t,e,o,r=(()=>{})){const i=this.getContexts();let n=i.length;n||r(),i.forEach((i=>{const a=()=>{this.iterateThroughNodes(t,i,e,o,(()=>{--n<=0&&r()}))};this.iframes?this.waitForIframes(i,a):a()}))}}const Pi=function(t){const e=new class{constructor(t){this.ctx=t,this.ie=!1;const e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new Fi(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){const o=this.opt.log;this.opt.debug&&"object"==typeof o&&"function"==typeof o[e]&&o[e](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return"disabled"!==this.opt.wildcards&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),"disabled"!==this.opt.wildcards&&(t=this.createWildcardsRegExp(t)),this.createAccuracyRegExp(t)}createSynonymsRegExp(t){const e=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",r=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let i in e)if(e.hasOwnProperty(i)){const n=e[i],a="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(i):this.escapeStr(i),s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(n):this.escapeStr(n);""!==a&&""!==s&&(t=t.replace(new RegExp(`(${this.escapeStr(a)}|${this.escapeStr(s)})`,`gm${o}`),r+`(${this.processSynomyms(a)}|`+`${this.processSynomyms(s)})`+r))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return(t=t.replace(/(?:\\)*\?/g,(t=>"\\"===t.charAt(0)?"?":""))).replace(/(?:\\)*\*/g,(t=>"\\"===t.charAt(0)?"*":""))}createWildcardsRegExp(t){let e="withSpaces"===this.opt.wildcards;return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,((t,e,o)=>{let r=o.charAt(e+1);return/[(|)\\]/.test(r)||""===r?t:t+"\0"}))}createJoinersRegExp(t){let e=[];const o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&e.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join(`[${e.join("")}]*`):t}createDiacriticsRegExp(t){const e=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let r=[];return t.split("").forEach((i=>{o.every((o=>{if(-1!==o.indexOf(i)){if(r.indexOf(o)>-1)return!1;t=t.replace(new RegExp(`[${o}]`,`gm${e}`),`[${o}]`),r.push(o)}return!0}))})),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(t){let e=this.opt.accuracy,o="string"==typeof e?e:e.value,r="string"==typeof e?[]:e.limiters,i="";switch(r.forEach((t=>{i+=`|${this.escapeStr(t)}`})),o){case"partially":default:return`()(${t})`;case"complementary":return i="\\s"+(i||this.escapeStr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿")),`()([^${i}]*${t}[^${i}]*)`;case"exactly":return`(^|\\s${i})(${t})(?=$|\\s${i})`}}getSeparatedKeywords(t){let e=[];return t.forEach((t=>{this.opt.separateWordSearch?t.split(" ").forEach((t=>{t.trim()&&-1===e.indexOf(t)&&e.push(t)})):t.trim()&&-1===e.indexOf(t)&&e.push(t)})),{keywords:e.sort(((t,e)=>e.length-t.length)),length:e.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||"[object Object]"!==Object.prototype.toString.call(t[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];const e=[];let o=0;return t.sort(((t,e)=>t.start-e.start)).forEach((t=>{let{start:r,end:i,valid:n}=this.callNoMatchOnInvalidRanges(t,o);n&&(t.start=r,t.length=i-r,e.push(t),o=i)})),e}callNoMatchOnInvalidRanges(t,e){let o,r,i=!1;return t&&void 0!==t.start?(o=parseInt(t.start,10),r=o+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&r-e>0&&r-o>0?i=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:o,end:r,valid:i}}checkWhitespaceRanges(t,e,o){let r,i=!0,n=o.length,a=e-n,s=parseInt(t.start,10)-a;return s=s>n?n:s,r=s+parseInt(t.length,10),r>n&&(r=n,this.log(`End range automatically set to the max value of ${n}`)),s<0||r-s<0||s>n||r>n?(i=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):""===o.substring(s,r).replace(/\s+/g,"")&&(i=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:s,end:r,valid:i}}getTextNodes(t){let e="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,(t=>{o.push({start:e.length,end:(e+=t.textContent).length,node:t})}),(t=>this.matchesExclude(t.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT),(()=>{t({value:e,nodes:o})}))}matchesExclude(t){return Fi.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,o){const r=this.opt.element?this.opt.element:"mark",i=t.splitText(e),n=i.splitText(o-e);let a=document.createElement(r);return a.setAttribute("data-markjs","true"),this.opt.className&&a.setAttribute("class",this.opt.className),a.textContent=i.textContent,i.parentNode.replaceChild(a,i),n}wrapRangeInMappedTextNode(t,e,o,r,i){t.nodes.every(((n,a)=>{const s=t.nodes[a+1];if(void 0===s||s.start>e){if(!r(n.node))return!1;const s=e-n.start,c=(o>n.end?n.end:o)-n.start,l=t.value.substr(0,n.start),f=t.value.substr(c+n.start);if(n.node=this.wrapRangeInTextNode(n.node,s,c),t.value=l+f,t.nodes.forEach(((e,o)=>{o>=a&&(t.nodes[o].start>0&&o!==a&&(t.nodes[o].start-=c),t.nodes[o].end-=c)})),o-=c,i(n.node.previousSibling,n.start),!(o>n.end))return!1;e=n.end}return!0}))}wrapMatches(t,e,o,r,i){const n=0===e?0:e+1;this.getTextNodes((e=>{e.nodes.forEach((e=>{let i;for(e=e.node;null!==(i=t.exec(e.textContent))&&""!==i[n];){if(!o(i[n],e))continue;let a=i.index;if(0!==n)for(let t=1;t<n;t++)a+=i[t].length;e=this.wrapRangeInTextNode(e,a,a+i[n].length),r(e.previousSibling),t.lastIndex=0}})),i()}))}wrapMatchesAcrossElements(t,e,o,r,i){const n=0===e?0:e+1;this.getTextNodes((e=>{let a;for(;null!==(a=t.exec(e.value))&&""!==a[n];){let i=a.index;if(0!==n)for(let t=1;t<n;t++)i+=a[t].length;const s=i+a[n].length;this.wrapRangeInMappedTextNode(e,i,s,(t=>o(a[n],t)),((e,o)=>{t.lastIndex=o,r(e)}))}i()}))}wrapRangeFromIndex(t,e,o,r){this.getTextNodes((i=>{const n=i.value.length;t.forEach(((t,r)=>{let{start:a,end:s,valid:c}=this.checkWhitespaceRanges(t,n,i.value);c&&this.wrapRangeInMappedTextNode(i,a,s,(o=>e(o,t,i.value.substring(a,s),r)),(e=>{o(e,t)}))})),r()}))}unwrapMatches(t){const e=t.parentNode;let o=document.createDocumentFragment();for(;t.firstChild;)o.appendChild(t.removeChild(t.firstChild));e.replaceChild(o,t),this.ie?this.normalizeTextNode(e):e.normalize()}normalizeTextNode(t){if(t){if(3===t.nodeType)for(;t.nextSibling&&3===t.nextSibling.nodeType;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,e){this.opt=e,this.log(`Searching with expression "${t}"`);let o=0,r="wrapMatches";this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),this[r](t,this.opt.ignoreGroups,((t,e)=>this.opt.filter(e,t,o)),(t=>{o++,this.opt.each(t)}),(()=>{0===o&&this.opt.noMatch(t),this.opt.done(o)}))}mark(t,e){this.opt=e;let o=0,r="wrapMatches";const{keywords:i,length:n}=this.getSeparatedKeywords("string"==typeof t?[t]:t),a=this.opt.caseSensitive?"":"i",s=t=>{let e=new RegExp(this.createRegExp(t),`gm${a}`),c=0;this.log(`Searching with expression "${e}"`),this[r](e,1,((e,r)=>this.opt.filter(r,t,o,c)),(t=>{c++,o++,this.opt.each(t)}),(()=>{0===c&&this.opt.noMatch(t),i[n-1]===t?this.opt.done(o):s(i[i.indexOf(t)+1])}))};this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),0===n?this.opt.done(o):s(i[0])}markRanges(t,e){this.opt=e;let o=0,r=this.checkRanges(t);r&&r.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(r)),this.wrapRangeFromIndex(r,((t,e,o,r)=>this.opt.filter(t,e,o,r)),((t,e)=>{o++,this.opt.each(t,e)}),(()=>{this.opt.done(o)}))):this.opt.done(o)}unmark(t){this.opt=t;let e=this.opt.element?this.opt.element:"*";e+="[data-markjs]",this.opt.className&&(e+=`.${this.opt.className}`),this.log(`Removal selector "${e}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,(t=>{this.unwrapMatches(t)}),(t=>{const o=Fi.matches(t,e),r=this.matchesExclude(t);return!o||r?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),this.opt.done)}}(t);return this.mark=(t,o)=>(e.mark(t,o),this),this.markRegExp=(t,o)=>(e.markRegExp(t,o),this),this.markRanges=(t,o)=>(e.markRanges(t,o),this),this.unmark=t=>(e.unmark(t),this),this},_i=po.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Bi=ut`
142
+ */const xi=window,Ci=xi.ShadowRoot&&(void 0===xi.ShadyCSS||xi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;class Ni extends ye{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,o])=>t.registry.define(e,o))));const e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return((t,e)=>{Ci?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),r=xi.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=e.cssText,t.appendChild(o)}))})(o,t.elementStyles),o}}var Ei,Ri=Object.freeze({__proto__:null,ScopedRegistryLitElement:Ni}),Ii=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Li=Symbol("constructorPrototype"),Ui=Symbol("constructorName"),Wi=Symbol("exportpartsDebouncer");class ki extends Ni{constructor(){super(),this[Ei]=new eo(5),this[Ui]=this.constructor.name,this[Li]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ui]&&Object.setPrototypeOf(this,this[Li])}updated(t){super.updated(t),this.updateComplete.then((()=>{this.contentAvailableCallback(t),this.insertCustomStylesheet(),this.scheduleExportpartsUpdate()}))}contentAvailableCallback(t){}insertCustomStylesheet(){var t,e;if((null!==(e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).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(){var t,e,o;((null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())||null!==(o=null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)&&void 0!==o&&o)&&this[Wi].run((()=>{var t,e;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&(null===(e=this.exportpartsPrefixes)||void 0===e?void 0:e.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,o,r,i,n,a;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(o=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==o?o:[]){const e=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],o=null!==(a=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==a?a:[];new Array(...e,...o).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const f=[...l.values()].flatMap((t=>c.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}Ei=Wi,Ii([we()],ki.prototype,"exportpartsPrefix",void 0),Ii([lo([])],ki.prototype,"exportpartsPrefixes",void 0),Ii([we()],ki.prototype,"customStylesheet",void 0);var Ai=Object.freeze({__proto__:null,FtLitElement:ki}),Bi=Object.freeze({__proto__:null});class Pi{constructor(t,e=!0,o=[],r=5e3){this.ctx=t,this.iframes=e,this.exclude=o,this.iframesTimeout=r}static matches(t,e){const o="string"==typeof e?[e]:e,r=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(r){let e=!1;return o.every((o=>!r.call(t,o)||(e=!0,!1))),e}return!1}getContexts(){let t,e=[];return t=void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[],t.forEach((t=>{const o=e.filter((e=>e.contains(t))).length>0;-1!==e.indexOf(t)||o||e.push(t)})),e}getIframeContents(t,e,o=(()=>{})){let r;try{const e=t.contentWindow;if(r=e.document,!e||!r)throw new Error("iframe inaccessible")}catch(t){o()}r&&e(r)}isIframeBlank(t){const e="about:blank",o=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&o!==e&&o}observeIframeLoad(t,e,o){let r=!1,i=null;const n=()=>{if(!r){r=!0,clearTimeout(i);try{this.isIframeBlank(t)||(t.removeEventListener("load",n),this.getIframeContents(t,e,o))}catch(t){o()}}};t.addEventListener("load",n),i=setTimeout(n,this.iframesTimeout)}onIframeReady(t,e,o){try{"complete"===t.contentWindow.document.readyState?this.isIframeBlank(t)?this.observeIframeLoad(t,e,o):this.getIframeContents(t,e,o):this.observeIframeLoad(t,e,o)}catch(t){o()}}waitForIframes(t,e){let o=0;this.forEachIframe(t,(()=>!0),(t=>{o++,this.waitForIframes(t.querySelector("html"),(()=>{--o||e()}))}),(t=>{t||e()}))}forEachIframe(t,e,o,r=(()=>{})){let i=t.querySelectorAll("iframe"),n=i.length,a=0;i=Array.prototype.slice.call(i);const s=()=>{--n<=0&&r(a)};n||s(),i.forEach((t=>{Pi.matches(t,this.exclude)?s():this.onIframeReady(t,(r=>{e(t)&&(a++,o(r)),s()}),s)}))}createIterator(t,e,o){return document.createNodeIterator(t,e,o,!1)}createInstanceOnIframe(t){return new Pi(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,o){if(t.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_PRECEDING){if(null===e)return!0;if(e.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}return!1}getIteratorNode(t){const e=t.previousNode();let o;return o=(null===e||t.nextNode())&&t.nextNode(),{prevNode:e,node:o}}checkIframeFilter(t,e,o,r){let i=!1,n=!1;return r.forEach(((t,e)=>{t.val===o&&(i=e,n=t.handled)})),this.compareNodeIframe(t,e,o)?(!1!==i||n?!1===i||n||(r[i].handled=!0):r.push({val:o,handled:!0}),!0):(!1===i&&r.push({val:o,handled:!1}),!1)}handleOpenIframes(t,e,o,r){t.forEach((t=>{t.handled||this.getIframeContents(t.val,(t=>{this.createInstanceOnIframe(t).forEachNode(e,o,r)}))}))}iterateThroughNodes(t,e,o,r,i){const n=this.createIterator(e,t,r);let a,s,c=[],l=[],f=()=>(({prevNode:s,node:a}=this.getIteratorNode(n)),a);for(;f();)this.iframes&&this.forEachIframe(e,(t=>this.checkIframeFilter(a,s,t,c)),(e=>{this.createInstanceOnIframe(e).forEachNode(t,(t=>l.push(t)),r)})),l.push(a);l.forEach((t=>{o(t)})),this.iframes&&this.handleOpenIframes(c,t,o,r),i()}forEachNode(t,e,o,r=(()=>{})){const i=this.getContexts();let n=i.length;n||r(),i.forEach((i=>{const a=()=>{this.iterateThroughNodes(t,i,e,o,(()=>{--n<=0&&r()}))};this.iframes?this.waitForIframes(i,a):a()}))}}const Fi=function(t){const e=new class{constructor(t){this.ctx=t,this.ie=!1;const e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new Pi(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){const o=this.opt.log;this.opt.debug&&"object"==typeof o&&"function"==typeof o[e]&&o[e](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return"disabled"!==this.opt.wildcards&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),"disabled"!==this.opt.wildcards&&(t=this.createWildcardsRegExp(t)),this.createAccuracyRegExp(t)}createSynonymsRegExp(t){const e=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",r=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let i in e)if(e.hasOwnProperty(i)){const n=e[i],a="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(i):this.escapeStr(i),s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(n):this.escapeStr(n);""!==a&&""!==s&&(t=t.replace(new RegExp(`(${this.escapeStr(a)}|${this.escapeStr(s)})`,`gm${o}`),r+`(${this.processSynomyms(a)}|`+`${this.processSynomyms(s)})`+r))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return(t=t.replace(/(?:\\)*\?/g,(t=>"\\"===t.charAt(0)?"?":""))).replace(/(?:\\)*\*/g,(t=>"\\"===t.charAt(0)?"*":""))}createWildcardsRegExp(t){let e="withSpaces"===this.opt.wildcards;return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,((t,e,o)=>{let r=o.charAt(e+1);return/[(|)\\]/.test(r)||""===r?t:t+"\0"}))}createJoinersRegExp(t){let e=[];const o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&e.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join(`[${e.join("")}]*`):t}createDiacriticsRegExp(t){const e=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"];let r=[];return t.split("").forEach((i=>{o.every((o=>{if(-1!==o.indexOf(i)){if(r.indexOf(o)>-1)return!1;t=t.replace(new RegExp(`[${o}]`,`gm${e}`),`[${o}]`),r.push(o)}return!0}))})),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gim,"[\\s]+")}createAccuracyRegExp(t){let e=this.opt.accuracy,o="string"==typeof e?e:e.value,r="string"==typeof e?[]:e.limiters,i="";switch(r.forEach((t=>{i+=`|${this.escapeStr(t)}`})),o){case"partially":default:return`()(${t})`;case"complementary":return i="\\s"+(i||this.escapeStr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿")),`()([^${i}]*${t}[^${i}]*)`;case"exactly":return`(^|\\s${i})(${t})(?=$|\\s${i})`}}getSeparatedKeywords(t){let e=[];return t.forEach((t=>{this.opt.separateWordSearch?t.split(" ").forEach((t=>{t.trim()&&-1===e.indexOf(t)&&e.push(t)})):t.trim()&&-1===e.indexOf(t)&&e.push(t)})),{keywords:e.sort(((t,e)=>e.length-t.length)),length:e.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||"[object Object]"!==Object.prototype.toString.call(t[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];const e=[];let o=0;return t.sort(((t,e)=>t.start-e.start)).forEach((t=>{let{start:r,end:i,valid:n}=this.callNoMatchOnInvalidRanges(t,o);n&&(t.start=r,t.length=i-r,e.push(t),o=i)})),e}callNoMatchOnInvalidRanges(t,e){let o,r,i=!1;return t&&void 0!==t.start?(o=parseInt(t.start,10),r=o+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&r-e>0&&r-o>0?i=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:o,end:r,valid:i}}checkWhitespaceRanges(t,e,o){let r,i=!0,n=o.length,a=e-n,s=parseInt(t.start,10)-a;return s=s>n?n:s,r=s+parseInt(t.length,10),r>n&&(r=n,this.log(`End range automatically set to the max value of ${n}`)),s<0||r-s<0||s>n||r>n?(i=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):""===o.substring(s,r).replace(/\s+/g,"")&&(i=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:s,end:r,valid:i}}getTextNodes(t){let e="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,(t=>{o.push({start:e.length,end:(e+=t.textContent).length,node:t})}),(t=>this.matchesExclude(t.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT),(()=>{t({value:e,nodes:o})}))}matchesExclude(t){return Pi.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,o){const r=this.opt.element?this.opt.element:"mark",i=t.splitText(e),n=i.splitText(o-e);let a=document.createElement(r);return a.setAttribute("data-markjs","true"),this.opt.className&&a.setAttribute("class",this.opt.className),a.textContent=i.textContent,i.parentNode.replaceChild(a,i),n}wrapRangeInMappedTextNode(t,e,o,r,i){t.nodes.every(((n,a)=>{const s=t.nodes[a+1];if(void 0===s||s.start>e){if(!r(n.node))return!1;const s=e-n.start,c=(o>n.end?n.end:o)-n.start,l=t.value.substr(0,n.start),f=t.value.substr(c+n.start);if(n.node=this.wrapRangeInTextNode(n.node,s,c),t.value=l+f,t.nodes.forEach(((e,o)=>{o>=a&&(t.nodes[o].start>0&&o!==a&&(t.nodes[o].start-=c),t.nodes[o].end-=c)})),o-=c,i(n.node.previousSibling,n.start),!(o>n.end))return!1;e=n.end}return!0}))}wrapMatches(t,e,o,r,i){const n=0===e?0:e+1;this.getTextNodes((e=>{e.nodes.forEach((e=>{let i;for(e=e.node;null!==(i=t.exec(e.textContent))&&""!==i[n];){if(!o(i[n],e))continue;let a=i.index;if(0!==n)for(let t=1;t<n;t++)a+=i[t].length;e=this.wrapRangeInTextNode(e,a,a+i[n].length),r(e.previousSibling),t.lastIndex=0}})),i()}))}wrapMatchesAcrossElements(t,e,o,r,i){const n=0===e?0:e+1;this.getTextNodes((e=>{let a;for(;null!==(a=t.exec(e.value))&&""!==a[n];){let i=a.index;if(0!==n)for(let t=1;t<n;t++)i+=a[t].length;const s=i+a[n].length;this.wrapRangeInMappedTextNode(e,i,s,(t=>o(a[n],t)),((e,o)=>{t.lastIndex=o,r(e)}))}i()}))}wrapRangeFromIndex(t,e,o,r){this.getTextNodes((i=>{const n=i.value.length;t.forEach(((t,r)=>{let{start:a,end:s,valid:c}=this.checkWhitespaceRanges(t,n,i.value);c&&this.wrapRangeInMappedTextNode(i,a,s,(o=>e(o,t,i.value.substring(a,s),r)),(e=>{o(e,t)}))})),r()}))}unwrapMatches(t){const e=t.parentNode;let o=document.createDocumentFragment();for(;t.firstChild;)o.appendChild(t.removeChild(t.firstChild));e.replaceChild(o,t),this.ie?this.normalizeTextNode(e):e.normalize()}normalizeTextNode(t){if(t){if(3===t.nodeType)for(;t.nextSibling&&3===t.nextSibling.nodeType;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,e){this.opt=e,this.log(`Searching with expression "${t}"`);let o=0,r="wrapMatches";this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),this[r](t,this.opt.ignoreGroups,((t,e)=>this.opt.filter(e,t,o)),(t=>{o++,this.opt.each(t)}),(()=>{0===o&&this.opt.noMatch(t),this.opt.done(o)}))}mark(t,e){this.opt=e;let o=0,r="wrapMatches";const{keywords:i,length:n}=this.getSeparatedKeywords("string"==typeof t?[t]:t),a=this.opt.caseSensitive?"":"i",s=t=>{let e=new RegExp(this.createRegExp(t),`gm${a}`),c=0;this.log(`Searching with expression "${e}"`),this[r](e,1,((e,r)=>this.opt.filter(r,t,o,c)),(t=>{c++,o++,this.opt.each(t)}),(()=>{0===c&&this.opt.noMatch(t),i[n-1]===t?this.opt.done(o):s(i[i.indexOf(t)+1])}))};this.opt.acrossElements&&(r="wrapMatchesAcrossElements"),0===n?this.opt.done(o):s(i[0])}markRanges(t,e){this.opt=e;let o=0,r=this.checkRanges(t);r&&r.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(r)),this.wrapRangeFromIndex(r,((t,e,o,r)=>this.opt.filter(t,e,o,r)),((t,e)=>{o++,this.opt.each(t,e)}),(()=>{this.opt.done(o)}))):this.opt.done(o)}unmark(t){this.opt=t;let e=this.opt.element?this.opt.element:"*";e+="[data-markjs]",this.opt.className&&(e+=`.${this.opt.className}`),this.log(`Removal selector "${e}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,(t=>{this.unwrapMatches(t)}),(t=>{const o=Pi.matches(t,e),r=this.matchesExclude(t);return!o||r?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),this.opt.done)}}(t);return this.mark=(t,o)=>(e.mark(t,o),this),this.markRegExp=(t,o)=>(e.markRegExp(t,o),this),this.markRanges=(t,o)=>(e.markRanges(t,o),this),this.unmark=t=>(e.unmark(t),this),this},_i=po.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Ti=ut`
143
143
  .highlight-html-match {
144
144
  background: ${_i};
145
145
  }
146
- `,Ti={className:"highlight-html-match"};var Di=Object.freeze({__proto__:null,highlightHtml:function(t,e){var o;let r=t.getAttribute("data-highlight-html-query");if((null!=r?r:"")!==(null!=e?e:"")){const r=new Pi(t);if(r.unmark(Ti),e&&e.trim()){r.mark(e.replace(/"[^"]+"/g,""),{...Ti,separateWordSearch:!0});(null!==(o=e.match(/"[^"]+"/g))&&void 0!==o?o:[]).forEach((t=>r.mark(t.replace(/"/g,""),{...Ti,separateWordSearch:!1})))}}t.setAttribute("data-highlight-html-query",null!=e?e:"")},highlightHtmlColorCssVariable:_i,highlightHtmlStyles:Bi});const Mi=ut`
146
+ `,Di={className:"highlight-html-match"};var Mi=Object.freeze({__proto__:null,highlightHtml:function(t,e){var o;let r=t.getAttribute("data-highlight-html-query");if((null!=r?r:"")!==(null!=e?e:"")){const r=new Fi(t);if(r.unmark(Di),e&&e.trim()){r.mark(e.replace(/"[^"]+"/g,""),{...Di,separateWordSearch:!0});(null!==(o=e.match(/"[^"]+"/g))&&void 0!==o?o:[]).forEach((t=>r.mark(t.replace(/"/g,""),{...Di,separateWordSearch:!1})))}}t.setAttribute("data-highlight-html-query",null!=e?e:"")},highlightHtmlColorCssVariable:_i,highlightHtmlStyles:Ti});const zi=ut`
147
147
  .ft-no-text-select {
148
148
  -webkit-touch-callout: none;
149
149
  -webkit-user-select: none;
@@ -152,7 +152,7 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
152
152
  -ms-user-select: none;
153
153
  user-select: none;
154
154
  }
155
- `,zi=ut`
155
+ `,Ki=ut`
156
156
  .ft-word-wrap {
157
157
  white-space: normal;
158
158
  word-wrap: break-word;
@@ -164,7 +164,7 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
164
164
  -webkit-hyphens: auto;
165
165
  hyphens: auto
166
166
  }
167
- `,Ki=ut`
167
+ `,ji=ut`
168
168
  .ft-safari-ellipsis-fix {
169
169
  margin-right: 0;
170
170
 
@@ -175,15 +175,15 @@ function(t){return(e,o)=>{const{slot:r,selector:i}=t??{},n="slot"+(r?`[name=${r}
175
175
  display: inline-block;
176
176
  width: 0;
177
177
  }
178
- `;var ji=Object.freeze({__proto__:null,noTextSelect:Mi,safariEllipsisFix:Ki,wordWrap:zi}),Hi=Object.freeze({__proto__:null});class Zi{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}var $i=Object.freeze({__proto__:null,ParametrizedLabelResolver:Zi});const Gi=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!ao(t,e),attribute:!1,...e};Se(i)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};class Vi{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 qi(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Yi,Ji,Xi;const Qi=Symbol("internalReduxEventsUnsubscribers"),tn=Symbol("internalStoresUnsubscribers"),en=Symbol("internalStores");class on extends Wi{constructor(){super(...arguments),this[Yi]=new Map,this[Ji]=new Map,this[Xi]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[en].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[en].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[en].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:qi(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[en].delete(e)}setupStore(t,e){this[en].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[en].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[tn].has(t.store):this[tn].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[tn].set(t,e.subscribe((()=>this.updateFromStores()))),qi(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[Qi].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[tn].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[Qi].forEach((t=>t())),this[Qi]=[]}unsubscribeFromStore(t){this[tn].has(t)&&this[tn].get(t)(),this[tn].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function rn(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function nn(t){return!!t&&!!t[Zn]}function an(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===$n}(t)||Array.isArray(t)||!!t[Hn]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Hn])||hn(t)||dn(t))}function sn(t,e,o){void 0===o&&(o=!1),0===cn(t)?(o?Object.keys:Gn)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function cn(t){var e=t[Zn];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:hn(t)?2:dn(t)?3:0}function ln(t,e){return 2===cn(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function fn(t,e,o){var r=cn(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function un(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function hn(t){return Mn&&t instanceof Map}function dn(t){return zn&&t instanceof Set}function pn(t){return t.o||t.t}function yn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Vn(t);delete e[Zn];for(var o=Gn(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function gn(t,e){return void 0===e&&(e=!1),mn(t)||nn(t)||!an(t)||(cn(t)>1&&(t.set=t.add=t.clear=t.delete=bn),Object.freeze(t),e&&sn(t,(function(t,e){return gn(e,!0)}),!0)),t}function bn(){rn(2)}function mn(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function vn(t){var e=qn[t];return e||rn(18,t),e}function On(){return Tn}function Sn(t,e){e&&(vn("Patches"),t.u=[],t.s=[],t.v=e)}function wn(t){xn(t),t.p.forEach(Cn),t.p=null}function xn(t){t===Tn&&(Tn=t.l)}function Nn(t){return Tn={p:[],l:Tn,h:t,m:!0,_:0}}function Cn(t){var e=t[Zn];0===e.i||1===e.i?e.j():e.g=!0}function En(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||vn("ES5").S(e,t,r),r?(o[Zn].P&&(wn(e),rn(4)),an(t)&&(t=Rn(e,t),e.l||Ln(e,t)),e.u&&vn("Patches").M(o[Zn].t,t,e.u,e.s)):t=Rn(e,o,[]),wn(e),e.u&&e.v(e.u,e.s),t!==jn?t:void 0}function Rn(t,e,o){if(mn(e))return e;var r=e[Zn];if(!r)return sn(e,(function(i,n){return In(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return Ln(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=yn(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),sn(n,(function(e,n){return In(t,r,i,e,n,o,a)})),Ln(t,i,!1),o&&t.u&&vn("Patches").N(r,o,t.u,t.s)}return r.o}function In(t,e,o,r,i,n,a){if(nn(i)){var s=Rn(t,i,n&&e&&3!==e.i&&!ln(e.R,r)?n.concat(r):void 0);if(fn(o,r,s),!nn(s))return;t.m=!1}else a&&o.add(i);if(an(i)&&!mn(i)){if(!t.h.D&&t._<1)return;Rn(t,i),e&&e.A.l||Ln(t,i)}}function Ln(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&gn(e,o)}function Un(t,e){var o=t[Zn];return(o?pn(o):t)[e]}function Wn(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function An(t){t.P||(t.P=!0,t.l&&An(t.l))}function kn(t){t.o||(t.o=yn(t.t))}function Fn(t,e,o){var r=hn(e)?vn("MapSet").F(e,o):dn(e)?vn("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:On(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=Yn;o&&(i=[r],n=Jn);var a=Proxy.revocable(i,n),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):vn("ES5").J(e,o);return(o?o.A:On()).p.push(r),r}function Pn(t){return nn(t)||rn(22,t),function t(e){if(!an(e))return e;var o,r=e[Zn],i=cn(e);if(r){if(!r.P&&(r.i<4||!vn("ES5").K(r)))return r.t;r.I=!0,o=_n(e,i),r.I=!1}else o=_n(e,i);return sn(o,(function(e,i){r&&function(t,e){return 2===cn(t)?t.get(e):t[e]}(r.t,e)===i||fn(o,e,t(i))})),3===i?new Set(o):o}(t)}function _n(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return yn(t)}Yi=tn,Ji=en,Xi=Qi,on.reduxProperties=new Map,on.reduxReactiveProperties=new Set,on.reduxEventListeners=new Map;var Bn,Tn,Dn="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Mn="undefined"!=typeof Map,zn="undefined"!=typeof Set,Kn="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,jn=Dn?Symbol.for("immer-nothing"):((Bn={})["immer-nothing"]=!0,Bn),Hn=Dn?Symbol.for("immer-draftable"):"__$immer_draftable",Zn=Dn?Symbol.for("immer-state"):"__$immer_state",$n=""+Object.prototype.constructor,Gn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Vn=Object.getOwnPropertyDescriptors||function(t){var e={};return Gn(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},qn={},Yn={get:function(t,e){if(e===Zn)return t;var o=pn(t);if(!ln(o,e))return function(t,e,o){var r,i=Wn(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!an(r)?r:r===Un(t.t,e)?(kn(t),t.o[e]=Fn(t.A.h,r,t)):r},has:function(t,e){return e in pn(t)},ownKeys:function(t){return Reflect.ownKeys(pn(t))},set:function(t,e,o){var r=Wn(pn(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=Un(pn(t),e),n=null==i?void 0:i[Zn];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(un(o,i)&&(void 0!==o||ln(t.t,e)))return!0;kn(t),An(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Un(t.t,e)||e in t.t?(t.R[e]=!1,kn(t),An(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=pn(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){rn(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){rn(12)}},Jn={};sn(Yn,(function(t,e){Jn[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Jn.deleteProperty=function(t,e){return Jn.set.call(this,t,e,void 0)},Jn.set=function(t,e,o){return Yn.set.call(this,t[0],e,o,t[0])};var Xn=function(){function t(t){var e=this;this.O=Kn,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&rn(6),void 0!==r&&"function"!=typeof r&&rn(7),an(t)){var s=Nn(e),c=Fn(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?wn(s):xn(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Sn(s,r),En(t,s)}),(function(t){throw wn(s),t})):(Sn(s,r),En(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===jn&&(a=void 0),e.D&&gn(a,!0),r){var f=[],u=[];vn("Patches").M(t,a,f,u),r(f,u)}return a}rn(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){an(t)||rn(8),nn(t)&&(t=Pn(t));var e=Nn(this),o=Fn(this,t,void 0);return o[Zn].C=!0,xn(e),o},e.finishDraft=function(t,e){var o=(t&&t[Zn]).A;return Sn(o,e),En(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Kn&&rn(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var i=vn("Patches").$;return nn(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),Qn=new Xn,ta=Qn.produce;function ea(t){return ea="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},ea(t)}function oa(t){var e=function(t,e){if("object"!==ea(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==ea(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ea(e)?e:String(e)}function ra(t,e,o){return(e=oa(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function ia(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function na(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ia(Object(o),!0).forEach((function(e){ra(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ia(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function aa(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. "}Qn.produceWithPatches.bind(Qn),Qn.setAutoFreeze.bind(Qn),Qn.setUseProxies.bind(Qn),Qn.applyPatches.bind(Qn),Qn.createDraft.bind(Qn),Qn.finishDraft.bind(Qn);var sa="function"==typeof Symbol&&Symbol.observable||"@@observable",ca=function(){return Math.random().toString(36).substring(7).split("").join(".")},la={INIT:"@@redux/INIT"+ca(),REPLACE:"@@redux/REPLACE"+ca(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ca()}};function fa(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(aa(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(aa(1));return o(fa)(t,e)}if("function"!=typeof t)throw new Error(aa(2));var i=t,n=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(aa(3));return n}function u(t){if("function"!=typeof t)throw new Error(aa(4));if(c)throw new Error(aa(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(aa(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function h(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(aa(7));if(void 0===t.type)throw new Error(aa(8));if(c)throw new Error(aa(9));try{c=!0,n=i(n,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return h({type:la.INIT}),(r={dispatch:h,subscribe:u,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(aa(10));i=t,h({type:la.REPLACE})}})[sa]=function(){var t,e=u;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(aa(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[sa]=function(){return this},t},r}function ua(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:la.INIT}))throw new Error(aa(12));if(void 0===o(void 0,{type:la.PROBE_UNKNOWN_ACTION()}))throw new Error(aa(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],u=l(f,e);if(void 0===u)throw e&&e.type,new Error(aa(14));i[c]=u,r=r||u!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function ha(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function da(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(aa(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=ha.apply(void 0,n)(o.dispatch),na(na({},o),{},{dispatch:r})}}}function pa(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var ya=pa();ya.withExtraArgument=pa;var ga,ba=ya,ma=(ga=function(t,e){return ga=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},ga(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}ga(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),va=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},Oa=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},Sa=Object.defineProperty,wa=Object.defineProperties,xa=Object.getOwnPropertyDescriptors,Na=Object.getOwnPropertySymbols,Ca=Object.prototype.hasOwnProperty,Ea=Object.prototype.propertyIsEnumerable,Ra=function(t,e,o){return e in t?Sa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Ia=function(t,e){for(var o in e||(e={}))Ca.call(e,o)&&Ra(t,o,e[o]);if(Na)for(var r=0,i=Na(e);r<i.length;r++){o=i[r];Ea.call(e,o)&&Ra(t,o,e[o])}return t},La=function(t,e){return wa(t,xa(e))},Ua="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?ha:ha.apply(null,arguments)};var Wa=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return ma(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Oa([void 0],t[0].concat(this)))):new(e.bind.apply(e,Oa([void 0],t.concat(this))))},e}(Array),Aa=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return ma(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,Oa([void 0],t[0].concat(this)))):new(e.bind.apply(e,Oa([void 0],t.concat(this))))},e}(Array);function ka(t){return an(t)?ta(t,(function(){})):t}function Fa(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new Wa;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(ba.withExtraArgument(o.extraArgument)):r.push(ba));return r}(t)}}function Pa(t){var e,o=Fa(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,u=void 0===f?void 0:f,h=r.enhancers,d=void 0===h?void 0:h;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=ua(n)}var p=s;"function"==typeof p&&(p=p(o));var y=da.apply(void 0,p),g=ha;l&&(g=Ua(Ia({trace:!1},"object"==typeof l&&l)));var b=new Aa(y),m=b;return Array.isArray(d)?m=Oa([y],d):"function"==typeof d&&(m=d(b)),fa(e,u,g.apply(void 0,m))}function _a(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return Ia(Ia({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Ba(t){var e,o={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function Ta(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:ka(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Ba(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,c=e[2],l=void 0===c?void 0:c,f=Ia(Ia({},i),s);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?Ba(e):[e,o,r],a=n[0],s=n[1],c=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return ka(t())};else{var l=ka(t);i=function(){return l}}function f(t,e){void 0===t&&(t=i());var o=Oa([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(nn(t))return void 0===(r=o(t,e))?t:r;if(an(t))return ta(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}l&&t.addDefaultCase(l)}))}return n.forEach((function(t){var o,r,n=i[t],l=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,s[l]=o,c[t]=r?_a(l,r):_a(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var Da=["name","message","stack","code"],Ma=function(t,e){this.payload=t,this.meta=e},za=function(t,e){this.payload=t,this.meta=e},Ka=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Da;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function ja(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=_a(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:La(Ia({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=_a(t+"/pending",(function(t,e,o){return{payload:void 0,meta:La(Ia({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=_a(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||Ka)(t||"Rejected"),meta:La(Ia({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,c,l){var f,u=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),h=new a;function d(t){f=t,h.abort()}var p=function(){return a=this,p=null,y=function(){var a,p,y,g,b,m;return va(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),g=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:c,extra:l}),null===(O=g)||"object"!=typeof O||"function"!=typeof O.then?[3,2]:[4,g];case 1:g=v.sent(),v.label=2;case 2:if(!1===g||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(i(u,t,null==(p=null==o?void 0:o.getPendingMeta)?void 0:p.call(o,{requestId:u,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:u,signal:h.signal,abort:d,rejectWithValue:function(t,e){return new Ma(t,e)},fulfillWithValue:function(t,e){return new za(t,e)}})).then((function(e){if(e instanceof Ma)throw e;return e instanceof za?r(e.payload,u,t,e.meta):r(e,u,t)}))])];case 3:return y=v.sent(),[3,5];case 4:return m=v.sent(),y=m instanceof Ma?n(null,u,t,m.payload,m.meta):n(m,u,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(y)&&y.meta.condition||s(y),[2,y]}var O}))},new Promise((function(t,e){var o=function(t){try{i(y.next(t))}catch(t){e(t)}},r=function(t){try{i(y.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((y=y.apply(a,p)).next())}));var a,p,y}();return Object.assign(p,{abort:d,requestId:u,arg:t,unwrap:function(){return p.then(ja)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Ha="listenerMiddleware";_a(Ha+"/add"),_a(Ha+"/removeAll"),_a(Ha+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[Zn];return Yn.get(e,t)},set:function(e){var o=this[Zn];Yn.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][Zn];if(!i.P)switch(i.i){case 5:r(i)&&An(i);break;case 4:o(i)&&An(i)}}}function o(t){for(var e=t.t,o=t.k,r=Gn(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==Zn){var a=e[n];if(void 0===a&&!ln(e,n))return!0;var s=o[n],c=s&&s[Zn];if(c?c.t!==a:!un(s,a))return!0}}var l=!!e[Zn];return r.length!==Gn(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){qn[t]||(qn[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=Vn(o);delete n[Zn];for(var a=Gn(n),s=0;s<a.length;s++){var c=a[s];n[c]=t(c,e||!!n[c].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:On(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,Zn,{value:n,writable:!0}),i},S:function(t,o,i){i?nn(o)&&o[Zn].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[Zn];if(o){var i=o.t,n=o.k,a=o.R,s=o.i;if(4===s)sn(n,(function(e){e!==Zn&&(void 0!==i[e]||ln(i,e)?a[e]||t(n[e]):(a[e]=!0,An(o)))})),sn(i,(function(t){void 0!==n[t]||ln(n,t)||(a[t]=!1,An(o))}));else if(5===s){if(r(o)&&(An(o),a.length=!0),n.length<i.length)for(var c=n.length;c<i.length;c++)a[c]=!1;else for(var l=i.length;l<n.length;l++)a[l]=!0;for(var f=Math.min(n.length,i.length),u=0;u<f;u++)n.hasOwnProperty(u)||(a[u]=!0),void 0===a[u]&&t(n[u])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class Za{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(qi(i))return i;if(null==r)return;const n=Ta({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Pa({reducer:(t,e)=>"CLEAR_FT_REDUX_STORE"===e.type?n.getInitialState():"string"==typeof e.type&&e.type.startsWith("DEFAULT_VALUE_SETTER__")?{...t,...e.overwrites}:n.reducer(t,e)});return window.ftReduxStores[r.name]=new Za(n,a)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Vi,this.actions=new Proxy(this.reduxSlice.actions,{get:(t,e,o)=>{const r=e,i=t[r];return i?(...t)=>{const e=i(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),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()}}var $a=Object.freeze({__proto__:null,FtCommandQueue:Vi,FtLitElementRedux:on,FtReduxStore:Za,clearAllStores:function(){var t;for(let e of Object.values(null!==(t=window.ftReduxStores)&&void 0!==t?t:{}))qi(e)&&e.clear()},isFtReduxStore:qi,redux:Gi,reduxEventListener:t=>(e,o)=>{const r=e.constructor;r.reduxEventListeners=new Map(r.reduxEventListeners),r.reduxEventListeners.set(o,t)},reduxReactive:()=>(t,e)=>{var o;const r=t.constructor;r.reduxReactiveProperties=new Set(r.reduxReactiveProperties),null===(o=r.reduxReactiveProperties)||void 0===o||o.add(e)}});var Ga=Object.freeze({__proto__:null,serializeRequest:function(t,e){var o;const r=new URLSearchParams({"content-lang":null!==(o=e.contentLocale)&&void 0!==o?o:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");r.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${r.toString()}`).href}});const Va=Symbol("elementInternals");var qa,Ya,Ja,Xa,Qa=Object.freeze({__proto__:null,toFtFormComponent:function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Va].form}constructor(...t){super(t),this[Va]=this.attachInternals(),this[Va].role=e}setFormValue(t){this[Va].setFormValue(t)}}}});const ts=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Ja=null===(Ya=null===(qa=window.safari)||void 0===qa?void 0:qa.pushNotification)||void 0===Ya?void 0:Ya.toString())&&void 0!==Ja?Ja:""),es="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=null!==(Xa=window.ftGlobals)&&void 0!==Xa?Xa:{lit:me,litDecorators:Ne,litRepeat:Be,litClassMap:De,litStyleMap:je,litUnsafeHTML:$e,wcUtils:{...Xe,...Ye,...to,...oo,...uo,...yr,...vr,...Si,...dr,...Ai,...ki,...so,...Di,...ji,...Hi,...$i,...$a,...Ei,...Ga,...Qa,isSafari:ts,isTouchScreen:es}};class os{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,o){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,o)),null==t.tocId?this.extractPagesToc(t.children,e,o):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,o){return t.flatMap((t=>{var r,i,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(r=t.pageToc)&&void 0!==r?r:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(i=t.prettyUrl)||void 0===i?void 0:i.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:o,children:[]};this.register(s);const c=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),l=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...c,...l],[s]}))}convertSectionNodes(t,e,o){return t.flatMap((t=>{var r;let i=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const n={...t,prettyUrl:i,depth:e,parentTocId:o,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var o,r,i,n,a,s;const c={number:this.pages.length+1,title:null!==(o=t.title)&&void 0!==o?o:"",rootTocId:null!==(r=t.tocId)&&void 0!==r?r:"root",toc:(null!==(i=t.pageToc)&&void 0!==i?i:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},l=(t,e)=>(e?c.topics:c.hiddenTopics).push(t),f=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return c.breadcrumb.forEach(((t,e)=>{l(t,f[e])})),t.tocId&&l(t.tocId,t.pageConfiguration.isVisible),c.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),c}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 rs{convertPaginatedToc(t){return new os(t).build()}}var is,ns,as,ss,cs,ls,fs,us,hs,ds,ps,ys,gs,bs,ms,vs,Os,Ss;!function(t){!function(e){var o={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(o.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.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 o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?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 l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function u(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function h(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=h(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=l(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?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(u)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},c.prototype.delete=function(t){delete this.map[n(t)]},c.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},c.prototype.set=function(t,e){this.map[n(t)]=a(e)},c.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,r,i=(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 c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=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 c(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),p.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),i=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),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 c(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},d.call(y.prototype),d.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.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 o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,r){return new Promise((function(i,n){var a=new y(t,r);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var i=o.join(":").trim();e.append(r,i)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new b(r,o))},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&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=c,t.Request=y,t.Response=b),e.Headers=c,e.Request=y,e.Response=b,e.fetch=v,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"}(is||(is={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(ns||(ns={})),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"}(as||(as={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(ss||(ss={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(cs||(cs={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(ls||(ls={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(fs||(fs={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(us||(us={})),function(t){t.ASC="ASC",t.DESC="DESC"}(hs||(hs={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(ds||(ds={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(ps||(ps={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(ys||(ys={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(gs||(gs={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(bs||(bs={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(ms||(ms={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(vs||(vs={})),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"}(Os||(Os={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Ss||(Ss={}));const ws={[Os.PERSONAL_BOOK_SHARE_USER]:[Os.PERSONAL_BOOK_USER],[Os.HTML_EXPORT_USER]:[Os.PERSONAL_BOOK_USER],[Os.PDF_EXPORT_USER]:[Os.PERSONAL_BOOK_USER],[Os.KHUB_ADMIN]:[Os.CONTENT_PUBLISHER],[Os.ADMIN]:[Os.KHUB_ADMIN,Os.USERS_ADMIN,Os.PORTAL_ADMIN],[Os.DEVELOPER]:[Os.BETA_USER,Os.DEBUG_USER]};function xs(t,e){return t===e||(ws[t]??[]).some((t=>xs(t,e)))}function Ns(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=>xs(t,e)))}var Cs;t.FtReaderFeatures=void 0,(Cs=t.FtReaderFeatures||(t.FtReaderFeatures={})).FEEDBACK="FEEDBACK",Cs.RATING="RATING",Cs.PRINT="PRINT",Cs.BOOKMARK="BOOKMARK",Cs.COLLECTIONS="COLLECTIONS",Cs.PERSONAL_BOOKS="PERSONAL_BOOKS";const Es=ut`
179
- `,Rs=Za.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,openExternalDocumentInNewTab:!1}});class Is{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Rs.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static get(t){var e;return null!=t?Is.build(t):null!==(e=Is.API)&&void 0!==e?e:Is.API=Is.build()}static await(t){return new Promise((e=>{let o=Is.get(t);if(o)e(o);else{const r=Rs.subscribe((()=>{o=Is.get(t),o&&(r(),e(o))}))}}))}}class Ls{constructor(t=!0,e){var o;this.overrideApi=e;let r=this.constructor;r.commonCache=null!==(o=r.commonCache)&&void 0!==o?o:new Je,this.cache=t?r.commonCache:new Je}get api(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Is.get()}get awaitApi(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Is.await()}clearCache(){this.cache.clearAll()}}var Us;const Ws=Symbol("clearAfterUnitTest");class As extends Ls{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Us]=()=>{this.defaultMessages={},this.cache=new Je,this.listeners={}},this.currentUiLocale=Rs.getState().uiLocale,Rs.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Rs.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};ao(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,i,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(i=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==i?i:{};return new Zi(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>ro(0).then((()=>t())).catch((()=>null)))))}}Us=Ws,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new class extends As{constructor(){super((async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e)))}}),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new class extends As{constructor(){super((async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e)))}});const ks=window.FluidTopicsI18nService;var Fs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ps extends Wi{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Is.get(),this.cache=new Je,this.cleanSessionDebouncer=new eo}render(){return Yt`
178
+ `;var Hi=Object.freeze({__proto__:null,noTextSelect:zi,safariEllipsisFix:ji,wordWrap:Ki}),Zi=Object.freeze({__proto__:null});class $i{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,r;t=this.resolvePluralKey(t,e);let i=null!==(r=null!==(o=this.labels[t])&&void 0!==o?o:this.defaultLabels[t])&&void 0!==r?r:"";return e.forEach(((t,e)=>i=i.replace(new RegExp(`\\{${e}([^}]*)\\}`,"g"),((e,o)=>this.formatValue(t,o))))),i}resolvePluralKey(t,e){for(let o of e)if("number"==typeof o){const e=`${String(t)}[\\=${o}]`;if(e in this.labels||e in this.defaultLabels)return e}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):null!=t?t:""}formatDate(t,e){const o=o=>(null==e?void 0:e.includes("date"))?t.toLocaleDateString(o):(null==e?void 0:e.includes("time"))?t.toLocaleTimeString(o):t.toLocaleString(o);try{return o(document.documentElement.lang)}catch(t){return o()}}}var Gi=Object.freeze({__proto__:null,ParametrizedLabelResolver:$i});const Vi=t=>{const e=null!=t?t:{};return(t,o)=>{var r;const i={hasChanged:(t,e)=>!ao(t,e),attribute:!1,...e};we(i)(t,o);const n=t.constructor;n.reduxProperties=new Map(n.reduxProperties),n.reduxProperties.set(o,{selector:null!==(r=e.selector)&&void 0!==r?r:t=>t[o],store:e.store})}};class 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 Yi(t){var e;return null!==(e=null==t?void 0:t.isFtReduxStore)&&void 0!==e&&e}var Ji,Xi,Qi;const tn=Symbol("internalReduxEventsUnsubscribers"),en=Symbol("internalStoresUnsubscribers"),on=Symbol("internalStores");class rn extends ki{constructor(){super(...arguments),this[Ji]=new Map,this[Xi]=new Map,this[Qi]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some((e=>t.has(e)))&&this.updateFromStores()}getUnnamedStore(){if(this[on].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[on].values()][0]}getStore(t){return null==t?this.getUnnamedStore():this[on].get(t)}addStore(t,e){var o;e=null!==(o=null!=e?e:Yi(t)?t.name:void 0)&&void 0!==o?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){const e="string"==typeof t?t:t.name;this.unsubscribeFromStore(e),this[on].delete(e)}setupStore(t,e){this[on].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[on].forEach(((t,e)=>this.subscribeToStore(e,t))),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach(((t,e)=>{const o=this.constructor.getPropertyOptions(e);if(!(null==o?void 0:o.attribute)||!this.hasAttribute("string"==typeof(null==o?void 0:o.attribute)?o.attribute:e)){const o=this.getStore(t.store);o&&(t.store?this[en].has(t.store):this[en].size>0)&&(this[e]=t.selector(o.getState(),this))}}))}subscribeToStore(t,e){var o;this[en].set(t,e.subscribe((()=>this.updateFromStores()))),Yi(e)&&e.eventBus&&(null===(o=this.reduxConstructor.reduxEventListeners)||void 0===o||o.forEach(((t,o)=>{if("function"==typeof this[o]&&(!t.store||e.name===t.store)){const r=t=>this[o](t);e.eventBus.addEventListener(t.eventName,r),this[tn].push((()=>e.eventBus.removeEventListener(t.eventName,r)))}}))),this.onStoreAvailable(t)}unsubscribeFromStores(){this[en].forEach(((t,e)=>this.unsubscribeFromStore(e))),this[tn].forEach((t=>t())),this[tn]=[]}unsubscribeFromStore(t){this[en].has(t)&&this[en].get(t)(),this[en].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}function nn(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map((function(t){return"'"+t+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function an(t){return!!t&&!!t[$n]}function sn(t){var e;return!!t&&(function(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;var o=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return o===Object||"function"==typeof o&&Function.toString.call(o)===Gn}(t)||Array.isArray(t)||!!t[Zn]||!!(null===(e=t.constructor)||void 0===e?void 0:e[Zn])||dn(t)||pn(t))}function cn(t,e,o){void 0===o&&(o=!1),0===ln(t)?(o?Object.keys:Vn)(t).forEach((function(r){o&&"symbol"==typeof r||e(r,t[r],t)})):t.forEach((function(o,r){return e(r,o,t)}))}function ln(t){var e=t[$n];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:dn(t)?2:pn(t)?3:0}function fn(t,e){return 2===ln(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function un(t,e,o){var r=ln(t);2===r?t.set(e,o):3===r?t.add(o):t[e]=o}function hn(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function dn(t){return zn&&t instanceof Map}function pn(t){return Kn&&t instanceof Set}function gn(t){return t.o||t.t}function yn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=qn(t);delete e[$n];for(var o=Vn(e),r=0;r<o.length;r++){var i=o[r],n=e[i];!1===n.writable&&(n.writable=!0,n.configurable=!0),(n.get||n.set)&&(e[i]={configurable:!0,writable:!0,enumerable:n.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function bn(t,e){return void 0===e&&(e=!1),vn(t)||an(t)||!sn(t)||(ln(t)>1&&(t.set=t.add=t.clear=t.delete=mn),Object.freeze(t),e&&cn(t,(function(t,e){return bn(e,!0)}),!0)),t}function mn(){nn(2)}function vn(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function On(t){var e=Yn[t];return e||nn(18,t),e}function wn(){return Dn}function Sn(t,e){e&&(On("Patches"),t.u=[],t.s=[],t.v=e)}function xn(t){Cn(t),t.p.forEach(En),t.p=null}function Cn(t){t===Dn&&(Dn=t.l)}function Nn(t){return Dn={p:[],l:Dn,h:t,m:!0,_:0}}function En(t){var e=t[$n];0===e.i||1===e.i?e.j():e.g=!0}function Rn(t,e){e._=e.p.length;var o=e.p[0],r=void 0!==t&&t!==o;return e.h.O||On("ES5").S(e,t,r),r?(o[$n].P&&(xn(e),nn(4)),sn(t)&&(t=In(e,t),e.l||Un(e,t)),e.u&&On("Patches").M(o[$n].t,t,e.u,e.s)):t=In(e,o,[]),xn(e),e.u&&e.v(e.u,e.s),t!==Hn?t:void 0}function In(t,e,o){if(vn(e))return e;var r=e[$n];if(!r)return cn(e,(function(i,n){return Ln(t,r,e,i,n,o)}),!0),e;if(r.A!==t)return e;if(!r.P)return Un(t,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=4===r.i||5===r.i?r.o=yn(r.k):r.o,n=i,a=!1;3===r.i&&(n=new Set(i),i.clear(),a=!0),cn(n,(function(e,n){return Ln(t,r,i,e,n,o,a)})),Un(t,i,!1),o&&t.u&&On("Patches").N(r,o,t.u,t.s)}return r.o}function Ln(t,e,o,r,i,n,a){if(an(i)){var s=In(t,i,n&&e&&3!==e.i&&!fn(e.R,r)?n.concat(r):void 0);if(un(o,r,s),!an(s))return;t.m=!1}else a&&o.add(i);if(sn(i)&&!vn(i)){if(!t.h.D&&t._<1)return;In(t,i),e&&e.A.l||Un(t,i)}}function Un(t,e,o){void 0===o&&(o=!1),!t.l&&t.h.D&&t.m&&bn(e,o)}function Wn(t,e){var o=t[$n];return(o?gn(o):t)[e]}function kn(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var r=Object.getOwnPropertyDescriptor(o,e);if(r)return r;o=Object.getPrototypeOf(o)}}function An(t){t.P||(t.P=!0,t.l&&An(t.l))}function Bn(t){t.o||(t.o=yn(t.t))}function Pn(t,e,o){var r=dn(e)?On("MapSet").F(e,o):pn(e)?On("MapSet").T(e,o):t.O?function(t,e){var o=Array.isArray(t),r={i:o?1:0,A:e?e.A:wn(),P:!1,I:!1,R:{},l:e,t,k:null,o:null,j:null,C:!1},i=r,n=Jn;o&&(i=[r],n=Xn);var a=Proxy.revocable(i,n),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(e,o):On("ES5").J(e,o);return(o?o.A:wn()).p.push(r),r}function Fn(t){return an(t)||nn(22,t),function t(e){if(!sn(e))return e;var o,r=e[$n],i=ln(e);if(r){if(!r.P&&(r.i<4||!On("ES5").K(r)))return r.t;r.I=!0,o=_n(e,i),r.I=!1}else o=_n(e,i);return cn(o,(function(e,i){r&&function(t,e){return 2===ln(t)?t.get(e):t[e]}(r.t,e)===i||un(o,e,t(i))})),3===i?new Set(o):o}(t)}function _n(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return yn(t)}Ji=en,Xi=on,Qi=tn,rn.reduxProperties=new Map,rn.reduxReactiveProperties=new Set,rn.reduxEventListeners=new Map;var Tn,Dn,Mn="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),zn="undefined"!=typeof Map,Kn="undefined"!=typeof Set,jn="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Hn=Mn?Symbol.for("immer-nothing"):((Tn={})["immer-nothing"]=!0,Tn),Zn=Mn?Symbol.for("immer-draftable"):"__$immer_draftable",$n=Mn?Symbol.for("immer-state"):"__$immer_state",Gn=""+Object.prototype.constructor,Vn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,qn=Object.getOwnPropertyDescriptors||function(t){var e={};return Vn(t).forEach((function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)})),e},Yn={},Jn={get:function(t,e){if(e===$n)return t;var o=gn(t);if(!fn(o,e))return function(t,e,o){var r,i=kn(e,o);return i?"value"in i?i.value:null===(r=i.get)||void 0===r?void 0:r.call(t.k):void 0}(t,o,e);var r=o[e];return t.I||!sn(r)?r:r===Wn(t.t,e)?(Bn(t),t.o[e]=Pn(t.A.h,r,t)):r},has:function(t,e){return e in gn(t)},ownKeys:function(t){return Reflect.ownKeys(gn(t))},set:function(t,e,o){var r=kn(gn(t),e);if(null==r?void 0:r.set)return r.set.call(t.k,o),!0;if(!t.P){var i=Wn(gn(t),e),n=null==i?void 0:i[$n];if(n&&n.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(hn(o,i)&&(void 0!==o||fn(t.t,e)))return!0;Bn(t),An(t)}return t.o[e]===o&&(void 0!==o||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return void 0!==Wn(t.t,e)||e in t.t?(t.R[e]=!1,Bn(t),An(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=gn(t),r=Reflect.getOwnPropertyDescriptor(o,e);return r?{writable:!0,configurable:1!==t.i||"length"!==e,enumerable:r.enumerable,value:o[e]}:r},defineProperty:function(){nn(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){nn(12)}},Xn={};cn(Jn,(function(t,e){Xn[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Xn.deleteProperty=function(t,e){return Xn.set.call(this,t,e,void 0)},Xn.set=function(t,e,o){return Jn.set.call(this,t[0],e,o,t[0])};var Qn=function(){function t(t){var e=this;this.O=jn,this.D=!0,this.produce=function(t,o,r){if("function"==typeof t&&"function"!=typeof o){var i=o;o=t;var n=e;return function(t){var e=this;void 0===t&&(t=i);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return n.produce(t,(function(t){var r;return(r=o).call.apply(r,[e,t].concat(a))}))}}var a;if("function"!=typeof o&&nn(6),void 0!==r&&"function"!=typeof r&&nn(7),sn(t)){var s=Nn(e),c=Pn(e,t,void 0),l=!0;try{a=o(c),l=!1}finally{l?xn(s):Cn(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(t){return Sn(s,r),Rn(t,s)}),(function(t){throw xn(s),t})):(Sn(s,r),Rn(a,s))}if(!t||"object"!=typeof t){if(void 0===(a=o(t))&&(a=t),a===Hn&&(a=void 0),e.D&&bn(a,!0),r){var f=[],u=[];On("Patches").M(t,a,f,u),r(f,u)}return a}nn(21,t)},this.produceWithPatches=function(t,o){if("function"==typeof t)return function(o){for(var r=arguments.length,i=Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return e.produceWithPatches(o,(function(e){return t.apply(void 0,[e].concat(i))}))};var r,i,n=e.produce(t,o,(function(t,e){r=t,i=e}));return"undefined"!=typeof Promise&&n instanceof Promise?n.then((function(t){return[t,r,i]})):[n,r,i]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var e=t.prototype;return e.createDraft=function(t){sn(t)||nn(8),an(t)&&(t=Fn(t));var e=Nn(this),o=Pn(this,t,void 0);return o[$n].C=!0,Cn(e),o},e.finishDraft=function(t,e){var o=(t&&t[$n]).A;return Sn(o,e),Rn(void 0,o)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!jn&&nn(20),this.O=t},e.applyPatches=function(t,e){var o;for(o=e.length-1;o>=0;o--){var r=e[o];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}o>-1&&(e=e.slice(o+1));var i=On("Patches").$;return an(t)?i(t,e):this.produce(t,(function(t){return i(t,e)}))},t}(),ta=new Qn,ea=ta.produce;function oa(t){return oa="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},oa(t)}function ra(t){var e=function(t,e){if("object"!==oa(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,e||"default");if("object"!==oa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===oa(e)?e:String(e)}function ia(t,e,o){return(e=ra(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function na(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,r)}return o}function aa(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?na(Object(o),!0).forEach((function(e){ia(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):na(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function sa(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. "}ta.produceWithPatches.bind(ta),ta.setAutoFreeze.bind(ta),ta.setUseProxies.bind(ta),ta.applyPatches.bind(ta),ta.createDraft.bind(ta),ta.finishDraft.bind(ta);var ca="function"==typeof Symbol&&Symbol.observable||"@@observable",la=function(){return Math.random().toString(36).substring(7).split("").join(".")},fa={INIT:"@@redux/INIT"+la(),REPLACE:"@@redux/REPLACE"+la(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+la()}};function ua(t,e,o){var r;if("function"==typeof e&&"function"==typeof o||"function"==typeof o&&"function"==typeof arguments[3])throw new Error(sa(0));if("function"==typeof e&&void 0===o&&(o=e,e=void 0),void 0!==o){if("function"!=typeof o)throw new Error(sa(1));return o(ua)(t,e)}if("function"!=typeof t)throw new Error(sa(2));var i=t,n=e,a=[],s=a,c=!1;function l(){s===a&&(s=a.slice())}function f(){if(c)throw new Error(sa(3));return n}function u(t){if("function"!=typeof t)throw new Error(sa(4));if(c)throw new Error(sa(5));var e=!0;return l(),s.push(t),function(){if(e){if(c)throw new Error(sa(6));e=!1,l();var o=s.indexOf(t);s.splice(o,1),a=null}}}function h(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}(t))throw new Error(sa(7));if(void 0===t.type)throw new Error(sa(8));if(c)throw new Error(sa(9));try{c=!0,n=i(n,t)}finally{c=!1}for(var e=a=s,o=0;o<e.length;o++){(0,e[o])()}return t}return h({type:fa.INIT}),(r={dispatch:h,subscribe:u,getState:f,replaceReducer:function(t){if("function"!=typeof t)throw new Error(sa(10));i=t,h({type:fa.REPLACE})}})[ca]=function(){var t,e=u;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error(sa(11));function o(){t.next&&t.next(f())}return o(),{unsubscribe:e(o)}}})[ca]=function(){return this},t},r}function ha(t){for(var e=Object.keys(t),o={},r=0;r<e.length;r++){var i=e[r];"function"==typeof t[i]&&(o[i]=t[i])}var n,a=Object.keys(o);try{!function(t){Object.keys(t).forEach((function(e){var o=t[e];if(void 0===o(void 0,{type:fa.INIT}))throw new Error(sa(12));if(void 0===o(void 0,{type:fa.PROBE_UNKNOWN_ACTION()}))throw new Error(sa(13))}))}(o)}catch(t){n=t}return function(t,e){if(void 0===t&&(t={}),n)throw n;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=o[c],f=t[c],u=l(f,e);if(void 0===u)throw e&&e.type,new Error(sa(14));i[c]=u,r=r||u!==f}return(r=r||a.length!==Object.keys(t).length)?i:t}}function da(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce((function(t,e){return function(){return t(e.apply(void 0,arguments))}}))}function pa(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(t){return function(){var o=t.apply(void 0,arguments),r=function(){throw new Error(sa(15))},i={getState:o.getState,dispatch:function(){return r.apply(void 0,arguments)}},n=e.map((function(t){return t(i)}));return r=da.apply(void 0,n)(o.dispatch),aa(aa({},o),{},{dispatch:r})}}}function ga(t){return function(e){var o=e.dispatch,r=e.getState;return function(e){return function(i){return"function"==typeof i?i(o,r,t):e(i)}}}}var ya=ga();ya.withExtraArgument=ga;var ba,ma=ya,va=(ba=function(t,e){return ba=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},ba(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}ba(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Oa=function(t,e){var o,r,i,n,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function s(n){return function(s){return function(n){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,r&&(i=2&n[0]?r.return:n[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,n[1])).done)return i;switch(r=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){a=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){a.label=n[1];break}if(6===n[0]&&a.label<i[1]){a.label=i[1],i=n;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(n);break}i[2]&&a.ops.pop(),a.trys.pop();continue}n=e.call(t,a)}catch(t){n=[6,t],r=0}finally{o=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}},wa=function(t,e){for(var o=0,r=e.length,i=t.length;o<r;o++,i++)t[i]=e[o];return t},Sa=Object.defineProperty,xa=Object.defineProperties,Ca=Object.getOwnPropertyDescriptors,Na=Object.getOwnPropertySymbols,Ea=Object.prototype.hasOwnProperty,Ra=Object.prototype.propertyIsEnumerable,Ia=function(t,e,o){return e in t?Sa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},La=function(t,e){for(var o in e||(e={}))Ea.call(e,o)&&Ia(t,o,e[o]);if(Na)for(var r=0,i=Na(e);r<i.length;r++){o=i[r];Ra.call(e,o)&&Ia(t,o,e[o])}return t},Ua=function(t,e){return xa(t,Ca(e))},Wa="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?da:da.apply(null,arguments)};var ka=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return va(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,wa([void 0],t[0].concat(this)))):new(e.bind.apply(e,wa([void 0],t.concat(this))))},e}(Array),Aa=function(t){function e(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];var i=t.apply(this,o)||this;return Object.setPrototypeOf(i,e.prototype),i}return va(e,t),Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.prototype.concat.apply(this,e)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return 1===t.length&&Array.isArray(t[0])?new(e.bind.apply(e,wa([void 0],t[0].concat(this)))):new(e.bind.apply(e,wa([void 0],t.concat(this))))},e}(Array);function Ba(t){return sn(t)?ea(t,(function(){})):t}function Pa(){return function(t){return function(t){void 0===t&&(t={});var e=t.thunk,o=void 0===e||e;t.immutableCheck,t.serializableCheck;var r=new ka;o&&(!function(t){return"boolean"==typeof t}(o)?r.push(ma.withExtraArgument(o.extraArgument)):r.push(ma));return r}(t)}}function Fa(t){var e,o=Pa(),r=t||{},i=r.reducer,n=void 0===i?void 0:i,a=r.middleware,s=void 0===a?o():a,c=r.devTools,l=void 0===c||c,f=r.preloadedState,u=void 0===f?void 0:f,h=r.enhancers,d=void 0===h?void 0:h;if("function"==typeof n)e=n;else{if(!function(t){if("object"!=typeof t||null===t)return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var o=e;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return e===o}(n))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');e=ha(n)}var p=s;"function"==typeof p&&(p=p(o));var g=pa.apply(void 0,p),y=da;l&&(y=Wa(La({trace:!1},"object"==typeof l&&l)));var b=new Aa(g),m=b;return Array.isArray(d)?m=wa([g],d):"function"==typeof d&&(m=d(b)),ua(e,u,y.apply(void 0,m))}function _a(t,e){function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(e){var i=e.apply(void 0,o);if(!i)throw new Error("prepareAction did not return an object");return La(La({type:t,payload:i.payload},"meta"in i&&{meta:i.meta}),"error"in i&&{error:i.error})}return{type:t,payload:o[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(e){return e.type===t},o}function Ta(t){var e,o={},r=[],i={addCase:function(t,e){var r="string"==typeof t?t:t.type;if(r in o)throw new Error("addCase cannot be called with two reducers for the same action type");return o[r]=e,i},addMatcher:function(t,e){return r.push({matcher:t,reducer:e}),i},addDefaultCase:function(t){return e=t,i}};return t(i),[o,r,e]}function Da(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");var o,r="function"==typeof t.initialState?t.initialState:Ba(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};function l(){var e="function"==typeof t.extraReducers?Ta(t.extraReducers):[t.extraReducers],o=e[0],i=void 0===o?{}:o,n=e[1],a=void 0===n?[]:n,c=e[2],l=void 0===c?void 0:c,f=La(La({},i),s);return function(t,e,o,r){void 0===o&&(o=[]);var i,n="function"==typeof e?Ta(e):[e,o,r],a=n[0],s=n[1],c=n[2];if(function(t){return"function"==typeof t}(t))i=function(){return Ba(t())};else{var l=Ba(t);i=function(){return l}}function f(t,e){void 0===t&&(t=i());var o=wa([a[e.type]],s.filter((function(t){return(0,t.matcher)(e)})).map((function(t){return t.reducer})));return 0===o.filter((function(t){return!!t})).length&&(o=[c]),o.reduce((function(t,o){if(o){var r;if(an(t))return void 0===(r=o(t,e))?t:r;if(sn(t))return ea(t,(function(t){return o(t,e)}));if(void 0===(r=o(t,e))){if(null===t)return t;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return t}),t)}return f.getInitialState=i,f}(r,(function(t){for(var e in f)t.addCase(e,f[e]);for(var o=0,r=a;o<r.length;o++){var i=r[o];t.addMatcher(i.matcher,i.reducer)}l&&t.addDefaultCase(l)}))}return n.forEach((function(t){var o,r,n=i[t],l=e+"/"+t;"reducer"in n?(o=n.reducer,r=n.prepare):o=n,a[t]=o,s[l]=o,c[t]=r?_a(l,r):_a(l)})),{name:e,reducer:function(t,e){return o||(o=l()),o(t,e)},actions:c,caseReducers:a,getInitialState:function(){return o||(o=l()),o.getInitialState()}}}var Ma=["name","message","stack","code"],za=function(t,e){this.payload=t,this.meta=e},Ka=function(t,e){this.payload=t,this.meta=e},ja=function(t){if("object"==typeof t&&null!==t){for(var e={},o=0,r=Ma;o<r.length;o++){var i=r[o];"string"==typeof t[i]&&(e[i]=t[i])}return e}return{message:String(t)}};function Ha(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}!function(){function t(t,e,o){var r=_a(t+"/fulfilled",(function(t,e,o,r){return{payload:t,meta:Ua(La({},r||{}),{arg:o,requestId:e,requestStatus:"fulfilled"})}})),i=_a(t+"/pending",(function(t,e,o){return{payload:void 0,meta:Ua(La({},o||{}),{arg:e,requestId:t,requestStatus:"pending"})}})),n=_a(t+"/rejected",(function(t,e,r,i,n){return{payload:i,error:(o&&o.serializeError||ja)(t||"Rejected"),meta:Ua(La({},n||{}),{arg:r,requestId:e,rejectedWithValue:!!i,requestStatus:"rejected",aborted:"AbortError"===(null==t?void 0:t.name),condition:"ConditionError"===(null==t?void 0:t.name)})}})),a="undefined"!=typeof AbortController?AbortController:function(){function t(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return t.prototype.abort=function(){},t}();return Object.assign((function(t){return function(s,c,l){var f,u=(null==o?void 0:o.idGenerator)?o.idGenerator(t):function(t){void 0===t&&(t=21);for(var e="",o=t;o--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e}(),h=new a;function d(t){f=t,h.abort()}var p=function(){return a=this,p=null,g=function(){var a,p,g,y,b,m;return Oa(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),y=null==(a=null==o?void 0:o.condition)?void 0:a.call(o,t,{getState:c,extra:l}),null===(O=y)||"object"!=typeof O||"function"!=typeof O.then?[3,2]:[4,y];case 1:y=v.sent(),v.label=2;case 2:if(!1===y||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return b=new Promise((function(t,e){return h.signal.addEventListener("abort",(function(){return e({name:"AbortError",message:f||"Aborted"})}))})),s(i(u,t,null==(p=null==o?void 0:o.getPendingMeta)?void 0:p.call(o,{requestId:u,arg:t},{getState:c,extra:l}))),[4,Promise.race([b,Promise.resolve(e(t,{dispatch:s,getState:c,extra:l,requestId:u,signal:h.signal,abort:d,rejectWithValue:function(t,e){return new za(t,e)},fulfillWithValue:function(t,e){return new Ka(t,e)}})).then((function(e){if(e instanceof za)throw e;return e instanceof Ka?r(e.payload,u,t,e.meta):r(e,u,t)}))])];case 3:return g=v.sent(),[3,5];case 4:return m=v.sent(),g=m instanceof za?n(null,u,t,m.payload,m.meta):n(m,u,t),[3,5];case 5:return o&&!o.dispatchConditionRejection&&n.match(g)&&g.meta.condition||s(g),[2,g]}var O}))},new Promise((function(t,e){var o=function(t){try{i(g.next(t))}catch(t){e(t)}},r=function(t){try{i(g.throw(t))}catch(t){e(t)}},i=function(e){return e.done?t(e.value):Promise.resolve(e.value).then(o,r)};i((g=g.apply(a,p)).next())}));var a,p,g}();return Object.assign(p,{abort:d,requestId:u,arg:t,unwrap:function(){return p.then(Ha)}})}}),{pending:i,rejected:n,fulfilled:r,typePrefix:t})}t.withTypes=function(){return t}}();var Za="listenerMiddleware";_a(Za+"/add"),_a(Za+"/removeAll"),_a(Za+"/remove"),"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis),function(){function t(t,e){var o=i[t];return o?o.enumerable=e:i[t]=o={configurable:!0,enumerable:e,get:function(){var e=this[$n];return Jn.get(e,t)},set:function(e){var o=this[$n];Jn.set(o,t,e)}},o}function e(t){for(var e=t.length-1;e>=0;e--){var i=t[e][$n];if(!i.P)switch(i.i){case 5:r(i)&&An(i);break;case 4:o(i)&&An(i)}}}function o(t){for(var e=t.t,o=t.k,r=Vn(o),i=r.length-1;i>=0;i--){var n=r[i];if(n!==$n){var a=e[n];if(void 0===a&&!fn(e,n))return!0;var s=o[n],c=s&&s[$n];if(c?c.t!==a:!hn(s,a))return!0}}var l=!!e[$n];return r.length!==Vn(e).length+(l?0:1)}function r(t){var e=t.k;if(e.length!==t.t.length)return!0;var o=Object.getOwnPropertyDescriptor(e,e.length-1);if(o&&!o.get)return!0;for(var r=0;r<e.length;r++)if(!e.hasOwnProperty(r))return!0;return!1}var i={};!function(t,e){Yn[t]||(Yn[t]=e)}("ES5",{J:function(e,o){var r=Array.isArray(e),i=function(e,o){if(e){for(var r=Array(o.length),i=0;i<o.length;i++)Object.defineProperty(r,""+i,t(i,!0));return r}var n=qn(o);delete n[$n];for(var a=Vn(n),s=0;s<a.length;s++){var c=a[s];n[c]=t(c,e||!!n[c].enumerable)}return Object.create(Object.getPrototypeOf(o),n)}(r,e),n={i:r?5:4,A:o?o.A:wn(),P:!1,I:!1,R:{},l:o,t:e,k:i,o:null,g:!1,C:!1};return Object.defineProperty(i,$n,{value:n,writable:!0}),i},S:function(t,o,i){i?an(o)&&o[$n].A===t&&e(t.p):(t.u&&function t(e){if(e&&"object"==typeof e){var o=e[$n];if(o){var i=o.t,n=o.k,a=o.R,s=o.i;if(4===s)cn(n,(function(e){e!==$n&&(void 0!==i[e]||fn(i,e)?a[e]||t(n[e]):(a[e]=!0,An(o)))})),cn(i,(function(t){void 0!==n[t]||fn(n,t)||(a[t]=!1,An(o))}));else if(5===s){if(r(o)&&(An(o),a.length=!0),n.length<i.length)for(var c=n.length;c<i.length;c++)a[c]=!1;else for(var l=i.length;l<n.length;l++)a[l]=!0;for(var f=Math.min(n.length,i.length),u=0;u<f;u++)n.hasOwnProperty(u)||(a[u]=!0),void 0===a[u]&&t(n[u])}}}}(t.p[0]),e(t.p))},K:function(t){return 4===t.i?o(t):r(t)}})}(),window.ftReduxStores||(window.ftReduxStores={});class $a{static get(t){var e;const o="string"==typeof t?t:t.name,r="string"==typeof t?void 0:t,i=window.ftReduxStores[o];if(Yi(i))return i;if(null==r)return;const n=Da({...r,reducers:null!==(e=r.reducers)&&void 0!==e?e:{}}),a=Fa({reducer:(t,e)=>"CLEAR_FT_REDUX_STORE"===e.type?n.getInitialState():"string"==typeof e.type&&e.type.startsWith("DEFAULT_VALUE_SETTER__")?{...t,...e.overwrites}:n.reducer(t,e)});return window.ftReduxStores[r.name]=new $a(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,o)=>{const r=e,i=t[r];return i?(...t)=>{const e=i(...t);return this.reduxStore.dispatch(e),e}:t=>{this.setState({[r]:t})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),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()}}var Ga=Object.freeze({__proto__:null,FtCommandQueue:qi,FtLitElementRedux:rn,FtReduxStore:$a,clearAllStores:function(){var t;for(let e of Object.values(null!==(t=window.ftReduxStores)&&void 0!==t?t:{}))Yi(e)&&e.clear()},isFtReduxStore:Yi,redux:Vi,reduxEventListener:t=>(e,o)=>{const r=e.constructor;r.reduxEventListeners=new Map(r.reduxEventListeners),r.reduxEventListeners.set(o,t)},reduxReactive:()=>(t,e)=>{var o;const r=t.constructor;r.reduxReactiveProperties=new Set(r.reduxReactiveProperties),null===(o=r.reduxReactiveProperties)||void 0===o||o.add(e)}});var Va=Object.freeze({__proto__:null,serializeRequest:function(t,e){var o;const r=new URLSearchParams({"content-lang":null!==(o=e.contentLocale)&&void 0!==o?o:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");r.append("filters",t)}return new URL(`${t.replace(/\/+$/,"")}/search?${r.toString()}`).href}});const qa=Symbol("elementInternals");var Ya,Ja,Xa,Qa,ts=Object.freeze({__proto__:null,toFtFormComponent:function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[qa].form}constructor(...t){super(t),this[qa]=this.attachInternals(),this[qa].role=e}setFormValue(t){this[qa].setFormValue(t)}}}});const es=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Xa=null===(Ja=null===(Ya=window.safari)||void 0===Ya?void 0:Ya.pushNotification)||void 0===Ja?void 0:Ja.toString())&&void 0!==Xa?Xa:""),os="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=null!==(Qa=window.ftGlobals)&&void 0!==Qa?Qa:{lit:me,litDecorators:Ce,litRepeat:_e,litClassMap:De,litStyleMap:je,litUnsafeHTML:$e,wcUtils:{...Xe,...Ye,...to,...oo,...uo,...yr,...Or,...Si,...pr,...Ai,...Bi,...so,...Mi,...Hi,...Zi,...Gi,...Ga,...Ri,...Va,...ts,isSafari:es,isTouchScreen:os}};class rs{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,o){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,o)),null==t.tocId?this.extractPagesToc(t.children,e,o):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,o){return t.flatMap((t=>{var r,i,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(r=t.pageToc)&&void 0!==r?r:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(i=t.prettyUrl)||void 0===i?void 0:i.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:o,children:[]};this.register(s);const c=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),l=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...c,...l],[s]}))}convertSectionNodes(t,e,o){return t.flatMap((t=>{var r;let i=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const n={...t,prettyUrl:i,depth:e,parentTocId:o,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var o,r,i,n,a,s;const c={number:this.pages.length+1,title:null!==(o=t.title)&&void 0!==o?o:"",rootTocId:null!==(r=t.tocId)&&void 0!==r?r:"root",toc:(null!==(i=t.pageToc)&&void 0!==i?i:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},l=(t,e)=>(e?c.topics:c.hiddenTopics).push(t),f=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return c.breadcrumb.forEach(((t,e)=>{l(t,f[e])})),t.tocId&&l(t.tocId,t.pageConfiguration.isVisible),c.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),c}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 is{convertPaginatedToc(t){return new rs(t).build()}}var ns,as,ss,cs,ls,fs,us,hs,ds,ps,gs,ys,bs,ms,vs,Os,ws,Ss;!function(t){!function(e){var o={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(o.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(t){return t&&r.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 o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function c(t){this.map={},t instanceof c?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 l(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function u(t){var e=new FileReader,o=f(e);return e.readAsArrayBuffer(t),o}function h(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||i(t))?this._bodyArrayBuffer=h(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=l(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?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(u)}),this.text=function(){var t=l(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=f(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),r=0;r<e.length;r++)o[r]=String.fromCharCode(e[r]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},c.prototype.delete=function(t){delete this.map[n(t)]},c.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},c.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},c.prototype.set=function(t,e){this.map[n(t)]=a(e)},c.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},c.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},c.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},c.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var p=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var o,r,i=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new c(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=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 c(e.headers)),this.method=(o=e.method||this.method||"GET",r=o.toUpperCase(),p.indexOf(r)>-1?r:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function y(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),r=o.shift().replace(/\+/g," "),i=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),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 c(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},d.call(g.prototype),d.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.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 o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,r){return new Promise((function(i,n){var a=new g(t,r);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new c,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),r=o.shift().trim();if(r){var i=o.join(":").trim();e.append(r,i)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;i(new b(r,o))},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&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=c,t.Request=g,t.Response=b),e.Headers=c,e.Request=g,e.Response=b,e.fetch=v,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"}(ns||(ns={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(as||(as={})),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"}(ss||(ss={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(cs||(cs={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(ls||(ls={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(fs||(fs={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(us||(us={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(hs||(hs={})),function(t){t.ASC="ASC",t.DESC="DESC"}(ds||(ds={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(ps||(ps={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(gs||(gs={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(ys||(ys={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(bs||(bs={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(ms||(ms={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(vs||(vs={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}(Os||(Os={})),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"}(ws||(ws={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Ss||(Ss={}));const xs={[ws.PERSONAL_BOOK_SHARE_USER]:[ws.PERSONAL_BOOK_USER],[ws.HTML_EXPORT_USER]:[ws.PERSONAL_BOOK_USER],[ws.PDF_EXPORT_USER]:[ws.PERSONAL_BOOK_USER],[ws.KHUB_ADMIN]:[ws.CONTENT_PUBLISHER],[ws.ADMIN]:[ws.KHUB_ADMIN,ws.USERS_ADMIN,ws.PORTAL_ADMIN],[ws.DEVELOPER]:[ws.BETA_USER,ws.DEBUG_USER]};function Cs(t,e){return t===e||(xs[t]??[]).some((t=>Cs(t,e)))}function Ns(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=>Cs(t,e)))}var Es;t.FtReaderFeatures=void 0,(Es=t.FtReaderFeatures||(t.FtReaderFeatures={})).FEEDBACK="FEEDBACK",Es.RATING="RATING",Es.PRINT="PRINT",Es.BOOKMARK="BOOKMARK",Es.COLLECTIONS="COLLECTIONS",Es.PERSONAL_BOOKS="PERSONAL_BOOKS";const Rs=ut`
179
+ `,Is=$a.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,openExternalDocumentInNewTab:!1}});class Ls{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Is.getState(),r=null!=t?t:o;if(e&&r&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,r,!0)}static get(t){var e;return null!=t?Ls.build(t):null!==(e=Ls.API)&&void 0!==e?e:Ls.API=Ls.build()}static await(t){return new Promise((e=>{let o=Ls.get(t);if(o)e(o);else{const r=Is.subscribe((()=>{o=Ls.get(t),o&&(r(),e(o))}))}}))}}class Us{constructor(t=!0,e){var o;this.overrideApi=e;let r=this.constructor;r.commonCache=null!==(o=r.commonCache)&&void 0!==o?o:new Je,this.cache=t?r.commonCache:new Je}get api(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Ls.get()}get awaitApi(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Ls.await()}clearCache(){this.cache.clearAll()}}var Ws;const ks=Symbol("clearAfterUnitTest");class As extends Us{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ws]=()=>{this.defaultMessages={},this.cache=new Je,this.listeners={}},this.currentUiLocale=Is.getState().uiLocale,Is.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Is.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};ao(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var r,i,n;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(i=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==i?i:{};return new $i(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>ro(0).then((()=>t())).catch((()=>null)))))}}Ws=ks,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new class extends As{constructor(){super((async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e)))}}),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new class extends As{constructor(){super((async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e)))}});const Bs=window.FluidTopicsI18nService;var Ps=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Fs extends ki{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Ls.get(),this.cache=new Je,this.cleanSessionDebouncer=new eo}render(){return Yt`
180
180
  <slot></slot>
181
- `}update(t){super.update(t),t.has("baseUrl")&&(Rs.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Rs.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Rs.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Rs.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Rs.actions.noCustom(this.noCustom),t.has("editorMode")&&Rs.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Rs.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Rs.actions.session(this.session),t.has("availableUiLocales")&&Rs.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>ks.addContext(t))),t.has("openExternalDocumentInNewTab")&&Rs.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),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()))}}Ps.elementDefinitions={},Ps.styles=Es,Fs([Se()],Ps.prototype,"baseUrl",void 0),Fs([Se()],Ps.prototype,"apiIntegrationIdentifier",void 0),Fs([Se()],Ps.prototype,"uiLocale",void 0),Fs([lo(null)],Ps.prototype,"availableUiLocales",void 0),Fs([lo(null)],Ps.prototype,"metadataConfiguration",void 0),Fs([Se({type:Boolean})],Ps.prototype,"editorMode",void 0),Fs([Se({type:Boolean})],Ps.prototype,"noCustom",void 0),Fs([Se({type:Boolean})],Ps.prototype,"openExternalDocumentInNewTab",void 0),Fs([Se({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ps.prototype,"noCustomComponent",void 0),Fs([Se({type:Boolean})],Ps.prototype,"withManualResources",void 0),Fs([lo([])],Ps.prototype,"messageContexts",void 0),Fs([lo(void 0)],Ps.prototype,"session",void 0),Fs([Se({type:Object})],Ps.prototype,"apiProvider",void 0);class _s extends Ls{async listMySearches(){let t=Rs.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class Bs extends Ls{async listMyBookmarks(){let t=Rs.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const Ts=Za.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Ds=new class{constructor(){this.currentSession=Rs.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Bs,this.savedSearchesService=new _s,Rs.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Rs.getState();ao(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(){this.savedSearchesService.clearCache(),Ts.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ts.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();const t=await this.savedSearchesService.listMySearches();Ts.actions.savedSearches(t)}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;Ts.actions.bookmarks(e)}}};co("ft-app-context")(Ps);class Ms extends Ls{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,o){super(!1,e),this.converter=t,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 Ns(null!==(e=null===(t=Rs.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")}getMapNow(){return this.cache.getNow("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,o){return this.cache.get("topic-relatives-"+[t,e,...o].join("-"),(()=>this.fetchRelativesForTopicInMap(t,e,o)))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,o){const r=this.getNavigationData(t,e,o),i=this.getReaderLinkPrefix()+(r.prettyUrl?r.prettyUrl:`${r.mapId}/${r.tocId}`),n=new URL(i,this.api.tenantBaseUrl);return null!=r.page&&n.searchParams.set("page",`${r.page}`),r.prettyUrlDuplicated&&n.searchParams.set("tocId",r.tocId),null!=r.section&&n.searchParams.set("section",r.section),n.href}getNavigationData(t,e,o){var r,i;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],c=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(r=null==s?void 0:s.title)&&void 0!==r?r:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=c?c.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(i=null==n?void 0:n.duplicatedPrettyUrls.has(null!=c?c:""))&&void 0!==i&&i,section:o}}async getAccurateNavigationData(t,e,o){return await this.getEnrichedToc(),this.getNavigationData(t,e,o)}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 o;return e?{type:e.topics.type,rating:null===(o=e.topics)||void 0===o?void 0:o.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,o){return this.makeRateTopicRequest(t,e,o).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=Rs.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,o){return this.makeTopicFeedbackRequest(t,e,o)}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),o=[{tocId:e.tocId,title:e.title}],r=this.getTocNodeNow(e.parentTocId);for(;r;)o.unshift({tocId:r.tocId,title:r.title}),r=this.getTocNodeNow(r.parentTocId);return o}isFeatureAccessible(e,{session:o,ratingType:r}){var i;if(!this.isFeatureAvailable(e))return!1;switch(e){case t.FtReaderFeatures.FEEDBACK:return Ns(null!=o?o:[],Os.FEEDBACK_USER);case t.FtReaderFeatures.RATING:return Ns(null!=o?o:[],Os.RATING_USER)&&null!=r&&r!==fs.NO_RATING;case t.FtReaderFeatures.PRINT:return Ns(null!=o?o:[],Os.PRINT_USER);case t.FtReaderFeatures.BOOKMARK:return!!(null==o?void 0:o.sessionAuthenticated);case t.FtReaderFeatures.COLLECTIONS:return Ns(null!=o?o:[],Os.COLLECTION_USER);case t.FtReaderFeatures.PERSONAL_BOOKS:return Ns(null!=o?o:[],Os.PERSONAL_BOOK_USER)&&!(null===(i=this.getMapNow())||void 0===i?void 0:i.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class zs extends Ms{static async build(t){return new zs(new rs,void 0,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,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,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,o){return this.api.rateTopic(this.mapId,t,e,o)}makeTopicFeedbackRequest(t,e,o){return this.api.sendTopicFeedback(this.mapId,t,e,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Ks{static build(t,e){return new Ks((t=>Za.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:zs.build)}constructor(t,e){this.store=t,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new eo(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 io((()=>this.service))}async navigateToTopic(t,e,o){const r=await this.awaitService(),i=await(null!=o?r.getPage(o):r.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(i),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,i),section:e})}resolveValidNonRootTocId(t,e){var o,r,i;let n=null!==(o="root"===t?void 0:t)&&void 0!==o?o:e.rootTocId;return e.topics.includes(n)?n:null!==(i=null!==(r=e.topics[0])&&void 0!==r?r:e.hiddenTopics[0])&&void 0!==i?i:"root"}async navigateToPage(t){const e=await this.awaitService();let o=await e.getPage(t);this.store.actions.currentPage(o)}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.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,e,o,r,i;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(e=this.service)||void 0===e?void 0:e.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===(i=this.service)||void 0===i?void 0:i.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))]).then((()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}))}catch(t){!this.errorHandler||t instanceof Ge||this.errorHandler(t)}}fetchRelatives(){var t,e,o;const r=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!==r&&r.length>0&&(null===(e=this.service)||void 0===e||e.getRelativesForDocument(null===(o=this.store.getState().configuration)||void 0===o?void 0:o.relativePivotMetadata,r).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 Qe(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=Rs.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,o,r;const i=await io((()=>{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,i,[t]);if(null===(r=null===(o=null===(e=null==s?void 0:s.results)||void 0===e?void 0:e[0])||void 0===o?void 0:o.entries)||void 0===r?void 0:r[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 js=ut`
182
- `;class Hs extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Zs extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class $s extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Gs extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class Vs extends Event{constructor(){super("ft-reader-map-not-found")}}class qs extends Event{constructor(){super("ft-reader-map-unauthorized")}}class Ys extends Event{constructor(){super("ft-reader-map-forbidden")}}class Js extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}}var Xs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Qs extends on{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new eo(5),this.navigationDebouncer=new eo(10),this.mapLoadedEventDebouncer=new eo(50),this.addStore(Rs)}render(){return Yt`
181
+ `}update(t){super.update(t),t.has("baseUrl")&&(Is.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Is.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Is.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Is.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Is.actions.noCustom(this.noCustom),t.has("editorMode")&&Is.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Is.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Is.actions.session(this.session),t.has("availableUiLocales")&&Is.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Bs.addContext(t))),t.has("openExternalDocumentInNewTab")&&Is.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),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()))}}Fs.elementDefinitions={},Fs.styles=Rs,Ps([we()],Fs.prototype,"baseUrl",void 0),Ps([we()],Fs.prototype,"apiIntegrationIdentifier",void 0),Ps([we()],Fs.prototype,"uiLocale",void 0),Ps([lo(null)],Fs.prototype,"availableUiLocales",void 0),Ps([lo(null)],Fs.prototype,"metadataConfiguration",void 0),Ps([we({type:Boolean})],Fs.prototype,"editorMode",void 0),Ps([we({type:Boolean})],Fs.prototype,"noCustom",void 0),Ps([we({type:Boolean})],Fs.prototype,"openExternalDocumentInNewTab",void 0),Ps([we({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Fs.prototype,"noCustomComponent",void 0),Ps([we({type:Boolean})],Fs.prototype,"withManualResources",void 0),Ps([lo([])],Fs.prototype,"messageContexts",void 0),Ps([lo(void 0)],Fs.prototype,"session",void 0),Ps([we({type:Object})],Fs.prototype,"apiProvider",void 0);class _s extends Us{async listMySearches(){let t=Is.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class Ts extends Us{async listMyBookmarks(){let t=Is.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const Ds=$a.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Ms=new class{constructor(){this.currentSession=Is.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Ts,this.savedSearchesService=new _s,Is.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Is.getState();ao(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(){this.savedSearchesService.clearCache(),Ds.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ds.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();const t=await this.savedSearchesService.listMySearches();Ds.actions.savedSearches(t)}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;Ds.actions.bookmarks(e)}}};co("ft-app-context")(Fs);class zs extends Us{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,o){super(!1,e),this.converter=t,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 Ns(null!==(e=null===(t=Is.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")}getMapNow(){return this.cache.getNow("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,o){return this.cache.get("topic-relatives-"+[t,e,...o].join("-"),(()=>this.fetchRelativesForTopicInMap(t,e,o)))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,o){const r=this.getNavigationData(t,e,o),i=this.getReaderLinkPrefix()+(r.prettyUrl?r.prettyUrl:`${r.mapId}/${r.tocId}`),n=new URL(i,this.api.tenantBaseUrl);return null!=r.page&&n.searchParams.set("page",`${r.page}`),r.prettyUrlDuplicated&&n.searchParams.set("tocId",r.tocId),null!=r.section&&n.searchParams.set("section",r.section),n.href}getNavigationData(t,e,o){var r,i;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],c=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(r=null==s?void 0:s.title)&&void 0!==r?r:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=c?c.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(i=null==n?void 0:n.duplicatedPrettyUrls.has(null!=c?c:""))&&void 0!==i&&i,section:o}}async getAccurateNavigationData(t,e,o){return await this.getEnrichedToc(),this.getNavigationData(t,e,o)}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 o;return e?{type:e.topics.type,rating:null===(o=e.topics)||void 0===o?void 0:o.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,o){return this.makeRateTopicRequest(t,e,o).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=Is.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,o){return this.makeTopicFeedbackRequest(t,e,o)}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),o=[{tocId:e.tocId,title:e.title}],r=this.getTocNodeNow(e.parentTocId);for(;r;)o.unshift({tocId:r.tocId,title:r.title}),r=this.getTocNodeNow(r.parentTocId);return o}isFeatureAccessible(e,{session:o,ratingType:r}){var i;if(!this.isFeatureAvailable(e))return!1;switch(e){case t.FtReaderFeatures.FEEDBACK:return Ns(null!=o?o:[],ws.FEEDBACK_USER);case t.FtReaderFeatures.RATING:return Ns(null!=o?o:[],ws.RATING_USER)&&null!=r&&r!==us.NO_RATING;case t.FtReaderFeatures.PRINT:return Ns(null!=o?o:[],ws.PRINT_USER);case t.FtReaderFeatures.BOOKMARK:return!!(null==o?void 0:o.sessionAuthenticated);case t.FtReaderFeatures.COLLECTIONS:return Ns(null!=o?o:[],ws.COLLECTION_USER);case t.FtReaderFeatures.PERSONAL_BOOKS:return Ns(null!=o?o:[],ws.PERSONAL_BOOK_USER)&&!(null===(i=this.getMapNow())||void 0===i?void 0:i.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class Ks extends zs{static async build(t){return new Ks(new is,void 0,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,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,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,o){return this.api.rateTopic(this.mapId,t,e,o)}makeTopicFeedbackRequest(t,e,o){return this.api.sendTopicFeedback(this.mapId,t,e,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class js{static build(t,e){return new js((t=>$a.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:Ks.build)}constructor(t,e){this.store=t,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new eo(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 io((()=>this.service))}async navigateToTopic(t,e,o){const r=await this.awaitService(),i=await(null!=o?r.getPage(o):r.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(i),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,i),section:e})}resolveValidNonRootTocId(t,e){var o,r,i;let n=null!==(o="root"===t?void 0:t)&&void 0!==o?o:e.rootTocId;return e.topics.includes(n)?n:null!==(i=null!==(r=e.topics[0])&&void 0!==r?r:e.hiddenTopics[0])&&void 0!==i?i:"root"}async navigateToPage(t){const e=await this.awaitService();let o=await e.getPage(t);this.store.actions.currentPage(o)}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.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,e,o,r,i;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(e=this.service)||void 0===e?void 0:e.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===(i=this.service)||void 0===i?void 0:i.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))]).then((()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}))}catch(t){!this.errorHandler||t instanceof Ge||this.errorHandler(t)}}fetchRelatives(){var t,e,o;const r=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!==r&&r.length>0&&(null===(e=this.service)||void 0===e||e.getRelativesForDocument(null===(o=this.store.getState().configuration)||void 0===o?void 0:o.relativePivotMetadata,r).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 Qe(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=Is.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,o,r;const i=await io((()=>{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,i,[t]);if(null===(r=null===(o=null===(e=null==s?void 0:s.results)||void 0===e?void 0:e[0])||void 0===o?void 0:o.entries)||void 0===r?void 0:r[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 Hs=ut`
182
+ `;class Zs extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class $s extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Gs extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class Vs extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class qs extends Event{constructor(){super("ft-reader-map-not-found")}}class Ys extends Event{constructor(){super("ft-reader-map-unauthorized")}}class Js extends Event{constructor(){super("ft-reader-map-forbidden")}}class Xs extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}}var Qs=function(t,e,o,r){for(var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r,s=t.length-1;s>=0;s--)(i=t[s])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class tc extends rn{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new eo(5),this.navigationDebouncer=new eo(10),this.mapLoadedEventDebouncer=new eo(50),this.addStore(Is)}render(){return Yt`
183
183
  ${this.importStyleIfNeeded()}
184
184
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
185
185
  `}importStyleIfNeeded(){var t,e;const o=null===(t=this.stateManager.service)||void 0===t?void 0:t.themeStylesheet();return!o||window.location.href.startsWith(null!==(e=this.baseUrl)&&void 0!==e?e:"")?Qt:Yt`
186
186
  <style>
187
187
  @import "${o}"
188
188
  </style>
189
- `}get stateManager(){return null==this._stateManager&&(this._stateManager=Ks.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.sendLoadedEventIfLoaded(),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 $s(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 Zs(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 Js),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 qs):403===e.status?this.dispatchEvent(new Ys):404===e.status?this.dispatchEvent(new Vs):this.dispatchEvent(new Gs(t))}reloadBookmarks(){Ds.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"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run((()=>{this.map&&this.toc&&this.dispatchEvent(new Hs(this.map,this.toc))}))}}var tc;Qs.styles=js,Xs([Gi({store:Rs.name})],Qs.prototype,"baseUrl",void 0),Xs([Se()],Qs.prototype,"mapId",void 0),Xs([Se()],Qs.prototype,"tocId",void 0),Xs([Se()],Qs.prototype,"section",void 0),Xs([Se()],Qs.prototype,"topicPivot",void 0),Xs([Se()],Qs.prototype,"searchInDocumentQuery",void 0),Xs([Se({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:tc}})],Qs.prototype,"page",void 0),Xs([Gi({store:"reader"})],Qs.prototype,"map",void 0),Xs([Gi({store:"reader"})],Qs.prototype,"toc",void 0),Xs([Gi({store:"reader"})],Qs.prototype,"visibleTopics",void 0),Xs([Gi({store:"reader"})],Qs.prototype,"currentPage",void 0),Xs([Gi({store:"reader"})],Qs.prototype,"scrollTarget",void 0),Xs([Se({attribute:!1})],Qs.prototype,"readerServiceProvider",void 0),co("ft-reader-context")(Qs),t.ForbiddenErrorEvent=Ys,t.FtOfficialReaderService=zs,t.FtReaderContext=Qs,t.FtReaderContextCssVariables={},t.FtReaderConverter=rs,t.FtReaderService=Ms,t.LoadErrorEvent=Gs,t.MapLoadedEvent=Hs,t.NavigationDoneEvent=$s,t.NotFoundErrorEvent=Vs,t.TopicRelativeNotFoundEvent=Js,t.UnauthorizedErrorEvent=qs,t.VisibleTopicsChangeEvent=Zs,t.styles=js}({});
189
+ `}get stateManager(){return null==this._stateManager&&(this._stateManager=js.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.sendLoadedEventIfLoaded(),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 Gs(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 $s(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 Xs),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 Ys):403===e.status?this.dispatchEvent(new Js):404===e.status?this.dispatchEvent(new qs):this.dispatchEvent(new Vs(t))}reloadBookmarks(){Ms.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"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run((()=>{this.map&&this.toc&&this.dispatchEvent(new Zs(this.map,this.toc))}))}}var ec;tc.styles=Hs,Qs([Vi({store:Is.name})],tc.prototype,"baseUrl",void 0),Qs([we()],tc.prototype,"mapId",void 0),Qs([we()],tc.prototype,"tocId",void 0),Qs([we()],tc.prototype,"section",void 0),Qs([we()],tc.prototype,"topicPivot",void 0),Qs([we()],tc.prototype,"searchInDocumentQuery",void 0),Qs([we({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:ec}})],tc.prototype,"page",void 0),Qs([Vi({store:"reader"})],tc.prototype,"map",void 0),Qs([Vi({store:"reader"})],tc.prototype,"toc",void 0),Qs([Vi({store:"reader"})],tc.prototype,"visibleTopics",void 0),Qs([Vi({store:"reader"})],tc.prototype,"currentPage",void 0),Qs([Vi({store:"reader"})],tc.prototype,"scrollTarget",void 0),Qs([we({attribute:!1})],tc.prototype,"readerServiceProvider",void 0),co("ft-reader-context")(tc),t.ForbiddenErrorEvent=Js,t.FtOfficialReaderService=Ks,t.FtReaderContext=tc,t.FtReaderContextCssVariables={},t.FtReaderConverter=is,t.FtReaderService=zs,t.LoadErrorEvent=Vs,t.MapLoadedEvent=Zs,t.NavigationDoneEvent=Gs,t.NotFoundErrorEvent=qs,t.TopicRelativeNotFoundEvent=Xs,t.UnauthorizedErrorEvent=Ys,t.VisibleTopicsChangeEvent=$s,t.styles=Hs}({});