@fluid-topics/ft-reader-search-in-document 2.1.7 → 2.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- "use strict";(()=>{var x0=Object.defineProperty;var u=(r,e,t)=>()=>{if(t)throw t[0];try{return r&&(e=r(r=0)),e}catch(o){throw t=[o],o}};var q=(r,e)=>{for(var t in e)x0(r,t,{get:e[t],enumerable:!0})};var gp=u(()=>{if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=window.customElements.get,o=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(E,C){if(E=E.toLowerCase(),this._getDefinition(E)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${E}" has already been used with this registry`);if(this._definitionsByClass.get(C)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let L=C.prototype.attributeChangedCallback,D=new Set(C.observedAttributes||[]);y(C,D,L);let X={elementClass:C,connectedCallback:C.prototype.connectedCallback,disconnectedCallback:C.prototype.disconnectedCallback,adoptedCallback:C.prototype.adoptedCallback,attributeChangedCallback:L,formAssociated:C.formAssociated,formAssociatedCallback:C.prototype.formAssociatedCallback,formDisabledCallback:C.prototype.formDisabledCallback,formResetCallback:C.prototype.formResetCallback,formStateRestoreCallback:C.prototype.formStateRestoreCallback,observedAttributes:D};this._definitionsByTag.set(E,X),this._definitionsByClass.set(C,X);let _e=t.call(o,E);_e||(_e=g(E),e.call(o,E,_e)),this===window.customElements&&(s.set(C,X),X.standInClass=_e);let se=this._awaitingUpgrade.get(E);if(se){this._awaitingUpgrade.delete(E);for(let G of se)a.delete(G),v(G,X,!0)}let z=this._whenDefinedPromises.get(E);return z!==void 0&&(z.resolve(C),this._whenDefinedPromises.delete(E)),C}upgrade(){_.push(this),o.upgrade.apply(o,arguments),_.pop()}get(E){return this._definitionsByTag.get(E)?.elementClass}_getDefinition(E){return this._definitionsByTag.get(E)}whenDefined(E){let C=this._getDefinition(E);if(C!==void 0)return Promise.resolve(C.elementClass);let L=this._whenDefinedPromises.get(E);return L===void 0&&(L={},L.promise=new Promise(D=>L.resolve=D),this._whenDefinedPromises.set(E,L)),L.promise}_upgradeWhenDefined(E,C,L){let D=this._awaitingUpgrade.get(C);D||this._awaitingUpgrade.set(C,D=new Set),L?D.add(E):D.delete(E)}};let d;window.HTMLElement=function(){let C=d;if(C)return d=void 0,C;let L=s.get(this.constructor);if(!L)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return C=Reflect.construct(r,[],L.standInClass),Object.setPrototypeOf(C,this.constructor.prototype),n.set(C,L),C},window.HTMLElement.prototype=r.prototype;let f=E=>E===document||E instanceof ShadowRoot,m=E=>{let C=E.getRootNode();if(!f(C)){let L=_[_.length-1];if(L instanceof CustomElementRegistry)return L;C=L.getRootNode(),f(C)||(C=l.get(C)?.getRootNode()||document)}return C.customElements},g=E=>class{static get formAssociated(){return!0}constructor(){let L=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(L,HTMLElement.prototype);let D=m(L)||window.customElements,X=D._getDefinition(E);return X?v(L,X):a.set(L,D),L}connectedCallback(){let L=n.get(this);L?L.connectedCallback&&L.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,E,!0)}disconnectedCallback(){let L=n.get(this);L?L.disconnectedCallback&&L.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,E,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let L=n.get(this);L&&L.formAssociated&&L?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let L=n.get(this);L?.formAssociated&&L?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let L=n.get(this);L?.formAssociated&&L?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let L=n.get(this);L?.formAssociated&&L?.formStateRestoreCallback?.apply(this,arguments)}},y=(E,C,L)=>{if(C.size===0||L===void 0)return;let D=E.prototype.setAttribute;D&&(E.prototype.setAttribute=function(se,z){let G=se.toLowerCase();if(C.has(G)){let ae=this.getAttribute(G);D.call(this,G,z),L.call(this,G,ae,z)}else D.call(this,G,z)});let X=E.prototype.removeAttribute;X&&(E.prototype.removeAttribute=function(se){let z=se.toLowerCase();if(C.has(z)){let G=this.getAttribute(z);X.call(this,z),L.call(this,z,G,null)}else X.call(this,z)});let _e=E.prototype.toggleAttribute;_e&&(E.prototype.toggleAttribute=function(se,z){let G=se.toLowerCase();if(C.has(G)){let ae=this.getAttribute(G);_e.call(this,G,z);let $e=this.getAttribute(G);L.call(this,G,ae,$e)}else _e.call(this,G,z)})},x=E=>{let C=Object.getPrototypeOf(E);if(C!==window.HTMLElement)return C===r?Object.setPrototypeOf(E,window.HTMLElement):x(C)},v=(E,C,L=!1)=>{Object.setPrototypeOf(E,C.elementClass.prototype),n.set(E,C),d=E;try{new C.elementClass}catch{x(C.elementClass),new C.elementClass}C.attributeChangedCallback&&C.observedAttributes.forEach(D=>{E.hasAttribute(D)&&C.attributeChangedCallback.call(E,D,null,E.getAttribute(D))}),L&&C.connectedCallback&&E.isConnected&&C.connectedCallback.call(E)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(E){let C=w.apply(this,arguments);return E.customElements&&(C.customElements=E.customElements),C};let _=[document],P=(E,C,L=void 0)=>{let D=(L?Object.getPrototypeOf(L):E.prototype)[C];E.prototype[C]=function(){_.push(this);let X=D.apply(L||this,arguments);return X!==void 0&&l.set(X,this),_.pop(),X}};P(ShadowRoot,"createElement",document),P(ShadowRoot,"importNode",document),P(Element,"insertAdjacentHTML");let $=(E,C)=>{let L=Object.getOwnPropertyDescriptor(E.prototype,C);Object.defineProperty(E.prototype,C,{...L,set(D){_.push(this),L.set.call(this,D),_.pop()}})};if($(Element,"innerHTML"),$(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let E=new WeakMap,C=HTMLElement.prototype.attachInternals,L=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...se){let z=C.call(this,...se);return E.set(z,this),z},L.forEach(se=>{let z=window.ElementInternals.prototype,G=z[se];z[se]=function(...ae){let $e=E.get(this);if(n.get($e).formAssociated===!0)return G?.call(this,...ae);throw new DOMException(`Failed to execute ${G} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class D extends Array{constructor(z){super(...z),this._elements=z}get value(){return this._elements.find(z=>z.checked===!0)?.value||""}}class X{constructor(z){let G=new Map;z.forEach((ae,$e)=>{let Es=ae.getAttribute("name"),mp=G.get(Es)||[];this[+$e]=ae,mp.push(ae),G.set(Es,mp)}),this.length=z.length,G.forEach((ae,$e)=>{ae&&(ae.length===1?this[$e]=ae[0]:this[$e]=new D(ae))})}namedItem(z){return this[z]}}let _e=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let se=_e.get.call(this,[]),z=[];for(let G of se){let ae=n.get(G);(!ae||ae.formAssociated===!0)&&z.push(G)}return new X(z)}})}}});var yp=u(()=>{"use strict";gp();try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,o,n)=>{var a;if(o!==null)try{e.bind(window.customElements)(t,o,n)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(t,class extends o{},n):console.info(t,o,n,s)}}}});var Un,Ui,ws,bp,zo,eo,R,zi,zn,Hn=u(()=>{Un=globalThis,Ui=Un.ShadowRoot&&(Un.ShadyCSS===void 0||Un.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ws=Symbol(),bp=new WeakMap,zo=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==ws)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Ui&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=bp.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&bp.set(t,e))}return e}toString(){return this.cssText}},eo=r=>new zo(typeof r=="string"?r:r+"",void 0,ws),R=(r,...e)=>{let t=r.length===1?r[0]:e.reduce(((o,n,a)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[a+1]),r[0]);return new zo(t,r,ws)},zi=(r,e)=>{if(Ui)r.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(let t of e){let o=document.createElement("style"),n=Un.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)}},zn=Ui?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return eo(t)})(r):r});var S0,C0,O0,E0,w0,R0,Vn,vp,A0,L0,Hi,Ho,Vi,xp,At,Vo=u(()=>{Hn();Hn();({is:S0,defineProperty:C0,getOwnPropertyDescriptor:O0,getOwnPropertyNames:E0,getOwnPropertySymbols:w0,getPrototypeOf:R0}=Object),Vn=globalThis,vp=Vn.trustedTypes,A0=vp?vp.emptyScript:"",L0=Vn.reactiveElementPolyfillSupport,Hi=(r,e)=>r,Ho={toAttribute(r,e){switch(e){case Boolean:r=r?A0:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Vi=(r,e)=>!S0(r,e),xp={attribute:!0,type:String,converter:Ho,reflect:!1,useDefault:!1,hasChanged:Vi};Symbol.metadata??=Symbol("metadata"),Vn.litPropertyMetadata??=new WeakMap;At=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=xp){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,t);n!==void 0&&C0(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:a}=O0(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??xp}static _$Ei(){if(this.hasOwnProperty(Hi("elementProperties")))return;let e=R0(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Hi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Hi("properties"))){let t=this.properties,o=[...E0(t),...w0(t)];for(let n of o)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,n]of t)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let n=this._$Eu(t,o);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)t.unshift(zn(n))}else e!==void 0&&t.push(zn(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return zi(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$ET(e,t){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Ho).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Ho;this._$Em=n,this[n]=s.fromAttribute(t,a.type)??this._$Ej?.get(n)??null,this._$Em=null}}requestUpdate(e,t,o){if(e!==void 0){let n=this.constructor,a=this[e];if(o??=n.getPropertyOptions(e),!((o.hasChanged??Vi)(a,t)||o.useDefault&&o.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,o))))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:o,reflect:n,wrapped:a},s){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??t??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(t=void 0),this._$AL.set(e,t)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((o=>o.hostUpdate?.())),this.update(t)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};At.elementStyles=[],At.shadowRootOptions={mode:"open"},At[Hi("elementProperties")]=new Map,At[Hi("finalized")]=new Map,L0?.({ReactiveElement:At}),(Vn.reactiveElementVersions??=[]).push("2.1.0")});function kp(r,e){if(!Ts(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Sp!==void 0?Sp.createHTML(e):e}function io(r,e,t=r,o){if(e===De)return e;let n=o!==void 0?t._$Co?.[o]:t._$Cl,a=Gi(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=n:t._$Cl=n),n!==void 0&&(e=io(r,n._$AS(r,e.values),n,o)),e}var As,Wn,Sp,Ls,mr,ks,k0,oo,ji,Gi,Ts,Ap,Rs,Wi,Cp,Op,to,Ep,wp,Lp,_s,b,Is,Ps,De,k,Rp,ro,Tp,Ki,jn,Wo,no,Gn,Kn,qn,Zn,Ns,T0,$s,Lt=u(()=>{As=globalThis,Wn=As.trustedTypes,Sp=Wn?Wn.createPolicy("lit-html",{createHTML:r=>r}):void 0,Ls="$lit$",mr=`lit$${Math.random().toFixed(9).slice(2)}$`,ks="?"+mr,k0=`<${ks}>`,oo=document,ji=()=>oo.createComment(""),Gi=r=>r===null||typeof r!="object"&&typeof r!="function",Ts=Array.isArray,Ap=r=>Ts(r)||typeof r?.[Symbol.iterator]=="function",Rs=`[
1
+ "use strict";(()=>{var x0=Object.defineProperty;var u=(r,e,t)=>()=>{if(t)throw t[0];try{return r&&(e=r(r=0)),e}catch(o){throw t=[o],o}};var q=(r,e)=>{for(var t in e)x0(r,t,{get:e[t],enumerable:!0})};var gp=u(()=>{if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=window.customElements.get,o=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(E,C){if(E=E.toLowerCase(),this._getDefinition(E)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${E}" has already been used with this registry`);if(this._definitionsByClass.get(C)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let L=C.prototype.attributeChangedCallback,D=new Set(C.observedAttributes||[]);y(C,D,L);let X={elementClass:C,connectedCallback:C.prototype.connectedCallback,disconnectedCallback:C.prototype.disconnectedCallback,adoptedCallback:C.prototype.adoptedCallback,attributeChangedCallback:L,formAssociated:C.formAssociated,formAssociatedCallback:C.prototype.formAssociatedCallback,formDisabledCallback:C.prototype.formDisabledCallback,formResetCallback:C.prototype.formResetCallback,formStateRestoreCallback:C.prototype.formStateRestoreCallback,observedAttributes:D};this._definitionsByTag.set(E,X),this._definitionsByClass.set(C,X);let _e=t.call(o,E);_e||(_e=g(E),e.call(o,E,_e)),this===window.customElements&&(s.set(C,X),X.standInClass=_e);let le=this._awaitingUpgrade.get(E);if(le){this._awaitingUpgrade.delete(E);for(let G of le)a.delete(G),v(G,X,!0)}let z=this._whenDefinedPromises.get(E);return z!==void 0&&(z.resolve(C),this._whenDefinedPromises.delete(E)),C}upgrade(){_.push(this),o.upgrade.apply(o,arguments),_.pop()}get(E){return this._definitionsByTag.get(E)?.elementClass}_getDefinition(E){return this._definitionsByTag.get(E)}whenDefined(E){let C=this._getDefinition(E);if(C!==void 0)return Promise.resolve(C.elementClass);let L=this._whenDefinedPromises.get(E);return L===void 0&&(L={},L.promise=new Promise(D=>L.resolve=D),this._whenDefinedPromises.set(E,L)),L.promise}_upgradeWhenDefined(E,C,L){let D=this._awaitingUpgrade.get(C);D||this._awaitingUpgrade.set(C,D=new Set),L?D.add(E):D.delete(E)}};let d;window.HTMLElement=function(){let C=d;if(C)return d=void 0,C;let L=s.get(this.constructor);if(!L)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return C=Reflect.construct(r,[],L.standInClass),Object.setPrototypeOf(C,this.constructor.prototype),n.set(C,L),C},window.HTMLElement.prototype=r.prototype;let f=E=>E===document||E instanceof ShadowRoot,m=E=>{let C=E.getRootNode();if(!f(C)){let L=_[_.length-1];if(L instanceof CustomElementRegistry)return L;C=L.getRootNode(),f(C)||(C=l.get(C)?.getRootNode()||document)}return C.customElements},g=E=>class{static get formAssociated(){return!0}constructor(){let L=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(L,HTMLElement.prototype);let D=m(L)||window.customElements,X=D._getDefinition(E);return X?v(L,X):a.set(L,D),L}connectedCallback(){let L=n.get(this);L?L.connectedCallback&&L.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,E,!0)}disconnectedCallback(){let L=n.get(this);L?L.disconnectedCallback&&L.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,E,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let L=n.get(this);L&&L.formAssociated&&L?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let L=n.get(this);L?.formAssociated&&L?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let L=n.get(this);L?.formAssociated&&L?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let L=n.get(this);L?.formAssociated&&L?.formStateRestoreCallback?.apply(this,arguments)}},y=(E,C,L)=>{if(C.size===0||L===void 0)return;let D=E.prototype.setAttribute;D&&(E.prototype.setAttribute=function(le,z){let G=le.toLowerCase();if(C.has(G)){let se=this.getAttribute(G);D.call(this,G,z),L.call(this,G,se,z)}else D.call(this,G,z)});let X=E.prototype.removeAttribute;X&&(E.prototype.removeAttribute=function(le){let z=le.toLowerCase();if(C.has(z)){let G=this.getAttribute(z);X.call(this,z),L.call(this,z,G,null)}else X.call(this,z)});let _e=E.prototype.toggleAttribute;_e&&(E.prototype.toggleAttribute=function(le,z){let G=le.toLowerCase();if(C.has(G)){let se=this.getAttribute(G);_e.call(this,G,z);let $e=this.getAttribute(G);L.call(this,G,se,$e)}else _e.call(this,G,z)})},x=E=>{let C=Object.getPrototypeOf(E);if(C!==window.HTMLElement)return C===r?Object.setPrototypeOf(E,window.HTMLElement):x(C)},v=(E,C,L=!1)=>{Object.setPrototypeOf(E,C.elementClass.prototype),n.set(E,C),d=E;try{new C.elementClass}catch{x(C.elementClass),new C.elementClass}C.attributeChangedCallback&&C.observedAttributes.forEach(D=>{E.hasAttribute(D)&&C.attributeChangedCallback.call(E,D,null,E.getAttribute(D))}),L&&C.connectedCallback&&E.isConnected&&C.connectedCallback.call(E)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(E){let C=w.apply(this,arguments);return E.customElements&&(C.customElements=E.customElements),C};let _=[document],P=(E,C,L=void 0)=>{let D=(L?Object.getPrototypeOf(L):E.prototype)[C];E.prototype[C]=function(){_.push(this);let X=D.apply(L||this,arguments);return X!==void 0&&l.set(X,this),_.pop(),X}};P(ShadowRoot,"createElement",document),P(ShadowRoot,"importNode",document),P(Element,"insertAdjacentHTML");let $=(E,C)=>{let L=Object.getOwnPropertyDescriptor(E.prototype,C);Object.defineProperty(E.prototype,C,{...L,set(D){_.push(this),L.set.call(this,D),_.pop()}})};if($(Element,"innerHTML"),$(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let E=new WeakMap,C=HTMLElement.prototype.attachInternals,L=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...le){let z=C.call(this,...le);return E.set(z,this),z},L.forEach(le=>{let z=window.ElementInternals.prototype,G=z[le];z[le]=function(...se){let $e=E.get(this);if(n.get($e).formAssociated===!0)return G?.call(this,...se);throw new DOMException(`Failed to execute ${G} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class D extends Array{constructor(z){super(...z),this._elements=z}get value(){return this._elements.find(z=>z.checked===!0)?.value||""}}class X{constructor(z){let G=new Map;z.forEach((se,$e)=>{let Es=se.getAttribute("name"),mp=G.get(Es)||[];this[+$e]=se,mp.push(se),G.set(Es,mp)}),this.length=z.length,G.forEach((se,$e)=>{se&&(se.length===1?this[$e]=se[0]:this[$e]=new D(se))})}namedItem(z){return this[z]}}let _e=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let le=_e.get.call(this,[]),z=[];for(let G of le){let se=n.get(G);(!se||se.formAssociated===!0)&&z.push(G)}return new X(z)}})}}});var yp=u(()=>{"use strict";gp();try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,o,n)=>{var a;if(o!==null)try{e.bind(window.customElements)(t,o,n)}catch(s){!((a=s.message)===null||a===void 0)&&a.includes("this constructor has already been used")?window.customElements.define(t,class extends o{},n):console.info(t,o,n,s)}}}});var Un,Ui,ws,bp,zo,eo,R,zi,zn,Hn=u(()=>{Un=globalThis,Ui=Un.ShadowRoot&&(Un.ShadyCSS===void 0||Un.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ws=Symbol(),bp=new WeakMap,zo=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==ws)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Ui&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=bp.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&bp.set(t,e))}return e}toString(){return this.cssText}},eo=r=>new zo(typeof r=="string"?r:r+"",void 0,ws),R=(r,...e)=>{let t=r.length===1?r[0]:e.reduce(((o,n,a)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[a+1]),r[0]);return new zo(t,r,ws)},zi=(r,e)=>{if(Ui)r.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(let t of e){let o=document.createElement("style"),n=Un.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)}},zn=Ui?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return eo(t)})(r):r});var S0,C0,O0,E0,w0,R0,Vn,vp,A0,L0,Hi,Ho,Vi,xp,At,Vo=u(()=>{Hn();Hn();({is:S0,defineProperty:C0,getOwnPropertyDescriptor:O0,getOwnPropertyNames:E0,getOwnPropertySymbols:w0,getPrototypeOf:R0}=Object),Vn=globalThis,vp=Vn.trustedTypes,A0=vp?vp.emptyScript:"",L0=Vn.reactiveElementPolyfillSupport,Hi=(r,e)=>r,Ho={toAttribute(r,e){switch(e){case Boolean:r=r?A0:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Vi=(r,e)=>!S0(r,e),xp={attribute:!0,type:String,converter:Ho,reflect:!1,useDefault:!1,hasChanged:Vi};Symbol.metadata??=Symbol("metadata"),Vn.litPropertyMetadata??=new WeakMap;At=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=xp){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,t);n!==void 0&&C0(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:a}=O0(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??xp}static _$Ei(){if(this.hasOwnProperty(Hi("elementProperties")))return;let e=R0(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Hi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Hi("properties"))){let t=this.properties,o=[...E0(t),...w0(t)];for(let n of o)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,n]of t)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let n=this._$Eu(t,o);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)t.unshift(zn(n))}else e!==void 0&&t.push(zn(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((e=>this.enableUpdating=e)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((e=>e(this)))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return zi(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((e=>e.hostConnected?.()))}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach((e=>e.hostDisconnected?.()))}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$ET(e,t){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Ho).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Ho;this._$Em=n,this[n]=s.fromAttribute(t,a.type)??this._$Ej?.get(n)??null,this._$Em=null}}requestUpdate(e,t,o){if(e!==void 0){let n=this.constructor,a=this[e];if(o??=n.getPropertyOptions(e),!((o.hasChanged??Vi)(a,t)||o.useDefault&&o.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,o))))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:o,reflect:n,wrapped:a},s){o&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,s??t??this[e]),a!==!0||s!==void 0)||(this._$AL.has(e)||(this.hasUpdated||o||(t=void 0),this._$AL.set(e,t)),n===!0&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o){let{wrapped:s}=a,l=this[n];s!==!0||this._$AL.has(n)||l===void 0||this.C(n,void 0,a,l)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach((o=>o.hostUpdate?.())),this.update(t)):this._$EM()}catch(o){throw e=!1,this._$EM(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}};At.elementStyles=[],At.shadowRootOptions={mode:"open"},At[Hi("elementProperties")]=new Map,At[Hi("finalized")]=new Map,L0?.({ReactiveElement:At}),(Vn.reactiveElementVersions??=[]).push("2.1.0")});function kp(r,e){if(!Ts(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Sp!==void 0?Sp.createHTML(e):e}function io(r,e,t=r,o){if(e===De)return e;let n=o!==void 0?t._$Co?.[o]:t._$Cl,a=Gi(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=n:t._$Cl=n),n!==void 0&&(e=io(r,n._$AS(r,e.values),n,o)),e}var As,Wn,Sp,Ls,mr,ks,k0,oo,ji,Gi,Ts,Ap,Rs,Wi,Cp,Op,to,Ep,wp,Lp,_s,b,Is,Ps,De,k,Rp,ro,Tp,Ki,jn,Wo,no,Gn,Kn,qn,Zn,Ns,T0,$s,Lt=u(()=>{As=globalThis,Wn=As.trustedTypes,Sp=Wn?Wn.createPolicy("lit-html",{createHTML:r=>r}):void 0,Ls="$lit$",mr=`lit$${Math.random().toFixed(9).slice(2)}$`,ks="?"+mr,k0=`<${ks}>`,oo=document,ji=()=>oo.createComment(""),Gi=r=>r===null||typeof r!="object"&&typeof r!="function",Ts=Array.isArray,Ap=r=>Ts(r)||typeof r?.[Symbol.iterator]=="function",Rs=`[
2
2
  \f\r]`,Wi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Cp=/-->/g,Op=/>/g,to=RegExp(`>|${Rs}(?:([^\\s"'>=/]+)(${Rs}*=${Rs}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ep=/'/g,wp=/"/g,Lp=/^(?:script|style|textarea|title)$/i,_s=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),b=_s(1),Is=_s(2),Ps=_s(3),De=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),Rp=new WeakMap,ro=oo.createTreeWalker(oo,129);Tp=(r,e)=>{let t=r.length-1,o=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=Wi;for(let l=0;l<t;l++){let d=r[l],f,m,g=-1,y=0;for(;y<d.length&&(s.lastIndex=y,m=s.exec(d),m!==null);)y=s.lastIndex,s===Wi?m[1]==="!--"?s=Cp:m[1]!==void 0?s=Op:m[2]!==void 0?(Lp.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=to):m[3]!==void 0&&(s=to):s===to?m[0]===">"?(s=n??Wi,g=-1):m[1]===void 0?g=-2:(g=s.lastIndex-m[2].length,f=m[1],s=m[3]===void 0?to:m[3]==='"'?wp:Ep):s===wp||s===Ep?s=to:s===Cp||s===Op?s=Wi:(s=to,n=void 0);let x=s===to&&r[l+1].startsWith("/>")?" ":"";a+=s===Wi?d+k0:g>=0?(o.push(f),d.slice(0,g)+Ls+d.slice(g)+mr+x):d+mr+(g===-2?l:x)}return[kp(r,a+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},Ki=class r{constructor({strings:e,_$litType$:t},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[f,m]=Tp(e,t);if(this.el=r.createElement(f,o),ro.currentNode=this.el.content,t===2||t===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(n=ro.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let g of n.getAttributeNames())if(g.endsWith(Ls)){let y=m[s++],x=n.getAttribute(g).split(mr),v=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:v[2],strings:x,ctor:v[1]==="."?Gn:v[1]==="?"?Kn:v[1]==="@"?qn:no}),n.removeAttribute(g)}else g.startsWith(mr)&&(d.push({type:6,index:a}),n.removeAttribute(g));if(Lp.test(n.tagName)){let g=n.textContent.split(mr),y=g.length-1;if(y>0){n.textContent=Wn?Wn.emptyScript:"";for(let x=0;x<y;x++)n.append(g[x],ji()),ro.nextNode(),d.push({type:2,index:++a});n.append(g[y],ji())}}}else if(n.nodeType===8)if(n.data===ks)d.push({type:2,index:a});else{let g=-1;for(;(g=n.data.indexOf(mr,g+1))!==-1;)d.push({type:7,index:a}),g+=mr.length-1}a++}}static createElement(e,t){let o=oo.createElement("template");return o.innerHTML=e,o}};jn=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,n=(e?.creationScope??oo).importNode(t,!0);ro.currentNode=n;let a=ro.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let f;d.type===2?f=new Wo(a,a.nextSibling,this,e):d.type===1?f=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(f=new Zn(a,this,e)),this._$AV.push(f),d=o[++l]}s!==d?.index&&(a=ro.nextNode(),s++)}return ro.currentNode=oo,n}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},Wo=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,n){this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=io(this,e,t),Gi(e)?e===k||e==null||e===""?(this._$AH!==k&&this._$AR(),this._$AH=k):e!==this._$AH&&e!==De&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ap(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==k&&Gi(this._$AH)?this._$AA.nextSibling.data=e:this.T(oo.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Ki.createElement(kp(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new jn(n,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(e){let t=Rp.get(e.strings);return t===void 0&&Rp.set(e.strings,t=new Ki(e)),t}k(e){Ts(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let a of e)n===t.length?t.push(o=new r(this.O(ji()),this.O(ji()),this,this.options)):o=t[n],o._$AI(a),n++;n<t.length&&(this._$AR(o&&o._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},no=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,n,a){this.type=1,this._$AH=k,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=k}_$AI(e,t=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=io(this,e,t,0),s=!Gi(e)||e!==this._$AH&&e!==De,s&&(this._$AH=e);else{let l=e,d,f;for(e=a[0],d=0;d<a.length-1;d++)f=io(this,l[o+d],t,d),f===De&&(f=this._$AH[d]),s||=!Gi(f)||f!==this._$AH[d],f===k?e=k:e!==k&&(e+=(f??"")+a[d+1]),this._$AH[d]=f}s&&!n&&this.j(e)}j(e){e===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Gn=class extends no{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===k?void 0:e}},Kn=class extends no{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==k)}},qn=class extends no{constructor(e,t,o,n,a){super(e,t,o,n,a),this.type=5}_$AI(e,t=this){if((e=io(this,e,t,0)??k)===De)return;let o=this._$AH,n=e===k&&o!==k||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==k&&(o===k||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Zn=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){io(this,e)}},Ns={M:Ls,P:mr,A:ks,C:1,L:Tp,R:jn,D:Ap,V:io,I:Wo,H:no,N:Kn,U:qn,B:Gn,F:Zn},T0=As.litHtmlPolyfillSupport;T0?.(Ki,Wo),(As.litHtmlVersions??=[]).push("3.3.0");$s=(r,e,t)=>{let o=t?.renderBefore??e,n=o._$litPart$;if(n===void 0){let a=t?.renderBefore??null;o._$litPart$=n=new Wo(e.insertBefore(ji(),a),a,void 0,t??{})}return n._$AI(r),n}});var Ds,kt,_0,_p,Ms=u(()=>{Vo();Vo();Lt();Lt();Ds=globalThis,kt=class extends At{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=$s(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return De}};kt._$litElement$=!0,kt.finalized=!0,Ds.litElementHydrateSupport?.({LitElement:kt});_0=Ds.litElementPolyfillSupport;_0?.({LitElement:kt});_p={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(Ds.litElementVersions??=[]).push("4.2.0")});var HO,Ip=u(()=>{HO=!1});var Fs={};q(Fs,{CSSResult:()=>zo,LitElement:()=>kt,ReactiveElement:()=>At,_$LE:()=>_p,_$LH:()=>Ns,adoptStyles:()=>zi,css:()=>R,defaultConverter:()=>Ho,getCompatibleStyle:()=>zn,html:()=>b,isServer:()=>HO,mathml:()=>Ps,noChange:()=>De,notEqual:()=>Vi,nothing:()=>k,render:()=>$s,supportsAdoptingStyleSheets:()=>Ui,svg:()=>Is,unsafeCSS:()=>eo});var T=u(()=>{Vo();Lt();Ms();Ip()});var I0,Pp=u(()=>{I0=r=>(e,t)=>{t!==void 0?t.addInitializer((()=>{customElements.define(r,e)})):customElements.define(r,e)}});function h(r){return(e,t)=>typeof t=="object"?Np(r,e,t):((o,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,o),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,e,t)}var P0,Np,Bs=u(()=>{Vo();P0={attribute:!0,type:String,converter:Ho,reflect:!1,hasChanged:Vi},Np=(r=P0,e,t)=>{let{kind:o,metadata:n}=t,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),o==="setter"&&((r=Object.create(r)).wrapped=!0),a.set(t.name,r),o==="accessor"){let{name:s}=t;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,r)},init(l){return l!==void 0&&this.C(s,void 0,r,l),l}}}if(o==="setter"){let{name:s}=t;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,r)}}throw Error("Unsupported decorator location: "+o)}});function I(r){return h({...r,state:!0,attribute:!1})}var $p=u(()=>{Bs();});function N0(r){return(e,t)=>{let o=typeof e=="function"?e:e[t];Object.assign(o,r)}}var Dp=u(()=>{});var zt,jo=u(()=>{zt=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t)});function B(r,e){return(t,o,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:l}=typeof o=="object"?t:n??(()=>{let d=Symbol();return{get(){return this[d]},set(f){this[d]=f}}})();return zt(t,o,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return zt(t,o,{get(){return a(this)}})}}var Mp=u(()=>{jo();});function Us(r){return(e,t)=>zt(e,t,{get(){return(this.renderRoot??($0??=document.createDocumentFragment())).querySelectorAll(r)}})}var $0,Fp=u(()=>{jo();});function D0(r){return(e,t)=>zt(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}var Bp=u(()=>{jo();});function zs(r){return(e,t)=>{let{slot:o,selector:n}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return zt(e,t,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter((d=>d.matches(n)))}})}}var Up=u(()=>{jo();});function Hs(r){return(e,t)=>{let{slot:o}=r??{},n="slot"+(o?`[name=${o}]`:":not([name])");return zt(e,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var zp=u(()=>{jo();});var Vs={};q(Vs,{customElement:()=>I0,eventOptions:()=>N0,property:()=>h,query:()=>B,queryAll:()=>Us,queryAssignedElements:()=>zs,queryAssignedNodes:()=>Hs,queryAsync:()=>D0,standardProperty:()=>Np,state:()=>I});var K=u(()=>{Pp();Bs();$p();Dp();Mp();Fp();Bp();Up();zp()});var Xt,mt,Tt,ao=u(()=>{Xt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},mt=r=>(...e)=>({_$litDirective$:r,values:e}),Tt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}});var M0,Vp,Hp,Go,Tr,F0,Wp,jp,Qn,Ws=u(()=>{Lt();({I:M0}=Ns),Vp=r=>r.strings===void 0,Hp=()=>document.createComment(""),Go=(r,e,t)=>{let o=r._$AA.parentNode,n=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=o.insertBefore(Hp(),n),s=o.insertBefore(Hp(),n);t=new M0(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==r;if(l){let d;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(d=r._$AU)!==s._$AU&&t._$AP(d)}if(a!==n||l){let d=t._$AA;for(;d!==a;){let f=d.nextSibling;o.insertBefore(d,n),d=f}}}return t},Tr=(r,e,t=r)=>(r._$AI(e,t),r),F0={},Wp=(r,e=F0)=>r._$AH=e,jp=r=>r._$AH,Qn=r=>{r._$AP?.(!1,!0);let e=r._$AA,t=r._$AB.nextSibling;for(;e!==t;){let o=e.nextSibling;e.remove(),e=o}}});var Gp,ge,Kp=u(()=>{Lt();ao();Ws();Gp=(r,e,t)=>{let o=new Map;for(let n=e;n<=t;n++)o.set(r[n],n);return o},ge=mt(class extends Tt{constructor(r){if(super(r),r.type!==Xt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,e,t){let o;t===void 0?t=e:e!==void 0&&(o=e);let n=[],a=[],s=0;for(let l of r)n[s]=o?o(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:n}}render(r,e,t){return this.dt(r,e,t).values}update(r,[e,t,o]){let n=jp(r),{values:a,keys:s}=this.dt(e,t,o);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],f,m,g=0,y=n.length-1,x=0,v=a.length-1;for(;g<=y&&x<=v;)if(n[g]===null)g++;else if(n[y]===null)y--;else if(l[g]===s[x])d[x]=Tr(n[g],a[x]),g++,x++;else if(l[y]===s[v])d[v]=Tr(n[y],a[v]),y--,v--;else if(l[g]===s[v])d[v]=Tr(n[g],a[v]),Go(r,d[v+1],n[g]),g++,v--;else if(l[y]===s[x])d[x]=Tr(n[y],a[x]),Go(r,n[g],n[y]),y--,x++;else if(f===void 0&&(f=Gp(s,x,v),m=Gp(l,g,y)),f.has(l[g]))if(f.has(l[y])){let w=m.get(s[x]),_=w!==void 0?n[w]:null;if(_===null){let P=Go(r,n[g]);Tr(P,a[x]),d[x]=P}else d[x]=Tr(_,a[x]),Go(r,n[g],_),n[w]=null;x++}else Qn(n[y]),y--;else Qn(n[g]),g++;for(;x<=v;){let w=Go(r,d[v+1]);Tr(w,a[x]),d[x++]=w}for(;g<=y;){let w=n[g++];w!==null&&Qn(w)}return this.ut=s,Wp(r,d),De}})});var js={};q(js,{repeat:()=>ge});var Ht=u(()=>{Kp()});var me,qp=u(()=>{Lt();ao();me=mt(class extends Tt{constructor(r){if(super(r),r.type!==Xt.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter((e=>r[e])).join(" ")+" "}update(r,[e]){if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter((o=>o!==""))));for(let o in e)e[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(e)}let t=r.element.classList;for(let o of this.st)o in e||(t.remove(o),this.st.delete(o));for(let o in e){let n=!!e[o];n===this.st.has(o)||this.nt?.has(o)||(n?(t.add(o),this.st.add(o)):(t.remove(o),this.st.delete(o)))}return De}})});var Gs={};q(Gs,{classMap:()=>me});var tt=u(()=>{qp()});var Zp,B0,U0,Qp=u(()=>{Lt();ao();Zp="important",B0=" !"+Zp,U0=mt(class extends Tt{constructor(r){if(super(r),r.type!==Xt.ATTRIBUTE||r.name!=="style"||r.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(r){return Object.keys(r).reduce(((e,t)=>{let o=r[t];return o==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(r,[e]){let{style:t}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let o of this.ft)e[o]==null&&(this.ft.delete(o),o.includes("-")?t.removeProperty(o):t[o]=null);for(let o in e){let n=e[o];if(n!=null){this.ft.add(o);let a=typeof n=="string"&&n.endsWith(B0);o.includes("-")||a?t.setProperty(o,a?n.slice(0,-11):n,a?Zp:""):t[o]=n}}return De}})});var Ks={};q(Ks,{styleMap:()=>U0});var Yp=u(()=>{Qp()});var Ko,so,Xp=u(()=>{Lt();ao();Ko=class extends Tt{constructor(e){if(super(e),this.it=k,e.type!==Xt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===k||e==null)return this._t=void 0,this.it=e;if(e===De)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Ko.directiveName="unsafeHTML",Ko.resultType=1;so=mt(Ko)});var qs={};q(qs,{UnsafeHTMLDirective:()=>Ko,unsafeHTML:()=>so});var qi=u(()=>{Xp()});var Zs={};q(Zs,{CancelablePromise:()=>Yn,CanceledPromiseError:()=>Jt,cancelable:()=>qo});var Jt,Yn,qo,Xn=u(()=>{"use strict";Jt=class extends Error{constructor(e,t,o){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=o}},Yn=class extends Promise{constructor(e){super((t,o)=>e(n=>{this.isCanceled?o(new Jt("Promise has been canceled",n)):t(n)},n=>{this.isCanceled?o(new Jt("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},qo=r=>new Yn((e,t)=>r.then(e).catch(t))});var Qs={};q(Qs,{customElement:()=>Zi,dateProperty:()=>H0,isNumber:()=>Jp,jsonProperty:()=>de,numberProperty:()=>_t,optionalNumberProperty:()=>z0});function de(r,e){return h({type:Object,converter:{fromAttribute:t=>{if(t==null)return gt(r);try{return JSON.parse(t)}catch{return gt(r)}},toAttribute:t=>JSON.stringify(t)},hasChanged:yt,...e??{}})}function z0(r){return _t(r)}function _t(r){return h({type:Object,converter:{fromAttribute:e=>{var t,o;if(e==null)return;let n=(t=r?.min)!==null&&t!==void 0?t:-1/0,a=(o=r?.max)!==null&&o!==void 0?o:1/0;return Jp(e)?gr(n,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...r??{}})}function Jp(r){return!isNaN(parseFloat(r))}function H0(r){return h({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let t=new Date(Date.parse(e));if(!isNaN(t.valueOf()))return t},toAttribute:e=>e?.toISOString()},useDefault:!0,...r??{}})}var Zi,lo=u(()=>{"use strict";K();rt();Zi=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)}});var tl={};q(tl,{applyMixinOnce:()=>Ee,customElements:()=>U,dateReviver:()=>W0,deepCopy:()=>gt,deepEqual:()=>Me,delay:()=>Jn,eventPathContainsMatchingElement:()=>Ys,everyDeep:()=>V0,flatDeep:()=>bt,forEachDeep:()=>ef,getComposedPathTo:()=>Js,hasChanged:()=>yt,ignoreComposingEvents:()=>Ir,last:()=>Xs,minmax:()=>gr,parseDate:()=>rf,randomId:()=>el,someDeep:()=>tf,unslotText:()=>Zo,waitFor:()=>_r,waitUntil:()=>Qi});async function Qi(r,e=10,t=2e4){await _r(async()=>await r()||void 0,e,t)}async function _r(r,e=10,t=2e4){let o=await r(),n=performance.now(),a=n;for(;o==null&&(!t||a-n<t);)await Jn(e),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function bt(r,e){return r.flatMap(t=>[t,...bt(e(t),e)])}function ef(r,e,t){let o=(n,a)=>{var s;for(let l=0;l<n.length;l++){let d=n[l];if(!(((s=t(d,l,n,a))!==null&&s!==void 0?s:!0)&&o(e(d),[...a,d])))return!1}return!0};o(r,[])}function tf(r,e,t){let o=!1;return ef(r,e,(n,a,s,l)=>(o=!!t(n,a,s,l),!o)),o}function V0(r,e,t){return!tf(r,e,(o,n,a,s)=>!t(o,n,a,s))}function W0(...r){return(e,t)=>r.includes(e)?rf(t):t}function rf(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,o,n)=>t+o+":"+n),new Date(r)}function j0(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;let t,o;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(o=t;o--!==0;)if(!Me(r[o],e[o]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;for(o of r.entries())if(!Me(o[1],e.get(o[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(l=>s[l]!=null),a=n(r);if(t=a.length,t!==n(e).length)return!1;for(o=t;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[o]))return!1;for(o=t;o--!==0;){let s=a[o];if(!Me(r[s],e[s]))return!1}return!0}return r!==r&&e!==e||r==null&&e==null}function Me(r,e){try{return j0(r,e)}catch{return!1}}function yt(r,e){return!Me(r,e)}function Ys(r,e,t=window.document.body){if(e.length>0){let o=r.composedPath();for(let n of o){if(n===t)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function gr(r,e,t){return Math.min(Math.max(r,e),t)}function Xs(r){return r[r.length-1]}function Zo(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(e=>Zo(e)).join(""):r?.textContent||""}function Js(r){let e=[],t=o=>{o.stopPropagation(),e=o.composedPath()};return r.addEventListener("get-composed-path",t),r.dispatchEvent(new Event("get-composed-path",{composed:!0})),r.removeEventListener("get-composed-path",t),e}function gt(r){return typeof window.structuredClone=="function"?structuredClone(r):r!=null?JSON.parse(JSON.stringify(r)):r}function el(r,e){return(e??"")+(""+Math.floor(Math.random()*10**r)).padStart(r,"0")}function Ee(r,e){let t=o=>o[r]===!0;return o=>{if(t(o))return o;let n=e(o);return n[r]=!0,n}}function Ir(){return function(r,e,t){let o=t.value;t.value=function(n,...a){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return o.apply(this,[n].concat(a))}}}function U(r){for(let[e,t]of Object.entries(r))Zi(e)(t)}var Jn,rt=u(()=>{"use strict";lo();Jn=r=>new Promise(e=>setTimeout(e,r))});var il={};q(il,{FtNotificationEvent:()=>Yi,PostResizeEvent:()=>ol,PreResizeEvent:()=>rl,WithEventBus:()=>yr,withEventBus:()=>ea});var Yi,rl,ol,ea,yr,Qo=u(()=>{"use strict";rt();Yi=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},rl=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ol=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},ea=Ee(Symbol("withEventBus"),function(r,e){return class extends r{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(t,o,n){this.eventBus.addEventListener(t,o,n)}dispatchEvent(t){return this.eventBus.dispatchEvent(t)}removeEventListener(t,o,n){this.eventBus.removeEventListener(t,o,n)}}}),yr=class extends ea(Object){}});var nl={};q(nl,{CacheRegistry:()=>er,ClearCacheEvent:()=>Xi});var Xi,er,al=u(()=>{"use strict";Xn();Qo();Xi=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},er=class extends yr{constructor(){super(...arguments),this.content={}}register(e,t,o=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:t,final:o,status:s}}registerFinal(e,t){this.register(e,t,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,t=!0){let o=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return t&&o.length>0&&this.dispatchEvent(new Xi(o)),o}clear(e,t=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),t&&this.dispatchEvent(new Xi([e])),e}forceClear(e){var t;let o=this.content[e];o&&(this.clearClearTimeout(e),(t=o.promise)===null||t===void 0||t.cancel(),this.content[e]={loader:o.loader,final:o.final,status:"REGISTERED"})}clearClearTimeout(e){var t,o,n;((t=this.content[e])===null||t===void 0?void 0:t.clearTimeout)!=null&&(window.clearTimeout((o=this.content[e])===null||o===void 0?void 0:o.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,t,o=!1){this.forceClear(e);let n=async()=>t,a="RESOLVED";this.content[e]={loader:n,final:o,status:a,value:t}}setFinal(e,t){return this.set(e,t,!0)}async get(e,t,o){if(!this.isRegistered(e)){if(!t)throw new Error("Unknown cache key "+e);this.register(e,t)}let n=this.content[e];switch(n.status){case"ERROR":throw n.error;case"LOADING":return n.promise;case"RESOLVED":return n.value;case"REGISTERED":return t=t??n.loader,n.status="LOADING",n.promise=qo(t()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,o!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),o)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var t;return(t=this.content[e])===null||t===void 0?void 0:t.value}has(e){var t,o;return((t=this.content[e])===null||t===void 0?void 0:t.status)!==void 0&&((o=this.content[e])===null||o===void 0?void 0:o.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var t;return((t=this.content[e])===null||t===void 0?void 0:t.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}}});var ll={};q(ll,{accessBreadcrumb:()=>G0,accessResult:()=>It,accessResultId:()=>ta,accessResultUrl:()=>sl});function It(r){var e,t,o,n;return(n=(o=(t=(e=r?.map)!==null&&e!==void 0?e:r?.topic)!==null&&t!==void 0?t:r?.document)!==null&&o!==void 0?o:r?.htmlPackage)!==null&&n!==void 0?n:r?.htmlPackagePage}function ta(r){var e,t,o,n,a,s,l,d,f;return(d=(s=(n=(t=(e=r?.map)===null||e===void 0?void 0:e.mapId)!==null&&t!==void 0?t:(o=r?.topic)===null||o===void 0?void 0:o.tocId)!==null&&n!==void 0?n:(a=r?.document)===null||a===void 0?void 0:a.documentId)!==null&&s!==void 0?s:(l=r?.htmlPackage)===null||l===void 0?void 0:l.packageId)!==null&&d!==void 0?d:(f=r?.htmlPackagePage)===null||f===void 0?void 0:f.contentId}function sl(r){var e,t,o,n,a,s,l,d,f;return(d=(s=(n=(t=(e=r?.map)===null||e===void 0?void 0:e.readerUrl)!==null&&t!==void 0?t:(o=r?.topic)===null||o===void 0?void 0:o.readerUrl)!==null&&n!==void 0?n:(a=r?.document)===null||a===void 0?void 0:a.viewerUrl)!==null&&s!==void 0?s:(l=r?.htmlPackage)===null||l===void 0?void 0:l.viewerUrl)!==null&&d!==void 0?d:(f=r?.htmlPackagePage)===null||f===void 0?void 0:f.viewerUrl}function G0(r){return r?.topic?[r.topic.mapTitle,...r.topic.breadcrumb]:r?.map?[r.map.title]:r?.document?[r.document.title]:r?.htmlPackage?[r.htmlPackage.title]:r?.htmlPackagePage?[r.htmlPackagePage.packageTitle,r.htmlPackagePage.title]:[]}var ra=u(()=>{"use strict"});var ul={};q(ul,{ClusteringHelper:()=>dl,formatHierarchicalValues:()=>cl});function cl(r,e){return e&&e>1&&r.length>=e?`... > ${r[r.length-1]}`:r.join(" > ")}var dl,pl=u(()=>{"use strict";ra();dl=class r{constructor(e,t,o,n){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=o,this.metadataDescriptors=n}static findResultWithMetadataValue(e,t,o){return e?.find(n=>{var a;return((a=this.extractResultMetadata({result:n}).find(s=>s.key==t))===null||a===void 0?void 0:a.value)==o})}static extractResultMetadata(e){var t,o;let n=(o=(t=It(e.result))===null||t===void 0?void 0:t.metadata)!==null&&o!==void 0?o:[];return e.key==null?r.flattenMetadata(n,e.hierarchicalValueTruncatingLevel,e.dateFormatter):r.flattenMetadata(n.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,t,o){if(Array.isArray(e))return e.map(a=>r.flattenMetadata(a,t,o)).filter(a=>a!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(cl(l)),s.push(cl(l,t))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(l=>o?o(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,t,o="No value",n,a){var s,l;let d=r.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),f=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(g=>r.extractResultMetadata({result:g,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(g=>g??{key:e,label:f,value:void 0,displayValue:o}).filter(g=>g.value!=d?.value).filter((g,y,x)=>x.findIndex(v=>v.value===g.value)===y).map(g=>({result:this.findBestResultForMetadataValue(e,g.value),metadata:g})).sort((g,y)=>this.compareMetadata(g.metadata.value,y.metadata.value,e,t))}compareMetadata(e,t,o,n){if(e==null)return-1;if(t==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(t,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let o=this.allResults.filter(d=>{var f;return((f=r.extractResultMetadata({result:d,key:e}))===null||f===void 0?void 0:f.value)==t}),a=[...r.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of o){let f=this.countMatchingMetadata(d,a);if(f>l&&(l=f,s=d,f===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata({result:e}).filter(o=>t.some(n=>n.key===o.key&&n.value===o.value)).length}}});var fl={};q(fl,{Debouncer:()=>ne});var ne,oa=u(()=>{"use strict";ne=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,o)=>{this.resolvePromise=t,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let o=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(t=this.resolvePromise)!==null&&t!==void 0?t:(()=>null);this.clearPromise();for(let s of o)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}});function A(r,e){return Pr(`${r.name}: ${e}`)}var Pr,i,J=u(()=>{T();Pr=r=>typeof r=="string"?eo(r):r,i=class{static create(e,t,o,n){let a=l=>Pr(l??n),s=R`var(${Pr(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>A(s,l??a(n)),s.get=l=>R`var(${Pr(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,t,o,n){let a=l=>o.get(l??n),s=R`var(${Pr(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>A(s,l??a(n)),s.get=l=>R`var(${Pr(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(e,t){let o=a=>e.defaultCssValue(a),n=R`var(${Pr(e.name)}, ${o(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=t,n.defaultCssValue=o,n.set=a=>e.set(a),n.get=a=>R`var(${Pr(e.name)}, ${o(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}}});var c,of,nf,af,sf,lf,cf,df,uf,pf,ff,hf,mf,gf,yf,bf,vf,K0,q0,re=u(()=>{J();c={colorWhite:i.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:i.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:i.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:i.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:i.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:i.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:i.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:i.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:i.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:i.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:i.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:i.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:i.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:i.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:i.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:i.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:i.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:i.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:i.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:i.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:i.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:i.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:i.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:i.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:i.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:i.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:i.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:i.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:i.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:i.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:i.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:i.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:i.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:i.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:i.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:i.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:i.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:i.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:i.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:i.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:i.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:i.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:i.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:i.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:i.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:i.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:i.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:i.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:i.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:i.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:i.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:i.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:i.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:i.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:i.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:i.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:i.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:i.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:i.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:i.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:i.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:i.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:i.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:i.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:i.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:i.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:i.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:i.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:i.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:i.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:i.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:i.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:i.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:i.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:i.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:i.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:i.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:i.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:i.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:i.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:i.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:i.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:i.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:i.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:i.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:i.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:i.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:i.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:i.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:i.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:i.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:i.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:i.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:i.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:i.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:i.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:i.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:i.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:i.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:i.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:i.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:i.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:i.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:i.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:i.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:i.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:i.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:i.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:i.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:i.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:i.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:i.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:i.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:i.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:i.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:i.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:i.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:i.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:i.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:i.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:i.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:i.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:i.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:i.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:i.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:i.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:i.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:i.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:i.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:i.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:i.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:i.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:i.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:i.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:i.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:i.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:i.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:i.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:i.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:i.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:i.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:i.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:i.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:i.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:i.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:i.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:i.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:i.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:i.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:i.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:i.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:i.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:i.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:i.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:i.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:i.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:i.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:i.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:i.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:i.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:i.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:i.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:i.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:i.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:i.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:i.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:i.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:i.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:i.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:i.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:i.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:i.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:i.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:i.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:i.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:i.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:i.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:i.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:i.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:i.create("--ftds-opacity-0","","NUMBER","0"),opacity4:i.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:i.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:i.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:i.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:i.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:i.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:i.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:i.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:i.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:i.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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)")},of={fontFamily:i.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:i.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-display-text-case","","UNKNOWN","none")},nf={fontFamily:i.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:i.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},af={fontFamily:i.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:i.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},sf={fontFamily:i.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:i.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:i.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},lf={fontFamily:i.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},cf={fontFamily:i.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},df={fontFamily:i.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},uf={fontFamily:i.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},pf={fontFamily:i.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},ff={fontFamily:i.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:i.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:i.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},hf={fontFamily:i.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},mf={fontFamily:i.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},gf={fontFamily:i.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},yf={fontFamily:i.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},bf={fontFamily:i.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},vf={fontFamily:i.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:i.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},K0={display:of,"title-1":nf,"title-2":af,"title-3":sf,"body-1-regular":lf,"body-1-medium":cf,"body-1-semibold":df,"body-2-regular":uf,"body-2-medium":pf,"body-2-medium-underline":ff,"body-2-semibold":hf,"caption-1-medium":mf,"caption-1-semibold":gf,"caption-2-medium":yf,"caption-2-semibold":bf,"caption-2-bold":vf},q0=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"]});var p,ue=u(()=>{J();re();p={backgroundActionPrimary:i.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:i.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:i.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:i.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:i.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:i.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:i.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:i.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:i.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:i.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:i.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:i.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:i.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:i.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:i.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:i.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:i.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:i.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:i.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
4
- Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:i.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:i.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:i.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:i.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:i.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:i.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:i.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:i.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:i.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:i.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:i.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:i.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:i.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:i.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:i.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:i.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)}});var Z0,xf=u(()=>{J();re();ue();Z0={largeHeight:i.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:i.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:i.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:i.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:i.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:i.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:i.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:i.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:i.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:i.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:i.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:i.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:i.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:i.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:i.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:i.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:i.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:i.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:i.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:i.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:i.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:i.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:i.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:i.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:i.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:i.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:i.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:i.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:i.extend("--ftds-button-primary-brand-background-color","",p.backgroundActionPrimary),primaryBrandColor:i.extend("--ftds-button-primary-brand-color","",p.contentGlobalOnColor),primaryBrandIconColor:i.extend("--ftds-button-primary-brand-icon-color","",p.contentGlobalOnColor),primaryBrandStateLayerColor:i.extend("--ftds-button-primary-brand-state-layer-color","",p.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:i.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-button-focus-focus-ring-color","",p.borderActionFocusRing),tertiaryBrandBackgroundColor:i.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:i.extend("--ftds-button-tertiary-brand-color","",p.contentActionPrimary),tertiaryBrandIconColor:i.extend("--ftds-button-tertiary-brand-icon-color","",p.contentActionPrimary),tertiaryBrandStateLayerColor:i.extend("--ftds-button-tertiary-brand-state-layer-color","",p.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:i.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:i.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:i.extend("--ftds-button-tertiary-info-color","",p.contentInfoPrimary),tertiaryInfoIconColor:i.extend("--ftds-button-tertiary-info-icon-color","",p.contentInfoPrimary),tertiaryInfoStateLayerColor:i.extend("--ftds-button-tertiary-info-state-layer-color","",p.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:i.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:i.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:i.extend("--ftds-button-tertiary-success-color","",p.contentSuccessPrimary),tertiarySuccessIconColor:i.extend("--ftds-button-tertiary-success-icon-color","",p.contentSuccessPrimary),tertiarySuccessStateLayerColor:i.extend("--ftds-button-tertiary-success-state-layer-color","",p.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:i.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:i.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:i.extend("--ftds-button-tertiary-warning-color","",p.contentWarningPrimary),tertiaryWarningIconColor:i.extend("--ftds-button-tertiary-warning-icon-color","",p.contentWarningPrimary),tertiaryWarningStateLayerColor:i.extend("--ftds-button-tertiary-warning-state-layer-color","",p.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:i.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:i.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:i.extend("--ftds-button-tertiary-error-color","",p.contentErrorPrimary),tertiaryErrorIconColor:i.extend("--ftds-button-tertiary-error-icon-color","",p.contentErrorPrimary),tertiaryErrorStateLayerColor:i.extend("--ftds-button-tertiary-error-state-layer-color","",p.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:i.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:i.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:i.extend("--ftds-button-tertiary-neutral-icon-color","",p.contentGlobalSecondary),tertiaryNeutralColor:i.extend("--ftds-button-tertiary-neutral-color","",p.contentGlobalSecondary),tertiaryNeutralStateLayerColor:i.extend("--ftds-button-tertiary-neutral-state-layer-color","",p.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:i.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:i.extend("--ftds-button-secondary-brand-color","",p.contentActionPrimary),secondaryBrandIconColor:i.extend("--ftds-button-secondary-brand-icon-color","",p.contentActionPrimary),secondaryBrandStateLayerColor:i.extend("--ftds-button-secondary-brand-state-layer-color","",p.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:i.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:i.extend("--ftds-button-secondary-brand-border-color","",p.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:i.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:i.extend("--ftds-button-secondary-neutral-color","",p.contentGlobalSecondary),secondaryNeutralIconColor:i.extend("--ftds-button-secondary-neutral-icon-color","",p.contentGlobalSecondary),secondaryNeutralStateLayerColor:i.extend("--ftds-button-secondary-neutral-state-layer-color","",p.contentGlobalSecondary),secondaryNeutralBorderColor:i.extend("--ftds-button-secondary-neutral-border-color","",p.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:i.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:i.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:i.extend("--ftds-button-secondary-info-border-color","",p.borderInfoPrimary),secondaryInfoColor:i.extend("--ftds-button-secondary-info-color","",p.contentInfoPrimary),secondaryInfoIconColor:i.extend("--ftds-button-secondary-info-icon-color","",p.contentInfoPrimary),secondaryInfoStateLayerColor:i.extend("--ftds-button-secondary-info-state-layer-color","",p.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:i.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:i.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:i.extend("--ftds-button-secondary-success-border-color","",p.borderSuccessPrimary),secondarySuccessColor:i.extend("--ftds-button-secondary-success-color","",p.contentSuccessPrimary),secondarySuccessIconColor:i.extend("--ftds-button-secondary-success-icon-color","",p.contentSuccessPrimary),secondarySuccessStateLayerColor:i.extend("--ftds-button-secondary-success-state-layer-color","",p.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:i.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:i.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:i.extend("--ftds-button-secondary-warning-border-color","",p.borderWarningPrimary),secondaryWarningColor:i.extend("--ftds-button-secondary-warning-color","",p.contentWarningPrimary),secondaryWarningIconColor:i.extend("--ftds-button-secondary-warning-icon-color","",p.contentWarningPrimary),secondaryWarningStateLayerColor:i.extend("--ftds-button-secondary-warning-state-layer-color","",p.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:i.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:i.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:i.extend("--ftds-button-secondary-error-border-color","",p.contentErrorPrimary),secondaryErrorColor:i.extend("--ftds-button-secondary-error-color","",p.contentErrorPrimary),secondaryErrorIconColor:i.extend("--ftds-button-secondary-error-icon-color","",p.contentErrorPrimary),secondaryErrorStateLayerColor:i.extend("--ftds-button-secondary-error-state-layer-color","",p.contentErrorPrimary)}});var Q0,Sf=u(()=>{J();re();ue();Q0={borderRadius:i.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:i.extend("--ftds-card-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:i.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:i.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:i.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:i.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:i.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:i.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:i.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:i.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:i.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:i.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:i.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:i.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:i.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:i.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:i.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:i.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:i.extend("--ftds-card-non-selectable-state-layer-color","",p.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:i.extend("--ftds-card-non-selectable-default-background-color","",p.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:i.extend("--ftds-card-non-selectable-default-border-color","",p.borderGlobalSecondary),nonSelectableHoverBorderColor:i.extend("--ftds-card-non-selectable-hover-border-color","",p.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:i.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:i.extend("--ftds-card-non-selectable-focus-border-color","",p.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:i.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:i.extend("--ftds-card-internal-border-color","",p.borderGlobalSecondary),selectableUnselectedBorderWidth:i.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:i.extend("--ftds-card-selectable-unselected-state-layer-color","",p.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:i.extend("--ftds-card-selectable-unselected-default-background-color","",p.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:i.extend("--ftds-card-selectable-unselected-default-border-color","",p.borderGlobalSecondary),selectableUnselectedHoverBorderColor:i.extend("--ftds-card-selectable-unselected-hover-border-color","",p.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:i.extend("--ftds-card-selectable-unselected-focus-border-color","",p.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:i.extend("--ftds-card-selectable-selected-border-color","",p.borderActionPrimary),selectableSelectedBorderWidth:i.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:i.extend("--ftds-card-selectable-selected-state-layer-color","",p.contentActionPrimary),selectableSelectedBackgroundColor:i.extend("--ftds-card-selectable-selected-background-color","",p.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:i.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:i.create("--ftds-card-internal-border-width","","SIZE","1px")}});var Y0,Cf=u(()=>{J();re();ue();Y0={loadMoreIconSize:i.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:i.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-unselected-default-border-color","",p.borderGlobalSubtle),loadMoreIconColor:i.extend("--ftds-tree-list-load-more-icon-color","",p.contentActionPrimary),loadMoreLabelColor:i.extend("--ftds-tree-list-load-more-label-color","",p.contentActionPrimary),loadMoreHoverBorderColor:i.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:i.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:i.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:i.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:i.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:i.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),loadMoreLabelMarginLeft:i.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:i.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:i.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:i.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:i.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:i.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:i.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:i.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-node-unselected-default-border-color","",p.borderGlobalSubtle),nodeUnselectedIconColor:i.extend("--ftds-tree-list-node-unselected-icon-color","",p.contentGlobalSecondary),nodeUnselectedLabelColor:i.extend("--ftds-tree-list-node-unselected-label-color","",p.contentGlobalSecondary),nodeUnselectedCounterColor:i.extend("--ftds-tree-list-node-unselected-counter-color","",p.contentGlobalSecondary),nodeHoverBorderColor:i.extend("--ftds-tree-list-node-hover-border-color","",p.borderActionPrimary),nodeFocusFocusRingColor:i.extend("--ftds-tree-list-node-focus-focus-ring-color","",p.borderActionFocusRing),nodeFocusOutlineWidth:i.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-selected-default-border-color","",p.borderGlobalPrimary),nodeSelectedIconColor:i.extend("--ftds-tree-list-node-selected-icon-color","",p.contentGlobalSecondary),nodeSelectedLabelColor:i.extend("--ftds-tree-list-node-selected-label-color","",p.contentGlobalPrimary),nodeSelectedCounterColor:i.extend("--ftds-tree-list-node-selected-counter-color","",p.contentGlobalSecondary),nodeSelectedBackgroundColor:i.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:i.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:i.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:i.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:i.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:i.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:i.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:i.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:i.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:i.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:i.extend("--ftds-tree-list-header-section-color","",p.contentGlobalPrimary),headerSectionCounterColor:i.extend("--ftds-tree-list-header-section-counter-color","",p.contentGlobalSecondary),listContainerBorderWidth:i.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:i.extend("--ftds-tree-list-list-container-background-color","",p.backgroundGlobalSurface),listContainerBorderColor:i.extend("--ftds-tree-list-list-container-border-color","",p.borderGlobalSubtle),emptyStateIllustrationWidth:i.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:i.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:i.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:i.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:i.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:i.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:i.extend("--ftds-tree-list-empty-state-title-label-color","",p.contentGlobalSecondary),emptyStateDescriptionLabelColor:i.extend("--ftds-tree-list-empty-state-description-label-color","",p.contentGlobalSecondary)}});var X0,Of=u(()=>{J();re();ue();X0={iconSize:i.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:i.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:i.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:i.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:i.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing1),color:i.extend("--ftds-checkbox-color","",p.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ftds-checkbox-checked-background-color","",p.contentActionPrimary),checkedStateLayerColor:i.extend("--ftds-checkbox-checked-state-layer-color","",p.contentActionPrimary),checkedIconColor:i.extend("--ftds-checkbox-checked-icon-color","",p.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:i.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:i.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:i.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:i.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:i.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-checkbox-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:i.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:i.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:i.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:i.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:i.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:i.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:i.extend("--ftds-checkbox-error-unchecked-border-color","",p.borderErrorPrimary),errorStateLayerColor:i.extend("--ftds-checkbox-error-state-layer-color","",p.contentErrorPrimary),errorHelperTextColor:i.extend("--ftds-checkbox-error-helper-text-color","",p.borderErrorPrimary),errorCheckedBackgroundColor:i.extend("--ftds-checkbox-error-checked-background-color","",p.contentErrorPrimary),helperTextColor:i.extend("--ftds-checkbox-helper-text-color","",p.contentGlobalSubtle),groupVerticalGap:i.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)}});var J0,Ef=u(()=>{J();re();ue();J0={circleSize:i.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:i.create("--ftds-radio-border-width","","SIZE","2px"),color:i.extend("--ftds-radio-color","",p.contentGlobalPrimary),selectedRadioColor:i.extend("--ftds-radio-selected-radio-color","",p.contentActionPrimary),selectedStateLayerColor:i.extend("--ftds-radio-selected-state-layer-color","",p.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:i.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:i.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:i.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:i.extend("--ftds-radio-unselected-state-layer-color","",p.borderInputPrimary),unselectedBorderColor:i.extend("--ftds-radio-unselected-border-color","",p.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:i.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-radio-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:i.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:i.extend("--ftds-radio-horizontal-gap","",c.spacing3)}});var eS,wf=u(()=>{J();re();ue();eS={headerRowBorderWidth:i.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:i.extend("--ftds-table-header-row-background-color","",p.backgroundGlobalOnSurfaceDark),headerRowBorderColor:i.extend("--ftds-table-header-row-border-color","",p.borderGlobalPrimary),headerRowColor:i.extend("--ftds-table-header-row-color","",p.contentGlobalPrimary),dataRowBorderWidth:i.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:i.extend("--ftds-table-data-row-background-color","",p.backgroundGlobalOnSurface),dataRowBorderColor:i.extend("--ftds-table-data-row-border-color","",p.borderGlobalSubtle),dataRowColor:i.extend("--ftds-table-data-row-color","",p.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:i.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:i.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:i.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:i.extend("--ftds-table-data-row-selectable-selected-color","",p.contentActionPrimary),dataRowClickableHoverBackgroundColor:i.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:i.extend("--ftds-table-data-row-clickable-focus-border-color","",p.borderActionFocusRing),dataRowClickableFocusBackgroundColor:i.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:i.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:i.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:i.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:i.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:i.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:i.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:i.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)}});var tS,Rf=u(()=>{J();re();ue();tS={neutralOffHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",p.borderActionFocusRing),neutralOffActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:i.extend("--ftds-chip-choice-neutral-off-background-color","",p.backgroundGlobalOnSurface),neutralOffBorderColor:i.extend("--ftds-chip-choice-neutral-off-border-color","",p.borderGlobalPrimary),neutralOffColor:i.extend("--ftds-chip-choice-neutral-off-color","",p.contentGlobalSecondary),neutralOffStateLayerColor:i.extend("--ftds-chip-choice-neutral-off-state-layer-color","",p.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",p.borderActionFocusRing),neutralOnActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:i.extend("--ftds-chip-choice-neutral-on-background-color","",p.backgroundGlobalOnSurface),neutralOnBorderColor:i.extend("--ftds-chip-choice-neutral-on-border-color","",p.borderGlobalPrimary),neutralOnColor:i.extend("--ftds-chip-choice-neutral-on-color","",p.contentGlobalPrimary),neutralOnIconColor:i.extend("--ftds-chip-choice-neutral-on-icon-color","",p.contentGlobalPrimary),neutralOnStateLayerColor:i.extend("--ftds-chip-choice-neutral-on-state-layer-color","",p.contentGlobalPrimary),largeMinHeight:i.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:i.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:i.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:i.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:i.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)}});var rS,Af=u(()=>{J();re();ue();rS={largeMinHeight:i.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:i.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:i.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:i.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:i.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:i.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:i.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:i.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:i.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:i.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:i.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:i.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:i.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:i.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:i.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:i.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:i.extend("--ftds-chip-neutral-background-color","",p.backgroundGlobalOnSurface),neutralColor:i.extend("--ftds-chip-neutral-color","",p.contentGlobalSecondary),neutralIconColor:i.extend("--ftds-chip-neutral-icon-color","",p.contentGlobalSecondary),neutralBorderColor:i.extend("--ftds-chip-neutral-border-color","",p.borderGlobalSecondary),infoBackgroundColor:i.extend("--ftds-chip-info-background-color","",p.backgroundInfoSubtle),infoColor:i.extend("--ftds-chip-info-color","",p.contentInfoPrimary),infoIconColor:i.extend("--ftds-chip-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-chip-info-border-color","",p.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-chip-success-background-color","",p.backgroundSuccessSubtle),successColor:i.extend("--ftds-chip-success-color","",p.contentSuccessPrimary),successIconColor:i.extend("--ftds-chip-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-chip-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-chip-warning-background-color","",p.backgroundWarningSubtle),warningColor:i.extend("--ftds-chip-warning-color","",p.contentWarningPrimary),warningIconColor:i.extend("--ftds-chip-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-chip-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-chip-error-background-color","",p.backgroundErrorSubtle),errorColor:i.extend("--ftds-chip-error-color","",p.contentErrorPrimary),errorIconColor:i.extend("--ftds-chip-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-chip-error-border-color","",p.borderErrorSubtle)}});var oS,Lf=u(()=>{J();re();ue();oS={horizontalGap:i.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:i.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:i.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:i.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:i.extend("--ftds-chip-group-count-chip-default-content-color","",p.contentActionPrimary),countChipHoverBackgroundColor:i.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:i.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:i.extend("--ftds-chip-group-count-chip-hover-content-color","",p.contentActionPrimary),countChipFocusedBackgroundColor:i.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:i.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:i.extend("--ftds-chip-group-count-chip-focused-content-color","",p.contentActionPrimary)}});var iS,kf=u(()=>{J();re();ue();iS={brandHoverOpacity:i.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:i.extend("--ftds-link-brand-hover-color","",p.contentActionPrimary),brandFocusFocusRingColor:i.extend("--ftds-link-brand-focus-focus-ring-color","",p.borderActionFocusRing),brandFocusColor:i.extend("--ftds-link-brand-focus-color","",p.contentActionPrimary),brandDefaultColor:i.extend("--ftds-link-brand-default-color","",p.contentActionPrimary),brandActiveColor:i.extend("--ftds-link-brand-active-color","",p.contentActionPrimary),infoHoverOpacity:i.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:i.extend("--ftds-link-info-hover-color","",p.contentInfoPrimary),infoFocusFocusRingColor:i.extend("--ftds-link-info-focus-focus-ring-color","",p.borderActionFocusRing),infoFocusColor:i.extend("--ftds-link-info-focus-color","",p.contentInfoPrimary),infoDefaultColor:i.extend("--ftds-link-info-default-color","",p.contentInfoPrimary),infoActiveColor:i.extend("--ftds-link-info-active-color","",p.contentInfoPrimary),neutralFocusFocusRingColor:i.extend("--ftds-link-neutral-focus-focus-ring-color","",p.borderActionFocusRing),neutralFocusColor:i.extend("--ftds-link-neutral-focus-color","",p.contentActionPrimary),neutralDefaultColor:i.extend("--ftds-link-neutral-default-color","",p.contentGlobalPrimary),neutralHoverColor:i.extend("--ftds-link-neutral-hover-color","",p.contentActionPrimary),neutralActiveColor:i.extend("--ftds-link-neutral-active-color","",p.contentActionPrimary),neutralVisitedColor:i.extend("--ftds-link-neutral-visited-color","",c.colorBrand100)}});var nS,Tf=u(()=>{J();re();ue();nS={iconSize:i.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:i.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:i.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:i.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:i.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:i.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:i.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:i.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:i.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:i.extend("--ftds-banner-info-background-color","",p.backgroundInfoSubtle),infoColor:i.extend("--ftds-banner-info-color","",p.contentInfoPrimary),infoIconColor:i.extend("--ftds-banner-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-banner-info-border-color","",p.borderInfoSubtle)}});var aS,_f=u(()=>{J();re();ue();aS={horizontalPadding:i.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:i.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:i.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:i.extend("--ftds-badge-color","",p.contentGlobalOnColor),backgroundColor:i.extend("--ftds-badge-background-color","",p.contentActionPrimary)}});var sS,If=u(()=>{J();re();ue();sS={horizontalGap:i.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:i.extend("--ftds-title-breadcrumb-current-color","",p.contentGlobalPrimary),previousNonClickableColor:i.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",p.contentGlobalSecondary),iconColor:i.extend("--ftds-title-breadcrumb-icon-color","",p.contentGlobalSubtle)}});var lS,Pf=u(()=>{J();re();ue();lS={parentHorizontalPadding:i.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:i.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:i.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:i.extend("--ftds-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:i.extend("--ftds-page-header-parent-title-color","",p.contentGlobalPrimary),parentSubtitleColor:i.extend("--ftds-page-header-parent-subtitle-color","",p.contentGlobalSecondary),parentChipLeftMargin:i.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:i.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:i.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:i.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:i.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:i.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:i.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:i.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:i.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:i.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:i.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:i.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:i.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:i.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:i.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:i.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:i.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:i.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:i.extend("--ftds-page-header-bottom-border-color","",p.borderGlobalSubtle),bottomBorderWidth:i.create("--ftds-page-header-bottom-border-width","","SIZE","1px")}});var cS,Nf=u(()=>{J();re();ue();cS={horizontalPadding:i.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:i.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:i.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:i.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:i.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:i.extend("--ftds-page-footer-top-border-color","",p.borderGlobalSubtle),topBorderWidth:i.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:i.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)}});var dS,$f=u(()=>{J();re();dS={contentHorizontalPadding:i.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:i.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)}});var uS,Df=u(()=>{J();re();ue();uS={smallContainerTargetWidth:i.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:i.extend("--ftds-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:i.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:i.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:i.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:i.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:i.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:i.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:i.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:i.extend("--ftds-modal-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:i.extend("--ftds-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:i.extend("--ftds-modal-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-modal-header-border-color","",p.borderGlobalSubtle),headerColor:i.extend("--ftds-modal-header-color","",p.contentGlobalPrimary),headerLeadingIconColor:i.extend("--ftds-modal-header-leading-icon-color","",p.contentGlobalPrimary),headerVerticalPadding:i.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:i.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:i.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:i.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:i.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:i.extend("--ftds-modal-border-radius","",c.borderRadiusM)}});var pS,Mf=u(()=>{J();re();ue();pS={overlayOpacity:i.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:i.extend("--ftds-drawer-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:i.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:i.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:i.extend("--ftds-drawer-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-drawer-header-border-color","",p.borderGlobalSubtle),headerColor:i.extend("--ftds-drawer-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ftds-drawer-header-trailing-icon-color","",p.contentGlobalSecondary),headerHeight:i.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:i.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:i.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:i.extend("--ftds-drawer-buttons-bar-background-color","",p.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ftds-drawer-buttons-bar-border-color","",p.borderGlobalSubtle),buttonsBarColor:i.extend("--ftds-drawer-buttons-bar-color","",p.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:i.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:i.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:i.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:i.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:i.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:i.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:i.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:i.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)}});var fS,Ff=u(()=>{J();re();ue();fS={offBorderBottomWidth:i.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:i.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:i.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:i.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:i.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-tabs-off-color","",p.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-tabs-off-state-layer-color","",p.contentGlobalSubtle),offBorderBottomColor:i.extend("--ftds-tabs-off-border-bottom-color","",p.borderGlobalSubtle),activeTabIndicatorHeight:i.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:i.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:i.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:i.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:i.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:i.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:i.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:i.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:i.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:i.extend("--ftds-tabs-on-color","",p.contentActionPrimary),onStateLayerColor:i.extend("--ftds-tabs-on-state-layer-color","",p.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ftds-tabs-on-active-tab-indicator-color","",p.contentActionPrimary),iconOnlyHorizontalPadding:i.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:i.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:i.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:i.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:i.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-tabs-focus-focus-ring-color","",p.borderActionFocusRing)}});var hS,Bf=u(()=>{J();re();ue();hS={largeFieldHorizontalPadding:i.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:i.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:i.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:i.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:i.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:i.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:i.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:i.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:i.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:i.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:i.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:i.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:i.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:i.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:i.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:i.extend("--ftds-text-input-content-value-color","",p.contentGlobalPrimary),trailingIconColor:i.extend("--ftds-text-input-trailing-icon-color","",p.contentGlobalSubtle),labelColor:i.extend("--ftds-text-input-label-color","",p.contentGlobalSubtle),defaultBorderColor:i.extend("--ftds-text-input-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:i.extend("--ftds-text-input-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:i.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ftds-text-input-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:i.extend("--ftds-text-input-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:i.extend("--ftds-text-input-error-helper-icon-color","",p.contentErrorIconOnly),warningBorderColor:i.extend("--ftds-text-input-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:i.extend("--ftds-text-input-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:i.extend("--ftds-text-input-warning-helper-icon-color","",p.contentWarningIconOnly),warningBorderWidth:i.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:i.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-text-input-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)}});var mS,Uf=u(()=>{J();re();ue();mS={backgroundColor:i.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:i.extend("--ftds-text-area-content-value-color","",p.contentGlobalPrimary),labelColor:i.extend("--ftds-text-area-label-color","",p.contentGlobalSubtle),defaultBorderColor:i.extend("--ftds-text-area-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:i.extend("--ftds-text-area-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:i.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ftds-text-area-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:i.extend("--ftds-text-area-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:i.extend("--ftds-text-area-error-helper-icon-color","",p.contentErrorIconOnly),focusFocusRingColor:i.extend("--ftds-text-area-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ftds-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:i.extend("--ftds-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:i.extend("--ftds-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:i.extend("--ftds-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:i.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:i.extend("--ftds-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:i.extend("--ftds-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:i.extend("--ftds-text-area-helper-icon-size","",c.iconSize2),borderRadius:i.extend("--ftds-text-area-border-radius","",c.borderRadiusS)}});var gS,zf=u(()=>{J();re();ue();gS={height:i.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:i.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:i.extend("--ftds-floating-menu-off-icon-color","",p.contentGlobalPrimary),offColor:i.extend("--ftds-floating-menu-off-color","",p.contentGlobalPrimary),onColor:i.extend("--ftds-floating-menu-on-color","",p.contentActionPrimary),onStateLayerColor:i.extend("--ftds-floating-menu-on-state-layer-color","",p.contentActionPrimary),gap:i.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:i.extend("--ftds-floating-menu-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:i.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:i.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:i.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:i.extend("--ftds-floating-menu-background-color","",p.backgroundGlobalOnSurface),shadow:i.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",p.contentActionPrimary),multiselectCheckedColor:i.extend("--ftds-floating-menu-multiselect-checked-color","",p.contentGlobalPrimary),multiselectCheckedIconColor:i.extend("--ftds-floating-menu-multiselect-checked-icon-color","",p.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",p.contentActionPrimary),multiselectIndeterminatedColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-color","",p.contentGlobalPrimary),multiselectIndeterminatedIconColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",p.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",p.contentGlobalPrimary),multiselectUncheckedColor:i.extend("--ftds-floating-menu-multiselect-unchecked-color","",p.contentGlobalPrimary),multiselectUncheckedIconColor:i.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",p.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",p.contentActionPrimary),selectAllCheckedColor:i.extend("--ftds-floating-menu-select-all-checked-color","",p.contentGlobalPrimary),selectAllCheckedIconColor:i.extend("--ftds-floating-menu-select-all-checked-icon-color","",p.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",p.contentGlobalPrimary),selectAllIndeterminatedColor:i.extend("--ftds-floating-menu-select-all-indeterminated-color","",p.contentGlobalPrimary),selectAllIndeterminatedIconColor:i.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",p.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",p.contentGlobalPrimary),selectAllUncheckedColor:i.extend("--ftds-floating-menu-select-all-unchecked-color","",p.contentGlobalPrimary),selectAllUncheckedIconColor:i.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",p.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:i.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",p.contentGlobalPrimary),defaultUncheckedColor:i.extend("--ftds-floating-menu-default-unchecked-color","",p.contentGlobalPrimary),defaultUncheckedIconColor:i.extend("--ftds-floating-menu-default-unchecked-icon-color","",p.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:i.extend("--ftds-floating-menu-default-checked-state-layer-color","",p.contentActionPrimary),defaultCheckedColor:i.extend("--ftds-floating-menu-default-checked-color","",p.contentActionPrimary),defaultCheckedIconColor:i.extend("--ftds-floating-menu-default-checked-icon-color","",p.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)}});var yS,Hf=u(()=>{J();re();ue();yS={menuVerticalGap:i.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:i.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:i.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:i.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:i.extend("--ftds-combobox-menu-new-value-label-color","",p.contentGlobalSubtle),menuNewValueBorderColor:i.extend("--ftds-combobox-menu-new-value-border-color","",p.borderGlobalPrimary),menuNewValueBorderWidth:i.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:i.extend("--ftds-combobox-menu-new-value-error-background-color","",p.backgroundErrorSubtle),menuNewValueErrorBorderColor:i.extend("--ftds-combobox-menu-new-value-error-border-color","",p.borderErrorPrimary),menuNewValueErrorStateLayerColor:i.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",p.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:i.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:i.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:i.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:i.extend("--ftds-combobox-menu-message-label-color","",p.contentGlobalSubtle),valuesChipBackgroundColor:i.extend("--ftds-combobox-values-chip-background-color","",p.backgroundGlobalOnSurface),valuesChipBorderColor:i.extend("--ftds-combobox-values-chip-border-color","",p.borderInputPrimary)}});var bS,Vf=u(()=>{J();re();ue();bS={backgroundColor:i.extend("--ftds-popover-background-color","",p.backgroundGlobalOnSurface),titleColor:i.extend("--ftds-popover-title-color","",p.contentGlobalPrimary),bodyColor:i.extend("--ftds-popover-body-color","",p.contentGlobalSecondary),gap:i.extend("--ftds-popover-gap","",c.spacing2),borderRadius:i.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:i.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:i.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:i.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:i.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:i.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:i.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:i.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:i.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:i.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)}});var vS,Wf=u(()=>{J();re();ue();vS={hoverStateLayerOpacity:i.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:i.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:i.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:i.extend("--ftds-collapsible-focus-focus-ring-color","",p.borderActionFocusRing),activeStateLayerOpacity:i.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:i.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:i.extend("--ftds-collapsible-color","",p.contentGlobalPrimary),stateLayerColor:i.extend("--ftds-collapsible-state-layer-color","",p.contentGlobalPrimary),backgroundColor:i.extend("--ftds-collapsible-background-color","",p.backgroundGlobalOnSurface),borderColor:i.extend("--ftds-collapsible-border-color","",p.borderGlobalSubtle),iconSize:i.extend("--ftds-collapsible-icon-size","",c.iconSize3)}});var xS,jf=u(()=>{J();re();ue();xS={groupHorizontalPadding:i.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:i.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:i.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:i.extend("--ftds-switch-group-background-color","",p.backgroundGlobalSurface),groupBorderColor:i.extend("--ftds-switch-group-border-color","",p.borderGlobalSubtle),groupBorderRadius:i.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:i.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:i.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:i.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:i.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:i.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-switch-off-color","",p.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-switch-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:i.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:i.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:i.extend("--ftds-switch-on-color","",p.contentActionPrimary),onStateLayerColor:i.extend("--ftds-switch-on-state-layer-color","",p.contentActionPrimary),iconHorizontalPadding:i.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:i.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:i.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-switch-focus-focus-ring-color","",p.borderActionFocusRing),optionBorderRadius:i.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)}});var SS,Gf=u(()=>{J();re();SS={color1Light:i.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:i.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:i.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:i.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:i.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:i.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:i.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:i.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:i.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:i.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:i.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:i.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:i.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:i.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:i.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:i.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:i.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:i.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:i.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:i.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:i.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:i.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:i.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:i.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:i.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:i.extend("--ftds-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:i.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:i.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:i.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)}});var CS,Kf=u(()=>{J();re();CS={color1IconColor:i.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:i.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:i.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:i.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:i.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:i.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:i.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:i.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:i.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:i.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:i.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:i.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:i.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:i.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:i.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:i.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)}});var OS,qf=u(()=>{J();re();ue();OS={borderWidth:i.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:i.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:i.extend("--ftds-notice-gap","",c.spacing2),iconSize:i.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:i.extend("--ftds-notice-info-background-color","",p.backgroundInfoSubtle),infoBorderColor:i.extend("--ftds-notice-info-border-color","",p.borderInfoSubtle),infoColor:i.extend("--ftds-notice-info-color","",p.contentInfoPrimary),infoIconColor:i.extend("--ftds-notice-info-icon-color","",p.contentInfoIconOnly),warningBackgroundColor:i.extend("--ftds-notice-warning-background-color","",p.backgroundWarningSubtle),warningBorderColor:i.extend("--ftds-notice-warning-border-color","",p.borderWarningSubtle),warningColor:i.extend("--ftds-notice-warning-color","",p.contentWarningPrimary),warningIconColor:i.extend("--ftds-notice-warning-icon-color","",p.contentWarningIconOnly),errorBackgroundColor:i.extend("--ftds-notice-error-background-color","",p.backgroundErrorSubtle),errorBorderColor:i.extend("--ftds-notice-error-border-color","",p.borderErrorSubtle),errorColor:i.extend("--ftds-notice-error-color","",p.contentErrorPrimary),errorIconColor:i.extend("--ftds-notice-error-icon-color","",p.contentErrorIconOnly),successBackgroundColor:i.extend("--ftds-notice-success-background-color","",p.backgroundSuccessSubtle),successBorderColor:i.extend("--ftds-notice-success-border-color","",p.borderSuccessSubtle),successColor:i.extend("--ftds-notice-success-color","",p.contentSuccessPrimary),successIconColor:i.extend("--ftds-notice-success-icon-color","",p.contentSuccessIconOnly),denseHorizontalPadding:i.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:i.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:i.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:i.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:i.create("--ftds-notice-dense-border-width","","SIZE","0")}});var ES,Zf=u(()=>{J();re();ue();ES={offHoverStateLayerOpacity:i.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:i.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:i.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:i.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:i.extend("--ftds-toggle-off-background-color","",p.contentGlobalSubtle),offIconColor:i.extend("--ftds-toggle-off-icon-color","",p.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-toggle-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:i.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:i.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:i.extend("--ftds-toggle-on-background-color","",p.contentActionPrimary),onStateLayerColor:i.extend("--ftds-toggle-on-state-layer-color","",p.contentActionPrimary),onIconColor:i.extend("--ftds-toggle-on-icon-color","",p.contentActionPrimary),color:i.extend("--ftds-toggle-color","",p.contentGlobalPrimary),focusFocusRingColor:i.extend("--ftds-toggle-focus-focus-ring-color","",p.borderActionFocusRing),gap:i.extend("--ftds-toggle-gap","",c.spacing3)}});var wS,Qf=u(()=>{J();re();ue();wS={iconSize:i.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:i.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:i.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:i.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:i.extend("--ftds-notification-info-background-color","",p.backgroundInfoSubtle),infoColor:i.extend("--ftds-notification-info-color","",p.contentInfoPrimary),infoIconColor:i.extend("--ftds-notification-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-notification-info-border-color","",p.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-notification-success-background-color","",p.backgroundSuccessSubtle),successColor:i.extend("--ftds-notification-success-color","",p.contentSuccessPrimary),successIconColor:i.extend("--ftds-notification-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-notification-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-notification-warning-background-color","",p.backgroundWarningSubtle),warningColor:i.extend("--ftds-notification-warning-color","",p.contentWarningPrimary),warningIconColor:i.extend("--ftds-notification-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-notification-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-notification-error-background-color","",p.backgroundErrorSubtle),errorColor:i.extend("--ftds-notification-error-color","",p.contentErrorPrimary),errorIconColor:i.extend("--ftds-notification-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-notification-error-border-color","",p.borderErrorSubtle),borderRadius:i.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:i.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:i.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:i.extend("--ftds-notification-trailing-gap","",c.spacing8)}});var RS,Yf=u(()=>{J();re();ue();RS={horizontalPadding:i.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:i.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:i.extend("--ftds-tooltip-color","",p.contentGlobalOnColor),backgroundColor:i.extend("--ftds-tooltip-background-color","",p.contentGlobalPrimary),backgroundOpacity:i.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:i.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ftds-tooltip-gap","",c.spacing05)}});var AS,Xf=u(()=>{J();re();ue();AS={verticalPadding:i.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:i.extend("--ftds-reorderable-list-gap","",c.spacing1),borderRadius:i.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:i.extend("--ftds-reorderable-list-reorderable-item-title-color","",p.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:i.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",p.contentGlobalPrimary),reorderableItemUsersCountMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:i.extend("--ftds-reorderable-list-reorderable-item-background-color","",p.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",p.contentWarningPrimary),reorderableItemWarningMessageIconColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",p.contentWarningIconOnly),reorderableItemGripColor:i.extend("--ftds-reorderable-list-reorderable-item-grip-color","",p.contentGlobalSecondary),reorderableItemGripOpacity:i.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:i.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:i.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:i.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:i.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:i.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:i.extend("--ftds-reorderable-list-border-color","",p.borderGlobalPrimary),backgroundColor:i.extend("--ftds-reorderable-list-background-color","",p.backgroundGlobalOnSurfaceDark)}});var LS,Jf=u(()=>{J();re();LS={menuHorizontalPadding:i.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:i.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:i.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:i.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)}});var eh=u(()=>{re();ue();xf();Sf();Cf();Of();Ef();wf();Rf();Af();Lf();kf();Tf();_f();If();Pf();Nf();$f();Df();Mf();Ff();Bf();Uf();zf();Hf();Vf();Wf();jf();Gf();Kf();qf();Zf();Qf();Yf();Xf();Jf()});function hl(r){return`ftds--family-${r}`}function ml(r){return`ftds--size-${r}`}var Ji,en,th=u(()=>{(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Ji||(Ji={}));(function(r){r.large="large",r.medium="medium",r.small="small"})(en||(en={}))});var Yo=u(()=>{J();eh();th()});var gl={};q(gl,{DesignSystemFamily:()=>Ji,DesignSystemSize:()=>en,FtCssVariableFactory:()=>i,badge:()=>aS,banner:()=>nS,button:()=>Z0,card:()=>Q0,chart:()=>SS,checkbox:()=>X0,chip:()=>rS,chipChoice:()=>tS,chipGroup:()=>oS,collapsible:()=>vS,combobox:()=>yS,dateRangePicker:()=>LS,drawer:()=>pS,floatingMenu:()=>gS,foundation:()=>c,link:()=>iS,modal:()=>uS,notice:()=>OS,notification:()=>wS,pageDesigner:()=>CS,pageFooter:()=>cS,pageHeader:()=>lS,pageLayout:()=>dS,popover:()=>bS,radio:()=>J0,reorderableList:()=>AS,resolveFamilyClass:()=>hl,resolveSizeClass:()=>ml,semantic:()=>p,setVariable:()=>A,switch_:()=>xS,table:()=>eS,tabs:()=>fS,textArea:()=>mS,textInput:()=>hS,titleBreadcrumb:()=>sS,toggle:()=>ES,tooltip:()=>RS,treeList:()=>Y0,typographies:()=>K0,typographyBody1Medium:()=>cf,typographyBody1Regular:()=>lf,typographyBody1Semibold:()=>df,typographyBody2Medium:()=>pf,typographyBody2MediumUnderline:()=>ff,typographyBody2Regular:()=>uf,typographyBody2Semibold:()=>hf,typographyCaption1Medium:()=>mf,typographyCaption1Semibold:()=>gf,typographyCaption2Bold:()=>vf,typographyCaption2Medium:()=>yf,typographyCaption2Semibold:()=>bf,typographyDisplay:()=>of,typographyTitle1:()=>nf,typographyTitle2:()=>af,typographyTitle3:()=>sf,typographyVariants:()=>q0});var ia=u(()=>{"use strict";Yo()});var yl={};q(yl,{designSystemVariables:()=>S});var S,bl=u(()=>{"use strict";ia();S={colorPrimary:i.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:i.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:i.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:i.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:i.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:i.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:i.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:i.create("--ft-color-warning","","COLOR","#B74706"),colorError:i.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:i.create("--ft-color-success","","COLOR","#187856"),colorOutline:i.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:i.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:i.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:i.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:i.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:i.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:i.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:i.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:i.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:i.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:i.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:i.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:i.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:i.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:i.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:i.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:i.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:i.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:i.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:i.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:i.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:i.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:i.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:i.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:i.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:i.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:i.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:i.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:i.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:i.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:i.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:i.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:i.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:i.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:i.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:i.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:i.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:i.create("--ft-elevation-00","","SHADOW","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:i.create("--ft-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)"),elevation02:i.create("--ft-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)"),elevation03:i.create("--ft-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)"),elevation04:i.create("--ft-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)"),elevation06:i.create("--ft-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)"),elevation08:i.create("--ft-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)"),elevation12:i.create("--ft-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)"),elevation16:i.create("--ft-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)"),elevation24:i.create("--ft-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)"),borderRadiusS:i.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:i.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:i.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:i.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:i.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:i.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")}});var vl={};q(vl,{DynamicImporter:()=>na,dynamicImporter:()=>kS});var na,kS,xl=u(()=>{"use strict";na=class{async import(e){if(e)return import(e)}},kS=new na});function Ol(r,e,t){return ct(r,co(e,t))}function Xo(r,e){return typeof r=="function"?r(e):r}function Nr(r){return r.split("-")[0]}function tr(r){return r.split("-")[1]}function El(r){return r==="x"?"y":"x"}function wl(r){return r==="y"?"height":"width"}function Jo(r){let e=r[0];return e==="t"||e==="b"?"y":"x"}function Rl(r){return El(Jo(r))}function ih(r,e,t){t===void 0&&(t=!1);let o=tr(r),n=Rl(r),a=wl(n),s=n==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Sl(s)),[s,Sl(s)]}function nh(r){return r.includes("start")?r.replace("start","end"):r.replace("end","start")}function Sl(r){let e=Nr(r);return TS[e]+r.slice(e.length)}function _S(r){return{top:0,right:0,bottom:0,left:0,...r}}function ah(r){return typeof r!="number"?_S(r):{top:r,right:r,bottom:r,left:r}}function uo(r){let{x:e,y:t,width:o,height:n}=r;return{width:o,height:n,top:t,left:e,right:e+o,bottom:t+n,x:e,y:t}}var oh,rh,Cl,co,ct,tn,Vt,TS,aa=u(()=>{oh=["top","right","bottom","left"],rh=["start","end"],Cl=oh.reduce((r,e)=>r.concat(e,e+"-"+rh[0],e+"-"+rh[1]),[]),co=Math.min,ct=Math.max,tn=Math.round,Vt=r=>({x:r,y:r}),TS={left:"right",right:"left",bottom:"top",top:"bottom"}});function sh(r,e,t){let{reference:o,floating:n}=r,a=Jo(e),s=Rl(e),l=wl(s),d=Nr(e),f=a==="y",m=o.x+o.width/2-n.width/2,g=o.y+o.height/2-n.height/2,y=o[l]/2-n[l]/2,x;switch(d){case"top":x={x:m,y:o.y-n.height};break;case"bottom":x={x:m,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:g};break;case"left":x={x:o.x-n.width,y:g};break;default:x={x:o.x,y:o.y}}switch(tr(e)){case"start":x[s]-=y*(t&&f?-1:1);break;case"end":x[s]+=y*(t&&f?-1:1);break}return x}async function lh(r,e){var t;e===void 0&&(e={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:y=!1,padding:x=0}=Xo(e,r),v=ah(x),_=l[y?g==="floating"?"reference":"floating":g],P=uo(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(_)))==null||t?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:f,rootBoundary:m,strategy:d})),$=g==="floating"?{x:o,y:n,width:s.floating.width,height:s.floating.height}:s.reference,E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),C=await(a.isElement==null?void 0:a.isElement(E))?await(a.getScale==null?void 0:a.getScale(E))||{x:1,y:1}:{x:1,y:1},L=uo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:$,offsetParent:E,strategy:d}):$);return{top:(P.top-L.top+v.top)/C.y,bottom:(L.bottom-P.bottom+v.bottom)/C.y,left:(P.left-L.left+v.left)/C.x,right:(L.right-P.right+v.right)/C.x}}function PS(r,e,t){return(r?[...t.filter(n=>tr(n)===r),...t.filter(n=>tr(n)!==r)]:t.filter(n=>Nr(n)===n)).filter(n=>r?tr(n)===r||(e?nh(n)!==n:!1):!0)}async function $S(r,e){let{placement:t,platform:o,elements:n}=r,a=await(o.isRTL==null?void 0:o.isRTL(n.floating)),s=Nr(t),l=tr(t),d=Jo(t)==="y",f=NS.has(s)?-1:1,m=a&&d?-1:1,g=Xo(e,r),{mainAxis:y,crossAxis:x,alignmentAxis:v}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return l&&typeof v=="number"&&(x=l==="end"?v*-1:v),d?{x:x*m,y:y*f}:{x:y*f,y:x*m}}var IS,ch,dh,NS,uh,ph,fh,hh=u(()=>{aa();aa();IS=50,ch=async(r,e,t)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=s.detectOverflow?s:{...s,detectOverflow:lh},d=await(s.isRTL==null?void 0:s.isRTL(e)),f=await s.getElementRects({reference:r,floating:e,strategy:n}),{x:m,y:g}=sh(f,o,d),y=o,x=0,v={};for(let w=0;w<a.length;w++){let _=a[w];if(!_)continue;let{name:P,fn:$}=_,{x:E,y:C,data:L,reset:D}=await $({x:m,y:g,initialPlacement:o,placement:y,strategy:n,middlewareData:v,rects:f,platform:l,elements:{reference:r,floating:e}});m=E??m,g=C??g,v[P]={...v[P],...L},D&&x<IS&&(x++,typeof D=="object"&&(D.placement&&(y=D.placement),D.rects&&(f=D.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:n}):D.rects),{x:m,y:g}=sh(f,y,d)),w=-1)}return{x:m,y:g,placement:y,strategy:n,middlewareData:v}};dh=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,o,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:f}=e,{crossAxis:m=!1,alignment:g,allowedPlacements:y=Cl,autoAlignment:x=!0,...v}=Xo(r,e),w=g!==void 0||y===Cl?PS(g||null,x,y):y,_=await d.detectOverflow(e,v),P=((t=s.autoPlacement)==null?void 0:t.index)||0,$=w[P];if($==null)return{};let E=ih($,a,await(d.isRTL==null?void 0:d.isRTL(f.floating)));if(l!==$)return{reset:{placement:w[0]}};let C=[_[Nr($)],_[E[0]],_[E[1]]],L=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:$,overflows:C}],D=w[P+1];if(D)return{data:{index:P+1,overflows:L},reset:{placement:D}};let X=L.map(z=>{let G=tr(z.placement);return[z.placement,G&&m?z.overflows.slice(0,2).reduce((ae,$e)=>ae+$e,0):z.overflows[0],z.overflows]}).sort((z,G)=>z[1]-G[1]),se=((n=X.filter(z=>z[2].slice(0,tr(z[0])?2:3).every(G=>G<=0))[0])==null?void 0:n[0])||X[0][0];return se!==l?{data:{index:P+1,overflows:L},reset:{placement:se}}:{}}}},NS=new Set(["left","top"]);uh=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,o;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await $S(e,r);return s===((t=l.offset)==null?void 0:t.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},ph=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:o,placement:n,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:P=>{let{x:$,y:E}=P;return{x:$,y:E}}},...f}=Xo(r,e),m={x:t,y:o},g=await a.detectOverflow(e,f),y=Jo(Nr(n)),x=El(y),v=m[x],w=m[y];if(s){let P=x==="y"?"top":"left",$=x==="y"?"bottom":"right",E=v+g[P],C=v-g[$];v=Ol(E,v,C)}if(l){let P=y==="y"?"top":"left",$=y==="y"?"bottom":"right",E=w+g[P],C=w-g[$];w=Ol(E,w,C)}let _=d.fn({...e,[x]:v,[y]:w});return{..._,data:{x:_.x-t,y:_.y-o,enabled:{[x]:s,[y]:l}}}}}},fh=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){var t,o;let{placement:n,rects:a,platform:s,elements:l}=e,{apply:d=()=>{},...f}=Xo(r,e),m=await s.detectOverflow(e,f),g=Nr(n),y=tr(n),x=Jo(n)==="y",{width:v,height:w}=a.floating,_,P;g==="top"||g==="bottom"?(_=g,P=y===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(P=g,_=y==="end"?"top":"bottom");let $=w-m.top-m.bottom,E=v-m.left-m.right,C=co(w-m[_],$),L=co(v-m[P],E),D=!e.middlewareData.shift,X=C,_e=L;if((t=e.middlewareData.shift)!=null&&t.enabled.x&&(_e=E),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(X=$),D&&!y){let z=ct(m.left,0),G=ct(m.right,0),ae=ct(m.top,0),$e=ct(m.bottom,0);x?_e=v-2*(z!==0||G!==0?z+G:ct(m.left,m.right)):X=w-2*(ae!==0||$e!==0?ae+$e:ct(m.top,m.bottom))}await d({...e,availableWidth:_e,availableHeight:X});let se=await s.getDimensions(l.floating);return v!==se.width||w!==se.height?{reset:{rects:!0}}:{}}}}});function la(){return typeof window<"u"}function fo(r){return gh(r)?(r.nodeName||"").toLowerCase():"#document"}function dt(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function rr(r){var e;return(e=(gh(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function gh(r){return la()?r instanceof Node||r instanceof dt(r).Node:!1}function Pt(r){return la()?r instanceof Element||r instanceof dt(r).Element:!1}function or(r){return la()?r instanceof HTMLElement||r instanceof dt(r).HTMLElement:!1}function mh(r){return!la()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof dt(r).ShadowRoot}function ei(r){let{overflow:e,overflowX:t,overflowY:o,display:n}=Nt(r);return/auto|scroll|overlay|hidden|clip/.test(e+o+t)&&n!=="inline"&&n!=="contents"}function yh(r){return/^(table|td|th)$/.test(fo(r))}function rn(r){try{if(r.matches(":popover-open"))return!0}catch{}try{return r.matches(":modal")}catch{return!1}}function ti(r){let e=Pt(r)?Nt(r):r;return po(e.transform)||po(e.translate)||po(e.scale)||po(e.rotate)||po(e.perspective)||!ca()&&(po(e.backdropFilter)||po(e.filter))||DS.test(e.willChange||"")||MS.test(e.contain||"")}function bh(r){let e=br(r);for(;or(e)&&!ho(e);){if(ti(e))return e;if(rn(e))return null;e=br(e)}return null}function ca(){return Al==null&&(Al=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Al}function ho(r){return/^(html|body|#document)$/.test(fo(r))}function Nt(r){return dt(r).getComputedStyle(r)}function on(r){return Pt(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function br(r){if(fo(r)==="html")return r;let e=r.assignedSlot||r.parentNode||mh(r)&&r.host||rr(r);return mh(e)?e.host:e}function vh(r){let e=br(r);return ho(e)?r.ownerDocument?r.ownerDocument.body:r.body:or(e)&&ei(e)?e:vh(e)}function sa(r,e,t){var o;e===void 0&&(e=[]),t===void 0&&(t=!0);let n=vh(r),a=n===((o=r.ownerDocument)==null?void 0:o.body),s=dt(n);if(a){let l=da(s);return e.concat(s,s.visualViewport||[],ei(n)?n:[],l&&t?sa(l):[])}else return e.concat(n,sa(n,[],t))}function da(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}var DS,MS,po,Al,Ll=u(()=>{DS=/transform|translate|scale|rotate|perspective|filter/,MS=/paint|layout|strict|content/,po=r=>!!r&&r!=="none"});function Oh(r){let e=Nt(r),t=parseFloat(e.width)||0,o=parseFloat(e.height)||0,n=or(r),a=n?r.offsetWidth:t,s=n?r.offsetHeight:o,l=tn(t)!==a||tn(o)!==s;return l&&(t=a,o=s),{width:t,height:o,$:l}}function Eh(r){return Pt(r)?r:r.contextElement}function ri(r){let e=Eh(r);if(!or(e))return Vt(1);let t=e.getBoundingClientRect(),{width:o,height:n,$:a}=Oh(e),s=(a?tn(t.width):t.width)/o,l=(a?tn(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function wh(r){let e=dt(r);return!ca()||!e.visualViewport?FS:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function BS(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==dt(r)?!1:e}function nn(r,e,t,o){e===void 0&&(e=!1),t===void 0&&(t=!1);let n=r.getBoundingClientRect(),a=Eh(r),s=Vt(1);e&&(o?Pt(o)&&(s=ri(o)):s=ri(r));let l=BS(a,t,o)?wh(a):Vt(0),d=(n.left+l.x)/s.x,f=(n.top+l.y)/s.y,m=n.width/s.x,g=n.height/s.y;if(a){let y=dt(a),x=o&&Pt(o)?dt(o):o,v=y,w=da(v);for(;w&&o&&x!==v;){let _=ri(w),P=w.getBoundingClientRect(),$=Nt(w),E=P.left+(w.clientLeft+parseFloat($.paddingLeft))*_.x,C=P.top+(w.clientTop+parseFloat($.paddingTop))*_.y;d*=_.x,f*=_.y,m*=_.x,g*=_.y,d+=E,f+=C,v=dt(w),w=da(v)}}return uo({width:m,height:g,x:d,y:f})}function ua(r,e){let t=on(r).scrollLeft;return e?e.left+t:nn(rr(r)).left+t}function Rh(r,e){let t=r.getBoundingClientRect(),o=t.left+e.scrollLeft-ua(r,t),n=t.top+e.scrollTop;return{x:o,y:n}}function US(r){let{elements:e,rect:t,offsetParent:o,strategy:n}=r,a=n==="fixed",s=rr(o),l=e?rn(e.floating):!1;if(o===s||l&&a)return t;let d={scrollLeft:0,scrollTop:0},f=Vt(1),m=Vt(0),g=or(o);if((g||!g&&!a)&&((fo(o)!=="body"||ei(s))&&(d=on(o)),g)){let x=nn(o);f=ri(o),m.x=x.x+o.clientLeft,m.y=x.y+o.clientTop}let y=s&&!g&&!a?Rh(s,d):Vt(0);return{width:t.width*f.x,height:t.height*f.y,x:t.x*f.x-d.scrollLeft*f.x+m.x+y.x,y:t.y*f.y-d.scrollTop*f.y+m.y+y.y}}function zS(r){return Array.from(r.getClientRects())}function HS(r){let e=rr(r),t=on(r),o=r.ownerDocument.body,n=ct(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=ct(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-t.scrollLeft+ua(r),l=-t.scrollTop;return Nt(o).direction==="rtl"&&(s+=ct(e.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:l}}function VS(r,e){let t=dt(r),o=rr(r),n=t.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let m=ca();(!m||m&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}let f=ua(o);if(f<=0){let m=o.ownerDocument,g=m.body,y=getComputedStyle(g),x=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,v=Math.abs(o.clientWidth-g.clientWidth-x);v<=xh&&(a-=v)}else f<=xh&&(a+=f);return{width:a,height:s,x:l,y:d}}function WS(r,e){let t=nn(r,!0,e==="fixed"),o=t.top+r.clientTop,n=t.left+r.clientLeft,a=or(r)?ri(r):Vt(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=n*a.x,f=o*a.y;return{width:s,height:l,x:d,y:f}}function Sh(r,e,t){let o;if(e==="viewport")o=VS(r,t);else if(e==="document")o=HS(rr(r));else if(Pt(e))o=WS(e,t);else{let n=wh(r);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return uo(o)}function Ah(r,e){let t=br(r);return t===e||!Pt(t)||ho(t)?!1:Nt(t).position==="fixed"||Ah(t,e)}function jS(r,e){let t=e.get(r);if(t)return t;let o=sa(r,[],!1).filter(l=>Pt(l)&&fo(l)!=="body"),n=null,a=Nt(r).position==="fixed",s=a?br(r):r;for(;Pt(s)&&!ho(s);){let l=Nt(s),d=ti(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||ei(s)&&!d&&Ah(r,s))?o=o.filter(m=>m!==s):n=l,s=br(s)}return e.set(r,o),o}function GS(r){let{element:e,boundary:t,rootBoundary:o,strategy:n}=r,s=[...t==="clippingAncestors"?rn(e)?[]:jS(e,this._c):[].concat(t),o],l=Sh(e,s[0],n),d=l.top,f=l.right,m=l.bottom,g=l.left;for(let y=1;y<s.length;y++){let x=Sh(e,s[y],n);d=ct(x.top,d),f=co(x.right,f),m=co(x.bottom,m),g=ct(x.left,g)}return{width:f-g,height:m-d,x:g,y:d}}function KS(r){let{width:e,height:t}=Oh(r);return{width:e,height:t}}function qS(r,e,t){let o=or(e),n=rr(e),a=t==="fixed",s=nn(r,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Vt(0);function f(){d.x=ua(n)}if(o||!o&&!a)if((fo(e)!=="body"||ei(n))&&(l=on(e)),o){let x=nn(e,!0,a,e);d.x=x.x+e.clientLeft,d.y=x.y+e.clientTop}else n&&f();a&&!o&&n&&f();let m=n&&!o&&!a?Rh(n,l):Vt(0),g=s.left+l.scrollLeft-d.x-m.x,y=s.top+l.scrollTop-d.y-m.y;return{x:g,y,width:s.width,height:s.height}}function kl(r){return Nt(r).position==="static"}function Ch(r,e){if(!or(r)||Nt(r).position==="fixed")return null;if(e)return e(r);let t=r.offsetParent;return rr(r)===t&&(t=t.ownerDocument.body),t}function Lh(r,e){let t=dt(r);if(rn(r))return t;if(!or(r)){let n=br(r);for(;n&&!ho(n);){if(Pt(n)&&!kl(n))return n;n=br(n)}return t}let o=Ch(r,e);for(;o&&yh(o)&&kl(o);)o=Ch(o,e);return o&&ho(o)&&kl(o)&&!ti(o)?t:o||bh(r)||t}function QS(r){return Nt(r).direction==="rtl"}var FS,xh,ZS,oi,kh,Tl,Th,_h,_l,Ih=u(()=>{hh();aa();Ll();FS=Vt(0);xh=25;ZS=async function(r){let e=this.getOffsetParent||Lh,t=this.getDimensions,o=await t(r.floating);return{reference:qS(r.reference,await e(r.floating),r.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};oi={convertOffsetParentRelativeRectToViewportRelativeRect:US,getDocumentElement:rr,getClippingRect:GS,getOffsetParent:Lh,getElementRects:ZS,getClientRects:zS,getDimensions:KS,getScale:ri,isElement:Pt,isRTL:QS},kh=uh,Tl=dh,Th=ph,_h=fh,_l=(r,e,t)=>{let o=new Map,n={platform:oi,...t},a={...n.platform,_c:o};return ch(r,e,{...n,platform:a})}});function Pl(r){return YS(r)}function Il(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function YS(r){for(let e=r;e;e=Il(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Il(r);e;e=Il(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||ti(t)||e.tagName==="BODY"))return e}return null}var Ph=u(()=>{Ll()});var Dl={};q(Dl,{computeOffsetAutoPosition:()=>$l,computeOffsetPosition:()=>Nl});async function Nl(r,e,t){let o;return typeof t=="object"?o=t:o={placement:t},_l(r,e,{strategy:o.strategy,platform:{...oi,getOffsetParent:n=>oi.getOffsetParent(n,Pl)},middleware:[Th({crossAxis:!0}),Tl({allowedPlacements:[o.placement]})]})}async function $l(r,e,t,o,n,a,s){let l,d;return typeof t=="object"?(l=t.placement,o=t.allowedPlacements,n=t.strategy,a=t.maxHeightCssVariable,d=t.maxWidthCssVariable,s=t.offsetValue):l=t,_l(r,e,{placement:l,strategy:n,platform:{...oi,getOffsetParent:f=>oi.getOffsetParent(f,Pl)},middleware:[kh(s??4),Tl({allowedPlacements:o}),_h({apply({availableHeight:f,availableWidth:m,elements:g}){typeof a=="string"&&(a=`var(${a})`),a?g.floating.style.maxHeight=`min(${Math.max(0,f)}px, ${a})`:g.floating.style.maxHeight=`${Math.max(0,f)}px`,typeof d=="string"&&(d=`var(${d})`),d?g.floating.style.maxWidth=`min(${Math.max(0,m)}px, ${d})`:g.floating.style.maxWidth=`${Math.max(0,m)}px`}})]})}var pa=u(()=>{"use strict";Ih();Ph()});var Ml={};q(Ml,{isSlotEmptyOrWithoutContent:()=>an});var an,Fl=u(()=>{"use strict";an=r=>r?r.assignedNodes({flatten:!0}).filter(o=>{var n;return o.nodeType===Node.TEXT_NODE?((n=o.textContent)!==null&&n!==void 0?n:"").trim().length>0:!0}).length===0:!0});var Bl={};q(Bl,{ScopedRegistryLitElement:()=>sn});var sn,fa=u(()=>{"use strict";T();Hn();lo();sn=class extends kt{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let t={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(t);return zi(o,e.elementStyles),o}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([t,o])=>this.defineScopedElement(t,o))}static defineScopedElement(e,t){Zi(e)(t),this.canDefineScopedElement(e)&&this.registry.define(e,t)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,t){this.scopedRegistryConstructor.defineScopedElement(e,t)}}});var zl={};q(zl,{shadowQuerySelector:()=>Ul,shadowQuerySelectorAll:()=>XS});function Ul(r,e,...t){var o;let n=r.querySelector(e);for(let a of t)n=(o=n?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return n}function XS(r,e,...t){let o=[...r.querySelectorAll(e)];for(let n of t)o=o.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return o}var ha=u(()=>{"use strict"});var Hl={};q(Hl,{ExportpartsUpdatedEvent:()=>mo,FtLitElement:()=>F});var ii,Mh,Nh,$h,Fh,Dh,mo,F,ln=u(()=>{"use strict";K();lo();oa();fa();ha();ii=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Nh=Symbol("constructorPrototype"),$h=Symbol("constructorName"),Fh=Symbol("exportpartsDebouncer"),Dh=Symbol("dynamicDependenciesLoaded"),mo=class r extends CustomEvent{constructor(){super(r.eventName,{bubbles:!0})}};mo.eventName="exportparts-updated";F=class extends sn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Mh]=new ne(5),this.scheduleExportpartsUpdate=()=>{var e,t,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&o!==void 0&&o)&&this[Fh].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[$h]=this.constructor.name,this[Nh]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[$h]&&Object.setPrototypeOf(this,this[Nh])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let t=this.constructor;t[Dh]||(t[Dh]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(mo.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(mo.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new mo)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:t,selector:o,shadowPath:n}=this.elementToFocus;if(o!=null){let a=[...n??[],o];t=Ul(this.shadowRoot,...a)}t?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||t?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var t,o,n;if(((o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var t,o,n,a,s,l;let d=y=>y!=null&&y.trim().length>0,f=e.filter(d).map(y=>y.trim());if(f.length===0){this.exportparts=void 0;return}let m=new Set;for(let y of(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let x=(a=(n=y.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],v=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(_=>_.split(":")[1]))!==null&&l!==void 0?l:[],w=[...x,...v].filter(d).map(_=>_.trim());for(let _ of w)m.add(_)}if(m.size===0){this.exportparts=void 0;return}let g=[...m.values()].flatMap(y=>f.map(x=>`${y}:${x}--${y}`));this.exportparts=[...this.part,...g].join(", ")}};Mh=Fh;ii([h()],F.prototype,"exportpartsPrefix",void 0);ii([de([])],F.prototype,"exportpartsPrefixes",void 0);ii([h({reflect:!0})],F.prototype,"exportparts",void 0);ii([h()],F.prototype,"customStylesheet",void 0);ii([h()],F.prototype,"elementToFocus",void 0);ii([I()],F.prototype,"useAdoptedStyleSheets",void 0)});var Wl={};q(Wl,{FtdsBase:()=>Vl,toFtdsBase:()=>Uh});var Bh,Uh,Vl,jl=u(()=>{"use strict";ln();K();Yo();rt();Bh=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Uh=Ee(Symbol("toFtdsBase"),function(r){class e extends r{constructor(){super(...arguments),this.size=en.medium,this.family=Ji.neutral}getDesignSystemBaseClasses(){return{[hl(this.family)]:!0,[ml(this.size)]:!0}}}return Bh([h()],e.prototype,"size",void 0),Bh([h()],e.prototype,"family",void 0),e}),Vl=class extends Uh(F){}});var zh={};var Gl=u(()=>{"use strict"});var go,Hh=u(()=>{go=class r{constructor(e,t=!0,o=[],n=5e3){this.ctx=e,this.iframes=t,this.exclude=o,this.iframesTimeout=n}static matches(e,t){let o=typeof t=="string"?[t]:t,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let n=t.filter(a=>a.contains(o)).length>0;t.indexOf(o)===-1&&!n&&t.push(o)}),t}getIframeContents(e,t,o=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&t(n)}isIframeBlank(e){let t="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&o!==t&&o}observeIframeLoad(e,t,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,o):this.getIframeContents(e,t,o):this.observeIframeLoad(e,t,o)}catch{o()}}waitForIframes(e,t){let o=0;this.forEachIframe(e,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||t()})},n=>{n||t()})}forEachIframe(e,t,o,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(f=>{r.matches(f,this.exclude)?d():this.onIframeReady(f,m=>{t(f)&&(l++,o(m)),d()},d)})}createIterator(e,t,o){return document.createNodeIterator(e,t,o,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,o){let n=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(t!==null){let s=t.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),o;return t===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:t,node:o}}checkIframeFilter(e,t,o,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===o&&(a=d,s=l.handled)}),this.compareNodeIframe(e,t,o)?(a===!1&&!s?n.push({val:o,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:o,handled:!1}),!1)}handleOpenIframes(e,t,o,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,o,n)})})}iterateThroughNodes(e,t,o,n,a){let s=this.createIterator(t,e,n),l=[],d=[],f,m,g=()=>({prevNode:m,node:f}=this.getIteratorNode(s),f);for(;g();)this.iframes&&this.forEachIframe(t,y=>this.checkIframeFilter(f,m,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(e,x=>d.push(x),n)}),d.push(f);d.forEach(y=>{o(y)}),this.iframes&&this.handleOpenIframes(l,e,o,n),a()}forEachNode(e,t,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,t,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}}});var cn,Vh=u(()=>{Hh();cn=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){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},e)}get opt(){return this._opt}get iterator(){return new go(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[t]=="function"&&o[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let t=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){let s=t[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${o}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&t.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,n=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&t.indexOf(n)===-1&&t.push(n)}):o.trim()&&t.indexOf(o)===-1&&t.push(o)}),{keywords:t.sort((o,n)=>n.length-o.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let t=[],o=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,o);l&&(n.start=a,n.length=s-a,t.push(n),o=s)}),t}callNoMatchOnInvalidRanges(e,t){let o,n,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),n=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-t>0&&n-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:o,end:n,valid:a}}checkWhitespaceRanges(e,t,o){let n,a=!0,s=o.length,l=t-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,n=d+parseInt(e.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):o.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:a}}getTextNodes(e){let t="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:t.length,end:(t+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:o})})}matchesExclude(e){return go.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,o){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(o-t),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,t,o,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>t){if(!n(s.node))return!1;let f=t-s.start,m=(o>s.end?s.end:o)-s.start,g=e.value.substr(0,s.start),y=e.value.substr(m+s.start);if(s.node=this.wrapRangeInTextNode(s.node,f,m),e.value=g+y,e.nodes.forEach((x,v)=>{v>=l&&(e.nodes[v].start>0&&v!==l&&(e.nodes[v].start-=m),e.nodes[v].end-=m)}),o-=m,a(s.node.previousSibling,s.start),o>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,o,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let f;for(;(f=e.exec(d.textContent))!==null&&f[s]!=="";){if(!o(f[s],d))continue;let m=f.index;if(s!==0)for(let g=1;g<s;g++)m+=f[g].length;d=this.wrapRangeInTextNode(d,m,m+f[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,o,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let f=d.index;if(s!==0)for(let g=1;g<s;g++)f+=d[g].length;let m=f+d[s].length;this.wrapRangeInMappedTextNode(l,f,m,g=>o(d[s],g),(g,y)=>{e.lastIndex=y,n(g)})}a()})}wrapRangeFromIndex(e,t,o,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:f,end:m,valid:g}=this.checkWhitespaceRanges(l,s,a.value);g&&this.wrapRangeInMappedTextNode(a,f,m,y=>t(y,l,a.value.substring(f,m),d),y=>{o(y,l)})}),n()})}unwrapMatches(e){let t=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));t.replaceChild(o,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,t){this.opt=t;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=f=>{let m=new RegExp(this.createRegExp(f),`gm${l}`),g=0;this.log(`Searching with expression "${m}"`),this[n](m,1,(y,x)=>this.opt.filter(x,f,o,g),y=>{g++,o++,this.opt.each(y)},()=>{g===0&&this.opt.noMatch(f),a[s-1]===f?this.opt.done(o):d(a[a.indexOf(f)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(o):d(a[0])}markRanges(e,t){this.opt=t;let o=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=go.matches(o,t),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}}});function Kl(r){let e=new cn(r);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}var Wh=u(()=>{Vh()});var Zl={};q(Zl,{highlightHtml:()=>ql,highlightHtmlColorCssVariable:()=>jh,highlightHtmlStyles:()=>eC});function ql(r,e,t){var o,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new JS(r);if(s.unmark(),e&&e.trim()){let l={className:(o=t?.className)!==null&&o!==void 0?o:"highlight-html-match",acrossElements:!0};t?.attributes!=null&&(l.each=(f=>{for(let m in t.attributes)f.setAttribute(m,t.attributes[m])})),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(f=>s.mark(f.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var JS,jh,eC,Ql=u(()=>{"use strict";T();Yo();Wh();JS=Kl,jh=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),eC=R`
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ep=/'/g,wp=/"/g,Lp=/^(?:script|style|textarea|title)$/i,_s=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),b=_s(1),Is=_s(2),Ps=_s(3),De=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),Rp=new WeakMap,ro=oo.createTreeWalker(oo,129);Tp=(r,e)=>{let t=r.length-1,o=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=Wi;for(let l=0;l<t;l++){let d=r[l],f,m,g=-1,y=0;for(;y<d.length&&(s.lastIndex=y,m=s.exec(d),m!==null);)y=s.lastIndex,s===Wi?m[1]==="!--"?s=Cp:m[1]!==void 0?s=Op:m[2]!==void 0?(Lp.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=to):m[3]!==void 0&&(s=to):s===to?m[0]===">"?(s=n??Wi,g=-1):m[1]===void 0?g=-2:(g=s.lastIndex-m[2].length,f=m[1],s=m[3]===void 0?to:m[3]==='"'?wp:Ep):s===wp||s===Ep?s=to:s===Cp||s===Op?s=Wi:(s=to,n=void 0);let x=s===to&&r[l+1].startsWith("/>")?" ":"";a+=s===Wi?d+k0:g>=0?(o.push(f),d.slice(0,g)+Ls+d.slice(g)+mr+x):d+mr+(g===-2?l:x)}return[kp(r,a+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},Ki=class r{constructor({strings:e,_$litType$:t},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[f,m]=Tp(e,t);if(this.el=r.createElement(f,o),ro.currentNode=this.el.content,t===2||t===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(n=ro.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let g of n.getAttributeNames())if(g.endsWith(Ls)){let y=m[s++],x=n.getAttribute(g).split(mr),v=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:v[2],strings:x,ctor:v[1]==="."?Gn:v[1]==="?"?Kn:v[1]==="@"?qn:no}),n.removeAttribute(g)}else g.startsWith(mr)&&(d.push({type:6,index:a}),n.removeAttribute(g));if(Lp.test(n.tagName)){let g=n.textContent.split(mr),y=g.length-1;if(y>0){n.textContent=Wn?Wn.emptyScript:"";for(let x=0;x<y;x++)n.append(g[x],ji()),ro.nextNode(),d.push({type:2,index:++a});n.append(g[y],ji())}}}else if(n.nodeType===8)if(n.data===ks)d.push({type:2,index:a});else{let g=-1;for(;(g=n.data.indexOf(mr,g+1))!==-1;)d.push({type:7,index:a}),g+=mr.length-1}a++}}static createElement(e,t){let o=oo.createElement("template");return o.innerHTML=e,o}};jn=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,n=(e?.creationScope??oo).importNode(t,!0);ro.currentNode=n;let a=ro.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let f;d.type===2?f=new Wo(a,a.nextSibling,this,e):d.type===1?f=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(f=new Zn(a,this,e)),this._$AV.push(f),d=o[++l]}s!==d?.index&&(a=ro.nextNode(),s++)}return ro.currentNode=oo,n}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},Wo=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,n){this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=io(this,e,t),Gi(e)?e===k||e==null||e===""?(this._$AH!==k&&this._$AR(),this._$AH=k):e!==this._$AH&&e!==De&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ap(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==k&&Gi(this._$AH)?this._$AA.nextSibling.data=e:this.T(oo.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Ki.createElement(kp(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new jn(n,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(e){let t=Rp.get(e.strings);return t===void 0&&Rp.set(e.strings,t=new Ki(e)),t}k(e){Ts(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let a of e)n===t.length?t.push(o=new r(this.O(ji()),this.O(ji()),this,this.options)):o=t[n],o._$AI(a),n++;n<t.length&&(this._$AR(o&&o._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},no=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,n,a){this.type=1,this._$AH=k,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=k}_$AI(e,t=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=io(this,e,t,0),s=!Gi(e)||e!==this._$AH&&e!==De,s&&(this._$AH=e);else{let l=e,d,f;for(e=a[0],d=0;d<a.length-1;d++)f=io(this,l[o+d],t,d),f===De&&(f=this._$AH[d]),s||=!Gi(f)||f!==this._$AH[d],f===k?e=k:e!==k&&(e+=(f??"")+a[d+1]),this._$AH[d]=f}s&&!n&&this.j(e)}j(e){e===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Gn=class extends no{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===k?void 0:e}},Kn=class extends no{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==k)}},qn=class extends no{constructor(e,t,o,n,a){super(e,t,o,n,a),this.type=5}_$AI(e,t=this){if((e=io(this,e,t,0)??k)===De)return;let o=this._$AH,n=e===k&&o!==k||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==k&&(o===k||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Zn=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){io(this,e)}},Ns={M:Ls,P:mr,A:ks,C:1,L:Tp,R:jn,D:Ap,V:io,I:Wo,H:no,N:Kn,U:qn,B:Gn,F:Zn},T0=As.litHtmlPolyfillSupport;T0?.(Ki,Wo),(As.litHtmlVersions??=[]).push("3.3.0");$s=(r,e,t)=>{let o=t?.renderBefore??e,n=o._$litPart$;if(n===void 0){let a=t?.renderBefore??null;o._$litPart$=n=new Wo(e.insertBefore(ji(),a),a,void 0,t??{})}return n._$AI(r),n}});var Ds,kt,_0,_p,Ms=u(()=>{Vo();Vo();Lt();Lt();Ds=globalThis,kt=class extends At{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=$s(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return De}};kt._$litElement$=!0,kt.finalized=!0,Ds.litElementHydrateSupport?.({LitElement:kt});_0=Ds.litElementPolyfillSupport;_0?.({LitElement:kt});_p={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(Ds.litElementVersions??=[]).push("4.2.0")});var HO,Ip=u(()=>{HO=!1});var Fs={};q(Fs,{CSSResult:()=>zo,LitElement:()=>kt,ReactiveElement:()=>At,_$LE:()=>_p,_$LH:()=>Ns,adoptStyles:()=>zi,css:()=>R,defaultConverter:()=>Ho,getCompatibleStyle:()=>zn,html:()=>b,isServer:()=>HO,mathml:()=>Ps,noChange:()=>De,notEqual:()=>Vi,nothing:()=>k,render:()=>$s,supportsAdoptingStyleSheets:()=>Ui,svg:()=>Is,unsafeCSS:()=>eo});var T=u(()=>{Vo();Lt();Ms();Ip()});var I0,Pp=u(()=>{I0=r=>(e,t)=>{t!==void 0?t.addInitializer((()=>{customElements.define(r,e)})):customElements.define(r,e)}});function h(r){return(e,t)=>typeof t=="object"?Np(r,e,t):((o,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,o),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,e,t)}var P0,Np,Bs=u(()=>{Vo();P0={attribute:!0,type:String,converter:Ho,reflect:!1,hasChanged:Vi},Np=(r=P0,e,t)=>{let{kind:o,metadata:n}=t,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),o==="setter"&&((r=Object.create(r)).wrapped=!0),a.set(t.name,r),o==="accessor"){let{name:s}=t;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,r)},init(l){return l!==void 0&&this.C(s,void 0,r,l),l}}}if(o==="setter"){let{name:s}=t;return function(l){let d=this[s];e.call(this,l),this.requestUpdate(s,d,r)}}throw Error("Unsupported decorator location: "+o)}});function I(r){return h({...r,state:!0,attribute:!1})}var $p=u(()=>{Bs();});function N0(r){return(e,t)=>{let o=typeof e=="function"?e:e[t];Object.assign(o,r)}}var Dp=u(()=>{});var zt,jo=u(()=>{zt=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t)});function B(r,e){return(t,o,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:l}=typeof o=="object"?t:n??(()=>{let d=Symbol();return{get(){return this[d]},set(f){this[d]=f}}})();return zt(t,o,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return zt(t,o,{get(){return a(this)}})}}var Mp=u(()=>{jo();});function Us(r){return(e,t)=>zt(e,t,{get(){return(this.renderRoot??($0??=document.createDocumentFragment())).querySelectorAll(r)}})}var $0,Fp=u(()=>{jo();});function D0(r){return(e,t)=>zt(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}var Bp=u(()=>{jo();});function zs(r){return(e,t)=>{let{slot:o,selector:n}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return zt(e,t,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter((d=>d.matches(n)))}})}}var Up=u(()=>{jo();});function Hs(r){return(e,t)=>{let{slot:o}=r??{},n="slot"+(o?`[name=${o}]`:":not([name])");return zt(e,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var zp=u(()=>{jo();});var Vs={};q(Vs,{customElement:()=>I0,eventOptions:()=>N0,property:()=>h,query:()=>B,queryAll:()=>Us,queryAssignedElements:()=>zs,queryAssignedNodes:()=>Hs,queryAsync:()=>D0,standardProperty:()=>Np,state:()=>I});var K=u(()=>{Pp();Bs();$p();Dp();Mp();Fp();Bp();Up();zp()});var Jt,mt,Tt,ao=u(()=>{Jt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},mt=r=>(...e)=>({_$litDirective$:r,values:e}),Tt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}});var M0,Vp,Hp,Go,Tr,F0,Wp,jp,Qn,Ws=u(()=>{Lt();({I:M0}=Ns),Vp=r=>r.strings===void 0,Hp=()=>document.createComment(""),Go=(r,e,t)=>{let o=r._$AA.parentNode,n=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=o.insertBefore(Hp(),n),s=o.insertBefore(Hp(),n);t=new M0(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==r;if(l){let d;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(d=r._$AU)!==s._$AU&&t._$AP(d)}if(a!==n||l){let d=t._$AA;for(;d!==a;){let f=d.nextSibling;o.insertBefore(d,n),d=f}}}return t},Tr=(r,e,t=r)=>(r._$AI(e,t),r),F0={},Wp=(r,e=F0)=>r._$AH=e,jp=r=>r._$AH,Qn=r=>{r._$AP?.(!1,!0);let e=r._$AA,t=r._$AB.nextSibling;for(;e!==t;){let o=e.nextSibling;e.remove(),e=o}}});var Gp,ge,Kp=u(()=>{Lt();ao();Ws();Gp=(r,e,t)=>{let o=new Map;for(let n=e;n<=t;n++)o.set(r[n],n);return o},ge=mt(class extends Tt{constructor(r){if(super(r),r.type!==Jt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,e,t){let o;t===void 0?t=e:e!==void 0&&(o=e);let n=[],a=[],s=0;for(let l of r)n[s]=o?o(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:n}}render(r,e,t){return this.dt(r,e,t).values}update(r,[e,t,o]){let n=jp(r),{values:a,keys:s}=this.dt(e,t,o);if(!Array.isArray(n))return this.ut=s,a;let l=this.ut??=[],d=[],f,m,g=0,y=n.length-1,x=0,v=a.length-1;for(;g<=y&&x<=v;)if(n[g]===null)g++;else if(n[y]===null)y--;else if(l[g]===s[x])d[x]=Tr(n[g],a[x]),g++,x++;else if(l[y]===s[v])d[v]=Tr(n[y],a[v]),y--,v--;else if(l[g]===s[v])d[v]=Tr(n[g],a[v]),Go(r,d[v+1],n[g]),g++,v--;else if(l[y]===s[x])d[x]=Tr(n[y],a[x]),Go(r,n[g],n[y]),y--,x++;else if(f===void 0&&(f=Gp(s,x,v),m=Gp(l,g,y)),f.has(l[g]))if(f.has(l[y])){let w=m.get(s[x]),_=w!==void 0?n[w]:null;if(_===null){let P=Go(r,n[g]);Tr(P,a[x]),d[x]=P}else d[x]=Tr(_,a[x]),Go(r,n[g],_),n[w]=null;x++}else Qn(n[y]),y--;else Qn(n[g]),g++;for(;x<=v;){let w=Go(r,d[v+1]);Tr(w,a[x]),d[x++]=w}for(;g<=y;){let w=n[g++];w!==null&&Qn(w)}return this.ut=s,Wp(r,d),De}})});var js={};q(js,{repeat:()=>ge});var Ht=u(()=>{Kp()});var me,qp=u(()=>{Lt();ao();me=mt(class extends Tt{constructor(r){if(super(r),r.type!==Jt.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter((e=>r[e])).join(" ")+" "}update(r,[e]){if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter((o=>o!==""))));for(let o in e)e[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(e)}let t=r.element.classList;for(let o of this.st)o in e||(t.remove(o),this.st.delete(o));for(let o in e){let n=!!e[o];n===this.st.has(o)||this.nt?.has(o)||(n?(t.add(o),this.st.add(o)):(t.remove(o),this.st.delete(o)))}return De}})});var Gs={};q(Gs,{classMap:()=>me});var tt=u(()=>{qp()});var Zp,B0,U0,Qp=u(()=>{Lt();ao();Zp="important",B0=" !"+Zp,U0=mt(class extends Tt{constructor(r){if(super(r),r.type!==Jt.ATTRIBUTE||r.name!=="style"||r.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(r){return Object.keys(r).reduce(((e,t)=>{let o=r[t];return o==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`}),"")}update(r,[e]){let{style:t}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let o of this.ft)e[o]==null&&(this.ft.delete(o),o.includes("-")?t.removeProperty(o):t[o]=null);for(let o in e){let n=e[o];if(n!=null){this.ft.add(o);let a=typeof n=="string"&&n.endsWith(B0);o.includes("-")||a?t.setProperty(o,a?n.slice(0,-11):n,a?Zp:""):t[o]=n}}return De}})});var Ks={};q(Ks,{styleMap:()=>U0});var Yp=u(()=>{Qp()});var Ko,so,Xp=u(()=>{Lt();ao();Ko=class extends Tt{constructor(e){if(super(e),this.it=k,e.type!==Jt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===k||e==null)return this._t=void 0,this.it=e;if(e===De)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Ko.directiveName="unsafeHTML",Ko.resultType=1;so=mt(Ko)});var qs={};q(qs,{UnsafeHTMLDirective:()=>Ko,unsafeHTML:()=>so});var qi=u(()=>{Xp()});var Zs={};q(Zs,{CancelablePromise:()=>Yn,CanceledPromiseError:()=>er,cancelable:()=>qo});var er,Yn,qo,Xn=u(()=>{"use strict";er=class extends Error{constructor(e,t,o){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=o}},Yn=class extends Promise{constructor(e){super((t,o)=>e(n=>{this.isCanceled?o(new er("Promise has been canceled",n)):t(n)},n=>{this.isCanceled?o(new er("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},qo=r=>new Yn((e,t)=>r.then(e).catch(t))});var Qs={};q(Qs,{customElement:()=>Zi,dateProperty:()=>H0,isNumber:()=>Jp,jsonProperty:()=>de,numberProperty:()=>_t,optionalNumberProperty:()=>z0});function de(r,e){return h({type:Object,converter:{fromAttribute:t=>{if(t==null)return gt(r);try{return JSON.parse(t)}catch{return gt(r)}},toAttribute:t=>JSON.stringify(t)},hasChanged:yt,...e??{}})}function z0(r){return _t(r)}function _t(r){return h({type:Object,converter:{fromAttribute:e=>{var t,o;if(e==null)return;let n=(t=r?.min)!==null&&t!==void 0?t:-1/0,a=(o=r?.max)!==null&&o!==void 0?o:1/0;return Jp(e)?gr(n,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...r??{}})}function Jp(r){return!isNaN(parseFloat(r))}function H0(r){return h({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let t=new Date(Date.parse(e));if(!isNaN(t.valueOf()))return t},toAttribute:e=>e?.toISOString()},useDefault:!0,...r??{}})}var Zi,lo=u(()=>{"use strict";K();rt();Zi=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)}});var tl={};q(tl,{applyMixinOnce:()=>Ee,customElements:()=>U,dateReviver:()=>W0,deepCopy:()=>gt,deepEqual:()=>Me,delay:()=>Jn,eventPathContainsMatchingElement:()=>Ys,everyDeep:()=>V0,flatDeep:()=>bt,forEachDeep:()=>ef,getComposedPathTo:()=>Js,hasChanged:()=>yt,ignoreComposingEvents:()=>Ir,last:()=>Xs,minmax:()=>gr,parseDate:()=>rf,randomId:()=>el,someDeep:()=>tf,unslotText:()=>Zo,waitFor:()=>_r,waitUntil:()=>Qi});async function Qi(r,e=10,t=2e4){await _r(async()=>await r()||void 0,e,t)}async function _r(r,e=10,t=2e4){let o=await r(),n=performance.now(),a=n;for(;o==null&&(!t||a-n<t);)await Jn(e),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function bt(r,e){return r.flatMap(t=>[t,...bt(e(t),e)])}function ef(r,e,t){let o=(n,a)=>{var s;for(let l=0;l<n.length;l++){let d=n[l];if(!(((s=t(d,l,n,a))!==null&&s!==void 0?s:!0)&&o(e(d),[...a,d])))return!1}return!0};o(r,[])}function tf(r,e,t){let o=!1;return ef(r,e,(n,a,s,l)=>(o=!!t(n,a,s,l),!o)),o}function V0(r,e,t){return!tf(r,e,(o,n,a,s)=>!t(o,n,a,s))}function W0(...r){return(e,t)=>r.includes(e)?rf(t):t}function rf(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,o,n)=>t+o+":"+n),new Date(r)}function j0(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;let t,o;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(o=t;o--!==0;)if(!Me(r[o],e[o]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;for(o of r.entries())if(!Me(o[1],e.get(o[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(l=>s[l]!=null),a=n(r);if(t=a.length,t!==n(e).length)return!1;for(o=t;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,a[o]))return!1;for(o=t;o--!==0;){let s=a[o];if(!Me(r[s],e[s]))return!1}return!0}return r!==r&&e!==e||r==null&&e==null}function Me(r,e){try{return j0(r,e)}catch{return!1}}function yt(r,e){return!Me(r,e)}function Ys(r,e,t=window.document.body){if(e.length>0){let o=r.composedPath();for(let n of o){if(n===t)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function gr(r,e,t){return Math.min(Math.max(r,e),t)}function Xs(r){return r[r.length-1]}function Zo(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(e=>Zo(e)).join(""):r?.textContent||""}function Js(r){let e=[],t=o=>{o.stopPropagation(),e=o.composedPath()};return r.addEventListener("get-composed-path",t),r.dispatchEvent(new Event("get-composed-path",{composed:!0})),r.removeEventListener("get-composed-path",t),e}function gt(r){return typeof window.structuredClone=="function"?structuredClone(r):r!=null?JSON.parse(JSON.stringify(r)):r}function el(r,e){return(e??"")+(""+Math.floor(Math.random()*10**r)).padStart(r,"0")}function Ee(r,e){let t=o=>o[r]===!0;return o=>{if(t(o))return o;let n=e(o);return n[r]=!0,n}}function Ir(){return function(r,e,t){let o=t.value;t.value=function(n,...a){if(n.isComposing||n.keyCode===229){n.stopPropagation();return}return o.apply(this,[n].concat(a))}}}function U(r){for(let[e,t]of Object.entries(r))Zi(e)(t)}var Jn,rt=u(()=>{"use strict";lo();Jn=r=>new Promise(e=>setTimeout(e,r))});var il={};q(il,{FtNotificationEvent:()=>Yi,PostResizeEvent:()=>ol,PreResizeEvent:()=>rl,WithEventBus:()=>yr,withEventBus:()=>ea});var Yi,rl,ol,ea,yr,Qo=u(()=>{"use strict";rt();Yi=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},rl=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ol=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},ea=Ee(Symbol("withEventBus"),function(r,e){return class extends r{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(t,o,n){this.eventBus.addEventListener(t,o,n)}dispatchEvent(t){return this.eventBus.dispatchEvent(t)}removeEventListener(t,o,n){this.eventBus.removeEventListener(t,o,n)}}}),yr=class extends ea(Object){}});var nl={};q(nl,{CacheRegistry:()=>tr,ClearCacheEvent:()=>Xi});var Xi,tr,al=u(()=>{"use strict";Xn();Qo();Xi=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},tr=class extends yr{constructor(){super(...arguments),this.content={}}register(e,t,o=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:t,final:o,status:s}}registerFinal(e,t){this.register(e,t,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,t=!0){let o=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return t&&o.length>0&&this.dispatchEvent(new Xi(o)),o}clear(e,t=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),t&&this.dispatchEvent(new Xi([e])),e}forceClear(e){var t;let o=this.content[e];o&&(this.clearClearTimeout(e),(t=o.promise)===null||t===void 0||t.cancel(),this.content[e]={loader:o.loader,final:o.final,status:"REGISTERED"})}clearClearTimeout(e){var t,o,n;((t=this.content[e])===null||t===void 0?void 0:t.clearTimeout)!=null&&(window.clearTimeout((o=this.content[e])===null||o===void 0?void 0:o.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,t,o=!1){this.forceClear(e);let n=async()=>t,a="RESOLVED";this.content[e]={loader:n,final:o,status:a,value:t}}setFinal(e,t){return this.set(e,t,!0)}async get(e,t,o){if(!this.isRegistered(e)){if(!t)throw new Error("Unknown cache key "+e);this.register(e,t)}let n=this.content[e];switch(n.status){case"ERROR":throw n.error;case"LOADING":return n.promise;case"RESOLVED":return n.value;case"REGISTERED":return t=t??n.loader,n.status="LOADING",n.promise=qo(t()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,o!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),o)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var t;return(t=this.content[e])===null||t===void 0?void 0:t.value}has(e){var t,o;return((t=this.content[e])===null||t===void 0?void 0:t.status)!==void 0&&((o=this.content[e])===null||o===void 0?void 0:o.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var t;return((t=this.content[e])===null||t===void 0?void 0:t.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}}});var ll={};q(ll,{accessBreadcrumb:()=>G0,accessResult:()=>It,accessResultId:()=>ta,accessResultUrl:()=>sl});function It(r){var e,t,o,n;return(n=(o=(t=(e=r?.map)!==null&&e!==void 0?e:r?.topic)!==null&&t!==void 0?t:r?.document)!==null&&o!==void 0?o:r?.htmlPackage)!==null&&n!==void 0?n:r?.htmlPackagePage}function ta(r){var e,t,o,n,a,s,l,d,f;return(d=(s=(n=(t=(e=r?.map)===null||e===void 0?void 0:e.mapId)!==null&&t!==void 0?t:(o=r?.topic)===null||o===void 0?void 0:o.tocId)!==null&&n!==void 0?n:(a=r?.document)===null||a===void 0?void 0:a.documentId)!==null&&s!==void 0?s:(l=r?.htmlPackage)===null||l===void 0?void 0:l.packageId)!==null&&d!==void 0?d:(f=r?.htmlPackagePage)===null||f===void 0?void 0:f.contentId}function sl(r){var e,t,o,n,a,s,l,d,f;return(d=(s=(n=(t=(e=r?.map)===null||e===void 0?void 0:e.readerUrl)!==null&&t!==void 0?t:(o=r?.topic)===null||o===void 0?void 0:o.readerUrl)!==null&&n!==void 0?n:(a=r?.document)===null||a===void 0?void 0:a.viewerUrl)!==null&&s!==void 0?s:(l=r?.htmlPackage)===null||l===void 0?void 0:l.viewerUrl)!==null&&d!==void 0?d:(f=r?.htmlPackagePage)===null||f===void 0?void 0:f.viewerUrl}function G0(r){return r?.topic?[r.topic.mapTitle,...r.topic.breadcrumb]:r?.map?[r.map.title]:r?.document?[r.document.title]:r?.htmlPackage?[r.htmlPackage.title]:r?.htmlPackagePage?[r.htmlPackagePage.packageTitle,r.htmlPackagePage.title]:[]}var ra=u(()=>{"use strict"});var ul={};q(ul,{ClusteringHelper:()=>dl,formatHierarchicalValues:()=>cl});function cl(r,e){return e&&e>1&&r.length>=e?`... > ${r[r.length-1]}`:r.join(" > ")}var dl,pl=u(()=>{"use strict";ra();dl=class r{constructor(e,t,o,n){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=o,this.metadataDescriptors=n}static findResultWithMetadataValue(e,t,o){return e?.find(n=>{var a;return((a=this.extractResultMetadata({result:n}).find(s=>s.key==t))===null||a===void 0?void 0:a.value)==o})}static extractResultMetadata(e){var t,o;let n=(o=(t=It(e.result))===null||t===void 0?void 0:t.metadata)!==null&&o!==void 0?o:[];return e.key==null?r.flattenMetadata(n,e.hierarchicalValueTruncatingLevel,e.dateFormatter):r.flattenMetadata(n.find(a=>a.key===e.key),e.hierarchicalValueTruncatingLevel,e.dateFormatter)}static flattenMetadata(e,t,o){if(Array.isArray(e))return e.map(a=>r.flattenMetadata(a,t,o)).filter(a=>a!=null);let n=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!n))if(n){let a=[],s=[];return e.hierarchicalValues.forEach(l=>{a.push(cl(l)),s.push(cl(l,t))}),{key:e.key,label:e.label,value:a.join(", "),displayValue:s.join(", "),displayTooltipValue:a.join(", ")}}else{let a=e.values.join(", "),s=e.values.map(l=>o?o(l):l).join(", ");return{key:e.key,label:e.label,value:a,displayValue:s,displayTooltipValue:s}}}computeClustersItemsForMetadata(e,t,o="No value",n,a){var s,l;let d=r.extractResultMetadata({result:this.selectedResult,key:e,dateFormatter:a}),f=(s=d?.label)!==null&&s!==void 0?s:(l=this.getMetadataDescriptor(e))===null||l===void 0?void 0:l.label;return this.allResults.map(g=>r.extractResultMetadata({result:g,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(g=>g??{key:e,label:f,value:void 0,displayValue:o}).filter(g=>g.value!=d?.value).filter((g,y,x)=>x.findIndex(v=>v.value===g.value)===y).map(g=>({result:this.findBestResultForMetadataValue(e,g.value),metadata:g})).sort((g,y)=>this.compareMetadata(g.metadata.value,y.metadata.value,e,t))}compareMetadata(e,t,o,n){if(e==null)return-1;if(t==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(t,n,{numeric:!0});return l?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let o=this.allResults.filter(d=>{var f;return((f=r.extractResultMetadata({result:d,key:e}))===null||f===void 0?void 0:f.value)==t}),a=[...r.extractResultMetadata({result:this.selectedResult}).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,l=-1;for(let d of o){let f=this.countMatchingMetadata(d,a);if(f>l&&(l=f,s=d,f===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata({result:e}).filter(o=>t.some(n=>n.key===o.key&&n.value===o.value)).length}}});var fl={};q(fl,{Debouncer:()=>ne});var ne,oa=u(()=>{"use strict";ne=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,o)=>{this.resolvePromise=t,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let o=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),a=(t=this.resolvePromise)!==null&&t!==void 0?t:(()=>null);this.clearPromise();for(let s of o)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}});function A(r,e){return Pr(`${r.name}: ${e}`)}var Pr,i,J=u(()=>{T();Pr=r=>typeof r=="string"?eo(r):r,i=class{static create(e,t,o,n){let a=l=>Pr(l??n),s=R`var(${Pr(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>A(s,l??a(n)),s.get=l=>R`var(${Pr(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,t,o,n){let a=l=>o.get(l??n),s=R`var(${Pr(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>A(s,l??a(n)),s.get=l=>R`var(${Pr(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(e,t){let o=a=>e.defaultCssValue(a),n=R`var(${Pr(e.name)}, ${o(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=t,n.defaultCssValue=o,n.set=a=>e.set(a),n.get=a=>R`var(${Pr(e.name)}, ${o(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}}});var c,of,nf,af,sf,lf,cf,df,uf,pf,ff,hf,mf,gf,yf,bf,vf,K0,q0,re=u(()=>{J();c={colorWhite:i.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:i.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:i.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:i.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:i.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:i.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:i.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:i.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:i.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:i.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:i.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:i.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:i.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:i.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:i.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:i.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:i.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:i.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:i.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:i.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:i.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:i.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:i.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:i.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:i.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:i.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:i.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:i.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:i.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:i.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:i.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:i.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:i.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:i.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:i.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:i.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:i.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:i.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:i.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:i.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:i.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:i.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:i.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:i.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:i.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:i.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:i.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:i.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:i.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:i.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:i.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:i.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:i.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:i.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:i.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:i.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:i.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:i.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:i.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:i.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:i.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:i.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:i.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:i.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:i.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:i.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:i.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:i.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:i.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:i.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:i.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:i.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:i.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:i.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:i.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:i.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:i.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:i.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:i.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:i.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:i.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:i.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:i.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:i.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:i.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:i.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:i.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:i.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:i.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:i.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:i.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:i.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:i.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:i.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:i.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:i.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:i.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:i.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:i.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:i.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:i.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:i.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:i.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:i.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:i.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:i.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:i.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:i.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:i.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:i.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:i.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:i.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:i.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:i.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:i.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:i.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:i.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:i.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:i.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:i.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:i.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:i.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:i.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:i.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:i.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:i.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:i.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:i.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:i.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:i.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:i.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:i.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:i.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:i.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:i.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:i.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:i.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:i.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:i.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:i.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:i.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:i.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:i.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:i.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:i.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:i.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:i.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:i.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:i.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:i.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:i.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:i.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:i.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:i.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:i.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:i.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:i.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:i.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:i.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:i.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:i.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:i.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:i.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:i.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:i.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:i.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:i.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:i.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:i.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:i.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:i.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:i.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:i.create("--ftds-icon-size-1","","SIZE","0.5rem"),iconSize2:i.create("--ftds-icon-size-2","","SIZE","0.75rem"),iconSize3:i.create("--ftds-icon-size-3","","SIZE","1rem"),iconSize4:i.create("--ftds-icon-size-4","","SIZE","1.25rem"),iconSize5:i.create("--ftds-icon-size-5","","SIZE","1.5rem"),iconSize6:i.create("--ftds-icon-size-6","","SIZE","2rem"),iconSize7:i.create("--ftds-icon-size-7","","SIZE","3rem"),opacity0:i.create("--ftds-opacity-0","","NUMBER","0"),opacity4:i.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:i.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:i.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:i.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:i.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:i.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:i.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:i.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:i.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:i.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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:i.create("--ftds-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)")},of={fontFamily:i.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:i.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-display-text-case","","UNKNOWN","none")},nf={fontFamily:i.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:i.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},af={fontFamily:i.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:i.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},sf={fontFamily:i.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:i.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:i.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:i.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},lf={fontFamily:i.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},cf={fontFamily:i.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},df={fontFamily:i.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:i.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},uf={fontFamily:i.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:i.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},pf={fontFamily:i.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},ff={fontFamily:i.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:i.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:i.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},hf={fontFamily:i.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:i.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:i.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:i.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:i.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},mf={fontFamily:i.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},gf={fontFamily:i.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:i.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},yf={fontFamily:i.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:i.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},bf={fontFamily:i.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:i.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},vf={fontFamily:i.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:i.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:i.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:i.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:i.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:i.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:i.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:i.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},K0={display:of,"title-1":nf,"title-2":af,"title-3":sf,"body-1-regular":lf,"body-1-medium":cf,"body-1-semibold":df,"body-2-regular":uf,"body-2-medium":pf,"body-2-medium-underline":ff,"body-2-semibold":hf,"caption-1-medium":mf,"caption-1-semibold":gf,"caption-2-medium":yf,"caption-2-semibold":bf,"caption-2-bold":vf},q0=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"]});var p,ue=u(()=>{J();re();p={backgroundActionPrimary:i.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:i.extend("--ftds-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:i.extend("--ftds-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:i.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:i.extend("--ftds-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:i.extend("--ftds-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:i.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:i.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:i.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:i.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:i.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:i.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:i.extend("--ftds-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:i.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:i.extend("--ftds-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:i.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:i.extend("--ftds-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:i.extend("--ftds-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:i.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
4
+ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:i.extend("--ftds-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:i.extend("--ftds-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:i.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:i.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:i.extend("--ftds-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:i.extend("--ftds-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:i.extend("--ftds-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:i.extend("--ftds-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:i.extend("--ftds-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:i.extend("--ftds-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:i.extend("--ftds-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:i.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",c.colorGray50),borderGlobalSecondary:i.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",c.colorGray40),borderGlobalSubtle:i.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",c.colorGray30),borderInputPrimary:i.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80),borderNeutralPrimary:i.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",c.colorGray200)}});var Z0,xf=u(()=>{J();re();ue();Z0={largeHeight:i.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:i.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:i.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:i.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:i.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:i.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:i.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:i.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:i.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:i.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:i.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:i.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:i.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:i.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:i.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:i.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:i.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:i.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:i.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:i.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:i.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:i.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:i.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:i.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:i.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:i.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:i.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:i.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:i.extend("--ftds-button-primary-brand-background-color","",p.backgroundActionPrimary),primaryBrandColor:i.extend("--ftds-button-primary-brand-color","",p.contentGlobalOnColor),primaryBrandIconColor:i.extend("--ftds-button-primary-brand-icon-color","",p.contentGlobalOnColor),primaryBrandStateLayerColor:i.extend("--ftds-button-primary-brand-state-layer-color","",p.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:i.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-button-focus-focus-ring-color","",p.borderActionFocusRing),tertiaryBrandBackgroundColor:i.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:i.extend("--ftds-button-tertiary-brand-color","",p.contentActionPrimary),tertiaryBrandIconColor:i.extend("--ftds-button-tertiary-brand-icon-color","",p.contentActionPrimary),tertiaryBrandStateLayerColor:i.extend("--ftds-button-tertiary-brand-state-layer-color","",p.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:i.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:i.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:i.extend("--ftds-button-tertiary-info-color","",p.contentInfoPrimary),tertiaryInfoIconColor:i.extend("--ftds-button-tertiary-info-icon-color","",p.contentInfoPrimary),tertiaryInfoStateLayerColor:i.extend("--ftds-button-tertiary-info-state-layer-color","",p.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:i.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:i.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:i.extend("--ftds-button-tertiary-success-color","",p.contentSuccessPrimary),tertiarySuccessIconColor:i.extend("--ftds-button-tertiary-success-icon-color","",p.contentSuccessPrimary),tertiarySuccessStateLayerColor:i.extend("--ftds-button-tertiary-success-state-layer-color","",p.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:i.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:i.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:i.extend("--ftds-button-tertiary-warning-color","",p.contentWarningPrimary),tertiaryWarningIconColor:i.extend("--ftds-button-tertiary-warning-icon-color","",p.contentWarningPrimary),tertiaryWarningStateLayerColor:i.extend("--ftds-button-tertiary-warning-state-layer-color","",p.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:i.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:i.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:i.extend("--ftds-button-tertiary-error-color","",p.contentErrorPrimary),tertiaryErrorIconColor:i.extend("--ftds-button-tertiary-error-icon-color","",p.contentErrorPrimary),tertiaryErrorStateLayerColor:i.extend("--ftds-button-tertiary-error-state-layer-color","",p.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:i.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:i.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:i.extend("--ftds-button-tertiary-neutral-icon-color","",p.contentGlobalSecondary),tertiaryNeutralColor:i.extend("--ftds-button-tertiary-neutral-color","",p.contentGlobalSecondary),tertiaryNeutralStateLayerColor:i.extend("--ftds-button-tertiary-neutral-state-layer-color","",p.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:i.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:i.extend("--ftds-button-secondary-brand-color","",p.contentActionPrimary),secondaryBrandIconColor:i.extend("--ftds-button-secondary-brand-icon-color","",p.contentActionPrimary),secondaryBrandStateLayerColor:i.extend("--ftds-button-secondary-brand-state-layer-color","",p.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:i.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:i.extend("--ftds-button-secondary-brand-border-color","",p.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:i.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:i.extend("--ftds-button-secondary-neutral-color","",p.contentGlobalSecondary),secondaryNeutralIconColor:i.extend("--ftds-button-secondary-neutral-icon-color","",p.contentGlobalSecondary),secondaryNeutralStateLayerColor:i.extend("--ftds-button-secondary-neutral-state-layer-color","",p.contentGlobalSecondary),secondaryNeutralBorderColor:i.extend("--ftds-button-secondary-neutral-border-color","",p.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:i.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:i.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:i.extend("--ftds-button-secondary-info-border-color","",p.borderInfoPrimary),secondaryInfoColor:i.extend("--ftds-button-secondary-info-color","",p.contentInfoPrimary),secondaryInfoIconColor:i.extend("--ftds-button-secondary-info-icon-color","",p.contentInfoPrimary),secondaryInfoStateLayerColor:i.extend("--ftds-button-secondary-info-state-layer-color","",p.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:i.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:i.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:i.extend("--ftds-button-secondary-success-border-color","",p.borderSuccessPrimary),secondarySuccessColor:i.extend("--ftds-button-secondary-success-color","",p.contentSuccessPrimary),secondarySuccessIconColor:i.extend("--ftds-button-secondary-success-icon-color","",p.contentSuccessPrimary),secondarySuccessStateLayerColor:i.extend("--ftds-button-secondary-success-state-layer-color","",p.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:i.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:i.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:i.extend("--ftds-button-secondary-warning-border-color","",p.borderWarningPrimary),secondaryWarningColor:i.extend("--ftds-button-secondary-warning-color","",p.contentWarningPrimary),secondaryWarningIconColor:i.extend("--ftds-button-secondary-warning-icon-color","",p.contentWarningPrimary),secondaryWarningStateLayerColor:i.extend("--ftds-button-secondary-warning-state-layer-color","",p.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:i.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:i.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:i.extend("--ftds-button-secondary-error-border-color","",p.contentErrorPrimary),secondaryErrorColor:i.extend("--ftds-button-secondary-error-color","",p.contentErrorPrimary),secondaryErrorIconColor:i.extend("--ftds-button-secondary-error-icon-color","",p.contentErrorPrimary),secondaryErrorStateLayerColor:i.extend("--ftds-button-secondary-error-state-layer-color","",p.contentErrorPrimary)}});var Q0,Sf=u(()=>{J();re();ue();Q0={borderRadius:i.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:i.extend("--ftds-card-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:i.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:i.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:i.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:i.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:i.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:i.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:i.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:i.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:i.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:i.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:i.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:i.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:i.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:i.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:i.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:i.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:i.extend("--ftds-card-non-selectable-state-layer-color","",p.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:i.extend("--ftds-card-non-selectable-default-background-color","",p.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:i.extend("--ftds-card-non-selectable-default-border-color","",p.borderGlobalSecondary),nonSelectableHoverBorderColor:i.extend("--ftds-card-non-selectable-hover-border-color","",p.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:i.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:i.extend("--ftds-card-non-selectable-focus-border-color","",p.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:i.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:i.extend("--ftds-card-internal-border-color","",p.borderGlobalSecondary),selectableUnselectedBorderWidth:i.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:i.extend("--ftds-card-selectable-unselected-state-layer-color","",p.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:i.extend("--ftds-card-selectable-unselected-default-background-color","",p.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:i.extend("--ftds-card-selectable-unselected-default-border-color","",p.borderGlobalSecondary),selectableUnselectedHoverBorderColor:i.extend("--ftds-card-selectable-unselected-hover-border-color","",p.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:i.extend("--ftds-card-selectable-unselected-focus-border-color","",p.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:i.extend("--ftds-card-selectable-selected-border-color","",p.borderActionPrimary),selectableSelectedBorderWidth:i.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:i.extend("--ftds-card-selectable-selected-state-layer-color","",p.contentActionPrimary),selectableSelectedBackgroundColor:i.extend("--ftds-card-selectable-selected-background-color","",p.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:i.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:i.create("--ftds-card-internal-border-width","","SIZE","1px")}});var Y0,Cf=u(()=>{J();re();ue();Y0={loadMoreIconSize:i.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:i.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-unselected-default-border-color","",p.borderGlobalSubtle),loadMoreIconColor:i.extend("--ftds-tree-list-load-more-icon-color","",p.contentActionPrimary),loadMoreLabelColor:i.extend("--ftds-tree-list-load-more-label-color","",p.contentActionPrimary),loadMoreHoverBorderColor:i.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:i.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:i.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:i.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:i.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:i.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),loadMoreLabelMarginLeft:i.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:i.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:i.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:i.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:i.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:i.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:i.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:i.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-node-unselected-default-border-color","",p.borderGlobalSubtle),nodeUnselectedIconColor:i.extend("--ftds-tree-list-node-unselected-icon-color","",p.contentGlobalSecondary),nodeUnselectedLabelColor:i.extend("--ftds-tree-list-node-unselected-label-color","",p.contentGlobalSecondary),nodeUnselectedCounterColor:i.extend("--ftds-tree-list-node-unselected-counter-color","",p.contentGlobalSecondary),nodeHoverBorderColor:i.extend("--ftds-tree-list-node-hover-border-color","",p.borderActionPrimary),nodeFocusFocusRingColor:i.extend("--ftds-tree-list-node-focus-focus-ring-color","",p.borderActionFocusRing),nodeFocusOutlineWidth:i.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-selected-default-border-color","",p.borderGlobalPrimary),nodeSelectedIconColor:i.extend("--ftds-tree-list-node-selected-icon-color","",p.contentGlobalSecondary),nodeSelectedLabelColor:i.extend("--ftds-tree-list-node-selected-label-color","",p.contentGlobalPrimary),nodeSelectedCounterColor:i.extend("--ftds-tree-list-node-selected-counter-color","",p.contentGlobalSecondary),nodeSelectedBackgroundColor:i.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:i.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:i.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:i.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:i.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:i.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:i.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:i.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:i.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:i.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:i.extend("--ftds-tree-list-header-section-color","",p.contentGlobalPrimary),headerSectionCounterColor:i.extend("--ftds-tree-list-header-section-counter-color","",p.contentGlobalSecondary),listContainerBorderWidth:i.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:i.extend("--ftds-tree-list-list-container-background-color","",p.backgroundGlobalSurface),listContainerBorderColor:i.extend("--ftds-tree-list-list-container-border-color","",p.borderGlobalSubtle),emptyStateIllustrationWidth:i.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:i.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:i.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:i.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:i.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:i.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:i.extend("--ftds-tree-list-empty-state-title-label-color","",p.contentGlobalSecondary),emptyStateDescriptionLabelColor:i.extend("--ftds-tree-list-empty-state-description-label-color","",p.contentGlobalSecondary)}});var X0,Of=u(()=>{J();re();ue();X0={iconSize:i.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:i.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:i.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:i.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:i.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing1),color:i.extend("--ftds-checkbox-color","",p.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ftds-checkbox-checked-background-color","",p.contentActionPrimary),checkedStateLayerColor:i.extend("--ftds-checkbox-checked-state-layer-color","",p.contentActionPrimary),checkedIconColor:i.extend("--ftds-checkbox-checked-icon-color","",p.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:i.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:i.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:i.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:i.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:i.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-checkbox-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:i.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:i.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:i.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:i.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:i.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:i.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:i.extend("--ftds-checkbox-error-unchecked-border-color","",p.borderErrorPrimary),errorStateLayerColor:i.extend("--ftds-checkbox-error-state-layer-color","",p.contentErrorPrimary),errorHelperTextColor:i.extend("--ftds-checkbox-error-helper-text-color","",p.borderErrorPrimary),errorCheckedBackgroundColor:i.extend("--ftds-checkbox-error-checked-background-color","",p.contentErrorPrimary),helperTextColor:i.extend("--ftds-checkbox-helper-text-color","",p.contentGlobalSubtle),groupVerticalGap:i.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)}});var J0,Ef=u(()=>{J();re();ue();J0={circleSize:i.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:i.create("--ftds-radio-border-width","","SIZE","2px"),color:i.extend("--ftds-radio-color","",p.contentGlobalPrimary),selectedRadioColor:i.extend("--ftds-radio-selected-radio-color","",p.contentActionPrimary),selectedStateLayerColor:i.extend("--ftds-radio-selected-state-layer-color","",p.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:i.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:i.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:i.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:i.extend("--ftds-radio-unselected-state-layer-color","",p.borderInputPrimary),unselectedBorderColor:i.extend("--ftds-radio-unselected-border-color","",p.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:i.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-radio-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:i.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:i.extend("--ftds-radio-horizontal-gap","",c.spacing3)}});var eS,wf=u(()=>{J();re();ue();eS={headerRowBorderWidth:i.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:i.extend("--ftds-table-header-row-background-color","",p.backgroundGlobalOnSurfaceDark),headerRowBorderColor:i.extend("--ftds-table-header-row-border-color","",p.borderGlobalPrimary),headerRowColor:i.extend("--ftds-table-header-row-color","",p.contentGlobalPrimary),dataRowBorderWidth:i.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:i.extend("--ftds-table-data-row-background-color","",p.backgroundGlobalOnSurface),dataRowBorderColor:i.extend("--ftds-table-data-row-border-color","",p.borderGlobalSubtle),dataRowColor:i.extend("--ftds-table-data-row-color","",p.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:i.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:i.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:i.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:i.extend("--ftds-table-data-row-selectable-selected-color","",p.contentActionPrimary),dataRowClickableHoverBackgroundColor:i.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:i.extend("--ftds-table-data-row-clickable-focus-border-color","",p.borderActionFocusRing),dataRowClickableFocusBackgroundColor:i.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:i.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:i.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:i.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:i.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:i.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:i.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:i.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)}});var tS,Rf=u(()=>{J();re();ue();tS={neutralOffHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",p.borderActionFocusRing),neutralOffActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:i.extend("--ftds-chip-choice-neutral-off-background-color","",p.backgroundGlobalOnSurface),neutralOffBorderColor:i.extend("--ftds-chip-choice-neutral-off-border-color","",p.borderGlobalPrimary),neutralOffColor:i.extend("--ftds-chip-choice-neutral-off-color","",p.contentGlobalSecondary),neutralOffStateLayerColor:i.extend("--ftds-chip-choice-neutral-off-state-layer-color","",p.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",p.borderActionFocusRing),neutralOnActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:i.extend("--ftds-chip-choice-neutral-on-background-color","",p.backgroundGlobalOnSurface),neutralOnBorderColor:i.extend("--ftds-chip-choice-neutral-on-border-color","",p.borderGlobalPrimary),neutralOnColor:i.extend("--ftds-chip-choice-neutral-on-color","",p.contentGlobalPrimary),neutralOnIconColor:i.extend("--ftds-chip-choice-neutral-on-icon-color","",p.contentGlobalPrimary),neutralOnStateLayerColor:i.extend("--ftds-chip-choice-neutral-on-state-layer-color","",p.contentGlobalPrimary),largeMinHeight:i.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:i.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:i.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:i.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:i.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)}});var rS,Af=u(()=>{J();re();ue();rS={largeMinHeight:i.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:i.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:i.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:i.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:i.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:i.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:i.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:i.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:i.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:i.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:i.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:i.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:i.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:i.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:i.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:i.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:i.extend("--ftds-chip-neutral-background-color","",p.backgroundGlobalOnSurface),neutralColor:i.extend("--ftds-chip-neutral-color","",p.contentGlobalSecondary),neutralIconColor:i.extend("--ftds-chip-neutral-icon-color","",p.contentGlobalSecondary),neutralBorderColor:i.extend("--ftds-chip-neutral-border-color","",p.borderGlobalSecondary),infoBackgroundColor:i.extend("--ftds-chip-info-background-color","",p.backgroundInfoSubtle),infoColor:i.extend("--ftds-chip-info-color","",p.contentInfoPrimary),infoIconColor:i.extend("--ftds-chip-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-chip-info-border-color","",p.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-chip-success-background-color","",p.backgroundSuccessSubtle),successColor:i.extend("--ftds-chip-success-color","",p.contentSuccessPrimary),successIconColor:i.extend("--ftds-chip-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-chip-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-chip-warning-background-color","",p.backgroundWarningSubtle),warningColor:i.extend("--ftds-chip-warning-color","",p.contentWarningPrimary),warningIconColor:i.extend("--ftds-chip-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-chip-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-chip-error-background-color","",p.backgroundErrorSubtle),errorColor:i.extend("--ftds-chip-error-color","",p.contentErrorPrimary),errorIconColor:i.extend("--ftds-chip-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-chip-error-border-color","",p.borderErrorSubtle)}});var oS,Lf=u(()=>{J();re();ue();oS={horizontalGap:i.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:i.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:i.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:i.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:i.extend("--ftds-chip-group-count-chip-default-content-color","",p.contentActionPrimary),countChipHoverBackgroundColor:i.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:i.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:i.extend("--ftds-chip-group-count-chip-hover-content-color","",p.contentActionPrimary),countChipFocusedBackgroundColor:i.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:i.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:i.extend("--ftds-chip-group-count-chip-focused-content-color","",p.contentActionPrimary)}});var iS,kf=u(()=>{J();re();ue();iS={brandHoverOpacity:i.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:i.extend("--ftds-link-brand-hover-color","",p.contentActionPrimary),brandFocusFocusRingColor:i.extend("--ftds-link-brand-focus-focus-ring-color","",p.borderActionFocusRing),brandFocusColor:i.extend("--ftds-link-brand-focus-color","",p.contentActionPrimary),brandDefaultColor:i.extend("--ftds-link-brand-default-color","",p.contentActionPrimary),brandActiveColor:i.extend("--ftds-link-brand-active-color","",p.contentActionPrimary),infoHoverOpacity:i.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:i.extend("--ftds-link-info-hover-color","",p.contentInfoPrimary),infoFocusFocusRingColor:i.extend("--ftds-link-info-focus-focus-ring-color","",p.borderActionFocusRing),infoFocusColor:i.extend("--ftds-link-info-focus-color","",p.contentInfoPrimary),infoDefaultColor:i.extend("--ftds-link-info-default-color","",p.contentInfoPrimary),infoActiveColor:i.extend("--ftds-link-info-active-color","",p.contentInfoPrimary),neutralFocusFocusRingColor:i.extend("--ftds-link-neutral-focus-focus-ring-color","",p.borderActionFocusRing),neutralFocusColor:i.extend("--ftds-link-neutral-focus-color","",p.contentActionPrimary),neutralDefaultColor:i.extend("--ftds-link-neutral-default-color","",p.contentGlobalPrimary),neutralHoverColor:i.extend("--ftds-link-neutral-hover-color","",p.contentActionPrimary),neutralActiveColor:i.extend("--ftds-link-neutral-active-color","",p.contentActionPrimary),neutralVisitedColor:i.extend("--ftds-link-neutral-visited-color","",c.colorBrand100)}});var nS,Tf=u(()=>{J();re();ue();nS={iconSize:i.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:i.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:i.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:i.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:i.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:i.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:i.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:i.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:i.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:i.extend("--ftds-banner-info-background-color","",p.backgroundInfoSubtle),infoColor:i.extend("--ftds-banner-info-color","",p.contentInfoPrimary),infoIconColor:i.extend("--ftds-banner-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-banner-info-border-color","",p.borderInfoSubtle)}});var aS,_f=u(()=>{J();re();ue();aS={horizontalPadding:i.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:i.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:i.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:i.extend("--ftds-badge-color","",p.contentGlobalOnColor),backgroundColor:i.extend("--ftds-badge-background-color","",p.contentActionPrimary)}});var sS,If=u(()=>{J();re();ue();sS={horizontalGap:i.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:i.extend("--ftds-title-breadcrumb-current-color","",p.contentGlobalPrimary),previousNonClickableColor:i.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",p.contentGlobalSecondary),iconColor:i.extend("--ftds-title-breadcrumb-icon-color","",p.contentGlobalSubtle)}});var lS,Pf=u(()=>{J();re();ue();lS={parentHorizontalPadding:i.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:i.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:i.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:i.extend("--ftds-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:i.extend("--ftds-page-header-parent-title-color","",p.contentGlobalPrimary),parentSubtitleColor:i.extend("--ftds-page-header-parent-subtitle-color","",p.contentGlobalSecondary),parentChipLeftMargin:i.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:i.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:i.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:i.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:i.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:i.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:i.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:i.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:i.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:i.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:i.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:i.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:i.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:i.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:i.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:i.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:i.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:i.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:i.extend("--ftds-page-header-bottom-border-color","",p.borderGlobalSubtle),bottomBorderWidth:i.create("--ftds-page-header-bottom-border-width","","SIZE","1px")}});var cS,Nf=u(()=>{J();re();ue();cS={horizontalPadding:i.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:i.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:i.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:i.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:i.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:i.extend("--ftds-page-footer-top-border-color","",p.borderGlobalSubtle),topBorderWidth:i.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:i.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)}});var dS,$f=u(()=>{J();re();dS={contentHorizontalPadding:i.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:i.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)}});var uS,Df=u(()=>{J();re();ue();uS={smallContainerTargetWidth:i.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:i.extend("--ftds-modal-small-container-margin","",c.spacing6),mediumContainerTargetWidth:i.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:i.extend("--ftds-modal-medium-container-margin","",c.spacing6),largeContainerTargetWidth:i.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:i.extend("--ftds-modal-large-container-margin","",c.spacing6),overlayBackgroundColor:i.extend("--ftds-modal-overlay-background-color","",c.colorGray700),overlayOpacity:i.extend("--ftds-modal-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:i.extend("--ftds-modal-body-background-color","",c.colorWhite),bodyColor:i.extend("--ftds-modal-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:i.extend("--ftds-modal-body-vertical-gap","",c.spacing6),headerBackgroundColor:i.extend("--ftds-modal-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-modal-header-border-color","",p.borderGlobalSubtle),headerColor:i.extend("--ftds-modal-header-color","",p.contentGlobalPrimary),headerLeadingIconColor:i.extend("--ftds-modal-header-leading-icon-color","",p.contentGlobalPrimary),headerVerticalPadding:i.extend("--ftds-modal-header-vertical-padding","",c.spacing1),headerRightPadding:i.extend("--ftds-modal-header-right-padding","",c.spacing1),headerLeftPadding:i.extend("--ftds-modal-header-left-padding","",c.spacing6),headerGap:i.extend("--ftds-modal-header-gap","",c.spacing2),headerBorderBottomWidth:i.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:i.extend("--ftds-modal-border-radius","",c.borderRadiusM)}});var pS,Mf=u(()=>{J();re();ue();pS={overlayOpacity:i.extend("--ftds-drawer-overlay-opacity","",c.opacity40),shadow:i.extend("--ftds-drawer-shadow","",c.shadowElevation03),bodyColor:i.extend("--ftds-drawer-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ftds-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:i.extend("--ftds-drawer-body-vertical-padding","",c.spacing6),bodyGap:i.extend("--ftds-drawer-body-gap","",c.spacing6),bodyBackgroundColor:i.extend("--ftds-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:i.extend("--ftds-drawer-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ftds-drawer-header-border-color","",p.borderGlobalSubtle),headerColor:i.extend("--ftds-drawer-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ftds-drawer-header-trailing-icon-color","",p.contentGlobalSecondary),headerHeight:i.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ftds-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:i.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:i.extend("--ftds-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:i.extend("--ftds-drawer-buttons-bar-background-color","",p.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ftds-drawer-buttons-bar-border-color","",p.borderGlobalSubtle),buttonsBarColor:i.extend("--ftds-drawer-buttons-bar-color","",p.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ftds-drawer-buttons-bar-horizontal-padding","",c.spacing6),buttonsBarVerticalPadding:i.extend("--ftds-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:i.extend("--ftds-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:i.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:i.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:i.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:i.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:i.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:i.extend("--ftds-drawer-overlay-background-color","",c.colorGray700)}});var fS,Ff=u(()=>{J();re();ue();fS={offBorderBottomWidth:i.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:i.extend("--ftds-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:i.extend("--ftds-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:i.extend("--ftds-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:i.extend("--ftds-tabs-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-tabs-off-color","",p.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-tabs-off-state-layer-color","",p.contentGlobalSubtle),offBorderBottomColor:i.extend("--ftds-tabs-off-border-bottom-color","",p.borderGlobalSubtle),activeTabIndicatorHeight:i.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:i.extend("--ftds-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:i.extend("--ftds-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:i.extend("--ftds-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:i.extend("--ftds-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:i.extend("--ftds-tabs-horizontal-gap","",c.spacing1),verticalGap:i.extend("--ftds-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:i.extend("--ftds-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:i.extend("--ftds-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:i.extend("--ftds-tabs-on-color","",p.contentActionPrimary),onStateLayerColor:i.extend("--ftds-tabs-on-state-layer-color","",p.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ftds-tabs-on-active-tab-indicator-color","",p.contentActionPrimary),iconOnlyHorizontalPadding:i.extend("--ftds-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:i.extend("--ftds-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:i.extend("--ftds-tabs-alert-top-padding","",c.spacing1),alertRightPadding:i.extend("--ftds-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:i.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-tabs-focus-focus-ring-color","",p.borderActionFocusRing)}});var hS,Bf=u(()=>{J();re();ue();hS={largeFieldHorizontalPadding:i.extend("--ftds-text-input-large-field-horizontal-padding","",c.spacing4),largeFieldHorizontalGap:i.extend("--ftds-text-input-large-field-horizontal-gap","",c.spacing3),largeFieldVerticalGap:i.extend("--ftds-text-input-large-field-vertical-gap","",c.spacing05),largeFieldHeight:i.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:i.extend("--ftds-text-input-large-field-icon-size","",c.iconSize3),mediumFieldHorizontalPadding:i.extend("--ftds-text-input-medium-field-horizontal-padding","",c.spacing4),mediumFieldHorizontalGap:i.extend("--ftds-text-input-medium-field-horizontal-gap","",c.spacing3),mediumFieldVerticalGap:i.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:i.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:i.extend("--ftds-text-input-medium-field-icon-size","",c.iconSize3),helperHorizontalPadding:i.extend("--ftds-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:i.extend("--ftds-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:i.extend("--ftds-text-input-helper-icon-size","",c.iconSize2),borderRadius:i.extend("--ftds-text-input-border-radius","",c.borderRadiusS),backgroundColor:i.extend("--ftds-text-input-background-color","",c.colorWhite),contentValueColor:i.extend("--ftds-text-input-content-value-color","",p.contentGlobalPrimary),trailingIconColor:i.extend("--ftds-text-input-trailing-icon-color","",p.contentGlobalSubtle),labelColor:i.extend("--ftds-text-input-label-color","",p.contentGlobalSubtle),defaultBorderColor:i.extend("--ftds-text-input-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:i.extend("--ftds-text-input-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:i.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ftds-text-input-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:i.extend("--ftds-text-input-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:i.extend("--ftds-text-input-error-helper-icon-color","",p.contentErrorIconOnly),warningBorderColor:i.extend("--ftds-text-input-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:i.extend("--ftds-text-input-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:i.extend("--ftds-text-input-warning-helper-icon-color","",p.contentWarningIconOnly),warningBorderWidth:i.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:i.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-text-input-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ftds-text-input-disabled-component-opacity","",c.opacity40)}});var mS,Uf=u(()=>{J();re();ue();mS={backgroundColor:i.extend("--ftds-text-area-background-color","",c.colorWhite),contentValueColor:i.extend("--ftds-text-area-content-value-color","",p.contentGlobalPrimary),labelColor:i.extend("--ftds-text-area-label-color","",p.contentGlobalSubtle),defaultBorderColor:i.extend("--ftds-text-area-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:i.extend("--ftds-text-area-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:i.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ftds-text-area-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:i.extend("--ftds-text-area-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:i.extend("--ftds-text-area-error-helper-icon-color","",p.contentErrorIconOnly),focusFocusRingColor:i.extend("--ftds-text-area-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ftds-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:i.extend("--ftds-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:i.extend("--ftds-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:i.extend("--ftds-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:i.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:i.extend("--ftds-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:i.extend("--ftds-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:i.extend("--ftds-text-area-helper-icon-size","",c.iconSize2),borderRadius:i.extend("--ftds-text-area-border-radius","",c.borderRadiusS)}});var gS,zf=u(()=>{J();re();ue();gS={height:i.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:i.extend("--ftds-floating-menu-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-floating-menu-vertical-padding","",c.spacing2),offIconColor:i.extend("--ftds-floating-menu-off-icon-color","",p.contentGlobalPrimary),offColor:i.extend("--ftds-floating-menu-off-color","",p.contentGlobalPrimary),onColor:i.extend("--ftds-floating-menu-on-color","",p.contentActionPrimary),onStateLayerColor:i.extend("--ftds-floating-menu-on-state-layer-color","",p.contentActionPrimary),gap:i.extend("--ftds-floating-menu-gap","",c.spacing3),focusFocusRingColor:i.extend("--ftds-floating-menu-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ftds-floating-menu-focus-state-layer-opacity","",c.opacity24),hoverStateLayerOpacity:i.extend("--ftds-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:i.extend("--ftds-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:i.extend("--ftds-floating-menu-icon-size","",c.iconSize3),backgroundColor:i.extend("--ftds-floating-menu-background-color","",p.backgroundGlobalOnSurface),shadow:i.extend("--ftds-floating-menu-shadow","",c.shadowElevation02),multiselectCheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",p.contentActionPrimary),multiselectCheckedColor:i.extend("--ftds-floating-menu-multiselect-checked-color","",p.contentGlobalPrimary),multiselectCheckedIconColor:i.extend("--ftds-floating-menu-multiselect-checked-icon-color","",p.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",c.opacity8),multiselectCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",c.opacity16),multiselectCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",c.opacity24),multiselectIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",p.contentActionPrimary),multiselectIndeterminatedColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-color","",p.contentGlobalPrimary),multiselectIndeterminatedIconColor:i.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",p.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",c.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",c.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",c.opacity24),multiselectUncheckedStateLayerColor:i.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",p.contentGlobalPrimary),multiselectUncheckedColor:i.extend("--ftds-floating-menu-multiselect-unchecked-color","",p.contentGlobalPrimary),multiselectUncheckedIconColor:i.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",p.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",c.opacity0),multiselectUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",c.opacity8),multiselectUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",c.opacity16),selectAllCheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",p.contentActionPrimary),selectAllCheckedColor:i.extend("--ftds-floating-menu-select-all-checked-color","",p.contentGlobalPrimary),selectAllCheckedIconColor:i.extend("--ftds-floating-menu-select-all-checked-icon-color","",p.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",c.opacity0),selectAllCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",c.opacity16),selectAllCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",c.opacity24),selectAllIndeterminatedStateLayerColor:i.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",p.contentGlobalPrimary),selectAllIndeterminatedColor:i.extend("--ftds-floating-menu-select-all-indeterminated-color","",p.contentGlobalPrimary),selectAllIndeterminatedIconColor:i.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",p.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",c.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",c.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",c.opacity16),selectAllUncheckedStateLayerColor:i.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",p.contentGlobalPrimary),selectAllUncheckedColor:i.extend("--ftds-floating-menu-select-all-unchecked-color","",p.contentGlobalPrimary),selectAllUncheckedIconColor:i.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",p.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",c.opacity0),selectAllUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",c.opacity8),selectAllUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",c.opacity16),defaultUncheckedStateLayerColor:i.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",p.contentGlobalPrimary),defaultUncheckedColor:i.extend("--ftds-floating-menu-default-unchecked-color","",p.contentGlobalPrimary),defaultUncheckedIconColor:i.extend("--ftds-floating-menu-default-unchecked-icon-color","",p.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",c.opacity0),defaultUncheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",c.opacity8),defaultUncheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",c.opacity16),defaultCheckedStateLayerColor:i.extend("--ftds-floating-menu-default-checked-state-layer-color","",p.contentActionPrimary),defaultCheckedColor:i.extend("--ftds-floating-menu-default-checked-color","",p.contentActionPrimary),defaultCheckedIconColor:i.extend("--ftds-floating-menu-default-checked-icon-color","",p.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",c.opacity8),defaultCheckedHoverStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",c.opacity16),defaultCheckedFocusStateLayerOpacity:i.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",c.opacity24)}});var yS,Hf=u(()=>{J();re();ue();yS={menuVerticalGap:i.extend("--ftds-combobox-menu-vertical-gap","",c.spacing2),menuNewValuePaddingTop:i.extend("--ftds-combobox-menu-new-value-padding-top","",c.spacing4),menuNewValuePaddingBottom:i.extend("--ftds-combobox-menu-new-value-padding-bottom","",c.spacing1),menuNewValueHorizontalPadding:i.extend("--ftds-combobox-menu-new-value-horizontal-padding","",c.spacing4),menuNewValueLabelColor:i.extend("--ftds-combobox-menu-new-value-label-color","",p.contentGlobalSubtle),menuNewValueBorderColor:i.extend("--ftds-combobox-menu-new-value-border-color","",p.borderGlobalPrimary),menuNewValueBorderWidth:i.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:i.extend("--ftds-combobox-menu-new-value-error-background-color","",p.backgroundErrorSubtle),menuNewValueErrorBorderColor:i.extend("--ftds-combobox-menu-new-value-error-border-color","",p.borderErrorPrimary),menuNewValueErrorStateLayerColor:i.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",p.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",c.opacity4),menuNewValueErrorActiveStateLayerOpacity:i.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",c.opacity6),menuMessagePaddingTop:i.extend("--ftds-combobox-menu-message-padding-top","",c.spacing2),menuMessagePaddingBottom:i.extend("--ftds-combobox-menu-message-padding-bottom","",c.spacing2),menuMessageHorizontalPadding:i.extend("--ftds-combobox-menu-message-horizontal-padding","",c.spacing4),menuMessageLabelColor:i.extend("--ftds-combobox-menu-message-label-color","",p.contentGlobalSubtle),valuesChipBackgroundColor:i.extend("--ftds-combobox-values-chip-background-color","",p.backgroundGlobalOnSurface),valuesChipBorderColor:i.extend("--ftds-combobox-values-chip-border-color","",p.borderInputPrimary)}});var bS,Vf=u(()=>{J();re();ue();bS={backgroundColor:i.extend("--ftds-popover-background-color","",p.backgroundGlobalOnSurface),titleColor:i.extend("--ftds-popover-title-color","",p.contentGlobalPrimary),bodyColor:i.extend("--ftds-popover-body-color","",p.contentGlobalSecondary),gap:i.extend("--ftds-popover-gap","",c.spacing2),borderRadius:i.extend("--ftds-popover-border-radius","",c.borderRadiusM),shadow:i.extend("--ftds-popover-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:i.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:i.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:i.extend("--ftds-popover-content-section-vertical-gap","",c.spacing2),multiSectionVerticalGap:i.extend("--ftds-popover-multi-section-vertical-gap","",c.spacing6),defaultHorizontalPadding:i.extend("--ftds-popover-default-horizontal-padding","",c.spacing6),defaultVerticalPadding:i.extend("--ftds-popover-default-vertical-padding","",c.spacing6),denseHorizontalPadding:i.extend("--ftds-popover-dense-horizontal-padding","",c.spacing3),denseVerticalPadding:i.extend("--ftds-popover-dense-vertical-padding","",c.spacing3)}});var vS,Wf=u(()=>{J();re();ue();vS={hoverStateLayerOpacity:i.extend("--ftds-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:i.extend("--ftds-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:i.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:i.extend("--ftds-collapsible-focus-focus-ring-color","",p.borderActionFocusRing),activeStateLayerOpacity:i.extend("--ftds-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:i.extend("--ftds-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:i.extend("--ftds-collapsible-horizontal-padding","",c.spacing4),verticalPadding:i.extend("--ftds-collapsible-vertical-padding","",c.spacing3),color:i.extend("--ftds-collapsible-color","",p.contentGlobalPrimary),stateLayerColor:i.extend("--ftds-collapsible-state-layer-color","",p.contentGlobalPrimary),backgroundColor:i.extend("--ftds-collapsible-background-color","",p.backgroundGlobalOnSurface),borderColor:i.extend("--ftds-collapsible-border-color","",p.borderGlobalSubtle),iconSize:i.extend("--ftds-collapsible-icon-size","",c.iconSize3)}});var xS,jf=u(()=>{J();re();ue();xS={groupHorizontalPadding:i.extend("--ftds-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:i.extend("--ftds-switch-group-vertical-padding","",c.spacing1),groupGap:i.extend("--ftds-switch-group-gap","",c.spacing1),groupBackgroundColor:i.extend("--ftds-switch-group-background-color","",p.backgroundGlobalSurface),groupBorderColor:i.extend("--ftds-switch-group-border-color","",p.borderGlobalSubtle),groupBorderRadius:i.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ftds-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:i.extend("--ftds-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:i.extend("--ftds-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:i.extend("--ftds-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:i.extend("--ftds-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:i.extend("--ftds-switch-off-disabled-component-opacity","",c.opacity40),offColor:i.extend("--ftds-switch-off-color","",p.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-switch-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:i.extend("--ftds-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:i.extend("--ftds-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:i.extend("--ftds-switch-on-disabled-component-opacity","",c.opacity40),onColor:i.extend("--ftds-switch-on-color","",p.contentActionPrimary),onStateLayerColor:i.extend("--ftds-switch-on-state-layer-color","",p.contentActionPrimary),iconHorizontalPadding:i.extend("--ftds-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:i.extend("--ftds-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:i.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ftds-switch-focus-focus-ring-color","",p.borderActionFocusRing),optionBorderRadius:i.extend("--ftds-switch-option-border-radius","",c.borderRadiusS)}});var SS,Gf=u(()=>{J();re();SS={color1Light:i.extend("--ftds-chart-1-light","for area color charts",c.colorBrand40),color1Base:i.extend("--ftds-chart-1-base","for line charts",c.colorBrand0),color2Light:i.extend("--ftds-chart-2-light","for area color charts",c.colorYellow60),color2Base:i.extend("--ftds-chart-2-base","for line charts",c.colorYellow100),color3Light:i.extend("--ftds-chart-3-light","",c.colorUltramarine40),color3Base:i.extend("--ftds-chart-3-base","",c.colorUltramarine70),color4Light:i.extend("--ftds-chart-4-light","",c.colorCyan50),color4Base:i.extend("--ftds-chart-4-base","",c.colorCyan100),color5Light:i.extend("--ftds-chart-5-light","",c.colorRed40),color5Base:i.extend("--ftds-chart-5-base","",c.colorRed60),color6Light:i.extend("--ftds-chart-6-light","",c.colorGreen40),color6Base:i.extend("--ftds-chart-6-base","",c.colorGreen70),color7Light:i.extend("--ftds-chart-7-light","",c.colorOrange70),color7Base:i.extend("--ftds-chart-7-base","",c.colorOrange100),color8Light:i.extend("--ftds-chart-8-light","",c.colorAvocado70),color8Base:i.extend("--ftds-chart-8-base","",c.colorAvocado200),color9Light:i.extend("--ftds-chart-9-light","",c.colorBrown50),color9Base:i.extend("--ftds-chart-9-base","",c.colorBrown200),color10Light:i.extend("--ftds-chart-10-light","",c.colorGray50),color10Base:i.extend("--ftds-chart-10-base","",c.colorGray80),monochrome10:i.extend("--ftds-chart-monochrome-10","",c.colorBrand10),monochrome20:i.extend("--ftds-chart-monochrome-20","",c.colorBrand20),monochrome30:i.extend("--ftds-chart-monochrome-30","",c.colorBrand40),monochrome40:i.extend("--ftds-chart-monochrome-40","",c.colorBrand60),monochrome50:i.extend("--ftds-chart-monochrome-50","",c.colorBrand0),monochrome60:i.extend("--ftds-chart-monochrome-60","",c.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",c.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",c.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",c.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:i.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",c.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",c.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:i.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",c.opacity48),scatterplotDatapointInitialHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",c.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",c.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",c.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",c.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:i.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",c.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:i.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",c.colorGray70),scatterplotDatapointHoverHoverRingColor:i.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",c.colorCyan200)}});var CS,Kf=u(()=>{J();re();CS={color1IconColor:i.extend("--ftds-page-designer-1-icon-color","for area color charts",c.colorCyan0),color1ToolbarColor:i.extend("--ftds-page-designer-1-toolbar-color","for area color charts",c.colorCyan0),color2IconColor:i.extend("--ftds-page-designer-2-icon-color","for area color charts",c.colorBrand0),color2ToolbarColor:i.extend("--ftds-page-designer-2-toolbar-color","for area color charts",c.colorBrand0),color3IconColor:i.extend("--ftds-page-designer-3-icon-color","for area color charts",c.colorYellow200),color3ToolbarColor:i.extend("--ftds-page-designer-3-toolbar-color","for area color charts",c.colorYellow200),color4IconColor:i.extend("--ftds-page-designer-4-icon-color","for area color charts",c.colorUltramarine50),color4ToolbarColor:i.extend("--ftds-page-designer-4-toolbar-color","for area color charts",c.colorUltramarine50),color5IconColor:i.extend("--ftds-page-designer-5-icon-color","for area color charts",c.colorGreen0),color5ToolbarColor:i.extend("--ftds-page-designer-5-toolbar-color","for area color charts",c.colorGreen0),color6IconColor:i.extend("--ftds-page-designer-6-icon-color","for area color charts",c.colorOrange0),color6ToolbarColor:i.extend("--ftds-page-designer-6-toolbar-color","for area color charts",c.colorOrange0),color7IconColor:i.extend("--ftds-page-designer-7-icon-color","for area color charts",c.colorAvocado200),color7ToolbarColor:i.extend("--ftds-page-designer-7-toolbar-color","for area color charts",c.colorAvocado200),color8IconColor:i.extend("--ftds-page-designer-8-icon-color","for area color charts",c.colorBrown0),color8ToolbarColor:i.extend("--ftds-page-designer-8-toolbar-color","for area color charts",c.colorBrown0)}});var OS,qf=u(()=>{J();re();ue();OS={borderWidth:i.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ftds-notice-horizontal-padding","",c.spacing3),verticalPadding:i.extend("--ftds-notice-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-notice-border-radius","",c.borderRadiusS),gap:i.extend("--ftds-notice-gap","",c.spacing2),iconSize:i.extend("--ftds-notice-icon-size","",c.iconSize3),infoBackgroundColor:i.extend("--ftds-notice-info-background-color","",p.backgroundInfoSubtle),infoBorderColor:i.extend("--ftds-notice-info-border-color","",p.borderInfoSubtle),infoColor:i.extend("--ftds-notice-info-color","",p.contentInfoPrimary),infoIconColor:i.extend("--ftds-notice-info-icon-color","",p.contentInfoIconOnly),warningBackgroundColor:i.extend("--ftds-notice-warning-background-color","",p.backgroundWarningSubtle),warningBorderColor:i.extend("--ftds-notice-warning-border-color","",p.borderWarningSubtle),warningColor:i.extend("--ftds-notice-warning-color","",p.contentWarningPrimary),warningIconColor:i.extend("--ftds-notice-warning-icon-color","",p.contentWarningIconOnly),errorBackgroundColor:i.extend("--ftds-notice-error-background-color","",p.backgroundErrorSubtle),errorBorderColor:i.extend("--ftds-notice-error-border-color","",p.borderErrorSubtle),errorColor:i.extend("--ftds-notice-error-color","",p.contentErrorPrimary),errorIconColor:i.extend("--ftds-notice-error-icon-color","",p.contentErrorIconOnly),successBackgroundColor:i.extend("--ftds-notice-success-background-color","",p.backgroundSuccessSubtle),successBorderColor:i.extend("--ftds-notice-success-border-color","",p.borderSuccessSubtle),successColor:i.extend("--ftds-notice-success-color","",p.contentSuccessPrimary),successIconColor:i.extend("--ftds-notice-success-icon-color","",p.contentSuccessIconOnly),denseHorizontalPadding:i.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:i.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:i.extend("--ftds-notice-dense-gap","",c.spacing1),denseIconSize:i.extend("--ftds-notice-dense-icon-size","",c.iconSize2),denseBorderWidth:i.create("--ftds-notice-dense-border-width","","SIZE","0")}});var ES,Zf=u(()=>{J();re();ue();ES={offHoverStateLayerOpacity:i.extend("--ftds-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:i.extend("--ftds-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:i.extend("--ftds-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:i.extend("--ftds-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:i.extend("--ftds-toggle-off-background-color","",p.contentGlobalSubtle),offIconColor:i.extend("--ftds-toggle-off-icon-color","",p.contentGlobalSubtle),offStateLayerColor:i.extend("--ftds-toggle-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ftds-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:i.extend("--ftds-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:i.extend("--ftds-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:i.extend("--ftds-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:i.extend("--ftds-toggle-on-background-color","",p.contentActionPrimary),onStateLayerColor:i.extend("--ftds-toggle-on-state-layer-color","",p.contentActionPrimary),onIconColor:i.extend("--ftds-toggle-on-icon-color","",p.contentActionPrimary),color:i.extend("--ftds-toggle-color","",p.contentGlobalPrimary),focusFocusRingColor:i.extend("--ftds-toggle-focus-focus-ring-color","",p.borderActionFocusRing),gap:i.extend("--ftds-toggle-gap","",c.spacing3)}});var wS,Qf=u(()=>{J();re();ue();wS={iconSize:i.extend("--ftds-notification-icon-size","",c.iconSize4),leftPadding:i.extend("--ftds-notification-left-padding","",c.spacing5),rightPadding:i.extend("--ftds-notification-right-padding","",c.spacing4),verticalPadding:i.extend("--ftds-notification-vertical-padding","",c.spacing3),infoBackgroundColor:i.extend("--ftds-notification-info-background-color","",p.backgroundInfoSubtle),infoColor:i.extend("--ftds-notification-info-color","",p.contentInfoPrimary),infoIconColor:i.extend("--ftds-notification-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-notification-info-border-color","",p.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-notification-success-background-color","",p.backgroundSuccessSubtle),successColor:i.extend("--ftds-notification-success-color","",p.contentSuccessPrimary),successIconColor:i.extend("--ftds-notification-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-notification-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-notification-warning-background-color","",p.backgroundWarningSubtle),warningColor:i.extend("--ftds-notification-warning-color","",p.contentWarningPrimary),warningIconColor:i.extend("--ftds-notification-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-notification-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-notification-error-background-color","",p.backgroundErrorSubtle),errorColor:i.extend("--ftds-notification-error-color","",p.contentErrorPrimary),errorIconColor:i.extend("--ftds-notification-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-notification-error-border-color","",p.borderErrorSubtle),borderRadius:i.extend("--ftds-notification-border-radius","",c.borderRadiusPill),borderWidth:i.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:i.extend("--ftds-notification-leading-gap","",c.spacing2),trailingGap:i.extend("--ftds-notification-trailing-gap","",c.spacing8)}});var RS,Yf=u(()=>{J();re();ue();RS={horizontalPadding:i.extend("--ftds-tooltip-horizontal-padding","",c.spacing2),verticalPadding:i.extend("--ftds-tooltip-vertical-padding","",c.spacing2),borderRadius:i.extend("--ftds-tooltip-border-radius","",c.borderRadiusS),color:i.extend("--ftds-tooltip-color","",p.contentGlobalOnColor),backgroundColor:i.extend("--ftds-tooltip-background-color","",p.contentGlobalPrimary),backgroundOpacity:i.extend("--ftds-tooltip-background-opacity","",c.opacity80),shadow:i.extend("--ftds-tooltip-shadow","",c.shadowElevation02),maxWidth:i.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ftds-tooltip-gap","",c.spacing05)}});var AS,Xf=u(()=>{J();re();ue();AS={verticalPadding:i.extend("--ftds-reorderable-list-vertical-padding","",c.spacing4),gap:i.extend("--ftds-reorderable-list-gap","",c.spacing1),borderRadius:i.extend("--ftds-reorderable-list-border-radius","",c.borderRadiusM),reorderableItemTitleMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",c.spacing6),reorderableItemTitleColor:i.extend("--ftds-reorderable-list-reorderable-item-title-color","",p.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",c.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",c.spacing2),reorderableItemRightButtonsGroupHorizontalGap:i.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",c.spacing2),reorderableItemUsersCountColor:i.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",p.contentGlobalPrimary),reorderableItemUsersCountMarginRight:i.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",c.spacing6),reorderableItemBackgroundColor:i.extend("--ftds-reorderable-list-reorderable-item-background-color","",p.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",c.spacing1),reorderableItemWarningMessageColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",p.contentWarningPrimary),reorderableItemWarningMessageIconColor:i.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",p.contentWarningIconOnly),reorderableItemGripColor:i.extend("--ftds-reorderable-list-reorderable-item-grip-color","",p.contentGlobalSecondary),reorderableItemGripOpacity:i.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",c.opacity48),boxShadow:i.extend("--ftds-reorderable-list-box-shadow","",c.shadowElevation01),borderWidth:i.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:i.extend("--ftds-reorderable-list-reorderable-items-gap","",c.spacing2),leftPadding:i.extend("--ftds-reorderable-list-left-padding","",c.spacing2),rightPadding:i.extend("--ftds-reorderable-list-right-padding","",c.spacing6),borderColor:i.extend("--ftds-reorderable-list-border-color","",p.borderGlobalPrimary),backgroundColor:i.extend("--ftds-reorderable-list-background-color","",p.backgroundGlobalOnSurfaceDark)}});var LS,Jf=u(()=>{J();re();LS={menuHorizontalPadding:i.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:i.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:i.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:i.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)}});var eh=u(()=>{re();ue();xf();Sf();Cf();Of();Ef();wf();Rf();Af();Lf();kf();Tf();_f();If();Pf();Nf();$f();Df();Mf();Ff();Bf();Uf();zf();Hf();Vf();Wf();jf();Gf();Kf();qf();Zf();Qf();Yf();Xf();Jf()});function hl(r){return`ftds--family-${r}`}function ml(r){return`ftds--size-${r}`}var Ji,en,th=u(()=>{(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Ji||(Ji={}));(function(r){r.large="large",r.medium="medium",r.small="small"})(en||(en={}))});var Yo=u(()=>{J();eh();th()});var gl={};q(gl,{DesignSystemFamily:()=>Ji,DesignSystemSize:()=>en,FtCssVariableFactory:()=>i,badge:()=>aS,banner:()=>nS,button:()=>Z0,card:()=>Q0,chart:()=>SS,checkbox:()=>X0,chip:()=>rS,chipChoice:()=>tS,chipGroup:()=>oS,collapsible:()=>vS,combobox:()=>yS,dateRangePicker:()=>LS,drawer:()=>pS,floatingMenu:()=>gS,foundation:()=>c,link:()=>iS,modal:()=>uS,notice:()=>OS,notification:()=>wS,pageDesigner:()=>CS,pageFooter:()=>cS,pageHeader:()=>lS,pageLayout:()=>dS,popover:()=>bS,radio:()=>J0,reorderableList:()=>AS,resolveFamilyClass:()=>hl,resolveSizeClass:()=>ml,semantic:()=>p,setVariable:()=>A,switch_:()=>xS,table:()=>eS,tabs:()=>fS,textArea:()=>mS,textInput:()=>hS,titleBreadcrumb:()=>sS,toggle:()=>ES,tooltip:()=>RS,treeList:()=>Y0,typographies:()=>K0,typographyBody1Medium:()=>cf,typographyBody1Regular:()=>lf,typographyBody1Semibold:()=>df,typographyBody2Medium:()=>pf,typographyBody2MediumUnderline:()=>ff,typographyBody2Regular:()=>uf,typographyBody2Semibold:()=>hf,typographyCaption1Medium:()=>mf,typographyCaption1Semibold:()=>gf,typographyCaption2Bold:()=>vf,typographyCaption2Medium:()=>yf,typographyCaption2Semibold:()=>bf,typographyDisplay:()=>of,typographyTitle1:()=>nf,typographyTitle2:()=>af,typographyTitle3:()=>sf,typographyVariants:()=>q0});var ia=u(()=>{"use strict";Yo()});var yl={};q(yl,{designSystemVariables:()=>S});var S,bl=u(()=>{"use strict";ia();S={colorPrimary:i.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:i.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:i.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:i.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:i.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:i.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:i.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:i.create("--ft-color-warning","","COLOR","#B74706"),colorError:i.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:i.create("--ft-color-success","","COLOR","#187856"),colorOutline:i.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:i.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:i.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:i.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:i.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:i.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:i.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:i.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:i.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:i.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:i.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:i.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:i.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:i.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:i.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:i.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:i.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:i.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:i.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:i.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:i.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:i.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:i.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:i.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:i.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:i.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:i.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:i.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:i.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:i.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:i.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:i.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:i.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:i.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:i.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:i.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:i.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:i.create("--ft-elevation-00","","SHADOW","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:i.create("--ft-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)"),elevation02:i.create("--ft-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)"),elevation03:i.create("--ft-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)"),elevation04:i.create("--ft-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)"),elevation06:i.create("--ft-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)"),elevation08:i.create("--ft-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)"),elevation12:i.create("--ft-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)"),elevation16:i.create("--ft-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)"),elevation24:i.create("--ft-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)"),borderRadiusS:i.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:i.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:i.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:i.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:i.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:i.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")}});var vl={};q(vl,{DynamicImporter:()=>na,dynamicImporter:()=>kS});var na,kS,xl=u(()=>{"use strict";na=class{async import(e){if(e)return import(e)}},kS=new na});function Ol(r,e,t){return ct(r,co(e,t))}function Xo(r,e){return typeof r=="function"?r(e):r}function Nr(r){return r.split("-")[0]}function rr(r){return r.split("-")[1]}function El(r){return r==="x"?"y":"x"}function wl(r){return r==="y"?"height":"width"}function Jo(r){let e=r[0];return e==="t"||e==="b"?"y":"x"}function Rl(r){return El(Jo(r))}function ih(r,e,t){t===void 0&&(t=!1);let o=rr(r),n=Rl(r),a=wl(n),s=n==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Sl(s)),[s,Sl(s)]}function nh(r){return r.includes("start")?r.replace("start","end"):r.replace("end","start")}function Sl(r){let e=Nr(r);return TS[e]+r.slice(e.length)}function _S(r){return{top:0,right:0,bottom:0,left:0,...r}}function ah(r){return typeof r!="number"?_S(r):{top:r,right:r,bottom:r,left:r}}function uo(r){let{x:e,y:t,width:o,height:n}=r;return{width:o,height:n,top:t,left:e,right:e+o,bottom:t+n,x:e,y:t}}var oh,rh,Cl,co,ct,tn,Vt,TS,aa=u(()=>{oh=["top","right","bottom","left"],rh=["start","end"],Cl=oh.reduce((r,e)=>r.concat(e,e+"-"+rh[0],e+"-"+rh[1]),[]),co=Math.min,ct=Math.max,tn=Math.round,Vt=r=>({x:r,y:r}),TS={left:"right",right:"left",bottom:"top",top:"bottom"}});function sh(r,e,t){let{reference:o,floating:n}=r,a=Jo(e),s=Rl(e),l=wl(s),d=Nr(e),f=a==="y",m=o.x+o.width/2-n.width/2,g=o.y+o.height/2-n.height/2,y=o[l]/2-n[l]/2,x;switch(d){case"top":x={x:m,y:o.y-n.height};break;case"bottom":x={x:m,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:g};break;case"left":x={x:o.x-n.width,y:g};break;default:x={x:o.x,y:o.y}}switch(rr(e)){case"start":x[s]-=y*(t&&f?-1:1);break;case"end":x[s]+=y*(t&&f?-1:1);break}return x}async function lh(r,e){var t;e===void 0&&(e={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:d}=r,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:y=!1,padding:x=0}=Xo(e,r),v=ah(x),_=l[y?g==="floating"?"reference":"floating":g],P=uo(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(_)))==null||t?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:f,rootBoundary:m,strategy:d})),$=g==="floating"?{x:o,y:n,width:s.floating.width,height:s.floating.height}:s.reference,E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),C=await(a.isElement==null?void 0:a.isElement(E))?await(a.getScale==null?void 0:a.getScale(E))||{x:1,y:1}:{x:1,y:1},L=uo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:$,offsetParent:E,strategy:d}):$);return{top:(P.top-L.top+v.top)/C.y,bottom:(L.bottom-P.bottom+v.bottom)/C.y,left:(P.left-L.left+v.left)/C.x,right:(L.right-P.right+v.right)/C.x}}function PS(r,e,t){return(r?[...t.filter(n=>rr(n)===r),...t.filter(n=>rr(n)!==r)]:t.filter(n=>Nr(n)===n)).filter(n=>r?rr(n)===r||(e?nh(n)!==n:!1):!0)}async function $S(r,e){let{placement:t,platform:o,elements:n}=r,a=await(o.isRTL==null?void 0:o.isRTL(n.floating)),s=Nr(t),l=rr(t),d=Jo(t)==="y",f=NS.has(s)?-1:1,m=a&&d?-1:1,g=Xo(e,r),{mainAxis:y,crossAxis:x,alignmentAxis:v}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return l&&typeof v=="number"&&(x=l==="end"?v*-1:v),d?{x:x*m,y:y*f}:{x:y*f,y:x*m}}var IS,ch,dh,NS,uh,ph,fh,hh=u(()=>{aa();aa();IS=50,ch=async(r,e,t)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=s.detectOverflow?s:{...s,detectOverflow:lh},d=await(s.isRTL==null?void 0:s.isRTL(e)),f=await s.getElementRects({reference:r,floating:e,strategy:n}),{x:m,y:g}=sh(f,o,d),y=o,x=0,v={};for(let w=0;w<a.length;w++){let _=a[w];if(!_)continue;let{name:P,fn:$}=_,{x:E,y:C,data:L,reset:D}=await $({x:m,y:g,initialPlacement:o,placement:y,strategy:n,middlewareData:v,rects:f,platform:l,elements:{reference:r,floating:e}});m=E??m,g=C??g,v[P]={...v[P],...L},D&&x<IS&&(x++,typeof D=="object"&&(D.placement&&(y=D.placement),D.rects&&(f=D.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:n}):D.rects),{x:m,y:g}=sh(f,y,d)),w=-1)}return{x:m,y:g,placement:y,strategy:n,middlewareData:v}};dh=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,o,n;let{rects:a,middlewareData:s,placement:l,platform:d,elements:f}=e,{crossAxis:m=!1,alignment:g,allowedPlacements:y=Cl,autoAlignment:x=!0,...v}=Xo(r,e),w=g!==void 0||y===Cl?PS(g||null,x,y):y,_=await d.detectOverflow(e,v),P=((t=s.autoPlacement)==null?void 0:t.index)||0,$=w[P];if($==null)return{};let E=ih($,a,await(d.isRTL==null?void 0:d.isRTL(f.floating)));if(l!==$)return{reset:{placement:w[0]}};let C=[_[Nr($)],_[E[0]],_[E[1]]],L=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:$,overflows:C}],D=w[P+1];if(D)return{data:{index:P+1,overflows:L},reset:{placement:D}};let X=L.map(z=>{let G=rr(z.placement);return[z.placement,G&&m?z.overflows.slice(0,2).reduce((se,$e)=>se+$e,0):z.overflows[0],z.overflows]}).sort((z,G)=>z[1]-G[1]),le=((n=X.filter(z=>z[2].slice(0,rr(z[0])?2:3).every(G=>G<=0))[0])==null?void 0:n[0])||X[0][0];return le!==l?{data:{index:P+1,overflows:L},reset:{placement:le}}:{}}}},NS=new Set(["left","top"]);uh=function(r){return r===void 0&&(r=0),{name:"offset",options:r,async fn(e){var t,o;let{x:n,y:a,placement:s,middlewareData:l}=e,d=await $S(e,r);return s===((t=l.offset)==null?void 0:t.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},ph=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:o,placement:n,platform:a}=e,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:P=>{let{x:$,y:E}=P;return{x:$,y:E}}},...f}=Xo(r,e),m={x:t,y:o},g=await a.detectOverflow(e,f),y=Jo(Nr(n)),x=El(y),v=m[x],w=m[y];if(s){let P=x==="y"?"top":"left",$=x==="y"?"bottom":"right",E=v+g[P],C=v-g[$];v=Ol(E,v,C)}if(l){let P=y==="y"?"top":"left",$=y==="y"?"bottom":"right",E=w+g[P],C=w-g[$];w=Ol(E,w,C)}let _=d.fn({...e,[x]:v,[y]:w});return{..._,data:{x:_.x-t,y:_.y-o,enabled:{[x]:s,[y]:l}}}}}},fh=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){var t,o;let{placement:n,rects:a,platform:s,elements:l}=e,{apply:d=()=>{},...f}=Xo(r,e),m=await s.detectOverflow(e,f),g=Nr(n),y=rr(n),x=Jo(n)==="y",{width:v,height:w}=a.floating,_,P;g==="top"||g==="bottom"?(_=g,P=y===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(P=g,_=y==="end"?"top":"bottom");let $=w-m.top-m.bottom,E=v-m.left-m.right,C=co(w-m[_],$),L=co(v-m[P],E),D=!e.middlewareData.shift,X=C,_e=L;if((t=e.middlewareData.shift)!=null&&t.enabled.x&&(_e=E),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(X=$),D&&!y){let z=ct(m.left,0),G=ct(m.right,0),se=ct(m.top,0),$e=ct(m.bottom,0);x?_e=v-2*(z!==0||G!==0?z+G:ct(m.left,m.right)):X=w-2*(se!==0||$e!==0?se+$e:ct(m.top,m.bottom))}await d({...e,availableWidth:_e,availableHeight:X});let le=await s.getDimensions(l.floating);return v!==le.width||w!==le.height?{reset:{rects:!0}}:{}}}}});function la(){return typeof window<"u"}function fo(r){return gh(r)?(r.nodeName||"").toLowerCase():"#document"}function dt(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function or(r){var e;return(e=(gh(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function gh(r){return la()?r instanceof Node||r instanceof dt(r).Node:!1}function Pt(r){return la()?r instanceof Element||r instanceof dt(r).Element:!1}function ir(r){return la()?r instanceof HTMLElement||r instanceof dt(r).HTMLElement:!1}function mh(r){return!la()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof dt(r).ShadowRoot}function ei(r){let{overflow:e,overflowX:t,overflowY:o,display:n}=Nt(r);return/auto|scroll|overlay|hidden|clip/.test(e+o+t)&&n!=="inline"&&n!=="contents"}function yh(r){return/^(table|td|th)$/.test(fo(r))}function rn(r){try{if(r.matches(":popover-open"))return!0}catch{}try{return r.matches(":modal")}catch{return!1}}function ti(r){let e=Pt(r)?Nt(r):r;return po(e.transform)||po(e.translate)||po(e.scale)||po(e.rotate)||po(e.perspective)||!ca()&&(po(e.backdropFilter)||po(e.filter))||DS.test(e.willChange||"")||MS.test(e.contain||"")}function bh(r){let e=br(r);for(;ir(e)&&!ho(e);){if(ti(e))return e;if(rn(e))return null;e=br(e)}return null}function ca(){return Al==null&&(Al=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Al}function ho(r){return/^(html|body|#document)$/.test(fo(r))}function Nt(r){return dt(r).getComputedStyle(r)}function on(r){return Pt(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function br(r){if(fo(r)==="html")return r;let e=r.assignedSlot||r.parentNode||mh(r)&&r.host||or(r);return mh(e)?e.host:e}function vh(r){let e=br(r);return ho(e)?r.ownerDocument?r.ownerDocument.body:r.body:ir(e)&&ei(e)?e:vh(e)}function sa(r,e,t){var o;e===void 0&&(e=[]),t===void 0&&(t=!0);let n=vh(r),a=n===((o=r.ownerDocument)==null?void 0:o.body),s=dt(n);if(a){let l=da(s);return e.concat(s,s.visualViewport||[],ei(n)?n:[],l&&t?sa(l):[])}else return e.concat(n,sa(n,[],t))}function da(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}var DS,MS,po,Al,Ll=u(()=>{DS=/transform|translate|scale|rotate|perspective|filter/,MS=/paint|layout|strict|content/,po=r=>!!r&&r!=="none"});function Oh(r){let e=Nt(r),t=parseFloat(e.width)||0,o=parseFloat(e.height)||0,n=ir(r),a=n?r.offsetWidth:t,s=n?r.offsetHeight:o,l=tn(t)!==a||tn(o)!==s;return l&&(t=a,o=s),{width:t,height:o,$:l}}function Eh(r){return Pt(r)?r:r.contextElement}function ri(r){let e=Eh(r);if(!ir(e))return Vt(1);let t=e.getBoundingClientRect(),{width:o,height:n,$:a}=Oh(e),s=(a?tn(t.width):t.width)/o,l=(a?tn(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function wh(r){let e=dt(r);return!ca()||!e.visualViewport?FS:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function BS(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==dt(r)?!1:e}function nn(r,e,t,o){e===void 0&&(e=!1),t===void 0&&(t=!1);let n=r.getBoundingClientRect(),a=Eh(r),s=Vt(1);e&&(o?Pt(o)&&(s=ri(o)):s=ri(r));let l=BS(a,t,o)?wh(a):Vt(0),d=(n.left+l.x)/s.x,f=(n.top+l.y)/s.y,m=n.width/s.x,g=n.height/s.y;if(a){let y=dt(a),x=o&&Pt(o)?dt(o):o,v=y,w=da(v);for(;w&&o&&x!==v;){let _=ri(w),P=w.getBoundingClientRect(),$=Nt(w),E=P.left+(w.clientLeft+parseFloat($.paddingLeft))*_.x,C=P.top+(w.clientTop+parseFloat($.paddingTop))*_.y;d*=_.x,f*=_.y,m*=_.x,g*=_.y,d+=E,f+=C,v=dt(w),w=da(v)}}return uo({width:m,height:g,x:d,y:f})}function ua(r,e){let t=on(r).scrollLeft;return e?e.left+t:nn(or(r)).left+t}function Rh(r,e){let t=r.getBoundingClientRect(),o=t.left+e.scrollLeft-ua(r,t),n=t.top+e.scrollTop;return{x:o,y:n}}function US(r){let{elements:e,rect:t,offsetParent:o,strategy:n}=r,a=n==="fixed",s=or(o),l=e?rn(e.floating):!1;if(o===s||l&&a)return t;let d={scrollLeft:0,scrollTop:0},f=Vt(1),m=Vt(0),g=ir(o);if((g||!g&&!a)&&((fo(o)!=="body"||ei(s))&&(d=on(o)),g)){let x=nn(o);f=ri(o),m.x=x.x+o.clientLeft,m.y=x.y+o.clientTop}let y=s&&!g&&!a?Rh(s,d):Vt(0);return{width:t.width*f.x,height:t.height*f.y,x:t.x*f.x-d.scrollLeft*f.x+m.x+y.x,y:t.y*f.y-d.scrollTop*f.y+m.y+y.y}}function zS(r){return Array.from(r.getClientRects())}function HS(r){let e=or(r),t=on(r),o=r.ownerDocument.body,n=ct(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=ct(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-t.scrollLeft+ua(r),l=-t.scrollTop;return Nt(o).direction==="rtl"&&(s+=ct(e.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:l}}function VS(r,e){let t=dt(r),o=or(r),n=t.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let m=ca();(!m||m&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}let f=ua(o);if(f<=0){let m=o.ownerDocument,g=m.body,y=getComputedStyle(g),x=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,v=Math.abs(o.clientWidth-g.clientWidth-x);v<=xh&&(a-=v)}else f<=xh&&(a+=f);return{width:a,height:s,x:l,y:d}}function WS(r,e){let t=nn(r,!0,e==="fixed"),o=t.top+r.clientTop,n=t.left+r.clientLeft,a=ir(r)?ri(r):Vt(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=n*a.x,f=o*a.y;return{width:s,height:l,x:d,y:f}}function Sh(r,e,t){let o;if(e==="viewport")o=VS(r,t);else if(e==="document")o=HS(or(r));else if(Pt(e))o=WS(e,t);else{let n=wh(r);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return uo(o)}function Ah(r,e){let t=br(r);return t===e||!Pt(t)||ho(t)?!1:Nt(t).position==="fixed"||Ah(t,e)}function jS(r,e){let t=e.get(r);if(t)return t;let o=sa(r,[],!1).filter(l=>Pt(l)&&fo(l)!=="body"),n=null,a=Nt(r).position==="fixed",s=a?br(r):r;for(;Pt(s)&&!ho(s);){let l=Nt(s),d=ti(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||ei(s)&&!d&&Ah(r,s))?o=o.filter(m=>m!==s):n=l,s=br(s)}return e.set(r,o),o}function GS(r){let{element:e,boundary:t,rootBoundary:o,strategy:n}=r,s=[...t==="clippingAncestors"?rn(e)?[]:jS(e,this._c):[].concat(t),o],l=Sh(e,s[0],n),d=l.top,f=l.right,m=l.bottom,g=l.left;for(let y=1;y<s.length;y++){let x=Sh(e,s[y],n);d=ct(x.top,d),f=co(x.right,f),m=co(x.bottom,m),g=ct(x.left,g)}return{width:f-g,height:m-d,x:g,y:d}}function KS(r){let{width:e,height:t}=Oh(r);return{width:e,height:t}}function qS(r,e,t){let o=ir(e),n=or(e),a=t==="fixed",s=nn(r,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Vt(0);function f(){d.x=ua(n)}if(o||!o&&!a)if((fo(e)!=="body"||ei(n))&&(l=on(e)),o){let x=nn(e,!0,a,e);d.x=x.x+e.clientLeft,d.y=x.y+e.clientTop}else n&&f();a&&!o&&n&&f();let m=n&&!o&&!a?Rh(n,l):Vt(0),g=s.left+l.scrollLeft-d.x-m.x,y=s.top+l.scrollTop-d.y-m.y;return{x:g,y,width:s.width,height:s.height}}function kl(r){return Nt(r).position==="static"}function Ch(r,e){if(!ir(r)||Nt(r).position==="fixed")return null;if(e)return e(r);let t=r.offsetParent;return or(r)===t&&(t=t.ownerDocument.body),t}function Lh(r,e){let t=dt(r);if(rn(r))return t;if(!ir(r)){let n=br(r);for(;n&&!ho(n);){if(Pt(n)&&!kl(n))return n;n=br(n)}return t}let o=Ch(r,e);for(;o&&yh(o)&&kl(o);)o=Ch(o,e);return o&&ho(o)&&kl(o)&&!ti(o)?t:o||bh(r)||t}function QS(r){return Nt(r).direction==="rtl"}var FS,xh,ZS,oi,kh,Tl,Th,_h,_l,Ih=u(()=>{hh();aa();Ll();FS=Vt(0);xh=25;ZS=async function(r){let e=this.getOffsetParent||Lh,t=this.getDimensions,o=await t(r.floating);return{reference:qS(r.reference,await e(r.floating),r.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};oi={convertOffsetParentRelativeRectToViewportRelativeRect:US,getDocumentElement:or,getClippingRect:GS,getOffsetParent:Lh,getElementRects:ZS,getClientRects:zS,getDimensions:KS,getScale:ri,isElement:Pt,isRTL:QS},kh=uh,Tl=dh,Th=ph,_h=fh,_l=(r,e,t)=>{let o=new Map,n={platform:oi,...t},a={...n.platform,_c:o};return ch(r,e,{...n,platform:a})}});function Pl(r){return YS(r)}function Il(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function YS(r){for(let e=r;e;e=Il(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Il(r);e;e=Il(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||ti(t)||e.tagName==="BODY"))return e}return null}var Ph=u(()=>{Ll()});var Dl={};q(Dl,{computeOffsetAutoPosition:()=>$l,computeOffsetPosition:()=>Nl});async function Nl(r,e,t){let o;return typeof t=="object"?o=t:o={placement:t},_l(r,e,{strategy:o.strategy,platform:{...oi,getOffsetParent:n=>oi.getOffsetParent(n,Pl)},middleware:[Th({crossAxis:!0}),Tl({allowedPlacements:[o.placement]})]})}async function $l(r,e,t,o,n,a,s){let l,d;return typeof t=="object"?(l=t.placement,o=t.allowedPlacements,n=t.strategy,a=t.maxHeightCssVariable,d=t.maxWidthCssVariable,s=t.offsetValue):l=t,_l(r,e,{placement:l,strategy:n,platform:{...oi,getOffsetParent:f=>oi.getOffsetParent(f,Pl)},middleware:[kh(s??4),Tl({allowedPlacements:o}),_h({apply({availableHeight:f,availableWidth:m,elements:g}){typeof a=="string"&&(a=`var(${a})`),a?g.floating.style.maxHeight=`min(${Math.max(0,f)}px, ${a})`:g.floating.style.maxHeight=`${Math.max(0,f)}px`,typeof d=="string"&&(d=`var(${d})`),d?g.floating.style.maxWidth=`min(${Math.max(0,m)}px, ${d})`:g.floating.style.maxWidth=`${Math.max(0,m)}px`}})]})}var pa=u(()=>{"use strict";Ih();Ph()});var Ml={};q(Ml,{isSlotEmptyOrWithoutContent:()=>an});var an,Fl=u(()=>{"use strict";an=r=>r?r.assignedNodes({flatten:!0}).filter(o=>{var n;return o.nodeType===Node.TEXT_NODE?((n=o.textContent)!==null&&n!==void 0?n:"").trim().length>0:!0}).length===0:!0});var Bl={};q(Bl,{ScopedRegistryLitElement:()=>sn});var sn,fa=u(()=>{"use strict";T();Hn();lo();sn=class extends kt{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let t={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(t);return zi(o,e.elementStyles),o}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([t,o])=>this.defineScopedElement(t,o))}static defineScopedElement(e,t){Zi(e)(t),this.canDefineScopedElement(e)&&this.registry.define(e,t)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,t){this.scopedRegistryConstructor.defineScopedElement(e,t)}}});var zl={};q(zl,{shadowQuerySelector:()=>Ul,shadowQuerySelectorAll:()=>XS});function Ul(r,e,...t){var o;let n=r.querySelector(e);for(let a of t)n=(o=n?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return n}function XS(r,e,...t){let o=[...r.querySelectorAll(e)];for(let n of t)o=o.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return o}var ha=u(()=>{"use strict"});var Hl={};q(Hl,{ExportpartsUpdatedEvent:()=>mo,FtLitElement:()=>F});var ii,Mh,Nh,$h,Fh,Dh,mo,F,ln=u(()=>{"use strict";K();lo();oa();fa();ha();ii=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Nh=Symbol("constructorPrototype"),$h=Symbol("constructorName"),Fh=Symbol("exportpartsDebouncer"),Dh=Symbol("dynamicDependenciesLoaded"),mo=class r extends CustomEvent{constructor(){super(r.eventName,{bubbles:!0})}};mo.eventName="exportparts-updated";F=class extends sn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Mh]=new ne(5),this.scheduleExportpartsUpdate=()=>{var e,t,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&o!==void 0&&o)&&this[Fh].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[$h]=this.constructor.name,this[Nh]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[$h]&&Object.setPrototypeOf(this,this[Nh])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let t=this.constructor;t[Dh]||(t[Dh]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(mo.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(mo.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new mo)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:t,selector:o,shadowPath:n}=this.elementToFocus;if(o!=null){let a=[...n??[],o];t=Ul(this.shadowRoot,...a)}t?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||t?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var t,o,n;if(((o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}setExportpartsAttribute(e){var t,o,n,a,s,l;let d=y=>y!=null&&y.trim().length>0,f=e.filter(d).map(y=>y.trim());if(f.length===0){this.exportparts=void 0;return}let m=new Set;for(let y of(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let x=(a=(n=y.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],v=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(_=>_.split(":")[1]))!==null&&l!==void 0?l:[],w=[...x,...v].filter(d).map(_=>_.trim());for(let _ of w)m.add(_)}if(m.size===0){this.exportparts=void 0;return}let g=[...m.values()].flatMap(y=>f.map(x=>`${y}:${x}--${y}`));this.exportparts=[...this.part,...g].join(", ")}};Mh=Fh;ii([h()],F.prototype,"exportpartsPrefix",void 0);ii([de([])],F.prototype,"exportpartsPrefixes",void 0);ii([h({reflect:!0})],F.prototype,"exportparts",void 0);ii([h()],F.prototype,"customStylesheet",void 0);ii([h()],F.prototype,"elementToFocus",void 0);ii([I()],F.prototype,"useAdoptedStyleSheets",void 0)});var Wl={};q(Wl,{FtdsBase:()=>Vl,toFtdsBase:()=>Uh});var Bh,Uh,Vl,jl=u(()=>{"use strict";ln();K();Yo();rt();Bh=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Uh=Ee(Symbol("toFtdsBase"),function(r){class e extends r{constructor(){super(...arguments),this.size=en.medium,this.family=Ji.neutral}getDesignSystemBaseClasses(){return{[hl(this.family)]:!0,[ml(this.size)]:!0}}}return Bh([h()],e.prototype,"size",void 0),Bh([h()],e.prototype,"family",void 0),e}),Vl=class extends Uh(F){}});var zh={};var Gl=u(()=>{"use strict"});var go,Hh=u(()=>{go=class r{constructor(e,t=!0,o=[],n=5e3){this.ctx=e,this.iframes=t,this.exclude=o,this.iframesTimeout=n}static matches(e,t){let o=typeof t=="string"?[t]:t,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let n=t.filter(a=>a.contains(o)).length>0;t.indexOf(o)===-1&&!n&&t.push(o)}),t}getIframeContents(e,t,o=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&t(n)}isIframeBlank(e){let t="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&o!==t&&o}observeIframeLoad(e,t,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,o):this.getIframeContents(e,t,o):this.observeIframeLoad(e,t,o)}catch{o()}}waitForIframes(e,t){let o=0;this.forEachIframe(e,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||t()})},n=>{n||t()})}forEachIframe(e,t,o,n=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&n(l)};s||d(),a.forEach(f=>{r.matches(f,this.exclude)?d():this.onIframeReady(f,m=>{t(f)&&(l++,o(m)),d()},d)})}createIterator(e,t,o){return document.createNodeIterator(e,t,o,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,o){let n=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(t!==null){let s=t.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),o;return t===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:t,node:o}}checkIframeFilter(e,t,o,n){let a=!1,s=!1;return n.forEach((l,d)=>{l.val===o&&(a=d,s=l.handled)}),this.compareNodeIframe(e,t,o)?(a===!1&&!s?n.push({val:o,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:o,handled:!1}),!1)}handleOpenIframes(e,t,o,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,o,n)})})}iterateThroughNodes(e,t,o,n,a){let s=this.createIterator(t,e,n),l=[],d=[],f,m,g=()=>({prevNode:m,node:f}=this.getIteratorNode(s),f);for(;g();)this.iframes&&this.forEachIframe(t,y=>this.checkIframeFilter(f,m,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(e,x=>d.push(x),n)}),d.push(f);d.forEach(y=>{o(y)}),this.iframes&&this.handleOpenIframes(l,e,o,n),a()}forEachNode(e,t,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let d=()=>{this.iterateThroughNodes(e,l,t,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,d):d()})}}});var cn,Vh=u(()=>{Hh();cn=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){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},e)}get opt(){return this._opt}get iterator(){return new go(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[t]=="function"&&o[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let t=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){let s=t[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(d)})`,`gm${o}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(d)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&t.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,n=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&t.indexOf(n)===-1&&t.push(n)}):o.trim()&&t.indexOf(o)===-1&&t.push(o)}),{keywords:t.sort((o,n)=>n.length-o.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let t=[],o=0;return e.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,o);l&&(n.start=a,n.length=s-a,t.push(n),o=s)}),t}callNoMatchOnInvalidRanges(e,t){let o,n,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),n=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-t>0&&n-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:o,end:n,valid:a}}checkWhitespaceRanges(e,t,o){let n,a=!0,s=o.length,l=t-s,d=parseInt(e.start,10)-l;return d=d>s?s:d,n=d+parseInt(e.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||n-d<0||d>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):o.substring(d,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:n,valid:a}}getTextNodes(e){let t="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:t.length,end:(t+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:o})})}matchesExclude(e){return go.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,o){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(o-t),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,t,o,n,a){e.nodes.every((s,l)=>{let d=e.nodes[l+1];if(typeof d>"u"||d.start>t){if(!n(s.node))return!1;let f=t-s.start,m=(o>s.end?s.end:o)-s.start,g=e.value.substr(0,s.start),y=e.value.substr(m+s.start);if(s.node=this.wrapRangeInTextNode(s.node,f,m),e.value=g+y,e.nodes.forEach((x,v)=>{v>=l&&(e.nodes[v].start>0&&v!==l&&(e.nodes[v].start-=m),e.nodes[v].end-=m)}),o-=m,a(s.node.previousSibling,s.start),o>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,o,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{l.nodes.forEach(d=>{d=d.node;let f;for(;(f=e.exec(d.textContent))!==null&&f[s]!=="";){if(!o(f[s],d))continue;let m=f.index;if(s!==0)for(let g=1;g<s;g++)m+=f[g].length;d=this.wrapRangeInTextNode(d,m,m+f[s].length),n(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,o,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{let d;for(;(d=e.exec(l.value))!==null&&d[s]!=="";){let f=d.index;if(s!==0)for(let g=1;g<s;g++)f+=d[g].length;let m=f+d[s].length;this.wrapRangeInMappedTextNode(l,f,m,g=>o(d[s],g),(g,y)=>{e.lastIndex=y,n(g)})}a()})}wrapRangeFromIndex(e,t,o,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:f,end:m,valid:g}=this.checkWhitespaceRanges(l,s,a.value);g&&this.wrapRangeInMappedTextNode(a,f,m,y=>t(y,l,a.value.substring(f,m),d),y=>{o(y,l)})}),n()})}unwrapMatches(e){let t=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));t.replaceChild(o,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,t){this.opt=t;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",d=f=>{let m=new RegExp(this.createRegExp(f),`gm${l}`),g=0;this.log(`Searching with expression "${m}"`),this[n](m,1,(y,x)=>this.opt.filter(x,f,o,g),y=>{g++,o++,this.opt.each(y)},()=>{g===0&&this.opt.noMatch(f),a[s-1]===f?this.opt.done(o):d(a[a.indexOf(f)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(o):d(a[0])}markRanges(e,t){this.opt=t;let o=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,d)=>this.opt.filter(a,s,l,d),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=go.matches(o,t),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}}});function Kl(r){let e=new cn(r);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}var Wh=u(()=>{Vh()});var Zl={};q(Zl,{highlightHtml:()=>ql,highlightHtmlColorCssVariable:()=>jh,highlightHtmlStyles:()=>eC});function ql(r,e,t){var o,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new JS(r);if(s.unmark(),e&&e.trim()){let l={className:(o=t?.className)!==null&&o!==void 0?o:"highlight-html-match",acrossElements:!0};t?.attributes!=null&&(l.each=(f=>{for(let m in t.attributes)f.setAttribute(m,t.attributes[m])})),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(f=>s.mark(f.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var JS,jh,eC,Ql=u(()=>{"use strict";T();Yo();Wh();JS=Kl,jh=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),eC=R`
5
5
  .highlight-html-match {
6
6
  background: ${jh};
7
7
  }
@@ -44,7 +44,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
44
44
  input::-webkit-search-results-decoration {
45
45
  display: none;
46
46
  }
47
- `});var Gh={};var ec=u(()=>{"use strict"});var tc={};q(tc,{ParametrizedLabelResolver:()=>$r});var $r,rc=u(()=>{"use strict";$r=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var o,n;e=this.resolvePluralKey(e,t);let a=(n=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((o,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(o,s))),e}resolvePluralKey(e,t){for(let o of t)if(typeof o=="number"){let n=`${String(e)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let o=n=>t?.includes("date")?e.toLocaleDateString(n):t?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}}});var tC,pe,rC,Kh=u(()=>{"use strict";rt();K();tC=()=>(r,e)=>{var t;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(t=o.reduxReactiveProperties)===null||t===void 0||t.add(e)},pe=r=>{let e=r??{};return(t,o)=>{var n;let a={hasChanged:yt,attribute:!1,...e};h(a)(t,o);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[o]),store:e.store})}},rC=r=>(e,t)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(t,r)}});var un,oc=u(()=>{"use strict";un=class{constructor(){this.queue=[]}add(e,t=!1){t&&this.clear(e.type),this.queue.push(e)}consume(e){let t=this.queue.find(o=>o.type===e);return t&&(this.queue=this.queue.filter(o=>o!==t)),t}clear(e){typeof e=="string"?this.queue=this.queue.filter(t=>t.type!==e):this.queue=this.queue.filter(t=>!e.test(t.type))}}});function ni(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ma=u(()=>{"use strict"});var pn,Dr,vo,qh,vt,Zh=u(()=>{"use strict";ln();ma();rt();pn=Symbol("internalReduxEventsUnsubscribers"),Dr=Symbol("internalStoresUnsubscribers"),vo=Symbol("internalStores"),qh=Ee(Symbol("withRedux"),function(r){var e,t,o;class n extends r{constructor(){super(...arguments),this[e]=new Map,this[t]=new Map,this[o]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[vo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[vo].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[vo].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[vo].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[vo].delete(l)}setupStores(){this.unsubscribeFromStores(),this[vo].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let f=this.getStore(s.store);f&&(s.store?this[Dr].has(s.store):this[Dr].size>0)&&(this[l]=s.selector(f.getState(),this))}})}subscribeToStore(s,l){var d;this[Dr].set(s,l.subscribe(()=>this.updateFromStores())),this[pn].set(s,[]),ni(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((f,m)=>{if(typeof this[m]=="function"&&(!f.store||l.name===f.store)){let g=y=>this[m](y);l.addEventListener(f.eventName,g),this[pn].get(s).push(()=>l.removeEventListener(f.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Dr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Dr].has(s)&&this[Dr].get(s)(),this[Dr].delete(s),(l=this[pn].get(s))===null||l===void 0||l.forEach(d=>d()),this[pn].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Dr,t=vo,o=pn,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),vt=class extends qh(F){}});function $t(r){for(var e=arguments.length,t=Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function vr(r){return!!r&&!!r[Ce]}function Wt(r){var e;return!!r&&((function(t){if(!t||typeof t!="object")return!1;var o=Object.getPrototypeOf(t);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===dC})(r)||Array.isArray(r)||!!r[rm]||!!(!((e=r.constructor)===null||e===void 0)&&e[rm])||pc(r)||fc(r))}function xo(r,e,t){t===void 0&&(t=!1),li(r)===0?(t?Object.keys:si)(r).forEach((function(o){t&&typeof o=="symbol"||e(o,r[o],r)})):r.forEach((function(o,n){return e(n,o,r)}))}function li(r){var e=r[Ce];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:pc(r)?2:fc(r)?3:0}function ai(r,e){return li(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function oC(r,e){return li(r)===2?r.get(e):r[e]}function om(r,e,t){var o=li(r);o===2?r.set(e,t):o===3?r.add(t):r[e]=t}function im(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function pc(r){return lC&&r instanceof Map}function fc(r){return cC&&r instanceof Set}function Mr(r){return r.o||r.t}function hc(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=sm(r);delete e[Ce];for(var t=si(e),o=0;o<t.length;o++){var n=t[o],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),e)}function mc(r,e){return e===void 0&&(e=!1),gc(r)||vr(r)||!Wt(r)||(li(r)>1&&(r.set=r.add=r.clear=r.delete=iC),Object.freeze(r),e&&xo(r,(function(t,o){return mc(o,!0)}),!0)),r}function iC(){$t(2)}function gc(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function ir(r){var e=uc[r];return e||$t(18,r),e}function nC(r,e){uc[r]||(uc[r]=e)}function lc(){return hn}function ic(r,e){e&&(ir("Patches"),r.u=[],r.s=[],r.v=e)}function ga(r){cc(r),r.p.forEach(aC),r.p=null}function cc(r){r===hn&&(hn=r.l)}function Qh(r){return hn={p:[],l:hn,h:r,m:!0,_:0}}function aC(r){var e=r[Ce];e.i===0||e.i===1?e.j():e.g=!0}function nc(r,e){e._=e.p.length;var t=e.p[0],o=r!==void 0&&r!==t;return e.h.O||ir("ES5").S(e,r,o),o?(t[Ce].P&&(ga(e),$t(4)),Wt(r)&&(r=ya(e,r),e.l||ba(e,r)),e.u&&ir("Patches").M(t[Ce].t,r,e.u,e.s)):r=ya(e,t,[]),ga(e),e.u&&e.v(e.u,e.s),r!==am?r:void 0}function ya(r,e,t){if(gc(e))return e;var o=e[Ce];if(!o)return xo(e,(function(l,d){return Yh(r,o,e,l,d,t)}),!0),e;if(o.A!==r)return e;if(!o.P)return ba(r,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=hc(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),xo(a,(function(l,d){return Yh(r,o,n,l,d,t,s)})),ba(r,n,!1),t&&r.u&&ir("Patches").N(o,t,r.u,r.s)}return o.o}function Yh(r,e,t,o,n,a,s){if(vr(n)){var l=ya(r,n,a&&e&&e.i!==3&&!ai(e.R,o)?a.concat(o):void 0);if(om(t,o,l),!vr(l))return;r.m=!1}else s&&t.add(n);if(Wt(n)&&!gc(n)){if(!r.h.D&&r._<1)return;ya(r,n),e&&e.A.l||ba(r,n)}}function ba(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&mc(e,t)}function ac(r,e){var t=r[Ce];return(t?Mr(t):r)[e]}function Xh(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var o=Object.getOwnPropertyDescriptor(t,e);if(o)return o;t=Object.getPrototypeOf(t)}}function Fr(r){r.P||(r.P=!0,r.l&&Fr(r.l))}function sc(r){r.o||(r.o=hc(r.t))}function dc(r,e,t){var o=pc(e)?ir("MapSet").F(e,t):fc(e)?ir("MapSet").T(e,t):r.O?(function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:lc(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,f=mn;s&&(d=[l],f=fn);var m=Proxy.revocable(d,f),g=m.revoke,y=m.proxy;return l.k=y,l.j=g,y})(e,t):ir("ES5").J(e,t);return(t?t.A:lc()).p.push(o),o}function sC(r){return vr(r)||$t(22,r),(function e(t){if(!Wt(t))return t;var o,n=t[Ce],a=li(t);if(n){if(!n.P&&(n.i<4||!ir("ES5").K(n)))return n.t;n.I=!0,o=Jh(t,a),n.I=!1}else o=Jh(t,a);return xo(o,(function(s,l){n&&oC(n.t,s)===l||om(o,s,e(l))})),a===3?new Set(o):o})(r)}function Jh(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return hc(r)}function nm(){function r(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var f=this[Ce];return mn.get(f,s)},set:function(f){var m=this[Ce];mn.set(m,s,f)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Ce];if(!d.P)switch(d.i){case 5:o(d)&&Fr(d);break;case 4:t(d)&&Fr(d)}}}function t(s){for(var l=s.t,d=s.k,f=si(d),m=f.length-1;m>=0;m--){var g=f[m];if(g!==Ce){var y=l[g];if(y===void 0&&!ai(l,g))return!0;var x=d[g],v=x&&x[Ce];if(v?v.t!==y:!im(x,y))return!0}}var w=!!l[Ce];return f.length!==si(l).length+(w?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function n(s){s.g&&$t(3,JSON.stringify(Mr(s)))}var a={};nC("ES5",{J:function(s,l){var d=Array.isArray(s),f=(function(g,y){if(g){for(var x=Array(y.length),v=0;v<y.length;v++)Object.defineProperty(x,""+v,r(v,!0));return x}var w=sm(y);delete w[Ce];for(var _=si(w),P=0;P<_.length;P++){var $=_[P];w[$]=r($,g||!!w[$].enumerable)}return Object.create(Object.getPrototypeOf(y),w)})(d,s),m={i:d?5:4,A:l?l.A:lc(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,Ce,{value:m,writable:!0}),f},S:function(s,l,d){d?vr(l)&&l[Ce].A===s&&e(s.p):(s.u&&(function f(m){if(m&&typeof m=="object"){var g=m[Ce];if(g){var y=g.t,x=g.k,v=g.R,w=g.i;if(w===4)xo(x,(function(C){C!==Ce&&(y[C]!==void 0||ai(y,C)?v[C]||f(x[C]):(v[C]=!0,Fr(g)))})),xo(y,(function(C){x[C]!==void 0||ai(x,C)||(v[C]=!1,Fr(g))}));else if(w===5){if(o(g)&&(Fr(g),v.length=!0),x.length<y.length)for(var _=x.length;_<y.length;_++)v[_]=!1;else for(var P=y.length;P<x.length;P++)v[P]=!0;for(var $=Math.min(x.length,y.length),E=0;E<$;E++)x.hasOwnProperty(E)||(v[E]=!0),v[E]===void 0&&f(x[E])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):o(s)}})}var em,hn,yc,lC,cC,tm,am,rm,Ce,dC,si,sm,uc,mn,fn,uC,xt,pC,mk,gk,yk,bk,vk,xk,va,xa=u(()=>{yc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",lC=typeof Map<"u",cC=typeof Set<"u",tm=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",am=yc?Symbol.for("immer-nothing"):((em={})["immer-nothing"]=!0,em),rm=yc?Symbol.for("immer-draftable"):"__$immer_draftable",Ce=yc?Symbol.for("immer-state"):"__$immer_state",dC=""+Object.prototype.constructor,si=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,sm=Object.getOwnPropertyDescriptors||function(r){var e={};return si(r).forEach((function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)})),e},uc={},mn={get:function(r,e){if(e===Ce)return r;var t=Mr(r);if(!ai(t,e))return(function(n,a,s){var l,d=Xh(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0})(r,t,e);var o=t[e];return r.I||!Wt(o)?o:o===ac(r.t,e)?(sc(r),r.o[e]=dc(r.A.h,o,r)):o},has:function(r,e){return e in Mr(r)},ownKeys:function(r){return Reflect.ownKeys(Mr(r))},set:function(r,e,t){var o=Xh(Mr(r),e);if(o?.set)return o.set.call(r.k,t),!0;if(!r.P){var n=ac(Mr(r),e),a=n?.[Ce];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(im(t,n)&&(t!==void 0||ai(r.t,e)))return!0;sc(r),Fr(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return ac(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,sc(r),Fr(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=Mr(r),o=Reflect.getOwnPropertyDescriptor(t,e);return o&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:o.enumerable,value:t[e]}},defineProperty:function(){$t(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){$t(12)}},fn={};xo(mn,(function(r,e){fn[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),fn.deleteProperty=function(r,e){return fn.set.call(this,r,e,void 0)},fn.set=function(r,e,t){return mn.set.call(this,r[0],e,t,r[0])};uC=(function(){function r(t){var o=this;this.O=tm,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=o;return function(w){var _=this;w===void 0&&(w=l);for(var P=arguments.length,$=Array(P>1?P-1:0),E=1;E<P;E++)$[E-1]=arguments[E];return d.produce(w,(function(C){var L;return(L=a).call.apply(L,[_,C].concat($))}))}}var f;if(typeof a!="function"&&$t(6),s!==void 0&&typeof s!="function"&&$t(7),Wt(n)){var m=Qh(o),g=dc(o,n,void 0),y=!0;try{f=a(g),y=!1}finally{y?ga(m):cc(m)}return typeof Promise<"u"&&f instanceof Promise?f.then((function(w){return ic(m,s),nc(w,m)}),(function(w){throw ga(m),w})):(ic(m,s),nc(f,m))}if(!n||typeof n!="object"){if((f=a(n))===void 0&&(f=n),f===am&&(f=void 0),o.D&&mc(f,!0),s){var x=[],v=[];ir("Patches").M(n,f,x,v),s(x,v)}return f}$t(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(f){for(var m=arguments.length,g=Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return o.produceWithPatches(f,(function(x){return n.apply(void 0,[x].concat(g))}))};var s,l,d=o.produce(n,a,(function(f,m){s=f,l=m}));return typeof Promise<"u"&&d instanceof Promise?d.then((function(f){return[f,s,l]})):[d,s,l]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){Wt(t)||$t(8),vr(t)&&(t=sC(t));var o=Qh(this),n=dc(this,t,void 0);return n[Ce].C=!0,cc(o),n},e.finishDraft=function(t,o){var n=t&&t[Ce],a=n.A;return ic(a,o),nc(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!tm&&$t(20),this.O=t},e.applyPatches=function(t,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(o=o.slice(n+1));var s=ir("Patches").$;return vr(t)?s(t,o):this.produce(t,(function(l){return s(l,o)}))},r})(),xt=new uC,pC=xt.produce,mk=xt.produceWithPatches.bind(xt),gk=xt.setAutoFreeze.bind(xt),yk=xt.setUseProxies.bind(xt),bk=xt.applyPatches.bind(xt),vk=xt.createDraft.bind(xt),xk=xt.finishDraft.bind(xt),va=pC});function So(r){"@babel/helpers - typeof";return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},So(r)}var bc=u(()=>{});function lm(r,e){if(So(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(So(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var cm=u(()=>{bc()});function dm(r){var e=lm(r,"string");return So(e)=="symbol"?e:e+""}var um=u(()=>{bc();cm()});function pm(r,e,t){return(e=dm(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var fm=u(()=>{um()});function hm(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,o)}return t}function vc(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?hm(Object(t),!0).forEach(function(o){pm(r,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):hm(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o))})}return r}var mm=u(()=>{fm()});function qe(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}function fC(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function Sc(r,e,t){var o;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(qe(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(qe(1));return t(Sc)(r,e)}if(typeof r!="function")throw new Error(qe(2));var n=r,a=e,s=[],l=s,d=!1;function f(){l===s&&(l=s.slice())}function m(){if(d)throw new Error(qe(3));return a}function g(w){if(typeof w!="function")throw new Error(qe(4));if(d)throw new Error(qe(5));var _=!0;return f(),l.push(w),function(){if(_){if(d)throw new Error(qe(6));_=!1,f();var $=l.indexOf(w);l.splice($,1),s=null}}}function y(w){if(!fC(w))throw new Error(qe(7));if(typeof w.type>"u")throw new Error(qe(8));if(d)throw new Error(qe(9));try{d=!0,a=n(a,w)}finally{d=!1}for(var _=s=l,P=0;P<_.length;P++){var $=_[P];$()}return w}function x(w){if(typeof w!="function")throw new Error(qe(10));n=w,y({type:Sa.REPLACE})}function v(){var w,_=g;return w={subscribe:function($){if(typeof $!="object"||$===null)throw new Error(qe(11));function E(){$.next&&$.next(m())}E();var C=_(E);return{unsubscribe:C}}},w[gm]=function(){return this},w}return y({type:Sa.INIT}),o={dispatch:y,subscribe:g,getState:m,replaceReducer:x},o[gm]=v,o}function hC(r){Object.keys(r).forEach(function(e){var t=r[e],o=t(void 0,{type:Sa.INIT});if(typeof o>"u")throw new Error(qe(12));if(typeof t(void 0,{type:Sa.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(qe(13))})}function ym(r){for(var e=Object.keys(r),t={},o=0;o<e.length;o++){var n=e[o];typeof r[n]=="function"&&(t[n]=r[n])}var a=Object.keys(t),s,l;try{hC(t)}catch(d){l=d}return function(f,m){if(f===void 0&&(f={}),l)throw l;if(0)var g;for(var y=!1,x={},v=0;v<a.length;v++){var w=a[v],_=t[w],P=f[w],$=_(P,m);if(typeof $>"u"){var E=m&&m.type;throw new Error(qe(14))}x[w]=$,y=y||$!==P}return y=y||a.length!==Object.keys(f).length,y?x:f}}function ci(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function bm(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(qe(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=ci.apply(void 0,l)(n.dispatch),vc(vc({},n),{},{dispatch:a})}}}var gm,xc,Sa,Ca=u(()=>{mm();gm=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),xc=function(){return Math.random().toString(36).substring(7).split("").join(".")},Sa={INIT:"@@redux/INIT"+xc(),REPLACE:"@@redux/REPLACE"+xc(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+xc()}}});function vm(r){var e=function(o){var n=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return e}var xm,Cc,Sm=u(()=>{xm=vm();xm.withExtraArgument=vm;Cc=xm});function OC(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}function Ur(r,e){function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return Br(Br({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:o[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(o){return o.type===r},t}function Rc(r){return Wt(r)?va(r,function(){}):r}function RC(r){return typeof r=="boolean"}function AC(){return function(e){return LC(e)}}function LC(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,o=r.immutableCheck,n=o===void 0?!0:o,a=r.serializableCheck,s=a===void 0?!0:a,l=r.actionCreatorCheck,d=l===void 0?!0:l,f=new EC;if(t&&(RC(t)?f.push(Cc):f.push(Cc.withExtraArgument(t.extraArgument))),0){if(n)var m;if(s)var g;if(d)var y}return f}function Am(r){var e=AC(),t=r||{},o=t.reducer,n=o===void 0?void 0:o,a=t.middleware,s=a===void 0?e():a,l=t.devTools,d=l===void 0?!0:l,f=t.preloadedState,m=f===void 0?void 0:f,g=t.enhancers,y=g===void 0?void 0:g,x;if(typeof n=="function")x=n;else if(OC(n))x=ym(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=s;if(typeof v=="function"&&(v=v(e),!Ec&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ec&&v.some(function(C){return typeof C!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=bm.apply(void 0,v),_=ci;d&&(_=CC(Br({trace:!Ec},typeof d=="object"&&d)));var P=new wC(w),$=P;Array.isArray(y)?$=di([w],y):typeof y=="function"&&($=y(P));var E=_.apply(void 0,$);return Sc(x,m,E)}function Lm(r){var e={},t=[],o,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(!l)throw new Error("`builder.addCase` cannot be called with an empty action type");if(l in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return t.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return r(n),[e,t,o]}function kC(r){return typeof r=="function"}function TC(r,e,t,o){t===void 0&&(t=[]);var n=typeof e=="function"?Lm(e):[e,t,o],a=n[0],s=n[1],l=n[2],d;if(kC(r))d=function(){return Rc(r())};else{var f=Rc(r);d=function(){return f}}function m(g,y){g===void 0&&(g=d());var x=di([a[y.type]],s.filter(function(v){var w=v.matcher;return w(y)}).map(function(v){var w=v.reducer;return w}));return x.filter(function(v){return!!v}).length===0&&(x=[l]),x.reduce(function(v,w){if(w)if(vr(v)){var _=v,P=w(_,y);return P===void 0?v:P}else{if(Wt(v))return va(v,function($){return w($,y)});var P=w(v,y);if(P===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return P}return v},g)}return m.getInitialState=d,m}function _C(r,e){return r+"/"+e}function km(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof r.initialState=="function"?r.initialState:Rc(r.initialState),o=r.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(m){var g=o[m],y=_C(e,m),x,v;"reducer"in g?(x=g.reducer,v=g.prepare):x=g,a[m]=x,s[y]=x,l[m]=v?Ur(y,v):Ur(y)});function d(){var m=typeof r.extraReducers=="function"?Lm(r.extraReducers):[r.extraReducers],g=m[0],y=g===void 0?{}:g,x=m[1],v=x===void 0?[]:x,w=m[2],_=w===void 0?void 0:w,P=Br(Br({},y),s);return TC(t,function($){for(var E in P)$.addCase(E,P[E]);for(var C=0,L=v;C<L.length;C++){var D=L[C];$.addMatcher(D.matcher,D.reducer)}_&&$.addDefaultCase(_)})}var f;return{name:e,reducer:function(m,g){return f||(f=d()),f(m,g)},actions:l,caseReducers:a,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}function DC(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function MC(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Rm,mC,di,gC,yC,bC,Cm,vC,xC,Om,Br,Oc,SC,CC,Fk,EC,wC,Ec,IC,PC,NC,wc,Em,$C,Hk,Tm,_m,Im,Vk,Wk,jk,Gk,Ac,Kk,qk,Zk,wm,Qk,FC,Yk,Pm=u(()=>{xa();Ca();Ca();Ca();Sm();xa();xa();Rm=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}})(),mC=function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(m){return d([f,m])}}function d(f){if(o)throw new TypeError("Generator is already executing.");for(;t;)try{if(o=1,n&&(a=f[0]&2?n.return:f[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,f[1])).done)return a;switch(n=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,n=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){t.label=f[1];break}if(f[0]===6&&t.label<a[1]){t.label=a[1],a=f;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(f);break}a[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(r,t)}catch(m){f=[6,m],n=0}finally{o=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},di=function(r,e){for(var t=0,o=e.length,n=r.length;t<o;t++,n++)r[n]=e[t];return r},gC=Object.defineProperty,yC=Object.defineProperties,bC=Object.getOwnPropertyDescriptors,Cm=Object.getOwnPropertySymbols,vC=Object.prototype.hasOwnProperty,xC=Object.prototype.propertyIsEnumerable,Om=function(r,e,t){return e in r?gC(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Br=function(r,e){for(var t in e||(e={}))vC.call(e,t)&&Om(r,t,e[t]);if(Cm)for(var o=0,n=Cm(e);o<n.length;o++){var t=n[o];xC.call(e,t)&&Om(r,t,e[t])}return r},Oc=function(r,e){return yC(r,bC(e))},SC=function(r,e,t){return new Promise(function(o,n){var a=function(d){try{l(t.next(d))}catch(f){n(f)}},s=function(d){try{l(t.throw(d))}catch(f){n(f)}},l=function(d){return d.done?o(d.value):Promise.resolve(d.value).then(a,s)};l((t=t.apply(r,e)).next())})},CC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ci:ci.apply(null,arguments)},Fk=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};EC=(function(r){Rm(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,di([void 0],t[0].concat(this)))):new(e.bind.apply(e,di([void 0],t.concat(this))))},e})(Array),wC=(function(r){Rm(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,di([void 0],t[0].concat(this)))):new(e.bind.apply(e,di([void 0],t.concat(this))))},e})(Array);Ec=!0;IC="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",PC=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=IC[Math.random()*64|0];return e},NC=["name","message","stack","code"],wc=(function(){function r(e,t){this.payload=e,this.meta=t}return r})(),Em=(function(){function r(e,t){this.payload=e,this.meta=t}return r})(),$C=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,o=NC;t<o.length;t++){var n=o[t];typeof r[n]=="string"&&(e[n]=r[n])}return e}return{message:String(r)}},Hk=(function(){function r(e,t,o){var n=Ur(e+"/fulfilled",function(m,g,y,x){return{payload:m,meta:Oc(Br({},x||{}),{arg:y,requestId:g,requestStatus:"fulfilled"})}}),a=Ur(e+"/pending",function(m,g,y){return{payload:void 0,meta:Oc(Br({},y||{}),{arg:g,requestId:m,requestStatus:"pending"})}}),s=Ur(e+"/rejected",function(m,g,y,x,v){return{payload:x,error:(o&&o.serializeError||$C)(m||"Rejected"),meta:Oc(Br({},v||{}),{arg:y,requestId:g,rejectedWithValue:!!x,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:(function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m})();function f(m){return function(g,y,x){var v=o?.idGenerator?o.idGenerator(m):PC(),w=new d,_,P=!1;function $(C){_=C,w.abort()}var E=(function(){return SC(this,null,function(){var C,L,D,X,_e,se,z;return mC(this,function(G){switch(G.label){case 0:return G.trys.push([0,4,,5]),X=(C=o?.condition)==null?void 0:C.call(o,m,{getState:y,extra:x}),MC(X)?[4,X]:[3,2];case 1:X=G.sent(),G.label=2;case 2:if(X===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,_e=new Promise(function(ae,$e){return w.signal.addEventListener("abort",function(){return $e({name:"AbortError",message:_||"Aborted"})})}),g(a(v,m,(L=o?.getPendingMeta)==null?void 0:L.call(o,{requestId:v,arg:m},{getState:y,extra:x}))),[4,Promise.race([_e,Promise.resolve(t(m,{dispatch:g,getState:y,extra:x,requestId:v,signal:w.signal,abort:$,rejectWithValue:function(ae,$e){return new wc(ae,$e)},fulfillWithValue:function(ae,$e){return new Em(ae,$e)}})).then(function(ae){if(ae instanceof wc)throw ae;return ae instanceof Em?n(ae.payload,v,m,ae.meta):n(ae,v,m)})])];case 3:return D=G.sent(),[3,5];case 4:return se=G.sent(),D=se instanceof wc?s(null,v,m,se.payload,se.meta):s(se,v,m),[3,5];case 5:return z=o&&!o.dispatchConditionRejection&&s.match(D)&&D.meta.condition,z||g(D),[2,D]}})})})();return Object.assign(E,{abort:$,requestId:v,arg:m,unwrap:function(){return E.then(DC)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return r.withTypes=function(){return r},r})();Tm="listener",_m="completed",Im="cancelled",Vk="task-"+Im,Wk="task-"+_m,jk=Tm+"-"+Im,Gk=Tm+"-"+_m,Ac="listenerMiddleware",Kk=Ur(Ac+"/add"),qk=Ur(Ac+"/removeAll"),Zk=Ur(Ac+"/remove"),Qk=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(wm||(wm=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},FC=function(r){return function(e){setTimeout(e,r)}},Yk=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:FC(10);nm()});function BC(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))ni(e)&&e.clear()}var xr,Nm=u(()=>{"use strict";Pm();ma();oc();Qo();rt();window.ftReduxStores||(window.ftReduxStores={});xr=class r extends yr{static get(e){var t;let o=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(ni(a))return a;if(n==null)return;let s=km({...n,reducers:(t=n.reducers)!==null&&t!==void 0?t:{}}),l=Am({reducer:(d,f)=>{if(f.type==="CLEAR_FT_REDUX_STORE"){let m=gt(s.getInitialState());for(let g of f.keeping)m[g]=(d??m)[g];return m}else if(typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...f.overwrites};return s.reducer(d,f)}});return window.ftReduxStores[n.name]=new r(s,l,n.eventBus)}constructor(e,t,o){super(),this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.commands=new un;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,f=a[d];return f?(...m)=>{let g=f(...m.map(n));return this.reduxStore.dispatch(g),g}:m=>{this.setState({[d]:n(m)})}}}),this.eventBus=o??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}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(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}});function ui(r,e,t){return new Oa(r,e,t).watch()}var Oa,$m=u(()=>{"use strict";rt();Oa=class{constructor(e,t,o){this.store=e,this.valueSelector=t,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),t=this.valueSelector(e);yt(this.lastValue,t)&&(this.callback(t,e),this.lastValue=t)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}}});var Co,Dm=u(()=>{"use strict";Co=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var t;return(t=this.requestConsumers.get(e))!==null&&t!==void 0?t:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,t){for(let o of t)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,t){for(let o of t)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}}});var Lc={};q(Lc,{FtCommandQueue:()=>un,FtLitElementRedux:()=>vt,FtReduxStore:()=>xr,FtStateManager:()=>Co,ReduxWatcher:()=>Oa,clearAllStores:()=>BC,isFtReduxStore:()=>ni,redux:()=>pe,reduxEventListener:()=>rC,reduxReactive:()=>tC,watch:()=>ui,withRedux:()=>qh});var Ea=u(()=>{"use strict";Kh();oc();Zh();Nm();ma();$m();Dm()});var Ic={};q(Ic,{scrollHelper:()=>_c});var kc,wa,Tc,_c,Pc=u(()=>{"use strict";rt();wa=new Map,Tc=class{lock(e,t){if(t){let o=wa.get(t);if(o==null||o===e)return wa.set(t,e),t}}release(e,t){t&&wa.get(t)===e&&wa.delete(t)}findFirstScrollableParent(e){var t;let o,n;for(let a of Js(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else l&&n==null&&(n=s)}return(t=o??n)!==null&&t!==void 0?t:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,t){var o,n;let a=0;for(;t&&t.offsetParent!==e.offsetParent;)a+=(o=t.offsetTop)!==null&&o!==void 0?o:0,t=t.offsetParent;return a+((n=t?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let n=this.getAbsoluteScrollOffset(o,e),a=n-o.clientHeight+e.clientHeight,s=n,l=gr(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(t?.position,l)*(a-s)+s;o.scrollTo({behavior:t?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(kc=window.FluidTopicsScrollHelper)!==null&&kc!==void 0?kc:new Tc;_c=window.FluidTopicsScrollHelper});var Nc=u(()=>{});var Mm,Fm,Bm,zr,Um,zm,Hm,Oo,Vm,Wm,jm,Gm,Km,qm,Zm,Qm,Hr,Ym,Xm,Eo,og,Jm,Ra,eg,pi,ig,nr,fi,tg,Ie,Dt,rg,$c=u(()=>{(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Mm||(Mm={}));(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Fm||(Fm={}));(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(Bm||(Bm={}));(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(zr||(zr={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Um||(Um={}));(function(r){r.VALUE="VALUE",r.DATE="DATE",r.RANGE="RANGE"})(zm||(zm={}));(function(r){r.OFFICIAL="OFFICIAL",r.AI="AI"})(Hm||(Hm={}));(function(r){r.BOOKMARK__CREATE="BOOKMARK__CREATE",r.BOOKMARK__DELETE="BOOKMARK__DELETE",r.CASE_DEFLECTION__START="CASE_DEFLECTION__START",r.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",r.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",r.CHATBOT__RATE="CHATBOT__RATE",r.COLLECTION__CREATE="COLLECTION__CREATE",r.COLLECTION__UPDATE="COLLECTION__UPDATE",r.COLLECTION__DELETE="COLLECTION__DELETE",r.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",r.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",r.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",r.DOCUMENT__PRINT="DOCUMENT__PRINT",r.DOCUMENT__PROCESS="DOCUMENT__PROCESS",r.DOCUMENT__RATE="DOCUMENT__RATE",r.DOCUMENT__SEARCH="DOCUMENT__SEARCH",r.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",r.DOCUMENT__UNRATE="DOCUMENT__UNRATE",r.FEEDBACK__SEND="FEEDBACK__SEND",r.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",r.AI__RATE="AI__RATE",r.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",r.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",r.KHUB__PROCESS="KHUB__PROCESS",r.KHUB__SEARCH="KHUB__SEARCH",r.LABELS__DOWNLOAD="LABELS__DOWNLOAD",r.LINK__SHARE="LINK__SHARE",r.PAGE__DISPLAY="PAGE__DISPLAY",r.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",r.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",r.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",r.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",r.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",r.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",r.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",r.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",r.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",r.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",r.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",r.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",r.TOPIC__RATE="TOPIC__RATE",r.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",r.TOPIC__UNRATE="TOPIC__UNRATE",r.USER__LOGIN="USER__LOGIN",r.USER__LOGOUT="USER__LOGOUT",r.HEARTBEAT="HEARTBEAT"})(Oo||(Oo={}));(function(r){r.STANDARD="STANDARD",r.STRUCTURAL="STRUCTURAL"})(Vm||(Vm={}));(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(Wm||(Wm={}));(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT",r.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",r.LINK_PREVIEW="LINK_PREVIEW",r.UD_VIEWER="UD_VIEWER",r.ASSET_VIEWER="ASSET_VIEWER"})(jm||(jm={}));(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Gm||(Gm={}));(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Km||(Km={}));(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(qm||(qm={}));(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Zm||(Zm={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(Qm||(Qm={}));(function(r){r.OPTIONAL="OPTIONAL",r.MANDATORY="MANDATORY"})(Hr||(Hr={}));(function(r){r.ASC="ASC",r.DESC="DESC"})(Ym||(Ym={}));(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Xm||(Xm={}));(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Eo||(Eo={}));og=r=>Object.keys(Eo).includes(r);(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(Jm||(Jm={}));(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Ra||(Ra={}));(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(eg||(eg={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(pi||(pi={}));ig=r=>Object.keys(pi).includes(r);(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.HTML_PACKAGE="HTML_PACKAGE",r.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(nr||(nr={}));(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(fi||(fi={}));(function(r){r.PLAIN_TEXT="PLAIN_TEXT",r.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",r.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(tg||(tg={}));(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",r.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN"})(Ie||(Ie={}));(function(r){r.SEARCHES="SEARCHES",r.BOOKMARKS="BOOKMARKS",r.BOOKS="BOOKS",r.COLLECTIONS="COLLECTIONS"})(Dt||(Dt={}));(function(r){r.UNAUTHENTICATED="UNAUTHENTICATED",r.USER_INCOMPLETE="USER_INCOMPLETE",r.MFA_REQUIRED="MFA_REQUIRED",r.AUTHENTICATED="AUTHENTICATED"})(rg||(rg={}))});var ng,ag,sg,lg,cg,dg,ug,pg,fg,hg,mg,gg=u(()=>{(function(r){r.UNREACHABLE="UNREACHABLE",r.UNAUTHORIZED="UNAUTHORIZED",r.FORBIDDEN="FORBIDDEN",r.INCOMPATIBLE="INCOMPATIBLE",r.FAILED="FAILED",r.OK="OK"})(ng||(ng={}));(function(r){r.VALID="VALID",r.INVALID="INVALID"})(ag||(ag={}));(function(r){r.INACCURATE="INACCURATE",r.INCOMPLETE="INCOMPLETE",r.OFF_TOPIC="OFF_TOPIC",r.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",r.SUMMARY="SUMMARY",r.SEMANTIC_SEARCH="SEMANTIC_SEARCH",r.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",r.DOCUMENTATION="DOCUMENTATION",r.OTHER="OTHER"})(sg||(sg={}));(function(r){r.INACCURATE="INACCURATE",r.INCOMPLETE="INCOMPLETE",r.OFF_TOPIC="OFF_TOPIC",r.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",r.SLOW="SLOW",r.OTHER="OTHER"})(lg||(lg={}));(function(r){r.JSON="JSON",r.TEXT="TEXT"})(cg||(cg={}));(function(r){r.JSON="JSON",r.TEXT="TEXT"})(dg||(dg={}));(function(r){r.TEXT="TEXT",r.HTML="HTML"})(ug||(ug={}));(function(r){r.IN_PROGRESS="IN_PROGRESS",r.ERROR="ERROR",r.DONE="DONE"})(pg||(pg={}));(function(r){r.HTML="HTML",r.MARKDOWN="MARKDOWN"})(fg||(fg={}));(function(r){r.SOURCES="SOURCES",r.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",r.VOCABULARIES="VOCABULARIES",r.METADATA="METADATA",r.PRETTY_URL="PRETTY_URL",r.ACCESS_RULE="ACCESS_RULE",r.DESIGNED_PAGES="DESIGNED_PAGES",r.THEME_STUDIO="THEME_STUDIO",r.PORTAL_GENERAL="PORTAL_GENERAL",r.ASSETS="ASSETS",r.CODE_LIBRARY="CODE_LIBRARY",r.THEME="THEME",r.CONTENT_STYLES="CONTENT_STYLES",r.HOMEPAGE="HOMEPAGE",r.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",r.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",r.PORTAL_METADATA="PORTAL_METADATA",r.LANGUAGES="LANGUAGES",r.PRINT_TEMPLATES="PRINT_TEMPLATES",r.OFFLINE="OFFLINE",r.CUSTOM_JS="CUSTOM_JS",r.CONFIDENTIALITY="CONFIDENTIALITY",r.NOTIFICATIONS="NOTIFICATIONS"})(hg||(hg={}));(function(r){r.MAP="MAP",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(mg||(mg={}))});var yg=u(()=>{$c();gg()});function bg(r,e){return r===e||(UC[r]??[]).some(t=>bg(t,e))}function vg(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>bg(o,e))}var UC,xg=u(()=>{$c();UC={[Ie.PERSONAL_BOOK_SHARE_USER]:[Ie.PERSONAL_BOOK_USER],[Ie.HTML_EXPORT_USER]:[Ie.PERSONAL_BOOK_USER],[Ie.PDF_EXPORT_USER]:[Ie.PERSONAL_BOOK_USER],[Ie.KHUB_ADMIN]:[Ie.CONTENT_PUBLISHER],[Ie.ADMIN]:[Ie.KHUB_ADMIN,Ie.USERS_ADMIN,Ie.PORTAL_ADMIN,Ie.BEHAVIOR_DATA_USER],[Ie.GENERATIVE_AI_EXPORT_USER]:[Ie.GENERATIVE_AI_USER]}});var Sg=u(()=>{});var Vr=u(()=>{Nc();yg();xg();Sg();Nc()});var Dc={};q(Dc,{SearchPlaceConverter:()=>Wr,SearchPlaceQueryParams:()=>oe,isSearchPlaceQueryParams:()=>Og,serializeRequest:()=>HC});function zC(r){return`"${r}"`}function Cg(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function HC(r,e){return new Wr(r).serialize(e)}function Og(r){return VC.has(r)}var oe,VC,Wr,Mc=u(()=>{"use strict";Vr();rt();(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page",r.KEYWORD_MATCH="keyword-match"})(oe||(oe={}));VC=new Set(Object.values(oe));Wr=class{constructor(e,t=20,o=!1,n="en-US"){this.baseUrl=e,this.defaultPerPage=t,this.allLanguagesAllowed=o,this.defaultContentLocale=n,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,t){return this.serializeToCurrentPageIfPossible(e,t??"/search")}serializeToCurrentPageIfPossible(e,t){let o=t==null||t.trim().length===0,n=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${t}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,t=!1){var o,n,a,s,l,d,f,m,g,y,x;let v=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&v.append(oe.LOCALE,e.contentLocale):v.append(oe.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&v.append(oe.QUERY,e.query);let w=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(C=>C.valueFilter&&!C.valueFilter.negative))!==null&&a!==void 0?a:[];if(w.length>0){let C=w.map(L=>{var D,X;let _e=((X=(D=L.valueFilter)===null||D===void 0?void 0:D.values)!==null&&X!==void 0?X:[]).map(se=>this.escapeFilters(se)).map(se=>zC(Cg(se))).join("_");return`${L.key}~${_e}`}).join("*");v.append(oe.VALUE_FILTERS,C)}let _=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(C=>C.dateFilter))!==null&&l!==void 0?l:[];if(_.length>0){let C=_.map(L=>{var D;return`${L.key}~${(D=L.dateFilter)===null||D===void 0?void 0:D.type.toLowerCase()}`}).join("*");v.append(oe.DATE_FILTERS,C)}let P=(f=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(C=>C.rangeFilter))!==null&&f!==void 0?f:[];if(P.length>0){let C=P.map(L=>{var D,X;return`${L.key}~${(D=L.rangeFilter)===null||D===void 0?void 0:D.from}_${(X=L.rangeFilter)===null||X===void 0?void 0:X.to}`}).join("*");v.append(oe.RANGE_FILTERS,C)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&v.append(oe.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&v.append(oe.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&v.append(oe.SORT,e.sortId),!((m=e.paging)===null||m===void 0)&&m.perPage&&((y=(g=e.paging)===null||g===void 0?void 0:g.perPage)!==null&&y!==void 0?y:this.defaultPerPage)!=this.defaultPerPage&&v.append(oe.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&v.append(oe.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let $=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let C in $)v.append(C,$[C]);let E=new Array;return v.forEach((C,L)=>{E.push(this.encodeQueryString(L)+"="+this.encodeQueryString(C))}),encodeURI(E.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var t;let o=e.split("?"),n=this.fromURLSearchParams(o.slice(1).join("?")),a=o[0].split("/search/")[1];return a==null?n:{...n,scope:(t=this.scopeMapping[a])!==null&&t!==void 0?t:n.scope}}fromURLSearchParams(e){var t,o,n,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(P){console.warn("Could not decode search request query params, fallback on raw value",P)}let d=new URLSearchParams(e),f=d.get(oe.LOCALE)==="all"?void 0:d.get(oe.LOCALE),m=((t=d.get(oe.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),g=(o=d.get(oe.SORT))===null||o===void 0?void 0:o.toLowerCase(),y=(n=d.get(oe.SCOPE))!==null&&n!==void 0?n:"default",x=+((a=d.get(oe.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),v=d.get(oe.KEYWORD_MATCH),w=v?v.toUpperCase()===Hr.MANDATORY?Hr.MANDATORY:Hr.OPTIONAL:void 0,_={};for(let P of d.keys())Og(P)||(_[P]=d.get(P));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(oe.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[y])!==null&&l!==void 0?l:"DEFAULT",virtualField:og(m)?m:"EVERYWHERE",sortId:g,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:gr(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:w,otherQueryParams:_}}parseCompatFilters(e){var t,o,n,a,s,l;let d=[];return e.has(oe.FILTERS)&&(d=this.parseValueFilters((t=e.get(oe.FILTERS))!==null&&t!==void 0?t:"")),(o=e.has(oe.PERIOD))!==null&&o!==void 0&&o&&(d=[...d,...this.parseLegacyPeriodFilter(((n=e.get(oe.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(oe.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(oe.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(oe.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(t=>t.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],valueFilter:{values:t[1].split("_").map(Cg).map(o=>this.unescapeFilterValue(o)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:pi[t[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],rangeFilter:{from:t[1].split("_")[0],to:t[1].split("_")[1]}}))}escapeFilters(e){for(let[t,o,n]of this.filtersEscapeMapping)e=e.replaceAll(t,o);return e}superEscapeFilters(e){for(let[t,o,n]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}unescapeFilterValue(e){for(let[t,o,n]of this.filtersEscapeMapping)e=e.replaceAll(n,t);return e}parseLegacyPeriodFilter(e){if(ig(e))return[{key:"ft:lastEdition",dateFilter:{type:pi[e]}}];if(e.startsWith("CUSTOM_")){let[t,o,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:n}}]}return[]}static clearSearchParamsInUrl(e){let t=new URL(e);return[oe.LOCALE,oe.FILTERS,oe.VALUE_FILTERS,oe.DATE_FILTERS,oe.RANGE_FILTERS].forEach(n=>{t.searchParams.delete(n)}),t.toString()}static updateLocaleParamInUrl(e,t){let o=new URL(e);return o.searchParams.delete(oe.LOCALE),t!==void 0&&o.searchParams.append(oe.LOCALE,t),o.toString()}}});var Uc={};q(Uc,{toFtFormComponent:()=>Bc});var Fc,Bc,zc=u(()=>{"use strict";rt();Fc=Symbol("elementInternals"),Bc=Ee(Symbol("toFtFormComponent"),function(r){class e extends r{static get formAssociated(){return!0}get form(){return this[Fc].form}constructor(...o){super(o),this[Fc]=this.attachInternals()}setFormValue(o){this[Fc].setFormValue(o)}}return e})});var Hc={};q(Hc,{DateFormatter:()=>wo});var wo,Aa=u(()=>{"use strict";wo=class{static format(e,t,o,n,a){return window.moment?window.moment(e).locale(t).format(this.getMomentDateFormat(o,n,!!a)):this.getIntlDateTime(e,t,o,n,!!a)}static getMomentDateFormat(e,t,o){return o?"LT":e?t?"lll":"ll":t?"L LT":"L"}static getIntlDateTime(e,t,o,n,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(t,{dateStyle:o?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(t,{timeStyle:"short"}).format(s);return a?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),t=new Date().getTimezoneOffset();return`${t<0?"+":"-"}${e(Math.abs(t)/60)}:${e(Math.abs(t)%60)}`}}});var Wc={};q(Wc,{ALL_KEYS_VALUE:()=>Vc,SameWindowStorageEvent:()=>hi});var Vc,hi,jc=u(()=>{"use strict";Vc="__all__",hi=class extends CustomEvent{constructor(e,t,o){super("same-window-storage",{detail:{key:e,oldValue:t,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Vc}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(r,e,t){let o=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new hi(t[0],o,t[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(r,e,t){let o=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new hi(t[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(r,e,t){Reflect.apply(r,e,t),window.dispatchEvent(new hi(Vc))}})});var Kc={};q(Kc,{FocusMainContentEvent:()=>Gc});var Gc,qc=u(()=>{"use strict";Gc=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}}});var Eg={};function WC(r){(r.key==="Enter"||r.key===" "||r.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=r.key}function jC(r){window.FluidTopicsA11yHints.isKeyboardNavigation=r.detail==0}var Zc=u(()=>{"use strict";window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};document.addEventListener("keydown",WC);document.addEventListener("click",jC)});var mi,Qc=u(()=>{"use strict";T();mi=R`
47
+ `});var Gh={};var ec=u(()=>{"use strict"});var tc={};q(tc,{ParametrizedLabelResolver:()=>$r});var $r,rc=u(()=>{"use strict";$r=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var o,n;e=this.resolvePluralKey(e,t);let a=(n=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((o,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(o,s))),e}resolvePluralKey(e,t){for(let o of t)if(typeof o=="number"){let n=`${String(e)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let o=n=>t?.includes("date")?e.toLocaleDateString(n):t?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}}});var tC,pe,rC,Kh=u(()=>{"use strict";rt();K();tC=()=>(r,e)=>{var t;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(t=o.reduxReactiveProperties)===null||t===void 0||t.add(e)},pe=r=>{let e=r??{};return(t,o)=>{var n;let a={hasChanged:yt,attribute:!1,...e};h(a)(t,o);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=e.selector)!==null&&n!==void 0?n:(l=>l[o]),store:e.store})}},rC=r=>(e,t)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(t,r)}});var un,oc=u(()=>{"use strict";un=class{constructor(){this.queue=[]}add(e,t=!1){t&&this.clear(e.type),this.queue.push(e)}consume(e){let t=this.queue.find(o=>o.type===e);return t&&(this.queue=this.queue.filter(o=>o!==t)),t}clear(e){typeof e=="string"?this.queue=this.queue.filter(t=>t.type!==e):this.queue=this.queue.filter(t=>!e.test(t.type))}}});function ni(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ma=u(()=>{"use strict"});var pn,Dr,vo,qh,vt,Zh=u(()=>{"use strict";ln();ma();rt();pn=Symbol("internalReduxEventsUnsubscribers"),Dr=Symbol("internalStoresUnsubscribers"),vo=Symbol("internalStores"),qh=Ee(Symbol("withRedux"),function(r){var e,t,o;class n extends r{constructor(){super(...arguments),this[e]=new Map,this[t]=new Map,this[o]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(l=>s.has(l))&&this.updateFromStores()}getUnnamedStore(){if(this[vo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[vo].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[vo].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[vo].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[vo].delete(l)}setupStores(){this.unsubscribeFromStores(),this[vo].forEach((s,l)=>this.subscribeToStore(l,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,l)=>{let d=this.constructor.getPropertyOptions(l);if(!d?.attribute||!this.hasAttribute(typeof d?.attribute=="string"?d.attribute:l)){let f=this.getStore(s.store);f&&(s.store?this[Dr].has(s.store):this[Dr].size>0)&&(this[l]=s.selector(f.getState(),this))}})}subscribeToStore(s,l){var d;this[Dr].set(s,l.subscribe(()=>this.updateFromStores())),this[pn].set(s,[]),ni(l)&&l.eventBus&&((d=this.reduxConstructor.reduxEventListeners)===null||d===void 0||d.forEach((f,m)=>{if(typeof this[m]=="function"&&(!f.store||l.name===f.store)){let g=y=>this[m](y);l.addEventListener(f.eventName,g),this[pn].get(s).push(()=>l.removeEventListener(f.eventName,g))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Dr].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[Dr].has(s)&&this[Dr].get(s)(),this[Dr].delete(s),(l=this[pn].get(s))===null||l===void 0||l.forEach(d=>d()),this[pn].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Dr,t=vo,o=pn,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),vt=class extends qh(F){}});function $t(r){for(var e=arguments.length,t=Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function vr(r){return!!r&&!!r[Ce]}function Wt(r){var e;return!!r&&((function(t){if(!t||typeof t!="object")return!1;var o=Object.getPrototypeOf(t);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===dC})(r)||Array.isArray(r)||!!r[rm]||!!(!((e=r.constructor)===null||e===void 0)&&e[rm])||pc(r)||fc(r))}function xo(r,e,t){t===void 0&&(t=!1),li(r)===0?(t?Object.keys:si)(r).forEach((function(o){t&&typeof o=="symbol"||e(o,r[o],r)})):r.forEach((function(o,n){return e(n,o,r)}))}function li(r){var e=r[Ce];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:pc(r)?2:fc(r)?3:0}function ai(r,e){return li(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function oC(r,e){return li(r)===2?r.get(e):r[e]}function om(r,e,t){var o=li(r);o===2?r.set(e,t):o===3?r.add(t):r[e]=t}function im(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function pc(r){return lC&&r instanceof Map}function fc(r){return cC&&r instanceof Set}function Mr(r){return r.o||r.t}function hc(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=sm(r);delete e[Ce];for(var t=si(e),o=0;o<t.length;o++){var n=t[o],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),e)}function mc(r,e){return e===void 0&&(e=!1),gc(r)||vr(r)||!Wt(r)||(li(r)>1&&(r.set=r.add=r.clear=r.delete=iC),Object.freeze(r),e&&xo(r,(function(t,o){return mc(o,!0)}),!0)),r}function iC(){$t(2)}function gc(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function nr(r){var e=uc[r];return e||$t(18,r),e}function nC(r,e){uc[r]||(uc[r]=e)}function lc(){return hn}function ic(r,e){e&&(nr("Patches"),r.u=[],r.s=[],r.v=e)}function ga(r){cc(r),r.p.forEach(aC),r.p=null}function cc(r){r===hn&&(hn=r.l)}function Qh(r){return hn={p:[],l:hn,h:r,m:!0,_:0}}function aC(r){var e=r[Ce];e.i===0||e.i===1?e.j():e.g=!0}function nc(r,e){e._=e.p.length;var t=e.p[0],o=r!==void 0&&r!==t;return e.h.O||nr("ES5").S(e,r,o),o?(t[Ce].P&&(ga(e),$t(4)),Wt(r)&&(r=ya(e,r),e.l||ba(e,r)),e.u&&nr("Patches").M(t[Ce].t,r,e.u,e.s)):r=ya(e,t,[]),ga(e),e.u&&e.v(e.u,e.s),r!==am?r:void 0}function ya(r,e,t){if(gc(e))return e;var o=e[Ce];if(!o)return xo(e,(function(l,d){return Yh(r,o,e,l,d,t)}),!0),e;if(o.A!==r)return e;if(!o.P)return ba(r,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=hc(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),xo(a,(function(l,d){return Yh(r,o,n,l,d,t,s)})),ba(r,n,!1),t&&r.u&&nr("Patches").N(o,t,r.u,r.s)}return o.o}function Yh(r,e,t,o,n,a,s){if(vr(n)){var l=ya(r,n,a&&e&&e.i!==3&&!ai(e.R,o)?a.concat(o):void 0);if(om(t,o,l),!vr(l))return;r.m=!1}else s&&t.add(n);if(Wt(n)&&!gc(n)){if(!r.h.D&&r._<1)return;ya(r,n),e&&e.A.l||ba(r,n)}}function ba(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&mc(e,t)}function ac(r,e){var t=r[Ce];return(t?Mr(t):r)[e]}function Xh(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var o=Object.getOwnPropertyDescriptor(t,e);if(o)return o;t=Object.getPrototypeOf(t)}}function Fr(r){r.P||(r.P=!0,r.l&&Fr(r.l))}function sc(r){r.o||(r.o=hc(r.t))}function dc(r,e,t){var o=pc(e)?nr("MapSet").F(e,t):fc(e)?nr("MapSet").T(e,t):r.O?(function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:lc(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=l,f=mn;s&&(d=[l],f=fn);var m=Proxy.revocable(d,f),g=m.revoke,y=m.proxy;return l.k=y,l.j=g,y})(e,t):nr("ES5").J(e,t);return(t?t.A:lc()).p.push(o),o}function sC(r){return vr(r)||$t(22,r),(function e(t){if(!Wt(t))return t;var o,n=t[Ce],a=li(t);if(n){if(!n.P&&(n.i<4||!nr("ES5").K(n)))return n.t;n.I=!0,o=Jh(t,a),n.I=!1}else o=Jh(t,a);return xo(o,(function(s,l){n&&oC(n.t,s)===l||om(o,s,e(l))})),a===3?new Set(o):o})(r)}function Jh(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return hc(r)}function nm(){function r(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var f=this[Ce];return mn.get(f,s)},set:function(f){var m=this[Ce];mn.set(m,s,f)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Ce];if(!d.P)switch(d.i){case 5:o(d)&&Fr(d);break;case 4:t(d)&&Fr(d)}}}function t(s){for(var l=s.t,d=s.k,f=si(d),m=f.length-1;m>=0;m--){var g=f[m];if(g!==Ce){var y=l[g];if(y===void 0&&!ai(l,g))return!0;var x=d[g],v=x&&x[Ce];if(v?v.t!==y:!im(x,y))return!0}}var w=!!l[Ce];return f.length!==si(l).length+(w?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function n(s){s.g&&$t(3,JSON.stringify(Mr(s)))}var a={};nC("ES5",{J:function(s,l){var d=Array.isArray(s),f=(function(g,y){if(g){for(var x=Array(y.length),v=0;v<y.length;v++)Object.defineProperty(x,""+v,r(v,!0));return x}var w=sm(y);delete w[Ce];for(var _=si(w),P=0;P<_.length;P++){var $=_[P];w[$]=r($,g||!!w[$].enumerable)}return Object.create(Object.getPrototypeOf(y),w)})(d,s),m={i:d?5:4,A:l?l.A:lc(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,Ce,{value:m,writable:!0}),f},S:function(s,l,d){d?vr(l)&&l[Ce].A===s&&e(s.p):(s.u&&(function f(m){if(m&&typeof m=="object"){var g=m[Ce];if(g){var y=g.t,x=g.k,v=g.R,w=g.i;if(w===4)xo(x,(function(C){C!==Ce&&(y[C]!==void 0||ai(y,C)?v[C]||f(x[C]):(v[C]=!0,Fr(g)))})),xo(y,(function(C){x[C]!==void 0||ai(x,C)||(v[C]=!1,Fr(g))}));else if(w===5){if(o(g)&&(Fr(g),v.length=!0),x.length<y.length)for(var _=x.length;_<y.length;_++)v[_]=!1;else for(var P=y.length;P<x.length;P++)v[P]=!0;for(var $=Math.min(x.length,y.length),E=0;E<$;E++)x.hasOwnProperty(E)||(v[E]=!0),v[E]===void 0&&f(x[E])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):o(s)}})}var em,hn,yc,lC,cC,tm,am,rm,Ce,dC,si,sm,uc,mn,fn,uC,xt,pC,mk,gk,yk,bk,vk,xk,va,xa=u(()=>{yc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",lC=typeof Map<"u",cC=typeof Set<"u",tm=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",am=yc?Symbol.for("immer-nothing"):((em={})["immer-nothing"]=!0,em),rm=yc?Symbol.for("immer-draftable"):"__$immer_draftable",Ce=yc?Symbol.for("immer-state"):"__$immer_state",dC=""+Object.prototype.constructor,si=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,sm=Object.getOwnPropertyDescriptors||function(r){var e={};return si(r).forEach((function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)})),e},uc={},mn={get:function(r,e){if(e===Ce)return r;var t=Mr(r);if(!ai(t,e))return(function(n,a,s){var l,d=Xh(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(n.k):void 0})(r,t,e);var o=t[e];return r.I||!Wt(o)?o:o===ac(r.t,e)?(sc(r),r.o[e]=dc(r.A.h,o,r)):o},has:function(r,e){return e in Mr(r)},ownKeys:function(r){return Reflect.ownKeys(Mr(r))},set:function(r,e,t){var o=Xh(Mr(r),e);if(o?.set)return o.set.call(r.k,t),!0;if(!r.P){var n=ac(Mr(r),e),a=n?.[Ce];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(im(t,n)&&(t!==void 0||ai(r.t,e)))return!0;sc(r),Fr(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return ac(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,sc(r),Fr(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=Mr(r),o=Reflect.getOwnPropertyDescriptor(t,e);return o&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:o.enumerable,value:t[e]}},defineProperty:function(){$t(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){$t(12)}},fn={};xo(mn,(function(r,e){fn[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),fn.deleteProperty=function(r,e){return fn.set.call(this,r,e,void 0)},fn.set=function(r,e,t){return mn.set.call(this,r[0],e,t,r[0])};uC=(function(){function r(t){var o=this;this.O=tm,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var d=o;return function(w){var _=this;w===void 0&&(w=l);for(var P=arguments.length,$=Array(P>1?P-1:0),E=1;E<P;E++)$[E-1]=arguments[E];return d.produce(w,(function(C){var L;return(L=a).call.apply(L,[_,C].concat($))}))}}var f;if(typeof a!="function"&&$t(6),s!==void 0&&typeof s!="function"&&$t(7),Wt(n)){var m=Qh(o),g=dc(o,n,void 0),y=!0;try{f=a(g),y=!1}finally{y?ga(m):cc(m)}return typeof Promise<"u"&&f instanceof Promise?f.then((function(w){return ic(m,s),nc(w,m)}),(function(w){throw ga(m),w})):(ic(m,s),nc(f,m))}if(!n||typeof n!="object"){if((f=a(n))===void 0&&(f=n),f===am&&(f=void 0),o.D&&mc(f,!0),s){var x=[],v=[];nr("Patches").M(n,f,x,v),s(x,v)}return f}$t(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(f){for(var m=arguments.length,g=Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return o.produceWithPatches(f,(function(x){return n.apply(void 0,[x].concat(g))}))};var s,l,d=o.produce(n,a,(function(f,m){s=f,l=m}));return typeof Promise<"u"&&d instanceof Promise?d.then((function(f){return[f,s,l]})):[d,s,l]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){Wt(t)||$t(8),vr(t)&&(t=sC(t));var o=Qh(this),n=dc(this,t,void 0);return n[Ce].C=!0,cc(o),n},e.finishDraft=function(t,o){var n=t&&t[Ce],a=n.A;return ic(a,o),nc(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!tm&&$t(20),this.O=t},e.applyPatches=function(t,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(o=o.slice(n+1));var s=nr("Patches").$;return vr(t)?s(t,o):this.produce(t,(function(l){return s(l,o)}))},r})(),xt=new uC,pC=xt.produce,mk=xt.produceWithPatches.bind(xt),gk=xt.setAutoFreeze.bind(xt),yk=xt.setUseProxies.bind(xt),bk=xt.applyPatches.bind(xt),vk=xt.createDraft.bind(xt),xk=xt.finishDraft.bind(xt),va=pC});function So(r){"@babel/helpers - typeof";return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},So(r)}var bc=u(()=>{});function lm(r,e){if(So(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(So(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var cm=u(()=>{bc()});function dm(r){var e=lm(r,"string");return So(e)=="symbol"?e:e+""}var um=u(()=>{bc();cm()});function pm(r,e,t){return(e=dm(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var fm=u(()=>{um()});function hm(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,o)}return t}function vc(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?hm(Object(t),!0).forEach(function(o){pm(r,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):hm(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o))})}return r}var mm=u(()=>{fm()});function qe(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}function fC(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function Sc(r,e,t){var o;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(qe(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(qe(1));return t(Sc)(r,e)}if(typeof r!="function")throw new Error(qe(2));var n=r,a=e,s=[],l=s,d=!1;function f(){l===s&&(l=s.slice())}function m(){if(d)throw new Error(qe(3));return a}function g(w){if(typeof w!="function")throw new Error(qe(4));if(d)throw new Error(qe(5));var _=!0;return f(),l.push(w),function(){if(_){if(d)throw new Error(qe(6));_=!1,f();var $=l.indexOf(w);l.splice($,1),s=null}}}function y(w){if(!fC(w))throw new Error(qe(7));if(typeof w.type>"u")throw new Error(qe(8));if(d)throw new Error(qe(9));try{d=!0,a=n(a,w)}finally{d=!1}for(var _=s=l,P=0;P<_.length;P++){var $=_[P];$()}return w}function x(w){if(typeof w!="function")throw new Error(qe(10));n=w,y({type:Sa.REPLACE})}function v(){var w,_=g;return w={subscribe:function($){if(typeof $!="object"||$===null)throw new Error(qe(11));function E(){$.next&&$.next(m())}E();var C=_(E);return{unsubscribe:C}}},w[gm]=function(){return this},w}return y({type:Sa.INIT}),o={dispatch:y,subscribe:g,getState:m,replaceReducer:x},o[gm]=v,o}function hC(r){Object.keys(r).forEach(function(e){var t=r[e],o=t(void 0,{type:Sa.INIT});if(typeof o>"u")throw new Error(qe(12));if(typeof t(void 0,{type:Sa.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(qe(13))})}function ym(r){for(var e=Object.keys(r),t={},o=0;o<e.length;o++){var n=e[o];typeof r[n]=="function"&&(t[n]=r[n])}var a=Object.keys(t),s,l;try{hC(t)}catch(d){l=d}return function(f,m){if(f===void 0&&(f={}),l)throw l;if(0)var g;for(var y=!1,x={},v=0;v<a.length;v++){var w=a[v],_=t[w],P=f[w],$=_(P,m);if(typeof $>"u"){var E=m&&m.type;throw new Error(qe(14))}x[w]=$,y=y||$!==P}return y=y||a.length!==Object.keys(f).length,y?x:f}}function ci(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function bm(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(qe(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=ci.apply(void 0,l)(n.dispatch),vc(vc({},n),{},{dispatch:a})}}}var gm,xc,Sa,Ca=u(()=>{mm();gm=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),xc=function(){return Math.random().toString(36).substring(7).split("").join(".")},Sa={INIT:"@@redux/INIT"+xc(),REPLACE:"@@redux/REPLACE"+xc(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+xc()}}});function vm(r){var e=function(o){var n=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return e}var xm,Cc,Sm=u(()=>{xm=vm();xm.withExtraArgument=vm;Cc=xm});function OC(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}function Ur(r,e){function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return Br(Br({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:o[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(o){return o.type===r},t}function Rc(r){return Wt(r)?va(r,function(){}):r}function RC(r){return typeof r=="boolean"}function AC(){return function(e){return LC(e)}}function LC(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,o=r.immutableCheck,n=o===void 0?!0:o,a=r.serializableCheck,s=a===void 0?!0:a,l=r.actionCreatorCheck,d=l===void 0?!0:l,f=new EC;if(t&&(RC(t)?f.push(Cc):f.push(Cc.withExtraArgument(t.extraArgument))),0){if(n)var m;if(s)var g;if(d)var y}return f}function Am(r){var e=AC(),t=r||{},o=t.reducer,n=o===void 0?void 0:o,a=t.middleware,s=a===void 0?e():a,l=t.devTools,d=l===void 0?!0:l,f=t.preloadedState,m=f===void 0?void 0:f,g=t.enhancers,y=g===void 0?void 0:g,x;if(typeof n=="function")x=n;else if(OC(n))x=ym(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=s;if(typeof v=="function"&&(v=v(e),!Ec&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ec&&v.some(function(C){return typeof C!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=bm.apply(void 0,v),_=ci;d&&(_=CC(Br({trace:!Ec},typeof d=="object"&&d)));var P=new wC(w),$=P;Array.isArray(y)?$=di([w],y):typeof y=="function"&&($=y(P));var E=_.apply(void 0,$);return Sc(x,m,E)}function Lm(r){var e={},t=[],o,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(!l)throw new Error("`builder.addCase` cannot be called with an empty action type");if(l in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return t.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return r(n),[e,t,o]}function kC(r){return typeof r=="function"}function TC(r,e,t,o){t===void 0&&(t=[]);var n=typeof e=="function"?Lm(e):[e,t,o],a=n[0],s=n[1],l=n[2],d;if(kC(r))d=function(){return Rc(r())};else{var f=Rc(r);d=function(){return f}}function m(g,y){g===void 0&&(g=d());var x=di([a[y.type]],s.filter(function(v){var w=v.matcher;return w(y)}).map(function(v){var w=v.reducer;return w}));return x.filter(function(v){return!!v}).length===0&&(x=[l]),x.reduce(function(v,w){if(w)if(vr(v)){var _=v,P=w(_,y);return P===void 0?v:P}else{if(Wt(v))return va(v,function($){return w($,y)});var P=w(v,y);if(P===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return P}return v},g)}return m.getInitialState=d,m}function _C(r,e){return r+"/"+e}function km(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof r.initialState=="function"?r.initialState:Rc(r.initialState),o=r.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(m){var g=o[m],y=_C(e,m),x,v;"reducer"in g?(x=g.reducer,v=g.prepare):x=g,a[m]=x,s[y]=x,l[m]=v?Ur(y,v):Ur(y)});function d(){var m=typeof r.extraReducers=="function"?Lm(r.extraReducers):[r.extraReducers],g=m[0],y=g===void 0?{}:g,x=m[1],v=x===void 0?[]:x,w=m[2],_=w===void 0?void 0:w,P=Br(Br({},y),s);return TC(t,function($){for(var E in P)$.addCase(E,P[E]);for(var C=0,L=v;C<L.length;C++){var D=L[C];$.addMatcher(D.matcher,D.reducer)}_&&$.addDefaultCase(_)})}var f;return{name:e,reducer:function(m,g){return f||(f=d()),f(m,g)},actions:l,caseReducers:a,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}function DC(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function MC(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Rm,mC,di,gC,yC,bC,Cm,vC,xC,Om,Br,Oc,SC,CC,Fk,EC,wC,Ec,IC,PC,NC,wc,Em,$C,Hk,Tm,_m,Im,Vk,Wk,jk,Gk,Ac,Kk,qk,Zk,wm,Qk,FC,Yk,Pm=u(()=>{xa();Ca();Ca();Ca();Sm();xa();xa();Rm=(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}})(),mC=function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(m){return d([f,m])}}function d(f){if(o)throw new TypeError("Generator is already executing.");for(;t;)try{if(o=1,n&&(a=f[0]&2?n.return:f[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,f[1])).done)return a;switch(n=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,n=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){t.label=f[1];break}if(f[0]===6&&t.label<a[1]){t.label=a[1],a=f;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(f);break}a[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(r,t)}catch(m){f=[6,m],n=0}finally{o=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},di=function(r,e){for(var t=0,o=e.length,n=r.length;t<o;t++,n++)r[n]=e[t];return r},gC=Object.defineProperty,yC=Object.defineProperties,bC=Object.getOwnPropertyDescriptors,Cm=Object.getOwnPropertySymbols,vC=Object.prototype.hasOwnProperty,xC=Object.prototype.propertyIsEnumerable,Om=function(r,e,t){return e in r?gC(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Br=function(r,e){for(var t in e||(e={}))vC.call(e,t)&&Om(r,t,e[t]);if(Cm)for(var o=0,n=Cm(e);o<n.length;o++){var t=n[o];xC.call(e,t)&&Om(r,t,e[t])}return r},Oc=function(r,e){return yC(r,bC(e))},SC=function(r,e,t){return new Promise(function(o,n){var a=function(d){try{l(t.next(d))}catch(f){n(f)}},s=function(d){try{l(t.throw(d))}catch(f){n(f)}},l=function(d){return d.done?o(d.value):Promise.resolve(d.value).then(a,s)};l((t=t.apply(r,e)).next())})},CC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ci:ci.apply(null,arguments)},Fk=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};EC=(function(r){Rm(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,di([void 0],t[0].concat(this)))):new(e.bind.apply(e,di([void 0],t.concat(this))))},e})(Array),wC=(function(r){Rm(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,di([void 0],t[0].concat(this)))):new(e.bind.apply(e,di([void 0],t.concat(this))))},e})(Array);Ec=!0;IC="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",PC=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=IC[Math.random()*64|0];return e},NC=["name","message","stack","code"],wc=(function(){function r(e,t){this.payload=e,this.meta=t}return r})(),Em=(function(){function r(e,t){this.payload=e,this.meta=t}return r})(),$C=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,o=NC;t<o.length;t++){var n=o[t];typeof r[n]=="string"&&(e[n]=r[n])}return e}return{message:String(r)}},Hk=(function(){function r(e,t,o){var n=Ur(e+"/fulfilled",function(m,g,y,x){return{payload:m,meta:Oc(Br({},x||{}),{arg:y,requestId:g,requestStatus:"fulfilled"})}}),a=Ur(e+"/pending",function(m,g,y){return{payload:void 0,meta:Oc(Br({},y||{}),{arg:g,requestId:m,requestStatus:"pending"})}}),s=Ur(e+"/rejected",function(m,g,y,x,v){return{payload:x,error:(o&&o.serializeError||$C)(m||"Rejected"),meta:Oc(Br({},v||{}),{arg:y,requestId:g,rejectedWithValue:!!x,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:(function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m})();function f(m){return function(g,y,x){var v=o?.idGenerator?o.idGenerator(m):PC(),w=new d,_,P=!1;function $(C){_=C,w.abort()}var E=(function(){return SC(this,null,function(){var C,L,D,X,_e,le,z;return mC(this,function(G){switch(G.label){case 0:return G.trys.push([0,4,,5]),X=(C=o?.condition)==null?void 0:C.call(o,m,{getState:y,extra:x}),MC(X)?[4,X]:[3,2];case 1:X=G.sent(),G.label=2;case 2:if(X===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,_e=new Promise(function(se,$e){return w.signal.addEventListener("abort",function(){return $e({name:"AbortError",message:_||"Aborted"})})}),g(a(v,m,(L=o?.getPendingMeta)==null?void 0:L.call(o,{requestId:v,arg:m},{getState:y,extra:x}))),[4,Promise.race([_e,Promise.resolve(t(m,{dispatch:g,getState:y,extra:x,requestId:v,signal:w.signal,abort:$,rejectWithValue:function(se,$e){return new wc(se,$e)},fulfillWithValue:function(se,$e){return new Em(se,$e)}})).then(function(se){if(se instanceof wc)throw se;return se instanceof Em?n(se.payload,v,m,se.meta):n(se,v,m)})])];case 3:return D=G.sent(),[3,5];case 4:return le=G.sent(),D=le instanceof wc?s(null,v,m,le.payload,le.meta):s(le,v,m),[3,5];case 5:return z=o&&!o.dispatchConditionRejection&&s.match(D)&&D.meta.condition,z||g(D),[2,D]}})})})();return Object.assign(E,{abort:$,requestId:v,arg:m,unwrap:function(){return E.then(DC)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return r.withTypes=function(){return r},r})();Tm="listener",_m="completed",Im="cancelled",Vk="task-"+Im,Wk="task-"+_m,jk=Tm+"-"+Im,Gk=Tm+"-"+_m,Ac="listenerMiddleware",Kk=Ur(Ac+"/add"),qk=Ur(Ac+"/removeAll"),Zk=Ur(Ac+"/remove"),Qk=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(wm||(wm=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},FC=function(r){return function(e){setTimeout(e,r)}},Yk=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:FC(10);nm()});function BC(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))ni(e)&&e.clear()}var xr,Nm=u(()=>{"use strict";Pm();ma();oc();Qo();rt();window.ftReduxStores||(window.ftReduxStores={});xr=class r extends yr{static get(e){var t;let o=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(ni(a))return a;if(n==null)return;let s=km({...n,reducers:(t=n.reducers)!==null&&t!==void 0?t:{}}),l=Am({reducer:(d,f)=>{if(f.type==="CLEAR_FT_REDUX_STORE"){let m=gt(s.getInitialState());for(let g of f.keeping)m[g]=(d??m)[g];return m}else if(typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...d,...f.overwrites};return s.reducer(d,f)}});return window.ftReduxStores[n.name]=new r(s,l,n.eventBus)}constructor(e,t,o){super(),this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.commands=new un;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,l)=>{let d=s,f=a[d];return f?(...m)=>{let g=f(...m.map(n));return this.reduxStore.dispatch(g),g}:m=>{this.setState({[d]:n(m)})}}}),this.eventBus=o??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}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(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}}});function ui(r,e,t){return new Oa(r,e,t).watch()}var Oa,$m=u(()=>{"use strict";rt();Oa=class{constructor(e,t,o){this.store=e,this.valueSelector=t,this.callback=o}watch(){return this.stop(),this.lastValue=this.valueSelector(this.store.getState()),this.unsubscribe=this.store.subscribe(()=>{let e=this.store.getState(),t=this.valueSelector(e);yt(this.lastValue,t)&&(this.callback(t,e),this.lastValue=t)}),this}stop(){return this.unsubscribe!=null&&(this.unsubscribe(),this.unsubscribe=void 0),this.lastValue=void 0,this}}});var Co,Dm=u(()=>{"use strict";Co=class{constructor(){this.requestConsumers=new Map}getOrCreateRequestConsumers(e){var t;return(t=this.requestConsumers.get(e))!==null&&t!==void 0?t:this.requestConsumers.set(e,new Set).get(e)}registerComponent(e,t){for(let o of t)this.getOrCreateRequestConsumers(o).add(e).size==1&&this.onNewNeededRequest(o)}unregisterComponent(e,t){for(let o of t)this.getOrCreateRequestConsumers(o).delete(e)}isRequestNeeded(e){return this.getOrCreateRequestConsumers(e).size>0}}});var Lc={};q(Lc,{FtCommandQueue:()=>un,FtLitElementRedux:()=>vt,FtReduxStore:()=>xr,FtStateManager:()=>Co,ReduxWatcher:()=>Oa,clearAllStores:()=>BC,isFtReduxStore:()=>ni,redux:()=>pe,reduxEventListener:()=>rC,reduxReactive:()=>tC,watch:()=>ui,withRedux:()=>qh});var Ea=u(()=>{"use strict";Kh();oc();Zh();Nm();ma();$m();Dm()});var Ic={};q(Ic,{scrollHelper:()=>_c});var kc,wa,Tc,_c,Pc=u(()=>{"use strict";rt();wa=new Map,Tc=class{lock(e,t){if(t){let o=wa.get(t);if(o==null||o===e)return wa.set(t,e),t}}release(e,t){t&&wa.get(t)===e&&wa.delete(t)}findFirstScrollableParent(e){var t;let o,n;for(let a of Js(e)){let s=a,l=this.elementCanScroll(s);if(l&&s.clientHeight&&s.clientHeight<s.scrollHeight){o=s;break}else l&&n==null&&(n=s)}return(t=o??n)!==null&&t!==void 0?t:document.body}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)&&!["contents"].includes(getComputedStyle(e).display)}catch{return!1}}getAbsoluteScrollOffset(e,t){var o,n;let a=0;for(;t&&t.offsetParent!==e.offsetParent;)a+=(o=t.offsetTop)!==null&&o!==void 0?o:0,t=t.offsetParent;return a+((n=t?.offsetTop)!==null&&n!==void 0?n:0)-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let n=this.getAbsoluteScrollOffset(o,e),a=n-o.clientHeight+e.clientHeight,s=n,l=gr(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(t?.position,l)*(a-s)+s;o.scrollTo({behavior:t?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(kc=window.FluidTopicsScrollHelper)!==null&&kc!==void 0?kc:new Tc;_c=window.FluidTopicsScrollHelper});var Nc=u(()=>{});var Mm,Fm,Bm,zr,Um,zm,Hm,Oo,Vm,Wm,jm,Gm,Km,qm,Zm,Qm,Hr,Ym,Xm,Eo,og,Jm,Ra,eg,pi,ig,ar,fi,tg,Ie,Dt,rg,$c=u(()=>{(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Mm||(Mm={}));(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Fm||(Fm={}));(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(Bm||(Bm={}));(function(r){r.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",r.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",r.PERSONAL_BOOK="PERSONAL_BOOK",r.ATTACHMENT="ATTACHMENT",r.RESOURCE="RESOURCE",r.HTML_PACKAGE="HTML_PACKAGE"})(zr||(zr={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Um||(Um={}));(function(r){r.VALUE="VALUE",r.DATE="DATE",r.RANGE="RANGE"})(zm||(zm={}));(function(r){r.OFFICIAL="OFFICIAL",r.AI="AI"})(Hm||(Hm={}));(function(r){r.BOOKMARK__CREATE="BOOKMARK__CREATE",r.BOOKMARK__DELETE="BOOKMARK__DELETE",r.CASE_DEFLECTION__START="CASE_DEFLECTION__START",r.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",r.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",r.CHATBOT__RATE="CHATBOT__RATE",r.COLLECTION__CREATE="COLLECTION__CREATE",r.COLLECTION__UPDATE="COLLECTION__UPDATE",r.COLLECTION__DELETE="COLLECTION__DELETE",r.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",r.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",r.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",r.DOCUMENT__PRINT="DOCUMENT__PRINT",r.DOCUMENT__PROCESS="DOCUMENT__PROCESS",r.DOCUMENT__RATE="DOCUMENT__RATE",r.DOCUMENT__SEARCH="DOCUMENT__SEARCH",r.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",r.DOCUMENT__UNRATE="DOCUMENT__UNRATE",r.FEEDBACK__SEND="FEEDBACK__SEND",r.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",r.AI__RATE="AI__RATE",r.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",r.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",r.KHUB__PROCESS="KHUB__PROCESS",r.KHUB__SEARCH="KHUB__SEARCH",r.LABELS__DOWNLOAD="LABELS__DOWNLOAD",r.LINK__SHARE="LINK__SHARE",r.PAGE__DISPLAY="PAGE__DISPLAY",r.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",r.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",r.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",r.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",r.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",r.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",r.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",r.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",r.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",r.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",r.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",r.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",r.TOPIC__RATE="TOPIC__RATE",r.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",r.TOPIC__UNRATE="TOPIC__UNRATE",r.USER__LOGIN="USER__LOGIN",r.USER__LOGOUT="USER__LOGOUT",r.HEARTBEAT="HEARTBEAT"})(Oo||(Oo={}));(function(r){r.STANDARD="STANDARD",r.STRUCTURAL="STRUCTURAL"})(Vm||(Vm={}));(function(r){r.THIRD_PARTY="THIRD_PARTY",r.OFF_THE_GRID="OFF_THE_GRID",r.CONTENT_PACKAGER="CONTENT_PACKAGER",r.PAGES="PAGES",r.DESIGNED_READER="DESIGNED_READER"})(Wm||(Wm={}));(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT",r.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",r.LINK_PREVIEW="LINK_PREVIEW",r.UD_VIEWER="UD_VIEWER",r.ASSET_VIEWER="ASSET_VIEWER"})(jm||(jm={}));(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Gm||(Gm={}));(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Km||(Km={}));(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(qm||(qm={}));(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Zm||(Zm={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR",r.CUSTOM="CUSTOM"})(Qm||(Qm={}));(function(r){r.OPTIONAL="OPTIONAL",r.MANDATORY="MANDATORY"})(Hr||(Hr={}));(function(r){r.ASC="ASC",r.DESC="DESC"})(Ym||(Ym={}));(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Xm||(Xm={}));(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Eo||(Eo={}));og=r=>Object.keys(Eo).includes(r);(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(Jm||(Jm={}));(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Ra||(Ra={}));(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(eg||(eg={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(pi||(pi={}));ig=r=>Object.keys(pi).includes(r);(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.HTML_PACKAGE="HTML_PACKAGE",r.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ar||(ar={}));(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(fi||(fi={}));(function(r){r.PLAIN_TEXT="PLAIN_TEXT",r.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",r.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(tg||(tg={}));(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",r.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN"})(Ie||(Ie={}));(function(r){r.SEARCHES="SEARCHES",r.BOOKMARKS="BOOKMARKS",r.BOOKS="BOOKS",r.COLLECTIONS="COLLECTIONS"})(Dt||(Dt={}));(function(r){r.UNAUTHENTICATED="UNAUTHENTICATED",r.USER_INCOMPLETE="USER_INCOMPLETE",r.MFA_REQUIRED="MFA_REQUIRED",r.AUTHENTICATED="AUTHENTICATED"})(rg||(rg={}))});var ng,ag,sg,lg,cg,dg,ug,pg,fg,hg,mg,gg=u(()=>{(function(r){r.UNREACHABLE="UNREACHABLE",r.UNAUTHORIZED="UNAUTHORIZED",r.FORBIDDEN="FORBIDDEN",r.INCOMPATIBLE="INCOMPATIBLE",r.FAILED="FAILED",r.OK="OK"})(ng||(ng={}));(function(r){r.VALID="VALID",r.INVALID="INVALID"})(ag||(ag={}));(function(r){r.INACCURATE="INACCURATE",r.INCOMPLETE="INCOMPLETE",r.OFF_TOPIC="OFF_TOPIC",r.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",r.SUMMARY="SUMMARY",r.SEMANTIC_SEARCH="SEMANTIC_SEARCH",r.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",r.DOCUMENTATION="DOCUMENTATION",r.OTHER="OTHER"})(sg||(sg={}));(function(r){r.INACCURATE="INACCURATE",r.INCOMPLETE="INCOMPLETE",r.OFF_TOPIC="OFF_TOPIC",r.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",r.SLOW="SLOW",r.OTHER="OTHER"})(lg||(lg={}));(function(r){r.JSON="JSON",r.TEXT="TEXT"})(cg||(cg={}));(function(r){r.JSON="JSON",r.TEXT="TEXT"})(dg||(dg={}));(function(r){r.TEXT="TEXT",r.HTML="HTML"})(ug||(ug={}));(function(r){r.IN_PROGRESS="IN_PROGRESS",r.ERROR="ERROR",r.DONE="DONE"})(pg||(pg={}));(function(r){r.HTML="HTML",r.MARKDOWN="MARKDOWN"})(fg||(fg={}));(function(r){r.SOURCES="SOURCES",r.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",r.VOCABULARIES="VOCABULARIES",r.METADATA="METADATA",r.PRETTY_URL="PRETTY_URL",r.ACCESS_RULE="ACCESS_RULE",r.DESIGNED_PAGES="DESIGNED_PAGES",r.THEME_STUDIO="THEME_STUDIO",r.PORTAL_GENERAL="PORTAL_GENERAL",r.ASSETS="ASSETS",r.CODE_LIBRARY="CODE_LIBRARY",r.THEME="THEME",r.CONTENT_STYLES="CONTENT_STYLES",r.HOMEPAGE="HOMEPAGE",r.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",r.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",r.PORTAL_METADATA="PORTAL_METADATA",r.LANGUAGES="LANGUAGES",r.PRINT_TEMPLATES="PRINT_TEMPLATES",r.OFFLINE="OFFLINE",r.CUSTOM_JS="CUSTOM_JS",r.CONFIDENTIALITY="CONFIDENTIALITY",r.NOTIFICATIONS="NOTIFICATIONS"})(hg||(hg={}));(function(r){r.MAP="MAP",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(mg||(mg={}))});var yg=u(()=>{$c();gg()});function bg(r,e){return r===e||(UC[r]??[]).some(t=>bg(t,e))}function vg(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>bg(o,e))}var UC,xg=u(()=>{$c();UC={[Ie.PERSONAL_BOOK_SHARE_USER]:[Ie.PERSONAL_BOOK_USER],[Ie.HTML_EXPORT_USER]:[Ie.PERSONAL_BOOK_USER],[Ie.PDF_EXPORT_USER]:[Ie.PERSONAL_BOOK_USER],[Ie.KHUB_ADMIN]:[Ie.CONTENT_PUBLISHER],[Ie.ADMIN]:[Ie.KHUB_ADMIN,Ie.USERS_ADMIN,Ie.PORTAL_ADMIN,Ie.BEHAVIOR_DATA_USER],[Ie.GENERATIVE_AI_EXPORT_USER]:[Ie.GENERATIVE_AI_USER]}});var Sg=u(()=>{});var Vr=u(()=>{Nc();yg();xg();Sg();Nc()});var Dc={};q(Dc,{SearchPlaceConverter:()=>Wr,SearchPlaceQueryParams:()=>oe,isSearchPlaceQueryParams:()=>Og,serializeRequest:()=>HC});function zC(r){return`"${r}"`}function Cg(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function HC(r,e){return new Wr(r).serialize(e)}function Og(r){return VC.has(r)}var oe,VC,Wr,Mc=u(()=>{"use strict";Vr();rt();(function(r){r.LOCALE="content-lang",r.QUERY="query",r.SCOPE="scope",r.FILTERS="filters",r.VIRTUAL_FIELD="virtual-field",r.PERIOD="period",r.VALUE_FILTERS="value-filters",r.DATE_FILTERS="date-filters",r.RANGE_FILTERS="range-filters",r.SORT="sort",r.PER_PAGE="per-page",r.KEYWORD_MATCH="keyword-match"})(oe||(oe={}));VC=new Set(Object.values(oe));Wr=class{constructor(e,t=20,o=!1,n="en-US"){this.baseUrl=e,this.defaultPerPage=t,this.allLanguagesAllowed=o,this.defaultContentLocale=n,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,t){return this.serializeToCurrentPageIfPossible(e,t??"/search")}serializeToCurrentPageIfPossible(e,t){let o=t==null||t.trim().length===0,n=new URL(o?window.location.href:`${this.baseUrl.replace(/\/+$/,"")}${t}`);return n.search=this.toURLSearchParams(e),n.toString()}toURLSearchParams(e,t=!1){var o,n,a,s,l,d,f,m,g,y,x;let v=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&v.append(oe.LOCALE,e.contentLocale):v.append(oe.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&v.append(oe.QUERY,e.query);let w=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(C=>C.valueFilter&&!C.valueFilter.negative))!==null&&a!==void 0?a:[];if(w.length>0){let C=w.map(L=>{var D,X;let _e=((X=(D=L.valueFilter)===null||D===void 0?void 0:D.values)!==null&&X!==void 0?X:[]).map(le=>this.escapeFilters(le)).map(le=>zC(Cg(le))).join("_");return`${L.key}~${_e}`}).join("*");v.append(oe.VALUE_FILTERS,C)}let _=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(C=>C.dateFilter))!==null&&l!==void 0?l:[];if(_.length>0){let C=_.map(L=>{var D;return`${L.key}~${(D=L.dateFilter)===null||D===void 0?void 0:D.type.toLowerCase()}`}).join("*");v.append(oe.DATE_FILTERS,C)}let P=(f=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(C=>C.rangeFilter))!==null&&f!==void 0?f:[];if(P.length>0){let C=P.map(L=>{var D,X;return`${L.key}~${(D=L.rangeFilter)===null||D===void 0?void 0:D.from}_${(X=L.rangeFilter)===null||X===void 0?void 0:X.to}`}).join("*");v.append(oe.RANGE_FILTERS,C)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&v.append(oe.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&v.append(oe.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&v.append(oe.SORT,e.sortId),!((m=e.paging)===null||m===void 0)&&m.perPage&&((y=(g=e.paging)===null||g===void 0?void 0:g.perPage)!==null&&y!==void 0?y:this.defaultPerPage)!=this.defaultPerPage&&v.append(oe.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&v.append(oe.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let $=(x=e.otherQueryParams)!==null&&x!==void 0?x:{};for(let C in $)v.append(C,$[C]);let E=new Array;return v.forEach((C,L)=>{E.push(this.encodeQueryString(L)+"="+this.encodeQueryString(C))}),encodeURI(E.join("&")).replace(/#/g,"%23")}encodeQueryString(e){return encodeURIComponent(e).replace(/%20/g,"+")}parse(e){var t;let o=e.split("?"),n=this.fromURLSearchParams(o.slice(1).join("?")),a=o[0].split("/search/")[1];return a==null?n:{...n,scope:(t=this.scopeMapping[a])!==null&&t!==void 0?t:n.scope}}fromURLSearchParams(e){var t,o,n,a,s,l;try{e=decodeURI(e).replace(/%23/g,"#")}catch(P){console.warn("Could not decode search request query params, fallback on raw value",P)}let d=new URLSearchParams(e),f=d.get(oe.LOCALE)==="all"?void 0:d.get(oe.LOCALE),m=((t=d.get(oe.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),g=(o=d.get(oe.SORT))===null||o===void 0?void 0:o.toLowerCase(),y=(n=d.get(oe.SCOPE))!==null&&n!==void 0?n:"default",x=+((a=d.get(oe.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),v=d.get(oe.KEYWORD_MATCH),w=v?v.toUpperCase()===Hr.MANDATORY?Hr.MANDATORY:Hr.OPTIONAL:void 0,_={};for(let P of d.keys())Og(P)||(_[P]=d.get(P));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(oe.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[y])!==null&&l!==void 0?l:"DEFAULT",virtualField:og(m)?m:"EVERYWHERE",sortId:g,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:gr(1,isNaN(x)?this.defaultPerPage:x,1e3)},keywordMatch:w,otherQueryParams:_}}parseCompatFilters(e){var t,o,n,a,s,l;let d=[];return e.has(oe.FILTERS)&&(d=this.parseValueFilters((t=e.get(oe.FILTERS))!==null&&t!==void 0?t:"")),(o=e.has(oe.PERIOD))!==null&&o!==void 0&&o&&(d=[...d,...this.parseLegacyPeriodFilter(((n=e.get(oe.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(oe.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(oe.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((l=e.get(oe.RANGE_FILTERS))!==null&&l!==void 0?l:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(t=>t.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],valueFilter:{values:t[1].split("_").map(Cg).map(o=>this.unescapeFilterValue(o)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:pi[t[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],rangeFilter:{from:t[1].split("_")[0],to:t[1].split("_")[1]}}))}escapeFilters(e){for(let[t,o,n]of this.filtersEscapeMapping)e=e.replaceAll(t,o);return e}superEscapeFilters(e){for(let[t,o,n]of this.filtersEscapeMapping)e=e.replaceAll(o,n);return e}unescapeFilterValue(e){for(let[t,o,n]of this.filtersEscapeMapping)e=e.replaceAll(n,t);return e}parseLegacyPeriodFilter(e){if(ig(e))return[{key:"ft:lastEdition",dateFilter:{type:pi[e]}}];if(e.startsWith("CUSTOM_")){let[t,o,n]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:o,to:n}}]}return[]}static clearSearchParamsInUrl(e){let t=new URL(e);return[oe.LOCALE,oe.FILTERS,oe.VALUE_FILTERS,oe.DATE_FILTERS,oe.RANGE_FILTERS].forEach(n=>{t.searchParams.delete(n)}),t.toString()}static updateLocaleParamInUrl(e,t){let o=new URL(e);return o.searchParams.delete(oe.LOCALE),t!==void 0&&o.searchParams.append(oe.LOCALE,t),o.toString()}}});var Uc={};q(Uc,{toFtFormComponent:()=>Bc});var Fc,Bc,zc=u(()=>{"use strict";rt();Fc=Symbol("elementInternals"),Bc=Ee(Symbol("toFtFormComponent"),function(r){class e extends r{static get formAssociated(){return!0}get form(){return this[Fc].form}constructor(...o){super(o),this[Fc]=this.attachInternals()}setFormValue(o){this[Fc].setFormValue(o)}}return e})});var Hc={};q(Hc,{DateFormatter:()=>wo});var wo,Aa=u(()=>{"use strict";wo=class{static format(e,t,o,n,a){return window.moment?window.moment(e).locale(t).format(this.getMomentDateFormat(o,n,!!a)):this.getIntlDateTime(e,t,o,n,!!a)}static getMomentDateFormat(e,t,o){return o?"LT":e?t?"lll":"ll":t?"L LT":"L"}static getIntlDateTime(e,t,o,n,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(t,{dateStyle:o?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(t,{timeStyle:"short"}).format(s);return a?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),t=new Date().getTimezoneOffset();return`${t<0?"+":"-"}${e(Math.abs(t)/60)}:${e(Math.abs(t)%60)}`}}});var Wc={};q(Wc,{ALL_KEYS_VALUE:()=>Vc,SameWindowStorageEvent:()=>hi});var Vc,hi,jc=u(()=>{"use strict";Vc="__all__",hi=class extends CustomEvent{constructor(e,t,o){super("same-window-storage",{detail:{key:e,oldValue:t,newValue:o}})}keyMatch(e){return this.detail.key.includes(e)||this.detail.key==Vc}};Storage.prototype.setItem=new Proxy(Storage.prototype.setItem,{apply(r,e,t){let o=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new hi(t[0],o,t[1]))}});Storage.prototype.removeItem=new Proxy(Storage.prototype.removeItem,{apply(r,e,t){let o=e.getItem(t[0]);Reflect.apply(r,e,t),window.dispatchEvent(new hi(t[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(r,e,t){Reflect.apply(r,e,t),window.dispatchEvent(new hi(Vc))}})});var Kc={};q(Kc,{FocusMainContentEvent:()=>Gc});var Gc,qc=u(()=>{"use strict";Gc=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}}});var Eg={};function WC(r){(r.key==="Enter"||r.key===" "||r.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=r.key}function jC(r){window.FluidTopicsA11yHints.isKeyboardNavigation=r.detail==0}var Zc=u(()=>{"use strict";window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};document.addEventListener("keydown",WC);document.addEventListener("click",jC)});var mi,Qc=u(()=>{"use strict";T();mi=R`
48
48
  .sr-only {
49
49
  position:absolute;
50
50
  left:-10000px;
@@ -81,7 +81,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
81
81
  <li>${this.helperText}</li>
82
82
  `)}
83
83
  </ul>
84
- `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Lo.error:this.warningMessages.length?Lo.warning:Lo.default}}return ze([h()],e.prototype,"warningRules",void 0),ze([h()],e.prototype,"errorRules",void 0),ze([h()],e.prototype,"validateOn",void 0),ze([h({type:Boolean})],e.prototype,"validateAtRender",void 0),ze([h()],e.prototype,"label",void 0),ze([h({type:Boolean})],e.prototype,"hideLabel",void 0),ze([h()],e.prototype,"name",void 0),ze([h({type:Boolean})],e.prototype,"disabled",void 0),ze([h()],e.prototype,"helperText",void 0),ze([h()],e.prototype,"forceStatus",void 0),ze([h({reflect:!0})],e.prototype,"value",void 0),ze([I()],e.prototype,"errorMessages",void 0),ze([I()],e.prototype,"warningMessages",void 0),ze([I()],e.prototype,"status",void 0),ze([I()],e.prototype,"focused",void 0),ze([I()],e.prototype,"additionalWarningRules",void 0),ze([I()],e.prototype,"additionalErrorRules",void 0),e})});var Lg=u(()=>{"use strict";Ag();rd()});function qC(r){this._$AN!==void 0?(ka(this),this._$AM=r,kg(this)):this._$AM=r}function ZC(r,e=!1,t=0){let o=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(o))for(let a=t;a<o.length;a++)yn(o[a],!1),ka(o[a]);else o!=null&&(yn(o,!1),ka(o));else yn(this,r)}var yn,ka,kg,QC,gi,Tg=u(()=>{Ws();ao();ao();yn=(r,e)=>{let t=r._$AN;if(t===void 0)return!1;for(let o of t)o._$AO?.(e,!1),yn(o,e);return!0},ka=r=>{let e,t;do{if((e=r._$AM)===void 0)break;t=e._$AN,t.delete(r),r=e}while(t?.size===0)},kg=r=>{for(let e;e=r._$AM;r=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(r))break;t.add(r),QC(e)}};QC=r=>{r.type==Xt.CHILD&&(r._$AP??=ZC,r._$AQ??=qC)},gi=class extends Tt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,o){super._$AT(e,t,o),kg(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(yn(this,e),ka(this))}setValue(e){if(Vp(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}});var id=u(()=>{Tg()});var _g=u(()=>{Vo();Lt();Ms()});var nd,m_,Ig=u(()=>{"use strict";T();id();_g();nd=class extends gi{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async t=>{if(!this.element||!t.relatedTarget)return;let o=t.relatedTarget;this.isInsideElement(o,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async t=>{if(!this.element||!t.relatedTarget)return;let o=t.relatedTarget;this.isInsideElement(o,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return De}update(e){return this.part=e,this.ensureFocusTrap(e.element),De}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var t,o;this.isElementTrappable(e)&&(((t=this.firstTrap)===null||t===void 0?void 0:t.parentElement)===e&&((o=this.lastTrap)===null||o===void 0?void 0:o.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,t,o,n;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(t=this.lastTrap)===null||t===void 0||t.removeEventListener("focus",this.onLastTrapFocus),(o=this.firstTrap)===null||o===void 0||o.remove(),(n=this.lastTrap)===null||n===void 0||n.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(e){return!!e&&e instanceof HTMLElement&&e.childElementCount>0}createFocusTrap(e){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),e.insertBefore(this.firstTrap,e.firstChild),e.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let e=document.createElement("div");return e.tabIndex=0,e}getChildren(e){return e instanceof HTMLSlotElement?e.assignedElements():e.shadowRoot?e.shadowRoot.children:e.children}async focusFirstDescendant(e){await this.updateCompleteIfNecessary(e);let t=this.getChildren(e);for(let o=0;o<t.length;o++){let n=t[o];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusFirstDescendant(n)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let t=this.getChildren(e);for(let o=t.length-1;o>=0;o--){let n=t[o];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusLastDescendant(n)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof At&&await e.updateComplete}isInsideElement(e,t){for(let o=e;o;o=o.parentNode){if(o===t)return!0;o instanceof ShadowRoot?o=o.host:o.assignedSlot&&(o=o.assignedSlot)}return!1}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},m_=mt(nd)});var Pg,YC,ad,v_,Ng=u(()=>{"use strict";id();T();(function(r){r.sm="sm",r.md="md",r.lg="lg",r.xl="xl"})(Pg||(Pg={}));YC={sm:640,md:768,lg:1024,xl:1280},ad=class extends gi{constructor(e){super(e),this.size=0,this.onResize=()=>{let t=window.innerWidth;this.size!==t&&(this.size=t,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[t,o,n]){return this.lastArgs=[t,o,n],this.render(t,o,n)}render(e,t,o){let n=this.resolveThreshold(e),a=o??(()=>k);return this.size>n?t():a()}resolveThreshold(e){return typeof e=="number"?e:YC[e]}},v_=mt(ad)});var $g=u(()=>{"use strict";Ig();Ng()});function Ta(r,e){class t extends r{constructor(){super(...arguments),this.configuredAnalyticsActions={}}emitAnalyticsAction(n,a){var s,l;let d=(l=(s=this.configuredAnalyticsActions)===null||s===void 0?void 0:s[n])===null||l===void 0?void 0:l.eventName;if(!d)return;let f=e[n];this.dispatchEvent(new sd({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||f?.defaultComponentId||this.tagName.toLowerCase(),data:a}))}}return t.analyticsActions=e,XC([de({})],t.prototype,"configuredAnalyticsActions",void 0),t}var XC,sd,Dg=u(()=>{"use strict";lo();XC=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},sd=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}}});var ld,cd,dd,ud,ko,bn,O=u(()=>{"use strict";yp();T();K();Ht();tt();Yp();qi();al();Xn();pl();oa();lo();bl();xl();Qo();pa();Fl();ia();jl();ln();Gl();rt();Ql();Jl();ec();rc();Ea();fa();Pc();ha();Mc();zc();Aa();Yo();jc();qc();Zc();Qc();ra();Xc();ed();qc();Zc();al();Xn();pl();Aa();oa();lo();bl();xl();Qo();pa();Pc();Fl();ia();jl();zc();ln();Xc();ed();Gl();rt();Ql();Jl();ec();rc();Ea();jc();fa();ha();Mc();Qc();Lg();$g();ra();Yo();Dg();ko=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((dd=(cd=(ld=window.safari)===null||ld===void 0?void 0:ld.pushNotification)===null||cd===void 0?void 0:cd.toString())!==null&&dd!==void 0?dd:"")==="[object SafariRemoteNotification]",bn="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ud=window.ftGlobals)!==null&&ud!==void 0?ud:{lit:Fs,litDecorators:Vs,litRepeat:js,litClassMap:Gs,litStyleMap:Ks,litUnsafeHTML:qs,wcUtils:{...nl,...Zs,...ul,...Hc,...fl,...Qs,...yl,...il,...Dl,...Kc,...Eg,...Ic,...Ml,...gl,...Wl,...Uc,...Hl,...Yc,...Jc,...zh,...tl,...Zl,...vl,...Xl,...mi,...Gh,...tc,...Lc,...Wc,...Bl,...zl,...Dc,...ll,isSafari:ko,isTouchScreen:bn,setVariable:A}}});var Mg,le,Fg,Bg,Ug,zg,Hg,Sr=u(()=>{"use strict";T();O();Mg=i.extend("--ft-ripple-color","",S.colorContent),le={color:Mg,backgroundColor:i.extend("--ft-ripple-background-color","",Mg),opacityContentOnSurfacePressed:i.external(S.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(S.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(S.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(S.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},Fg=i.extend("--ft-ripple-color","",S.colorPrimary),Bg={color:Fg,backgroundColor:i.extend("--ft-ripple-background-color","",Fg)},Ug=i.extend("--ft-ripple-color","",S.colorSecondary),zg={color:Ug,backgroundColor:i.extend("--ft-ripple-background-color","",Ug)},Hg=R`
84
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Lo.error:this.warningMessages.length?Lo.warning:Lo.default}}return ze([h()],e.prototype,"warningRules",void 0),ze([h()],e.prototype,"errorRules",void 0),ze([h()],e.prototype,"validateOn",void 0),ze([h({type:Boolean})],e.prototype,"validateAtRender",void 0),ze([h()],e.prototype,"label",void 0),ze([h({type:Boolean})],e.prototype,"hideLabel",void 0),ze([h()],e.prototype,"name",void 0),ze([h({type:Boolean})],e.prototype,"disabled",void 0),ze([h()],e.prototype,"helperText",void 0),ze([h()],e.prototype,"forceStatus",void 0),ze([h({reflect:!0})],e.prototype,"value",void 0),ze([I()],e.prototype,"errorMessages",void 0),ze([I()],e.prototype,"warningMessages",void 0),ze([I()],e.prototype,"status",void 0),ze([I()],e.prototype,"focused",void 0),ze([I()],e.prototype,"additionalWarningRules",void 0),ze([I()],e.prototype,"additionalErrorRules",void 0),e})});var Lg=u(()=>{"use strict";Ag();rd()});function qC(r){this._$AN!==void 0?(ka(this),this._$AM=r,kg(this)):this._$AM=r}function ZC(r,e=!1,t=0){let o=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(o))for(let a=t;a<o.length;a++)yn(o[a],!1),ka(o[a]);else o!=null&&(yn(o,!1),ka(o));else yn(this,r)}var yn,ka,kg,QC,gi,Tg=u(()=>{Ws();ao();ao();yn=(r,e)=>{let t=r._$AN;if(t===void 0)return!1;for(let o of t)o._$AO?.(e,!1),yn(o,e);return!0},ka=r=>{let e,t;do{if((e=r._$AM)===void 0)break;t=e._$AN,t.delete(r),r=e}while(t?.size===0)},kg=r=>{for(let e;e=r._$AM;r=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(r))break;t.add(r),QC(e)}};QC=r=>{r.type==Jt.CHILD&&(r._$AP??=ZC,r._$AQ??=qC)},gi=class extends Tt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,o){super._$AT(e,t,o),kg(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(yn(this,e),ka(this))}setValue(e){if(Vp(this._$Ct))this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}});var id=u(()=>{Tg()});var _g=u(()=>{Vo();Lt();Ms()});var nd,m_,Ig=u(()=>{"use strict";T();id();_g();nd=class extends gi{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async t=>{if(!this.element||!t.relatedTarget)return;let o=t.relatedTarget;this.isInsideElement(o,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async t=>{if(!this.element||!t.relatedTarget)return;let o=t.relatedTarget;this.isInsideElement(o,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return De}update(e){return this.part=e,this.ensureFocusTrap(e.element),De}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var t,o;this.isElementTrappable(e)&&(((t=this.firstTrap)===null||t===void 0?void 0:t.parentElement)===e&&((o=this.lastTrap)===null||o===void 0?void 0:o.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,t,o,n;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(t=this.lastTrap)===null||t===void 0||t.removeEventListener("focus",this.onLastTrapFocus),(o=this.firstTrap)===null||o===void 0||o.remove(),(n=this.lastTrap)===null||n===void 0||n.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(e){return!!e&&e instanceof HTMLElement&&e.childElementCount>0}createFocusTrap(e){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),e.insertBefore(this.firstTrap,e.firstChild),e.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let e=document.createElement("div");return e.tabIndex=0,e}getChildren(e){return e instanceof HTMLSlotElement?e.assignedElements():e.shadowRoot?e.shadowRoot.children:e.children}async focusFirstDescendant(e){await this.updateCompleteIfNecessary(e);let t=this.getChildren(e);for(let o=0;o<t.length;o++){let n=t[o];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusFirstDescendant(n)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let t=this.getChildren(e);for(let o=t.length-1;o>=0;o--){let n=t[o];if(n instanceof HTMLElement&&(this.attemptFocus(n)||await this.focusLastDescendant(n)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof At&&await e.updateComplete}isInsideElement(e,t){for(let o=e;o;o=o.parentNode){if(o===t)return!0;o instanceof ShadowRoot?o=o.host:o.assignedSlot&&(o=o.assignedSlot)}return!1}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},m_=mt(nd)});var Pg,YC,ad,v_,Ng=u(()=>{"use strict";id();T();(function(r){r.sm="sm",r.md="md",r.lg="lg",r.xl="xl"})(Pg||(Pg={}));YC={sm:640,md:768,lg:1024,xl:1280},ad=class extends gi{constructor(e){super(e),this.size=0,this.onResize=()=>{let t=window.innerWidth;this.size!==t&&(this.size=t,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[t,o,n]){return this.lastArgs=[t,o,n],this.render(t,o,n)}render(e,t,o){let n=this.resolveThreshold(e),a=o??(()=>k);return this.size>n?t():a()}resolveThreshold(e){return typeof e=="number"?e:YC[e]}},v_=mt(ad)});var $g=u(()=>{"use strict";Ig();Ng()});function Ta(r,e){class t extends r{constructor(){super(...arguments),this.configuredAnalyticsActions={}}emitAnalyticsAction(n,a){var s,l;let d=(l=(s=this.configuredAnalyticsActions)===null||s===void 0?void 0:s[n])===null||l===void 0?void 0:l.eventName;if(!d)return;let f=e[n];this.dispatchEvent(new sd({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||f?.defaultComponentId||this.tagName.toLowerCase(),data:a}))}}return t.analyticsActions=e,XC([de({})],t.prototype,"configuredAnalyticsActions",void 0),t}var XC,sd,Dg=u(()=>{"use strict";lo();XC=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},sd=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}}});var ld,cd,dd,ud,ko,bn,O=u(()=>{"use strict";yp();T();K();Ht();tt();Yp();qi();al();Xn();pl();oa();lo();bl();xl();Qo();pa();Fl();ia();jl();ln();Gl();rt();Ql();Jl();ec();rc();Ea();fa();Pc();ha();Mc();zc();Aa();Yo();jc();qc();Zc();Qc();ra();Xc();ed();qc();Zc();al();Xn();pl();Aa();oa();lo();bl();xl();Qo();pa();Pc();Fl();ia();jl();zc();ln();Xc();ed();Gl();rt();Ql();Jl();ec();rc();Ea();jc();fa();ha();Mc();Qc();Lg();$g();ra();Yo();Dg();ko=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((dd=(cd=(ld=window.safari)===null||ld===void 0?void 0:ld.pushNotification)===null||cd===void 0?void 0:cd.toString())!==null&&dd!==void 0?dd:"")==="[object SafariRemoteNotification]",bn="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ud=window.ftGlobals)!==null&&ud!==void 0?ud:{lit:Fs,litDecorators:Vs,litRepeat:js,litClassMap:Gs,litStyleMap:Ks,litUnsafeHTML:qs,wcUtils:{...nl,...Zs,...ul,...Hc,...fl,...Qs,...yl,...il,...Dl,...Kc,...Eg,...Ic,...Ml,...gl,...Wl,...Uc,...Hl,...Yc,...Jc,...zh,...tl,...Zl,...vl,...Xl,...mi,...Gh,...tc,...Lc,...Wc,...Bl,...zl,...Dc,...ll,isSafari:ko,isTouchScreen:bn,setVariable:A}}});var Mg,ae,Fg,Bg,Ug,zg,Hg,Sr=u(()=>{"use strict";T();O();Mg=i.extend("--ft-ripple-color","",S.colorContent),ae={color:Mg,backgroundColor:i.extend("--ft-ripple-background-color","",Mg),opacityContentOnSurfacePressed:i.external(S.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(S.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(S.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(S.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},Fg=i.extend("--ft-ripple-color","",S.colorPrimary),Bg={color:Fg,backgroundColor:i.extend("--ft-ripple-background-color","",Fg)},Ug=i.extend("--ft-ripple-color","",S.colorSecondary),zg={color:Ug,backgroundColor:i.extend("--ft-ripple-background-color","",Ug)},Hg=R`
85
85
  :host {
86
86
  display: contents;
87
87
  }
@@ -94,7 +94,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
94
94
 
95
95
  .ft-ripple:not(.ft-ripple--unbounded) {
96
96
  overflow: hidden;
97
- border-radius: ${le.borderRadius};
97
+ border-radius: ${ae.borderRadius};
98
98
  }
99
99
 
100
100
  .ft-ripple .ft-ripple--background,
@@ -128,11 +128,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
128
128
  }
129
129
 
130
130
  .ft-ripple .ft-ripple--background {
131
- background-color: ${le.backgroundColor};
131
+ background-color: ${ae.backgroundColor};
132
132
  }
133
133
 
134
134
  .ft-ripple .ft-ripple--effect {
135
- background-color: ${le.color};
135
+ background-color: ${ae.color};
136
136
  }
137
137
 
138
138
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
@@ -178,19 +178,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
178
178
  }
179
179
 
180
180
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
181
- opacity: ${le.opacityContentOnSurfaceHover};
181
+ opacity: ${ae.opacityContentOnSurfaceHover};
182
182
  }
183
183
 
184
184
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
185
- opacity: ${le.opacityContentOnSurfaceSelected};
185
+ opacity: ${ae.opacityContentOnSurfaceSelected};
186
186
  }
187
187
 
188
188
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
189
- opacity: ${le.opacityContentOnSurfaceFocused};
189
+ opacity: ${ae.opacityContentOnSurfaceFocused};
190
190
  }
191
191
 
192
192
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
193
- opacity: ${le.opacityContentOnSurfacePressed};
193
+ opacity: ${ae.opacityContentOnSurfacePressed};
194
194
  transform: translate(-50%, -50%) scale(1);
195
195
  }
196
196
  `});var ut,Z,pd=u(()=>{"use strict";T();K();tt();O();Sr();ut=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Z=class extends F{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new ne(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new ne(10),this.moveRipple=e=>{var t,o;let{x:n,y:a}=this.getCoordinates(e),s=(o=(t=this.ripple)===null||t===void 0?void 0:t.getBoundingClientRect())!==null&&o!==void 0?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return b`
@@ -204,7 +204,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
204
204
  <div class="ft-ripple--background"></div>
205
205
  <div class="ft-ripple--effect"></div>
206
206
  </div>
207
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var t,o;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(t=this.target)===null||t===void 0||t.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,t;let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;o&&this.setupFor((t=this.target)!==null&&t!==void 0?t:o)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let t=(...l)=>d=>{l.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(d)},o=t("mouseup","contextmenu"),n=t("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&t("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",o,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",o,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let t=e,o=e,n,a;return t.x!=null?{x:n,y:a}=t:o.touches!=null&&(n=o.touches[0].clientX,a=o.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let t of e.composedPath()){if(t===this.target)break;if("hasAttribute"in t&&t.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Z.elementDefinitions={};Z.styles=Hg;ut([h({type:Boolean})],Z.prototype,"primary",void 0);ut([h({type:Boolean})],Z.prototype,"secondary",void 0);ut([h({type:Boolean})],Z.prototype,"unbounded",void 0);ut([h({type:Boolean})],Z.prototype,"activated",void 0);ut([h({type:Boolean})],Z.prototype,"selected",void 0);ut([h({type:Boolean})],Z.prototype,"disabled",void 0);ut([I()],Z.prototype,"hovered",void 0);ut([I()],Z.prototype,"focused",void 0);ut([I()],Z.prototype,"pressed",void 0);ut([I()],Z.prototype,"rippling",void 0);ut([I()],Z.prototype,"originX",void 0);ut([I()],Z.prototype,"originY",void 0);ut([B(".ft-ripple")],Z.prototype,"ripple",void 0);ut([B(".ft-ripple--effect")],Z.prototype,"rippleEffect",void 0)});var Wg=u(()=>{"use strict"});var jg,Gg=u(()=>{"use strict";pd();jg={"ft-ripple":Z}});var Kg=u(()=>{"use strict";O();Gg();U(jg)});var ot=u(()=>{"use strict";pd();Sr();Wg();Kg()});var Zg,JC,fd,qg,hd,md,DI,MI,Qg=u(()=>{Lt();Zg=Symbol.for(""),JC=r=>{if(r?.r===Zg)return r?._$litStatic$},fd=r=>({_$litStatic$:r,r:Zg}),qg=new Map,hd=r=>(e,...t)=>{let o=t.length,n,a,s=[],l=[],d,f=0,m=!1;for(;f<o;){for(d=e[f];f<o&&(a=t[f],(n=JC(a))!==void 0);)d+=n+e[++f],m=!0;f!==o&&l.push(a),s.push(d),f++}if(f===o&&s.push(e[o]),m){let g=s.join("$$lit$$");(e=qg.get(g))===void 0&&(s.raw=s,qg.set(g,e=s)),t=l}return r(e,...t)},md=hd(b),DI=hd(Is),MI=hd(Ps)});var Yg=u(()=>{Qg()});var fe,_a=u(()=>{"use strict";(function(r){r.title="title",r.title_dense="title-dense",r.subtitle1="subtitle1",r.subtitle2="subtitle2",r.body1="body1",r.body2="body2",r.caption="caption",r.breadcrumb="breadcrumb",r.overline="overline",r.button="button"})(fe||(fe={}))});var Xg,Or,M,yi,bi,vi,xi,Cr,Fe,St,Si,Ci,ar,Jg,ey,ty,ry,oy,jr,Gr,iy,ny,ay,sy,jt=u(()=>{"use strict";T();O();Xg=i.extend("--ft-typography-font-family","",S.titleFont),Or=i.extend("--ft-typography-font-family","",S.contentFont),M={fontFamily:Or,fontSize:i.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:i.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:i.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:i.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:i.create("--ft-typography-text-transform","","UNKNOWN","inherit")},yi={fontFamily:i.extend("--ft-typography-title-font-family","",Xg),fontSize:i.extend("--ft-typography-title-font-size","",M.fontSize,"20px"),fontWeight:i.extend("--ft-typography-title-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-letter-spacing","",M.letterSpacing,"0.15px"),lineHeight:i.extend("--ft-typography-title-line-height","",M.lineHeight,"1.2"),textTransform:i.extend("--ft-typography-title-text-transform","",M.textTransform,"inherit")},bi={fontFamily:i.extend("--ft-typography-title-dense-font-family","",Xg),fontSize:i.extend("--ft-typography-title-dense-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-title-dense-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-dense-letter-spacing","",M.letterSpacing,"0.105px"),lineHeight:i.extend("--ft-typography-title-dense-line-height","",M.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-title-dense-text-transform","",M.textTransform,"inherit")},vi={fontFamily:i.extend("--ft-typography-subtitle1-font-family","",Or),fontSize:i.extend("--ft-typography-subtitle1-font-size","",M.fontSize,"16px"),fontWeight:i.extend("--ft-typography-subtitle1-font-weight","",M.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-subtitle1-letter-spacing","",M.letterSpacing,"0.144px"),lineHeight:i.extend("--ft-typography-subtitle1-line-height","",M.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-subtitle1-text-transform","",M.textTransform,"inherit")},xi={fontFamily:i.extend("--ft-typography-subtitle2-font-family","",Or),fontSize:i.extend("--ft-typography-subtitle2-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-subtitle2-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-subtitle2-letter-spacing","",M.letterSpacing,"0.098px"),lineHeight:i.extend("--ft-typography-subtitle2-line-height","",M.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-subtitle2-text-transform","",M.textTransform,"inherit")},Cr={fontFamily:i.extend("--ft-typography-body1-font-family","",Or),fontSize:i.extend("--ft-typography-body1-font-size","",M.fontSize,"16px"),fontWeight:i.extend("--ft-typography-body1-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body1-letter-spacing","",M.letterSpacing,"0.496px"),lineHeight:i.extend("--ft-typography-body1-line-height","",M.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-body1-text-transform","",M.textTransform,"inherit")},Fe={fontFamily:i.extend("--ft-typography-body2-font-family","",Or),fontSize:i.extend("--ft-typography-body2-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-body2-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body2-letter-spacing","",M.letterSpacing,"0.252px"),lineHeight:i.extend("--ft-typography-body2-line-height","",M.lineHeight,"1.4"),textTransform:i.extend("--ft-typography-body2-text-transform","",M.textTransform,"inherit")},St={fontFamily:i.extend("--ft-typography-caption-font-family","",Or),fontSize:i.extend("--ft-typography-caption-font-size","",M.fontSize,"12px"),fontWeight:i.extend("--ft-typography-caption-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-caption-letter-spacing","",M.letterSpacing,"0.396px"),lineHeight:i.extend("--ft-typography-caption-line-height","",M.lineHeight,"1.33"),textTransform:i.extend("--ft-typography-caption-text-transform","",M.textTransform,"inherit")},Si={fontFamily:i.extend("--ft-typography-breadcrumb-font-family","",Or),fontSize:i.extend("--ft-typography-breadcrumb-font-size","",M.fontSize,"10px"),fontWeight:i.extend("--ft-typography-breadcrumb-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-breadcrumb-letter-spacing","",M.letterSpacing,"0.33px"),lineHeight:i.extend("--ft-typography-breadcrumb-line-height","",M.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-breadcrumb-text-transform","",M.textTransform,"inherit")},Ci={fontFamily:i.extend("--ft-typography-overline-font-family","",Or),fontSize:i.extend("--ft-typography-overline-font-size","",M.fontSize,"10px"),fontWeight:i.extend("--ft-typography-overline-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-overline-letter-spacing","",M.letterSpacing,"1.5px"),lineHeight:i.extend("--ft-typography-overline-line-height","",M.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-overline-text-transform","",M.textTransform,"uppercase")},ar={fontFamily:i.extend("--ft-typography-button-font-family","",Or),fontSize:i.extend("--ft-typography-button-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-button-font-weight","",M.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-button-letter-spacing","",M.letterSpacing,"1.246px"),lineHeight:i.extend("--ft-typography-button-line-height","",M.lineHeight,"1.15"),textTransform:i.extend("--ft-typography-button-text-transform","",M.textTransform,"uppercase")},Jg=R`
207
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var t,o;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(t=this.target)===null||t===void 0||t.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,t;let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;o&&this.setupFor((t=this.target)!==null&&t!==void 0?t:o)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let t=(...l)=>d=>{l.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(d)},o=t("mouseup","contextmenu"),n=t("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&t("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",o,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",o,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let t=e,o=e,n,a;return t.x!=null?{x:n,y:a}=t:o.touches!=null&&(n=o.touches[0].clientX,a=o.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let t of e.composedPath()){if(t===this.target)break;if("hasAttribute"in t&&t.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Z.elementDefinitions={};Z.styles=Hg;ut([h({type:Boolean})],Z.prototype,"primary",void 0);ut([h({type:Boolean})],Z.prototype,"secondary",void 0);ut([h({type:Boolean})],Z.prototype,"unbounded",void 0);ut([h({type:Boolean})],Z.prototype,"activated",void 0);ut([h({type:Boolean})],Z.prototype,"selected",void 0);ut([h({type:Boolean})],Z.prototype,"disabled",void 0);ut([I()],Z.prototype,"hovered",void 0);ut([I()],Z.prototype,"focused",void 0);ut([I()],Z.prototype,"pressed",void 0);ut([I()],Z.prototype,"rippling",void 0);ut([I()],Z.prototype,"originX",void 0);ut([I()],Z.prototype,"originY",void 0);ut([B(".ft-ripple")],Z.prototype,"ripple",void 0);ut([B(".ft-ripple--effect")],Z.prototype,"rippleEffect",void 0)});var Wg=u(()=>{"use strict"});var jg,Gg=u(()=>{"use strict";pd();jg={"ft-ripple":Z}});var Kg=u(()=>{"use strict";O();Gg();U(jg)});var ot=u(()=>{"use strict";pd();Sr();Wg();Kg()});var Zg,JC,fd,qg,hd,md,DI,MI,Qg=u(()=>{Lt();Zg=Symbol.for(""),JC=r=>{if(r?.r===Zg)return r?._$litStatic$},fd=r=>({_$litStatic$:r,r:Zg}),qg=new Map,hd=r=>(e,...t)=>{let o=t.length,n,a,s=[],l=[],d,f=0,m=!1;for(;f<o;){for(d=e[f];f<o&&(a=t[f],(n=JC(a))!==void 0);)d+=n+e[++f],m=!0;f!==o&&l.push(a),s.push(d),f++}if(f===o&&s.push(e[o]),m){let g=s.join("$$lit$$");(e=qg.get(g))===void 0&&(s.raw=s,qg.set(g,e=s)),t=l}return r(e,...t)},md=hd(b),DI=hd(Is),MI=hd(Ps)});var Yg=u(()=>{Qg()});var fe,_a=u(()=>{"use strict";(function(r){r.title="title",r.title_dense="title-dense",r.subtitle1="subtitle1",r.subtitle2="subtitle2",r.body1="body1",r.body2="body2",r.caption="caption",r.breadcrumb="breadcrumb",r.overline="overline",r.button="button"})(fe||(fe={}))});var Xg,Or,M,yi,bi,vi,xi,Cr,Fe,St,Si,Ci,sr,Jg,ey,ty,ry,oy,jr,Gr,iy,ny,ay,sy,jt=u(()=>{"use strict";T();O();Xg=i.extend("--ft-typography-font-family","",S.titleFont),Or=i.extend("--ft-typography-font-family","",S.contentFont),M={fontFamily:Or,fontSize:i.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:i.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:i.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:i.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:i.create("--ft-typography-text-transform","","UNKNOWN","inherit")},yi={fontFamily:i.extend("--ft-typography-title-font-family","",Xg),fontSize:i.extend("--ft-typography-title-font-size","",M.fontSize,"20px"),fontWeight:i.extend("--ft-typography-title-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-letter-spacing","",M.letterSpacing,"0.15px"),lineHeight:i.extend("--ft-typography-title-line-height","",M.lineHeight,"1.2"),textTransform:i.extend("--ft-typography-title-text-transform","",M.textTransform,"inherit")},bi={fontFamily:i.extend("--ft-typography-title-dense-font-family","",Xg),fontSize:i.extend("--ft-typography-title-dense-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-title-dense-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-dense-letter-spacing","",M.letterSpacing,"0.105px"),lineHeight:i.extend("--ft-typography-title-dense-line-height","",M.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-title-dense-text-transform","",M.textTransform,"inherit")},vi={fontFamily:i.extend("--ft-typography-subtitle1-font-family","",Or),fontSize:i.extend("--ft-typography-subtitle1-font-size","",M.fontSize,"16px"),fontWeight:i.extend("--ft-typography-subtitle1-font-weight","",M.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-subtitle1-letter-spacing","",M.letterSpacing,"0.144px"),lineHeight:i.extend("--ft-typography-subtitle1-line-height","",M.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-subtitle1-text-transform","",M.textTransform,"inherit")},xi={fontFamily:i.extend("--ft-typography-subtitle2-font-family","",Or),fontSize:i.extend("--ft-typography-subtitle2-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-subtitle2-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-subtitle2-letter-spacing","",M.letterSpacing,"0.098px"),lineHeight:i.extend("--ft-typography-subtitle2-line-height","",M.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-subtitle2-text-transform","",M.textTransform,"inherit")},Cr={fontFamily:i.extend("--ft-typography-body1-font-family","",Or),fontSize:i.extend("--ft-typography-body1-font-size","",M.fontSize,"16px"),fontWeight:i.extend("--ft-typography-body1-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body1-letter-spacing","",M.letterSpacing,"0.496px"),lineHeight:i.extend("--ft-typography-body1-line-height","",M.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-body1-text-transform","",M.textTransform,"inherit")},Fe={fontFamily:i.extend("--ft-typography-body2-font-family","",Or),fontSize:i.extend("--ft-typography-body2-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-body2-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body2-letter-spacing","",M.letterSpacing,"0.252px"),lineHeight:i.extend("--ft-typography-body2-line-height","",M.lineHeight,"1.4"),textTransform:i.extend("--ft-typography-body2-text-transform","",M.textTransform,"inherit")},St={fontFamily:i.extend("--ft-typography-caption-font-family","",Or),fontSize:i.extend("--ft-typography-caption-font-size","",M.fontSize,"12px"),fontWeight:i.extend("--ft-typography-caption-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-caption-letter-spacing","",M.letterSpacing,"0.396px"),lineHeight:i.extend("--ft-typography-caption-line-height","",M.lineHeight,"1.33"),textTransform:i.extend("--ft-typography-caption-text-transform","",M.textTransform,"inherit")},Si={fontFamily:i.extend("--ft-typography-breadcrumb-font-family","",Or),fontSize:i.extend("--ft-typography-breadcrumb-font-size","",M.fontSize,"10px"),fontWeight:i.extend("--ft-typography-breadcrumb-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-breadcrumb-letter-spacing","",M.letterSpacing,"0.33px"),lineHeight:i.extend("--ft-typography-breadcrumb-line-height","",M.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-breadcrumb-text-transform","",M.textTransform,"inherit")},Ci={fontFamily:i.extend("--ft-typography-overline-font-family","",Or),fontSize:i.extend("--ft-typography-overline-font-size","",M.fontSize,"10px"),fontWeight:i.extend("--ft-typography-overline-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-overline-letter-spacing","",M.letterSpacing,"1.5px"),lineHeight:i.extend("--ft-typography-overline-line-height","",M.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-overline-text-transform","",M.textTransform,"uppercase")},sr={fontFamily:i.extend("--ft-typography-button-font-family","",Or),fontSize:i.extend("--ft-typography-button-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-button-font-weight","",M.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-button-letter-spacing","",M.letterSpacing,"1.246px"),lineHeight:i.extend("--ft-typography-button-line-height","",M.lineHeight,"1.15"),textTransform:i.extend("--ft-typography-button-text-transform","",M.textTransform,"uppercase")},Jg=R`
208
208
  .ft-typography--title {
209
209
  font-family: ${yi.fontFamily};
210
210
  font-size: ${yi.fontSize};
@@ -288,12 +288,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
288
288
  }
289
289
  `,ay=R`
290
290
  .ft-typography--button {
291
- font-family: ${ar.fontFamily};
292
- font-size: ${ar.fontSize};
293
- font-weight: ${ar.fontWeight};
294
- letter-spacing: ${ar.letterSpacing};
295
- line-height: ${ar.lineHeight};
296
- text-transform: ${ar.textTransform};
291
+ font-family: ${sr.fontFamily};
292
+ font-size: ${sr.fontSize};
293
+ font-weight: ${sr.fontWeight};
294
+ letter-spacing: ${sr.letterSpacing};
295
+ line-height: ${sr.lineHeight};
296
+ text-transform: ${sr.textTransform};
297
297
  }
298
298
  `,sy=R`
299
299
  .ft-typography {
@@ -338,10 +338,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
338
338
  position: relative;
339
339
  word-break: break-word;
340
340
  }
341
- `});var eO,Oi,xn,tO,H,Ze=u(()=>{"use strict";O();eO="ft-app-info",Oi=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};Oi.eventName="authentication-change";xn=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};xn.eventName="ui-locale-changed";tO={session:(r,e)=>{Me(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>H.dispatchEvent(new Oi(e.payload)),0))}},H=xr.get({name:eO,reducers:tO,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}})});var Ia,gP,fy=u(()=>{"use strict";K();Ea();Aa();Ze();O();Ia=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},gP=Ee(Symbol("withDateFormat"),function(r){class e extends r{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(H)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===o))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>wo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ia([h({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ia([h({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ia([pe({store:H.name,selector:t=>{var o,n;return(n=(o=t.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Ia([pe({store:H.name})],e.prototype,"uiLocale",void 0),e})});var To,bd=u(()=>{"use strict";Ze();To=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:o}=H.getState(),n=e??o;if(t&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,n,!0)}static await(e){return new Promise(t=>{let o=r.get(e);if(o)t(o);else{let n=H.subscribe(()=>{o=r.get(e),o&&(n(),t(o))})}})}}});var Ei,vd=u(()=>{"use strict";bd();Ei=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:To.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):To.await()}}});var Qe,Kr=u(()=>{"use strict";O();vd();Qe=class extends Ei{constructor(e=!0,t){var o;super(t),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new er,this.cache=e?n.commonCache:new er}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((t,o)=>0|31*t+o.charCodeAt(0),0))}}});var Pa,xd=u(()=>{"use strict";Ze();Vr();Kr();Pa=class extends Qe{async listMySearches(){let{session:e}=H.getState();return vg(e,Ie.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var Na,Sd=u(()=>{"use strict";Ze();Kr();Na=class extends Qe{async listMyBookmarks(){let e=H.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var $a,hy=u(()=>{"use strict";Ze();Kr();$a=class extends Qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=H.getState().session;return!!e?.sessionAuthenticated}}});var Da,my=u(()=>{"use strict";Kr();Ze();Da=class extends Qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=H.getState().session;return!!e?.sessionAuthenticated}}});var rO,oO,by,Cd,Od,gy,yy,it,Ed,wd,Ma=u(()=>{"use strict";Vr();O();xd();Sd();Ze();hy();my();rO="ft-user-assets",oO={setAssetCount:(r,e)=>{let{userAssetType:t,count:o}=e.payload.assetCount;r.assetCounts.allAsset[t]=o},clearAssetCount:r=>{Object.values(Dt).forEach(e=>{r.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(r,e)=>{let t=e.payload.mapId;r.assetCounts.bookmarkByMap[t]=e.payload.count},clearBookmarkCountByMap:r=>{r.assetCounts.bookmarkByMap={}},addAsset:(r,e)=>{let{assetType:t,mapId:o,asset:n}=e.payload;Od(r,t,[...Cd(r,t),n]),gy(r,t,1,o),yy(r,n)},editAsset:(r,e)=>{let{assetType:t,asset:o}=e.payload;Od(r,t,Cd(r,t).map(n=>n.id===o.id?o:n)),yy(r,o)},removeAsset:(r,e)=>{let{assetType:t,mapId:o,assetId:n}=e.payload;Od(r,t,Cd(r,t).filter(a=>a.id!==n)),gy(r,t,-1,o)}},by={[Dt.SEARCHES]:"savedSearches",[Dt.BOOKMARKS]:"bookmarks",[Dt.BOOKS]:void 0,[Dt.COLLECTIONS]:void 0},Cd=(r,e)=>{var t;let o=by[e];return o?(t=r[o])!==null&&t!==void 0?t:[]:[]},Od=(r,e,t)=>{let o=by[e];o&&(r[o]=t)},gy=(r,e,t,o)=>{let n=r.assetCounts.allAsset[e];if(n!==void 0&&(r.assetCounts.allAsset[e]=Math.max(0,n+t),e===Dt.BOOKMARKS&&o)){let a=r.assetCounts.bookmarkByMap[o];r.assetCounts.bookmarkByMap[o]=Math.max(0,a+t)}},yy=(r,e)=>{let t=r.assetLabels.map(n=>n.title),o=e.labels.filter(n=>!t.includes(n)).map(n=>({title:n}));r.assetLabels.push(...o)},it=xr.get({name:rO,reducers:oO,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Dt).map(r=>[r,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ed=class{constructor(e=new $a,t=new Da){this.assetCountsService=e,this.assetLabelsService=t,this.currentSession=H.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Na,this.savedSearchesService=new Pa,H.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=H.getState();Me((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),it.actions.clearAssetCount(),it.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),it.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),it.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();it.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();it.actions.assetLabels(e)}async loadAssetCount(e){let t=await this.assetCountsService.getUserAssetCount(e);t&&it.getState().assetCounts.allAsset[e]!==t.count&&it.actions.setAssetCount({assetCount:t})}async loadBookmarkByMapId(e){let t=await this.assetCountsService.getUserBookmarkCountByMap(e);t&&it.getState().assetCounts.bookmarkByMap[e]!==t.count&&it.actions.setBookmarkCountByMap({count:t.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let t=Object.keys(it.getState().assetCounts.bookmarkByMap).length!==0;e===Dt.BOOKMARKS&&t&&it.actions.clearBookmarkCountByMap(),it.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;it.actions.bookmarks(t)}}},wd=new Ed;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=wd)});var vy=u(()=>{"use strict";Vr();Ma()});var Rd,xy=u(()=>{"use strict";Ze();Rd=class{addCommand(e,t=!1){H.commands.add(e,t)}consumeCommand(e){return H.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Rd});var Sy,wi,iO,Fa,Ri,Ba,Cy=u(()=>{"use strict";Ze();O();Kr();wi=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},iO=Symbol("clearAfterUnitTest"),Fa=class extends ea(Qe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Sy]=()=>{this.defaultMessages={},this.cache=new er,this.listeners={}},this.currentUiLocale=H.getState().uiLocale,H.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=H.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var o;if(e=e.toLowerCase(),t&&Object.keys(t).length>0){let n={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...t};Me(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var t,o;return this.fetchContext(e),(o=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,t){let o=e.toLowerCase();return this.resolveContext(o)[t]}resolveMessage(e,t,...o){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new $r((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(t,...o)}async fetchContext(e){let t=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),t&&await this.notify(e)}catch(n){!(n instanceof Jt)&&t&&console.error(n)}return o}subscribe(e,t){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(t),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(t)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new wi({loadedContexts:e})),this.dispatchEvent(new wi({loadedContexts:e})),await Promise.all(e.map(t=>this.notify(t,!1)))}async notify(e,t=!0){t&&(document.body.dispatchEvent(new wi({loadedContexts:[e]})),this.dispatchEvent(new wi({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>Jn(0).then(()=>o()).catch(()=>null)))}};Sy=iO;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Fa{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Fa{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});Ri=window.FluidTopicsI18nService,Ba=window.FluidTopicsCustomI18nService});var Ad,Oy=u(()=>{"use strict";O();Ad=class{highlightHtml(e,t,o){ql(e,t,o)}};window.FluidTopicsHighlightHtmlService=new Ad});var Ld,Ey=u(()=>{"use strict";O();Ze();Ld=class{isDate(e){var t,o,n,a;return(a=(n=((o=(t=H.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,t){var o,n,a,s;if(e==null)return"";try{return wo.format(e,(o=t?.locale)!==null&&o!==void 0?o:H.getState().uiLocale,(n=t?.longFormat)!==null&&n!==void 0?n:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1,(s=t?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new Ld});var Er,kd=u(()=>{"use strict";O();Ze();Er=class{static get(e,t){var o,n;let a=H.getState(),{lang:s,region:l}=(n=(o=a.defaultLocales)===null||o===void 0?void 0:o.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Wr(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,t??`${s}-${l}`)}}});var Ua,wy=u(()=>{"use strict";Kr();Ua=class extends Qe{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let t;switch(e.editorialType){case"BOOK":t="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":t="SHARED_PERSONAL_BOOK";break;case"ARTICLE":t="RESOURCE";break;case"HTML_PACKAGE":t="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:t,metadata:e.metadata}}sortEventArrays(e){let t=Object.entries(e).map(([o,n])=>Array.isArray(n)?[o,n.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof n=="object"&&n!==null?[o,this.sortEventArrays(n)]:[o,n]);return Object.fromEntries(t)}sendEvents(e,t){let o="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>o).catch(n=>(console.info(t),console.debug(n),o)),1e3)}}});var Td,Ry=u(()=>{"use strict";kd();Td=class{urlToSearchRequest(e){return Er.get().parse(e)}searchRequestToUrl(e){return Er.get().serialize(e)}};window.FluidTopicsUrlService=new Td});var _o,Ay=u(()=>{"use strict";_o=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{currentItem:e}})}};_o.eventName="change"});var _d,Ly,ky=u(()=>{"use strict";_d=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let t=sessionStorage.getItem(this.itemName(e));return t?JSON.parse(t):void 0}set(e,t){sessionStorage.setItem(this.itemName(e),JSON.stringify(t))}},Ly=new _d});var za,Ty=u(()=>{"use strict";O();Ay();ky();za=class r extends yr{static build(){return new r(window.history,Ly,()=>window.location,!1)}constructor(e,t,o,n){var a,s;super(),this.history=e,this.historyStorage=t,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,t=!1){let o=t&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Me(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new _o(this.currentItem())),0)}installProxies(){let e=t=>(o,n,[a,s,l])=>{let d=t(),f={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};o.apply(n,[f,s,l]),this.setCurrentState(f,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let t=this.history.length-1;t>=0;t--)e?this.states[t]=this.historyStorage.get(t):setTimeout(()=>this.states[t]=this.historyStorage.get(t),this.history.length-t)}updateCurrentState(e){var t;let o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(t=e?.title)!==null&&t!==void 0?t:this.currentState.title};this.setCurrentState(o)}addHistoryChangeListener(e){this.addEventListener(_o.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(_o.eventName,e)}currentItem(){return gt(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return gt(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let t=this.states.filter(o=>!!o).filter(o=>o.index<this.currentIndex).reverse();return gt(t.find(o=>e(o)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return gt(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var t;let o=(t=this.states[e])===null||t===void 0?void 0:t.majorStateId;if(!o)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,o);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,t;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(t=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&t!==void 0?t:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,t){var o;if(!this.hasState(e))return!1;let n=t??this.currentState.majorStateId,a=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return a==null||a!=n}}});var _y=u(()=>{"use strict";Ty();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=za.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:r=>window.FluidTopicsInternalHistoryService.backwardItemMatching(r),addHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(r),removeHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(r)})});var Iy=u(()=>{"use strict";Ze()});var Ha=u(()=>{"use strict";Sd();bd();xy();Cy();Kr();Oy();xd();Ey();kd();wy();Ry();_y();Iy()});var Py,Id=u(()=>{"use strict";T();Py=R`
342
- `});var Ny=u(()=>{"use strict"});function $y(r,e){let{authenticationRequired:t,session:o}=H.getState();return t&&!o?.sessionAuthenticated?Promise.resolve(e):r()}var Dy=u(()=>{"use strict";Ze()});var Va,My=u(()=>{"use strict";vd();Va=class extends Ei{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}}});var Pd,Sn,Nd=u(()=>{"use strict";O();Ze();Dy();Ha();My();Pd=class r extends Co{static build(e){return new r(H,e)}constructor(e,t){super(),this.store=e,this.cache=new er,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new Va,this.cleanSessionDebouncer=new ne,this.reloadDebouncer=new ne(500),this.apiProvider=t??(()=>To.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Oi.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},t.idleTimeoutInMillis),t});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let t=await this.cache.get("availableContentLocales",()=>$y(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=t.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){var t,o,n,a,s;this.localesConfiguration=e,this.store.actions.defaultLocales(this.localesConfiguration.defaultLocales),this.store.actions.availableUiLocales((t=this.localesConfiguration.availableUiLocales)!==null&&t!==void 0?t:[]),this.store.actions.searchInAllLanguagesAllowed((o=this.localesConfiguration.allLanguagesAllowed)!==null&&o!==void 0?o:!1),this.store.actions.searchLanguageSetsUiLanguage((n=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&n!==void 0?n:!1),this.store.actions.uiLanguageSetsSearchLanguage((a=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&a!==void 0?a:!1),this.store.actions.uiLanguageSetsReaderLanguage((s=this.localesConfiguration.uiLanguageSetsReaderLanguage)!==null&&s!==void 0?s:!1),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e){this.userLocaleService.updateUiLocale({uiLocale:e}).then(t=>{t.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new xn(t)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},Sn=Pd.build()});var Io,Cn=u(()=>{Io=class extends Event{constructor(e,t,o,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t,this.callback=o,this.subscribe=n??!1}}});var Fy=u(()=>{});var $d=u(()=>{Cn();});var By=u(()=>{});var Dd=u(()=>{Cn();By();});var On,Uy=u(()=>{Cn();On=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let t=this.pendingContextRequests.get(e.context);if(t===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:o}=t;for(let{elementRef:n,callbackRef:a}of o){let s=n.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Io(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let t=e.contextTarget??e.composedPath()[0],o=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let a=n.callbacks.get(t);a===void 0&&n.callbacks.set(t,a=new WeakSet),a.has(o)||(a.add(o),n.requests.push({elementRef:new WeakRef(t),callbackRef:new WeakRef(o)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}}});var zy=u(()=>{Dd();});var Hy=u(()=>{$d();});var Vy=u(()=>{Cn();Fy();$d();Dd();Uy();zy();Hy()});var Ye,Le,Md=u(()=>{"use strict";T();K();O();Id();Ha();Nd();Vy();Ye=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Le=class extends vt{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Sn,this.contextRoot=new On}render(){return b`
341
+ `});var eO,Oi,xn,tO,H,Ze=u(()=>{"use strict";O();eO="ft-app-info",Oi=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};Oi.eventName="authentication-change";xn=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};xn.eventName="ui-locale-changed";tO={session:(r,e)=>{Me(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>H.dispatchEvent(new Oi(e.payload)),0))}},H=xr.get({name:eO,reducers:tO,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}})});var Ia,gP,fy=u(()=>{"use strict";K();Ea();Aa();Ze();O();Ia=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},gP=Ee(Symbol("withDateFormat"),function(r){class e extends r{constructor(...o){super(o),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(H)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===o))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>wo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ia([h({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ia([h({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ia([pe({store:H.name,selector:t=>{var o,n;return(n=(o=t.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Ia([pe({store:H.name})],e.prototype,"uiLocale",void 0),e})});var To,bd=u(()=>{"use strict";Ze();To=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:o}=H.getState(),n=e??o;if(t&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,n,!0)}static await(e){return new Promise(t=>{let o=r.get(e);if(o)t(o);else{let n=H.subscribe(()=>{o=r.get(e),o&&(n(),t(o))})}})}}});var Ei,vd=u(()=>{"use strict";bd();Ei=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:To.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):To.await()}}});var Qe,Kr=u(()=>{"use strict";O();vd();Qe=class extends Ei{constructor(e=!0,t){var o;super(t),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new tr,this.cache=e?n.commonCache:new tr}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((t,o)=>0|31*t+o.charCodeAt(0),0))}}});var Pa,xd=u(()=>{"use strict";Ze();Vr();Kr();Pa=class extends Qe{async listMySearches(){let{session:e}=H.getState();return vg(e,Ie.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var Na,Sd=u(()=>{"use strict";Ze();Kr();Na=class extends Qe{async listMyBookmarks(){let e=H.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var $a,hy=u(()=>{"use strict";Ze();Kr();$a=class extends Qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=H.getState().session;return!!e?.sessionAuthenticated}}});var Da,my=u(()=>{"use strict";Kr();Ze();Da=class extends Qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=H.getState().session;return!!e?.sessionAuthenticated}}});var rO,oO,by,Cd,Od,gy,yy,it,Ed,wd,Ma=u(()=>{"use strict";Vr();O();xd();Sd();Ze();hy();my();rO="ft-user-assets",oO={setAssetCount:(r,e)=>{let{userAssetType:t,count:o}=e.payload.assetCount;r.assetCounts.allAsset[t]=o},clearAssetCount:r=>{Object.values(Dt).forEach(e=>{r.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(r,e)=>{let t=e.payload.mapId;r.assetCounts.bookmarkByMap[t]=e.payload.count},clearBookmarkCountByMap:r=>{r.assetCounts.bookmarkByMap={}},addAsset:(r,e)=>{let{assetType:t,mapId:o,asset:n}=e.payload;Od(r,t,[...Cd(r,t),n]),gy(r,t,1,o),yy(r,n)},editAsset:(r,e)=>{let{assetType:t,asset:o}=e.payload;Od(r,t,Cd(r,t).map(n=>n.id===o.id?o:n)),yy(r,o)},removeAsset:(r,e)=>{let{assetType:t,mapId:o,assetId:n}=e.payload;Od(r,t,Cd(r,t).filter(a=>a.id!==n)),gy(r,t,-1,o)}},by={[Dt.SEARCHES]:"savedSearches",[Dt.BOOKMARKS]:"bookmarks",[Dt.BOOKS]:void 0,[Dt.COLLECTIONS]:void 0},Cd=(r,e)=>{var t;let o=by[e];return o?(t=r[o])!==null&&t!==void 0?t:[]:[]},Od=(r,e,t)=>{let o=by[e];o&&(r[o]=t)},gy=(r,e,t,o)=>{let n=r.assetCounts.allAsset[e];if(n!==void 0&&(r.assetCounts.allAsset[e]=Math.max(0,n+t),e===Dt.BOOKMARKS&&o)){let a=r.assetCounts.bookmarkByMap[o];r.assetCounts.bookmarkByMap[o]=Math.max(0,a+t)}},yy=(r,e)=>{let t=r.assetLabels.map(n=>n.title),o=e.labels.filter(n=>!t.includes(n)).map(n=>({title:n}));r.assetLabels.push(...o)},it=xr.get({name:rO,reducers:oO,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Dt).map(r=>[r,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Ed=class{constructor(e=new $a,t=new Da){this.assetCountsService=e,this.assetLabelsService=t,this.currentSession=H.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Na,this.savedSearchesService=new Pa,H.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=H.getState();Me((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),it.actions.clearAssetCount(),it.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),it.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),it.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();it.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();it.actions.assetLabels(e)}async loadAssetCount(e){let t=await this.assetCountsService.getUserAssetCount(e);t&&it.getState().assetCounts.allAsset[e]!==t.count&&it.actions.setAssetCount({assetCount:t})}async loadBookmarkByMapId(e){let t=await this.assetCountsService.getUserBookmarkCountByMap(e);t&&it.getState().assetCounts.bookmarkByMap[e]!==t.count&&it.actions.setBookmarkCountByMap({count:t.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let t=Object.keys(it.getState().assetCounts.bookmarkByMap).length!==0;e===Dt.BOOKMARKS&&t&&it.actions.clearBookmarkCountByMap(),it.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;it.actions.bookmarks(t)}}},wd=new Ed;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=wd)});var vy=u(()=>{"use strict";Vr();Ma()});var Rd,xy=u(()=>{"use strict";Ze();Rd=class{addCommand(e,t=!1){H.commands.add(e,t)}consumeCommand(e){return H.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Rd});var Sy,wi,iO,Fa,Ri,Ba,Cy=u(()=>{"use strict";Ze();O();Kr();wi=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},iO=Symbol("clearAfterUnitTest"),Fa=class extends ea(Qe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Sy]=()=>{this.defaultMessages={},this.cache=new tr,this.listeners={}},this.currentUiLocale=H.getState().uiLocale,H.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=H.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var o;if(e=e.toLowerCase(),t&&Object.keys(t).length>0){let n={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...t};Me(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var t,o;return this.fetchContext(e),(o=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,t){let o=e.toLowerCase();return this.resolveContext(o)[t]}resolveMessage(e,t,...o){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new $r((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(t,...o)}async fetchContext(e){let t=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),t&&await this.notify(e)}catch(n){!(n instanceof er)&&t&&console.error(n)}return o}subscribe(e,t){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(t),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(t)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new wi({loadedContexts:e})),this.dispatchEvent(new wi({loadedContexts:e})),await Promise.all(e.map(t=>this.notify(t,!1)))}async notify(e,t=!0){t&&(document.body.dispatchEvent(new wi({loadedContexts:[e]})),this.dispatchEvent(new wi({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>Jn(0).then(()=>o()).catch(()=>null)))}};Sy=iO;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Fa{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Fa{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});Ri=window.FluidTopicsI18nService,Ba=window.FluidTopicsCustomI18nService});var Ad,Oy=u(()=>{"use strict";O();Ad=class{highlightHtml(e,t,o){ql(e,t,o)}};window.FluidTopicsHighlightHtmlService=new Ad});var Ld,Ey=u(()=>{"use strict";O();Ze();Ld=class{isDate(e){var t,o,n,a;return(a=(n=((o=(t=H.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,t){var o,n,a,s;if(e==null)return"";try{return wo.format(e,(o=t?.locale)!==null&&o!==void 0?o:H.getState().uiLocale,(n=t?.longFormat)!==null&&n!==void 0?n:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1,(s=t?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new Ld});var Er,kd=u(()=>{"use strict";O();Ze();Er=class{static get(e,t){var o,n;let a=H.getState(),{lang:s,region:l}=(n=(o=a.defaultLocales)===null||o===void 0?void 0:o.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Wr(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,t??`${s}-${l}`)}}});var Ua,wy=u(()=>{"use strict";Kr();Ua=class extends Qe{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let t;switch(e.editorialType){case"BOOK":t="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":t="SHARED_PERSONAL_BOOK";break;case"ARTICLE":t="RESOURCE";break;case"HTML_PACKAGE":t="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:t,metadata:e.metadata}}sortEventArrays(e){let t=Object.entries(e).map(([o,n])=>Array.isArray(n)?[o,n.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof n=="object"&&n!==null?[o,this.sortEventArrays(n)]:[o,n]);return Object.fromEntries(t)}sendEvents(e,t){let o="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>o).catch(n=>(console.info(t),console.debug(n),o)),1e3)}}});var Td,Ry=u(()=>{"use strict";kd();Td=class{urlToSearchRequest(e){return Er.get().parse(e)}searchRequestToUrl(e){return Er.get().serialize(e)}};window.FluidTopicsUrlService=new Td});var _o,Ay=u(()=>{"use strict";_o=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{currentItem:e}})}};_o.eventName="change"});var _d,Ly,ky=u(()=>{"use strict";_d=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let t=sessionStorage.getItem(this.itemName(e));return t?JSON.parse(t):void 0}set(e,t){sessionStorage.setItem(this.itemName(e),JSON.stringify(t))}},Ly=new _d});var za,Ty=u(()=>{"use strict";O();Ay();ky();za=class r extends yr{static build(){return new r(window.history,Ly,()=>window.location,!1)}constructor(e,t,o,n){var a,s;super(),this.history=e,this.historyStorage=t,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,t=!1){let o=t&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),Me(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new _o(this.currentItem())),0)}installProxies(){let e=t=>(o,n,[a,s,l])=>{let d=t(),f={...d===this.currentIndex?this.currentState:void 0,...a,index:d,href:typeof l=="string"?l:(l??this.windowLocation()).href};o.apply(n,[f,s,l]),this.setCurrentState(f,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let t=this.history.length-1;t>=0;t--)e?this.states[t]=this.historyStorage.get(t):setTimeout(()=>this.states[t]=this.historyStorage.get(t),this.history.length-t)}updateCurrentState(e){var t;let o={...this.buildCurrentState(),...e,index:this.currentIndex,title:(t=e?.title)!==null&&t!==void 0?t:this.currentState.title};this.setCurrentState(o)}addHistoryChangeListener(e){this.addEventListener(_o.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(_o.eventName,e)}currentItem(){return gt(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return gt(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let t=this.states.filter(o=>!!o).filter(o=>o.index<this.currentIndex).reverse();return gt(t.find(o=>e(o)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return gt(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var t;let o=(t=this.states[e])===null||t===void 0?void 0:t.majorStateId;if(!o)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,o);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,t;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(t=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&t!==void 0?t:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,t){var o;if(!this.hasState(e))return!1;let n=t??this.currentState.majorStateId,a=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;return a==null||a!=n}}});var _y=u(()=>{"use strict";Ty();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=za.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:r=>window.FluidTopicsInternalHistoryService.backwardItemMatching(r),addHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(r),removeHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(r)})});var Iy=u(()=>{"use strict";Ze()});var Ha=u(()=>{"use strict";Sd();bd();xy();Cy();Kr();Oy();xd();Ey();kd();wy();Ry();_y();Iy()});var Py,Id=u(()=>{"use strict";T();Py=R`
342
+ `});var Ny=u(()=>{"use strict"});function $y(r,e){let{authenticationRequired:t,session:o}=H.getState();return t&&!o?.sessionAuthenticated?Promise.resolve(e):r()}var Dy=u(()=>{"use strict";Ze()});var Va,My=u(()=>{"use strict";vd();Va=class extends Ei{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}}});var Pd,Sn,Nd=u(()=>{"use strict";O();Ze();Dy();Ha();My();Pd=class r extends Co{static build(e){return new r(H,e)}constructor(e,t){super(),this.store=e,this.cache=new tr,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new Va,this.cleanSessionDebouncer=new ne,this.reloadDebouncer=new ne(500),this.apiProvider=t??(()=>To.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Oi.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},t.idleTimeoutInMillis),t});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let t=await this.cache.get("availableContentLocales",()=>$y(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=t.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){var t,o,n,a,s;this.localesConfiguration=e,this.store.actions.defaultLocales(this.localesConfiguration.defaultLocales),this.store.actions.availableUiLocales((t=this.localesConfiguration.availableUiLocales)!==null&&t!==void 0?t:[]),this.store.actions.searchInAllLanguagesAllowed((o=this.localesConfiguration.allLanguagesAllowed)!==null&&o!==void 0?o:!1),this.store.actions.searchLanguageSetsUiLanguage((n=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&n!==void 0?n:!1),this.store.actions.uiLanguageSetsSearchLanguage((a=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&a!==void 0?a:!1),this.store.actions.uiLanguageSetsReaderLanguage((s=this.localesConfiguration.uiLanguageSetsReaderLanguage)!==null&&s!==void 0?s:!1),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e){this.userLocaleService.updateUiLocale({uiLocale:e}).then(t=>{t.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new xn(t)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},Sn=Pd.build()});var Io,Cn=u(()=>{Io=class extends Event{constructor(e,t,o,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t,this.callback=o,this.subscribe=n??!1}}});var Fy=u(()=>{});var $d=u(()=>{Cn();});var By=u(()=>{});var Dd=u(()=>{Cn();By();});var On,Uy=u(()=>{Cn();On=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let t=this.pendingContextRequests.get(e.context);if(t===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:o}=t;for(let{elementRef:n,callbackRef:a}of o){let s=n.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new Io(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let t=e.contextTarget??e.composedPath()[0],o=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let a=n.callbacks.get(t);a===void 0&&n.callbacks.set(t,a=new WeakSet),a.has(o)||(a.add(o),n.requests.push({elementRef:new WeakRef(t),callbackRef:new WeakRef(o)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}}});var zy=u(()=>{Dd();});var Hy=u(()=>{$d();});var Vy=u(()=>{Cn();Fy();$d();Dd();Uy();zy();Hy()});var Ye,Le,Md=u(()=>{"use strict";T();K();O();Id();Ha();Nd();Vy();Ye=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Le=class extends vt{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Sn,this.contextRoot=new On}render(){return b`
343
343
  <slot></slot>
344
- `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var t;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>Ri.addContext(o)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((t=this.stateManager)===null||t===void 0||t.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};Le.elementDefinitions={};Le.styles=Py;Ye([h()],Le.prototype,"baseUrl",void 0);Ye([h()],Le.prototype,"apiIntegrationIdentifier",void 0);Ye([h()],Le.prototype,"apiIntegrationAppVersion",void 0);Ye([h()],Le.prototype,"uiLocale",void 0);Ye([de(null)],Le.prototype,"availableUiLocales",void 0);Ye([de(null)],Le.prototype,"metadataConfiguration",void 0);Ye([h({type:Boolean})],Le.prototype,"editorMode",void 0);Ye([h({type:Boolean})],Le.prototype,"noCustom",void 0);Ye([h({type:Boolean})],Le.prototype,"openExternalDocumentInNewTab",void 0);Ye([h({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],Le.prototype,"noCustomComponent",void 0);Ye([h({type:Boolean})],Le.prototype,"withManualResources",void 0);Ye([h({type:Boolean})],Le.prototype,"navigatorOnline",void 0);Ye([h({type:Boolean})],Le.prototype,"forcedOffline",void 0);Ye([h({type:Boolean})],Le.prototype,"authenticationRequired",void 0);Ye([de([])],Le.prototype,"messageContexts",void 0);Ye([de(void 0)],Le.prototype,"session",void 0)});var Wy,jy=u(()=>{"use strict";Md();Wy={"ft-app-context":Le}});var Gy=u(()=>{"use strict";O();jy();U(Wy)});var Gt=u(()=>{"use strict";fy();Ze();Ma();vy();Ha();Id();Ny();Md();Nd();Gy()});var Fd,Ai,Wa=u(()=>{"use strict";Fd=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[t,o]=e.split(".");return{context:t,key:o,custom:t!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Ai=new Fd});var sO,wn,Ky,qy,ja,En,pt,Ga,Ka,Rn=u(()=>{"use strict";O();Gt();K();Wa();sO=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},wn=Symbol("i18nAttributes"),Ky=Symbol("i18nListAttributes"),qy=Symbol("i18nProperties"),ja=Symbol("i18nContexts"),En=Symbol("i18nUnsubs"),pt=Ee(Symbol("withI18n"),function(r){var e,t;class o extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[t]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Ba:Ri}i18n(a){let{context:s,key:l,message:d}=a,{custom:f,args:m,argsProvider:g}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,f);let y=m??(g?g(this):[]);return this.getI18nService(f).resolveMessage(s,l,...y)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Ai.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var f;return((f=d?.context)===null||f===void 0?void 0:f.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,f=(m,g,y)=>y?.context&&y.key&&a(m,g,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...m})}:y;(s=this[wn])===null||s===void 0||s.forEach((m,g)=>d[g]=f(m,g,d[g])),(l=this[Ky])===null||l===void 0||l.forEach((m,g)=>{var y;return d[g]=(y=d[g])===null||y===void 0?void 0:y.map(x=>f(m,g,x))})}updateI18nProperties(a){var s;(s=this[qy])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[ja].set(d,{isCustomContext:l}),this[En].has(d)||this[En].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[ja].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ja].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[En].forEach(a=>a()),this[En].clear()}}return e=ja,t=En,sO([h({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}),Ga=class extends pt(F){},Ka=class extends pt(vt){}});var Bd,lO,Zy=u(()=>{"use strict";Wa();Bd=class{fromAttribute(e){if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t.map(o=>typeof o=="string"?Ai.fromAttribute(o):o):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},lO=new Bd});var Li,qa=u(()=>{"use strict";Rn();O();Wa();Zy();Li=(r,e)=>(t,o)=>{var n;t.constructor.createProperty(o,{type:Object,hasChanged:yt,converter:Ai,...e}),t[wn]=(n=t[wn])!==null&&n!==void 0?n:new Map,t[wn].set(o,r??{})}});var sr,Qy=u(()=>{"use strict";Gt();sr=class r{static build(e){return new r(e)}static buildCustom(e){return new r(e,!0)}static fromGwt(e){return new r(e)}get service(){return this.custom?Ba:Ri}constructor(e,t=!1){this.name=e,this.custom=t,this.properties=new Proxy({},{get:(o,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(o,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(o,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(o,n)=>()=>n}),this.attributes=new Proxy({},{get:(o,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}}});var Yy=u(()=>{"use strict";Rn()});var Xy,Ud=u(()=>{"use strict";T();Xy=R`
344
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var t;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>Ri.addContext(o)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((t=this.stateManager)===null||t===void 0||t.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};Le.elementDefinitions={};Le.styles=Py;Ye([h()],Le.prototype,"baseUrl",void 0);Ye([h()],Le.prototype,"apiIntegrationIdentifier",void 0);Ye([h()],Le.prototype,"apiIntegrationAppVersion",void 0);Ye([h()],Le.prototype,"uiLocale",void 0);Ye([de(null)],Le.prototype,"availableUiLocales",void 0);Ye([de(null)],Le.prototype,"metadataConfiguration",void 0);Ye([h({type:Boolean})],Le.prototype,"editorMode",void 0);Ye([h({type:Boolean})],Le.prototype,"noCustom",void 0);Ye([h({type:Boolean})],Le.prototype,"openExternalDocumentInNewTab",void 0);Ye([h({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],Le.prototype,"noCustomComponent",void 0);Ye([h({type:Boolean})],Le.prototype,"withManualResources",void 0);Ye([h({type:Boolean})],Le.prototype,"navigatorOnline",void 0);Ye([h({type:Boolean})],Le.prototype,"forcedOffline",void 0);Ye([h({type:Boolean})],Le.prototype,"authenticationRequired",void 0);Ye([de([])],Le.prototype,"messageContexts",void 0);Ye([de(void 0)],Le.prototype,"session",void 0)});var Wy,jy=u(()=>{"use strict";Md();Wy={"ft-app-context":Le}});var Gy=u(()=>{"use strict";O();jy();U(Wy)});var Gt=u(()=>{"use strict";fy();Ze();Ma();vy();Ha();Id();Ny();Md();Nd();Gy()});var Fd,Ai,Wa=u(()=>{"use strict";Fd=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[t,o]=e.split(".");return{context:t,key:o,custom:t!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Ai=new Fd});var sO,wn,Ky,qy,ja,En,pt,Ga,Ka,Rn=u(()=>{"use strict";O();Gt();K();Wa();sO=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},wn=Symbol("i18nAttributes"),Ky=Symbol("i18nListAttributes"),qy=Symbol("i18nProperties"),ja=Symbol("i18nContexts"),En=Symbol("i18nUnsubs"),pt=Ee(Symbol("withI18n"),function(r){var e,t;class o extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[t]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Ba:Ri}i18n(a){let{context:s,key:l,message:d}=a,{custom:f,args:m,argsProvider:g}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,f);let y=m??(g?g(this):[]);return this.getI18nService(f).resolveMessage(s,l,...y)}return d}async awaitI18n(a){let{context:s,custom:l}=a;return s&&await this.getI18nService(l).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Ai.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var f;return((f=d?.context)===null||f===void 0?void 0:f.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,f=(m,g,y)=>y?.context&&y.key&&a(m,g,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...m})}:y;(s=this[wn])===null||s===void 0||s.forEach((m,g)=>d[g]=f(m,g,d[g])),(l=this[Ky])===null||l===void 0||l.forEach((m,g)=>{var y;return d[g]=(y=d[g])===null||y===void 0?void 0:y.map(x=>f(m,g,x))})}updateI18nProperties(a){var s;(s=this[qy])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[ja].set(d,{isCustomContext:l}),this[En].has(d)||this[En].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[ja].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ja].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[En].forEach(a=>a()),this[En].clear()}}return e=ja,t=En,sO([h({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}),Ga=class extends pt(F){},Ka=class extends pt(vt){}});var Bd,lO,Zy=u(()=>{"use strict";Wa();Bd=class{fromAttribute(e){if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t.map(o=>typeof o=="string"?Ai.fromAttribute(o):o):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},lO=new Bd});var Li,qa=u(()=>{"use strict";Rn();O();Wa();Zy();Li=(r,e)=>(t,o)=>{var n;t.constructor.createProperty(o,{type:Object,hasChanged:yt,converter:Ai,...e}),t[wn]=(n=t[wn])!==null&&n!==void 0?n:new Map,t[wn].set(o,r??{})}});var lr,Qy=u(()=>{"use strict";Gt();lr=class r{static build(e){return new r(e)}static buildCustom(e){return new r(e,!0)}static fromGwt(e){return new r(e)}get service(){return this.custom?Ba:Ri}constructor(e,t=!1){this.name=e,this.custom=t,this.properties=new Proxy({},{get:(o,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(o,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(o,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(o,n)=>()=>n}),this.attributes=new Proxy({},{get:(o,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}}});var Yy=u(()=>{"use strict";Rn()});var Xy,Ud=u(()=>{"use strict";T();Xy=R`
345
345
  `});var Jy=u(()=>{"use strict"});var An,Kt,zd=u(()=>{"use strict";T();K();O();Ud();Rn();Gt();An=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Kt=class extends Ka{constructor(){super(),this.editorMode=!1,this.addStore(H)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":k:b`
346
346
  <span class="ft-i18n">
347
347
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
@@ -490,7 +490,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
490
490
  <div></div>
491
491
  <div></div>
492
492
  </div>
493
- `}};No.styles=ub});var fb,hb=u(()=>{"use strict";qd();fb={"ft-loader":No}});var mb=u(()=>{"use strict";O();hb();U(fb)});var gb=u(()=>{"use strict";Qa();pb();qd();mb()});var qr,yb=u(()=>{Lt();qr=r=>r??k});var Ya=u(()=>{yb()});var bb,Q,vb,Zd,lr,xb,$o=u(()=>{"use strict";T();O();Sr();jt();Qa();ki();bb=i.extend("--ft-button-color","",S.colorPrimary),Q={backgroundColor:i.extend("--ft-button-background-color","",S.colorSurface),borderRadius:i.extend("--ft-button-border-radius","",S.borderRadiusL),color:bb,fontSize:i.extend("--ft-button-font-size","",ar.fontSize),iconSize:i.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:i.extend("--ft-button-ripple-color","",bb),verticalPadding:i.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:i.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:i.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:i.external(S.colorOpacityDisabled,"Design system")},vb=i.extend("--ft-button-primary-color","",i.extend("--ft-button-color","",S.colorOnPrimary)),Zd={backgroundColor:i.extend("--ft-button-primary-background-color","",i.extend("--ft-button-background-color","",S.colorPrimary)),color:vb,rippleColor:i.extend("--ft-button-primary-ripple-color","",vb)},lr={borderRadius:i.extend("--ft-button-dense-border-radius","",i.extend("--ft-button-border-radius","",S.borderRadiusM)),verticalPadding:i.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:i.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:i.create("--ft-button-dense-icon-padding","","SIZE","4px")},xb=R`
493
+ `}};No.styles=ub});var fb,hb=u(()=>{"use strict";qd();fb={"ft-loader":No}});var mb=u(()=>{"use strict";O();hb();U(fb)});var gb=u(()=>{"use strict";Qa();pb();qd();mb()});var qr,yb=u(()=>{Lt();qr=r=>r??k});var Ya=u(()=>{yb()});var bb,Q,vb,Zd,Zt,xb,$o=u(()=>{"use strict";T();O();Sr();jt();Qa();ki();bb=i.extend("--ft-button-color","",S.colorPrimary),Q={backgroundColor:i.extend("--ft-button-background-color","",S.colorSurface),borderRadius:i.extend("--ft-button-border-radius","",S.borderRadiusL),color:bb,fontSize:i.extend("--ft-button-font-size","",sr.fontSize),iconSize:i.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:i.extend("--ft-button-ripple-color","",bb),verticalPadding:i.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:i.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:i.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:i.external(S.colorOpacityDisabled,"Design system")},vb=i.extend("--ft-button-primary-color","",i.extend("--ft-button-color","",S.colorOnPrimary)),Zd={backgroundColor:i.extend("--ft-button-primary-background-color","",i.extend("--ft-button-background-color","",S.colorPrimary)),color:vb,rippleColor:i.extend("--ft-button-primary-ripple-color","",vb)},Zt={borderRadius:i.extend("--ft-button-dense-border-radius","",i.extend("--ft-button-border-radius","",S.borderRadiusM)),verticalPadding:i.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:i.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:i.create("--ft-button-dense-icon-padding","","SIZE","4px")},xb=R`
494
494
  :host {
495
495
  display: inline-block;
496
496
  max-width: 100%;
@@ -517,7 +517,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
517
517
  }
518
518
 
519
519
  .ft-button:focus {
520
- outline: 0;
520
+ outline: none;
521
+ }
522
+
523
+ .ft-button:focus-visible {
524
+ outline: 2px solid ${S.colorPrimary};
525
+ outline-offset: 2px;
521
526
  }
522
527
 
523
528
  .ft-button {
@@ -526,7 +531,6 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
526
531
  justify-content: center;
527
532
  align-items: center;
528
533
  width: 100%;
529
- overflow: hidden;
530
534
  box-sizing: border-box;
531
535
  border: none;
532
536
  pointer-events: auto;
@@ -534,13 +538,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
534
538
  --button-internal-line-height: max(calc(${Q.fontSize} + 2px), ${Q.iconSize});
535
539
  --button-internal-color: ${Q.color};
536
540
  ${A(nt.size,Q.iconSize)};
537
- ${A(le.color,Q.rippleColor)};
541
+ ${A(ae.color,Q.rippleColor)};
542
+ ${A(ae.borderRadius,Q.borderRadius)};
538
543
 
539
544
  border-radius: ${Q.borderRadius};
540
545
  padding: ${Q.verticalPadding} ${Q.horizontalPadding};
541
546
  background-color: ${Q.backgroundColor};
542
547
  color: var(--button-internal-color);
543
- -webkit-mask-image: radial-gradient(white, black);
544
548
  }
545
549
 
546
550
  .ft-button.ft-button--outlined {
@@ -549,13 +553,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
549
553
  }
550
554
 
551
555
  .ft-button.ft-button--dense {
552
- padding: ${lr.verticalPadding} ${lr.horizontalPadding};
553
- border-radius: ${lr.borderRadius};
554
- gap: ${lr.iconPadding};
556
+ padding: ${Zt.verticalPadding} ${Zt.horizontalPadding};
557
+ border-radius: ${Zt.borderRadius};
558
+ gap: ${Zt.iconPadding};
559
+ ${A(ae.borderRadius,Zt.borderRadius)};
555
560
  }
556
561
 
557
562
  .ft-button.ft-button--dense.ft-button--outlined {
558
- padding: calc(${lr.verticalPadding} - 1px) calc(${lr.horizontalPadding} - 1px);
563
+ padding: calc(${Zt.verticalPadding} - 1px) calc(${Zt.horizontalPadding} - 1px);
559
564
  }
560
565
 
561
566
  .ft-button:not([disabled]):hover {
@@ -567,7 +572,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
567
572
  }
568
573
 
569
574
  .ft-button--round.ft-button--dense {
570
- border-radius: calc(var(--button-internal-line-height) / 2 + ${lr.verticalPadding});
575
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${Zt.verticalPadding});
571
576
  }
572
577
 
573
578
  .ft-button[disabled] {
@@ -578,11 +583,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
578
583
  .ft-button.ft-button--primary {
579
584
  background-color: ${Zd.backgroundColor};
580
585
  --button-internal-color: ${Zd.color};
581
- ${A(le.color,Zd.rippleColor)};
582
- }
583
-
584
- .ft-button:focus {
585
- outline: none;
586
+ ${A(ae.color,Zd.rippleColor)};
586
587
  }
587
588
 
588
589
  .ft-button--label {
@@ -592,12 +593,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
592
593
  text-overflow: ellipsis;
593
594
  display: block;
594
595
  margin: 0 ${Q.iconPadding};
595
- ${A(ar.fontSize,"1em")};
596
- ${A(ar.lineHeight,"var(--button-internal-line-height)")};
596
+ ${A(sr.fontSize,"1em")};
597
+ ${A(sr.lineHeight,"var(--button-internal-line-height)")};
597
598
  }
598
599
 
599
600
  .ft-button--dense .ft-button--label {
600
- margin: 0 ${lr.iconPadding};
601
+ margin: 0 ${Zt.iconPadding};
601
602
  }
602
603
 
603
604
  .ft-button--label[hidden] {
@@ -615,8 +616,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
615
616
  }
616
617
 
617
618
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
618
- margin: 0 calc(${lr.horizontalPadding} * -1);
619
- padding: 0 ${lr.verticalPadding};
619
+ margin: 0 calc(${Zt.horizontalPadding} * -1);
620
+ padding: 0 ${Zt.verticalPadding};
620
621
  }
621
622
 
622
623
  .ft-button:not(.ft-button--trailing-icon) [part="label"] {
@@ -669,7 +670,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
669
670
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
670
671
  `:b`
671
672
  <slot part="icon" name="icon"></slot>
672
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,t){var o;return(o=this.tooltip)===null||o===void 0?void 0:o.showTemporaryText(e,t)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return Zo(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};W.elementDefinitions={"ft-ripple":Z,"ft-tooltip":Te,"ft-icon":xe,"ft-loader":No,"ft-typography":ie};W.styles=[Yl,xb,yo];we([h({type:Boolean})],W.prototype,"primary",void 0);we([h({type:Boolean})],W.prototype,"outlined",void 0);we([h({type:Boolean})],W.prototype,"dense",void 0);we([h({type:Boolean})],W.prototype,"round",void 0);we([h({type:Boolean})],W.prototype,"disabled",void 0);we([h()],W.prototype,"icon",void 0);we([h()],W.prototype,"iconVariant",void 0);we([h({type:Boolean})],W.prototype,"trailingIcon",void 0);we([h()],W.prototype,"label",void 0);we([h()],W.prototype,"type",void 0);we([h()],W.prototype,"href",void 0);we([h()],W.prototype,"target",void 0);we([h({type:Boolean})],W.prototype,"loading",void 0);we([h({attribute:"aria-label"})],W.prototype,"ariaLabel",void 0);we([h()],W.prototype,"ariaHasPopup",void 0);we([h({attribute:"aria-pressed"})],W.prototype,"ariaPressed",void 0);we([h()],W.prototype,"tooltipPosition",void 0);we([h({type:Boolean})],W.prototype,"hideTooltip",void 0);we([h({type:Boolean})],W.prototype,"forceTooltip",void 0);we([h({type:Boolean})],W.prototype,"activated",void 0);we([B(".ft-button")],W.prototype,"button",void 0);we([B(".ft-button--label slot")],W.prototype,"slottedContent",void 0);we([B("[part=tooltip]")],W.prototype,"tooltip",void 0)});var Sb=u(()=>{"use strict"});var Cb,Ob=u(()=>{"use strict";Qd();Cb={"ft-button":W}});var Eb=u(()=>{"use strict";O();Ob();U(Cb)});var Zt=u(()=>{"use strict";Qd();$o();Sb();Eb()});var ye,Yd,kn=u(()=>{"use strict";T();O();Zt();ye={height:i.create("--ft-search-input-height","","SIZE","38px"),borderRadius:i.extend("--ft-search-input-border-radius","",S.borderRadiusS),desktopFiltersHeight:i.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:i.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:i.extend("--ft-search-input-background-color","",S.colorSurface),colorOnSurface:i.extend("--ft-search-input-color","",S.colorOnSurface),colorOnSurfaceMedium:i.extend("--ft-search-input-placeholder-color","",S.colorOnSurfaceMedium),colorOutline:i.extend("--ft-search-input-outline-color","",S.colorOutline),elevation02:i.extend("--ft-search-input-elevation","",S.elevation02),focusOutlineColor:i.extend("--ft-search-input-focused-outline-color","",S.colorPrimary),buttonColor:i.extend("--ft-search-input-button-color","",S.colorPrimary),buttonRippleColor:i.extend("--ft-search-input-button-ripple-color","",S.colorPrimary)},Yd=R`
673
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,t){var o;return(o=this.tooltip)===null||o===void 0?void 0:o.showTemporaryText(e,t)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return Zo(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};W.elementDefinitions={"ft-ripple":Z,"ft-tooltip":Te,"ft-icon":xe,"ft-loader":No,"ft-typography":ie};W.styles=[Yl,xb,yo];we([h({type:Boolean})],W.prototype,"primary",void 0);we([h({type:Boolean})],W.prototype,"outlined",void 0);we([h({type:Boolean})],W.prototype,"dense",void 0);we([h({type:Boolean})],W.prototype,"round",void 0);we([h({type:Boolean})],W.prototype,"disabled",void 0);we([h()],W.prototype,"icon",void 0);we([h()],W.prototype,"iconVariant",void 0);we([h({type:Boolean})],W.prototype,"trailingIcon",void 0);we([h()],W.prototype,"label",void 0);we([h()],W.prototype,"type",void 0);we([h()],W.prototype,"href",void 0);we([h()],W.prototype,"target",void 0);we([h({type:Boolean})],W.prototype,"loading",void 0);we([h({attribute:"aria-label"})],W.prototype,"ariaLabel",void 0);we([h()],W.prototype,"ariaHasPopup",void 0);we([h({attribute:"aria-pressed"})],W.prototype,"ariaPressed",void 0);we([h()],W.prototype,"tooltipPosition",void 0);we([h({type:Boolean})],W.prototype,"hideTooltip",void 0);we([h({type:Boolean})],W.prototype,"forceTooltip",void 0);we([h({type:Boolean})],W.prototype,"activated",void 0);we([B(".ft-button")],W.prototype,"button",void 0);we([B(".ft-button--label slot")],W.prototype,"slottedContent",void 0);we([B("[part=tooltip]")],W.prototype,"tooltip",void 0)});var Sb=u(()=>{"use strict"});var Cb,Ob=u(()=>{"use strict";Qd();Cb={"ft-button":W}});var Eb=u(()=>{"use strict";O();Ob();U(Cb)});var Qt=u(()=>{"use strict";Qd();$o();Sb();Eb()});var ye,Yd,kn=u(()=>{"use strict";T();O();Qt();ye={height:i.create("--ft-search-input-height","","SIZE","38px"),borderRadius:i.extend("--ft-search-input-border-radius","",S.borderRadiusS),desktopFiltersHeight:i.create("--ft-search-input-desktop-filters-height","","SIZE","350px"),floatingZIndex:i.create("--ft-search-input-floating-components-z-index","","NUMBER","3"),colorSurface:i.extend("--ft-search-input-background-color","",S.colorSurface),colorOnSurface:i.extend("--ft-search-input-color","",S.colorOnSurface),colorOnSurfaceMedium:i.extend("--ft-search-input-placeholder-color","",S.colorOnSurfaceMedium),colorOutline:i.extend("--ft-search-input-outline-color","",S.colorOutline),elevation02:i.extend("--ft-search-input-elevation","",S.elevation02),focusOutlineColor:i.extend("--ft-search-input-focused-outline-color","",S.colorPrimary),buttonColor:i.extend("--ft-search-input-button-color","",S.colorPrimary),buttonRippleColor:i.extend("--ft-search-input-button-ripple-color","",S.colorPrimary)},Yd=R`
673
674
  * {
674
675
  box-sizing: border-box;
675
676
  ${A(Q.color,ye.buttonColor)};
@@ -763,10 +764,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
763
764
  outline: revert;
764
765
  }
765
766
  `});function kb(r){var e;return((e=It(r))===null||e===void 0?void 0:e.openMode)===Ra.EXTERNAL}function os(r){return kb(r)?It(r).originUrl:sl(r)}function Tb(r,e){return qr(e&&kb(r)?"_blank":void 0)}var ru=u(()=>{"use strict";Vr();Ya();O()});var _i,Ii,is,ns,as,Tn,_n=u(()=>{"use strict";_i=class extends CustomEvent{constructor(e,t){super("ft-search-result-click",{detail:{result:e,rank:t},bubbles:!0,composed:!0})}},Ii=class extends CustomEvent{constructor(e,t){super("ft-search-result-open-context-menu",{detail:{result:e,rank:t},bubbles:!0,composed:!0})}},is=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},ns=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},as=class extends CustomEvent{constructor(e,t,o){super("ft-search-results-change",{detail:{request:e,paging:t,spellcheck:o}})}},Tn=class r extends Event{constructor(){super(r.eventName)}};Tn.eventName="search-context-clear-all-filters"});var pO,iu,nu=u(()=>{"use strict";T();pO={},iu=R`
766
- `});var Ib=u(()=>{"use strict"});var Qt,Pi=u(()=>{"use strict";(function(r){r.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Qt||(Qt={}))});var fO,Pb,Nb=u(()=>{"use strict";O();fO={setRequest:(r,e)=>{r.request=e.payload}},Pb=r=>xr.get({name:"ft-search-"+r,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20},keywordMatch:void 0},liveQuery:"",recentQueries:[],paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0},reducers:fO})});var ss,$b=u(()=>{"use strict";Gt();ss=class extends Qe{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((o,n)=>o.id.localeCompare(n.id))};return this.cache.get("search-"+this.hash(t),async()=>(await this.awaitApi).search(e),120*1e3)}async launchSuggest(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(t),async()=>(await this.awaitApi).getSuggestions(e),120*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(t=>t.valueFilter==null?t:{...t,valueFilter:{...t.valueFilter,values:[...t.valueFilter.values].sort((o,n)=>o.localeCompare(n))}}).sort((t,o)=>t.key.localeCompare(o.key))}}});var Db,Mb,ls,hO,Ni,au=u(()=>{"use strict";Pi();O();Nb();Vr();$b();_n();Gt();Db=r=>r.request.virtualField===Eo.TITLE_ONLY&&r.request.scope===fi.DOCUMENTS,Mb=r=>r.request.keywordMatch==Hr.MANDATORY,ls="ft-recent-queries",hO=20,Ni=class r extends Co{static build(e,t){return new r(Pb(e.trim()||"context"),t)}constructor(e,t){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.onNewNeededRequest=o=>{o==Qt.CLUSTERED_SEARCH&&this.launchSearch(this.buildSearchRequest(this.store.getState()))},this.onStorageEvent=o=>{o.key===ls&&this.loadRecentQueries()},this.localesDebouncer=new ne(10),this.searchDebouncer=new ne(100),this.launchSearch=o=>this.searchDebouncer.run(()=>this.fetchSearchData(o??this.buildSearchRequest(this.store.getState()))),this.buildSearchRequest=o=>({...o.request,facets:this.facetIds.map(n=>({id:n}))}),this.suggestDebouncer=new ne(1e3),this.launchSuggest=o=>this.suggestDebouncer.run(()=>this.fetchSuggestData(o??this.buildSuggestRequest(this.store.getState()))),this.buildSuggestRequest=o=>{var n;return{input:o.liveQuery,metadataFilters:o.request.metadataFilters,sort:(n=o.request.sort)!==null&&n!==void 0?n:[],sortId:o.request.sortId,contentLocale:o.request.contentLocale,scope:o.request.scope,keywordMatch:o.request.keywordMatch}},this.service=t??new ss,this.service.cache.addEventListener("clear-cache",o=>{o.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=ui(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=ui(e,this.buildSuggestRequest,this.launchSuggest)}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.loadRecentQueries(),this.launchSearch()}addWindowListeners(){window.addEventListener("storage",this.onStorageEvent)}removeWindowListeners(){window.removeEventListener("storage",this.onStorageEvent)}updateSearchRequest(e,t=!1){let o=gt(this.store.getState().request);delete o.changedByConfiguration,this.store.actions.setRequest({...o,paging:{perPage:o.paging.perPage,page:t?1:o.paging.page},...e})}setQuery(e){this.updateSearchRequest({query:e},!0),this.setLiveQuery(e)}setContentLocale(e){var t,o;let n=(t=this.store.getState().locales)!==null&&t!==void 0?t:[],a=this.store.getState().request.contentLocale;if(e!=a){if(n.length>0){let s=l=>n.some(d=>d.lang==l);s(e)||(e=s(a)?a:n[0].lang)}this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((o=Sn.localesConfiguration)===null||o===void 0)&&o.searchLanguageSetsUiLanguage)&&e&&Sn.requestUiLocaleUpdate(e)}return e}forceContentLocale(e){this.updateSearchRequest({contentLocale:e})}setPageSize(e){let t=this.store.getState().request;this.updateSearchRequest({paging:{...t.paging,perPage:isNaN(e)?20:gr(1,e,1e3)}})}setPageNumber(e){let t=this.store.getState().request;this.updateSearchRequest({paging:{...t.paging,page:isNaN(e)?1:Math.max(1,e)}})}get sortOptions(){var e,t;return(t=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&t!==void 0?t:[]}setSort(e){this.updateSearchRequest({sort:e},!0)}setSortId(e,t=!1){var o;let n=t?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...n},!0),e;let a=(o=this.sortOptions.find(s=>s.id==e))!==null&&o!==void 0?o:this.sortOptions[0];return this.updateSearchRequest({sortId:a.id,...n},!0),a.id}setFilters(e){let t=e.filter(o=>!o.valueFilter||o.valueFilter.values.length>0);this.updateSearchRequest({metadataFilters:t},!0)}setClusterSortCriterion(e){this.updateSearchRequest({clusterSortCriterions:e})}setSearchInDocumentTitlesOnly(e){e?this.updateSearchRequest({virtualField:Eo.TITLE_ONLY,scope:fi.DOCUMENTS},!0):this.updateSearchRequest({virtualField:Eo.EVERYWHERE,scope:fi.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return Db(this.store.getState())}get keywordMatch(){return Mb(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new Tn)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,t){let o=this.facetIds.filter(n=>n!=e);t&&o.push(t),this.facetIds=o}get facetIds(){var e;let t=this.store.getState().request;return[...new Set([...t.facets.map(o=>o.id),...((e=t.metadataFilters)!==null&&e!==void 0?e:[]).map(o=>o.key)])]}set facetIds(e){let o=[...new Set(e)].map(n=>({id:n}));this.updateSearchRequest({facets:o})}setFilter(e,t){this.setValueFilter(e,t)}setValueFilter(e,t){let o=this.store.getState().request.metadataFilters,n={key:e,valueFilter:{values:t,negative:!1}},a=[...o.filter(s=>!s.valueFilter),...o.filter(s=>s.valueFilter&&s.key!==n.key),n];this.setFilters(a)}setDateFilter(e,t){let o=this.store.getState().request.metadataFilters,n={key:e,dateFilter:{type:t}},a=[...o.filter(s=>!s.dateFilter),...o.filter(s=>s.dateFilter&&s.key!==n.key),n];this.setFilters(a)}removeDateFilter(e){let t=this.store.getState().request.metadataFilters,o=[...t.filter(n=>!n.dateFilter),...t.filter(n=>n.dateFilter&&n.key!==e)];this.setFilters(o)}setRangeFilter(e,t,o){let n=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:t,to:o}},s=[...n.filter(l=>!l.rangeFilter),...n.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let t=this.store.getState().request.metadataFilters,o=[...t.filter(n=>!n.rangeFilter),...t.filter(n=>n.rangeFilter&&n.key!==e)];this.setFilters(o)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.updateSearchRequest({...e,facets:this.store.getState().request.facets},!0),this.setLiveQuery(e.query)}setScope(e){this.updateSearchRequest({scope:e})}setOtherQueryParams(e){this.updateSearchRequest({otherQueryParams:e})}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setCanUpdateUiLocale(e){this.canUpdateUiLocale=e}loadRecentQueries(){var e;this.store.actions.recentQueries(JSON.parse((e=window.localStorage.getItem(ls))!==null&&e!==void 0?e:"[]"))}addRecentQuery(e){if(e=e.trim(),e.length===0)return;let t=e.toLowerCase(),o=this.store.getState().recentQueries.filter(n=>n.toLowerCase()!==t).slice(0,hO-1);o.unshift(e),this.setRecentQueries(o)}removeRecentQuery(e){let t=e.trim().toLowerCase(),o=this.store.getState().recentQueries,n=o.filter(a=>a.toLowerCase()!==t);o.length!==n.length&&this.setRecentQueries(n)}setRecentQueries(e){let t=JSON.stringify(e);window.localStorage.setItem(ls,t),window.dispatchEvent(new StorageEvent("storage",{key:ls,newValue:t,storageArea:window.localStorage,url:window.location.href}))}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var t,o,n,a,s;if((t=this.cancelableSearch)===null||t===void 0||t.cancel(),!!this.isRequestNeeded(Qt.CLUSTERED_SEARCH))try{if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{!((o=this.store.getState().results)===null||o===void 0)&&o.length||this.store.actions.results(void 0),this.cancelableSearch=qo(this.service.launchSearch(e));let l=await this.cancelableSearch;if(this.store.actions.announcements(l.announcements),l.paging.currentPage<=1)this.store.actions.results(l.results),this.store.actions.facets(l.facets),this.store.actions.spellcheck(l.spellcheck);else{let d=((n=this.store.getState().results)!==null&&n!==void 0?n:[]).concat(l.results);this.store.actions.results(d),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(l.paging.currentPage-1)*((a=e.paging.perPage)!==null&&a!==void 0?a:20)+1}`})}this.store.actions.paging(l.paging)}}catch(l){l instanceof Jt||(console.error(l),(s=this.errorHandler)===null||s===void 0||s.call(this,l))}}async fetchSuggestData(e){var t;try{if((t=this.cancelableSuggest)===null||t===void 0||t.cancel(),e.input.length<3){this.store.actions.suggestResults([]);return}this.cancelableSuggest=qo(this.service.launchSuggest(e));let o=await this.cancelableSuggest;this.store.actions.suggestResults(o.suggestions)}catch(o){!(o instanceof Jt)&&this.errorHandler&&this.errorHandler(o)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}}});var Fb,lu,Bb,su,mO,gO,Ft,Do=u(()=>{"use strict";O();K();Pi();au();Fb=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},lu=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Bb=Symbol("registerInterval"),su=Symbol("registerAttempts"),mO=40,gO=Ee(Symbol("toFtSearchComponent"),function(r){class e extends r{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(o){var n,a,s;super.willUpdate(o),o.has("neededSearchRequests")&&((n=this.stateManager)===null||n===void 0||n.unregisterComponent(this,(a=o.get("neededSearchRequests"))!==null&&a!==void 0?a:[]),(s=this.stateManager)===null||s===void 0||s.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(o){this.clearStateManager(),this.stateManager=o,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(o.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[su]=0,this.tryToRegisterToContext(),this[Bb]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[su]>mO?window.clearInterval(this[Bb]):(this[su]++,this.dispatchEvent(new lu))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Fb([I()],e.prototype,"stateManager",void 0),Fb([I({hasChanged:yt})],e.prototype,"neededSearchRequests",void 0),e}),Ft=class extends gO(vt){}});function In(r){return r.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function Pn(r){var e,t;return r.dateFilter?{key:r.key,type:"DATE",dateValue:r.dateFilter.type}:r.rangeFilter?{key:r.key,type:"RANGE",from:r.rangeFilter.from,to:r.rangeFilter.to}:{key:r.key,values:(e=r.valueFilter)===null||e===void 0?void 0:e.values,negative:(t=r.valueFilter)===null||t===void 0?void 0:t.negative}}var cu=u(()=>{"use strict"});var cs,Ub=u(()=>{"use strict";O();Vr();Gt();cu();cs=class{constructor(e,t){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=([o,n])=>{if(!this.canSendEvent()||!o)return;let a=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(a,o,n):this.sendDocumentSearchEvent(a,o,n)},this.eventsService=t??new Ua,this.resultsWatcher=ui(e,o=>[o.results,o.paging],this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.eventsService.convertMapToAnalyticsDocument(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:t}=H.getState();this.setAppName(e??"unknown"),this.setAppVersion(t??"unknown")}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=H.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,t,o){let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Oo.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o?o.totalClustersCount:t.length},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:In(e.metadataFilters),facets:e.metadataFilters.map(a=>Pn(a))}};this.eventsService.sendKhubSearchEvent(n)}sendDocumentSearchEvent(e,t,o){if(e.metadataFilters.find(a=>{var s;return a.key==="ft:publicationId"&&((s=a.valueFilter)===null||s===void 0?void 0:s.values[0])===this.document.id})!==void 0){let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Oo.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o?o.totalClustersCount:t.length},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(a)}}sendResultClickedEvent(e,t){if(!this.canSendEvent())return;let o=this.store.getState().request,n;e.type==nr.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Oo.SEARCH_PAGE__SELECT,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:In(o.metadataFilters),facets:o.metadataFilters.map(s=>Pn(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,t){if(!this.canSendEvent())return;let o=this.store.getState().request,n;e.type==nr.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Oo.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:In(o.metadataFilters),facets:o.metadataFilters.map(s=>Pn(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case nr.MAP:return{id:e.map.mapId,title:e.map.title,type:zr.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case nr.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:zr.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case nr.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:zr.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case nr.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:zr.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case nr.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:zr.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var t;return(t=It(e))===null||t===void 0?void 0:t.originUrl}}});var Be,be,du=u(()=>{"use strict";T();K();O();nu();Do();Gt();Ma();Ub();_n();Be=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},be=class extends vt{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=Ni.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new cs(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this._appIntegrationInfoReady=!1,this.addStore(H)}render(){return b`
767
+ `});var Ib=u(()=>{"use strict"});var Yt,Pi=u(()=>{"use strict";(function(r){r.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Yt||(Yt={}))});var fO,Pb,Nb=u(()=>{"use strict";O();fO={setRequest:(r,e)=>{r.request=e.payload}},Pb=r=>xr.get({name:"ft-search-"+r,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20},keywordMatch:void 0},liveQuery:"",recentQueries:[],paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0},reducers:fO})});var ss,$b=u(()=>{"use strict";Gt();ss=class extends Qe{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((o,n)=>o.id.localeCompare(n.id))};return this.cache.get("search-"+this.hash(t),async()=>(await this.awaitApi).search(e),120*1e3)}async launchSuggest(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(t),async()=>(await this.awaitApi).getSuggestions(e),120*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(t=>t.valueFilter==null?t:{...t,valueFilter:{...t.valueFilter,values:[...t.valueFilter.values].sort((o,n)=>o.localeCompare(n))}}).sort((t,o)=>t.key.localeCompare(o.key))}}});var Db,Mb,ls,hO,Ni,au=u(()=>{"use strict";Pi();O();Nb();Vr();$b();_n();Gt();Db=r=>r.request.virtualField===Eo.TITLE_ONLY&&r.request.scope===fi.DOCUMENTS,Mb=r=>r.request.keywordMatch==Hr.MANDATORY,ls="ft-recent-queries",hO=20,Ni=class r extends Co{static build(e,t){return new r(Pb(e.trim()||"context"),t)}constructor(e,t){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.onNewNeededRequest=o=>{o==Yt.CLUSTERED_SEARCH&&this.launchSearch(this.buildSearchRequest(this.store.getState()))},this.onStorageEvent=o=>{o.key===ls&&this.loadRecentQueries()},this.localesDebouncer=new ne(10),this.searchDebouncer=new ne(100),this.launchSearch=o=>this.searchDebouncer.run(()=>this.fetchSearchData(o??this.buildSearchRequest(this.store.getState()))),this.buildSearchRequest=o=>({...o.request,facets:this.facetIds.map(n=>({id:n}))}),this.suggestDebouncer=new ne(1e3),this.launchSuggest=o=>this.suggestDebouncer.run(()=>this.fetchSuggestData(o??this.buildSuggestRequest(this.store.getState()))),this.buildSuggestRequest=o=>{var n;return{input:o.liveQuery,metadataFilters:o.request.metadataFilters,sort:(n=o.request.sort)!==null&&n!==void 0?n:[],sortId:o.request.sortId,contentLocale:o.request.contentLocale,scope:o.request.scope,keywordMatch:o.request.keywordMatch}},this.service=t??new ss,this.service.cache.addEventListener("clear-cache",o=>{o.detail.clearedKeys.includes("available-locales")&&this.updateLocales()}),this.searchWatcher=ui(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=ui(e,this.buildSuggestRequest,this.launchSuggest)}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.loadRecentQueries(),this.launchSearch()}addWindowListeners(){window.addEventListener("storage",this.onStorageEvent)}removeWindowListeners(){window.removeEventListener("storage",this.onStorageEvent)}updateSearchRequest(e,t=!1){let o=gt(this.store.getState().request);delete o.changedByConfiguration,this.store.actions.setRequest({...o,paging:{perPage:o.paging.perPage,page:t?1:o.paging.page},...e})}setQuery(e){this.updateSearchRequest({query:e},!0),this.setLiveQuery(e)}setContentLocale(e){var t,o;let n=(t=this.store.getState().locales)!==null&&t!==void 0?t:[],a=this.store.getState().request.contentLocale;if(e!=a){if(n.length>0){let s=l=>n.some(d=>d.lang==l);s(e)||(e=s(a)?a:n[0].lang)}this.updateSearchRequest({contentLocale:e,metadataFilters:[]},!0),this.canUpdateUiLocale&&(!((o=Sn.localesConfiguration)===null||o===void 0)&&o.searchLanguageSetsUiLanguage)&&e&&Sn.requestUiLocaleUpdate(e)}return e}forceContentLocale(e){this.updateSearchRequest({contentLocale:e})}setPageSize(e){let t=this.store.getState().request;this.updateSearchRequest({paging:{...t.paging,perPage:isNaN(e)?20:gr(1,e,1e3)}})}setPageNumber(e){let t=this.store.getState().request;this.updateSearchRequest({paging:{...t.paging,page:isNaN(e)?1:Math.max(1,e)}})}get sortOptions(){var e,t;return(t=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&t!==void 0?t:[]}setSort(e){this.updateSearchRequest({sort:e},!0)}setSortId(e,t=!1){var o;let n=t?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...n},!0),e;let a=(o=this.sortOptions.find(s=>s.id==e))!==null&&o!==void 0?o:this.sortOptions[0];return this.updateSearchRequest({sortId:a.id,...n},!0),a.id}setFilters(e){let t=e.filter(o=>!o.valueFilter||o.valueFilter.values.length>0);this.updateSearchRequest({metadataFilters:t},!0)}setClusterSortCriterion(e){this.updateSearchRequest({clusterSortCriterions:e})}setSearchInDocumentTitlesOnly(e){e?this.updateSearchRequest({virtualField:Eo.TITLE_ONLY,scope:fi.DOCUMENTS},!0):this.updateSearchRequest({virtualField:Eo.EVERYWHERE,scope:fi.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return Db(this.store.getState())}get keywordMatch(){return Mb(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new Tn)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,t){let o=this.facetIds.filter(n=>n!=e);t&&o.push(t),this.facetIds=o}get facetIds(){var e;let t=this.store.getState().request;return[...new Set([...t.facets.map(o=>o.id),...((e=t.metadataFilters)!==null&&e!==void 0?e:[]).map(o=>o.key)])]}set facetIds(e){let o=[...new Set(e)].map(n=>({id:n}));this.updateSearchRequest({facets:o})}setFilter(e,t){this.setValueFilter(e,t)}setValueFilter(e,t){let o=this.store.getState().request.metadataFilters,n={key:e,valueFilter:{values:t,negative:!1}},a=[...o.filter(s=>!s.valueFilter),...o.filter(s=>s.valueFilter&&s.key!==n.key),n];this.setFilters(a)}setDateFilter(e,t){let o=this.store.getState().request.metadataFilters,n={key:e,dateFilter:{type:t}},a=[...o.filter(s=>!s.dateFilter),...o.filter(s=>s.dateFilter&&s.key!==n.key),n];this.setFilters(a)}removeDateFilter(e){let t=this.store.getState().request.metadataFilters,o=[...t.filter(n=>!n.dateFilter),...t.filter(n=>n.dateFilter&&n.key!==e)];this.setFilters(o)}setRangeFilter(e,t,o){let n=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:t,to:o}},s=[...n.filter(l=>!l.rangeFilter),...n.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let t=this.store.getState().request.metadataFilters,o=[...t.filter(n=>!n.rangeFilter),...t.filter(n=>n.rangeFilter&&n.key!==e)];this.setFilters(o)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.updateSearchRequest({...e,facets:this.store.getState().request.facets},!0),this.setLiveQuery(e.query)}setScope(e){this.updateSearchRequest({scope:e})}setOtherQueryParams(e){this.updateSearchRequest({otherQueryParams:e})}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setCanUpdateUiLocale(e){this.canUpdateUiLocale=e}loadRecentQueries(){var e;this.store.actions.recentQueries(JSON.parse((e=window.localStorage.getItem(ls))!==null&&e!==void 0?e:"[]"))}addRecentQuery(e){if(e=e.trim(),e.length===0)return;let t=e.toLowerCase(),o=this.store.getState().recentQueries.filter(n=>n.toLowerCase()!==t).slice(0,hO-1);o.unshift(e),this.setRecentQueries(o)}removeRecentQuery(e){let t=e.trim().toLowerCase(),o=this.store.getState().recentQueries,n=o.filter(a=>a.toLowerCase()!==t);o.length!==n.length&&this.setRecentQueries(n)}setRecentQueries(e){let t=JSON.stringify(e);window.localStorage.setItem(ls,t),window.dispatchEvent(new StorageEvent("storage",{key:ls,newValue:t,storageArea:window.localStorage,url:window.location.href}))}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var t,o,n,a,s;if((t=this.cancelableSearch)===null||t===void 0||t.cancel(),!!this.isRequestNeeded(Yt.CLUSTERED_SEARCH))try{if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{!((o=this.store.getState().results)===null||o===void 0)&&o.length||this.store.actions.results(void 0),this.cancelableSearch=qo(this.service.launchSearch(e));let l=await this.cancelableSearch;if(this.store.actions.announcements(l.announcements),l.paging.currentPage<=1)this.store.actions.results(l.results),this.store.actions.facets(l.facets),this.store.actions.spellcheck(l.spellcheck);else{let d=((n=this.store.getState().results)!==null&&n!==void 0?n:[]).concat(l.results);this.store.actions.results(d),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(l.paging.currentPage-1)*((a=e.paging.perPage)!==null&&a!==void 0?a:20)+1}`})}this.store.actions.paging(l.paging)}}catch(l){l instanceof er||(console.error(l),(s=this.errorHandler)===null||s===void 0||s.call(this,l))}}async fetchSuggestData(e){var t;try{if((t=this.cancelableSuggest)===null||t===void 0||t.cancel(),e.input.length<3){this.store.actions.suggestResults([]);return}this.cancelableSuggest=qo(this.service.launchSuggest(e));let o=await this.cancelableSuggest;this.store.actions.suggestResults(o.suggestions)}catch(o){!(o instanceof er)&&this.errorHandler&&this.errorHandler(o)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}}});var Fb,lu,Bb,su,mO,gO,Ft,Do=u(()=>{"use strict";O();K();Pi();au();Fb=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},lu=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Bb=Symbol("registerInterval"),su=Symbol("registerAttempts"),mO=40,gO=Ee(Symbol("toFtSearchComponent"),function(r){class e extends r{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(o){var n,a,s;super.willUpdate(o),o.has("neededSearchRequests")&&((n=this.stateManager)===null||n===void 0||n.unregisterComponent(this,(a=o.get("neededSearchRequests"))!==null&&a!==void 0?a:[]),(s=this.stateManager)===null||s===void 0||s.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(o){this.clearStateManager(),this.stateManager=o,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(o.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[su]=0,this.tryToRegisterToContext(),this[Bb]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[su]>mO?window.clearInterval(this[Bb]):(this[su]++,this.dispatchEvent(new lu))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Fb([I()],e.prototype,"stateManager",void 0),Fb([I({hasChanged:yt})],e.prototype,"neededSearchRequests",void 0),e}),Ft=class extends gO(vt){}});function In(r){return r.filter(e=>e.key==="ft:lastEdition").filter(e=>!e.valueFilter).map(e=>e.dateFilter?e.dateFilter.type:"CUSTOM").shift()}function Pn(r){var e,t;return r.dateFilter?{key:r.key,type:"DATE",dateValue:r.dateFilter.type}:r.rangeFilter?{key:r.key,type:"RANGE",from:r.rangeFilter.from,to:r.rangeFilter.to}:{key:r.key,values:(e=r.valueFilter)===null||e===void 0?void 0:e.values,negative:(t=r.valueFilter)===null||t===void 0?void 0:t.negative}}var cu=u(()=>{"use strict"});var cs,Ub=u(()=>{"use strict";O();Vr();Gt();cu();cs=class{constructor(e,t){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.enableAnalyticsEvents=!0,this.appName=void 0,this.appVersion=void 0,this.document=void 0,this.sendEvent=([o,n])=>{if(!this.canSendEvent()||!o)return;let a=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(a,o,n):this.sendDocumentSearchEvent(a,o,n)},this.eventsService=t??new Ua,this.resultsWatcher=ui(e,o=>[o.results,o.paging],this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.eventsService.convertMapToAnalyticsDocument(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:t}=H.getState();this.setAppName(e??"unknown"),this.setAppVersion(t??"unknown")}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=H.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,t,o){let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Oo.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o?o.totalClustersCount:t.length},searchQuery:{terms:e.query,searchType:e.virtualField,lastUpdate:In(e.metadataFilters),facets:e.metadataFilters.map(a=>Pn(a))}};this.eventsService.sendKhubSearchEvent(n)}sendDocumentSearchEvent(e,t,o){if(e.metadataFilters.find(a=>{var s;return a.key==="ft:publicationId"&&((s=a.valueFilter)===null||s===void 0?void 0:s.values[0])===this.document.id})!==void 0){let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Oo.DOCUMENT__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o?o.totalClustersCount:t.length},searchQuery:{terms:e.query},document:this.document};this.eventsService.sendDocumentSearchEvent(a)}}sendResultClickedEvent(e,t){if(!this.canSendEvent())return;let o=this.store.getState().request,n;e.type==ar.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Oo.SEARCH_PAGE__SELECT,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:In(o.metadataFilters),facets:o.metadataFilters.map(s=>Pn(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,t){if(!this.canSendEvent())return;let o=this.store.getState().request,n;e.type==ar.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Oo.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:In(o.metadataFilters),facets:o.metadataFilters.map(s=>Pn(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case ar.MAP:return{id:e.map.mapId,title:e.map.title,type:zr.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case ar.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:zr.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case ar.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:zr.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case ar.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:zr.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case ar.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:zr.HTML_PACKAGE,metadata:e.htmlPackagePage.metadata};default:throw new TypeError("Unknown type "+e.type)}}convertExternalLink(e){var t;return(t=It(e))===null||t===void 0?void 0:t.originUrl}}});var Be,be,du=u(()=>{"use strict";T();K();O();nu();Do();Gt();Ma();Ub();_n();Be=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},be=class extends vt{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=Ni.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new cs(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this._appIntegrationInfoReady=!1,this.addStore(H)}render(){return b`
767
768
  <slot @register-ft-search-component=${this.registerComponent} @ft-search-result-click=${this.onResultClicked}
768
769
  @ft-search-result-open-context-menu=${this.onResultContextMenuOpened}></slot>
769
- `}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("keywordMatch")&&this.stateManager.setKeywordMatch(this.keywordMatch),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams),this.stateManager.addWindowListeners()}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeWindowListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new ns(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new as(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new is(e))}reloadSavedSearches(){wd.clearMySearches()}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}};be.elementDefinitions={};be.styles=iu;Be([pe({store:H.name})],be.prototype,"session",void 0);Be([h()],be.prototype,"query",void 0);Be([h()],be.prototype,"contentLocale",void 0);Be([_t()],be.prototype,"pageSize",void 0);Be([h({type:Boolean})],be.prototype,"searchInDocumentTitlesOnly",void 0);Be([h()],be.prototype,"keywordMatch",void 0);Be([h()],be.prototype,"scope",void 0);Be([h()],be.prototype,"virtualField",void 0);Be([h({type:Boolean})],be.prototype,"ignoreEmptyQuery",void 0);Be([pe({store:H.name})],be.prototype,"openExternalDocumentInNewTab",void 0);Be([de([])],be.prototype,"filters",void 0);Be([h()],be.prototype,"sortId",void 0);Be([de([])],be.prototype,"sort",void 0);Be([de({})],be.prototype,"otherQueryParams",void 0);Be([pe({store:"search"})],be.prototype,"request",void 0);Be([pe({store:"search"})],be.prototype,"paging",void 0);Be([pe({store:"search",selector:r=>r.spellcheck})],be.prototype,"spellcheckAutocorrect",void 0);Be([pe({store:H.name,selector:r=>r.apiIntegrationIdentifier!==void 0&&r.apiIntegrationAppVersion!==void 0})],be.prototype,"_appIntegrationInfoReady",void 0);Be([h({attribute:!1})],be.prototype,"searchServiceProvider",void 0)});var zb,Hb=u(()=>{"use strict";du();zb={"ft-search-context":be}});var Vb=u(()=>{"use strict";O();Hb();U(zb)});var Wb={};q(Wb,{FtSearchContext:()=>be,FtSearchContextCssVariables:()=>pO,FtSearchStateManager:()=>Ni,convertMetadataFilterToAnalyticsFacet:()=>Pn,getAnalyticsLastUpdate:()=>In,keywordMatchSelector:()=>Mb,searchInDocumentTitlesOnlySelector:()=>Db,styles:()=>iu});var jb=u(()=>{"use strict";nu();Ib();du();au();cu();Vb()});var Gb=u(()=>{"use strict"});var Rr,uu=u(()=>{"use strict";Mt();Rr=sr.build("designedSearchInput")});var Bt,pu=u(()=>{"use strict";(function(r){r.S="S",r.M="M",r.L="L",r.XL="XL",r.XXL="XXL"})(Bt||(Bt={}))});var Kb,fu=u(()=>{"use strict";T();Kb=R`
770
+ `}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("keywordMatch")&&this.stateManager.setKeywordMatch(this.keywordMatch),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams),this.stateManager.addWindowListeners()}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeWindowListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new ns(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new as(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new is(e))}reloadSavedSearches(){wd.clearMySearches()}clear(){this.stateManager.clear()}onResultClicked(e){this.eventManager.sendResultClickedEvent(e.detail.result,e.detail.rank)}onResultContextMenuOpened(e){this.eventManager.sendResultContextMenuOpenedEvent(e.detail.result,e.detail.rank)}};be.elementDefinitions={};be.styles=iu;Be([pe({store:H.name})],be.prototype,"session",void 0);Be([h()],be.prototype,"query",void 0);Be([h()],be.prototype,"contentLocale",void 0);Be([_t()],be.prototype,"pageSize",void 0);Be([h({type:Boolean})],be.prototype,"searchInDocumentTitlesOnly",void 0);Be([h()],be.prototype,"keywordMatch",void 0);Be([h()],be.prototype,"scope",void 0);Be([h()],be.prototype,"virtualField",void 0);Be([h({type:Boolean})],be.prototype,"ignoreEmptyQuery",void 0);Be([pe({store:H.name})],be.prototype,"openExternalDocumentInNewTab",void 0);Be([de([])],be.prototype,"filters",void 0);Be([h()],be.prototype,"sortId",void 0);Be([de([])],be.prototype,"sort",void 0);Be([de({})],be.prototype,"otherQueryParams",void 0);Be([pe({store:"search"})],be.prototype,"request",void 0);Be([pe({store:"search"})],be.prototype,"paging",void 0);Be([pe({store:"search",selector:r=>r.spellcheck})],be.prototype,"spellcheckAutocorrect",void 0);Be([pe({store:H.name,selector:r=>r.apiIntegrationIdentifier!==void 0&&r.apiIntegrationAppVersion!==void 0})],be.prototype,"_appIntegrationInfoReady",void 0);Be([h({attribute:!1})],be.prototype,"searchServiceProvider",void 0)});var zb,Hb=u(()=>{"use strict";du();zb={"ft-search-context":be}});var Vb=u(()=>{"use strict";O();Hb();U(zb)});var Wb={};q(Wb,{FtSearchContext:()=>be,FtSearchContextCssVariables:()=>pO,FtSearchStateManager:()=>Ni,convertMetadataFilterToAnalyticsFacet:()=>Pn,getAnalyticsLastUpdate:()=>In,keywordMatchSelector:()=>Mb,searchInDocumentTitlesOnlySelector:()=>Db,styles:()=>iu});var jb=u(()=>{"use strict";nu();Ib();du();au();cu();Vb()});var Gb=u(()=>{"use strict"});var Rr,uu=u(()=>{"use strict";Mt();Rr=lr.build("designedSearchInput")});var Bt,pu=u(()=>{"use strict";(function(r){r.S="S",r.M="M",r.L="L",r.XL="XL",r.XXL="XXL"})(Bt||(Bt={}))});var Kb,fu=u(()=>{"use strict";T();Kb=R`
770
771
  .ft-size-watcher--pixel {
771
772
  width: 0;
772
773
  height: 0;
@@ -793,6 +794,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
793
794
  .ft-filter-level--container {
794
795
  display: flex;
795
796
  flex-direction: column;
797
+ padding-bottom: 4px;
796
798
  }
797
799
 
798
800
  .ft-filter-level--container > * {
@@ -940,7 +942,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
940
942
 
941
943
  .ft-checkbox.ft-checkbox--error {
942
944
  color: ${Ot.errorColor};
943
- ${A(le.color,Ot.errorColor)};
945
+ ${A(ae.color,Ot.errorColor)};
944
946
 
945
947
  .ft-checkbox--box {
946
948
  border-color: ${Ot.errorColor};
@@ -1114,7 +1116,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1114
1116
  @change=${this.onChange}
1115
1117
  @keydown=${this.onKeyDown}
1116
1118
  ></slot>
1117
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(t=>t.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(t=>t.checked=e.detail.value===t.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let t=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{t=!0;let o=this.currentSelectedIndex-1;this.radioButtons[o<0?this.radioButtons.length-1:o].select(),this.radioButtons[o<0?this.radioButtons.length-1:o].focus();break}case"ArrowDown":case"ArrowRight":{t=!0;let o=this.currentSelectedIndex+1;this.radioButtons[o>this.radioButtons.length-1?0:o].select(),this.radioButtons[o>this.radioButtons.length-1?0:o].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}t&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(t=>t.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Et.elementDefinitions={};Et.styles=pv;Dn([h()],Et.prototype,"name",void 0);Dn([h({reflect:!0,attribute:"role"})],Et.prototype,"role",void 0);Dn([h({reflect:!0,attribute:"aria-labelledby"})],Et.prototype,"ariaLabelledBy",void 0);Dn([zs()],Et.prototype,"assignedElements",void 0);Dn([I()],Et.prototype,"currentSelectedIndex",void 0)});var fv=u(()=>{"use strict"});var hv,mv=u(()=>{"use strict";Ou();wu();hv={"ft-radio":Ue,"ft-radio-group":Et}});var gv=u(()=>{"use strict";O();mv();U(hv)});var Ru=u(()=>{"use strict";Ou();uv();Cu();wu();fv();Eu();gv()});var Ve,Au,Re,yv=u(()=>{"use strict";T();K();Ht();O();Zt();ke();ot();wr();cv();Ru();bu();Mt();Ve=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Au={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},Re=class extends Ta(pt(gn(F)),Au){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new ne(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,t;return(t=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&t!==void 0?t:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(t=>!t.selected)),this.filter&&(e=e.filter(t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return b`
1119
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(t=>t.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(t=>t.checked=e.detail.value===t.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let t=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{t=!0;let o=this.currentSelectedIndex-1;this.radioButtons[o<0?this.radioButtons.length-1:o].select(),this.radioButtons[o<0?this.radioButtons.length-1:o].focus();break}case"ArrowDown":case"ArrowRight":{t=!0;let o=this.currentSelectedIndex+1;this.radioButtons[o>this.radioButtons.length-1?0:o].select(),this.radioButtons[o>this.radioButtons.length-1?0:o].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}t&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(t=>t.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Et.elementDefinitions={};Et.styles=pv;Dn([h()],Et.prototype,"name",void 0);Dn([h({reflect:!0,attribute:"role"})],Et.prototype,"role",void 0);Dn([h({reflect:!0,attribute:"aria-labelledby"})],Et.prototype,"ariaLabelledBy",void 0);Dn([zs()],Et.prototype,"assignedElements",void 0);Dn([I()],Et.prototype,"currentSelectedIndex",void 0)});var fv=u(()=>{"use strict"});var hv,mv=u(()=>{"use strict";Ou();wu();hv={"ft-radio":Ue,"ft-radio-group":Et}});var gv=u(()=>{"use strict";O();mv();U(hv)});var Ru=u(()=>{"use strict";Ou();uv();Cu();wu();fv();Eu();gv()});var Ve,Au,Re,yv=u(()=>{"use strict";T();K();Ht();O();Qt();ke();ot();wr();cv();Ru();bu();Mt();Ve=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Au={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},Re=class extends Ta(pt(gn(F)),Au){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new ne(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,t;return(t=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&t!==void 0?t:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(t=>!t.selected)),this.filter&&(e=e.filter(t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return b`
1118
1120
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1119
1121
  ${this.parent==null?null:b`
1120
1122
  <div tabindex="0"
@@ -1307,7 +1309,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1307
1309
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1308
1310
  background-color: ${st.colorSurface};
1309
1311
  }
1310
- `});var cr,Lu,Ne,ku=u(()=>{"use strict";T();K();O();Zt();tt();ps();cr=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Lu=class extends CustomEvent{constructor(e,t){super("current-element-change",{detail:{index:e,element:t}})}},Ne=class extends F{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new ne(200),this.updateScrollDebouncer=new ne(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let t=this.elements[e];if(t){let o=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(t[this.offsetAttribute]<n||t[this.offsetAttribute]+t[this.sizeAttribute]>o)&&this.scrollToElement(t)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=me({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":ko}),t=this.controls&&this.withScroll;return b`
1312
+ `});var cr,Lu,Ne,ku=u(()=>{"use strict";T();K();O();Qt();tt();ps();cr=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Lu=class extends CustomEvent{constructor(e,t){super("current-element-change",{detail:{index:e,element:t}})}},Ne=class extends F{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new ne(200),this.updateScrollDebouncer=new ne(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let t=this.elements[e];if(t){let o=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(t[this.offsetAttribute]<n||t[this.offsetAttribute]+t[this.sizeAttribute]>o)&&this.scrollToElement(t)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=me({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":ko}),t=this.controls&&this.withScroll;return b`
1311
1313
  <div part="container" class="${e}">
1312
1314
  <ft-button
1313
1315
  class="ft-snap-scroll--previous"
@@ -1448,7 +1450,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1448
1450
  slot:not([name]) {
1449
1451
  display: none;
1450
1452
  }
1451
- `]});var Se,Tu,ce,_u=u(()=>{"use strict";T();K();O();ke();yv();Zt();fs();hs();Se=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Tu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ce=class extends Ta(F,Au){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new ne(300),this.changeDebouncer=new ne(10),this.lastDispatchedValues=[]}get flatOptions(){return bt(this.options,e=>{var t;return(t=e.subOptions)!==null&&t!==void 0?t:[]})}get childrenFilteredFlatOptions(){return bt(this.options,e=>{var t;return e.selected?[]:(t=e.subOptions)!==null&&t!==void 0?t:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),t=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,o=this.filterPlaceHolder.replace("{0}",this.label);return b`
1453
+ `]});var Se,Tu,ce,_u=u(()=>{"use strict";T();K();O();ke();yv();Qt();fs();hs();Se=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Tu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ce=class extends Ta(F,Au){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new ne(300),this.changeDebouncer=new ne(10),this.lastDispatchedValues=[]}get flatOptions(){return bt(this.options,e=>{var t;return(t=e.subOptions)!==null&&t!==void 0?t:[]})}get childrenFilteredFlatOptions(){return bt(this.options,e=>{var t;return e.selected?[]:(t=e.subOptions)!==null&&t!==void 0?t:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),t=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,o=this.filterPlaceHolder.replace("{0}",this.label);return b`
1452
1454
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1453
1455
  part="container">
1454
1456
  ${!this.label&&!e?null:b`
@@ -1618,7 +1620,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1618
1620
  </div>
1619
1621
  <div class="ft-accordion-item--separator" part="separator"></div>
1620
1622
  </div>
1621
- `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};Ut.elementDefinitions={"ft-ripple":Z,"ft-typography":ie,"ft-icon":xe};Ut.styles=Pv;ms([h()],Ut.prototype,"icon",void 0);ms([h()],Ut.prototype,"iconVariant",void 0);ms([h()],Ut.prototype,"label",void 0);ms([h({type:Boolean,reflect:!0})],Ut.prototype,"active",void 0)});var Nv=u(()=>{"use strict"});var $v,Dv=u(()=>{"use strict";Nu();Du();$v={"ft-accordion":dr,"ft-accordion-item":Ut}});var Mv=u(()=>{"use strict";O();Dv();U($v)});var Fv=u(()=>{"use strict";Nu();Pu();Iv();Du();$u();Nv();Mv()});var Bv,We,Uv,Mu,zv,Hv,Fu=u(()=>{"use strict";T();O();Sr();jt();ki();Zt();Bv=i.extend("--ft-chip-color","",S.colorOnSurface),We={backgroundColor:i.extend("--ft-chip-background-color","",S.colorSurface),color:Bv,fontSize:i.extend("--ft-chip-font-size","",Fe.fontSize),fontWeight:i.extend("--ft-chip-font-weight","",Fe.fontWeight),iconSize:i.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:i.create("--ft-chip-border-radius","","SIZE",""),rippleColor:i.extend("--ft-chip-ripple-color","",Bv),horizontalPadding:i.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:i.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:i.extend("--ft-chip-border-color","",S.colorOutline),opacityDisabled:i.external(S.colorOpacityDisabled,"Design system")},Uv=i.extend("--ft-chip-highlighted-color","",i.extend("--ft-chip-color","",S.colorOnPrimary)),Mu={backgroundColor:i.extend("--ft-chip-highlighted-background-color","",i.extend("--ft-chip-background-color","",S.colorPrimary)),color:Uv,rippleColor:i.extend("--ft-chip-highlighted-ripple-color","",Uv)},zv={horizontalPadding:i.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:i.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Hv=[yo,R`
1623
+ `}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};Ut.elementDefinitions={"ft-ripple":Z,"ft-typography":ie,"ft-icon":xe};Ut.styles=Pv;ms([h()],Ut.prototype,"icon",void 0);ms([h()],Ut.prototype,"iconVariant",void 0);ms([h()],Ut.prototype,"label",void 0);ms([h({type:Boolean,reflect:!0})],Ut.prototype,"active",void 0)});var Nv=u(()=>{"use strict"});var $v,Dv=u(()=>{"use strict";Nu();Du();$v={"ft-accordion":dr,"ft-accordion-item":Ut}});var Mv=u(()=>{"use strict";O();Dv();U($v)});var Fv=u(()=>{"use strict";Nu();Pu();Iv();Du();$u();Nv();Mv()});var Bv,We,Uv,Mu,zv,Hv,Fu=u(()=>{"use strict";T();O();Sr();jt();ki();Qt();Bv=i.extend("--ft-chip-color","",S.colorOnSurface),We={backgroundColor:i.extend("--ft-chip-background-color","",S.colorSurface),color:Bv,fontSize:i.extend("--ft-chip-font-size","",Fe.fontSize),fontWeight:i.extend("--ft-chip-font-weight","",Fe.fontWeight),iconSize:i.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:i.create("--ft-chip-border-radius","","SIZE",""),rippleColor:i.extend("--ft-chip-ripple-color","",Bv),horizontalPadding:i.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:i.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:i.extend("--ft-chip-border-color","",S.colorOutline),opacityDisabled:i.external(S.colorOpacityDisabled,"Design system")},Uv=i.extend("--ft-chip-highlighted-color","",i.extend("--ft-chip-color","",S.colorOnPrimary)),Mu={backgroundColor:i.extend("--ft-chip-highlighted-background-color","",i.extend("--ft-chip-background-color","",S.colorPrimary)),color:Uv,rippleColor:i.extend("--ft-chip-highlighted-ripple-color","",Uv)},zv={horizontalPadding:i.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:i.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Hv=[yo,R`
1622
1624
  :host {
1623
1625
  display: inline-block;
1624
1626
  max-width: 100%;
@@ -1645,7 +1647,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1645
1647
 
1646
1648
  border: 1px solid ${We.borderColor};
1647
1649
  color: ${We.color};
1648
- ${A(le.color,We.rippleColor)};
1650
+ ${A(ae.color,We.rippleColor)};
1649
1651
  border-radius: var(${eo(We.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1650
1652
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
1651
1653
  background-color: ${We.backgroundColor};
@@ -1678,7 +1680,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1678
1680
  border: none;
1679
1681
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1680
1682
  background-color: ${Mu.backgroundColor};
1681
- ${A(le.color,Mu.rippleColor)};
1683
+ ${A(ae.color,Mu.rippleColor)};
1682
1684
  color: ${Mu.color};
1683
1685
  }
1684
1686
 
@@ -1758,7 +1760,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1758
1760
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1759
1761
  order: -1;
1760
1762
  }
1761
- `]});var lt,gs,Ae,Bu=u(()=>{"use strict";T();K();tt();O();ot();ke();wr();Fu();Zt();lt=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},gs=class extends CustomEvent{constructor(){super("icon-click")}},Ae=class extends F{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":ko};return b`
1763
+ `]});var lt,gs,Ae,Bu=u(()=>{"use strict";T();K();tt();O();ot();ke();wr();Fu();Qt();lt=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},gs=class extends CustomEvent{constructor(){super("icon-click")}},Ae=class extends F{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":ko};return b`
1762
1764
  <div class="${me(t)}"
1763
1765
  aria-label="${this.getLabel()}"
1764
1766
  tabindex="${this.interactionsOnChip?0:-1}"
@@ -1916,7 +1918,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1916
1918
  </div>
1917
1919
  `)}
1918
1920
  </div>
1919
- `}};Fo.elementDefinitions={};qv([h({type:String})],Fo.prototype,"text",void 0);qv([h({type:Boolean})],Fo.prototype,"raised",void 0)});var zu,Yt,Hu=u(()=>{"use strict";K();jt();Mn();Zv();zu=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Yt=class extends Fo{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};Yt.elementDefinitions={};Yt.styles=[Gr,Kv];zu([h({type:Boolean})],Yt.prototype,"outlined",void 0);zu([h({type:Boolean})],Yt.prototype,"error",void 0);zu([h({type:Boolean})],Yt.prototype,"disabled",void 0)});var Qv=u(()=>{"use strict"});var Yv,Xv=u(()=>{"use strict";Hu();Yv={"ft-input-label":Yt}});var Jv=u(()=>{"use strict";O();Xv();U(Yv)});var ex=u(()=>{"use strict";Hu();Mn();Qv();Jv()});var Y,tx,Fn=u(()=>{"use strict";T();O();Mn();jt();Sr();ki();Y={labelSize:i.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:i.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:i.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:i.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:i.extend("--ft-select-selected-option-color","",S.colorOnSurface),helperColor:i.extend("--ft-select-helper-color","",S.colorOnSurfaceMedium),optionsColor:i.extend("--ft-select-options-color","",S.colorOnSurface),optionsZIndex:i.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:i.extend("--ft-select-background-color","",S.colorSurface),colorOnSurfaceDisabled:i.external(S.colorOnSurfaceDisabled,"Design system"),colorPrimary:i.external(S.colorPrimary,"Design system"),borderRadiusS:i.external(S.borderRadiusS,"Design system"),elevation02:i.external(S.elevation02,"Design system"),colorError:i.external(S.colorError,"Design system")},tx=R`
1921
+ `}};Fo.elementDefinitions={};qv([h({type:String})],Fo.prototype,"text",void 0);qv([h({type:Boolean})],Fo.prototype,"raised",void 0)});var zu,Xt,Hu=u(()=>{"use strict";K();jt();Mn();Zv();zu=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Xt=class extends Fo{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};Xt.elementDefinitions={};Xt.styles=[Gr,Kv];zu([h({type:Boolean})],Xt.prototype,"outlined",void 0);zu([h({type:Boolean})],Xt.prototype,"error",void 0);zu([h({type:Boolean})],Xt.prototype,"disabled",void 0)});var Qv=u(()=>{"use strict"});var Yv,Xv=u(()=>{"use strict";Hu();Yv={"ft-input-label":Xt}});var Jv=u(()=>{"use strict";O();Xv();U(Yv)});var ex=u(()=>{"use strict";Hu();Mn();Qv();Jv()});var Y,tx,Fn=u(()=>{"use strict";T();O();Mn();jt();Sr();ki();Y={labelSize:i.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:i.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:i.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:i.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:i.extend("--ft-select-selected-option-color","",S.colorOnSurface),helperColor:i.extend("--ft-select-helper-color","",S.colorOnSurfaceMedium),optionsColor:i.extend("--ft-select-options-color","",S.colorOnSurface),optionsZIndex:i.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:i.extend("--ft-select-background-color","",S.colorSurface),colorOnSurfaceDisabled:i.external(S.colorOnSurfaceDisabled,"Design system"),colorPrimary:i.external(S.colorPrimary,"Design system"),borderRadiusS:i.external(S.borderRadiusS,"Design system"),elevation02:i.external(S.elevation02,"Design system"),colorError:i.external(S.colorError,"Design system")},tx=R`
1920
1922
  *:focus {
1921
1923
  outline: none;
1922
1924
  }
@@ -1944,13 +1946,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1944
1946
  padding-right: ${Y.horizontalSpacing};
1945
1947
  gap: 8px;
1946
1948
  color: ${Y.selectedOptionColor};
1947
- ${A(le.color,Y.selectedOptionColor)};
1949
+ ${A(ae.color,Y.selectedOptionColor)};
1948
1950
  }
1949
1951
 
1950
1952
  .ft-select--input-panel,
1951
1953
  .ft-select--options {
1952
- ${A(le.opacityContentOnSurfaceHover,"0.08")};
1953
- ${A(le.opacityContentOnSurfacePressed,"0.04")};
1954
+ ${A(ae.opacityContentOnSurfaceHover,"0.08")};
1955
+ ${A(ae.opacityContentOnSurfacePressed,"0.04")};
1954
1956
  }
1955
1957
 
1956
1958
  .ft-select--input-panel > *:not(ft-ripple) {
@@ -2054,8 +2056,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2054
2056
  }
2055
2057
  `});var rx,ox=u(()=>{"use strict";Sr();O();Fn();T();rx=R`
2056
2058
  .ft-select--option {
2057
- ${A(le.opacityContentOnSurfaceHover,"0.08")};
2058
- ${A(le.opacityContentOnSurfacePressed,"0.04")};
2059
+ ${A(ae.opacityContentOnSurfaceHover,"0.08")};
2060
+ ${A(ae.opacityContentOnSurfacePressed,"0.04")};
2059
2061
  }
2060
2062
 
2061
2063
  .ft-select--option > *:not(ft-ripple) {
@@ -2147,7 +2149,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2147
2149
  label="${e.label}"
2148
2150
  .value=${e.value}
2149
2151
  ></ft-select-option>
2150
- `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(t=>t.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var t,o;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((o=(t=this.selectedOptionElement)!==null&&t!==void 0?t:this.firstOption)===null||o===void 0||o.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];$l(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",Y.optionsHeight,0).then(({x:a,y:s})=>{this.optionsMenu.style.left=`${a}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var t;e.stopPropagation(),this.isSlotEmpty=an(this.optionsSlot);let o=(t=this.optionsSlot)===null||t===void 0?void 0:t.assignedElements().map(n=>n);o&&o.length>0&&(this.options=o)}onMainPanelKeyDown(e){switch(e.key){case" ":e.preventDefault(),e.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var t,o;let n,a=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(t=this.mainPanel)===null||t===void 0||t.focus();break;case"Escape":this.optionsDisplayed=!1,(o=this.mainPanel)===null||o===void 0||o.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(a-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(a+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(n=this.handleAlphanumericPress(e.key));break}n?.focus()}isKeyAlphanumeric(e){let t=e.charCodeAt(0);return t>47&&t<58||t>64&&t<91||t>96&&t<123}handleAlphanumericPress(e){let t=new Date;t.getTime()-this.lastSearchInputDate.getTime()>r.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let o=this.options.find(n=>{var a;return((a=n.label)===null||a===void 0?void 0:a.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=t,o&&this.optionsList.find(n=>n.value===o.value)}getOptionId(e){if(!e)return;let t=this.options.findIndex(o=>Me(o.value,e.value));if(t!==-1)return`option-${t}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,t=!0){let o=this.options.find(n=>Me(n.value,e));o&&this.selectOption(o,t)}selectOption(e,t=!0){var o,n;if(!Me((o=this.selectedOption)===null||o===void 0?void 0:o.value,e?.value)){this.selectedOption=e;for(let a of this.options)a.selected=a===e;t&&this.dispatchEvent(new CustomEvent("change",{detail:(n=this.selectedOption)===null||n===void 0?void 0:n.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};ve.elementDefinitions={"ft-input-label":Yt,"ft-typography":ie,"ft-ripple":Z,"ft-icon":xe,"ft-select-option":Je};ve.searchTimeoutMilliseconds=2e3;ve.styles=[Gr,tx];je([h({type:String})],ve.prototype,"label",void 0);je([h({type:String})],ve.prototype,"ariaLabel",void 0);je([h({type:String})],ve.prototype,"helper",void 0);je([h({type:Boolean})],ve.prototype,"outlined",void 0);je([h({type:Boolean})],ve.prototype,"disabled",void 0);je([h({type:Boolean})],ve.prototype,"error",void 0);je([h({type:Boolean})],ve.prototype,"fixedMenuPosition",void 0);je([h({type:Array})],ve.prototype,"options",void 0);je([I()],ve.prototype,"selectedOption",void 0);je([I()],ve.prototype,"optionsDisplayed",void 0);je([I()],ve.prototype,"focusOptions",void 0);je([I()],ve.prototype,"currentSearch",void 0);je([I()],ve.prototype,"lastSearchInputDate",void 0);je([B(".ft-select")],ve.prototype,"container",void 0);je([B(".ft-select--options")],ve.prototype,"optionsMenu",void 0);je([B(".ft-select--input-panel")],ve.prototype,"mainPanel",void 0);je([B("slot:not([name])")],ve.prototype,"optionsSlot",void 0)});var nx=u(()=>{"use strict"});var ax,sx=u(()=>{"use strict";Vu();ax={"ft-select":ve,"ft-select-option":Je}});var lx=u(()=>{"use strict";O();sx();U(ax)});var cx=u(()=>{"use strict";Vu();Fn();nx();lx()});var Ge,dx,ys=u(()=>{"use strict";T();O();Ge={display:i.create("--ft-skeleton--display","","DISPLAY","block"),width:i.create("--ft-skeleton--width","","SIZE","100%"),height:i.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:i.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:i.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:i.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:i.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:i.external(S.borderRadiusM,"Design system")},dx=R`
2152
+ `}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(t=>t.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var t,o;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((o=(t=this.selectedOptionElement)!==null&&t!==void 0?t:this.firstOption)===null||o===void 0||o.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];$l(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",Y.optionsHeight,0).then(({x:a,y:s})=>{this.optionsMenu.style.left=`${a}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var t;e.stopPropagation(),this.isSlotEmpty=an(this.optionsSlot);let o=(t=this.optionsSlot)===null||t===void 0?void 0:t.assignedElements().map(n=>n);o&&o.length>0&&(this.options=o)}onMainPanelKeyDown(e){switch(e.key){case" ":e.preventDefault(),e.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var t,o;let n,a=this.focusedOption?this.optionsList.indexOf(this.focusedOption):0;switch(e.key){case" ":case"Enter":e.preventDefault(),e.stopPropagation(),this.onSelectOption(e),this.optionsDisplayed=!1,(t=this.mainPanel)===null||t===void 0||t.focus();break;case"Escape":this.optionsDisplayed=!1,(o=this.mainPanel)===null||o===void 0||o.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(a-1+this.optionsList.length)%this.optionsList.length];break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),n=this.optionsList[(a+1)%this.optionsList.length];break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(n=this.handleAlphanumericPress(e.key));break}n?.focus()}isKeyAlphanumeric(e){let t=e.charCodeAt(0);return t>47&&t<58||t>64&&t<91||t>96&&t<123}handleAlphanumericPress(e){let t=new Date;t.getTime()-this.lastSearchInputDate.getTime()>r.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let o=this.options.find(n=>{var a;return((a=n.label)===null||a===void 0?void 0:a.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});return this.lastSearchInputDate=t,o&&this.optionsList.find(n=>n.value===o.value)}getOptionId(e){if(!e)return;let t=this.options.findIndex(o=>Me(o.value,e.value));if(t!==-1)return`option-${t}`}onSelectOption(e){e.stopPropagation(),this.setValue(e.target.value)}setValue(e,t=!0){let o=this.options.find(n=>Me(n.value,e));o&&this.selectOption(o,t)}selectOption(e,t=!0){var o,n;if(!Me((o=this.selectedOption)===null||o===void 0?void 0:o.value,e?.value)){this.selectedOption=e;for(let a of this.options)a.selected=a===e;t&&this.dispatchEvent(new CustomEvent("change",{detail:(n=this.selectedOption)===null||n===void 0?void 0:n.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};ve.elementDefinitions={"ft-input-label":Xt,"ft-typography":ie,"ft-ripple":Z,"ft-icon":xe,"ft-select-option":Je};ve.searchTimeoutMilliseconds=2e3;ve.styles=[Gr,tx];je([h({type:String})],ve.prototype,"label",void 0);je([h({type:String})],ve.prototype,"ariaLabel",void 0);je([h({type:String})],ve.prototype,"helper",void 0);je([h({type:Boolean})],ve.prototype,"outlined",void 0);je([h({type:Boolean})],ve.prototype,"disabled",void 0);je([h({type:Boolean})],ve.prototype,"error",void 0);je([h({type:Boolean})],ve.prototype,"fixedMenuPosition",void 0);je([h({type:Array})],ve.prototype,"options",void 0);je([I()],ve.prototype,"selectedOption",void 0);je([I()],ve.prototype,"optionsDisplayed",void 0);je([I()],ve.prototype,"focusOptions",void 0);je([I()],ve.prototype,"currentSearch",void 0);je([I()],ve.prototype,"lastSearchInputDate",void 0);je([B(".ft-select")],ve.prototype,"container",void 0);je([B(".ft-select--options")],ve.prototype,"optionsMenu",void 0);je([B(".ft-select--input-panel")],ve.prototype,"mainPanel",void 0);je([B("slot:not([name])")],ve.prototype,"optionsSlot",void 0)});var nx=u(()=>{"use strict"});var ax,sx=u(()=>{"use strict";Vu();ax={"ft-select":ve,"ft-select-option":Je}});var lx=u(()=>{"use strict";O();sx();U(ax)});var cx=u(()=>{"use strict";Vu();Fn();nx();lx()});var Ge,dx,ys=u(()=>{"use strict";T();O();Ge={display:i.create("--ft-skeleton--display","","DISPLAY","block"),width:i.create("--ft-skeleton--width","","SIZE","100%"),height:i.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:i.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:i.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:i.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:i.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:i.external(S.borderRadiusM,"Design system")},dx=R`
2151
2153
  :host {
2152
2154
  width: ${Ge.width};
2153
2155
  height: ${Ge.height};
@@ -2672,7 +2674,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2672
2674
  }
2673
2675
 
2674
2676
  ft-ripple {
2675
- ${A(le.opacityContentOnSurfaceHover,le.opacityContentOnSurfaceSelected)}
2677
+ ${A(ae.opacityContentOnSurfaceHover,ae.opacityContentOnSurfaceSelected)}
2676
2678
  }
2677
2679
  `]});var pr,xs=u(()=>{"use strict";T();Ht();yu();O();fs();Uu();pr=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return b``;let e=this.searchBar.isMobile(),t=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),o=b`
2678
2680
  ${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?b`
@@ -2892,7 +2894,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2892
2894
  </div>
2893
2895
  `}onSearchBarKeyDown(e){var t;switch(["Escape","Tab","Shift"].includes(e.key)||(this.searchBar.displaySuggestListbox=!0),e.key){case"Tab":this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0;break;case"Escape":this.suggestManager.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0),this.searchBar.mobileMenuOpen=!1;break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(t=this.suggestManager.selectedSuggestRemoveRecentButton)===null||t===void 0||t.click();else{let o=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;o?.click()}break}}onInput(e){let t=e.composedPath()[0];this.searchBar.query=t.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};Mi.styles=R`
2894
2896
 
2895
- `;bO([Ir()],Mi.prototype,"onSearchBarKeyDown",null)});var te,xx,ju,vO,j,Gu=u(()=>{"use strict";T();K();Ht();O();Yb();ke();yu();kv();wr();Fv();Zt();Uu();cx();fs();Vd();ot();bs();yx();vs();xs();bx();vx();Ru();Gt();te=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");xx={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},ju=class extends CustomEvent{constructor(e){super("change",{detail:e})}},vO=()=>{},j=class extends F{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new $r(xx,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new Wr(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Bt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new ur(this),this.selectedFacetsManager=new pr(this),this.desktopSearchBarManager=new Mi(this),this.mobileSearchBarManager=new Di(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new ne(10),this.updateLocalesDebouncer=new ne(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(t=>t.contentLocales).catch(()=>[]).then(t=>{this.availableContentLocales=t,this.availableContentLocalesInitialized=!0})}),this.updateFacets()},this.facetsLoaded=!1,this.updateFacetsDebouncer=new ne(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(t=>t===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,t)=>e.valueFilter&&t.valueFilter?this.compareValueFilters(e.valueFilter,t.valueFilter):e.dateFilter&&t.dateFilter?this.compareDateFilters(e.dateFilter,t.dateFilter):e.rangeFilter&&t.rangeFilter?this.compareRangeFilters(e.rangeFilter,t.rangeFilter):!1,this.compareValueFilters=(e,t)=>e.negative==t.negative&&e.values.length===t.values.length&&e.values.every(o=>t.values.includes(o)),this.compareDateFilters=(e,t)=>e.type===t.type,this.compareRangeFilters=(e,t)=>e.from===t.from&&e.to===t.to,this.compareFilters=(e,t)=>e.key===t.key&&this.compareUnknownFilters(e,t),this.compareRequests=(e,t)=>(e.contentLocale==null||t.contentLocale==null||e.contentLocale===t.contentLocale)&&e.metadataFilters.length===t.metadataFilters.length&&e.metadataFilters.every(o=>t.metadataFilters.some(n=>this.compareFilters(o,n)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(t=>{var o,n;return((n=(o=t.valueFilter)===null||o===void 0?void 0:o.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(t.key)}).map(t=>({id:t.key}));return[...this.displayedFilters.map(t=>({id:t})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===Bt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await _r(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return b`
2897
+ `;bO([Ir()],Mi.prototype,"onSearchBarKeyDown",null)});var te,xx,ju,vO,j,Gu=u(()=>{"use strict";T();K();Ht();O();Yb();ke();yu();kv();wr();Fv();Qt();Uu();cx();fs();Vd();ot();bs();yx();vs();xs();bx();vx();Ru();Gt();te=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");xx={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},ju=class extends CustomEvent{constructor(e){super("change",{detail:e})}},vO=()=>{},j=class extends F{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new $r(xx,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new Wr(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Bt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new ur(this),this.selectedFacetsManager=new pr(this),this.desktopSearchBarManager=new Mi(this),this.mobileSearchBarManager=new Di(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new ne(10),this.updateLocalesDebouncer=new ne(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(t=>t.contentLocales).catch(()=>[]).then(t=>{this.availableContentLocales=t,this.availableContentLocalesInitialized=!0})}),this.updateFacets()},this.facetsLoaded=!1,this.updateFacetsDebouncer=new ne(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(t=>t===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,t)=>e.valueFilter&&t.valueFilter?this.compareValueFilters(e.valueFilter,t.valueFilter):e.dateFilter&&t.dateFilter?this.compareDateFilters(e.dateFilter,t.dateFilter):e.rangeFilter&&t.rangeFilter?this.compareRangeFilters(e.rangeFilter,t.rangeFilter):!1,this.compareValueFilters=(e,t)=>e.negative==t.negative&&e.values.length===t.values.length&&e.values.every(o=>t.values.includes(o)),this.compareDateFilters=(e,t)=>e.type===t.type,this.compareRangeFilters=(e,t)=>e.from===t.from&&e.to===t.to,this.compareFilters=(e,t)=>e.key===t.key&&this.compareUnknownFilters(e,t),this.compareRequests=(e,t)=>(e.contentLocale==null||t.contentLocale==null||e.contentLocale===t.contentLocale)&&e.metadataFilters.length===t.metadataFilters.length&&e.metadataFilters.every(o=>t.metadataFilters.some(n=>this.compareFilters(o,n)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(t=>{var o,n;return((n=(o=t.valueFilter)===null||o===void 0?void 0:o.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(t.key)}).map(t=>({id:t.key}));return[...this.displayedFilters.map(t=>({id:t})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===Bt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await _r(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return b`
2896
2898
  <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
2897
2899
  <div class="sr-only" aria-live="polite" aria-atomic="true">
2898
2900
  ${this.renderLiveText()}
@@ -3091,9 +3093,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3091
3093
  }
3092
3094
 
3093
3095
  ft-ripple {
3094
- ${A(le.opacityContentOnSurfaceHover,le.opacityContentOnSurfaceSelected)}
3096
+ ${A(ae.opacityContentOnSurfaceHover,ae.opacityContentOnSurfaceSelected)}
3095
3097
  }
3096
- `});var Xr,Lx=u(()=>{"use strict";O();T();Ax();Ht();wr();ot();ke();Gt();uu();Zt();Xr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let t=Er.get(),{recentQuerySuggestions:o}=this.ftSearchInput;return b`
3098
+ `});var Xr,Lx=u(()=>{"use strict";O();T();Ax();Ht();wr();ot();ke();Gt();uu();Qt();Xr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let t=Er.get(),{recentQuerySuggestions:o}=this.ftSearchInput;return b`
3097
3099
  <div class="ft-search-input-suggestion ft-word-wrap"
3098
3100
  id="${this.listboxId}"
3099
3101
  role="listbox"
@@ -3132,7 +3134,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3132
3134
  </ft-button>
3133
3135
  `:k}
3134
3136
  </div>
3135
- `}onRemoveRecentQuery(e){var t;(t=this.ftSearchInput.stateManager)===null||t===void 0||t.removeRecentQuery(e)}onSelectOption(e){this.ftSearchInput.onSuggestionSelected(e)}get activeElementId(){let{selectedSuggestOptionIndex:e,selectedSuggestOptionRemove:t}=this.ftSearchInput;if(e!==void 0)return(t?"remove-suggestion-":"suggestion-")+e}get activeElement(){var e;let t=this.activeElementId;if(t!==void 0)return(e=this.ftSearchInput.shadowRoot.getElementById(t))!==null&&e!==void 0?e:void 0}recentQueriesCount(){return this.ftSearchInput.recentQuerySuggestions.length}suggestionsCount(){var e,t;return(t=(e=this.ftSearchInput.suggestResults)===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0}optionsCount(){return this.recentQueriesCount()+this.suggestionsCount()}clearSelection(){this.ftSearchInput.selectedSuggestOptionIndex=void 0,this.ftSearchInput.selectedSuggestOptionRemove=!1}selectNext(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=0:(this.ftSearchInput.selectedSuggestOptionIndex++,this.ftSearchInput.selectedSuggestOptionIndex>=this.optionsCount()&&this.clearSelection())}selectPrevious(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=this.optionsCount()-1:(this.ftSearchInput.selectedSuggestOptionIndex--,this.ftSearchInput.selectedSuggestOptionIndex<0&&this.clearSelection())}selectLeft(){this.ftSearchInput.selectedSuggestOptionIndex!==void 0&&(this.ftSearchInput.selectedSuggestOptionRemove?this.ftSearchInput.selectedSuggestOptionRemove=!1:this.clearSelection())}isRemovable(e){return e<this.recentQueriesCount()}selectRight(){let e=this.ftSearchInput.selectedSuggestOptionIndex;e!==void 0&&(!this.ftSearchInput.selectedSuggestOptionRemove&&this.isRemovable(e)?this.ftSearchInput.selectedSuggestOptionRemove=!0:this.clearSelection())}closeBox(){this.ftSearchInput.displaySuggestListbox=!1,this.clearSelection()}};Xr.elementDefinitions={"ft-ripple":Z,"ft-typography":ie,"ft-icon":xe,"ft-button":W};Xr.styles=[dn,Rx]});function SO(r){let e=r.liveQuery.trim().toLowerCase();return r.recentQueries.filter(t=>t.toLowerCase().includes(e)).slice(0,xO)}var Ke,xO,Oe,Ku=u(()=>{"use strict";T();O();kn();Do();Mt();uu();K();tt();Lx();Zt();ke();Gt();qa();Ke=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},xO=5;Oe=class extends pt(Ft){constructor(){super(),this.liveQuery="",this.recentQuerySuggestions=[],this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.selectedSuggestOptionRemove=!1,this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new Xr(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(Rr)}render(){var e;let t=this.suggestions.optionsCount()>0,o={"ft-search-input":!0,"ft-search-input--with-suggestions":t,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},n={...this.request,query:this.liveQuery},a=this.useCustomSearchPath?this.launchSearchPath:void 0,s=Er.get().serializeToCurrentPageIfPossible(n,a),l=!this.forceCloseSuggestion&&this.displaySuggestListbox&&t;return b`
3137
+ `}onRemoveRecentQuery(e){var t;(t=this.ftSearchInput.stateManager)===null||t===void 0||t.removeRecentQuery(e)}onSelectOption(e){this.ftSearchInput.onSuggestionSelected(e)}get activeElementId(){let{selectedSuggestOptionIndex:e,selectedSuggestOptionRemove:t}=this.ftSearchInput;if(e!==void 0)return(t?"remove-suggestion-":"suggestion-")+e}get activeElement(){var e;let t=this.activeElementId;if(t!==void 0)return(e=this.ftSearchInput.shadowRoot.getElementById(t))!==null&&e!==void 0?e:void 0}recentQueriesCount(){return this.ftSearchInput.recentQuerySuggestions.length}suggestionsCount(){var e,t;return(t=(e=this.ftSearchInput.suggestResults)===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0}optionsCount(){return this.recentQueriesCount()+this.suggestionsCount()}clearSelection(){this.ftSearchInput.selectedSuggestOptionIndex=void 0,this.ftSearchInput.selectedSuggestOptionRemove=!1}selectNext(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=0:(this.ftSearchInput.selectedSuggestOptionIndex++,this.ftSearchInput.selectedSuggestOptionIndex>=this.optionsCount()&&this.clearSelection())}selectPrevious(){this.ftSearchInput.selectedSuggestOptionIndex===void 0?this.ftSearchInput.selectedSuggestOptionIndex=this.optionsCount()-1:(this.ftSearchInput.selectedSuggestOptionIndex--,this.ftSearchInput.selectedSuggestOptionIndex<0&&this.clearSelection())}selectLeft(){this.ftSearchInput.selectedSuggestOptionIndex!==void 0&&(this.ftSearchInput.selectedSuggestOptionRemove?this.ftSearchInput.selectedSuggestOptionRemove=!1:this.clearSelection())}isRemovable(e){return e<this.recentQueriesCount()}selectRight(){let e=this.ftSearchInput.selectedSuggestOptionIndex;e!==void 0&&(!this.ftSearchInput.selectedSuggestOptionRemove&&this.isRemovable(e)?this.ftSearchInput.selectedSuggestOptionRemove=!0:this.clearSelection())}closeBox(){this.ftSearchInput.displaySuggestListbox=!1,this.clearSelection()}};Xr.elementDefinitions={"ft-ripple":Z,"ft-typography":ie,"ft-icon":xe,"ft-button":W};Xr.styles=[dn,Rx]});function SO(r){let e=r.liveQuery.trim().toLowerCase();return r.recentQueries.filter(t=>t.toLowerCase().includes(e)).slice(0,xO)}var Ke,xO,Oe,Ku=u(()=>{"use strict";T();O();kn();Do();Mt();uu();K();tt();Lx();Qt();ke();Gt();qa();Ke=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},xO=5;Oe=class extends pt(Ft){constructor(){super(),this.liveQuery="",this.recentQuerySuggestions=[],this.forceCloseSuggestion=!1,this.displaySuggestListbox=!1,this.selectedSuggestOptionRemove=!1,this.useCustomSearchPath=!1,this.triggerSearchOnClear=!1,this.focusOnDisplay=!1,this.suggestions=new Xr(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(Rr)}render(){var e;let t=this.suggestions.optionsCount()>0,o={"ft-search-input":!0,"ft-search-input--with-suggestions":t,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion},n={...this.request,query:this.liveQuery},a=this.useCustomSearchPath?this.launchSearchPath:void 0,s=Er.get().serializeToCurrentPageIfPossible(n,a),l=!this.forceCloseSuggestion&&this.displaySuggestListbox&&t;return b`
3136
3138
  <div class="${me(o)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
3137
3139
  <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
3138
3140
  <div class="ft-search-input--input-outline" part="input-outline">
@@ -3180,7 +3182,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3180
3182
  </div>
3181
3183
  </div>
3182
3184
  `}onSearchBarKeyDown(e){switch(this.forceCloseSuggestion=!1,["Escape","Tab","Shift"].includes(e.key)||(this.displaySuggestListbox=!0),e.key){case"Tab":this.suggestions.closeBox();break;case"Escape":this.displaySuggestListbox&&this.suggestions.optionsCount()>0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.closeBox());break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestions.selectNext();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestions.selectPrevious();break;case"ArrowLeft":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectLeft());break;case"ArrowRight":this.selectedSuggestOptionIndex!==void 0&&(e.stopPropagation(),e.preventDefault(),this.suggestions.selectRight());break;case"Enter":{let t=this.suggestions.activeElement;if(t){t.click();break}this.useCustomSearchPath?this.launchSearchButton.click():this.launchSearch(this.liveQuery);break}case"Backspace":e.stopPropagation();break}}onSearchBarKeyUp(e){e.key==="Backspace"&&e.stopPropagation()}onInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(this.input.value),this.forceCloseSuggestion=!1}onClearInput(){var e;(e=this.stateManager)===null||e===void 0||e.setLiveQuery(""),this.triggerSearchOnClear&&this.launchSearch(""),this.input.focus()}launchSearch(e){var t,o;this.forceCloseSuggestion=!0,this.dispatchEvent(new CustomEvent("change",{detail:e})),(t=this.stateManager)===null||t===void 0||t.setQuery(e),(o=this.stateManager)===null||o===void 0||o.addRecentQuery(e)}onSuggestionSelected(e){this.launchSearch(e),this.suggestions.closeBox()}onClick(){this.onFocus()}onFocus(){this.showSuggestionsOnFocus&&(this.displaySuggestListbox=!0),this.forceCloseSuggestion=!1}async focusInput(e=!0){this.showSuggestionsOnFocus=e,await _r(()=>this.input,50),this.input.focus(),this.showSuggestionsOnFocus=!0}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.onPointerDown),this.focusOnDisplay&&!bn&&this.focusInput(!1)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.onPointerDown)}};Oe.elementDefinitions={"ft-button":W,...Xr.elementDefinitions};Oe.styles=[jr,bo,Yd,...Xr.styles,mi];Ke([pe()],Oe.prototype,"request",void 0);Ke([pe()],Oe.prototype,"liveQuery",void 0);Ke([pe()],Oe.prototype,"suggestResults",void 0);Ke([pe({selector:SO})],Oe.prototype,"recentQuerySuggestions",void 0);Ke([I()],Oe.prototype,"forceCloseSuggestion",void 0);Ke([I()],Oe.prototype,"displaySuggestListbox",void 0);Ke([I()],Oe.prototype,"selectedSuggestOptionIndex",void 0);Ke([I()],Oe.prototype,"selectedSuggestOptionRemove",void 0);Ke([h()],Oe.prototype,"launchSearchPath",void 0);Ke([Li()],Oe.prototype,"placeholder",void 0);Ke([h({type:Boolean})],Oe.prototype,"useCustomSearchPath",void 0);Ke([h({type:Boolean})],Oe.prototype,"triggerSearchOnClear",void 0);Ke([h({type:Boolean})],Oe.prototype,"focusOnDisplay",void 0);Ke([B(".ft-search-input--input")],Oe.prototype,"input",void 0);Ke([B('[part="launch-search-in-input"]')],Oe.prototype,"launchSearchButton",void 0);Ke([Ir()],Oe.prototype,"onSearchBarKeyDown",null);Ke([Ir()],Oe.prototype,"onSearchBarKeyUp",null)});var kx,Tx=u(()=>{"use strict";Ku();kx={"ft-search-input":Oe}});var _x=u(()=>{"use strict";O();Tx();U(kx)});var Ix={};q(Ix,{FtSearchInput:()=>Oe,FtSearchInputCssVariables:()=>ye,styles:()=>Yd});var Px=u(()=>{"use strict";kn();Gb();Ku();_x()});var CO,qu,Zu=u(()=>{"use strict";T();CO={},qu=R`
3183
- `});var Nx=u(()=>{"use strict"});var Qu,$x=u(()=>{"use strict";Mt();Qu=sr.fromGwt("designedActionBlockAriaLabels")});var Dx,Lr,Yu=u(()=>{"use strict";T();O();Zu();Zt();Do();Mt();$x();Pi();Dx=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Lr=class extends pt(Ft){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.neededSearchRequests=[Qt.CLUSTERED_SEARCH],this.addI18nContext(Qu)}render(){return this.isLastPage?k:b`
3185
+ `});var Nx=u(()=>{"use strict"});var Qu,$x=u(()=>{"use strict";Mt();Qu=lr.fromGwt("designedActionBlockAriaLabels")});var Dx,Lr,Yu=u(()=>{"use strict";T();O();Zu();Qt();Do();Mt();$x();Pi();Dx=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Lr=class extends pt(Ft){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.neededSearchRequests=[Yt.CLUSTERED_SEARCH],this.addI18nContext(Qu)}render(){return this.isLastPage?k:b`
3184
3186
  <ft-button @click=${this.loadMore}>
3185
3187
  ${Qu.messages.searchPageLoadMore()}
3186
3188
  </ft-button>
@@ -3215,10 +3217,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3215
3217
  }
3216
3218
  `});var e0=u(()=>{"use strict"});var Cs,t0=u(()=>{"use strict";Cs=class{constructor(e){this.onResultSelected=e,this.registeredComponents=[],this.registeredMetadata=new Set}registerComponent(e){e.setResultStateManager(this),this.registeredComponents.push(e),this.bindComponent(e)}unregisterComponent(e){this.registeredComponents.splice(this.registeredComponents.indexOf(e),1),e.cluster=void 0,e.result=void 0,e.rank=void 0}registerMetadata(e){this.registeredMetadata.add(e)}unregisterMetadata(e){this.registeredMetadata.delete(e)}updateCluster(e,t){this.cluster=e,this.rank=t,this.selectResult(this.cluster.entries[0])}updateOpenResultInNewTab(e){this.openResultInNewTab=e}selectResult(e){this.result=e,this.onResultSelected(e),this.registeredComponents.forEach(t=>this.bindComponent(t))}clear(){this.registeredComponents=[]}bindComponent(e){e.cluster=this.cluster,e.result=this.result,e.rank=this.rank,e.openResultInNewTab=this.openResultInNewTab}}});var Os,lp,fr,cp=u(()=>{"use strict";T();K();O();sp();t0();Os=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},lp=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},fr=class extends F{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new Cs(e=>this.onResultSelected(e))}render(){return b`
3217
3219
  <slot @register-ft-search-result-component=${this.registerComponent}></slot>
3218
- `}onResultSelected(e){this.result=e,this.dispatchEvent(new lp(this.result))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1),e.has("openResultInNewTab")&&this.stateManager.updateOpenResultInNewTab(this.openResultInNewTab)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};fr.elementDefinitions={};fr.styles=Jx;Os([h({attribute:!1})],fr.prototype,"cluster",void 0);Os([h({attribute:!1,type:Boolean})],fr.prototype,"openResultInNewTab",void 0);Os([I()],fr.prototype,"result",void 0);Os([h()],fr.prototype,"index",void 0)});var r0,o0=u(()=>{"use strict";cp();r0={"ft-search-result-context":fr}});var i0=u(()=>{"use strict";O();o0();U(r0)});var n0=u(()=>{"use strict";sp();e0();cp();i0()});var Bi,a0,dp=u(()=>{"use strict";Mt();Bi=sr.build("searchResultsNumber"),a0={results:"{0} results","results[\\=1]":"1 result"}});var Uo,Rt,up=u(()=>{"use strict";T();Ht();K();O();ap();Do();n0();ip();rp();Mt();dp();Pi();Uo=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Rt=class extends pt(Ft){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>b`
3220
+ `}onResultSelected(e){this.result=e,this.dispatchEvent(new lp(this.result))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){this.stateManager.registerComponent(e)}update(e){super.update(e),e.has("cluster")&&this.cluster&&this.stateManager.updateCluster(this.cluster,this.index+1),e.has("openResultInNewTab")&&this.stateManager.updateOpenResultInNewTab(this.openResultInNewTab)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.clear()}};fr.elementDefinitions={};fr.styles=Jx;Os([h({attribute:!1})],fr.prototype,"cluster",void 0);Os([h({attribute:!1,type:Boolean})],fr.prototype,"openResultInNewTab",void 0);Os([I()],fr.prototype,"result",void 0);Os([h()],fr.prototype,"index",void 0)});var r0,o0=u(()=>{"use strict";cp();r0={"ft-search-result-context":fr}});var i0=u(()=>{"use strict";O();o0();U(r0)});var n0=u(()=>{"use strict";sp();e0();cp();i0()});var Bi,a0,dp=u(()=>{"use strict";Mt();Bi=lr.build("searchResultsNumber"),a0={results:"{0} results","results[\\=1]":"1 result"}});var Uo,Rt,up=u(()=>{"use strict";T();Ht();K();O();ap();Do();n0();ip();rp();Mt();dp();Pi();Uo=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Rt=class extends pt(Ft){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>b`
3219
3221
  <ft-search-result-title></ft-search-result-title>
3220
3222
  <ft-search-result-abstract></ft-search-result-abstract>
3221
- `,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.neededSearchRequests=[Qt.CLUSTERED_SEARCH],this.addI18nContext(Bi)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return b`
3223
+ `,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.neededSearchRequests=[Yt.CLUSTERED_SEARCH],this.addI18nContext(Bi)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return b`
3222
3224
  <ft-typography part="no-results-message" variant="body1">${Bi.messages.results(0)}</ft-typography>
3223
3225
  `;let e=this.buildClusters();return ge(e,t=>t.id,(t,o)=>{var n;return b`
3224
3226
  <ft-search-result-context .cluster=${t} index="${o}"
@@ -3227,7 +3229,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3227
3229
  </ft-search-result-context>
3228
3230
  `})}update(e){var t;super.update(e),(e.has("clusterSortCriterion")||e.has("stateManager"))&&this.clusterSortCriterion&&((t=this.stateManager)===null||t===void 0||t.setClusterSortCriterion(this.clusterSortCriterion))}contentAvailableCallback(e){var t;if(super.contentAvailableCallback(e),e.has("requestWithoutPaging")){let o=(t=this.renderRoot)===null||t===void 0?void 0:t.querySelector("ft-search-result-context");o&&_c.scrollIntoViewIfPossible(o,{position:1,behavior:"smooth"})}}onClusterChange(e,t){this.selectedResultByCluster[e]=t}buildClusters(){return this.clusterPolicy==="display-all-results"?this.buildAllResultsClusters():this.buildFullClusters()}buildFullClusters(){var e,t;return(t=(e=this.results)===null||e===void 0?void 0:e.map(o=>({id:ta(o.entries[0]),entries:o.entries})))!==null&&t!==void 0?t:[]}buildAllResultsClusters(){var e,t,o;let n=(t=(e=this.results)===null||e===void 0?void 0:e.flatMap(a=>a.entries.map(s=>({id:ta(s),entries:[s]}))))!==null&&t!==void 0?t:[];return this.paging&&this.paging.page===1?n.slice(0,(o=this.paging.perPage)!==null&&o!==void 0?o:20):n}};Rt.styles=np;Uo([h({type:String,attribute:"cluster-policy"})],Rt.prototype,"clusterPolicy",void 0);Uo([h({type:Boolean})],Rt.prototype,"displayNoResultsMessage",void 0);Uo([h({attribute:!1})],Rt.prototype,"renderResult",void 0);Uo([de([])],Rt.prototype,"clusterSortCriterion",void 0);Uo([pe({selector:r=>({...r.request,paging:void 0})})],Rt.prototype,"requestWithoutPaging",void 0);Uo([pe({selector:r=>r.request.paging})],Rt.prototype,"paging",void 0);Uo([pe()],Rt.prototype,"results",void 0)});var s0,l0=u(()=>{"use strict";up();s0={"ft-search-results":Rt}});var c0=u(()=>{"use strict";O();l0();U(s0)});var d0={};q(d0,{FtSearchResults:()=>Rt,FtSearchResultsCssVariables:()=>wO,styles:()=>np});var u0=u(()=>{"use strict";ap();Xx();up();c0()});var RO,pp,fp=u(()=>{"use strict";T();RO={},pp=R`
3229
3231
 
3230
- `});var p0=u(()=>{"use strict"});var f0,kr,hp=u(()=>{"use strict";T();O();fp();Do();Mt();dp();ke();Pi();f0=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},kr=class extends gn(pt(Ft)){constructor(){super(),this.ariaNotificationDebouncer=new ne(100),this.searchNumberOfResults={context:"officialContext",key:"searchNumberOfResults",message:""},this.neededSearchRequests=[Qt.CLUSTERED_SEARCH],this.addI18nContext(Bi,a0)}render(){return this.paging==null?k:b`
3232
+ `});var p0=u(()=>{"use strict"});var f0,kr,hp=u(()=>{"use strict";T();O();fp();Do();Mt();dp();ke();Pi();f0=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},kr=class extends gn(pt(Ft)){constructor(){super(),this.ariaNotificationDebouncer=new ne(100),this.searchNumberOfResults={context:"officialContext",key:"searchNumberOfResults",message:""},this.neededSearchRequests=[Yt.CLUSTERED_SEARCH],this.addI18nContext(Bi,a0)}render(){return this.paging==null?k:b`
3231
3233
  <ft-typography variant="${fe.body1}">
3232
3234
  ${Bi.messages.results(this.paging.totalClustersCount)}
3233
3235
  </ft-typography>
@@ -3245,7 +3247,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3245
3247
  border-style: ${he.borderStyle};
3246
3248
  border-width: 1px;
3247
3249
  border-radius: ${he.borderRadius};
3248
- ${A(le.borderRadius,he.borderRadius)};
3250
+ ${A(ae.borderRadius,he.borderRadius)};
3249
3251
  box-shadow: ${he.elevation02};
3250
3252
  position: relative;
3251
3253
  width: 100%;
@@ -3284,7 +3286,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3284
3286
  outline-width: ${he.selectedOutlineWidth};
3285
3287
  outline-color: ${he.selectedOutlineColor};
3286
3288
  border-radius: ${he.selectedBorderRadius};
3287
- ${A(le.borderRadius,he.selectedBorderRadius)};
3289
+ ${A(ae.borderRadius,he.selectedBorderRadius)};
3288
3290
  box-shadow: ${he.elevation04};
3289
3291
  }
3290
3292
 
@@ -3374,7 +3376,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3374
3376
 
3375
3377
  ft-card:hover {
3376
3378
  ${A(he.hoverBorderColor,Xe.resultHoverBorderColor)};
3377
- ${A(le.color,Xe.resultHoverBackgroundColor)};
3379
+ ${A(ae.color,Xe.resultHoverBackgroundColor)};
3378
3380
  }
3379
3381
 
3380
3382
  .result-container {
@@ -3387,7 +3389,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3387
3389
  text-decoration: none;
3388
3390
  color: inherit;
3389
3391
  }
3390
- `;Mt();O();K();var Ab;(function(r){r.clusteringHelperCreated="clustering-helper-created",r.mapAttachmentsUpdate="map-attachments-update",r.visibleTopicChange="visible-topic-change",r.requestedTopicNotFound="requested-topic-not-found"})(Ab||(Ab={}));var Lb;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Lb||(Lb={}));var dO=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},tu=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},eu=Symbol("registerInterval"),uO=Ee(Symbol("toFtReaderComponent"),function(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[eu]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[eu]):this.dispatchEvent(new tu)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=eu,dO([I()],t.prototype,"stateManager",void 0),t}),rs=class extends uO(vt){};K();ru();Mt();var ou=sr.build("designedReaderSearchInDocument");T();K();O();ot();ke();tt();var Ti=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ft=class extends F{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1,this.noContent=!1,this.oneLineHeader=!1}render(){let e={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader,"no-content":this.noContent,"one-line-header":this.oneLineHeader};return b`
3392
+ `;Mt();O();K();var Ab;(function(r){r.clusteringHelperCreated="clustering-helper-created",r.mapAttachmentsUpdate="map-attachments-update",r.visibleTopicChange="visible-topic-change",r.requestedTopicNotFound="requested-topic-not-found"})(Ab||(Ab={}));var Lb;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Lb||(Lb={}));var dO=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},tu=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},eu=Symbol("registerInterval"),uO=Ee(Symbol("toFtReaderComponent"),function(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[eu]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[eu]):this.dispatchEvent(new tu)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=eu,dO([I()],t.prototype,"stateManager",void 0),t}),rs=class extends uO(vt){};K();ru();Mt();var ou=lr.build("designedReaderSearchInDocument");T();K();O();ot();ke();tt();var Ti=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ft=class extends F{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1,this.noContent=!1,this.oneLineHeader=!1}render(){let e={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader,"no-content":this.noContent,"one-line-header":this.oneLineHeader};return b`
3391
3393
  <div id="container" part="container" class="${me(e)}">
3392
3394
  ${this.clickable?b`
3393
3395
  <ft-ripple primary ?selected=${this.selected}></ft-ripple>