@fluid-topics/ft-reader-search-in-document 2.1.19 → 2.1.20

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,11 +1,11 @@
1
- "use strict";(()=>{var v0=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)v0(r,t,{get:e[t],enumerable:!0})};var mp=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 k=C.prototype.attributeChangedCallback,H=new Set(C.observedAttributes||[]);y(C,H,k);let ce={elementClass:C,connectedCallback:C.prototype.connectedCallback,disconnectedCallback:C.prototype.disconnectedCallback,adoptedCallback:C.prototype.adoptedCallback,attributeChangedCallback:k,formAssociated:C.formAssociated,formAssociatedCallback:C.prototype.formAssociatedCallback,formDisabledCallback:C.prototype.formDisabledCallback,formResetCallback:C.prototype.formResetCallback,formStateRestoreCallback:C.prototype.formStateRestoreCallback,observedAttributes:H};this._definitionsByTag.set(E,ce),this._definitionsByClass.set(C,ce);let J=t.call(o,E);J||(J=m(E),e.call(o,E,J)),this===window.customElements&&(s.set(C,ce),ce.standInClass=J);let ee=this._awaitingUpgrade.get(E);if(ee){this._awaitingUpgrade.delete(E);for(let V of ee)a.delete(V),x(V,ce,!0)}let M=this._whenDefinedPromises.get(E);return M!==void 0&&(M.resolve(C),this._whenDefinedPromises.delete(E)),C}upgrade(){L.push(this),o.upgrade.apply(o,arguments),L.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 k=this._whenDefinedPromises.get(E);return k===void 0&&(k={},k.promise=new Promise(H=>k.resolve=H),this._whenDefinedPromises.set(E,k)),k.promise}_upgradeWhenDefined(E,C,k){let H=this._awaitingUpgrade.get(C);H||this._awaitingUpgrade.set(C,H=new Set),k?H.add(E):H.delete(E)}};let d;window.HTMLElement=function(){let C=d;if(C)return d=void 0,C;let k=s.get(this.constructor);if(!k)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return C=Reflect.construct(r,[],k.standInClass),Object.setPrototypeOf(C,this.constructor.prototype),n.set(C,k),C},window.HTMLElement.prototype=r.prototype;let f=E=>E===document||E instanceof ShadowRoot,g=E=>{let C=E.getRootNode();if(!f(C)){let k=L[L.length-1];if(k instanceof CustomElementRegistry)return k;C=k.getRootNode(),f(C)||(C=l.get(C)?.getRootNode()||document)}return C.customElements},m=E=>class{static get formAssociated(){return!0}constructor(){let k=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(k,HTMLElement.prototype);let H=g(k)||window.customElements,ce=H._getDefinition(E);return ce?x(k,ce):a.set(k,H),k}connectedCallback(){let k=n.get(this);k?k.connectedCallback&&k.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,E,!0)}disconnectedCallback(){let k=n.get(this);k?k.disconnectedCallback&&k.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,E,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let k=n.get(this);k&&k.formAssociated&&k?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let k=n.get(this);k?.formAssociated&&k?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let k=n.get(this);k?.formAssociated&&k?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let k=n.get(this);k?.formAssociated&&k?.formStateRestoreCallback?.apply(this,arguments)}},y=(E,C,k)=>{if(C.size===0||k===void 0)return;let H=E.prototype.setAttribute;H&&(E.prototype.setAttribute=function(ee,M){let V=ee.toLowerCase();if(C.has(V)){let se=this.getAttribute(V);H.call(this,V,M),k.call(this,V,se,M)}else H.call(this,V,M)});let ce=E.prototype.removeAttribute;ce&&(E.prototype.removeAttribute=function(ee){let M=ee.toLowerCase();if(C.has(M)){let V=this.getAttribute(M);ce.call(this,M),k.call(this,M,V,null)}else ce.call(this,M)});let J=E.prototype.toggleAttribute;J&&(E.prototype.toggleAttribute=function(ee,M){let V=ee.toLowerCase();if(C.has(V)){let se=this.getAttribute(V);J.call(this,V,M);let qe=this.getAttribute(V);k.call(this,V,se,qe)}else J.call(this,V,M)})},v=E=>{let C=Object.getPrototypeOf(E);if(C!==window.HTMLElement)return C===r?Object.setPrototypeOf(E,window.HTMLElement):v(C)},x=(E,C,k=!1)=>{Object.setPrototypeOf(E,C.elementClass.prototype),n.set(E,C),d=E;try{new C.elementClass}catch{v(C.elementClass),new C.elementClass}C.attributeChangedCallback&&C.observedAttributes.forEach(H=>{E.hasAttribute(H)&&C.attributeChangedCallback.call(E,H,null,E.getAttribute(H))}),k&&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 L=[document],P=(E,C,k=void 0)=>{let H=(k?Object.getPrototypeOf(k):E.prototype)[C];E.prototype[C]=function(){L.push(this);let ce=H.apply(k||this,arguments);return ce!==void 0&&l.set(ce,this),L.pop(),ce}};P(ShadowRoot,"createElement",document),P(ShadowRoot,"importNode",document),P(Element,"insertAdjacentHTML");let B=(E,C)=>{let k=Object.getOwnPropertyDescriptor(E.prototype,C);Object.defineProperty(E.prototype,C,{...k,set(H){L.push(this),k.set.call(this,H),L.pop()}})};if(B(Element,"innerHTML"),B(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,k=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...ee){let M=C.call(this,...ee);return E.set(M,this),M},k.forEach(ee=>{let M=window.ElementInternals.prototype,V=M[ee];M[ee]=function(...se){let qe=E.get(this);if(n.get(qe).formAssociated===!0)return V?.call(this,...se);throw new DOMException(`Failed to execute ${V} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class H extends Array{constructor(M){super(...M),this._elements=M}get value(){return this._elements.find(M=>M.checked===!0)?.value||""}}class ce{constructor(M){let V=new Map;M.forEach((se,qe)=>{let Es=se.getAttribute("name"),hp=V.get(Es)||[];this[+qe]=se,hp.push(se),V.set(Es,hp)}),this.length=M.length,V.forEach((se,qe)=>{se&&(se.length===1?this[qe]=se[0]:this[qe]=new H(se))})}namedItem(M){return this[M]}}let J=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let ee=J.get.call(this,[]),M=[];for(let V of ee){let se=n.get(V);(!se||se.formAssociated===!0)&&M.push(V)}return new ce(M)}})}}});var gp=u(()=>{"use strict";mp();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,Bi,ws,yp,zo,eo,R,Ui,zn,Hn=u(()=>{Un=globalThis,Bi=Un.ShadowRoot&&(Un.ShadyCSS===void 0||Un.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ws=Symbol(),yp=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(Bi&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=yp.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&yp.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)},Ui=(r,e)=>{if(Bi)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=Bi?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return eo(t)})(r):r});var x0,S0,C0,O0,E0,w0,Vn,bp,R0,A0,zi,Ho,Hi,vp,Rt,Vo=u(()=>{Hn();Hn();({is:x0,defineProperty:S0,getOwnPropertyDescriptor:C0,getOwnPropertyNames:O0,getOwnPropertySymbols:E0,getPrototypeOf:w0}=Object),Vn=globalThis,bp=Vn.trustedTypes,R0=bp?bp.emptyScript:"",A0=Vn.reactiveElementPolyfillSupport,zi=(r,e)=>r,Ho={toAttribute(r,e){switch(e){case Boolean:r=r?R0: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}},Hi=(r,e)=>!x0(r,e),vp={attribute:!0,type:String,converter:Ho,reflect:!1,useDefault:!1,hasChanged:Hi};Symbol.metadata??=Symbol("metadata"),Vn.litPropertyMetadata??=new WeakMap;Rt=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=vp){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&&S0(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:a}=C0(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)??vp}static _$Ei(){if(this.hasOwnProperty(zi("elementProperties")))return;let e=w0(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(zi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(zi("properties"))){let t=this.properties,o=[...O0(t),...E0(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 Ui(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;let l=s.fromAttribute(t,a.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,t,o,n=!1,a){if(e!==void 0){let s=this.constructor;if(n===!1&&(a=this[e]),o??=s.getPropertyOptions(e),!((o.hasChanged??Hi)(a,t)||o.useDefault&&o.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$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){}};Rt.elementStyles=[],Rt.shadowRootOptions={mode:"open"},Rt[zi("elementProperties")]=new Map,Rt[zi("finalized")]=new Map,A0?.({ReactiveElement:Rt}),(Vn.reactiveElementVersions??=[]).push("2.1.2")});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===$e)return e;let n=o!==void 0?t._$Co?.[o]:t._$Cl,a=ji(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,xp,Wn,Sp,Ls,fr,ks,L0,oo,Wi,ji,Ts,Ap,Rs,Vi,Cp,Op,to,Ep,wp,Lp,_s,b,Is,Ps,$e,T,Rp,ro,Tp,Gi,jn,Wo,no,Gn,Kn,qn,Zn,Ns,k0,$s,At=u(()=>{As=globalThis,xp=r=>r,Wn=As.trustedTypes,Sp=Wn?Wn.createPolicy("lit-html",{createHTML:r=>r}):void 0,Ls="$lit$",fr=`lit$${Math.random().toFixed(9).slice(2)}$`,ks="?"+fr,L0=`<${ks}>`,oo=document,Wi=()=>oo.createComment(""),ji=r=>r===null||typeof r!="object"&&typeof r!="function",Ts=Array.isArray,Ap=r=>Ts(r)||typeof r?.[Symbol.iterator]=="function",Rs=`[
2
- \f\r]`,Vi=/<(?:(!--|\/[^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),$e=Symbol.for("lit-noChange"),T=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=Vi;for(let l=0;l<t;l++){let d=r[l],f,g,m=-1,y=0;for(;y<d.length&&(s.lastIndex=y,g=s.exec(d),g!==null);)y=s.lastIndex,s===Vi?g[1]==="!--"?s=Cp:g[1]!==void 0?s=Op:g[2]!==void 0?(Lp.test(g[2])&&(n=RegExp("</"+g[2],"g")),s=to):g[3]!==void 0&&(s=to):s===to?g[0]===">"?(s=n??Vi,m=-1):g[1]===void 0?m=-2:(m=s.lastIndex-g[2].length,f=g[1],s=g[3]===void 0?to:g[3]==='"'?wp:Ep):s===wp||s===Ep?s=to:s===Cp||s===Op?s=Vi:(s=to,n=void 0);let v=s===to&&r[l+1].startsWith("/>")?" ":"";a+=s===Vi?d+L0:m>=0?(o.push(f),d.slice(0,m)+Ls+d.slice(m)+fr+v):d+fr+(m===-2?l:v)}return[kp(r,a+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},Gi=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,g]=Tp(e,t);if(this.el=r.createElement(f,o),ro.currentNode=this.el.content,t===2||t===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(n=ro.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let m of n.getAttributeNames())if(m.endsWith(Ls)){let y=g[s++],v=n.getAttribute(m).split(fr),x=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:x[2],strings:v,ctor:x[1]==="."?Gn:x[1]==="?"?Kn:x[1]==="@"?qn:no}),n.removeAttribute(m)}else m.startsWith(fr)&&(d.push({type:6,index:a}),n.removeAttribute(m));if(Lp.test(n.tagName)){let m=n.textContent.split(fr),y=m.length-1;if(y>0){n.textContent=Wn?Wn.emptyScript:"";for(let v=0;v<y;v++)n.append(m[v],Wi()),ro.nextNode(),d.push({type:2,index:++a});n.append(m[y],Wi())}}}else if(n.nodeType===8)if(n.data===ks)d.push({type:2,index:a});else{let m=-1;for(;(m=n.data.indexOf(fr,m+1))!==-1;)d.push({type:7,index:a}),m+=fr.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=T,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),ji(e)?e===T||e==null||e===""?(this._$AH!==T&&this._$AR(),this._$AH=T):e!==this._$AH&&e!==$e&&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!==T&&ji(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=Gi.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 Gi(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(Wi()),this.O(Wi()),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!==this._$AB;){let o=xp(e).nextSibling;xp(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=T,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=T}_$AI(e,t=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=io(this,e,t,0),s=!ji(e)||e!==this._$AH&&e!==$e,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===$e&&(f=this._$AH[d]),s||=!ji(f)||f!==this._$AH[d],f===T?e=T:e!==T&&(e+=(f??"")+a[d+1]),this._$AH[d]=f}s&&!n&&this.j(e)}j(e){e===T?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===T?void 0:e}},Kn=class extends no{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==T)}},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)??T)===$e)return;let o=this._$AH,n=e===T&&o!==T||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==T&&(o===T||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:fr,A:ks,C:1,L:Tp,R:jn,D:Ap,V:io,I:Wo,H:no,N:Kn,U:qn,B:Gn,F:Zn},k0=As.litHtmlPolyfillSupport;k0?.(Gi,Wo),(As.litHtmlVersions??=[]).push("3.3.3");$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(Wi(),a),a,void 0,t??{})}return n._$AI(r),n}});var Ds,Lt,T0,_p,Ms=u(()=>{Vo();Vo();At();At();Ds=globalThis,Lt=class extends Rt{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 $e}};Lt._$litElement$=!0,Lt.finalized=!0,Ds.litElementHydrateSupport?.({LitElement:Lt});T0=Ds.litElementPolyfillSupport;T0?.({LitElement:Lt});_p={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(Ds.litElementVersions??=[]).push("4.2.2")});var HO,Ip=u(()=>{HO=!1});var Fs={};q(Fs,{CSSResult:()=>zo,LitElement:()=>Lt,ReactiveElement:()=>Rt,_$LE:()=>_p,_$LH:()=>Ns,adoptStyles:()=>Ui,css:()=>R,defaultConverter:()=>Ho,getCompatibleStyle:()=>zn,html:()=>b,isServer:()=>HO,mathml:()=>Ps,noChange:()=>$e,notEqual:()=>Hi,nothing:()=>T,render:()=>$s,supportsAdoptingStyleSheets:()=>Bi,svg:()=>Is,unsafeCSS:()=>eo});var _=u(()=>{Vo();At();Ms();Ip()});var _0,Pp=u(()=>{_0=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 I0,Np,Bs=u(()=>{Vo();I0={attribute:!0,type:String,converter:Ho,reflect:!1,hasChanged:Hi},Np=(r=I0,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,!0,l)},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,!0,l)}}throw Error("Unsupported decorator location: "+o)}});function I(r){return h({...r,state:!0,attribute:!1})}var $p=u(()=>{Bs();});function P0(r){return(e,t)=>{let o=typeof e=="function"?e:e[t];Object.assign(o,r)}}var Dp=u(()=>{});var Ft,jo=u(()=>{Ft=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t)});function F(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 Ft(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 Ft(t,o,{get(){return a(this)}})}}var Mp=u(()=>{jo();});function Us(r){return(e,t)=>Ft(e,t,{get(){return(this.renderRoot??(N0??=document.createDocumentFragment())).querySelectorAll(r)}})}var N0,Fp=u(()=>{jo();});function $0(r){return(e,t)=>Ft(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 Ft(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 Ft(e,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var zp=u(()=>{jo();});var Vs={};q(Vs,{customElement:()=>_0,eventOptions:()=>P0,property:()=>h,query:()=>F,queryAll:()=>Us,queryAssignedElements:()=>zs,queryAssignedNodes:()=>Hs,queryAsync:()=>$0,standardProperty:()=>Np,state:()=>I});var K=u(()=>{Pp();Bs();$p();Dp();Mp();Fp();Bp();Up();zp()});var Yt,ht,kt,ao=u(()=>{Yt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ht=r=>(...e)=>({_$litDirective$:r,values:e}),kt=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 D0,Hp,Wp,Vp,Go,Tr,M0,jp,Gp,Qn,Ws=u(()=>{At();({I:D0}=Ns),Hp=r=>r,Wp=r=>r.strings===void 0,Vp=()=>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(Vp(),n),s=o.insertBefore(Vp(),n);t=new D0(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=Hp(d).nextSibling;Hp(o).insertBefore(d,n),d=f}}}return t},Tr=(r,e,t=r)=>(r._$AI(e,t),r),M0={},jp=(r,e=M0)=>r._$AH=e,Gp=r=>r._$AH,Qn=r=>{r._$AR(),r._$AA.remove()}});var Kp,ye,qp=u(()=>{At();ao();Ws();Kp=(r,e,t)=>{let o=new Map;for(let n=e;n<=t;n++)o.set(r[n],n);return o},ye=ht(class extends kt{constructor(r){if(super(r),r.type!==Yt.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=Gp(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,g,m=0,y=n.length-1,v=0,x=a.length-1;for(;m<=y&&v<=x;)if(n[m]===null)m++;else if(n[y]===null)y--;else if(l[m]===s[v])d[v]=Tr(n[m],a[v]),m++,v++;else if(l[y]===s[x])d[x]=Tr(n[y],a[x]),y--,x--;else if(l[m]===s[x])d[x]=Tr(n[m],a[x]),Go(r,d[x+1],n[m]),m++,x--;else if(l[y]===s[v])d[v]=Tr(n[y],a[v]),Go(r,n[m],n[y]),y--,v++;else if(f===void 0&&(f=Kp(s,v,x),g=Kp(l,m,y)),f.has(l[m]))if(f.has(l[y])){let w=g.get(s[v]),L=w!==void 0?n[w]:null;if(L===null){let P=Go(r,n[m]);Tr(P,a[v]),d[v]=P}else d[v]=Tr(L,a[v]),Go(r,n[m],L),n[w]=null;v++}else Qn(n[y]),y--;else Qn(n[m]),m++;for(;v<=x;){let w=Go(r,d[x+1]);Tr(w,a[v]),d[v++]=w}for(;m<=y;){let w=n[m++];w!==null&&Qn(w)}return this.ut=s,jp(r,d),$e}})});var js={};q(js,{repeat:()=>ye});var Bt=u(()=>{qp()});var ge,Zp=u(()=>{At();ao();ge=ht(class extends kt{constructor(r){if(super(r),r.type!==Yt.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 $e}})});var Gs={};q(Gs,{classMap:()=>ge});var tt=u(()=>{Zp()});var Qp,F0,B0,Yp=u(()=>{At();ao();Qp="important",F0=" !"+Qp,B0=ht(class extends kt{constructor(r){if(super(r),r.type!==Yt.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(F0);o.includes("-")||a?t.setProperty(o,a?n.slice(0,-11):n,a?Qp:""):t[o]=n}}return $e}})});var Ks={};q(Ks,{styleMap:()=>B0});var Xp=u(()=>{Yp()});var Ko,so,Jp=u(()=>{At();ao();Ko=class extends kt{constructor(e){if(super(e),this.it=T,e.type!==Yt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===T||e==null)return this._t=void 0,this.it=e;if(e===$e)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=ht(Ko)});var qs={};q(qs,{UnsafeHTMLDirective:()=>Ko,unsafeHTML:()=>so});var Ki=u(()=>{Jp()});var Zs={};q(Zs,{CancelablePromise:()=>Yn,CanceledPromiseError:()=>Xt,cancelable:()=>qo});var Xt,Yn,qo,Xn=u(()=>{"use strict";Xt=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 Xt("Promise has been canceled",n)):t(n)},n=>{this.isCanceled?o(new Xt("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:()=>qi,dateProperty:()=>z0,isNumber:()=>ef,jsonProperty:()=>ue,numberProperty:()=>Tt,optionalNumberProperty:()=>U0});function ue(r,e){return h({type:Object,converter:{fromAttribute:t=>{if(t==null)return mt(r);try{return JSON.parse(t)}catch{return mt(r)}},toAttribute:t=>JSON.stringify(t)},hasChanged:gt,...e??{}})}function U0(r){return Tt(r)}function Tt(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 ef(e)?hr(n,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...r??{}})}function ef(r){return!isNaN(parseFloat(r))}function z0(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 qi,lo=u(()=>{"use strict";K();rt();qi=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)}});var tl={};q(tl,{applyMixinOnce:()=>we,customElements:()=>U,dateReviver:()=>V0,deepCopy:()=>mt,deepEqual:()=>De,delay:()=>Jn,eventPathContainsMatchingElement:()=>Ys,everyDeep:()=>H0,flatDeep:()=>yt,forEachDeep:()=>tf,getComposedPathTo:()=>Js,hasChanged:()=>gt,ignoreComposingEvents:()=>Ir,last:()=>Xs,minmax:()=>hr,parseDate:()=>of,randomId:()=>el,someDeep:()=>rf,unslotText:()=>Zo,waitFor:()=>_r,waitUntil:()=>Zi});async function Zi(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 yt(r,e){return r.flatMap(t=>[t,...yt(e(t),e)])}function tf(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 rf(r,e,t){let o=!1;return tf(r,e,(n,a,s,l)=>(o=!!t(n,a,s,l),!o)),o}function H0(r,e,t){return!rf(r,e,(o,n,a,s)=>!t(o,n,a,s))}function V0(...r){return(e,t)=>r.includes(e)?of(t):t}function of(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 W0(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(!De(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(!De(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(!De(r[s],e[s]))return!1}return!0}return r!==r&&e!==e||r==null&&e==null}function De(r,e){try{return W0(r,e)}catch{return!1}}function gt(r,e){return!De(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 hr(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 mt(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 we(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))qi(e)(t)}var Jn,rt=u(()=>{"use strict";lo();Jn=r=>new Promise(e=>setTimeout(e,r))});var il={};q(il,{FtNotificationEvent:()=>Qi,PostResizeEvent:()=>ol,PreResizeEvent:()=>rl,WithEventBus:()=>mr,withEventBus:()=>ea});var Qi,rl,ol,ea,mr,Qo=u(()=>{"use strict";rt();Qi=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=we(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)}}}),mr=class extends ea(Object){}});var nl={};q(nl,{CacheRegistry:()=>Jt,ClearCacheEvent:()=>Yi});var Yi,Jt,al=u(()=>{"use strict";Xn();Qo();Yi=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},Jt=class extends mr{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 Yi(o)),o}clear(e,t=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),t&&this.dispatchEvent(new Yi([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:()=>j0,accessResult:()=>_t,accessResultId:()=>ta,accessResultUrl:()=>sl});function _t(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 j0(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=_t(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(m=>r.extractResultMetadata({result:m,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(m=>m??{key:e,label:f,value:void 0,displayValue:o}).filter(m=>m.value!=d?.value).filter((m,y,v)=>v.findIndex(x=>x.value===m.value)===y).map(m=>({result:this.findBestResultForMetadataValue(e,m.value),metadata:m})).sort((m,y)=>this.compareMetadata(m.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:()=>ae});var ae,oa=u(()=>{"use strict";ae=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,te=u(()=>{_();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,nf,af,sf,lf,cf,df,uf,pf,ff,hf,mf,gf,yf,bf,vf,xf,G0,K0,ie=u(()=>{te();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)")},nf={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")},af={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")},sf={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")},lf={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")},cf={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")},df={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")},uf={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")},pf={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")},ff={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")},hf={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")},mf={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")},gf={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")},yf={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")},bf={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")},vf={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")},xf={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")},G0={display:nf,"title-1":af,"title-2":sf,"title-3":lf,"body-1-regular":cf,"body-1-medium":df,"body-1-semibold":uf,"body-2-regular":pf,"body-2-medium":ff,"body-2-medium-underline":hf,"body-2-semibold":mf,"caption-1-medium":gf,"caption-1-semibold":yf,"caption-2-medium":bf,"caption-2-semibold":vf,"caption-2-bold":xf},K0=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"]});var p,pe=u(()=>{te();ie();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 q0,Sf=u(()=>{te();ie();pe();q0={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 Z0,Cf=u(()=>{te();ie();pe();Z0={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 Q0,Of=u(()=>{te();ie();pe();Q0={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 Y0,Ef=u(()=>{te();ie();pe();Y0={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 X0,wf=u(()=>{te();ie();pe();X0={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 J0,Rf=u(()=>{te();ie();pe();J0={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 eS,Af=u(()=>{te();ie();pe();eS={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 tS,Lf=u(()=>{te();ie();pe();tS={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 rS,kf=u(()=>{te();ie();pe();rS={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 oS,Tf=u(()=>{te();ie();pe();oS={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),horizontalGap:i.extend("--ftds-link-horizontal-gap","",c.spacing1)}});var iS,_f=u(()=>{te();ie();pe();iS={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 nS,If=u(()=>{te();ie();pe();nS={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 aS,Pf=u(()=>{te();ie();pe();aS={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 sS,Nf=u(()=>{te();ie();pe();sS={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 lS,$f=u(()=>{te();ie();pe();lS={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 cS,Df=u(()=>{te();ie();cS={contentHorizontalPadding:i.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:i.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)}});var dS,Mf=u(()=>{te();ie();pe();dS={smallContainerTargetWidth:i.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:i.extend("--ftds-modal-small-container-margin","",c.spacing6),headerIconSize:i.extend("--ftds-modal-header-icon-size","",c.iconSize3),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"),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),borderRadius:i.extend("--ftds-modal-border-radius","",c.borderRadiusM)}});var uS,Ff=u(()=>{te();ie();pe();uS={grabberIconSize:i.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize3),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 pS,Bf=u(()=>{te();ie();pe();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,Uf=u(()=>{te();ie();pe();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),mainIconIconSize:i.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:i.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)}});var hS,zf=u(()=>{te();ie();pe();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,Hf=u(()=>{te();ie();pe();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,Vf=u(()=>{te();ie();pe();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,Wf=u(()=>{te();ie();pe();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,jf=u(()=>{te();ie();pe();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,Gf=u(()=>{te();ie();pe();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,Kf=u(()=>{te();ie();pe();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,qf=u(()=>{te();ie();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,Zf=u(()=>{te();ie();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(()=>{te();ie();pe();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,Yf=u(()=>{te();ie();pe();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,Xf=u(()=>{te();ie();pe();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,Jf=u(()=>{te();ie();pe();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,eh=u(()=>{te();ie();AS={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 th=u(()=>{ie();pe();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();eh()});function hl(r){return`ftds--family-${r}`}function ml(r){return`ftds--size-${r}`}var Xi,Ji,rh=u(()=>{(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Xi||(Xi={}));(function(r){r.large="large",r.medium="medium",r.small="small"})(Ji||(Ji={}))});var Yo=u(()=>{te();th();rh()});var gl={};q(gl,{DesignSystemFamily:()=>Xi,DesignSystemSize:()=>Ji,FtCssVariableFactory:()=>i,badge:()=>nS,banner:()=>iS,button:()=>q0,card:()=>Z0,chart:()=>SS,checkbox:()=>Y0,chip:()=>tS,chipChoice:()=>eS,chipGroup:()=>rS,collapsible:()=>vS,combobox:()=>yS,dateRangePicker:()=>AS,drawer:()=>pS,floatingMenu:()=>gS,foundation:()=>c,link:()=>oS,modal:()=>dS,notice:()=>OS,notification:()=>wS,pageDesigner:()=>CS,pageFooter:()=>lS,pageHeader:()=>sS,pageLayout:()=>cS,popover:()=>bS,radio:()=>X0,reorderableList:()=>uS,resolveFamilyClass:()=>hl,resolveSizeClass:()=>ml,semantic:()=>p,setVariable:()=>A,switch_:()=>xS,table:()=>J0,tabs:()=>fS,textArea:()=>mS,textInput:()=>hS,titleBreadcrumb:()=>aS,toggle:()=>ES,tooltip:()=>RS,treeList:()=>Q0,typographies:()=>G0,typographyBody1Medium:()=>df,typographyBody1Regular:()=>cf,typographyBody1Semibold:()=>uf,typographyBody2Medium:()=>ff,typographyBody2MediumUnderline:()=>hf,typographyBody2Regular:()=>pf,typographyBody2Semibold:()=>mf,typographyCaption1Medium:()=>gf,typographyCaption1Semibold:()=>yf,typographyCaption2Bold:()=>xf,typographyCaption2Medium:()=>bf,typographyCaption2Semibold:()=>vf,typographyDisplay:()=>nf,typographyTitle1:()=>af,typographyTitle2:()=>sf,typographyTitle3:()=>lf,typographyVariants:()=>K0});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:()=>LS});var na,LS,xl=u(()=>{"use strict";na=class{async import(e){if(e)return import(e)}},LS=new na});function nh(r,e,t){return er(r,co(e,t))}function Xo(r,e){return typeof r=="function"?r(e):r}function uo(r){return r.split("-")[0]}function rr(r){return r.split("-")[1]}function Ol(r){return r==="x"?"y":"x"}function El(r){return r==="y"?"height":"width"}function Jo(r){let e=r[0];return e==="t"||e==="b"?"y":"x"}function wl(r){return Ol(Jo(r))}function ah(r,e,t){t===void 0&&(t=!1);let o=rr(r),n=wl(r),a=El(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 sh(r){return r.includes("start")?r.replace("start","end"):r.replace("end","start")}function Sl(r){let e=uo(r);return kS[e]+r.slice(e.length)}function TS(r){var e,t,o,n;return{top:(e=r.top)!=null?e:0,right:(t=r.right)!=null?t:0,bottom:(o=r.bottom)!=null?o:0,left:(n=r.left)!=null?n:0}}function lh(r){return typeof r!="number"?TS(r):{top:r,right:r,bottom:r,left:r}}function po(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 ih,oh,Cl,co,er,en,tr,kS,aa=u(()=>{ih=["top","right","bottom","left"],oh=["start","end"],Cl=ih.reduce((r,e)=>r.concat(e,e+"-"+oh[0],e+"-"+oh[1]),[]),co=Math.min,er=Math.max,en=Math.round,tr=r=>({x:r,y:r}),kS={left:"right",right:"left",bottom:"top",top:"bottom"}});function ch(r,e,t){let{reference:o,floating:n}=r,a=Jo(e),s=wl(e),l=El(s),d=uo(e),f=a==="y",g=o.x+o.width/2-n.width/2,m=o.y+o.height/2-n.height/2,y=o[l]/2-n[l]/2,v;switch(d){case"top":v={x:g,y:o.y-n.height};break;case"bottom":v={x:g,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:m};break;case"left":v={x:o.x-n.width,y:m};break;default:v={x:o.x,y:o.y}}let x=rr(e);return x&&(v[s]+=y*(x==="end"?1:-1)*(t&&f?-1:1)),v}async function dh(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:g="viewport",elementContext:m="floating",altBoundary:y=!1,padding:v=0}=Xo(e,r),x=lh(v),L=l[y?m==="floating"?"reference":"floating":m],P=po(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(L)))==null||t?L:L.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:f,rootBoundary:g,strategy:d})),B=m==="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},k=po(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:B,offsetParent:E,strategy:d}):B);return{top:(P.top-k.top+x.top)/C.y,bottom:(k.bottom-P.bottom+x.bottom)/C.y,left:(P.left-k.left+x.left)/C.x,right:(k.right-P.right+x.right)/C.x}}function IS(r,e,t){return(r?[...t.filter(n=>rr(n)===r),...t.filter(n=>rr(n)!==r)]:t.filter(n=>uo(n)===n)).filter(n=>r?rr(n)===r||(e?sh(n)!==n:!1):!0)}async function NS(r,e){let{placement:t,platform:o,elements:n}=r,a=await(o.isRTL==null?void 0:o.isRTL(n.floating)),s=uo(t),l=rr(t),d=Jo(t)==="y",f=PS.has(s)?-1:1,g=a&&d?-1:1,m=Xo(e,r),{mainAxis:y,crossAxis:v,alignmentAxis:x}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof x=="number"&&(v=l==="end"?x*-1:x),d?{x:v*g,y:y*f}:{x:y*f,y:v*g}}var _S,uh,ph,PS,fh,hh,mh,gh=u(()=>{aa();aa();_S=50,uh=async(r,e,t)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=s.detectOverflow?s:{...s,detectOverflow:dh},d=await(s.isRTL==null?void 0:s.isRTL(e)),f=await s.getElementRects({reference:r,floating:e,strategy:n}),{x:g,y:m}=ch(f,o,d),y=o,v=0,x={};for(let w=0;w<a.length;w++){let L=a[w];if(!L)continue;let{name:P,fn:B}=L,{x:E,y:C,data:k,reset:H}=await B({x:g,y:m,initialPlacement:o,placement:y,strategy:n,middlewareData:x,rects:f,platform:l,elements:{reference:r,floating:e}});g=E??g,m=C??m,x[P]={...x[P],...k},H&&v<_S&&(v++,typeof H=="object"&&(H.placement&&(y=H.placement),H.rects&&(f=H.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:n}):H.rects),{x:g,y:m}=ch(f,y,d)),w=-1)}return{x:g,y:m,placement:y,strategy:n,middlewareData:x}};ph=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:g=!1,alignment:m,allowedPlacements:y=Cl,autoAlignment:v=!0,...x}=Xo(r,e),w=m!==void 0||y===Cl?IS(m||null,v,y):y,L=((t=s.autoPlacement)==null?void 0:t.index)||0,P=w[L];if(P==null)return{};if(l!==P)return{reset:{placement:w[0]}};let B=await d.detectOverflow(e,x),E=ah(P,a,await(d.isRTL==null?void 0:d.isRTL(f.floating))),C=[B[uo(P)],B[E[0]],B[E[1]]],k=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:P,overflows:C}],H=w[L+1];if(H)return{data:{index:L+1,overflows:k},reset:{placement:H}};let ce=k.map(M=>{let V=rr(M.placement);return[M.placement,V&&g?M.overflows.slice(0,2).reduce((se,qe)=>se+qe,0):M.overflows[0],M.overflows]}).sort((M,V)=>M[1]-V[1]),ee=((n=ce.filter(M=>M[2].slice(0,rr(M[0])?2:3).every(V=>V<=0))[0])==null?void 0:n[0])||ce[0][0];return ee!==l?{data:{index:L+1,overflows:k},reset:{placement:ee}}:{}}}},PS=new Set(["left","top"]);fh=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 NS(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}}}}},hh=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:B=>{let{x:E,y:C}=B;return{x:E,y:C}}},...f}=Xo(r,e),g={x:t,y:o},m=await a.detectOverflow(e,f),y=Jo(n),v=Ol(y),x=g[v],w=g[y],L=(B,E)=>nh(E+m[B==="y"?"top":"left"],E,E-m[B==="y"?"bottom":"right"]);s&&(x=L(v,x)),l&&(w=L(y,w));let P=d.fn({...e,[v]:x,[y]:w});return{...P,data:{x:P.x-t,y:P.y-o,enabled:{[v]:s,[y]:l}}}}}},mh=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){let{placement:t,rects:o,platform:n,elements:a}=e,{apply:s=()=>{},...l}=Xo(r,e),d=await n.detectOverflow(e,l),f=uo(t),g=rr(t),m=Jo(t)==="y",{width:y,height:v}=o.floating,x,w;f==="top"||f==="bottom"?(x=f,w=g===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(w=f,x=g==="end"?"top":"bottom");let L=v-d.top-d.bottom,P=y-d.left-d.right,B=co(v-d[x],L),E=co(y-d[w],P),C=e.middlewareData.shift,k=!C,H=B,ce=E;C!=null&&C.enabled.x&&(ce=P),C!=null&&C.enabled.y&&(H=L),k&&!g&&(m?ce=y-2*er(d.left,d.right):H=v-2*er(d.top,d.bottom)),await s({...e,availableWidth:ce,availableHeight:H});let J=await n.getDimensions(a.floating);return y!==J.width||v!==J.height?{reset:{rects:!0}}:{}}}}});function la(){return typeof window<"u"}function ho(r){return bh(r)?(r.nodeName||"").toLowerCase():"#document"}function ct(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function gr(r){var e;return(e=(bh(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function bh(r){return la()?r instanceof Node||r instanceof ct(r).Node:!1}function Ut(r){return la()?r instanceof Element||r instanceof ct(r).Element:!1}function yr(r){return la()?r instanceof HTMLElement||r instanceof ct(r).HTMLElement:!1}function yh(r){return!la()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof ct(r).ShadowRoot}function tn(r){let{overflow:e,overflowX:t,overflowY:o,display:n}=zt(r);return/auto|scroll|overlay|hidden|clip/.test(e+o+t)&&n!=="inline"&&n!=="contents"}function vh(r){return/^(table|td|th)$/.test(ho(r))}function rn(r){try{if(r.matches(":popover-open"))return!0}catch{}try{return r.matches(":modal")}catch{return!1}}function ei(r){let e=Ut(r)?zt(r):r;return fo(e.transform)||fo(e.translate)||fo(e.scale)||fo(e.rotate)||fo(e.perspective)||!ca()&&(fo(e.backdropFilter)||fo(e.filter))||$S.test(e.willChange||"")||DS.test(e.contain||"")}function xh(r){let e=Nr(r);for(;yr(e)&&!ti(e);){if(ei(e))return e;if(rn(e))return null;e=Nr(e)}return null}function ca(){return Rl==null&&(Rl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Rl}function ti(r){return/^(html|body|#document)$/.test(ho(r))}function zt(r){return ct(r).getComputedStyle(r)}function on(r){return Ut(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function Nr(r){if(ho(r)==="html")return r;let e=r.assignedSlot||r.parentNode||yh(r)&&r.host||gr(r);return yh(e)?e.host:e}function Sh(r){let e=Nr(r);return ti(e)?(r.ownerDocument||r).body:yr(e)&&tn(e)?e:Sh(e)}function sa(r,e,t){var o;e===void 0&&(e=[]),t===void 0&&(t=!0);let n=Sh(r),a=n===((o=r.ownerDocument)==null?void 0:o.body),s=ct(n);if(a){let l=da(s);return e.concat(s,s.visualViewport||[],tn(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 $S,DS,fo,Rl,Al=u(()=>{$S=/transform|translate|scale|rotate|perspective|filter/,DS=/paint|layout|strict|content/,fo=r=>!!r&&r!=="none"});function Eh(r){let e=zt(r),t=parseFloat(e.width)||0,o=parseFloat(e.height)||0,n=yr(r),a=n?r.offsetWidth:t,s=n?r.offsetHeight:o,l=en(t)!==a||en(o)!==s;return l&&(t=a,o=s),{width:t,height:o,$:l}}function wh(r){return Ut(r)?r:r.contextElement}function ri(r){let e=wh(r);if(!yr(e))return tr(1);let t=e.getBoundingClientRect(),{width:o,height:n,$:a}=Eh(e),s=(a?en(t.width):t.width)/o,l=(a?en(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function Rh(r){let e=ct(r);return!ca()||!e.visualViewport?MS:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function FS(r,e,t){return e===void 0&&(e=!1),!!t&&e&&t===ct(r)}function nn(r,e,t,o){e===void 0&&(e=!1),t===void 0&&(t=!1);let n=r.getBoundingClientRect(),a=wh(r),s=tr(1);e&&(o?Ut(o)&&(s=ri(o)):s=ri(r));let l=FS(a,t,o)?Rh(a):tr(0),d=(n.left+l.x)/s.x,f=(n.top+l.y)/s.y,g=n.width/s.x,m=n.height/s.y;if(a&&o){let y=ct(a),v=Ut(o)?ct(o):o,x=y,w=da(x);for(;w&&v!==x;){let L=ri(w),P=w.getBoundingClientRect(),B=zt(w),E=P.left+(w.clientLeft+parseFloat(B.paddingLeft))*L.x,C=P.top+(w.clientTop+parseFloat(B.paddingTop))*L.y;d*=L.x,f*=L.y,g*=L.x,m*=L.y,d+=E,f+=C,x=ct(w),w=da(x)}}return po({width:g,height:m,x:d,y:f})}function ua(r,e){let t=on(r).scrollLeft;return e?e.left+t:nn(gr(r)).left+t}function Ah(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 BS(r){let{elements:e,rect:t,offsetParent:o,strategy:n}=r,a=n==="fixed",s=gr(o),l=e?rn(e.floating):!1;if(o===s||l&&a)return t;let d={scrollLeft:0,scrollTop:0},f=tr(1),g=tr(0),m=yr(o);if((m||!a)&&((ho(o)!=="body"||tn(s))&&(d=on(o)),m)){let v=nn(o);f=ri(o),g.x=v.x+o.clientLeft,g.y=v.y+o.clientTop}let y=s&&!m&&!a?Ah(s,d):tr(0);return{width:t.width*f.x,height:t.height*f.y,x:t.x*f.x-d.scrollLeft*f.x+g.x+y.x,y:t.y*f.y-d.scrollTop*f.y+g.y+y.y}}function US(r){return r.getClientRects?Array.from(r.getClientRects()):[]}function zS(r){let e=on(r),t=r.ownerDocument.body,o=er(r.scrollWidth,r.clientWidth,t.scrollWidth,t.clientWidth),n=er(r.scrollHeight,r.clientHeight,t.scrollHeight,t.clientHeight),a=-e.scrollLeft+ua(r),s=-e.scrollTop;return zt(t).direction==="rtl"&&(a+=er(r.clientWidth,t.clientWidth)-o),{width:o,height:n,x:a,y:s}}function VS(r,e,t){t===void 0&&(t="viewport");let o=t==="layoutViewport",n=ct(r),a=gr(r),s=n.visualViewport,l=a.clientWidth,d=a.clientHeight,f=0,g=0;if(s){let y=!ca()||e==="fixed";o?y||(f=-s.offsetLeft,g=-s.offsetTop):(l=s.width,d=s.height,y&&(f=s.offsetLeft,g=s.offsetTop))}if(ua(a)<=0){let y=a.ownerDocument,v=y.body,x=getComputedStyle(v),w=y.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,L=Math.abs(a.clientWidth-v.clientWidth-w),P=getComputedStyle(a).scrollbarGutter==="stable both-edges"?L/2:L;P<=HS&&(l-=P)}return{width:l,height:d,x:f,y:g}}function WS(r,e){let t=nn(r,!0,e==="fixed"),o=t.top+r.clientTop,n=t.left+r.clientLeft,a=ri(r),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 Ch(r,e,t){let o;if(e==="viewport"||e==="layoutViewport")o=VS(r,t,e);else if(e==="document")o=zS(gr(r));else if(Ut(e))o=WS(e,t);else{let n=Rh(r);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return po(o)}function jS(r,e){let t=e.get(r);if(t)return t;let o=sa(r,[],!1).filter(l=>Ut(l)&&ho(l)!=="body"),n=null,a=zt(r).position==="fixed",s=a?Nr(r):r;for(;Ut(s)&&!ti(s);){let l=zt(s),d=ei(s),f=n?n.position:a?"fixed":"";!d&&(f==="fixed"||f==="absolute"&&l.position==="static")?o=o.filter(m=>m!==s):n=l,s=Nr(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=Ch(e,s[0],n),d=l.top,f=l.right,g=l.bottom,m=l.left;for(let y=1;y<s.length;y++){let v=Ch(e,s[y],n);d=er(v.top,d),f=co(v.right,f),g=co(v.bottom,g),m=er(v.left,m)}return{width:f-m,height:g-d,x:m,y:d}}function KS(r){let{width:e,height:t}=Eh(r);return{width:e,height:t}}function qS(r,e,t){let o=yr(e),n=gr(e),a=t==="fixed",s=nn(r,!0,a,e),l={scrollLeft:0,scrollTop:0},d=tr(0);if((o||!a)&&((ho(e)!=="body"||tn(n))&&(l=on(e)),o)){let y=nn(e,!0,a,e);d.x=y.x+e.clientLeft,d.y=y.y+e.clientTop}!o&&n&&(d.x=ua(n));let f=n&&!o&&!a?Ah(n,l):tr(0),g=s.left+l.scrollLeft-d.x-f.x,m=s.top+l.scrollTop-d.y-f.y;return{x:g,y:m,width:s.width,height:s.height}}function Ll(r){return zt(r).position==="static"}function Oh(r,e){if(!yr(r)||zt(r).position==="fixed")return null;if(e)return e(r);let t=r.offsetParent;return gr(r)===t&&(t=t.ownerDocument.body),t}function Lh(r,e){let t=ct(r);if(rn(r))return t;if(!yr(r)){let n=Nr(r);for(;n&&!ti(n);){if(Ut(n)&&!Ll(n))return n;n=Nr(n)}return t}let o=Oh(r,e);for(;o&&vh(o)&&Ll(o);)o=Oh(o,e);return o&&ti(o)&&Ll(o)&&!ei(o)?t:o||xh(r)||t}function QS(r){return zt(r).direction==="rtl"}var MS,HS,ZS,oi,kh,kl,Th,_h,Tl,Ih=u(()=>{gh();aa();Al();MS=tr(0);HS=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:BS,getDocumentElement:gr,getClippingRect:GS,getOffsetParent:Lh,getElementRects:ZS,getClientRects:US,getDimensions:KS,getScale:ri,isElement:Ut,isRTL:QS},kh=fh,kl=ph,Th=hh,_h=mh,Tl=(r,e,t)=>{let o=new Map,n=t??{},a={...oi,...n.platform,_c:o};return uh(r,e,{...n,platform:a})}});function Il(r){return YS(r)}function _l(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function YS(r){for(let e=r;e;e=_l(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=_l(r);e;e=_l(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||ei(t)||e.tagName==="BODY"))return e}return null}var Ph=u(()=>{Al()});var $l={};q($l,{computeOffsetAutoPosition:()=>Nl,computeOffsetPosition:()=>Pl});async function Pl(r,e,t){let o;return typeof t=="object"?o=t:o={placement:t},Tl(r,e,{strategy:o.strategy,platform:{...oi,getOffsetParent:n=>oi.getOffsetParent(n,Il)},middleware:[Th({crossAxis:!0}),kl({allowedPlacements:[o.placement]})]})}async function Nl(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,Tl(r,e,{placement:l,strategy:n,platform:{...oi,getOffsetParent:f=>oi.getOffsetParent(f,Il)},middleware:[kh(s??4),kl({allowedPlacements:o}),_h({apply({availableHeight:f,availableWidth:g,elements:m}){typeof a=="string"&&(a=`var(${a})`),a?m.floating.style.maxHeight=`min(${Math.max(0,f)}px, ${a})`:m.floating.style.maxHeight=`${Math.max(0,f)}px`,typeof d=="string"&&(d=`var(${d})`),d?m.floating.style.maxWidth=`min(${Math.max(0,g)}px, ${d})`:m.floating.style.maxWidth=`${Math.max(0,g)}px`}})]})}var pa=u(()=>{"use strict";Ih();Ph()});var Dl={};q(Dl,{isSlotEmptyOrWithoutContent:()=>an});var an,Ml=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 Fl={};q(Fl,{ScopedRegistryLitElement:()=>sn});var sn,fa=u(()=>{"use strict";_();Hn();lo();sn=class extends Lt{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 Ui(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){qi(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 Ul={};q(Ul,{shadowQuerySelector:()=>Bl,shadowQuerySelectorAll:()=>XS});function Bl(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 zl={};q(zl,{ExportpartsUpdatedEvent:()=>mo,FtLitElement:()=>D});var ii,Mh,Nh,$h,Fh,Dh,mo,D,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";D=class extends sn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Mh]=new ae(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=Bl(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 g=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 v=(a=(n=y.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],x=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(L=>L.split(":")[1]))!==null&&l!==void 0?l:[],w=[...v,...x].filter(d).map(L=>L.trim());for(let L of w)g.add(L)}if(g.size===0){this.exportparts=void 0;return}let m=[...g.values()].flatMap(y=>f.map(v=>`${y}:${v}--${y}`));this.exportparts=[...this.part,...m].join(", ")}};Mh=Fh;ii([h()],D.prototype,"exportpartsPrefix",void 0);ii([ue([])],D.prototype,"exportpartsPrefixes",void 0);ii([h({reflect:!0})],D.prototype,"exportparts",void 0);ii([h()],D.prototype,"customStylesheet",void 0);ii([h()],D.prototype,"elementToFocus",void 0);ii([I()],D.prototype,"useAdoptedStyleSheets",void 0)});var Vl={};q(Vl,{FtdsBase:()=>Hl,toFtdsBase:()=>Uh});var Bh,Uh,Hl,Wl=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=we(Symbol("toFtdsBase"),function(r){class e extends r{constructor(){super(...arguments),this.size=Ji.medium,this.family=Xi.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}),Hl=class extends Uh(D){}});var zh={};var jl=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,g=>{t(f)&&(l++,o(g)),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,g,m=()=>({prevNode:g,node:f}=this.getIteratorNode(s),f);for(;m();)this.iframes&&this.forEachIframe(t,y=>this.checkIframeFilter(f,g,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(e,v=>d.push(v),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,g=(o>s.end?s.end:o)-s.start,m=e.value.substr(0,s.start),y=e.value.substr(g+s.start);if(s.node=this.wrapRangeInTextNode(s.node,f,g),e.value=m+y,e.nodes.forEach((v,x)=>{x>=l&&(e.nodes[x].start>0&&x!==l&&(e.nodes[x].start-=g),e.nodes[x].end-=g)}),o-=g,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 g=f.index;if(s!==0)for(let m=1;m<s;m++)g+=f[m].length;d=this.wrapRangeInTextNode(d,g,g+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 m=1;m<s;m++)f+=d[m].length;let g=f+d[s].length;this.wrapRangeInMappedTextNode(l,f,g,m=>o(d[s],m),(m,y)=>{e.lastIndex=y,n(m)})}a()})}wrapRangeFromIndex(e,t,o,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:f,end:g,valid:m}=this.checkWhitespaceRanges(l,s,a.value);m&&this.wrapRangeInMappedTextNode(a,f,g,y=>t(y,l,a.value.substring(f,g),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 g=new RegExp(this.createRegExp(f),`gm${l}`),m=0;this.log(`Searching with expression "${g}"`),this[n](g,1,(y,v)=>this.opt.filter(v,f,o,m),y=>{m++,o++,this.opt.each(y)},()=>{m===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 Gl(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 ql={};q(ql,{highlightHtml:()=>Kl,highlightHtmlColorCssVariable:()=>jh,highlightHtmlStyles:()=>eC});function Kl(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 g in t.attributes)f.setAttribute(g,t.attributes[g])})),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,Zl=u(()=>{"use strict";_();Yo();Wh();JS=Gl,jh=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),eC=R`
1
+ "use strict";(()=>{var g0=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)g0(r,t,{get:e[t],enumerable:!0})};var pp=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 k=C.prototype.attributeChangedCallback,H=new Set(C.observedAttributes||[]);y(C,H,k);let ce={elementClass:C,connectedCallback:C.prototype.connectedCallback,disconnectedCallback:C.prototype.disconnectedCallback,adoptedCallback:C.prototype.adoptedCallback,attributeChangedCallback:k,formAssociated:C.formAssociated,formAssociatedCallback:C.prototype.formAssociatedCallback,formDisabledCallback:C.prototype.formDisabledCallback,formResetCallback:C.prototype.formResetCallback,formStateRestoreCallback:C.prototype.formStateRestoreCallback,observedAttributes:H};this._definitionsByTag.set(E,ce),this._definitionsByClass.set(C,ce);let J=t.call(o,E);J||(J=m(E),e.call(o,E,J)),this===window.customElements&&(s.set(C,ce),ce.standInClass=J);let ee=this._awaitingUpgrade.get(E);if(ee){this._awaitingUpgrade.delete(E);for(let V of ee)a.delete(V),x(V,ce,!0)}let M=this._whenDefinedPromises.get(E);return M!==void 0&&(M.resolve(C),this._whenDefinedPromises.delete(E)),C}upgrade(){L.push(this),o.upgrade.apply(o,arguments),L.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 k=this._whenDefinedPromises.get(E);return k===void 0&&(k={},k.promise=new Promise(H=>k.resolve=H),this._whenDefinedPromises.set(E,k)),k.promise}_upgradeWhenDefined(E,C,k){let H=this._awaitingUpgrade.get(C);H||this._awaitingUpgrade.set(C,H=new Set),k?H.add(E):H.delete(E)}};let d;window.HTMLElement=function(){let C=d;if(C)return d=void 0,C;let k=s.get(this.constructor);if(!k)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return C=Reflect.construct(r,[],k.standInClass),Object.setPrototypeOf(C,this.constructor.prototype),n.set(C,k),C},window.HTMLElement.prototype=r.prototype;let f=E=>E===document||E instanceof ShadowRoot,g=E=>{let C=E.getRootNode();if(!f(C)){let k=L[L.length-1];if(k instanceof CustomElementRegistry)return k;C=k.getRootNode(),f(C)||(C=l.get(C)?.getRootNode()||document)}return C.customElements},m=E=>class{static get formAssociated(){return!0}constructor(){let k=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(k,HTMLElement.prototype);let H=g(k)||window.customElements,ce=H._getDefinition(E);return ce?x(k,ce):a.set(k,H),k}connectedCallback(){let k=n.get(this);k?k.connectedCallback&&k.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,E,!0)}disconnectedCallback(){let k=n.get(this);k?k.disconnectedCallback&&k.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,E,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let k=n.get(this);k&&k.formAssociated&&k?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let k=n.get(this);k?.formAssociated&&k?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let k=n.get(this);k?.formAssociated&&k?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let k=n.get(this);k?.formAssociated&&k?.formStateRestoreCallback?.apply(this,arguments)}},y=(E,C,k)=>{if(C.size===0||k===void 0)return;let H=E.prototype.setAttribute;H&&(E.prototype.setAttribute=function(ee,M){let V=ee.toLowerCase();if(C.has(V)){let se=this.getAttribute(V);H.call(this,V,M),k.call(this,V,se,M)}else H.call(this,V,M)});let ce=E.prototype.removeAttribute;ce&&(E.prototype.removeAttribute=function(ee){let M=ee.toLowerCase();if(C.has(M)){let V=this.getAttribute(M);ce.call(this,M),k.call(this,M,V,null)}else ce.call(this,M)});let J=E.prototype.toggleAttribute;J&&(E.prototype.toggleAttribute=function(ee,M){let V=ee.toLowerCase();if(C.has(V)){let se=this.getAttribute(V);J.call(this,V,M);let qe=this.getAttribute(V);k.call(this,V,se,qe)}else J.call(this,V,M)})},v=E=>{let C=Object.getPrototypeOf(E);if(C!==window.HTMLElement)return C===r?Object.setPrototypeOf(E,window.HTMLElement):v(C)},x=(E,C,k=!1)=>{Object.setPrototypeOf(E,C.elementClass.prototype),n.set(E,C),d=E;try{new C.elementClass}catch{v(C.elementClass),new C.elementClass}C.attributeChangedCallback&&C.observedAttributes.forEach(H=>{E.hasAttribute(H)&&C.attributeChangedCallback.call(E,H,null,E.getAttribute(H))}),k&&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 L=[document],P=(E,C,k=void 0)=>{let H=(k?Object.getPrototypeOf(k):E.prototype)[C];E.prototype[C]=function(){L.push(this);let ce=H.apply(k||this,arguments);return ce!==void 0&&l.set(ce,this),L.pop(),ce}};P(ShadowRoot,"createElement",document),P(ShadowRoot,"importNode",document),P(Element,"insertAdjacentHTML");let B=(E,C)=>{let k=Object.getOwnPropertyDescriptor(E.prototype,C);Object.defineProperty(E.prototype,C,{...k,set(H){L.push(this),k.set.call(this,H),L.pop()}})};if(B(Element,"innerHTML"),B(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,k=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...ee){let M=C.call(this,...ee);return E.set(M,this),M},k.forEach(ee=>{let M=window.ElementInternals.prototype,V=M[ee];M[ee]=function(...se){let qe=E.get(this);if(n.get(qe).formAssociated===!0)return V?.call(this,...se);throw new DOMException(`Failed to execute ${V} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class H extends Array{constructor(M){super(...M),this._elements=M}get value(){return this._elements.find(M=>M.checked===!0)?.value||""}}class ce{constructor(M){let V=new Map;M.forEach((se,qe)=>{let Os=se.getAttribute("name"),up=V.get(Os)||[];this[+qe]=se,up.push(se),V.set(Os,up)}),this.length=M.length,V.forEach((se,qe)=>{se&&(se.length===1?this[qe]=se[0]:this[qe]=new H(se))})}namedItem(M){return this[M]}}let J=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let ee=J.get.call(this,[]),M=[];for(let V of ee){let se=n.get(V);(!se||se.formAssociated===!0)&&M.push(V)}return new ce(M)}})}}});var fp=u(()=>{"use strict";pp();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,Bi,Es,hp,zo,eo,R,Ui,zn,Hn=u(()=>{Un=globalThis,Bi=Un.ShadowRoot&&(Un.ShadyCSS===void 0||Un.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Es=Symbol(),hp=new WeakMap,zo=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==Es)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(Bi&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=hp.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&hp.set(t,e))}return e}toString(){return this.cssText}},eo=r=>new zo(typeof r=="string"?r:r+"",void 0,Es),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,Es)},Ui=(r,e)=>{if(Bi)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=Bi?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return eo(t)})(r):r});var y0,b0,v0,x0,S0,C0,Vn,mp,O0,E0,zi,Ho,Hi,gp,Rt,Vo=u(()=>{Hn();Hn();({is:y0,defineProperty:b0,getOwnPropertyDescriptor:v0,getOwnPropertyNames:x0,getOwnPropertySymbols:S0,getPrototypeOf:C0}=Object),Vn=globalThis,mp=Vn.trustedTypes,O0=mp?mp.emptyScript:"",E0=Vn.reactiveElementPolyfillSupport,zi=(r,e)=>r,Ho={toAttribute(r,e){switch(e){case Boolean:r=r?O0: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}},Hi=(r,e)=>!y0(r,e),gp={attribute:!0,type:String,converter:Ho,reflect:!1,useDefault:!1,hasChanged:Hi};Symbol.metadata??=Symbol("metadata"),Vn.litPropertyMetadata??=new WeakMap;Rt=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=gp){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&&b0(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:a}=v0(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)??gp}static _$Ei(){if(this.hasOwnProperty(zi("elementProperties")))return;let e=C0(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(zi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(zi("properties"))){let t=this.properties,o=[...x0(t),...S0(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 Ui(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;let l=s.fromAttribute(t,a.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(e,t,o,n=!1,a){if(e!==void 0){let s=this.constructor;if(n===!1&&(a=this[e]),o??=s.getPropertyOptions(e),!((o.hasChanged??Hi)(a,t)||o.useDefault&&o.reflect&&a===this._$Ej?.get(e)&&!this.hasAttribute(s._$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){}};Rt.elementStyles=[],Rt.shadowRootOptions={mode:"open"},Rt[zi("elementProperties")]=new Map,Rt[zi("finalized")]=new Map,E0?.({ReactiveElement:Rt}),(Vn.reactiveElementVersions??=[]).push("2.1.2")});function Rp(r,e){if(!ks(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return bp!==void 0?bp.createHTML(e):e}function io(r,e,t=r,o){if(e===$e)return e;let n=o!==void 0?t._$Co?.[o]:t._$Cl,a=ji(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 Rs,yp,Wn,bp,As,fr,Ls,w0,oo,Wi,ji,ks,Ep,ws,Vi,vp,xp,to,Sp,Cp,wp,Ts,b,_s,Is,$e,T,Op,ro,Ap,Gi,jn,Wo,no,Gn,Kn,qn,Zn,Ps,R0,Ns,At=u(()=>{Rs=globalThis,yp=r=>r,Wn=Rs.trustedTypes,bp=Wn?Wn.createPolicy("lit-html",{createHTML:r=>r}):void 0,As="$lit$",fr=`lit$${Math.random().toFixed(9).slice(2)}$`,Ls="?"+fr,w0=`<${Ls}>`,oo=document,Wi=()=>oo.createComment(""),ji=r=>r===null||typeof r!="object"&&typeof r!="function",ks=Array.isArray,Ep=r=>ks(r)||typeof r?.[Symbol.iterator]=="function",ws=`[
2
+ \f\r]`,Vi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vp=/-->/g,xp=/>/g,to=RegExp(`>|${ws}(?:([^\\s"'>=/]+)(${ws}*=${ws}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Sp=/'/g,Cp=/"/g,wp=/^(?:script|style|textarea|title)$/i,Ts=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),b=Ts(1),_s=Ts(2),Is=Ts(3),$e=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),Op=new WeakMap,ro=oo.createTreeWalker(oo,129);Ap=(r,e)=>{let t=r.length-1,o=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=Vi;for(let l=0;l<t;l++){let d=r[l],f,g,m=-1,y=0;for(;y<d.length&&(s.lastIndex=y,g=s.exec(d),g!==null);)y=s.lastIndex,s===Vi?g[1]==="!--"?s=vp:g[1]!==void 0?s=xp:g[2]!==void 0?(wp.test(g[2])&&(n=RegExp("</"+g[2],"g")),s=to):g[3]!==void 0&&(s=to):s===to?g[0]===">"?(s=n??Vi,m=-1):g[1]===void 0?m=-2:(m=s.lastIndex-g[2].length,f=g[1],s=g[3]===void 0?to:g[3]==='"'?Cp:Sp):s===Cp||s===Sp?s=to:s===vp||s===xp?s=Vi:(s=to,n=void 0);let v=s===to&&r[l+1].startsWith("/>")?" ":"";a+=s===Vi?d+w0:m>=0?(o.push(f),d.slice(0,m)+As+d.slice(m)+fr+v):d+fr+(m===-2?l:v)}return[Rp(r,a+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},Gi=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,g]=Ap(e,t);if(this.el=r.createElement(f,o),ro.currentNode=this.el.content,t===2||t===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(n=ro.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let m of n.getAttributeNames())if(m.endsWith(As)){let y=g[s++],v=n.getAttribute(m).split(fr),x=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:x[2],strings:v,ctor:x[1]==="."?Gn:x[1]==="?"?Kn:x[1]==="@"?qn:no}),n.removeAttribute(m)}else m.startsWith(fr)&&(d.push({type:6,index:a}),n.removeAttribute(m));if(wp.test(n.tagName)){let m=n.textContent.split(fr),y=m.length-1;if(y>0){n.textContent=Wn?Wn.emptyScript:"";for(let v=0;v<y;v++)n.append(m[v],Wi()),ro.nextNode(),d.push({type:2,index:++a});n.append(m[y],Wi())}}}else if(n.nodeType===8)if(n.data===Ls)d.push({type:2,index:a});else{let m=-1;for(;(m=n.data.indexOf(fr,m+1))!==-1;)d.push({type:7,index:a}),m+=fr.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=T,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),ji(e)?e===T||e==null||e===""?(this._$AH!==T&&this._$AR(),this._$AH=T):e!==this._$AH&&e!==$e&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ep(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!==T&&ji(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=Gi.createElement(Rp(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=Op.get(e.strings);return t===void 0&&Op.set(e.strings,t=new Gi(e)),t}k(e){ks(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(Wi()),this.O(Wi()),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!==this._$AB;){let o=yp(e).nextSibling;yp(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=T,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=T}_$AI(e,t=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=io(this,e,t,0),s=!ji(e)||e!==this._$AH&&e!==$e,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===$e&&(f=this._$AH[d]),s||=!ji(f)||f!==this._$AH[d],f===T?e=T:e!==T&&(e+=(f??"")+a[d+1]),this._$AH[d]=f}s&&!n&&this.j(e)}j(e){e===T?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===T?void 0:e}},Kn=class extends no{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==T)}},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)??T)===$e)return;let o=this._$AH,n=e===T&&o!==T||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==T&&(o===T||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)}},Ps={M:As,P:fr,A:Ls,C:1,L:Ap,R:jn,D:Ep,V:io,I:Wo,H:no,N:Kn,U:qn,B:Gn,F:Zn},R0=Rs.litHtmlPolyfillSupport;R0?.(Gi,Wo),(Rs.litHtmlVersions??=[]).push("3.3.3");Ns=(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(Wi(),a),a,void 0,t??{})}return n._$AI(r),n}});var $s,Lt,A0,Lp,Ds=u(()=>{Vo();Vo();At();At();$s=globalThis,Lt=class extends Rt{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=Ns(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return $e}};Lt._$litElement$=!0,Lt.finalized=!0,$s.litElementHydrateSupport?.({LitElement:Lt});A0=$s.litElementPolyfillSupport;A0?.({LitElement:Lt});Lp={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};($s.litElementVersions??=[]).push("4.2.2")});var UO,kp=u(()=>{UO=!1});var Ms={};q(Ms,{CSSResult:()=>zo,LitElement:()=>Lt,ReactiveElement:()=>Rt,_$LE:()=>Lp,_$LH:()=>Ps,adoptStyles:()=>Ui,css:()=>R,defaultConverter:()=>Ho,getCompatibleStyle:()=>zn,html:()=>b,isServer:()=>UO,mathml:()=>Is,noChange:()=>$e,notEqual:()=>Hi,nothing:()=>T,render:()=>Ns,supportsAdoptingStyleSheets:()=>Bi,svg:()=>_s,unsafeCSS:()=>eo});var _=u(()=>{Vo();At();Ds();kp()});var L0,Tp=u(()=>{L0=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"?_p(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 k0,_p,Fs=u(()=>{Vo();k0={attribute:!0,type:String,converter:Ho,reflect:!1,hasChanged:Hi},_p=(r=k0,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,!0,l)},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,!0,l)}}throw Error("Unsupported decorator location: "+o)}});function I(r){return h({...r,state:!0,attribute:!1})}var Ip=u(()=>{Fs();});function T0(r){return(e,t)=>{let o=typeof e=="function"?e:e[t];Object.assign(o,r)}}var Pp=u(()=>{});var Ft,jo=u(()=>{Ft=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t)});function F(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 Ft(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 Ft(t,o,{get(){return a(this)}})}}var Np=u(()=>{jo();});function Bs(r){return(e,t)=>Ft(e,t,{get(){return(this.renderRoot??(_0??=document.createDocumentFragment())).querySelectorAll(r)}})}var _0,$p=u(()=>{jo();});function I0(r){return(e,t)=>Ft(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}var Dp=u(()=>{jo();});function Us(r){return(e,t)=>{let{slot:o,selector:n}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return Ft(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 Mp=u(()=>{jo();});function zs(r){return(e,t)=>{let{slot:o}=r??{},n="slot"+(o?`[name=${o}]`:":not([name])");return Ft(e,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var Fp=u(()=>{jo();});var Hs={};q(Hs,{customElement:()=>L0,eventOptions:()=>T0,property:()=>h,query:()=>F,queryAll:()=>Bs,queryAssignedElements:()=>Us,queryAssignedNodes:()=>zs,queryAsync:()=>I0,standardProperty:()=>_p,state:()=>I});var K=u(()=>{Tp();Fs();Ip();Pp();Np();$p();Dp();Mp();Fp()});var Yt,ht,kt,ao=u(()=>{Yt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ht=r=>(...e)=>({_$litDirective$:r,values:e}),kt=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 P0,Bp,zp,Up,Go,Tr,N0,Hp,Vp,Qn,Vs=u(()=>{At();({I:P0}=Ps),Bp=r=>r,zp=r=>r.strings===void 0,Up=()=>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(Up(),n),s=o.insertBefore(Up(),n);t=new P0(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=Bp(d).nextSibling;Bp(o).insertBefore(d,n),d=f}}}return t},Tr=(r,e,t=r)=>(r._$AI(e,t),r),N0={},Hp=(r,e=N0)=>r._$AH=e,Vp=r=>r._$AH,Qn=r=>{r._$AR(),r._$AA.remove()}});var Wp,ye,jp=u(()=>{At();ao();Vs();Wp=(r,e,t)=>{let o=new Map;for(let n=e;n<=t;n++)o.set(r[n],n);return o},ye=ht(class extends kt{constructor(r){if(super(r),r.type!==Yt.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=Vp(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,g,m=0,y=n.length-1,v=0,x=a.length-1;for(;m<=y&&v<=x;)if(n[m]===null)m++;else if(n[y]===null)y--;else if(l[m]===s[v])d[v]=Tr(n[m],a[v]),m++,v++;else if(l[y]===s[x])d[x]=Tr(n[y],a[x]),y--,x--;else if(l[m]===s[x])d[x]=Tr(n[m],a[x]),Go(r,d[x+1],n[m]),m++,x--;else if(l[y]===s[v])d[v]=Tr(n[y],a[v]),Go(r,n[m],n[y]),y--,v++;else if(f===void 0&&(f=Wp(s,v,x),g=Wp(l,m,y)),f.has(l[m]))if(f.has(l[y])){let w=g.get(s[v]),L=w!==void 0?n[w]:null;if(L===null){let P=Go(r,n[m]);Tr(P,a[v]),d[v]=P}else d[v]=Tr(L,a[v]),Go(r,n[m],L),n[w]=null;v++}else Qn(n[y]),y--;else Qn(n[m]),m++;for(;v<=x;){let w=Go(r,d[x+1]);Tr(w,a[v]),d[v++]=w}for(;m<=y;){let w=n[m++];w!==null&&Qn(w)}return this.ut=s,Hp(r,d),$e}})});var Ws={};q(Ws,{repeat:()=>ye});var Bt=u(()=>{jp()});var ge,Gp=u(()=>{At();ao();ge=ht(class extends kt{constructor(r){if(super(r),r.type!==Yt.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 $e}})});var js={};q(js,{classMap:()=>ge});var tt=u(()=>{Gp()});var Kp,$0,D0,qp=u(()=>{At();ao();Kp="important",$0=" !"+Kp,D0=ht(class extends kt{constructor(r){if(super(r),r.type!==Yt.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($0);o.includes("-")||a?t.setProperty(o,a?n.slice(0,-11):n,a?Kp:""):t[o]=n}}return $e}})});var Gs={};q(Gs,{styleMap:()=>D0});var Zp=u(()=>{qp()});var Ko,so,Qp=u(()=>{At();ao();Ko=class extends kt{constructor(e){if(super(e),this.it=T,e.type!==Yt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===T||e==null)return this._t=void 0,this.it=e;if(e===$e)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=ht(Ko)});var Ks={};q(Ks,{UnsafeHTMLDirective:()=>Ko,unsafeHTML:()=>so});var Ki=u(()=>{Qp()});var qs={};q(qs,{CancelablePromise:()=>Yn,CanceledPromiseError:()=>Xt,cancelable:()=>qo});var Xt,Yn,qo,Xn=u(()=>{"use strict";Xt=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 Xt("Promise has been canceled",n)):t(n)},n=>{this.isCanceled?o(new Xt("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 Zs={};q(Zs,{customElement:()=>qi,dateProperty:()=>F0,isNumber:()=>Yp,jsonProperty:()=>ue,numberProperty:()=>Tt,optionalNumberProperty:()=>M0});function ue(r,e){return h({type:Object,converter:{fromAttribute:t=>{if(t==null)return mt(r);try{return JSON.parse(t)}catch{return mt(r)}},toAttribute:t=>JSON.stringify(t)},hasChanged:gt,...e??{}})}function M0(r){return Tt(r)}function Tt(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 Yp(e)?hr(n,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...r??{}})}function Yp(r){return!isNaN(parseFloat(r))}function F0(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 qi,lo=u(()=>{"use strict";K();rt();qi=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)}});var el={};q(el,{applyMixinOnce:()=>we,customElements:()=>U,dateReviver:()=>U0,deepCopy:()=>mt,deepEqual:()=>De,delay:()=>Jn,eventPathContainsMatchingElement:()=>Qs,everyDeep:()=>B0,flatDeep:()=>yt,forEachDeep:()=>Xp,getComposedPathTo:()=>Xs,hasChanged:()=>gt,ignoreComposingEvents:()=>Ir,last:()=>Ys,minmax:()=>hr,parseDate:()=>ef,randomId:()=>Js,someDeep:()=>Jp,unslotText:()=>Zo,waitFor:()=>_r,waitUntil:()=>Zi});async function Zi(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 yt(r,e){return r.flatMap(t=>[t,...yt(e(t),e)])}function Xp(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 Jp(r,e,t){let o=!1;return Xp(r,e,(n,a,s,l)=>(o=!!t(n,a,s,l),!o)),o}function B0(r,e,t){return!Jp(r,e,(o,n,a,s)=>!t(o,n,a,s))}function U0(...r){return(e,t)=>r.includes(e)?ef(t):t}function ef(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 z0(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(!De(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(!De(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(!De(r[s],e[s]))return!1}return!0}return r!==r&&e!==e||r==null&&e==null}function De(r,e){try{return z0(r,e)}catch{return!1}}function gt(r,e){return!De(r,e)}function Qs(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 hr(r,e,t){return Math.min(Math.max(r,e),t)}function Ys(r){return r[r.length-1]}function Zo(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(e=>Zo(e)).join(""):r?.textContent||""}function Xs(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 mt(r){return typeof window.structuredClone=="function"?structuredClone(r):r!=null?JSON.parse(JSON.stringify(r)):r}function Js(r,e){return(e??"")+(""+Math.floor(Math.random()*10**r)).padStart(r,"0")}function we(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))qi(e)(t)}var Jn,rt=u(()=>{"use strict";lo();Jn=r=>new Promise(e=>setTimeout(e,r))});var ol={};q(ol,{FtNotificationEvent:()=>Qi,PostResizeEvent:()=>rl,PreResizeEvent:()=>tl,WithEventBus:()=>mr,withEventBus:()=>ea});var Qi,tl,rl,ea,mr,Qo=u(()=>{"use strict";rt();Qi=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},tl=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},rl=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},ea=we(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)}}}),mr=class extends ea(Object){}});var il={};q(il,{CacheRegistry:()=>Jt,ClearCacheEvent:()=>Yi});var Yi,Jt,nl=u(()=>{"use strict";Xn();Qo();Yi=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},Jt=class extends mr{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 Yi(o)),o}clear(e,t=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),t&&this.dispatchEvent(new Yi([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 sl={};q(sl,{accessBreadcrumb:()=>H0,accessResult:()=>_t,accessResultId:()=>ta,accessResultUrl:()=>al});function _t(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 al(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 H0(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 dl={};q(dl,{ClusteringHelper:()=>cl,formatHierarchicalValues:()=>ll});function ll(r,e){return e&&e>1&&r.length>=e?`... > ${r[r.length-1]}`:r.join(" > ")}var cl,ul=u(()=>{"use strict";ra();cl=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=_t(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(ll(l)),s.push(ll(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(m=>r.extractResultMetadata({result:m,key:e,hierarchicalValueTruncatingLevel:n,dateFormatter:a})).map(m=>m??{key:e,label:f,value:void 0,displayValue:o}).filter(m=>m.value!=d?.value).filter((m,y,v)=>v.findIndex(x=>x.value===m.value)===y).map(m=>({result:this.findBestResultForMetadataValue(e,m.value),metadata:m})).sort((m,y)=>this.compareMetadata(m.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 pl={};q(pl,{Debouncer:()=>ae});var ae,oa=u(()=>{"use strict";ae=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,te=u(()=>{_();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,tf,rf,of,nf,af,sf,lf,cf,df,uf,pf,ff,hf,mf,gf,yf,V0,W0,ie=u(()=>{te();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)")},tf={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")},rf={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")},of={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")},nf={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")},af={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")},sf={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")},lf={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")},cf={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")},df={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")},uf={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")},pf={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")},ff={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")},hf={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")},mf={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")},gf={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")},yf={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")},V0={display:tf,"title-1":rf,"title-2":of,"title-3":nf,"body-1-regular":af,"body-1-medium":sf,"body-1-semibold":lf,"body-2-regular":cf,"body-2-medium":df,"body-2-medium-underline":uf,"body-2-semibold":pf,"caption-1-medium":ff,"caption-1-semibold":hf,"caption-2-medium":mf,"caption-2-semibold":gf,"caption-2-bold":yf},W0=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","caption-1","caption-2"]});var p,pe=u(()=>{te();ie();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 j0,bf=u(()=>{te();ie();pe();j0={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 G0,vf=u(()=>{te();ie();pe();G0={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 K0,xf=u(()=>{te();ie();pe();K0={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 q0,Sf=u(()=>{te();ie();pe();q0={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 Z0,Cf=u(()=>{te();ie();pe();Z0={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 Q0,Of=u(()=>{te();ie();pe();Q0={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 Y0,Ef=u(()=>{te();ie();pe();Y0={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 X0,wf=u(()=>{te();ie();pe();X0={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 J0,Rf=u(()=>{te();ie();pe();J0={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 eS,Af=u(()=>{te();ie();pe();eS={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),horizontalGap:i.extend("--ftds-link-horizontal-gap","",c.spacing1)}});var tS,Lf=u(()=>{te();ie();pe();tS={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 rS,kf=u(()=>{te();ie();pe();rS={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 oS,Tf=u(()=>{te();ie();pe();oS={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 iS,_f=u(()=>{te();ie();pe();iS={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 nS,If=u(()=>{te();ie();pe();nS={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 aS,Pf=u(()=>{te();ie();aS={contentHorizontalPadding:i.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:i.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)}});var sS,Nf=u(()=>{te();ie();pe();sS={smallContainerTargetWidth:i.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:i.extend("--ftds-modal-small-container-margin","",c.spacing6),headerIconSize:i.extend("--ftds-modal-header-icon-size","",c.iconSize3),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"),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),borderRadius:i.extend("--ftds-modal-border-radius","",c.borderRadiusM)}});var lS,$f=u(()=>{te();ie();pe();lS={grabberIconSize:i.extend("--ftds-reorderable-list-grabber-icon-size","",c.iconSize3),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 cS,Df=u(()=>{te();ie();pe();cS={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 dS,Mf=u(()=>{te();ie();pe();dS={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),mainIconIconSize:i.extend("--ftds-tabs-main-icon-icon-size","",c.iconSize3),alertIconIconSize:i.extend("--ftds-tabs-alert-icon-icon-size","",c.iconSize2)}});var uS,Ff=u(()=>{te();ie();pe();uS={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 pS,Bf=u(()=>{te();ie();pe();pS={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 fS,Uf=u(()=>{te();ie();pe();fS={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 hS,zf=u(()=>{te();ie();pe();hS={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 mS,Hf=u(()=>{te();ie();pe();mS={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 gS,Vf=u(()=>{te();ie();pe();gS={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 yS,Wf=u(()=>{te();ie();pe();yS={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 bS,jf=u(()=>{te();ie();bS={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 vS,Gf=u(()=>{te();ie();vS={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 xS,Kf=u(()=>{te();ie();pe();xS={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 SS,qf=u(()=>{te();ie();pe();SS={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 CS,Zf=u(()=>{te();ie();pe();CS={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 OS,Qf=u(()=>{te();ie();pe();OS={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 ES,Yf=u(()=>{te();ie();ES={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 Xf=u(()=>{ie();pe();bf();vf();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()});function fl(r){return`ftds--family-${r}`}function hl(r){return`ftds--size-${r}`}var Xi,Ji,Jf=u(()=>{(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Xi||(Xi={}));(function(r){r.large="large",r.medium="medium",r.small="small"})(Ji||(Ji={}))});var Yo=u(()=>{te();Xf();Jf()});var ml={};q(ml,{DesignSystemFamily:()=>Xi,DesignSystemSize:()=>Ji,FtCssVariableFactory:()=>i,badge:()=>rS,banner:()=>tS,button:()=>j0,card:()=>G0,chart:()=>bS,checkbox:()=>q0,chip:()=>X0,chipChoice:()=>Y0,chipGroup:()=>J0,collapsible:()=>gS,combobox:()=>hS,dateRangePicker:()=>ES,drawer:()=>cS,floatingMenu:()=>fS,foundation:()=>c,link:()=>eS,modal:()=>sS,notice:()=>xS,notification:()=>CS,pageDesigner:()=>vS,pageFooter:()=>nS,pageHeader:()=>iS,pageLayout:()=>aS,popover:()=>mS,radio:()=>Z0,reorderableList:()=>lS,resolveFamilyClass:()=>fl,resolveSizeClass:()=>hl,semantic:()=>p,setVariable:()=>A,switch_:()=>yS,table:()=>Q0,tabs:()=>dS,textArea:()=>pS,textInput:()=>uS,titleBreadcrumb:()=>oS,toggle:()=>SS,tooltip:()=>OS,treeList:()=>K0,typographies:()=>V0,typographyBody1Medium:()=>sf,typographyBody1Regular:()=>af,typographyBody1Semibold:()=>lf,typographyBody2Medium:()=>df,typographyBody2MediumUnderline:()=>uf,typographyBody2Regular:()=>cf,typographyBody2Semibold:()=>pf,typographyCaption1Medium:()=>ff,typographyCaption1Semibold:()=>hf,typographyCaption2Bold:()=>yf,typographyCaption2Medium:()=>mf,typographyCaption2Semibold:()=>gf,typographyDisplay:()=>tf,typographyTitle1:()=>rf,typographyTitle2:()=>of,typographyTitle3:()=>nf,typographyVariants:()=>W0});var ia=u(()=>{"use strict";Yo()});var gl={};q(gl,{designSystemVariables:()=>S});var S,yl=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 bl={};q(bl,{DynamicImporter:()=>na,dynamicImporter:()=>wS});var na,wS,vl=u(()=>{"use strict";na=class{async import(e){if(e)return import(e)}},wS=new na});function rh(r,e,t){return er(r,co(e,t))}function Xo(r,e){return typeof r=="function"?r(e):r}function uo(r){return r.split("-")[0]}function rr(r){return r.split("-")[1]}function Cl(r){return r==="x"?"y":"x"}function Ol(r){return r==="y"?"height":"width"}function Jo(r){let e=r[0];return e==="t"||e==="b"?"y":"x"}function El(r){return Cl(Jo(r))}function oh(r,e,t){t===void 0&&(t=!1);let o=rr(r),n=El(r),a=Ol(n),s=n==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=xl(s)),[s,xl(s)]}function ih(r){return r.includes("start")?r.replace("start","end"):r.replace("end","start")}function xl(r){let e=uo(r);return RS[e]+r.slice(e.length)}function AS(r){var e,t,o,n;return{top:(e=r.top)!=null?e:0,right:(t=r.right)!=null?t:0,bottom:(o=r.bottom)!=null?o:0,left:(n=r.left)!=null?n:0}}function nh(r){return typeof r!="number"?AS(r):{top:r,right:r,bottom:r,left:r}}function po(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 th,eh,Sl,co,er,en,tr,RS,aa=u(()=>{th=["top","right","bottom","left"],eh=["start","end"],Sl=th.reduce((r,e)=>r.concat(e,e+"-"+eh[0],e+"-"+eh[1]),[]),co=Math.min,er=Math.max,en=Math.round,tr=r=>({x:r,y:r}),RS={left:"right",right:"left",bottom:"top",top:"bottom"}});function ah(r,e,t){let{reference:o,floating:n}=r,a=Jo(e),s=El(e),l=Ol(s),d=uo(e),f=a==="y",g=o.x+o.width/2-n.width/2,m=o.y+o.height/2-n.height/2,y=o[l]/2-n[l]/2,v;switch(d){case"top":v={x:g,y:o.y-n.height};break;case"bottom":v={x:g,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:m};break;case"left":v={x:o.x-n.width,y:m};break;default:v={x:o.x,y:o.y}}let x=rr(e);return x&&(v[s]+=y*(x==="end"?1:-1)*(t&&f?-1:1)),v}async function sh(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:g="viewport",elementContext:m="floating",altBoundary:y=!1,padding:v=0}=Xo(e,r),x=nh(v),L=l[y?m==="floating"?"reference":"floating":m],P=po(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(L)))==null||t?L:L.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:f,rootBoundary:g,strategy:d})),B=m==="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},k=po(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:B,offsetParent:E,strategy:d}):B);return{top:(P.top-k.top+x.top)/C.y,bottom:(k.bottom-P.bottom+x.bottom)/C.y,left:(P.left-k.left+x.left)/C.x,right:(k.right-P.right+x.right)/C.x}}function kS(r,e,t){return(r?[...t.filter(n=>rr(n)===r),...t.filter(n=>rr(n)!==r)]:t.filter(n=>uo(n)===n)).filter(n=>r?rr(n)===r||(e?ih(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=uo(t),l=rr(t),d=Jo(t)==="y",f=TS.has(s)?-1:1,g=a&&d?-1:1,m=Xo(e,r),{mainAxis:y,crossAxis:v,alignmentAxis:x}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return l&&typeof x=="number"&&(v=l==="end"?x*-1:x),d?{x:v*g,y:y*f}:{x:y*f,y:v*g}}var LS,lh,ch,TS,dh,uh,ph,fh=u(()=>{aa();aa();LS=50,lh=async(r,e,t)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=s.detectOverflow?s:{...s,detectOverflow:sh},d=await(s.isRTL==null?void 0:s.isRTL(e)),f=await s.getElementRects({reference:r,floating:e,strategy:n}),{x:g,y:m}=ah(f,o,d),y=o,v=0,x={};for(let w=0;w<a.length;w++){let L=a[w];if(!L)continue;let{name:P,fn:B}=L,{x:E,y:C,data:k,reset:H}=await B({x:g,y:m,initialPlacement:o,placement:y,strategy:n,middlewareData:x,rects:f,platform:l,elements:{reference:r,floating:e}});g=E??g,m=C??m,x[P]={...x[P],...k},H&&v<LS&&(v++,typeof H=="object"&&(H.placement&&(y=H.placement),H.rects&&(f=H.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:n}):H.rects),{x:g,y:m}=ah(f,y,d)),w=-1)}return{x:g,y:m,placement:y,strategy:n,middlewareData:x}};ch=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:g=!1,alignment:m,allowedPlacements:y=Sl,autoAlignment:v=!0,...x}=Xo(r,e),w=m!==void 0||y===Sl?kS(m||null,v,y):y,L=((t=s.autoPlacement)==null?void 0:t.index)||0,P=w[L];if(P==null)return{};if(l!==P)return{reset:{placement:w[0]}};let B=await d.detectOverflow(e,x),E=oh(P,a,await(d.isRTL==null?void 0:d.isRTL(f.floating))),C=[B[uo(P)],B[E[0]],B[E[1]]],k=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:P,overflows:C}],H=w[L+1];if(H)return{data:{index:L+1,overflows:k},reset:{placement:H}};let ce=k.map(M=>{let V=rr(M.placement);return[M.placement,V&&g?M.overflows.slice(0,2).reduce((se,qe)=>se+qe,0):M.overflows[0],M.overflows]}).sort((M,V)=>M[1]-V[1]),ee=((n=ce.filter(M=>M[2].slice(0,rr(M[0])?2:3).every(V=>V<=0))[0])==null?void 0:n[0])||ce[0][0];return ee!==l?{data:{index:L+1,overflows:k},reset:{placement:ee}}:{}}}},TS=new Set(["left","top"]);dh=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}}}}},uh=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:B=>{let{x:E,y:C}=B;return{x:E,y:C}}},...f}=Xo(r,e),g={x:t,y:o},m=await a.detectOverflow(e,f),y=Jo(n),v=Cl(y),x=g[v],w=g[y],L=(B,E)=>rh(E+m[B==="y"?"top":"left"],E,E-m[B==="y"?"bottom":"right"]);s&&(x=L(v,x)),l&&(w=L(y,w));let P=d.fn({...e,[v]:x,[y]:w});return{...P,data:{x:P.x-t,y:P.y-o,enabled:{[v]:s,[y]:l}}}}}},ph=function(r){return r===void 0&&(r={}),{name:"size",options:r,async fn(e){let{placement:t,rects:o,platform:n,elements:a}=e,{apply:s=()=>{},...l}=Xo(r,e),d=await n.detectOverflow(e,l),f=uo(t),g=rr(t),m=Jo(t)==="y",{width:y,height:v}=o.floating,x,w;f==="top"||f==="bottom"?(x=f,w=g===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(w=f,x=g==="end"?"top":"bottom");let L=v-d.top-d.bottom,P=y-d.left-d.right,B=co(v-d[x],L),E=co(y-d[w],P),C=e.middlewareData.shift,k=!C,H=B,ce=E;C!=null&&C.enabled.x&&(ce=P),C!=null&&C.enabled.y&&(H=L),k&&!g&&(m?ce=y-2*er(d.left,d.right):H=v-2*er(d.top,d.bottom)),await s({...e,availableWidth:ce,availableHeight:H});let J=await n.getDimensions(a.floating);return y!==J.width||v!==J.height?{reset:{rects:!0}}:{}}}}});function la(){return typeof window<"u"}function ho(r){return mh(r)?(r.nodeName||"").toLowerCase():"#document"}function ct(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function gr(r){var e;return(e=(mh(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function mh(r){return la()?r instanceof Node||r instanceof ct(r).Node:!1}function Ut(r){return la()?r instanceof Element||r instanceof ct(r).Element:!1}function yr(r){return la()?r instanceof HTMLElement||r instanceof ct(r).HTMLElement:!1}function hh(r){return!la()||typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof ct(r).ShadowRoot}function tn(r){let{overflow:e,overflowX:t,overflowY:o,display:n}=zt(r);return/auto|scroll|overlay|hidden|clip/.test(e+o+t)&&n!=="inline"&&n!=="contents"}function gh(r){return/^(table|td|th)$/.test(ho(r))}function rn(r){try{if(r.matches(":popover-open"))return!0}catch{}try{return r.matches(":modal")}catch{return!1}}function ei(r){let e=Ut(r)?zt(r):r;return fo(e.transform)||fo(e.translate)||fo(e.scale)||fo(e.rotate)||fo(e.perspective)||!ca()&&(fo(e.backdropFilter)||fo(e.filter))||IS.test(e.willChange||"")||PS.test(e.contain||"")}function yh(r){let e=Nr(r);for(;yr(e)&&!ti(e);){if(ei(e))return e;if(rn(e))return null;e=Nr(e)}return null}function ca(){return wl==null&&(wl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),wl}function ti(r){return/^(html|body|#document)$/.test(ho(r))}function zt(r){return ct(r).getComputedStyle(r)}function on(r){return Ut(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function Nr(r){if(ho(r)==="html")return r;let e=r.assignedSlot||r.parentNode||hh(r)&&r.host||gr(r);return hh(e)?e.host:e}function bh(r){let e=Nr(r);return ti(e)?(r.ownerDocument||r).body:yr(e)&&tn(e)?e:bh(e)}function sa(r,e,t){var o;e===void 0&&(e=[]),t===void 0&&(t=!0);let n=bh(r),a=n===((o=r.ownerDocument)==null?void 0:o.body),s=ct(n);if(a){let l=da(s);return e.concat(s,s.visualViewport||[],tn(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 IS,PS,fo,wl,Rl=u(()=>{IS=/transform|translate|scale|rotate|perspective|filter/,PS=/paint|layout|strict|content/,fo=r=>!!r&&r!=="none"});function Sh(r){let e=zt(r),t=parseFloat(e.width)||0,o=parseFloat(e.height)||0,n=yr(r),a=n?r.offsetWidth:t,s=n?r.offsetHeight:o,l=en(t)!==a||en(o)!==s;return l&&(t=a,o=s),{width:t,height:o,$:l}}function Ch(r){return Ut(r)?r:r.contextElement}function ri(r){let e=Ch(r);if(!yr(e))return tr(1);let t=e.getBoundingClientRect(),{width:o,height:n,$:a}=Sh(e),s=(a?en(t.width):t.width)/o,l=(a?en(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function Oh(r){let e=ct(r);return!ca()||!e.visualViewport?NS:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function $S(r,e,t){return e===void 0&&(e=!1),!!t&&e&&t===ct(r)}function nn(r,e,t,o){e===void 0&&(e=!1),t===void 0&&(t=!1);let n=r.getBoundingClientRect(),a=Ch(r),s=tr(1);e&&(o?Ut(o)&&(s=ri(o)):s=ri(r));let l=$S(a,t,o)?Oh(a):tr(0),d=(n.left+l.x)/s.x,f=(n.top+l.y)/s.y,g=n.width/s.x,m=n.height/s.y;if(a&&o){let y=ct(a),v=Ut(o)?ct(o):o,x=y,w=da(x);for(;w&&v!==x;){let L=ri(w),P=w.getBoundingClientRect(),B=zt(w),E=P.left+(w.clientLeft+parseFloat(B.paddingLeft))*L.x,C=P.top+(w.clientTop+parseFloat(B.paddingTop))*L.y;d*=L.x,f*=L.y,g*=L.x,m*=L.y,d+=E,f+=C,x=ct(w),w=da(x)}}return po({width:g,height:m,x:d,y:f})}function ua(r,e){let t=on(r).scrollLeft;return e?e.left+t:nn(gr(r)).left+t}function Eh(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 DS(r){let{elements:e,rect:t,offsetParent:o,strategy:n}=r,a=n==="fixed",s=gr(o),l=e?rn(e.floating):!1;if(o===s||l&&a)return t;let d={scrollLeft:0,scrollTop:0},f=tr(1),g=tr(0),m=yr(o);if((m||!a)&&((ho(o)!=="body"||tn(s))&&(d=on(o)),m)){let v=nn(o);f=ri(o),g.x=v.x+o.clientLeft,g.y=v.y+o.clientTop}let y=s&&!m&&!a?Eh(s,d):tr(0);return{width:t.width*f.x,height:t.height*f.y,x:t.x*f.x-d.scrollLeft*f.x+g.x+y.x,y:t.y*f.y-d.scrollTop*f.y+g.y+y.y}}function MS(r){return r.getClientRects?Array.from(r.getClientRects()):[]}function FS(r){let e=on(r),t=r.ownerDocument.body,o=er(r.scrollWidth,r.clientWidth,t.scrollWidth,t.clientWidth),n=er(r.scrollHeight,r.clientHeight,t.scrollHeight,t.clientHeight),a=-e.scrollLeft+ua(r),s=-e.scrollTop;return zt(t).direction==="rtl"&&(a+=er(r.clientWidth,t.clientWidth)-o),{width:o,height:n,x:a,y:s}}function US(r,e,t){t===void 0&&(t="viewport");let o=t==="layoutViewport",n=ct(r),a=gr(r),s=n.visualViewport,l=a.clientWidth,d=a.clientHeight,f=0,g=0;if(s){let y=!ca()||e==="fixed";o?y||(f=-s.offsetLeft,g=-s.offsetTop):(l=s.width,d=s.height,y&&(f=s.offsetLeft,g=s.offsetTop))}if(ua(a)<=0){let y=a.ownerDocument,v=y.body,x=getComputedStyle(v),w=y.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,L=Math.abs(a.clientWidth-v.clientWidth-w),P=getComputedStyle(a).scrollbarGutter==="stable both-edges"?L/2:L;P<=BS&&(l-=P)}return{width:l,height:d,x:f,y:g}}function zS(r,e){let t=nn(r,!0,e==="fixed"),o=t.top+r.clientTop,n=t.left+r.clientLeft,a=ri(r),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 vh(r,e,t){let o;if(e==="viewport"||e==="layoutViewport")o=US(r,t,e);else if(e==="document")o=FS(gr(r));else if(Ut(e))o=zS(e,t);else{let n=Oh(r);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return po(o)}function HS(r,e){let t=e.get(r);if(t)return t;let o=sa(r,[],!1).filter(l=>Ut(l)&&ho(l)!=="body"),n=null,a=zt(r).position==="fixed",s=a?Nr(r):r;for(;Ut(s)&&!ti(s);){let l=zt(s),d=ei(s),f=n?n.position:a?"fixed":"";!d&&(f==="fixed"||f==="absolute"&&l.position==="static")?o=o.filter(m=>m!==s):n=l,s=Nr(s)}return e.set(r,o),o}function VS(r){let{element:e,boundary:t,rootBoundary:o,strategy:n}=r,s=[...t==="clippingAncestors"?rn(e)?[]:HS(e,this._c):[].concat(t),o],l=vh(e,s[0],n),d=l.top,f=l.right,g=l.bottom,m=l.left;for(let y=1;y<s.length;y++){let v=vh(e,s[y],n);d=er(v.top,d),f=co(v.right,f),g=co(v.bottom,g),m=er(v.left,m)}return{width:f-m,height:g-d,x:m,y:d}}function WS(r){let{width:e,height:t}=Sh(r);return{width:e,height:t}}function jS(r,e,t){let o=yr(e),n=gr(e),a=t==="fixed",s=nn(r,!0,a,e),l={scrollLeft:0,scrollTop:0},d=tr(0);if((o||!a)&&((ho(e)!=="body"||tn(n))&&(l=on(e)),o)){let y=nn(e,!0,a,e);d.x=y.x+e.clientLeft,d.y=y.y+e.clientTop}!o&&n&&(d.x=ua(n));let f=n&&!o&&!a?Eh(n,l):tr(0),g=s.left+l.scrollLeft-d.x-f.x,m=s.top+l.scrollTop-d.y-f.y;return{x:g,y:m,width:s.width,height:s.height}}function Al(r){return zt(r).position==="static"}function xh(r,e){if(!yr(r)||zt(r).position==="fixed")return null;if(e)return e(r);let t=r.offsetParent;return gr(r)===t&&(t=t.ownerDocument.body),t}function wh(r,e){let t=ct(r);if(rn(r))return t;if(!yr(r)){let n=Nr(r);for(;n&&!ti(n);){if(Ut(n)&&!Al(n))return n;n=Nr(n)}return t}let o=xh(r,e);for(;o&&gh(o)&&Al(o);)o=xh(o,e);return o&&ti(o)&&Al(o)&&!ei(o)?t:o||yh(r)||t}function KS(r){return zt(r).direction==="rtl"}var NS,BS,GS,oi,Rh,Ll,Ah,Lh,kl,kh=u(()=>{fh();aa();Rl();NS=tr(0);BS=25;GS=async function(r){let e=this.getOffsetParent||wh,t=this.getDimensions,o=await t(r.floating);return{reference:jS(r.reference,await e(r.floating),r.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};oi={convertOffsetParentRelativeRectToViewportRelativeRect:DS,getDocumentElement:gr,getClippingRect:VS,getOffsetParent:wh,getElementRects:GS,getClientRects:MS,getDimensions:WS,getScale:ri,isElement:Ut,isRTL:KS},Rh=dh,Ll=ch,Ah=uh,Lh=ph,kl=(r,e,t)=>{let o=new Map,n=t??{},a={...oi,...n.platform,_c:o};return lh(r,e,{...n,platform:a})}});function _l(r){return qS(r)}function Tl(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function qS(r){for(let e=r;e;e=Tl(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Tl(r);e;e=Tl(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||ei(t)||e.tagName==="BODY"))return e}return null}var Th=u(()=>{Rl()});var Nl={};q(Nl,{computeOffsetAutoPosition:()=>Pl,computeOffsetPosition:()=>Il});async function Il(r,e,t){let o;return typeof t=="object"?o=t:o={placement:t},kl(r,e,{strategy:o.strategy,platform:{...oi,getOffsetParent:n=>oi.getOffsetParent(n,_l)},middleware:[Ah({crossAxis:!0}),Ll({allowedPlacements:[o.placement]})]})}async function Pl(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,kl(r,e,{placement:l,strategy:n,platform:{...oi,getOffsetParent:f=>oi.getOffsetParent(f,_l)},middleware:[Rh(s??4),Ll({allowedPlacements:o}),Lh({apply({availableHeight:f,availableWidth:g,elements:m}){typeof a=="string"&&(a=`var(${a})`),a?m.floating.style.maxHeight=`min(${Math.max(0,f)}px, ${a})`:m.floating.style.maxHeight=`${Math.max(0,f)}px`,typeof d=="string"&&(d=`var(${d})`),d?m.floating.style.maxWidth=`min(${Math.max(0,g)}px, ${d})`:m.floating.style.maxWidth=`${Math.max(0,g)}px`}})]})}var pa=u(()=>{"use strict";kh();Th()});var $l={};q($l,{isSlotEmptyOrWithoutContent:()=>an});var an,Dl=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 Ml={};q(Ml,{ScopedRegistryLitElement:()=>sn});var sn,fa=u(()=>{"use strict";_();Hn();lo();sn=class extends Lt{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 Ui(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){qi(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 Bl={};q(Bl,{shadowQuerySelector:()=>Fl,shadowQuerySelectorAll:()=>ZS});function Fl(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 ZS(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 Ul={};q(Ul,{ExportpartsUpdatedEvent:()=>mo,FtLitElement:()=>D});var ii,Nh,_h,Ih,$h,Ph,mo,D,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},_h=Symbol("constructorPrototype"),Ih=Symbol("constructorName"),$h=Symbol("exportpartsDebouncer"),Ph=Symbol("dynamicDependenciesLoaded"),mo=class r extends CustomEvent{constructor(){super(r.eventName,{bubbles:!0})}};mo.eventName="exportparts-updated";D=class extends sn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Nh]=new ae(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[$h].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[Ih]=this.constructor.name,this[_h]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ih]&&Object.setPrototypeOf(this,this[_h])}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[Ph]||(t[Ph]=!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=Fl(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 g=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 v=(a=(n=y.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],x=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(L=>L.split(":")[1]))!==null&&l!==void 0?l:[],w=[...v,...x].filter(d).map(L=>L.trim());for(let L of w)g.add(L)}if(g.size===0){this.exportparts=void 0;return}let m=[...g.values()].flatMap(y=>f.map(v=>`${y}:${v}--${y}`));this.exportparts=[...this.part,...m].join(", ")}};Nh=$h;ii([h()],D.prototype,"exportpartsPrefix",void 0);ii([ue([])],D.prototype,"exportpartsPrefixes",void 0);ii([h({reflect:!0})],D.prototype,"exportparts",void 0);ii([h()],D.prototype,"customStylesheet",void 0);ii([h()],D.prototype,"elementToFocus",void 0);ii([I()],D.prototype,"useAdoptedStyleSheets",void 0)});var Hl={};q(Hl,{FtdsBase:()=>zl,toFtdsBase:()=>Mh});var Dh,Mh,zl,Vl=u(()=>{"use strict";ln();K();Yo();rt();Dh=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},Mh=we(Symbol("toFtdsBase"),function(r){class e extends r{constructor(){super(...arguments),this.size=Ji.medium,this.family=Xi.neutral}getDesignSystemBaseClasses(){return{[fl(this.family)]:!0,[hl(this.size)]:!0}}}return Dh([h()],e.prototype,"size",void 0),Dh([h()],e.prototype,"family",void 0),e}),zl=class extends Mh(D){}});var Fh={};var Wl=u(()=>{"use strict"});var go,Bh=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,g=>{t(f)&&(l++,o(g)),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,g,m=()=>({prevNode:g,node:f}=this.getIteratorNode(s),f);for(;m();)this.iframes&&this.forEachIframe(t,y=>this.checkIframeFilter(f,g,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(e,v=>d.push(v),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,Uh=u(()=>{Bh();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,g=(o>s.end?s.end:o)-s.start,m=e.value.substr(0,s.start),y=e.value.substr(g+s.start);if(s.node=this.wrapRangeInTextNode(s.node,f,g),e.value=m+y,e.nodes.forEach((v,x)=>{x>=l&&(e.nodes[x].start>0&&x!==l&&(e.nodes[x].start-=g),e.nodes[x].end-=g)}),o-=g,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 g=f.index;if(s!==0)for(let m=1;m<s;m++)g+=f[m].length;d=this.wrapRangeInTextNode(d,g,g+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 m=1;m<s;m++)f+=d[m].length;let g=f+d[s].length;this.wrapRangeInMappedTextNode(l,f,g,m=>o(d[s],m),(m,y)=>{e.lastIndex=y,n(m)})}a()})}wrapRangeFromIndex(e,t,o,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,d)=>{let{start:f,end:g,valid:m}=this.checkWhitespaceRanges(l,s,a.value);m&&this.wrapRangeInMappedTextNode(a,f,g,y=>t(y,l,a.value.substring(f,g),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 g=new RegExp(this.createRegExp(f),`gm${l}`),m=0;this.log(`Searching with expression "${g}"`),this[n](g,1,(y,v)=>this.opt.filter(v,f,o,m),y=>{m++,o++,this.opt.each(y)},()=>{m===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 jl(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 zh=u(()=>{Uh()});var Kl={};q(Kl,{highlightHtml:()=>Gl,highlightHtmlColorCssVariable:()=>Hh,highlightHtmlStyles:()=>YS});function Gl(r,e,t){var o,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new QS(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 g in t.attributes)f.setAttribute(g,t.attributes[g])}),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 QS,Hh,YS,ql=u(()=>{"use strict";_();Yo();zh();QS=jl,Hh=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),YS=R`
5
5
  .highlight-html-match {
6
- background: ${jh};
6
+ background: ${Hh};
7
7
  }
8
- `});var Yl={};q(Yl,{noTextInputDefaultClearButton:()=>bo,noTextSelect:()=>yo,safariEllipsisFix:()=>Ql,wordWrap:()=>dn});var yo,dn,Ql,bo,Xl=u(()=>{"use strict";_();yo=R`
8
+ `});var Ql={};q(Ql,{noTextInputDefaultClearButton:()=>bo,noTextSelect:()=>yo,safariEllipsisFix:()=>Zl,wordWrap:()=>dn});var yo,dn,Zl,bo,Yl=u(()=>{"use strict";_();yo=R`
9
9
  .ft-no-text-select {
10
10
  -webkit-touch-callout: none;
11
11
  -webkit-user-select: none;
@@ -26,7 +26,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
26
26
  -webkit-hyphens: auto;
27
27
  hyphens: auto
28
28
  }
29
- `,Ql=R`
29
+ `,Zl=R`
30
30
  .ft-safari-ellipsis-fix {
31
31
  margin-right: 0;
32
32
 
@@ -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 Jl=u(()=>{"use strict"});var ec={};q(ec,{ParametrizedLabelResolver:()=>$r});var $r,tc=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,fe,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)},fe=r=>{let e=r??{};return(t,o)=>{var n;let a={hasChanged:gt,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,rc=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,bt,Zh=u(()=>{"use strict";ln();ma();rt();pn=Symbol("internalReduxEventsUnsubscribers"),Dr=Symbol("internalStoresUnsubscribers"),vo=Symbol("internalStores"),qh=we(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,g)=>{if(typeof this[g]=="function"&&(!f.store||l.name===f.store)){let m=y=>this[g](y);l.addEventListener(f.eventName,m),this[pn].get(s).push(()=>l.removeEventListener(f.eventName,m))}})),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}),bt=class extends qh(D){}});function It(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 br(r){return!!r&&!!r[Oe]}function Ht(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])||uc(r)||pc(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[Oe];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:uc(r)?2:pc(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 uc(r){return lC&&r instanceof Map}function pc(r){return cC&&r instanceof Set}function Mr(r){return r.o||r.t}function fc(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=sm(r);delete e[Oe];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 hc(r,e){return e===void 0&&(e=!1),mc(r)||br(r)||!Ht(r)||(li(r)>1&&(r.set=r.add=r.clear=r.delete=iC),Object.freeze(r),e&&xo(r,(function(t,o){return hc(o,!0)}),!0)),r}function iC(){It(2)}function mc(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function or(r){var e=dc[r];return e||It(18,r),e}function nC(r,e){dc[r]||(dc[r]=e)}function sc(){return hn}function oc(r,e){e&&(or("Patches"),r.u=[],r.s=[],r.v=e)}function ga(r){lc(r),r.p.forEach(aC),r.p=null}function lc(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[Oe];e.i===0||e.i===1?e.j():e.g=!0}function ic(r,e){e._=e.p.length;var t=e.p[0],o=r!==void 0&&r!==t;return e.h.O||or("ES5").S(e,r,o),o?(t[Oe].P&&(ga(e),It(4)),Ht(r)&&(r=ya(e,r),e.l||ba(e,r)),e.u&&or("Patches").M(t[Oe].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(mc(e))return e;var o=e[Oe];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=fc(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&&or("Patches").N(o,t,r.u,r.s)}return o.o}function Yh(r,e,t,o,n,a,s){if(br(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),!br(l))return;r.m=!1}else s&&t.add(n);if(Ht(n)&&!mc(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&&hc(e,t)}function nc(r,e){var t=r[Oe];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 ac(r){r.o||(r.o=fc(r.t))}function cc(r,e,t){var o=uc(e)?or("MapSet").F(e,t):pc(e)?or("MapSet").T(e,t):r.O?(function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:sc(),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 g=Proxy.revocable(d,f),m=g.revoke,y=g.proxy;return l.k=y,l.j=m,y})(e,t):or("ES5").J(e,t);return(t?t.A:sc()).p.push(o),o}function sC(r){return br(r)||It(22,r),(function e(t){if(!Ht(t))return t;var o,n=t[Oe],a=li(t);if(n){if(!n.P&&(n.i<4||!or("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 fc(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[Oe];return mn.get(f,s)},set:function(f){var g=this[Oe];mn.set(g,s,f)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Oe];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),g=f.length-1;g>=0;g--){var m=f[g];if(m!==Oe){var y=l[m];if(y===void 0&&!ai(l,m))return!0;var v=d[m],x=v&&v[Oe];if(x?x.t!==y:!im(v,y))return!0}}var w=!!l[Oe];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&&It(3,JSON.stringify(Mr(s)))}var a={};nC("ES5",{J:function(s,l){var d=Array.isArray(s),f=(function(m,y){if(m){for(var v=Array(y.length),x=0;x<y.length;x++)Object.defineProperty(v,""+x,r(x,!0));return v}var w=sm(y);delete w[Oe];for(var L=si(w),P=0;P<L.length;P++){var B=L[P];w[B]=r(B,m||!!w[B].enumerable)}return Object.create(Object.getPrototypeOf(y),w)})(d,s),g={i:d?5:4,A:l?l.A:sc(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,Oe,{value:g,writable:!0}),f},S:function(s,l,d){d?br(l)&&l[Oe].A===s&&e(s.p):(s.u&&(function f(g){if(g&&typeof g=="object"){var m=g[Oe];if(m){var y=m.t,v=m.k,x=m.R,w=m.i;if(w===4)xo(v,(function(C){C!==Oe&&(y[C]!==void 0||ai(y,C)?x[C]||f(v[C]):(x[C]=!0,Fr(m)))})),xo(y,(function(C){v[C]!==void 0||ai(v,C)||(x[C]=!1,Fr(m))}));else if(w===5){if(o(m)&&(Fr(m),x.length=!0),v.length<y.length)for(var L=v.length;L<y.length;L++)x[L]=!1;else for(var P=y.length;P<v.length;P++)x[P]=!0;for(var B=Math.min(v.length,y.length),E=0;E<B;E++)v.hasOwnProperty(E)||(x[E]=!0),x[E]===void 0&&f(v[E])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):o(s)}})}var em,hn,gc,lC,cC,tm,am,rm,Oe,dC,si,sm,dc,mn,fn,uC,vt,pC,mk,gk,yk,bk,vk,xk,va,xa=u(()=>{gc=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=gc?Symbol.for("immer-nothing"):((em={})["immer-nothing"]=!0,em),rm=gc?Symbol.for("immer-draftable"):"__$immer_draftable",Oe=gc?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},dc={},mn={get:function(r,e){if(e===Oe)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||!Ht(o)?o:o===nc(r.t,e)?(ac(r),r.o[e]=cc(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=nc(Mr(r),e),a=n?.[Oe];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;ac(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 nc(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,ac(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(){It(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){It(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 L=this;w===void 0&&(w=l);for(var P=arguments.length,B=Array(P>1?P-1:0),E=1;E<P;E++)B[E-1]=arguments[E];return d.produce(w,(function(C){var k;return(k=a).call.apply(k,[L,C].concat(B))}))}}var f;if(typeof a!="function"&&It(6),s!==void 0&&typeof s!="function"&&It(7),Ht(n)){var g=Qh(o),m=cc(o,n,void 0),y=!0;try{f=a(m),y=!1}finally{y?ga(g):lc(g)}return typeof Promise<"u"&&f instanceof Promise?f.then((function(w){return oc(g,s),ic(w,g)}),(function(w){throw ga(g),w})):(oc(g,s),ic(f,g))}if(!n||typeof n!="object"){if((f=a(n))===void 0&&(f=n),f===am&&(f=void 0),o.D&&hc(f,!0),s){var v=[],x=[];or("Patches").M(n,f,v,x),s(v,x)}return f}It(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(f){for(var g=arguments.length,m=Array(g>1?g-1:0),y=1;y<g;y++)m[y-1]=arguments[y];return o.produceWithPatches(f,(function(v){return n.apply(void 0,[v].concat(m))}))};var s,l,d=o.produce(n,a,(function(f,g){s=f,l=g}));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){Ht(t)||It(8),br(t)&&(t=sC(t));var o=Qh(this),n=cc(this,t,void 0);return n[Oe].C=!0,lc(o),n},e.finishDraft=function(t,o){var n=t&&t[Oe],a=n.A;return oc(a,o),ic(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!tm&&It(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=or("Patches").$;return br(t)?s(t,o):this.produce(t,(function(l){return s(l,o)}))},r})(),vt=new uC,pC=vt.produce,mk=vt.produceWithPatches.bind(vt),gk=vt.setAutoFreeze.bind(vt),yk=vt.setUseProxies.bind(vt),bk=vt.applyPatches.bind(vt),vk=vt.createDraft.bind(vt),xk=vt.finishDraft.bind(vt),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 yc=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(()=>{yc()});function dm(r){var e=lm(r,"string");return So(e)=="symbol"?e:e+""}var um=u(()=>{yc();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 bc(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 Ze(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 xc(r,e,t){var o;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(Ze(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(Ze(1));return t(xc)(r,e)}if(typeof r!="function")throw new Error(Ze(2));var n=r,a=e,s=[],l=s,d=!1;function f(){l===s&&(l=s.slice())}function g(){if(d)throw new Error(Ze(3));return a}function m(w){if(typeof w!="function")throw new Error(Ze(4));if(d)throw new Error(Ze(5));var L=!0;return f(),l.push(w),function(){if(L){if(d)throw new Error(Ze(6));L=!1,f();var B=l.indexOf(w);l.splice(B,1),s=null}}}function y(w){if(!fC(w))throw new Error(Ze(7));if(typeof w.type>"u")throw new Error(Ze(8));if(d)throw new Error(Ze(9));try{d=!0,a=n(a,w)}finally{d=!1}for(var L=s=l,P=0;P<L.length;P++){var B=L[P];B()}return w}function v(w){if(typeof w!="function")throw new Error(Ze(10));n=w,y({type:Sa.REPLACE})}function x(){var w,L=m;return w={subscribe:function(B){if(typeof B!="object"||B===null)throw new Error(Ze(11));function E(){B.next&&B.next(g())}E();var C=L(E);return{unsubscribe:C}}},w[gm]=function(){return this},w}return y({type:Sa.INIT}),o={dispatch:y,subscribe:m,getState:g,replaceReducer:v},o[gm]=x,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(Ze(12));if(typeof t(void 0,{type:Sa.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ze(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,g){if(f===void 0&&(f={}),l)throw l;if(0)var m;for(var y=!1,v={},x=0;x<a.length;x++){var w=a[x],L=t[w],P=f[w],B=L(P,g);if(typeof B>"u"){var E=g&&g.type;throw new Error(Ze(14))}v[w]=B,y=y||B!==P}return y=y||a.length!==Object.keys(f).length,y?v: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(Ze(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),bc(bc({},n),{},{dispatch:a})}}}var gm,vc,Sa,Ca=u(()=>{mm();gm=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),vc=function(){return Math.random().toString(36).substring(7).split("").join(".")},Sa={INIT:"@@redux/INIT"+vc(),REPLACE:"@@redux/REPLACE"+vc(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+vc()}}});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,Sc,Sm=u(()=>{xm=vm();xm.withExtraArgument=vm;Sc=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 wc(r){return Ht(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(Sc):f.push(Sc.withExtraArgument(t.extraArgument))),0){if(n)var g;if(s)var m;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,g=f===void 0?void 0:f,m=t.enhancers,y=m===void 0?void 0:m,v;if(typeof n=="function")v=n;else if(OC(n))v=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 x=s;if(typeof x=="function"&&(x=x(e),!Oc&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Oc&&x.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,x),L=ci;d&&(L=CC(Br({trace:!Oc},typeof d=="object"&&d)));var P=new wC(w),B=P;Array.isArray(y)?B=di([w],y):typeof y=="function"&&(B=y(P));var E=L.apply(void 0,B);return xc(v,g,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 wc(r())};else{var f=wc(r);d=function(){return f}}function g(m,y){m===void 0&&(m=d());var v=di([a[y.type]],s.filter(function(x){var w=x.matcher;return w(y)}).map(function(x){var w=x.reducer;return w}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,w){if(w)if(br(x)){var L=x,P=w(L,y);return P===void 0?x:P}else{if(Ht(x))return va(x,function(B){return w(B,y)});var P=w(x,y);if(P===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return P}return x},m)}return g.getInitialState=d,g}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:wc(r.initialState),o=r.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(g){var m=o[g],y=_C(e,g),v,x;"reducer"in m?(v=m.reducer,x=m.prepare):v=m,a[g]=v,s[y]=v,l[g]=x?Ur(y,x):Ur(y)});function d(){var g=typeof r.extraReducers=="function"?Lm(r.extraReducers):[r.extraReducers],m=g[0],y=m===void 0?{}:m,v=g[1],x=v===void 0?[]:v,w=g[2],L=w===void 0?void 0:w,P=Br(Br({},y),s);return TC(t,function(B){for(var E in P)B.addCase(E,P[E]);for(var C=0,k=x;C<k.length;C++){var H=k[C];B.addMatcher(H.matcher,H.reducer)}L&&B.addDefaultCase(L)})}var f;return{name:e,reducer:function(g,m){return f||(f=d()),f(g,m)},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,Cc,SC,CC,Fk,EC,wC,Oc,IC,PC,NC,Ec,Em,$C,Hk,Tm,_m,Im,Vk,Wk,jk,Gk,Rc,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(g){return d([f,g])}}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(g){f=[6,g],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},Cc=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);Oc=!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"],Ec=(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(g,m,y,v){return{payload:g,meta:Cc(Br({},v||{}),{arg:y,requestId:m,requestStatus:"fulfilled"})}}),a=Ur(e+"/pending",function(g,m,y){return{payload:void 0,meta:Cc(Br({},y||{}),{arg:m,requestId:g,requestStatus:"pending"})}}),s=Ur(e+"/rejected",function(g,m,y,v,x){return{payload:v,error:(o&&o.serializeError||$C)(g||"Rejected"),meta:Cc(Br({},x||{}),{arg:y,requestId:m,rejectedWithValue:!!v,requestStatus:"rejected",aborted:g?.name==="AbortError",condition:g?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:(function(){function g(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return g.prototype.abort=function(){},g})();function f(g){return function(m,y,v){var x=o?.idGenerator?o.idGenerator(g):PC(),w=new d,L,P=!1;function B(C){L=C,w.abort()}var E=(function(){return SC(this,null,function(){var C,k,H,ce,J,ee,M;return mC(this,function(V){switch(V.label){case 0:return V.trys.push([0,4,,5]),ce=(C=o?.condition)==null?void 0:C.call(o,g,{getState:y,extra:v}),MC(ce)?[4,ce]:[3,2];case 1:ce=V.sent(),V.label=2;case 2:if(ce===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,J=new Promise(function(se,qe){return w.signal.addEventListener("abort",function(){return qe({name:"AbortError",message:L||"Aborted"})})}),m(a(x,g,(k=o?.getPendingMeta)==null?void 0:k.call(o,{requestId:x,arg:g},{getState:y,extra:v}))),[4,Promise.race([J,Promise.resolve(t(g,{dispatch:m,getState:y,extra:v,requestId:x,signal:w.signal,abort:B,rejectWithValue:function(se,qe){return new Ec(se,qe)},fulfillWithValue:function(se,qe){return new Em(se,qe)}})).then(function(se){if(se instanceof Ec)throw se;return se instanceof Em?n(se.payload,x,g,se.meta):n(se,x,g)})])];case 3:return H=V.sent(),[3,5];case 4:return ee=V.sent(),H=ee instanceof Ec?s(null,x,g,ee.payload,ee.meta):s(ee,x,g),[3,5];case 5:return M=o&&!o.dispatchConditionRejection&&s.match(H)&&H.meta.condition,M||m(H),[2,H]}})})})();return Object.assign(E,{abort:B,requestId:x,arg:g,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,Rc="listenerMiddleware",Kk=Ur(Rc+"/add"),qk=Ur(Rc+"/removeAll"),Zk=Ur(Rc+"/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 vr,Nm=u(()=>{"use strict";Pm();ma();rc();Qo();rt();window.ftReduxStores||(window.ftReduxStores={});vr=class r extends mr{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 g=mt(s.getInitialState());for(let m of f.keeping)g[m]=(d??g)[m];return g}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?(...g)=>{let m=f(...g.map(n));return this.reduxStore.dispatch(m),m}:g=>{this.setState({[d]:n(g)})}}}),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);gt(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 Ac={};q(Ac,{FtCommandQueue:()=>un,FtLitElementRedux:()=>bt,FtReduxStore:()=>vr,FtStateManager:()=>Co,ReduxWatcher:()=>Oa,clearAllStores:()=>BC,isFtReduxStore:()=>ni,redux:()=>fe,reduxEventListener:()=>rC,reduxReactive:()=>tC,watch:()=>ui,withRedux:()=>qh});var Ea=u(()=>{"use strict";Kh();rc();Zh();Nm();ma();$m();Dm()});var _c={};q(_c,{scrollHelper:()=>Tc});var Lc,wa,kc,Tc,Ic=u(()=>{"use strict";rt();wa=new Map,kc=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=hr(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=(Lc=window.FluidTopicsScrollHelper)!==null&&Lc!==void 0?Lc:new kc;Tc=window.FluidTopicsScrollHelper});var Pc=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,ir,fi,tg,Te,Pt,rg,Nc=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"})(ir||(ir={}));(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"})(Te||(Te={}));(function(r){r.SEARCHES="SEARCHES",r.BOOKMARKS="BOOKMARKS",r.BOOKS="BOOKS",r.COLLECTIONS="COLLECTIONS"})(Pt||(Pt={}));(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(()=>{Nc();gg()});function bg(r,e){return r===e||(UC[r]??[]).some(t=>bg(t,e))}function Aa(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,vg=u(()=>{Nc();UC={[Te.PERSONAL_BOOK_SHARE_USER]:[Te.PERSONAL_BOOK_USER],[Te.HTML_EXPORT_USER]:[Te.PERSONAL_BOOK_USER],[Te.PDF_EXPORT_USER]:[Te.PERSONAL_BOOK_USER],[Te.KHUB_ADMIN]:[Te.CONTENT_PUBLISHER],[Te.ADMIN]:[Te.KHUB_ADMIN,Te.USERS_ADMIN,Te.PORTAL_ADMIN,Te.BEHAVIOR_DATA_USER],[Te.GENERATIVE_AI_EXPORT_USER]:[Te.GENERATIVE_AI_USER]}});var xg=u(()=>{});var Vr=u(()=>{Pc();yg();vg();xg();Pc()});var $c={};q($c,{SearchPlaceConverter:()=>Wr,SearchPlaceQueryParams:()=>Y,isSearchPlaceQueryParams:()=>Cg,serializeRequest:()=>HC});function zC(r){return`"${r}"`}function Sg(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function HC(r,e){return new Wr(r).serialize(e)}function Cg(r){return VC.has(r)}var Y,VC,Wr,Dc=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.NEGATIVE_VALUE_FILTERS="negative-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"})(Y||(Y={}));VC=new Set(Object.values(Y));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,g,m,y,v,x,w;let L=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&L.append(Y.LOCALE,e.contentLocale):L.append(Y.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&L.append(Y.QUERY,e.query);let P=J=>{var ee,M;let V=((M=(ee=J.valueFilter)===null||ee===void 0?void 0:ee.values)!==null&&M!==void 0?M:[]).map(se=>this.escapeFilters(se)).map(se=>zC(Sg(se))).join("_");return`${J.key}~${V}`},B=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(J=>J.valueFilter&&!J.valueFilter.negative))!==null&&a!==void 0?a:[];B.length>0&&L.append(Y.VALUE_FILTERS,B.map(P).join("*"));let E=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(J=>J.valueFilter&&J.valueFilter.negative))!==null&&l!==void 0?l:[];E.length>0&&L.append(Y.NEGATIVE_VALUE_FILTERS,E.map(P).join("*"));let C=(f=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(J=>J.dateFilter))!==null&&f!==void 0?f:[];if(C.length>0){let J=C.map(ee=>{var M;return`${ee.key}~${(M=ee.dateFilter)===null||M===void 0?void 0:M.type.toLowerCase()}`}).join("*");L.append(Y.DATE_FILTERS,J)}let k=(m=(g=e.metadataFilters)===null||g===void 0?void 0:g.filter(J=>J.rangeFilter))!==null&&m!==void 0?m:[];if(k.length>0){let J=k.map(ee=>{var M,V;return`${ee.key}~${(M=ee.rangeFilter)===null||M===void 0?void 0:M.from}_${(V=ee.rangeFilter)===null||V===void 0?void 0:V.to}`}).join("*");L.append(Y.RANGE_FILTERS,J)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&L.append(Y.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&L.append(Y.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&L.append(Y.SORT,e.sortId),!((y=e.paging)===null||y===void 0)&&y.perPage&&((x=(v=e.paging)===null||v===void 0?void 0:v.perPage)!==null&&x!==void 0?x:this.defaultPerPage)!=this.defaultPerPage&&L.append(Y.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&L.append(Y.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let H=(w=e.otherQueryParams)!==null&&w!==void 0?w:{};for(let J in H)L.append(J,H[J]);let ce=new Array;return L.forEach((J,ee)=>{ce.push(this.encodeQueryString(ee)+"="+this.encodeQueryString(J))}),encodeURI(ce.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(Y.LOCALE)==="all"?void 0:d.get(Y.LOCALE),g=((t=d.get(Y.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),m=(o=d.get(Y.SORT))===null||o===void 0?void 0:o.toLowerCase(),y=(n=d.get(Y.SCOPE))!==null&&n!==void 0?n:"default",v=+((a=d.get(Y.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),x=d.get(Y.KEYWORD_MATCH),w=x?x.toUpperCase()===Hr.MANDATORY?Hr.MANDATORY:Hr.OPTIONAL:void 0,L={};for(let P of d.keys())Cg(P)||(L[P]=d.get(P));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(Y.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[y])!==null&&l!==void 0?l:"DEFAULT",virtualField:og(g)?g:"EVERYWHERE",sortId:m,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:hr(1,isNaN(v)?this.defaultPerPage:v,1e3)},keywordMatch:w,otherQueryParams:L}}parseCompatFilters(e){var t,o,n,a,s,l,d;let f=[];return e.has(Y.FILTERS)&&(f=this.parseValueFilters((t=e.get(Y.FILTERS))!==null&&t!==void 0?t:"")),(o=e.has(Y.PERIOD))!==null&&o!==void 0&&o&&(f=[...f,...this.parseLegacyPeriodFilter(((n=e.get(Y.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...f,...this.parseValueFilters((a=e.get(Y.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseValueFilters((s=e.get(Y.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((l=e.get(Y.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(Y.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(t=>t.split("~"))}parseValueFilters(e,t=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(Sg).map(n=>this.unescapeFilterValue(n)),negative:t}}))}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[Y.LOCALE,Y.FILTERS,Y.VALUE_FILTERS,Y.NEGATIVE_VALUE_FILTERS,Y.DATE_FILTERS,Y.RANGE_FILTERS].forEach(n=>{t.searchParams.delete(n)}),t.toString()}static updateLocaleParamInUrl(e,t){let o=new URL(e);return o.searchParams.delete(Y.LOCALE),t!==void 0&&o.searchParams.append(Y.LOCALE,t),o.toString()}}});var Bc={};q(Bc,{toFtFormComponent:()=>Fc});var Mc,Fc,Uc=u(()=>{"use strict";rt();Mc=Symbol("elementInternals"),Fc=we(Symbol("toFtFormComponent"),function(r){class e extends r{static get formAssociated(){return!0}get form(){return this[Mc].form}constructor(...o){super(o),this[Mc]=this.attachInternals()}setFormValue(o){this[Mc].setFormValue(o)}}return e})});var zc={};q(zc,{DateFormatter:()=>wo});var wo,La=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 Vc={};q(Vc,{ALL_KEYS_VALUE:()=>Hc,SameWindowStorageEvent:()=>hi});var Hc,hi,Wc=u(()=>{"use strict";Hc="__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==Hc}};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(Hc))}})});var Gc={};q(Gc,{FocusMainContentEvent:()=>jc});var jc,Kc=u(()=>{"use strict";jc=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}}});var Og={};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 qc=u(()=>{"use strict";window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};document.addEventListener("keydown",WC);document.addEventListener("click",jC)});var mi,Zc=u(()=>{"use strict";_();mi=R`
47
+ `});var Vh={};var Xl=u(()=>{"use strict"});var Jl={};q(Jl,{ParametrizedLabelResolver:()=>$r});var $r,ec=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 XS,fe,JS,Wh=u(()=>{"use strict";rt();K();XS=()=>(r,e)=>{var t;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(t=o.reduxReactiveProperties)===null||t===void 0||t.add(e)},fe=r=>{let e=r??{};return(t,o)=>{var n;let a={hasChanged:gt,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})}},JS=r=>(e,t)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(t,r)}});var un,tc=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,jh,bt,Gh=u(()=>{"use strict";ln();ma();rt();pn=Symbol("internalReduxEventsUnsubscribers"),Dr=Symbol("internalStoresUnsubscribers"),vo=Symbol("internalStores"),jh=we(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,g)=>{if(typeof this[g]=="function"&&(!f.store||l.name===f.store)){let m=y=>this[g](y);l.addEventListener(f.eventName,m),this[pn].get(s).push(()=>l.removeEventListener(f.eventName,m))}})),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}),bt=class extends jh(D){}});function It(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 br(r){return!!r&&!!r[Oe]}function Ht(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)===sC})(r)||Array.isArray(r)||!!r[Jh]||!!(!((e=r.constructor)===null||e===void 0)&&e[Jh])||dc(r)||uc(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[Oe];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:dc(r)?2:uc(r)?3:0}function ai(r,e){return li(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function eC(r,e){return li(r)===2?r.get(e):r[e]}function em(r,e,t){var o=li(r);o===2?r.set(e,t):o===3?r.add(t):r[e]=t}function tm(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function dc(r){return nC&&r instanceof Map}function uc(r){return aC&&r instanceof Set}function Mr(r){return r.o||r.t}function pc(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=im(r);delete e[Oe];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 fc(r,e){return e===void 0&&(e=!1),hc(r)||br(r)||!Ht(r)||(li(r)>1&&(r.set=r.add=r.clear=r.delete=tC),Object.freeze(r),e&&xo(r,(function(t,o){return fc(o,!0)}),!0)),r}function tC(){It(2)}function hc(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function or(r){var e=cc[r];return e||It(18,r),e}function rC(r,e){cc[r]||(cc[r]=e)}function ac(){return hn}function rc(r,e){e&&(or("Patches"),r.u=[],r.s=[],r.v=e)}function ga(r){sc(r),r.p.forEach(oC),r.p=null}function sc(r){r===hn&&(hn=r.l)}function Kh(r){return hn={p:[],l:hn,h:r,m:!0,_:0}}function oC(r){var e=r[Oe];e.i===0||e.i===1?e.j():e.g=!0}function oc(r,e){e._=e.p.length;var t=e.p[0],o=r!==void 0&&r!==t;return e.h.O||or("ES5").S(e,r,o),o?(t[Oe].P&&(ga(e),It(4)),Ht(r)&&(r=ya(e,r),e.l||ba(e,r)),e.u&&or("Patches").M(t[Oe].t,r,e.u,e.s)):r=ya(e,t,[]),ga(e),e.u&&e.v(e.u,e.s),r!==om?r:void 0}function ya(r,e,t){if(hc(e))return e;var o=e[Oe];if(!o)return xo(e,(function(l,d){return qh(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=pc(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 qh(r,o,n,l,d,t,s)})),ba(r,n,!1),t&&r.u&&or("Patches").N(o,t,r.u,r.s)}return o.o}function qh(r,e,t,o,n,a,s){if(br(n)){var l=ya(r,n,a&&e&&e.i!==3&&!ai(e.R,o)?a.concat(o):void 0);if(em(t,o,l),!br(l))return;r.m=!1}else s&&t.add(n);if(Ht(n)&&!hc(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&&fc(e,t)}function ic(r,e){var t=r[Oe];return(t?Mr(t):r)[e]}function Zh(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 nc(r){r.o||(r.o=pc(r.t))}function lc(r,e,t){var o=dc(e)?or("MapSet").F(e,t):uc(e)?or("MapSet").T(e,t):r.O?(function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:ac(),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 g=Proxy.revocable(d,f),m=g.revoke,y=g.proxy;return l.k=y,l.j=m,y})(e,t):or("ES5").J(e,t);return(t?t.A:ac()).p.push(o),o}function iC(r){return br(r)||It(22,r),(function e(t){if(!Ht(t))return t;var o,n=t[Oe],a=li(t);if(n){if(!n.P&&(n.i<4||!or("ES5").K(n)))return n.t;n.I=!0,o=Qh(t,a),n.I=!1}else o=Qh(t,a);return xo(o,(function(s,l){n&&eC(n.t,s)===l||em(o,s,e(l))})),a===3?new Set(o):o})(r)}function Qh(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return pc(r)}function rm(){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[Oe];return mn.get(f,s)},set:function(f){var g=this[Oe];mn.set(g,s,f)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Oe];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),g=f.length-1;g>=0;g--){var m=f[g];if(m!==Oe){var y=l[m];if(y===void 0&&!ai(l,m))return!0;var v=d[m],x=v&&v[Oe];if(x?x.t!==y:!tm(v,y))return!0}}var w=!!l[Oe];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&&It(3,JSON.stringify(Mr(s)))}var a={};rC("ES5",{J:function(s,l){var d=Array.isArray(s),f=(function(m,y){if(m){for(var v=Array(y.length),x=0;x<y.length;x++)Object.defineProperty(v,""+x,r(x,!0));return v}var w=im(y);delete w[Oe];for(var L=si(w),P=0;P<L.length;P++){var B=L[P];w[B]=r(B,m||!!w[B].enumerable)}return Object.create(Object.getPrototypeOf(y),w)})(d,s),g={i:d?5:4,A:l?l.A:ac(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,Oe,{value:g,writable:!0}),f},S:function(s,l,d){d?br(l)&&l[Oe].A===s&&e(s.p):(s.u&&(function f(g){if(g&&typeof g=="object"){var m=g[Oe];if(m){var y=m.t,v=m.k,x=m.R,w=m.i;if(w===4)xo(v,(function(C){C!==Oe&&(y[C]!==void 0||ai(y,C)?x[C]||f(v[C]):(x[C]=!0,Fr(m)))})),xo(y,(function(C){v[C]!==void 0||ai(v,C)||(x[C]=!1,Fr(m))}));else if(w===5){if(o(m)&&(Fr(m),x.length=!0),v.length<y.length)for(var L=v.length;L<y.length;L++)x[L]=!1;else for(var P=y.length;P<v.length;P++)x[P]=!0;for(var B=Math.min(v.length,y.length),E=0;E<B;E++)v.hasOwnProperty(E)||(x[E]=!0),x[E]===void 0&&f(v[E])}}}})(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):o(s)}})}var Yh,hn,mc,nC,aC,Xh,om,Jh,Oe,sC,si,im,cc,mn,fn,lC,vt,cC,fk,hk,mk,gk,yk,bk,va,xa=u(()=>{mc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",nC=typeof Map<"u",aC=typeof Set<"u",Xh=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",om=mc?Symbol.for("immer-nothing"):((Yh={})["immer-nothing"]=!0,Yh),Jh=mc?Symbol.for("immer-draftable"):"__$immer_draftable",Oe=mc?Symbol.for("immer-state"):"__$immer_state",sC=""+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,im=Object.getOwnPropertyDescriptors||function(r){var e={};return si(r).forEach((function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)})),e},cc={},mn={get:function(r,e){if(e===Oe)return r;var t=Mr(r);if(!ai(t,e))return(function(n,a,s){var l,d=Zh(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||!Ht(o)?o:o===ic(r.t,e)?(nc(r),r.o[e]=lc(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=Zh(Mr(r),e);if(o?.set)return o.set.call(r.k,t),!0;if(!r.P){var n=ic(Mr(r),e),a=n?.[Oe];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(tm(t,n)&&(t!==void 0||ai(r.t,e)))return!0;nc(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 ic(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,nc(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(){It(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){It(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])};lC=(function(){function r(t){var o=this;this.O=Xh,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 L=this;w===void 0&&(w=l);for(var P=arguments.length,B=Array(P>1?P-1:0),E=1;E<P;E++)B[E-1]=arguments[E];return d.produce(w,(function(C){var k;return(k=a).call.apply(k,[L,C].concat(B))}))}}var f;if(typeof a!="function"&&It(6),s!==void 0&&typeof s!="function"&&It(7),Ht(n)){var g=Kh(o),m=lc(o,n,void 0),y=!0;try{f=a(m),y=!1}finally{y?ga(g):sc(g)}return typeof Promise<"u"&&f instanceof Promise?f.then((function(w){return rc(g,s),oc(w,g)}),(function(w){throw ga(g),w})):(rc(g,s),oc(f,g))}if(!n||typeof n!="object"){if((f=a(n))===void 0&&(f=n),f===om&&(f=void 0),o.D&&fc(f,!0),s){var v=[],x=[];or("Patches").M(n,f,v,x),s(v,x)}return f}It(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(f){for(var g=arguments.length,m=Array(g>1?g-1:0),y=1;y<g;y++)m[y-1]=arguments[y];return o.produceWithPatches(f,(function(v){return n.apply(void 0,[v].concat(m))}))};var s,l,d=o.produce(n,a,(function(f,g){s=f,l=g}));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){Ht(t)||It(8),br(t)&&(t=iC(t));var o=Kh(this),n=lc(this,t,void 0);return n[Oe].C=!0,sc(o),n},e.finishDraft=function(t,o){var n=t&&t[Oe],a=n.A;return rc(a,o),oc(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Xh&&It(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=or("Patches").$;return br(t)?s(t,o):this.produce(t,(function(l){return s(l,o)}))},r})(),vt=new lC,cC=vt.produce,fk=vt.produceWithPatches.bind(vt),hk=vt.setAutoFreeze.bind(vt),mk=vt.setUseProxies.bind(vt),gk=vt.applyPatches.bind(vt),yk=vt.createDraft.bind(vt),bk=vt.finishDraft.bind(vt),va=cC});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 gc=u(()=>{});function nm(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 am=u(()=>{gc()});function sm(r){var e=nm(r,"string");return So(e)=="symbol"?e:e+""}var lm=u(()=>{gc();am()});function cm(r,e,t){return(e=sm(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var dm=u(()=>{lm()});function um(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 yc(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?um(Object(t),!0).forEach(function(o){cm(r,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):um(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o))})}return r}var pm=u(()=>{dm()});function Ze(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 dC(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 vc(r,e,t){var o;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(Ze(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(Ze(1));return t(vc)(r,e)}if(typeof r!="function")throw new Error(Ze(2));var n=r,a=e,s=[],l=s,d=!1;function f(){l===s&&(l=s.slice())}function g(){if(d)throw new Error(Ze(3));return a}function m(w){if(typeof w!="function")throw new Error(Ze(4));if(d)throw new Error(Ze(5));var L=!0;return f(),l.push(w),function(){if(L){if(d)throw new Error(Ze(6));L=!1,f();var B=l.indexOf(w);l.splice(B,1),s=null}}}function y(w){if(!dC(w))throw new Error(Ze(7));if(typeof w.type>"u")throw new Error(Ze(8));if(d)throw new Error(Ze(9));try{d=!0,a=n(a,w)}finally{d=!1}for(var L=s=l,P=0;P<L.length;P++){var B=L[P];B()}return w}function v(w){if(typeof w!="function")throw new Error(Ze(10));n=w,y({type:Sa.REPLACE})}function x(){var w,L=m;return w={subscribe:function(B){if(typeof B!="object"||B===null)throw new Error(Ze(11));function E(){B.next&&B.next(g())}E();var C=L(E);return{unsubscribe:C}}},w[fm]=function(){return this},w}return y({type:Sa.INIT}),o={dispatch:y,subscribe:m,getState:g,replaceReducer:v},o[fm]=x,o}function uC(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(Ze(12));if(typeof t(void 0,{type:Sa.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ze(13))})}function hm(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{uC(t)}catch(d){l=d}return function(f,g){if(f===void 0&&(f={}),l)throw l;if(0)var m;for(var y=!1,v={},x=0;x<a.length;x++){var w=a[x],L=t[w],P=f[w],B=L(P,g);if(typeof B>"u"){var E=g&&g.type;throw new Error(Ze(14))}v[w]=B,y=y||B!==P}return y=y||a.length!==Object.keys(f).length,y?v: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 mm(){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(Ze(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),yc(yc({},n),{},{dispatch:a})}}}var fm,bc,Sa,Ca=u(()=>{pm();fm=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),bc=function(){return Math.random().toString(36).substring(7).split("").join(".")},Sa={INIT:"@@redux/INIT"+bc(),REPLACE:"@@redux/REPLACE"+bc(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+bc()}}});function gm(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 ym,xc,bm=u(()=>{ym=gm();ym.withExtraArgument=gm;xc=ym});function xC(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 Ec(r){return Ht(r)?va(r,function(){}):r}function OC(r){return typeof r=="boolean"}function EC(){return function(e){return wC(e)}}function wC(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 SC;if(t&&(OC(t)?f.push(xc):f.push(xc.withExtraArgument(t.extraArgument))),0){if(n)var g;if(s)var m;if(d)var y}return f}function Em(r){var e=EC(),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,g=f===void 0?void 0:f,m=t.enhancers,y=m===void 0?void 0:m,v;if(typeof n=="function")v=n;else if(xC(n))v=hm(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 x=s;if(typeof x=="function"&&(x=x(e),!Cc&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Cc&&x.some(function(C){return typeof C!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=mm.apply(void 0,x),L=ci;d&&(L=vC(Br({trace:!Cc},typeof d=="object"&&d)));var P=new CC(w),B=P;Array.isArray(y)?B=di([w],y):typeof y=="function"&&(B=y(P));var E=L.apply(void 0,B);return vc(v,g,E)}function wm(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 RC(r){return typeof r=="function"}function AC(r,e,t,o){t===void 0&&(t=[]);var n=typeof e=="function"?wm(e):[e,t,o],a=n[0],s=n[1],l=n[2],d;if(RC(r))d=function(){return Ec(r())};else{var f=Ec(r);d=function(){return f}}function g(m,y){m===void 0&&(m=d());var v=di([a[y.type]],s.filter(function(x){var w=x.matcher;return w(y)}).map(function(x){var w=x.reducer;return w}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,w){if(w)if(br(x)){var L=x,P=w(L,y);return P===void 0?x:P}else{if(Ht(x))return va(x,function(B){return w(B,y)});var P=w(x,y);if(P===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return P}return x},m)}return g.getInitialState=d,g}function LC(r,e){return r+"/"+e}function Rm(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:Ec(r.initialState),o=r.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(g){var m=o[g],y=LC(e,g),v,x;"reducer"in m?(v=m.reducer,x=m.prepare):v=m,a[g]=v,s[y]=v,l[g]=x?Ur(y,x):Ur(y)});function d(){var g=typeof r.extraReducers=="function"?wm(r.extraReducers):[r.extraReducers],m=g[0],y=m===void 0?{}:m,v=g[1],x=v===void 0?[]:v,w=g[2],L=w===void 0?void 0:w,P=Br(Br({},y),s);return AC(t,function(B){for(var E in P)B.addCase(E,P[E]);for(var C=0,k=x;C<k.length;C++){var H=k[C];B.addMatcher(H.matcher,H.reducer)}L&&B.addDefaultCase(L)})}var f;return{name:e,reducer:function(g,m){return f||(f=d()),f(g,m)},actions:l,caseReducers:a,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}function PC(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function NC(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Om,pC,di,fC,hC,mC,vm,gC,yC,xm,Br,Sc,bC,vC,Dk,SC,CC,Cc,kC,TC,_C,Oc,Sm,IC,Uk,Am,Lm,km,zk,Hk,Vk,Wk,wc,jk,Gk,Kk,Cm,qk,$C,Zk,Tm=u(()=>{xa();Ca();Ca();Ca();bm();xa();xa();Om=(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)}})(),pC=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(g){return d([f,g])}}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(g){f=[6,g],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},fC=Object.defineProperty,hC=Object.defineProperties,mC=Object.getOwnPropertyDescriptors,vm=Object.getOwnPropertySymbols,gC=Object.prototype.hasOwnProperty,yC=Object.prototype.propertyIsEnumerable,xm=function(r,e,t){return e in r?fC(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Br=function(r,e){for(var t in e||(e={}))gC.call(e,t)&&xm(r,t,e[t]);if(vm)for(var o=0,n=vm(e);o<n.length;o++){var t=n[o];yC.call(e,t)&&xm(r,t,e[t])}return r},Sc=function(r,e){return hC(r,mC(e))},bC=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())})},vC=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)},Dk=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};SC=(function(r){Om(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),CC=(function(r){Om(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);Cc=!0;kC="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",TC=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=kC[Math.random()*64|0];return e},_C=["name","message","stack","code"],Oc=(function(){function r(e,t){this.payload=e,this.meta=t}return r})(),Sm=(function(){function r(e,t){this.payload=e,this.meta=t}return r})(),IC=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,o=_C;t<o.length;t++){var n=o[t];typeof r[n]=="string"&&(e[n]=r[n])}return e}return{message:String(r)}},Uk=(function(){function r(e,t,o){var n=Ur(e+"/fulfilled",function(g,m,y,v){return{payload:g,meta:Sc(Br({},v||{}),{arg:y,requestId:m,requestStatus:"fulfilled"})}}),a=Ur(e+"/pending",function(g,m,y){return{payload:void 0,meta:Sc(Br({},y||{}),{arg:m,requestId:g,requestStatus:"pending"})}}),s=Ur(e+"/rejected",function(g,m,y,v,x){return{payload:v,error:(o&&o.serializeError||IC)(g||"Rejected"),meta:Sc(Br({},x||{}),{arg:y,requestId:m,rejectedWithValue:!!v,requestStatus:"rejected",aborted:g?.name==="AbortError",condition:g?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:(function(){function g(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return g.prototype.abort=function(){},g})();function f(g){return function(m,y,v){var x=o?.idGenerator?o.idGenerator(g):TC(),w=new d,L,P=!1;function B(C){L=C,w.abort()}var E=(function(){return bC(this,null,function(){var C,k,H,ce,J,ee,M;return pC(this,function(V){switch(V.label){case 0:return V.trys.push([0,4,,5]),ce=(C=o?.condition)==null?void 0:C.call(o,g,{getState:y,extra:v}),NC(ce)?[4,ce]:[3,2];case 1:ce=V.sent(),V.label=2;case 2:if(ce===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,J=new Promise(function(se,qe){return w.signal.addEventListener("abort",function(){return qe({name:"AbortError",message:L||"Aborted"})})}),m(a(x,g,(k=o?.getPendingMeta)==null?void 0:k.call(o,{requestId:x,arg:g},{getState:y,extra:v}))),[4,Promise.race([J,Promise.resolve(t(g,{dispatch:m,getState:y,extra:v,requestId:x,signal:w.signal,abort:B,rejectWithValue:function(se,qe){return new Oc(se,qe)},fulfillWithValue:function(se,qe){return new Sm(se,qe)}})).then(function(se){if(se instanceof Oc)throw se;return se instanceof Sm?n(se.payload,x,g,se.meta):n(se,x,g)})])];case 3:return H=V.sent(),[3,5];case 4:return ee=V.sent(),H=ee instanceof Oc?s(null,x,g,ee.payload,ee.meta):s(ee,x,g),[3,5];case 5:return M=o&&!o.dispatchConditionRejection&&s.match(H)&&H.meta.condition,M||m(H),[2,H]}})})})();return Object.assign(E,{abort:B,requestId:x,arg:g,unwrap:function(){return E.then(PC)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return r.withTypes=function(){return r},r})();Am="listener",Lm="completed",km="cancelled",zk="task-"+km,Hk="task-"+Lm,Vk=Am+"-"+km,Wk=Am+"-"+Lm,wc="listenerMiddleware",jk=Ur(wc+"/add"),Gk=Ur(wc+"/removeAll"),Kk=Ur(wc+"/remove"),qk=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Cm||(Cm=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},$C=function(r){return function(e){setTimeout(e,r)}},Zk=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:$C(10);rm()});function DC(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))ni(e)&&e.clear()}var vr,_m=u(()=>{"use strict";Tm();ma();tc();Qo();rt();window.ftReduxStores||(window.ftReduxStores={});vr=class r extends mr{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=Rm({...n,reducers:(t=n.reducers)!==null&&t!==void 0?t:{}}),l=Em({reducer:(d,f)=>{if(f.type==="CLEAR_FT_REDUX_STORE"){let g=mt(s.getInitialState());for(let m of f.keeping)g[m]=(d??g)[m];return g}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?(...g)=>{let m=f(...g.map(n));return this.reduxStore.dispatch(m),m}:g=>{this.setState({[d]:n(g)})}}}),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,Im=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);gt(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,Pm=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 Rc={};q(Rc,{FtCommandQueue:()=>un,FtLitElementRedux:()=>bt,FtReduxStore:()=>vr,FtStateManager:()=>Co,ReduxWatcher:()=>Oa,clearAllStores:()=>DC,isFtReduxStore:()=>ni,redux:()=>fe,reduxEventListener:()=>JS,reduxReactive:()=>XS,watch:()=>ui,withRedux:()=>jh});var Ea=u(()=>{"use strict";Wh();tc();Gh();_m();ma();Im();Pm()});var Tc={};q(Tc,{scrollHelper:()=>kc});var Ac,wa,Lc,kc,_c=u(()=>{"use strict";rt();wa=new Map,Lc=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 Xs(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=hr(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=(Ac=window.FluidTopicsScrollHelper)!==null&&Ac!==void 0?Ac:new Lc;kc=window.FluidTopicsScrollHelper});var Ic=u(()=>{});var Nm,$m,Dm,zr,Mm,Fm,Bm,Oo,Um,zm,Hm,Vm,Wm,jm,Gm,Km,Hr,qm,Zm,Eo,eg,Qm,Ra,Ym,pi,tg,ir,fi,Xm,Te,Pt,Jm,Pc=u(()=>{(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Nm||(Nm={}));(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})($m||($m={}));(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"})(Dm||(Dm={}));(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"})(Mm||(Mm={}));(function(r){r.VALUE="VALUE",r.DATE="DATE",r.RANGE="RANGE"})(Fm||(Fm={}));(function(r){r.OFFICIAL="OFFICIAL",r.AI="AI"})(Bm||(Bm={}));(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"})(Um||(Um={}));(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"})(zm||(zm={}));(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"})(Hm||(Hm={}));(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Vm||(Vm={}));(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Wm||(Wm={}));(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(jm||(jm={}));(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Gm||(Gm={}));(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"})(Km||(Km={}));(function(r){r.OPTIONAL="OPTIONAL",r.MANDATORY="MANDATORY"})(Hr||(Hr={}));(function(r){r.ASC="ASC",r.DESC="DESC"})(qm||(qm={}));(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Zm||(Zm={}));(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Eo||(Eo={}));eg=r=>Object.keys(Eo).includes(r);(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(Qm||(Qm={}));(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"})(Ym||(Ym={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(pi||(pi={}));tg=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"})(ir||(ir={}));(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"})(Xm||(Xm={}));(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"})(Te||(Te={}));(function(r){r.SEARCHES="SEARCHES",r.BOOKMARKS="BOOKMARKS",r.BOOKS="BOOKS",r.COLLECTIONS="COLLECTIONS"})(Pt||(Pt={}));(function(r){r.UNAUTHENTICATED="UNAUTHENTICATED",r.USER_INCOMPLETE="USER_INCOMPLETE",r.MFA_REQUIRED="MFA_REQUIRED",r.AUTHENTICATED="AUTHENTICATED"})(Jm||(Jm={}))});var rg,og,ig,ng,ag,sg,lg,cg,dg,ug,pg,fg=u(()=>{(function(r){r.UNREACHABLE="UNREACHABLE",r.UNAUTHORIZED="UNAUTHORIZED",r.FORBIDDEN="FORBIDDEN",r.INCOMPATIBLE="INCOMPATIBLE",r.FAILED="FAILED",r.OK="OK"})(rg||(rg={}));(function(r){r.VALID="VALID",r.INVALID="INVALID"})(og||(og={}));(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"})(ig||(ig={}));(function(r){r.INACCURATE="INACCURATE",r.INCOMPLETE="INCOMPLETE",r.OFF_TOPIC="OFF_TOPIC",r.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",r.SLOW="SLOW",r.OTHER="OTHER"})(ng||(ng={}));(function(r){r.JSON="JSON",r.TEXT="TEXT"})(ag||(ag={}));(function(r){r.JSON="JSON",r.TEXT="TEXT"})(sg||(sg={}));(function(r){r.TEXT="TEXT",r.HTML="HTML"})(lg||(lg={}));(function(r){r.IN_PROGRESS="IN_PROGRESS",r.ERROR="ERROR",r.DONE="DONE"})(cg||(cg={}));(function(r){r.HTML="HTML",r.MARKDOWN="MARKDOWN"})(dg||(dg={}));(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"})(ug||(ug={}));(function(r){r.MAP="MAP",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(pg||(pg={}))});var hg=u(()=>{Pc();fg()});function mg(r,e){return r===e||(MC[r]??[]).some(t=>mg(t,e))}function Aa(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=>mg(o,e))}var MC,gg=u(()=>{Pc();MC={[Te.PERSONAL_BOOK_SHARE_USER]:[Te.PERSONAL_BOOK_USER],[Te.HTML_EXPORT_USER]:[Te.PERSONAL_BOOK_USER],[Te.PDF_EXPORT_USER]:[Te.PERSONAL_BOOK_USER],[Te.KHUB_ADMIN]:[Te.CONTENT_PUBLISHER],[Te.ADMIN]:[Te.KHUB_ADMIN,Te.USERS_ADMIN,Te.PORTAL_ADMIN,Te.BEHAVIOR_DATA_USER],[Te.GENERATIVE_AI_EXPORT_USER]:[Te.GENERATIVE_AI_USER]}});var yg=u(()=>{});var Vr=u(()=>{Ic();hg();gg();yg();Ic()});var Nc={};q(Nc,{SearchPlaceConverter:()=>Wr,SearchPlaceQueryParams:()=>Y,isSearchPlaceQueryParams:()=>vg,serializeRequest:()=>BC});function FC(r){return`"${r}"`}function bg(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function BC(r,e){return new Wr(r).serialize(e)}function vg(r){return UC.has(r)}var Y,UC,Wr,$c=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.NEGATIVE_VALUE_FILTERS="negative-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"})(Y||(Y={}));UC=new Set(Object.values(Y));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,g,m,y,v,x,w;let L=new URLSearchParams;e.contentLocale?(!t||e.contentLocale!==this.defaultContentLocale)&&L.append(Y.LOCALE,e.contentLocale):L.append(Y.LOCALE,this.allLanguagesAllowed?"all":this.defaultContentLocale),((o=e.query)===null||o===void 0?void 0:o.length)>0&&L.append(Y.QUERY,e.query);let P=J=>{var ee,M;let V=((M=(ee=J.valueFilter)===null||ee===void 0?void 0:ee.values)!==null&&M!==void 0?M:[]).map(se=>this.escapeFilters(se)).map(se=>FC(bg(se))).join("_");return`${J.key}~${V}`},B=(a=(n=e.metadataFilters)===null||n===void 0?void 0:n.filter(J=>J.valueFilter&&!J.valueFilter.negative))!==null&&a!==void 0?a:[];B.length>0&&L.append(Y.VALUE_FILTERS,B.map(P).join("*"));let E=(l=(s=e.metadataFilters)===null||s===void 0?void 0:s.filter(J=>J.valueFilter&&J.valueFilter.negative))!==null&&l!==void 0?l:[];E.length>0&&L.append(Y.NEGATIVE_VALUE_FILTERS,E.map(P).join("*"));let C=(f=(d=e.metadataFilters)===null||d===void 0?void 0:d.filter(J=>J.dateFilter))!==null&&f!==void 0?f:[];if(C.length>0){let J=C.map(ee=>{var M;return`${ee.key}~${(M=ee.dateFilter)===null||M===void 0?void 0:M.type.toLowerCase()}`}).join("*");L.append(Y.DATE_FILTERS,J)}let k=(m=(g=e.metadataFilters)===null||g===void 0?void 0:g.filter(J=>J.rangeFilter))!==null&&m!==void 0?m:[];if(k.length>0){let J=k.map(ee=>{var M,V;return`${ee.key}~${(M=ee.rangeFilter)===null||M===void 0?void 0:M.from}_${(V=ee.rangeFilter)===null||V===void 0?void 0:V.to}`}).join("*");L.append(Y.RANGE_FILTERS,J)}e.virtualField&&e.virtualField!=="EVERYWHERE"&&L.append(Y.VIRTUAL_FIELD,e.virtualField.toLowerCase()),e.scope&&e.scope!=="DEFAULT"&&L.append(Y.SCOPE,e.scope.toLowerCase()),e.sortId!=null&&L.append(Y.SORT,e.sortId),!((y=e.paging)===null||y===void 0)&&y.perPage&&((x=(v=e.paging)===null||v===void 0?void 0:v.perPage)!==null&&x!==void 0?x:this.defaultPerPage)!=this.defaultPerPage&&L.append(Y.PER_PAGE,String(e.paging.perPage)),e.keywordMatch!=null&&L.append(Y.KEYWORD_MATCH,e.keywordMatch.toLowerCase());let H=(w=e.otherQueryParams)!==null&&w!==void 0?w:{};for(let J in H)L.append(J,H[J]);let ce=new Array;return L.forEach((J,ee)=>{ce.push(this.encodeQueryString(ee)+"="+this.encodeQueryString(J))}),encodeURI(ce.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(Y.LOCALE)==="all"?void 0:d.get(Y.LOCALE),g=((t=d.get(Y.VIRTUAL_FIELD))!==null&&t!==void 0?t:"EVERYWHERE").toUpperCase(),m=(o=d.get(Y.SORT))===null||o===void 0?void 0:o.toLowerCase(),y=(n=d.get(Y.SCOPE))!==null&&n!==void 0?n:"default",v=+((a=d.get(Y.PER_PAGE))!==null&&a!==void 0?a:this.defaultPerPage),x=d.get(Y.KEYWORD_MATCH),w=x?x.toUpperCase()===Hr.MANDATORY?Hr.MANDATORY:Hr.OPTIONAL:void 0,L={};for(let P of d.keys())vg(P)||(L[P]=d.get(P));return{contentLocale:f??(this.allLanguagesAllowed?void 0:this.defaultContentLocale),query:(s=d.get(Y.QUERY))!==null&&s!==void 0?s:"",scope:(l=this.scopeMapping[y])!==null&&l!==void 0?l:"DEFAULT",virtualField:eg(g)?g:"EVERYWHERE",sortId:m,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:hr(1,isNaN(v)?this.defaultPerPage:v,1e3)},keywordMatch:w,otherQueryParams:L}}parseCompatFilters(e){var t,o,n,a,s,l,d;let f=[];return e.has(Y.FILTERS)&&(f=this.parseValueFilters((t=e.get(Y.FILTERS))!==null&&t!==void 0?t:"")),(o=e.has(Y.PERIOD))!==null&&o!==void 0&&o&&(f=[...f,...this.parseLegacyPeriodFilter(((n=e.get(Y.PERIOD))!==null&&n!==void 0?n:"").toUpperCase())]),[...f,...this.parseValueFilters((a=e.get(Y.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseValueFilters((s=e.get(Y.NEGATIVE_VALUE_FILTERS))!==null&&s!==void 0?s:"",!0),...this.parseDateFilters((l=e.get(Y.DATE_FILTERS))!==null&&l!==void 0?l:""),...this.parseRangeFilters((d=e.get(Y.RANGE_FILTERS))!==null&&d!==void 0?d:"")]}splitUnknownFilter(e){return this.superEscapeFilters(e).split("*").map(t=>t.split("~"))}parseValueFilters(e,t=!1){return e.length===0?[]:this.splitUnknownFilter(e).map(o=>({key:o[0],valueFilter:{values:o[1].split("_").map(bg).map(n=>this.unescapeFilterValue(n)),negative:t}}))}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(tg(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[Y.LOCALE,Y.FILTERS,Y.VALUE_FILTERS,Y.NEGATIVE_VALUE_FILTERS,Y.DATE_FILTERS,Y.RANGE_FILTERS].forEach(n=>{t.searchParams.delete(n)}),t.toString()}static updateLocaleParamInUrl(e,t){let o=new URL(e);return o.searchParams.delete(Y.LOCALE),t!==void 0&&o.searchParams.append(Y.LOCALE,t),o.toString()}}});var Fc={};q(Fc,{toFtFormComponent:()=>Mc});var Dc,Mc,Bc=u(()=>{"use strict";rt();Dc=Symbol("elementInternals"),Mc=we(Symbol("toFtFormComponent"),function(r){class e extends r{static get formAssociated(){return!0}get form(){return this[Dc].form}constructor(...o){super(o),this[Dc]=this.attachInternals()}setFormValue(o){this[Dc].setFormValue(o)}}return e})});var Uc={};q(Uc,{DateFormatter:()=>wo});var wo,La=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 Hc={};q(Hc,{ALL_KEYS_VALUE:()=>zc,SameWindowStorageEvent:()=>hi});var zc,hi,Vc=u(()=>{"use strict";zc="__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==zc}};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(zc))}})});var jc={};q(jc,{FocusMainContentEvent:()=>Wc});var Wc,Gc=u(()=>{"use strict";Wc=class extends Event{constructor(){super("ft-focus-main-content",{composed:!0,bubbles:!0})}}});var xg={};function zC(r){(r.key==="Enter"||r.key===" "||r.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=r.key}function HC(r){window.FluidTopicsA11yHints.isKeyboardNavigation=r.detail==0}var Kc=u(()=>{"use strict";window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};document.addEventListener("keydown",zC);document.addEventListener("click",HC)});var mi,qc=u(()=>{"use strict";_();mi=R`
48
48
  .sr-only {
49
49
  position:absolute;
50
50
  left:-10000px;
@@ -68,7 +68,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
68
68
  width:auto;
69
69
  height:auto;
70
70
  }
71
- `});var Qc={};q(Qc,{withAriaNotification:()=>gn});var GC,gn,Yc=u(()=>{"use strict";rt();Qo();GC={checkVisibility:!0},gn=we(Symbol("withAriaNotification"),function(r){class e extends r{sendAriaNotification(o,n){let{checkVisibility:a}={...GC,...n};setTimeout(()=>{(!a||this.checkVisibility())&&(o=typeof o=="string"?o:o?.message,o&&this.dispatchEvent(new Qi({type:"aria",message:o})))},20)}}return e})});var Xc={};q(Xc,{withConditionalVisibility:()=>KC});function KC(r){class e extends r{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(o,n){if(o){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=n,this.shadowRoot.append(a)}}hideIfNecessary(){let o=!(this.forceVisible||this.isVisible);this.calculateStyles(o,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(o){super.willUpdate(o),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(n=>n.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return Eg([h({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),Eg([I()],e.prototype,"isVisible",void 0),e}var Eg,Jc=u(()=>{"use strict";K();Eg=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}});function ed(r,e){return e.map(t=>t(r)).filter(t=>t!==!0).map(t=>t)}var td=u(()=>{"use strict"});function Ro(r,e,t){return r?e(r):t?.(r)}var wg=u(()=>{});var ka=u(()=>{wg()});var Ue,Ao,Lo,rd,YT,Rg=u(()=>{"use strict";td();K();Bt();ka();_();rt();Ue=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};(function(r){r.blur="blur",r.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",r.input="input"})(Ao||(Ao={}));(function(r){r.default="default",r.warning="warning",r.error="error"})(Lo||(Lo={}));rd=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},YT=we(Symbol("toFtInput"),function(r){class e extends r{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=Ao.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Lo.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===Ao.blur||this.validateOn===Ao.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Lo.default&&this.validateOn===Ao.blurWithStatusResolutionOnInput||this.validateOn===Ao.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=ed(this.value,[...this.errorRules,...this.additionalErrorRules]),this.warningMessages=ed(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new rd(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return b`
71
+ `});var Zc={};q(Zc,{withAriaNotification:()=>gn});var VC,gn,Qc=u(()=>{"use strict";rt();Qo();VC={checkVisibility:!0},gn=we(Symbol("withAriaNotification"),function(r){class e extends r{sendAriaNotification(o,n){let{checkVisibility:a}={...VC,...n};setTimeout(()=>{(!a||this.checkVisibility())&&(o=typeof o=="string"?o:o?.message,o&&this.dispatchEvent(new Qi({type:"aria",message:o})))},20)}}return e})});var Yc={};q(Yc,{withConditionalVisibility:()=>WC});function WC(r){class e extends r{constructor(){super(...arguments),this.forceVisible=!1,this.isVisible=!0,this.isElementWithConditionalVisibility=!0}calculateStyles(o,n){if(o){let a=document.createElement("style");a.classList.add("conditional-visibility-style"),a.innerHTML=n,this.shadowRoot.append(a)}}hideIfNecessary(){let o=!(this.forceVisible||this.isVisible);this.calculateStyles(o,":host { display: none !important; }")}highlightIfForceVisible(){this.calculateStyles(this.forceVisible,":host { box-shadow: 0px 0px 0px 8px rgba(227,119,59,0.4) inset; }")}willUpdate(o){super.willUpdate(o),this.updateComplete.then(()=>{this.shadowRoot.querySelectorAll(".conditional-visibility-style").forEach(n=>n.remove()),this.hideIfNecessary(),this.highlightIfForceVisible()})}}return Sg([h({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),Sg([I()],e.prototype,"isVisible",void 0),e}var Sg,Xc=u(()=>{"use strict";K();Sg=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}});function Jc(r,e){return e.map(t=>t(r)).filter(t=>t!==!0).map(t=>t)}var ed=u(()=>{"use strict"});function Ro(r,e,t){return r?e(r):t?.(r)}var Cg=u(()=>{});var ka=u(()=>{Cg()});var Ue,Ao,Lo,td,ZT,Og=u(()=>{"use strict";ed();K();Bt();ka();_();rt();Ue=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};(function(r){r.blur="blur",r.blurWithStatusResolutionOnInput="blurWithStatusResolutionOnInput",r.input="input"})(Ao||(Ao={}));(function(r){r.default="default",r.warning="warning",r.error="error"})(Lo||(Lo={}));td=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},ZT=we(Symbol("toFtInput"),function(r){class e extends r{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=Ao.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Lo.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===Ao.blur||this.validateOn===Ao.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Lo.default&&this.validateOn===Ao.blurWithStatusResolutionOnInput||this.validateOn===Ao.input)&&this.triggerValidation()}triggerValidation(){this.errorMessages=Jc(this.value,[...this.errorRules,...this.additionalErrorRules]),this.warningMessages=Jc(this.value,[...this.warningRules,...this.additionalWarningRules]),this.status=this.resolveStatus(),this.dispatchEvent(new td(this.status))}get messagesForScreenReaderElementId(){return"sr-helper-text-list"}renderMessagesForScreenReader(){return b`
72
72
  <ul aria-live="polite" id="${this.messagesForScreenReaderElementId}"
73
73
  style="position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;list-style:none;">
74
74
  ${ye(this.errorMessages,o=>b`
@@ -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 Ue([h()],e.prototype,"warningRules",void 0),Ue([h()],e.prototype,"errorRules",void 0),Ue([h()],e.prototype,"validateOn",void 0),Ue([h({type:Boolean})],e.prototype,"validateAtRender",void 0),Ue([h()],e.prototype,"label",void 0),Ue([h({type:Boolean})],e.prototype,"hideLabel",void 0),Ue([h()],e.prototype,"name",void 0),Ue([h({type:Boolean})],e.prototype,"disabled",void 0),Ue([h()],e.prototype,"helperText",void 0),Ue([h()],e.prototype,"forceStatus",void 0),Ue([h({reflect:!0})],e.prototype,"value",void 0),Ue([I()],e.prototype,"errorMessages",void 0),Ue([I()],e.prototype,"warningMessages",void 0),Ue([I()],e.prototype,"status",void 0),Ue([I()],e.prototype,"focused",void 0),Ue([I()],e.prototype,"additionalWarningRules",void 0),Ue([I()],e.prototype,"additionalErrorRules",void 0),e})});var Ag=u(()=>{"use strict";Rg();td()});function qC(r){this._$AN!==void 0?(Ta(this),this._$AM=r,Lg(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),Ta(o[a]);else o!=null&&(yn(o,!1),Ta(o));else yn(this,r)}var yn,Ta,Lg,QC,gi,kg=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},Ta=r=>{let e,t;do{if((e=r._$AM)===void 0)break;t=e._$AN,t.delete(r),r=e}while(t?.size===0)},Lg=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==Yt.CHILD&&(r._$AP??=ZC,r._$AQ??=qC)},gi=class extends kt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,o){super._$AT(e,t,o),Lg(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(yn(this,e),Ta(this))}setValue(e){if(Wp(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 od=u(()=>{kg()});var Tg=u(()=>{Vo();At();Ms()});var id,m_,_g=u(()=>{"use strict";_();od();Tg();id=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 $e}update(e){return this.part=e,this.ensureFocusTrap(e.element),$e}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 Rt&&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_=ht(id)});var Ig,YC,nd,v_,Pg=u(()=>{"use strict";od();_();(function(r){r.sm="sm",r.md="md",r.lg="lg",r.xl="xl"})(Ig||(Ig={}));YC={sm:640,md:768,lg:1024,xl:1280},nd=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??(()=>T);return this.size>n?t():a()}resolveThreshold(e){return typeof e=="number"?e:YC[e]}},v_=ht(nd)});var Ng=u(()=>{"use strict";_g();Pg()});function _a(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 ad({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||f?.defaultComponentId||this.tagName.toLowerCase(),data:a}))}}return t.analyticsActions=e,XC([ue({})],t.prototype,"configuredAnalyticsActions",void 0),t}var XC,ad,$g=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},ad=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}}});var sd,ld,cd,dd,ko,bn,O=u(()=>{"use strict";gp();_();K();Bt();tt();Xp();Ki();al();Xn();pl();oa();lo();bl();xl();Qo();pa();Ml();ia();Wl();ln();jl();rt();Zl();Xl();Jl();tc();Ea();fa();Ic();ha();Dc();Uc();La();Yo();Wc();Kc();qc();Zc();ra();Yc();Jc();Kc();qc();al();Xn();pl();La();oa();lo();bl();xl();Qo();pa();Ic();Ml();ia();Wl();Uc();ln();Yc();Jc();jl();rt();Zl();Xl();Jl();tc();Ea();Wc();fa();ha();Dc();Zc();Ag();Ng();ra();Yo();$g();ko=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((cd=(ld=(sd=window.safari)===null||sd===void 0?void 0:sd.pushNotification)===null||ld===void 0?void 0:ld.toString())!==null&&cd!==void 0?cd:"")==="[object SafariRemoteNotification]",bn="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(dd=window.ftGlobals)!==null&&dd!==void 0?dd:{lit:Fs,litDecorators:Vs,litRepeat:js,litClassMap:Gs,litStyleMap:Ks,litUnsafeHTML:qs,wcUtils:{...nl,...Zs,...ul,...zc,...fl,...Qs,...yl,...il,...$l,...Gc,...Og,..._c,...Dl,...gl,...Vl,...Bc,...zl,...Qc,...Xc,...zh,...tl,...ql,...vl,...Yl,...mi,...Gh,...ec,...Ac,...Vc,...Fl,...Ul,...$c,...ll,isSafari:ko,isTouchScreen:bn,setVariable:A}}});var Dg,le,Mg,Fg,Bg,Ug,zg,xr=u(()=>{"use strict";_();O();Dg=i.extend("--ft-ripple-color","",S.colorContent),le={color:Dg,backgroundColor:i.extend("--ft-ripple-background-color","",Dg),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")},Mg=i.extend("--ft-ripple-color","",S.colorPrimary),Fg={color:Mg,backgroundColor:i.extend("--ft-ripple-background-color","",Mg)},Bg=i.extend("--ft-ripple-color","",S.colorSecondary),Ug={color:Bg,backgroundColor:i.extend("--ft-ripple-background-color","",Bg)},zg=R`
84
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Lo.error:this.warningMessages.length?Lo.warning:Lo.default}}return Ue([h()],e.prototype,"warningRules",void 0),Ue([h()],e.prototype,"errorRules",void 0),Ue([h()],e.prototype,"validateOn",void 0),Ue([h({type:Boolean})],e.prototype,"validateAtRender",void 0),Ue([h()],e.prototype,"label",void 0),Ue([h({type:Boolean})],e.prototype,"hideLabel",void 0),Ue([h()],e.prototype,"name",void 0),Ue([h({type:Boolean})],e.prototype,"disabled",void 0),Ue([h()],e.prototype,"helperText",void 0),Ue([h()],e.prototype,"forceStatus",void 0),Ue([h({reflect:!0})],e.prototype,"value",void 0),Ue([I()],e.prototype,"errorMessages",void 0),Ue([I()],e.prototype,"warningMessages",void 0),Ue([I()],e.prototype,"status",void 0),Ue([I()],e.prototype,"focused",void 0),Ue([I()],e.prototype,"additionalWarningRules",void 0),Ue([I()],e.prototype,"additionalErrorRules",void 0),e})});var Eg=u(()=>{"use strict";Og();ed()});function jC(r){this._$AN!==void 0?(Ta(this),this._$AM=r,wg(this)):this._$AM=r}function GC(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),Ta(o[a]);else o!=null&&(yn(o,!1),Ta(o));else yn(this,r)}var yn,Ta,wg,KC,gi,Rg=u(()=>{Vs();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},Ta=r=>{let e,t;do{if((e=r._$AM)===void 0)break;t=e._$AN,t.delete(r),r=e}while(t?.size===0)},wg=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),KC(e)}};KC=r=>{r.type==Yt.CHILD&&(r._$AP??=GC,r._$AQ??=jC)},gi=class extends kt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,o){super._$AT(e,t,o),wg(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(yn(this,e),Ta(this))}setValue(e){if(zp(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 rd=u(()=>{Rg()});var Ag=u(()=>{Vo();At();Ds()});var od,f_,Lg=u(()=>{"use strict";_();rd();Ag();od=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 $e}update(e){return this.part=e,this.ensureFocusTrap(e.element),$e}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 Rt&&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}},f_=ht(od)});var kg,qC,id,y_,Tg=u(()=>{"use strict";rd();_();(function(r){r.sm="sm",r.md="md",r.lg="lg",r.xl="xl"})(kg||(kg={}));qC={sm:640,md:768,lg:1024,xl:1280},id=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??(()=>T);return this.size>n?t():a()}resolveThreshold(e){return typeof e=="number"?e:qC[e]}},y_=ht(id)});var _g=u(()=>{"use strict";Lg();Tg()});function _a(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 nd({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||f?.defaultComponentId||this.tagName.toLowerCase(),data:a}))}}return t.analyticsActions=e,ZC([ue({})],t.prototype,"configuredAnalyticsActions",void 0),t}var ZC,nd,Ig=u(()=>{"use strict";lo();ZC=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},nd=class extends CustomEvent{constructor(e){super("ft-analytics-action",{composed:!0,bubbles:!0,detail:e})}}});var ad,sd,ld,cd,ko,bn,O=u(()=>{"use strict";fp();_();K();Bt();tt();Zp();Ki();nl();Xn();ul();oa();lo();yl();vl();Qo();pa();Dl();ia();Vl();ln();Wl();rt();ql();Yl();Xl();ec();Ea();fa();_c();ha();$c();Bc();La();Yo();Vc();Gc();Kc();qc();ra();Qc();Xc();Gc();Kc();nl();Xn();ul();La();oa();lo();yl();vl();Qo();pa();_c();Dl();ia();Vl();Bc();ln();Qc();Xc();Wl();rt();ql();Yl();Xl();ec();Ea();Vc();fa();ha();$c();qc();Eg();_g();ra();Yo();Ig();ko=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ld=(sd=(ad=window.safari)===null||ad===void 0?void 0:ad.pushNotification)===null||sd===void 0?void 0:sd.toString())!==null&&ld!==void 0?ld:"")==="[object SafariRemoteNotification]",bn="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(cd=window.ftGlobals)!==null&&cd!==void 0?cd:{lit:Ms,litDecorators:Hs,litRepeat:Ws,litClassMap:js,litStyleMap:Gs,litUnsafeHTML:Ks,wcUtils:{...il,...qs,...dl,...Uc,...pl,...Zs,...gl,...ol,...Nl,...jc,...xg,...Tc,...$l,...ml,...Hl,...Fc,...Ul,...Zc,...Yc,...Fh,...el,...Kl,...bl,...Ql,...mi,...Vh,...Jl,...Rc,...Hc,...Ml,...Bl,...Nc,...sl,isSafari:ko,isTouchScreen:bn,setVariable:A}}});var Pg,le,Ng,$g,Dg,Mg,Fg,xr=u(()=>{"use strict";_();O();Pg=i.extend("--ft-ripple-color","",S.colorContent),le={color:Pg,backgroundColor:i.extend("--ft-ripple-background-color","",Pg),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")},Ng=i.extend("--ft-ripple-color","",S.colorPrimary),$g={color:Ng,backgroundColor:i.extend("--ft-ripple-background-color","",Ng)},Dg=i.extend("--ft-ripple-color","",S.colorSecondary),Mg={color:Dg,backgroundColor:i.extend("--ft-ripple-background-color","",Dg)},Fg=R`
85
85
  :host {
86
86
  display: contents;
87
87
  }
@@ -136,19 +136,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
136
136
  }
137
137
 
138
138
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
139
- background-color: ${Ug.backgroundColor};
139
+ background-color: ${Mg.backgroundColor};
140
140
  }
141
141
 
142
142
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
143
- background-color: ${Ug.color};
143
+ background-color: ${Mg.color};
144
144
  }
145
145
 
146
146
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
147
- background-color: ${Fg.backgroundColor};
147
+ background-color: ${$g.backgroundColor};
148
148
  }
149
149
 
150
150
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
151
- background-color: ${Fg.color};
151
+ background-color: ${$g.color};
152
152
  }
153
153
 
154
154
  .ft-ripple .ft-ripple--background {
@@ -193,7 +193,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
193
193
  opacity: ${le.opacityContentOnSurfacePressed};
194
194
  transform: translate(-50%, -50%) scale(1);
195
195
  }
196
- `});var dt,Z,ud=u(()=>{"use strict";_();K();tt();O();xr();dt=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 D{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 ae(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 ae(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`
196
+ `});var dt,Z,dd=u(()=>{"use strict";_();K();tt();O();xr();dt=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 D{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 ae(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 ae(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`
197
197
  <style>
198
198
  .ft-ripple .ft-ripple--effect {
199
199
  left: ${this.originX}px;
@@ -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=zg;dt([h({type:Boolean})],Z.prototype,"primary",void 0);dt([h({type:Boolean})],Z.prototype,"secondary",void 0);dt([h({type:Boolean})],Z.prototype,"unbounded",void 0);dt([h({type:Boolean})],Z.prototype,"activated",void 0);dt([h({type:Boolean})],Z.prototype,"selected",void 0);dt([h({type:Boolean})],Z.prototype,"disabled",void 0);dt([I()],Z.prototype,"hovered",void 0);dt([I()],Z.prototype,"focused",void 0);dt([I()],Z.prototype,"pressed",void 0);dt([I()],Z.prototype,"rippling",void 0);dt([I()],Z.prototype,"originX",void 0);dt([I()],Z.prototype,"originY",void 0);dt([F(".ft-ripple")],Z.prototype,"ripple",void 0);dt([F(".ft-ripple--effect")],Z.prototype,"rippleEffect",void 0)});var Vg=u(()=>{"use strict"});var Wg,jg=u(()=>{"use strict";ud();Wg={"ft-ripple":Z}});var Gg=u(()=>{"use strict";O();jg();U(Wg)});var ot=u(()=>{"use strict";ud();xr();Vg();Gg()});var qg,JC,pd,Kg,fd,hd,DI,MI,Zg=u(()=>{At();qg=Symbol.for(""),JC=r=>{if(r?.r===qg)return r?._$litStatic$},pd=r=>({_$litStatic$:r,r:qg}),Kg=new Map,fd=r=>(e,...t)=>{let o=t.length,n,a,s=[],l=[],d,f=0,g=!1;for(;f<o;){for(d=e[f];f<o&&(a=t[f],(n=JC(a))!==void 0);)d+=n+e[++f],g=!0;f!==o&&l.push(a),s.push(d),f++}if(f===o&&s.push(e[o]),g){let m=s.join("$$lit$$");(e=Kg.get(m))===void 0&&(s.raw=s,Kg.set(m,e=s)),t=l}return r(e,...t)},hd=fd(b),DI=fd(Is),MI=fd(Ps)});var Qg=u(()=>{Zg()});var he,Ia=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"})(he||(he={}))});var Yg,Cr,$,yi,bi,vi,xi,Sr,Me,xt,Si,Ci,nr,Xg,Jg,ey,ty,ry,jr,Gr,oy,iy,ny,ay,Vt=u(()=>{"use strict";_();O();Yg=i.extend("--ft-typography-font-family","",S.titleFont),Cr=i.extend("--ft-typography-font-family","",S.contentFont),$={fontFamily:Cr,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","",Yg),fontSize:i.extend("--ft-typography-title-font-size","",$.fontSize,"20px"),fontWeight:i.extend("--ft-typography-title-font-weight","",$.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-letter-spacing","",$.letterSpacing,"0.15px"),lineHeight:i.extend("--ft-typography-title-line-height","",$.lineHeight,"1.2"),textTransform:i.extend("--ft-typography-title-text-transform","",$.textTransform,"inherit")},bi={fontFamily:i.extend("--ft-typography-title-dense-font-family","",Yg),fontSize:i.extend("--ft-typography-title-dense-font-size","",$.fontSize,"14px"),fontWeight:i.extend("--ft-typography-title-dense-font-weight","",$.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-dense-letter-spacing","",$.letterSpacing,"0.105px"),lineHeight:i.extend("--ft-typography-title-dense-line-height","",$.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-title-dense-text-transform","",$.textTransform,"inherit")},vi={fontFamily:i.extend("--ft-typography-subtitle1-font-family","",Cr),fontSize:i.extend("--ft-typography-subtitle1-font-size","",$.fontSize,"16px"),fontWeight:i.extend("--ft-typography-subtitle1-font-weight","",$.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-subtitle1-letter-spacing","",$.letterSpacing,"0.144px"),lineHeight:i.extend("--ft-typography-subtitle1-line-height","",$.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-subtitle1-text-transform","",$.textTransform,"inherit")},xi={fontFamily:i.extend("--ft-typography-subtitle2-font-family","",Cr),fontSize:i.extend("--ft-typography-subtitle2-font-size","",$.fontSize,"14px"),fontWeight:i.extend("--ft-typography-subtitle2-font-weight","",$.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-subtitle2-letter-spacing","",$.letterSpacing,"0.098px"),lineHeight:i.extend("--ft-typography-subtitle2-line-height","",$.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-subtitle2-text-transform","",$.textTransform,"inherit")},Sr={fontFamily:i.extend("--ft-typography-body1-font-family","",Cr),fontSize:i.extend("--ft-typography-body1-font-size","",$.fontSize,"16px"),fontWeight:i.extend("--ft-typography-body1-font-weight","",$.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body1-letter-spacing","",$.letterSpacing,"0.496px"),lineHeight:i.extend("--ft-typography-body1-line-height","",$.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-body1-text-transform","",$.textTransform,"inherit")},Me={fontFamily:i.extend("--ft-typography-body2-font-family","",Cr),fontSize:i.extend("--ft-typography-body2-font-size","",$.fontSize,"14px"),fontWeight:i.extend("--ft-typography-body2-font-weight","",$.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body2-letter-spacing","",$.letterSpacing,"0.252px"),lineHeight:i.extend("--ft-typography-body2-line-height","",$.lineHeight,"1.4"),textTransform:i.extend("--ft-typography-body2-text-transform","",$.textTransform,"inherit")},xt={fontFamily:i.extend("--ft-typography-caption-font-family","",Cr),fontSize:i.extend("--ft-typography-caption-font-size","",$.fontSize,"12px"),fontWeight:i.extend("--ft-typography-caption-font-weight","",$.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-caption-letter-spacing","",$.letterSpacing,"0.396px"),lineHeight:i.extend("--ft-typography-caption-line-height","",$.lineHeight,"1.33"),textTransform:i.extend("--ft-typography-caption-text-transform","",$.textTransform,"inherit")},Si={fontFamily:i.extend("--ft-typography-breadcrumb-font-family","",Cr),fontSize:i.extend("--ft-typography-breadcrumb-font-size","",$.fontSize,"10px"),fontWeight:i.extend("--ft-typography-breadcrumb-font-weight","",$.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-breadcrumb-letter-spacing","",$.letterSpacing,"0.33px"),lineHeight:i.extend("--ft-typography-breadcrumb-line-height","",$.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-breadcrumb-text-transform","",$.textTransform,"inherit")},Ci={fontFamily:i.extend("--ft-typography-overline-font-family","",Cr),fontSize:i.extend("--ft-typography-overline-font-size","",$.fontSize,"10px"),fontWeight:i.extend("--ft-typography-overline-font-weight","",$.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-overline-letter-spacing","",$.letterSpacing,"1.5px"),lineHeight:i.extend("--ft-typography-overline-line-height","",$.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-overline-text-transform","",$.textTransform,"uppercase")},nr={fontFamily:i.extend("--ft-typography-button-font-family","",Cr),fontSize:i.extend("--ft-typography-button-font-size","",$.fontSize,"14px"),fontWeight:i.extend("--ft-typography-button-font-weight","",$.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-button-letter-spacing","",$.letterSpacing,"1.246px"),lineHeight:i.extend("--ft-typography-button-line-height","",$.lineHeight,"1.15"),textTransform:i.extend("--ft-typography-button-text-transform","",$.textTransform,"uppercase")},Xg=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=Fg;dt([h({type:Boolean})],Z.prototype,"primary",void 0);dt([h({type:Boolean})],Z.prototype,"secondary",void 0);dt([h({type:Boolean})],Z.prototype,"unbounded",void 0);dt([h({type:Boolean})],Z.prototype,"activated",void 0);dt([h({type:Boolean})],Z.prototype,"selected",void 0);dt([h({type:Boolean})],Z.prototype,"disabled",void 0);dt([I()],Z.prototype,"hovered",void 0);dt([I()],Z.prototype,"focused",void 0);dt([I()],Z.prototype,"pressed",void 0);dt([I()],Z.prototype,"rippling",void 0);dt([I()],Z.prototype,"originX",void 0);dt([I()],Z.prototype,"originY",void 0);dt([F(".ft-ripple")],Z.prototype,"ripple",void 0);dt([F(".ft-ripple--effect")],Z.prototype,"rippleEffect",void 0)});var Ug=u(()=>{"use strict"});var zg,Hg=u(()=>{"use strict";dd();zg={"ft-ripple":Z}});var Vg=u(()=>{"use strict";O();Hg();U(zg)});var ot=u(()=>{"use strict";dd();xr();Ug();Vg()});var jg,QC,ud,Wg,pd,fd,NI,$I,Gg=u(()=>{At();jg=Symbol.for(""),QC=r=>{if(r?.r===jg)return r?._$litStatic$},ud=r=>({_$litStatic$:r,r:jg}),Wg=new Map,pd=r=>(e,...t)=>{let o=t.length,n,a,s=[],l=[],d,f=0,g=!1;for(;f<o;){for(d=e[f];f<o&&(a=t[f],(n=QC(a))!==void 0);)d+=n+e[++f],g=!0;f!==o&&l.push(a),s.push(d),f++}if(f===o&&s.push(e[o]),g){let m=s.join("$$lit$$");(e=Wg.get(m))===void 0&&(s.raw=s,Wg.set(m,e=s)),t=l}return r(e,...t)},fd=pd(b),NI=pd(_s),$I=pd(Is)});var Kg=u(()=>{Gg()});var he,Ia=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"})(he||(he={}))});var qg,Cr,$,yi,bi,vi,xi,Sr,Me,xt,Si,Ci,nr,Zg,Qg,Yg,Xg,Jg,jr,Gr,ey,ty,ry,oy,Vt=u(()=>{"use strict";_();O();qg=i.extend("--ft-typography-font-family","",S.titleFont),Cr=i.extend("--ft-typography-font-family","",S.contentFont),$={fontFamily:Cr,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","",qg),fontSize:i.extend("--ft-typography-title-font-size","",$.fontSize,"20px"),fontWeight:i.extend("--ft-typography-title-font-weight","",$.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-letter-spacing","",$.letterSpacing,"0.15px"),lineHeight:i.extend("--ft-typography-title-line-height","",$.lineHeight,"1.2"),textTransform:i.extend("--ft-typography-title-text-transform","",$.textTransform,"inherit")},bi={fontFamily:i.extend("--ft-typography-title-dense-font-family","",qg),fontSize:i.extend("--ft-typography-title-dense-font-size","",$.fontSize,"14px"),fontWeight:i.extend("--ft-typography-title-dense-font-weight","",$.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-dense-letter-spacing","",$.letterSpacing,"0.105px"),lineHeight:i.extend("--ft-typography-title-dense-line-height","",$.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-title-dense-text-transform","",$.textTransform,"inherit")},vi={fontFamily:i.extend("--ft-typography-subtitle1-font-family","",Cr),fontSize:i.extend("--ft-typography-subtitle1-font-size","",$.fontSize,"16px"),fontWeight:i.extend("--ft-typography-subtitle1-font-weight","",$.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-subtitle1-letter-spacing","",$.letterSpacing,"0.144px"),lineHeight:i.extend("--ft-typography-subtitle1-line-height","",$.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-subtitle1-text-transform","",$.textTransform,"inherit")},xi={fontFamily:i.extend("--ft-typography-subtitle2-font-family","",Cr),fontSize:i.extend("--ft-typography-subtitle2-font-size","",$.fontSize,"14px"),fontWeight:i.extend("--ft-typography-subtitle2-font-weight","",$.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-subtitle2-letter-spacing","",$.letterSpacing,"0.098px"),lineHeight:i.extend("--ft-typography-subtitle2-line-height","",$.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-subtitle2-text-transform","",$.textTransform,"inherit")},Sr={fontFamily:i.extend("--ft-typography-body1-font-family","",Cr),fontSize:i.extend("--ft-typography-body1-font-size","",$.fontSize,"16px"),fontWeight:i.extend("--ft-typography-body1-font-weight","",$.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body1-letter-spacing","",$.letterSpacing,"0.496px"),lineHeight:i.extend("--ft-typography-body1-line-height","",$.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-body1-text-transform","",$.textTransform,"inherit")},Me={fontFamily:i.extend("--ft-typography-body2-font-family","",Cr),fontSize:i.extend("--ft-typography-body2-font-size","",$.fontSize,"14px"),fontWeight:i.extend("--ft-typography-body2-font-weight","",$.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body2-letter-spacing","",$.letterSpacing,"0.252px"),lineHeight:i.extend("--ft-typography-body2-line-height","",$.lineHeight,"1.4"),textTransform:i.extend("--ft-typography-body2-text-transform","",$.textTransform,"inherit")},xt={fontFamily:i.extend("--ft-typography-caption-font-family","",Cr),fontSize:i.extend("--ft-typography-caption-font-size","",$.fontSize,"12px"),fontWeight:i.extend("--ft-typography-caption-font-weight","",$.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-caption-letter-spacing","",$.letterSpacing,"0.396px"),lineHeight:i.extend("--ft-typography-caption-line-height","",$.lineHeight,"1.33"),textTransform:i.extend("--ft-typography-caption-text-transform","",$.textTransform,"inherit")},Si={fontFamily:i.extend("--ft-typography-breadcrumb-font-family","",Cr),fontSize:i.extend("--ft-typography-breadcrumb-font-size","",$.fontSize,"10px"),fontWeight:i.extend("--ft-typography-breadcrumb-font-weight","",$.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-breadcrumb-letter-spacing","",$.letterSpacing,"0.33px"),lineHeight:i.extend("--ft-typography-breadcrumb-line-height","",$.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-breadcrumb-text-transform","",$.textTransform,"inherit")},Ci={fontFamily:i.extend("--ft-typography-overline-font-family","",Cr),fontSize:i.extend("--ft-typography-overline-font-size","",$.fontSize,"10px"),fontWeight:i.extend("--ft-typography-overline-font-weight","",$.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-overline-letter-spacing","",$.letterSpacing,"1.5px"),lineHeight:i.extend("--ft-typography-overline-line-height","",$.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-overline-text-transform","",$.textTransform,"uppercase")},nr={fontFamily:i.extend("--ft-typography-button-font-family","",Cr),fontSize:i.extend("--ft-typography-button-font-size","",$.fontSize,"14px"),fontWeight:i.extend("--ft-typography-button-font-weight","",$.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-button-letter-spacing","",$.letterSpacing,"1.246px"),lineHeight:i.extend("--ft-typography-button-line-height","",$.lineHeight,"1.15"),textTransform:i.extend("--ft-typography-button-text-transform","",$.textTransform,"uppercase")},Zg=R`
208
208
  .ft-typography--title {
209
209
  font-family: ${yi.fontFamily};
210
210
  font-size: ${yi.fontSize};
@@ -213,7 +213,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
213
213
  line-height: ${yi.lineHeight};
214
214
  text-transform: ${yi.textTransform};
215
215
  }
216
- `,Jg=R`
216
+ `,Qg=R`
217
217
  .ft-typography--title-dense {
218
218
  font-family: ${bi.fontFamily};
219
219
  font-size: ${bi.fontSize};
@@ -222,7 +222,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
222
222
  line-height: ${bi.lineHeight};
223
223
  text-transform: ${bi.textTransform};
224
224
  }
225
- `,ey=R`
225
+ `,Yg=R`
226
226
  .ft-typography--subtitle1 {
227
227
  font-family: ${vi.fontFamily};
228
228
  font-size: ${vi.fontSize};
@@ -231,7 +231,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
231
231
  line-height: ${vi.lineHeight};
232
232
  text-transform: ${vi.textTransform};
233
233
  }
234
- `,ty=R`
234
+ `,Xg=R`
235
235
  .ft-typography--subtitle2 {
236
236
  font-family: ${xi.fontFamily};
237
237
  font-size: ${xi.fontSize};
@@ -241,7 +241,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
241
241
  text-transform: ${xi.textTransform};
242
242
  }
243
243
 
244
- `,ry=R`
244
+ `,Jg=R`
245
245
  .ft-typography--body1 {
246
246
  font-family: ${Sr.fontFamily};
247
247
  font-size: ${Sr.fontSize};
@@ -268,7 +268,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
268
268
  line-height: ${xt.lineHeight};
269
269
  text-transform: ${xt.textTransform};
270
270
  }
271
- `,oy=R`
271
+ `,ey=R`
272
272
  .ft-typography--breadcrumb {
273
273
  font-family: ${Si.fontFamily};
274
274
  font-size: ${Si.fontSize};
@@ -277,7 +277,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
277
277
  line-height: ${Si.lineHeight};
278
278
  text-transform: ${Si.textTransform};
279
279
  }
280
- `,iy=R`
280
+ `,ty=R`
281
281
  .ft-typography--overline {
282
282
  font-family: ${Ci.fontFamily};
283
283
  font-size: ${Ci.fontSize};
@@ -286,7 +286,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
286
286
  line-height: ${Ci.lineHeight};
287
287
  text-transform: ${Ci.textTransform};
288
288
  }
289
- `,ny=R`
289
+ `,ry=R`
290
290
  .ft-typography--button {
291
291
  font-family: ${nr.fontFamily};
292
292
  font-size: ${nr.fontSize};
@@ -295,19 +295,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
295
295
  line-height: ${nr.lineHeight};
296
296
  text-transform: ${nr.textTransform};
297
297
  }
298
- `,ay=R`
298
+ `,oy=R`
299
299
  .ft-typography {
300
300
  vertical-align: inherit;
301
301
  }
302
- `});var sy,ne,md=u(()=>{"use strict";Qg();K();O();Ia();Vt();sy=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},ne=class extends D{constructor(){super(...arguments),this.variant=he.body1}render(){return this.element?hd`
303
- <${pd(this.element)}
302
+ `});var iy,ne,hd=u(()=>{"use strict";Kg();K();O();Ia();Vt();iy=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},ne=class extends D{constructor(){super(...arguments),this.variant=he.body1}render(){return this.element?fd`
303
+ <${ud(this.element)}
304
304
  part="text"
305
305
  class="ft-typography ft-typography--${this.variant}">
306
306
  <slot></slot>
307
- </${pd(this.element)}>
308
- `:hd`
307
+ </${ud(this.element)}>
308
+ `:fd`
309
309
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
310
- `}};ne.styles=[Xg,Jg,ey,ty,ry,jr,Gr,oy,iy,ny,ay];sy([h()],ne.prototype,"element",void 0);sy([h()],ne.prototype,"variant",void 0)});var ly,cy=u(()=>{"use strict";md();ly={"ft-typography":ne}});var dy=u(()=>{"use strict";O();cy();U(ly)});var _e=u(()=>{"use strict";md();Vt();Ia();dy()});var vn,uy,gd=u(()=>{"use strict";_();O();vn={distance:i.create("--ft-tooltip-distance","","SIZE","4px"),color:i.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:i.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:i.extend("--ft-tooltip-border-radius","",S.borderRadiusS),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","150px")},uy=R`
310
+ `}};ne.styles=[Zg,Qg,Yg,Xg,Jg,jr,Gr,ey,ty,ry,oy];iy([h()],ne.prototype,"element",void 0);iy([h()],ne.prototype,"variant",void 0)});var ny,ay=u(()=>{"use strict";hd();ny={"ft-typography":ne}});var sy=u(()=>{"use strict";O();ay();U(ny)});var _e=u(()=>{"use strict";hd();Vt();Ia();sy()});var vn,ly,md=u(()=>{"use strict";_();O();vn={distance:i.create("--ft-tooltip-distance","","SIZE","4px"),color:i.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:i.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:i.extend("--ft-tooltip-border-radius","",S.borderRadiusS),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","150px")},ly=R`
311
311
  .ft-tooltip--container {
312
312
  display: block;
313
313
  }
@@ -338,15 +338,15 @@ 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,Or,xn,tO,z,Qe=u(()=>{"use strict";O();eO="ft-app-info",Or=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};Or.eventName="authentication-change";xn=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};xn.eventName="ui-locale-changed";tO={session:(r,e)=>{De(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>z.dispatchEvent(new Or(e.payload)),0))}},z=vr.get({name:eO,reducers:tO,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}})});var Pa,gP,py=u(()=>{"use strict";K();Ea();La();Qe();O();Pa=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=we(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(z)}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 Pa([h({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Pa([h({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Pa([fe({store:z.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),Pa([fe({store:z.name})],e.prototype,"uiLocale",void 0),e})});var To,yd=u(()=>{"use strict";Qe();To=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:o}=z.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=z.subscribe(()=>{o=r.get(e),o&&(n(),t(o))})}})}}});var Oi,bd=u(()=>{"use strict";yd();Oi=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 Ye,Kr=u(()=>{"use strict";O();bd();Ye=class extends Oi{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 Jt,this.cache=e?n.commonCache:new Jt}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 Na,vd=u(()=>{"use strict";Qe();Vr();Kr();Na=class extends Ye{async listMySearches(){let{session:e}=z.getState();return Aa(e,Te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var $a,xd=u(()=>{"use strict";Qe();Kr();$a=class extends Ye{async listMyBookmarks(){let e=z.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var Da,fy=u(()=>{"use strict";Qe();Kr();Da=class extends Ye{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=z.getState().session;return!!e?.sessionAuthenticated}}});var Ma,hy=u(()=>{"use strict";Kr();Qe();Ma=class extends Ye{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=z.getState().session;return!!e?.sessionAuthenticated}}});var rO,oO,yy,Sd,Cd,my,gy,it,Od,Ed,Fa=u(()=>{"use strict";Vr();O();vd();xd();Qe();fy();hy();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(Pt).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;Cd(r,t,[...Sd(r,t),n]),my(r,t,1,o),gy(r,n)},editAsset:(r,e)=>{let{assetType:t,asset:o}=e.payload;Cd(r,t,Sd(r,t).map(n=>n.id===o.id?o:n)),gy(r,o)},removeAsset:(r,e)=>{let{assetType:t,mapId:o,assetId:n}=e.payload;Cd(r,t,Sd(r,t).filter(a=>a.id!==n)),my(r,t,-1,o)}},yy={[Pt.SEARCHES]:"savedSearches",[Pt.BOOKMARKS]:"bookmarks",[Pt.BOOKS]:void 0,[Pt.COLLECTIONS]:void 0},Sd=(r,e)=>{var t;let o=yy[e];return o?(t=r[o])!==null&&t!==void 0?t:[]:[]},Cd=(r,e,t)=>{let o=yy[e];o&&(r[o]=t)},my=(r,e,t,o)=>{let n=r.assetCounts.allAsset[e];if(n!==void 0&&(r.assetCounts.allAsset[e]=Math.max(0,n+t),e===Pt.BOOKMARKS&&o)){let a=r.assetCounts.bookmarkByMap[o];r.assetCounts.bookmarkByMap[o]=Math.max(0,a+t)}},gy=(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=vr.get({name:rO,reducers:oO,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Pt).map(r=>[r,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Od=class{constructor(e=new Da,t=new Ma){this.assetCountsService=e,this.assetLabelsService=t,this.currentSession=z.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new $a,this.savedSearchesService=new Na,z.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=z.getState();De((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===Pt.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)}}},Ed=new Od;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Ed)});var by=u(()=>{"use strict";Vr();Fa()});var wd,vy=u(()=>{"use strict";Qe();wd=class{addCommand(e,t=!1){z.commands.add(e,t)}consumeCommand(e){return z.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new wd});var xy,Ei,iO,Ba,wi,Ua,Sy=u(()=>{"use strict";Qe();O();Kr();Ei=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},iO=Symbol("clearAfterUnitTest"),Ba=class extends ea(Ye){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[xy]=()=>{this.defaultMessages={},this.cache=new Jt,this.listeners={}},this.currentUiLocale=z.getState().uiLocale,z.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=z.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};De(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 Xt)&&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 Ei({loadedContexts:e})),this.dispatchEvent(new Ei({loadedContexts:e})),await Promise.all(e.map(t=>this.notify(t,!1)))}async notify(e,t=!0){t&&(document.body.dispatchEvent(new Ei({loadedContexts:[e]})),this.dispatchEvent(new Ei({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>Jn(0).then(()=>o()).catch(()=>null)))}};xy=iO;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ba{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ba{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});wi=window.FluidTopicsI18nService,Ua=window.FluidTopicsCustomI18nService});var Rd,Cy=u(()=>{"use strict";O();Rd=class{highlightHtml(e,t,o){Kl(e,t,o)}};window.FluidTopicsHighlightHtmlService=new Rd});var Ad,Oy=u(()=>{"use strict";O();Qe();Ad=class{isDate(e){var t,o,n,a;return(a=(n=((o=(t=z.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:z.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 Ad});var Er,Ld=u(()=>{"use strict";O();Qe();Er=class{static get(e,t){var o,n,a,s;let l=z.getState(),{lang:d,region:f}=(a=(n=(o=l.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Wr(l.baseUrl,e??20,(s=l.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,t??`${d}-${f}`)}}});var za,Ey=u(()=>{"use strict";Kr();za=class extends Ye{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 kd,wy=u(()=>{"use strict";Ld();kd=class{urlToSearchRequest(e){return Er.get().parse(e)}searchRequestToUrl(e){return Er.get().serialize(e)}};window.FluidTopicsUrlService=new kd});var _o,Ry=u(()=>{"use strict";_o=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{currentItem:e}})}};_o.eventName="change"});var Td,Ay,Ly=u(()=>{"use strict";Td=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))}},Ay=new Td});var Ha,ky=u(()=>{"use strict";O();Ry();Ly();Ha=class r extends mr{static build(){return new r(window.history,Ay,()=>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),De(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 mt(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 mt(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let t=this.states.filter(o=>!!o).filter(o=>o.index<this.currentIndex).reverse();return mt(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 mt(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 Ty=u(()=>{"use strict";ky();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Ha.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 _y=u(()=>{"use strict";Qe()});var Va=u(()=>{"use strict";xd();yd();vy();Sy();Kr();Cy();vd();Oy();Ld();Ey();wy();Ty();_y()});var Iy,_d=u(()=>{"use strict";_();Iy=R`
342
- `});var Py=u(()=>{"use strict"});function Ny(r,e){let{authenticationRequired:t,session:o}=z.getState();return t&&!o?.sessionAuthenticated?Promise.resolve(e):r()}var $y=u(()=>{"use strict";Qe()});var Wa,Dy=u(()=>{"use strict";bd();Wa=class extends Oi{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}}});var Id,Sn,Pd=u(()=>{"use strict";O();Qe();$y();Va();Dy();Id=class r extends Co{static build(e){return new r(z,e)}constructor(e,t){super(),this.store=e,this.cache=new Jt,this.withManualResources=!0,this.userLocaleService=new Wa,this.cleanSessionDebouncer=new ae,this.reloadDebouncer=new ae(500),this.apiProvider=t??(()=>To.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Or.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().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",()=>Ny(()=>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}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),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=Id.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 My=u(()=>{});var Nd=u(()=>{Cn();});var Fy=u(()=>{});var $d=u(()=>{Cn();Fy();});var On,By=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 Uy=u(()=>{$d();});var zy=u(()=>{Nd();});var Hy=u(()=>{Cn();My();Nd();$d();By();Uy();zy()});var ze,Re,Dd=u(()=>{"use strict";_();K();O();_d();Va();Pd();Hy();ze=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},Re=class extends bt{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 YC,Or,xn,XC,z,Qe=u(()=>{"use strict";O();YC="ft-app-info",Or=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};Or.eventName="authentication-change";xn=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};xn.eventName="ui-locale-changed";XC={session:(r,e)=>{De(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>z.dispatchEvent(new Or(e.payload)),0))}},z=vr.get({name:YC,reducers:XC,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}})});var Pa,hP,cy=u(()=>{"use strict";K();Ea();La();Qe();O();Pa=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},hP=we(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(z)}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 Pa([h({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Pa([h({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Pa([fe({store:z.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),Pa([fe({store:z.name})],e.prototype,"uiLocale",void 0),e})});var To,gd=u(()=>{"use strict";Qe();To=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:o}=z.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=z.subscribe(()=>{o=r.get(e),o&&(n(),t(o))})}})}}});var Oi,yd=u(()=>{"use strict";gd();Oi=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 Ye,Kr=u(()=>{"use strict";O();yd();Ye=class extends Oi{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 Jt,this.cache=e?n.commonCache:new Jt}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 Na,bd=u(()=>{"use strict";Qe();Vr();Kr();Na=class extends Ye{async listMySearches(){let{session:e}=z.getState();return Aa(e,Te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var $a,vd=u(()=>{"use strict";Qe();Kr();$a=class extends Ye{async listMyBookmarks(){let e=z.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var Da,dy=u(()=>{"use strict";Qe();Kr();Da=class extends Ye{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=z.getState().session;return!!e?.sessionAuthenticated}}});var Ma,uy=u(()=>{"use strict";Kr();Qe();Ma=class extends Ye{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=z.getState().session;return!!e?.sessionAuthenticated}}});var JC,eO,hy,xd,Sd,py,fy,it,Cd,tO,Od=u(()=>{"use strict";Vr();O();bd();vd();Qe();dy();uy();JC="ft-user-assets",eO={setAssetCount:(r,e)=>{let{userAssetType:t,count:o}=e.payload.assetCount;r.assetCounts.allAsset[t]=o},clearAssetCount:r=>{Object.values(Pt).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;Sd(r,t,[...xd(r,t),n]),py(r,t,1,o),fy(r,n)},editAsset:(r,e)=>{let{assetType:t,asset:o}=e.payload;Sd(r,t,xd(r,t).map(n=>n.id===o.id?o:n)),fy(r,o)},removeAsset:(r,e)=>{let{assetType:t,mapId:o,assetId:n}=e.payload;Sd(r,t,xd(r,t).filter(a=>a.id!==n)),py(r,t,-1,o)}},hy={[Pt.SEARCHES]:"savedSearches",[Pt.BOOKMARKS]:"bookmarks",[Pt.BOOKS]:void 0,[Pt.COLLECTIONS]:void 0},xd=(r,e)=>{var t;let o=hy[e];return o?(t=r[o])!==null&&t!==void 0?t:[]:[]},Sd=(r,e,t)=>{let o=hy[e];o&&(r[o]=t)},py=(r,e,t,o)=>{let n=r.assetCounts.allAsset[e];if(n!==void 0&&(r.assetCounts.allAsset[e]=Math.max(0,n+t),e===Pt.BOOKMARKS&&o)){let a=r.assetCounts.bookmarkByMap[o];r.assetCounts.bookmarkByMap[o]=Math.max(0,a+t)}},fy=(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=vr.get({name:JC,reducers:eO,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Pt).map(r=>[r,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Cd=class{constructor(e=new Da,t=new Ma){this.assetCountsService=e,this.assetLabelsService=t,this.currentSession=z.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new $a,this.savedSearchesService=new Na,z.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=z.getState();De((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===Pt.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)}}},tO=new Cd;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=tO)});var my=u(()=>{"use strict";Vr();Od()});var Ed,gy=u(()=>{"use strict";Qe();Ed=class{addCommand(e,t=!1){z.commands.add(e,t)}consumeCommand(e){return z.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ed});var yy,Ei,rO,Fa,wi,Ba,by=u(()=>{"use strict";Qe();O();Kr();Ei=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},rO=Symbol("clearAfterUnitTest"),Fa=class extends ea(Ye){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[yy]=()=>{this.defaultMessages={},this.cache=new Jt,this.listeners={}},this.currentUiLocale=z.getState().uiLocale,z.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=z.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};De(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 Xt)&&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 Ei({loadedContexts:e})),this.dispatchEvent(new Ei({loadedContexts:e})),await Promise.all(e.map(t=>this.notify(t,!1)))}async notify(e,t=!0){t&&(document.body.dispatchEvent(new Ei({loadedContexts:[e]})),this.dispatchEvent(new Ei({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>Jn(0).then(()=>o()).catch(()=>null)))}};yy=rO;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))}});wi=window.FluidTopicsI18nService,Ba=window.FluidTopicsCustomI18nService});var wd,vy=u(()=>{"use strict";O();wd=class{highlightHtml(e,t,o){Gl(e,t,o)}};window.FluidTopicsHighlightHtmlService=new wd});var Rd,xy=u(()=>{"use strict";O();Qe();Rd=class{isDate(e){var t,o,n,a;return(a=(n=((o=(t=z.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:z.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 Rd});var Er,Ad=u(()=>{"use strict";O();Qe();Er=class{static get(e,t){var o,n,a,s;let l=z.getState(),{lang:d,region:f}=(a=(n=(o=l.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Wr(l.baseUrl,e??20,(s=l.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,t??`${d}-${f}`)}}});var Ua,Sy=u(()=>{"use strict";Kr();Ua=class extends Ye{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 Ld,Cy=u(()=>{"use strict";Ad();Ld=class{urlToSearchRequest(e){return Er.get().parse(e)}searchRequestToUrl(e){return Er.get().serialize(e)}};window.FluidTopicsUrlService=new Ld});var _o,Oy=u(()=>{"use strict";_o=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{currentItem:e}})}};_o.eventName="change"});var kd,Ey,wy=u(()=>{"use strict";kd=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))}},Ey=new kd});var za,Ry=u(()=>{"use strict";O();Oy();wy();za=class r extends mr{static build(){return new r(window.history,Ey,()=>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),De(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 mt(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 mt(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let t=this.states.filter(o=>!!o).filter(o=>o.index<this.currentIndex).reverse();return mt(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 mt(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 Ay=u(()=>{"use strict";Ry();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 Ly=u(()=>{"use strict";Qe()});var Ha=u(()=>{"use strict";vd();gd();gy();by();Kr();vy();bd();xy();Ad();Sy();Cy();Ay();Ly()});var ky,Td=u(()=>{"use strict";_();ky=R`
342
+ `});var Ty=u(()=>{"use strict"});function _y(r,e){let{authenticationRequired:t,session:o}=z.getState();return t&&!o?.sessionAuthenticated?Promise.resolve(e):r()}var Iy=u(()=>{"use strict";Qe()});var Va,Py=u(()=>{"use strict";yd();Va=class extends Oi{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}}});var _d,Sn,Id=u(()=>{"use strict";O();Qe();Iy();Ha();Py();_d=class r extends Co{static build(e){return new r(z,e)}constructor(e,t){super(),this.store=e,this.cache=new Jt,this.withManualResources=!0,this.userLocaleService=new Va,this.cleanSessionDebouncer=new ae,this.reloadDebouncer=new ae(500),this.apiProvider=t??(()=>To.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Or.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().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}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,t){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:t}).then(o=>{o.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new xn(o)))}).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=_d.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 Ny=u(()=>{});var Pd=u(()=>{Cn();});var $y=u(()=>{});var Nd=u(()=>{Cn();$y();});var On,Dy=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 My=u(()=>{Nd();});var Fy=u(()=>{Pd();});var By=u(()=>{Cn();Ny();Pd();Nd();Dy();My();Fy()});var ze,Re,$d=u(()=>{"use strict";_();K();O();Td();Ha();Id();By();ze=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},Re=class extends bt{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("tenantId")&&this.stateManager.setTenantId(this.tenantId),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=>wi.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())}};Re.elementDefinitions={};Re.styles=Iy;ze([h()],Re.prototype,"baseUrl",void 0);ze([h()],Re.prototype,"tenantId",void 0);ze([h()],Re.prototype,"apiIntegrationIdentifier",void 0);ze([h()],Re.prototype,"apiIntegrationAppVersion",void 0);ze([h()],Re.prototype,"uiLocale",void 0);ze([ue(null)],Re.prototype,"availableUiLocales",void 0);ze([ue(null)],Re.prototype,"metadataConfiguration",void 0);ze([h({type:Boolean})],Re.prototype,"editorMode",void 0);ze([h({type:Boolean})],Re.prototype,"noCustom",void 0);ze([h({type:Boolean})],Re.prototype,"openExternalDocumentInNewTab",void 0);ze([h({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],Re.prototype,"noCustomComponent",void 0);ze([h({type:Boolean})],Re.prototype,"withManualResources",void 0);ze([h({type:Boolean})],Re.prototype,"navigatorOnline",void 0);ze([h({type:Boolean})],Re.prototype,"forcedOffline",void 0);ze([h({type:Boolean})],Re.prototype,"authenticationRequired",void 0);ze([ue([])],Re.prototype,"messageContexts",void 0);ze([ue(void 0)],Re.prototype,"session",void 0)});var Vy,Wy=u(()=>{"use strict";Dd();Vy={"ft-app-context":Re}});var jy=u(()=>{"use strict";O();Wy();U(Vy)});var Wt=u(()=>{"use strict";py();Qe();Fa();by();Va();_d();Py();Dd();Pd();jy()});var Md,Ri,ja=u(()=>{"use strict";Md=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-]+$/)}},Ri=new Md});var sO,wn,Gy,Ky,Ga,En,ut,Ka,qa,Rn=u(()=>{"use strict";O();Wt();K();ja();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"),Gy=Symbol("i18nListAttributes"),Ky=Symbol("i18nProperties"),Ga=Symbol("i18nContexts"),En=Symbol("i18nUnsubs"),ut=we(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?Ua:wi}i18n(a){let{context:s,key:l,message:d}=a,{custom:f,args:g,argsProvider:m}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,f);let y=g??(m?m(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(Ri.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=(g,m,y)=>y?.context&&y.key&&a(g,m,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...g})}:y;(s=this[wn])===null||s===void 0||s.forEach((g,m)=>d[m]=f(g,m,d[m])),(l=this[Gy])===null||l===void 0||l.forEach((g,m)=>{var y;return d[m]=(y=d[m])===null||y===void 0?void 0:y.map(v=>f(g,m,v))})}updateI18nProperties(a){var s;(s=this[Ky])===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[Ga].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[Ga].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Ga].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[En].forEach(a=>a()),this[En].clear()}}return e=Ga,t=En,sO([h({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}),Ka=class extends ut(D){},qa=class extends ut(bt){}});var Fd,lO,qy=u(()=>{"use strict";ja();Fd=class{fromAttribute(e){if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t.map(o=>typeof o=="string"?Ri.fromAttribute(o):o):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},lO=new Fd});var Ai,Za=u(()=>{"use strict";Rn();O();ja();qy();Ai=(r,e)=>(t,o)=>{var n;t.constructor.createProperty(o,{type:Object,hasChanged:gt,converter:Ri,...e}),t[wn]=(n=t[wn])!==null&&n!==void 0?n:new Map,t[wn].set(o,r??{})}});var ar,Zy=u(()=>{"use strict";Wt();ar=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?Ua:wi}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 Qy=u(()=>{"use strict";Rn()});var Yy,Bd=u(()=>{"use strict";_();Yy=R`
345
- `});var Xy=u(()=>{"use strict"});var An,jt,Ud=u(()=>{"use strict";_();K();O();Bd();Rn();Wt();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},jt=class extends qa{constructor(){super(),this.editorMode=!1,this.addStore(z)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":T:b`
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("tenantId")&&this.stateManager.setTenantId(this.tenantId),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=>wi.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())}};Re.elementDefinitions={};Re.styles=ky;ze([h()],Re.prototype,"baseUrl",void 0);ze([h()],Re.prototype,"tenantId",void 0);ze([h()],Re.prototype,"apiIntegrationIdentifier",void 0);ze([h()],Re.prototype,"apiIntegrationAppVersion",void 0);ze([h()],Re.prototype,"uiLocale",void 0);ze([ue(null)],Re.prototype,"availableUiLocales",void 0);ze([ue(null)],Re.prototype,"metadataConfiguration",void 0);ze([h({type:Boolean})],Re.prototype,"editorMode",void 0);ze([h({type:Boolean})],Re.prototype,"noCustom",void 0);ze([h({type:Boolean})],Re.prototype,"openExternalDocumentInNewTab",void 0);ze([h({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],Re.prototype,"noCustomComponent",void 0);ze([h({type:Boolean})],Re.prototype,"withManualResources",void 0);ze([h({type:Boolean})],Re.prototype,"navigatorOnline",void 0);ze([h({type:Boolean})],Re.prototype,"forcedOffline",void 0);ze([h({type:Boolean})],Re.prototype,"authenticationRequired",void 0);ze([ue([])],Re.prototype,"messageContexts",void 0);ze([ue(void 0)],Re.prototype,"session",void 0)});var Uy,zy=u(()=>{"use strict";$d();Uy={"ft-app-context":Re}});var Hy=u(()=>{"use strict";O();zy();U(Uy)});var Wt=u(()=>{"use strict";cy();Qe();Od();my();Ha();Td();Ty();$d();Id();Hy()});var Dd,Ri,Wa=u(()=>{"use strict";Dd=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-]+$/)}},Ri=new Dd});var nO,wn,Vy,Wy,ja,En,ut,Ga,Ka,Rn=u(()=>{"use strict";O();Wt();K();Wa();nO=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"),Vy=Symbol("i18nListAttributes"),Wy=Symbol("i18nProperties"),ja=Symbol("i18nContexts"),En=Symbol("i18nUnsubs"),ut=we(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:wi}i18n(a){let{context:s,key:l,message:d}=a,{custom:f,args:g,argsProvider:m}=a;if(s&&l){this.hasI18nContext(s)||this.addI18nContext(s,void 0,f);let y=g??(m?m(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(Ri.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=(g,m,y)=>y?.context&&y.key&&a(g,m,y)?{...y,message:this.i18n({context:y.context,key:y.key,custom:y.custom,...g})}:y;(s=this[wn])===null||s===void 0||s.forEach((g,m)=>d[m]=f(g,m,d[m])),(l=this[Vy])===null||l===void 0||l.forEach((g,m)=>{var y;return d[m]=(y=d[m])===null||y===void 0?void 0:y.map(v=>f(g,m,v))})}updateI18nProperties(a){var s;(s=this[Wy])===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,nO([h({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}),Ga=class extends ut(D){},Ka=class extends ut(bt){}});var Md,aO,jy=u(()=>{"use strict";Wa();Md=class{fromAttribute(e){if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t.map(o=>typeof o=="string"?Ri.fromAttribute(o):o):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},aO=new Md});var Ai,qa=u(()=>{"use strict";Rn();O();Wa();jy();Ai=(r,e)=>(t,o)=>{var n;t.constructor.createProperty(o,{type:Object,hasChanged:gt,converter:Ri,...e}),t[wn]=(n=t[wn])!==null&&n!==void 0?n:new Map,t[wn].set(o,r??{})}});var ar,Gy=u(()=>{"use strict";Wt();ar=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:wi}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 Ky=u(()=>{"use strict";Rn()});var qy,Fd=u(()=>{"use strict";_();qy=R`
345
+ `});var Zy=u(()=>{"use strict"});var An,jt,Bd=u(()=>{"use strict";_();K();O();Fd();Rn();Wt();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},jt=class extends Ka{constructor(){super(),this.editorMode=!1,this.addStore(z)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":T:b`
346
346
  <span class="ft-i18n">
347
347
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
348
348
  </span>
349
- `}update(e){var t;super.update(e),["context","key","defaultMessage"].some(o=>e.has(o))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(t=this.defaultMessage)!==null&&t!==void 0?t:""})}};jt.elementDefinitions={};jt.styles=Yy;An([fe()],jt.prototype,"editorMode",void 0);An([h()],jt.prototype,"context",void 0);An([h()],jt.prototype,"key",void 0);An([ue([])],jt.prototype,"args",void 0);An([h()],jt.prototype,"defaultMessage",void 0)});var Jy,eb=u(()=>{"use strict";Ud();Jy={"ft-i18n":jt}});var tb=u(()=>{"use strict";O();eb();U(Jy)});var Nt=u(()=>{"use strict";Zy();Rn();Qy();Bd();Xy();Ud();tb()});var Gt,Ie,zd=u(()=>{"use strict";_();K();O();_e();gd();pa();Za();Nt();Gt=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},Ie=class extends Ka{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new ae,this.revealDebouncer=new ae,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut(t)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,t;return b`
349
+ `}update(e){var t;super.update(e),["context","key","defaultMessage"].some(o=>e.has(o))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(t=this.defaultMessage)!==null&&t!==void 0?t:""})}};jt.elementDefinitions={};jt.styles=qy;An([fe()],jt.prototype,"editorMode",void 0);An([h()],jt.prototype,"context",void 0);An([h()],jt.prototype,"key",void 0);An([ue([])],jt.prototype,"args",void 0);An([h()],jt.prototype,"defaultMessage",void 0)});var Qy,Yy=u(()=>{"use strict";Bd();Qy={"ft-i18n":jt}});var Xy=u(()=>{"use strict";O();Yy();U(Qy)});var Nt=u(()=>{"use strict";Gy();Rn();Ky();Fd();Zy();Bd();Xy()});var Gt,Ie,Ud=u(()=>{"use strict";_();K();O();_e();md();pa();qa();Nt();Gt=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},Ie=class extends Ga{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new ae,this.revealDebouncer=new ae,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut(t)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,t;return b`
350
350
  <div part="container"
351
351
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
352
352
  <slot part="slot"></slot>
@@ -361,7 +361,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
361
361
  </div>
362
362
  </div>
363
363
  </div>
364
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var t,o;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(t=this.tooltip)===null||t===void 0||t.showPopover()):(o=this.tooltip)===null||o===void 0||o.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(t=>e.has(t))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,t){let o=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(t),this.text=n,this.manual=o}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(t=>t.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Pl(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:t})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${t}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${S.transitionDuration}, left ${S.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return Ys(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};Ie.elementDefinitions={"ft-typography":ne};Ie.styles=uy;Gt([Ai()],Ie.prototype,"text",void 0);Gt([h({type:Boolean})],Ie.prototype,"manual",void 0);Gt([h({type:Boolean})],Ie.prototype,"inline",void 0);Gt([Tt()],Ie.prototype,"delay",void 0);Gt([h()],Ie.prototype,"position",void 0);Gt([ue([])],Ie.prototype,"ignoreMatchingElements",void 0);Gt([Hs()],Ie.prototype,"slotNodes",void 0);Gt([F(".ft-tooltip--container")],Ie.prototype,"container",void 0);Gt([F(".ft-tooltip")],Ie.prototype,"tooltip",void 0);Gt([F(".ft-tooltip--content")],Ie.prototype,"tooltipContent",void 0);Gt([I()],Ie.prototype,"visible",void 0)});var rb=u(()=>{"use strict"});var ob,ib=u(()=>{"use strict";zd();ob={"ft-tooltip":Ie}});var nb=u(()=>{"use strict";O();ib();U(ob)});var Hd=u(()=>{"use strict";zd();gd();rb();nb()});var nt,ab,Li=u(()=>{"use strict";_();O();nt={size:i.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:i.extend("--ft-icon-fluid-topics-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:i.extend("--ft-icon-file-format-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:i.extend("--ft-icon-material-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:i.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ab=[R`
364
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var t,o;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(t=this.tooltip)===null||t===void 0||t.showPopover()):(o=this.tooltip)===null||o===void 0||o.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(t=>e.has(t))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,t){let o=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(t),this.text=n,this.manual=o}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(t=>t.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Il(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:t})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${t}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${S.transitionDuration}, left ${S.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return Qs(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};Ie.elementDefinitions={"ft-typography":ne};Ie.styles=ly;Gt([Ai()],Ie.prototype,"text",void 0);Gt([h({type:Boolean})],Ie.prototype,"manual",void 0);Gt([h({type:Boolean})],Ie.prototype,"inline",void 0);Gt([Tt()],Ie.prototype,"delay",void 0);Gt([h()],Ie.prototype,"position",void 0);Gt([ue([])],Ie.prototype,"ignoreMatchingElements",void 0);Gt([zs()],Ie.prototype,"slotNodes",void 0);Gt([F(".ft-tooltip--container")],Ie.prototype,"container",void 0);Gt([F(".ft-tooltip")],Ie.prototype,"tooltip",void 0);Gt([F(".ft-tooltip--content")],Ie.prototype,"tooltipContent",void 0);Gt([I()],Ie.prototype,"visible",void 0)});var Jy=u(()=>{"use strict"});var eb,tb=u(()=>{"use strict";Ud();eb={"ft-tooltip":Ie}});var rb=u(()=>{"use strict";O();tb();U(eb)});var zd=u(()=>{"use strict";Ud();md();Jy();rb()});var nt,ob,Li=u(()=>{"use strict";_();O();nt={size:i.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:i.extend("--ft-icon-fluid-topics-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:i.extend("--ft-icon-file-format-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:i.extend("--ft-icon-material-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:i.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ob=[R`
365
365
  :host, i.ft-icon {
366
366
  display: inline-flex;
367
367
  align-items: center;
@@ -409,12 +409,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
409
409
  .ft-icon--material {
410
410
  font-family: ${nt.materialFontFamily}, "Material Icons", sans-serif;
411
411
  }
412
- `,yo]});var at,Vd=u(()=>{"use strict";(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(at||(at={}))});function Qa(r,e){var t,o,n,a;r=(r??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((t=cO.get(r))!==null&&t!==void 0?t:r)+"/").split("/");return(a=(n=(o=Wd.get(l))!==null&&o!==void 0?o:Wd.get(e))!==null&&n!==void 0?n:Wd.get(s))!==null&&a!==void 0?a:N.UNKNOWN}var Pe,N,Wd,cO,Y$,jd=u(()=>{"use strict";(function(r){r.ADD_TO_PBK="&#xe800;",r.ALERT="&#xe801;",r.ADD_ALERT="&#xe802;",r.BACK_TO_SEARCH="&#xe803;",r.ADD_BOOKMARK="&#xe804;",r.BOOKMARK="&#xe805;",r.BOOKS="&#xe806;",r.MENU="&#xe807;",r.DOWNLOAD="&#xe808;",r.EDIT="&#xe809;",r.FEEDBACK="&#xe80a;",r.HOME="&#xe80b;",r.MODIFY_PBK="&#xe80c;",r.SCHEDULED="&#xe80d;",r.SEARCH="&#xe80e;",r.EXPORT="&#xe80f;",r.TOC="&#xe810;",r.WRITE_UGC="&#xe811;",r.TRASH="&#xe812;",r.USER="&#xe813;",r.EXTLINK="&#xe814;",r.CALENDAR="&#xe815;",r.OFFLINE="&#xe816;",r.BOOK="&#xe817;",r.DOWNLOAD_PLAIN="&#xe818;",r.CHECK="&#xe819;",r.STAR_PLAIN="&#xe900;",r.TOPICS="&#xe901;",r.DISC="&#xe902;",r.CIRCLE="&#xe903;",r.SHARED="&#xe904;",r.SORT_UNSORTED="&#xe905;",r.SORT_UP="&#xe906;",r.SORT_DOWN="&#xe907;",r.WORKING="&#xe908;",r.CLOSE="&#xe909;",r.ZOOM_OUT="&#xe90a;",r.ZOOM_IN="&#xe90b;",r.ZOOM_REALSIZE="&#xe90c;",r.ZOOM_FULLSCREEN="&#xe90d;",r.ADMIN_RESTRICTED="&#xe90e;",r.ADMIN="&#xe90f;",r.ADMIN_KHUB="&#xe910;",r.ADMIN_THEME="&#xe911;",r.ADMIN_USERS="&#xe912;",r.WARNING="&#xe913;",r.CONTEXT="&#xe914;",r.SEARCH_HOME="&#xe915;",r.STEPS="&#xe916;",r.ICON_EXPAND="&#xe917;",r.ICON_COLLAPSE="&#xe918;",r.INFO="&#xe919;",r.MINUS_PLAIN="&#xe91a;",r.PLUS_PLAIN="&#xe91b;",r.FACET_HAS_DESCENDANT="&#xe91c;",r.TRIANGLE_BOTTOM="&#xe91d;",r.TRIANGLE_LEFT="&#xe91e;",r.TRIANGLE_RIGHT="&#xe91f;",r.TRIANGLE_TOP="&#xe920;",r.THIN_ARROW="&#xe921;",r.SIGN_IN="&#xe922;",r.LOGOUT="&#xe923;",r.TRANSLATE="&#xe924;",r.CLOSE_PLAIN="&#xe925;",r.CHECK_PLAIN="&#xe926;",r.ARTICLE="&#xe927;",r.COLUMNS="&#xe928;",r.ANALYTICS="&#xe929;",r.COLLECTIONS="&#xe92a;",r.ARROW_DOWN="&#xe92b;",r.ARROW_LEFT="&#xe92c;",r.ARROW_RIGHT="&#xe92d;",r.ARROW_UP="&#xe92e;",r.SEARCH_IN_PUBLICATION="&#xe92f;",r.COPY_TO_CLIPBOARD="&#xe930;",r.SHARED_PBK="&#xe931;",r.ATTACHMENTS="&#xe932;",r.STRIPE_ARROW_LEFT="&#xe933;",r.STRIPE_ARROW_RIGHT="&#xe934;",r.FILTERS="&#xe935;",r.DOT="&#xe936;",r.MINUS="&#xe937;",r.PLUS="&#xe938;",r.MAILS_AND_NOTIFICATIONS="&#xe939;",r.SAVE="&#xe93a;",r.LOCKER="&#xe93b;",r.ADMIN_INTEGRATION="&#xe93c;",r.SYNC="&#xe93d;",r.TAG="&#xe93e;",r.BOOK_PLAIN="&#xe93f;",r.UPLOAD="&#xe940;",r.ONLINE="&#xe941;",r.TAG_PLAIN="&#xe942;",r.ACCOUNT_SETTINGS="&#xe943;",r.PRINT="&#xe944;",r.DEFAULT_ROLES="&#xe945;",r.SHORTCUT_MENU="&#xe946;",r.RELATIVES_PLAIN="&#xe947;",r.RELATIVES="&#xe948;",r.PAUSE="&#xe949;",r.PLAY="&#xe94a;",r.ADMIN_PORTAL="&#xe94b;",r.STAR="&#xe94c;",r.THUMBS_DOWN="&#xe94d;",r.THUMBS_DOWN_PLAIN="&#xe94e;",r.THUMBS_UP="&#xe94f;",r.THUMBS_UP_PLAIN="&#xe950;",r.FEEDBACK_PLAIN="&#xe951;",r.RATE_PLAIN="&#xe952;",r.RATE="&#xe953;",r.OFFLINE_SETTINGS="&#xe954;",r.MY_COLLECTIONS="&#xe955;",r.THIN_ARROW_LEFT="&#xe956;",r.THIN_ARROW_RIGHT="&#xe957;",r.RESET="&#xe958;",r.MY_LIBRARY="&#xe959;",r.UNSTRUCTURED_DOC="&#xe95a;",r.CONTEXTUAL="&#xe95b;",r.THIN_ARROW_UP="&#xe95c;",r.ARROW_RIGHT_TO_LINE="&#xe95d;",r.DESKTOP="&#xe95e;",r.TABLET_LANDSCAPE="&#xe95f;",r.TABLET_PORTRAIT="&#xe960;",r.MOBILE_LANDSCAPE="&#xe961;",r.MOBILE_PORTRAIT="&#xe962;",r.DIAGRAM_SUNBURST="&#xe963;",r.DIAGRAM_SANKEY="&#xe964;",r.COMMENT_QUESTION="&#xe965;",r.COMMENT_QUESTION_PLAIN="&#xe966;",r.MESSAGE_BOT="&#xe967;",r.CHART_SIMPLE="&#xe968;",r.BARS_PROGRESS="&#xe969;",r.BOOK_OPEN_GEAR="&#xe96a;",r.BOOK_OPEN_GEAR_SLASH="&#xe96b;",r.LINE_CHART="&#xe96c;",r.STACKED_CHART="&#xe96d;",r.CHART_BAR_STACKED="&#xe96e;",r.CHART_BAR_GROUPED="&#xe96f;",r.EYE_SLASH="&#xe970;",r.X_MARK="&#xe971;",r.EXPAND_WIDE="&#xe972;",r.PIP="&#xe973;",r.PIP_WIDE="&#xe974;",r.LIFE_RING="&#xe975;",r.GLOBE="&#xe976;",r.PIGGY_BANK="&#xe977;",r.EXTLINK_LIGHT="&#xe978;",r.CLONE="&#xe979;",r.CLONE_LINK_SIMPLE="&#xe97a;",r.CHART_BAR_NORMALIZED="&#xe97b;",r.CONSUMER="&#xe97c;",r.OCTAGON_XMARK="&#xe97d;",r.HOURGLASS_HALF="&#xe97e;",r.CLOCK="&#xe97f;",r.CLOCK_THREE="&#xe97f;",r.CALENDAR_DAY="&#xe980;",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",r.WAND_MAGIC_SPARKLES="&#xe982;",r.PAPER_PLANE="&#xe983;",r.CIRCLE_STOP="&#xe984;",r.ARROW_ROTATE_RIGHT="&#xe985;",r.ARROWS_ROTATE="&#xe986;",r.ALIGN_RIGHT="&#xe987;",r.FORMAT_CLEAR="&#xe988;",r.ALIGN_CENTER="&#xe989;",r.ALIGN_LEFT="&#xe98a;",r.PALETTE="&#xe98b;",r.BOLD="&#xe98c;",r.ITALIC="&#xe98d;",r.UNDERLINE="&#xe98e;",r.STRIKETHROUGH="&#xe98f;",r.LINK_SIMPLE_SLASH="&#xe990;",r.LINK_SIMPLE="&#xe991;",r.ROUTE="&#xe992;",r.CIRCLE_USER_SLASH="&#xe993;",r.CIRCLE_USER_CHECK="&#xe994;",r.LIST_MAGNIFYING_GLASS="&#xe995;",r.MEDAL="&#xe996;",r.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",r.ARROW_TURN_DOWN_RIGHT="&#xe998;",r.FLASK="&#xe999;",r.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",r.HOURGLASS_END="&#xe99b;",r.CIRCLE_QUESTION="&#xe99c;",r.GRIP_LINES_SOLID="&#xe99d;",r.TRANSLATE_SPARKLE_SOLID="&#xe99e;",r.CODE="&#xe99f;",r.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",r.PAPER_PLANE_SLASH="&#xe9a1;",r.COMPRESS="&#xe9a2;",r.EXPAND="&#xe9a3;",r.ARROW_ROTATE_LEFT="&#xe9a4;",r.MOBILE_SMALL="&#xe9a5;",r.SPARKLES="&#xe9a6;",r.HAND_SOLID="&#xe9a7;",r.CLOCK_SOLID="&#xe9a8;",r.CONTEXT_MENU_CURSOR="&#xe9a9;",r.LANGUAGE_SLASH="&#xe9aa;",r.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",r.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",r.BOOKMARK_SLASH="&#xe9ad;",r.CIRCLE_PAUSE="&#xe9ae;",r.CIRCLE_PLAY="&#xe9af;",r.CIRCLE_STOP_PLAIN="&#xe9b0;",r.CIRCLE_ARROW_DOWN="&#xe9b1;",r.SHARE_NODES="&#xe9b2;",r.BELL="&#xe9b3;",r.BELL_SLASH="&#xe9b4;",r.FILE="&#xe9b5;",r.HAND="&#xe9b6;",r.SQUARE_INFO_SOLID="&#xe9b7;",r.FILE_CODE="&#xe9b8;",r.BOX_CODE="&#xe9b9;",r.TOPICS_SOLID="&#xe9ba;",r.PHOTO_FILM="&#xe9bb;",r.HYPHEN_SOLID="&#xe9bc;",r.CROSSHAIRS="&#xe9bd;",r.PERSON_CHALKBOARD="&#xe9be;",r.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",r.BOOK_OPEN_COVER="&#xe9c0;",r.LIGHTBULB="&#xe9c1;",r.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",r.CHART_LINE_USER="&#xe9c3;",r.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",r.EYE="&#xf06e;",r.SHARE="&#xe80f1;"})(Pe||(Pe={}));(function(r){r.UNKNOWN="&#xe90a;",r.ABW="&#xe900;",r.AUDIO="&#xe901;",r.AVI="&#xe902;",r.CHM="&#xe904;",r.CODE="&#xe905;",r.CSV="&#xe903;",r.DITA="&#xe906;",r.EPUB="&#xe907;",r.EXCEL="&#xe908;",r.FLAC="&#xe909;",r.GIF="&#xe90b;",r.GZIP="&#xe90c;",r.HTML="&#xe90d;",r.IMAGE="&#xe90e;",r.JPEG="&#xe90f;",r.JSON="&#xe910;",r.M4A="&#xe911;",r.MOV="&#xe912;",r.MP3="&#xe913;",r.MP4="&#xe914;",r.OGG="&#xe915;",r.PDF="&#xe916;",r.PNG="&#xe917;",r.POWERPOINT="&#xe918;",r.RAR="&#xe91a;",r.STP="&#xe91b;",r.TEXT="&#xe91c;",r.VIDEO="&#xe91e;",r.WAV="&#xe91f;",r.WMA="&#xe920;",r.WORD="&#xe921;",r.XML="&#xe922;",r.YAML="&#xe919;",r.ZIP="&#xe923;"})(N||(N={}));Wd=new Map([...["abw"].map(r=>[r,N.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(r=>[r,N.AUDIO]),...["avi"].map(r=>[r,N.AVI]),...["chm","xhs"].map(r=>[r,N.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(r=>[r,N.CODE]),...["csv"].map(r=>[r,N.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,N.DITA]),...["epub"].map(r=>[r,N.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,N.EXCEL]),...["flac"].map(r=>[r,N.FLAC]),...["gif"].map(r=>[r,N.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,N.GZIP]),...["html","htm","xhtml"].map(r=>[r,N.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(r=>[r,N.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,N.JPEG]),...["json"].map(r=>[r,N.JSON]),...["m4a","m4p"].map(r=>[r,N.M4A]),...["mov","qt"].map(r=>[r,N.MOV]),...["mp3"].map(r=>[r,N.MP3]),...["mp4","m4v"].map(r=>[r,N.MP4]),...["ogg","oga"].map(r=>[r,N.OGG]),...["pdf","ps"].map(r=>[r,N.PDF]),...["png"].map(r=>[r,N.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,N.POWERPOINT]),...["rar"].map(r=>[r,N.RAR]),...["stp"].map(r=>[r,N.STP]),...["txt","rtf","md","mdown"].map(r=>[r,N.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(r=>[r,N.VIDEO]),...["wav"].map(r=>[r,N.WAV]),...["wma"].map(r=>[r,N.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,N.WORD]),...["xml","xsl","rdf"].map(r=>[r,N.XML]),...["yaml","yml","x-yaml"].map(r=>[r,N.YAML]),...["zip"].map(r=>[r,N.ZIP])]),cO=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);Y$={[N.ABW]:"#91ABC6",[N.AUDIO]:"#1795E3",[N.AVI]:"#E63324",[N.CHM]:"#71C3EB",[N.CODE]:"#71C3EB",[N.CSV]:"#1F7345",[N.DITA]:"#71C3EB",[N.EPUB]:"#85B926",[N.EXCEL]:"#1F7345",[N.FLAC]:"#1795E3",[N.GIF]:"#59B031",[N.GZIP]:"#F8AB36",[N.HTML]:"#71C3EB",[N.IMAGE]:"#59B031",[N.JPEG]:"#59B031",[N.JSON]:"#71C3EB",[N.M4A]:"#1795E3",[N.MOV]:"#E63324",[N.MP3]:"#1795E3",[N.MP4]:"#E63324",[N.OGG]:"#1795E3",[N.PDF]:"#E44948",[N.PNG]:"#59B031",[N.POWERPOINT]:"#B54A2B",[N.RAR]:"#F8AB36",[N.STP]:"#3764B1",[N.TEXT]:"#3162AB",[N.UNKNOWN]:"#999999",[N.VIDEO]:"#E63324",[N.WAV]:"#1795E3",[N.WMA]:"#1795E3",[N.WORD]:"#3162AB",[N.XML]:"#71C3EB",[N.YAML]:"#71C3EB",[N.ZIP]:"#F8AB36"}});var Ln,Se,Gd=u(()=>{"use strict";_();K();O();Ki();jd();Li();Vd();Ln=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},Se=class extends D{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=T}render(){let e=this.variant&&Object.values(at).includes(this.variant)?this.variant:at.fluid_topics,t=e!==at.material||!!this.value;return b`
412
+ `,yo]});var at,Hd=u(()=>{"use strict";(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(at||(at={}))});function Za(r,e){var t,o,n,a;r=(r??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((t=sO.get(r))!==null&&t!==void 0?t:r)+"/").split("/");return(a=(n=(o=Vd.get(l))!==null&&o!==void 0?o:Vd.get(e))!==null&&n!==void 0?n:Vd.get(s))!==null&&a!==void 0?a:N.UNKNOWN}var Pe,N,Vd,sO,Z$,Wd=u(()=>{"use strict";(function(r){r.ADD_TO_PBK="&#xe800;",r.ALERT="&#xe801;",r.ADD_ALERT="&#xe802;",r.BACK_TO_SEARCH="&#xe803;",r.ADD_BOOKMARK="&#xe804;",r.BOOKMARK="&#xe805;",r.BOOKS="&#xe806;",r.MENU="&#xe807;",r.DOWNLOAD="&#xe808;",r.EDIT="&#xe809;",r.FEEDBACK="&#xe80a;",r.HOME="&#xe80b;",r.MODIFY_PBK="&#xe80c;",r.SCHEDULED="&#xe80d;",r.SEARCH="&#xe80e;",r.EXPORT="&#xe80f;",r.TOC="&#xe810;",r.WRITE_UGC="&#xe811;",r.TRASH="&#xe812;",r.USER="&#xe813;",r.EXTLINK="&#xe814;",r.CALENDAR="&#xe815;",r.OFFLINE="&#xe816;",r.BOOK="&#xe817;",r.DOWNLOAD_PLAIN="&#xe818;",r.CHECK="&#xe819;",r.STAR_PLAIN="&#xe900;",r.TOPICS="&#xe901;",r.DISC="&#xe902;",r.CIRCLE="&#xe903;",r.SHARED="&#xe904;",r.SORT_UNSORTED="&#xe905;",r.SORT_UP="&#xe906;",r.SORT_DOWN="&#xe907;",r.WORKING="&#xe908;",r.CLOSE="&#xe909;",r.ZOOM_OUT="&#xe90a;",r.ZOOM_IN="&#xe90b;",r.ZOOM_REALSIZE="&#xe90c;",r.ZOOM_FULLSCREEN="&#xe90d;",r.ADMIN_RESTRICTED="&#xe90e;",r.ADMIN="&#xe90f;",r.ADMIN_KHUB="&#xe910;",r.ADMIN_THEME="&#xe911;",r.ADMIN_USERS="&#xe912;",r.WARNING="&#xe913;",r.CONTEXT="&#xe914;",r.SEARCH_HOME="&#xe915;",r.STEPS="&#xe916;",r.ICON_EXPAND="&#xe917;",r.ICON_COLLAPSE="&#xe918;",r.INFO="&#xe919;",r.MINUS_PLAIN="&#xe91a;",r.PLUS_PLAIN="&#xe91b;",r.FACET_HAS_DESCENDANT="&#xe91c;",r.TRIANGLE_BOTTOM="&#xe91d;",r.TRIANGLE_LEFT="&#xe91e;",r.TRIANGLE_RIGHT="&#xe91f;",r.TRIANGLE_TOP="&#xe920;",r.THIN_ARROW="&#xe921;",r.SIGN_IN="&#xe922;",r.LOGOUT="&#xe923;",r.TRANSLATE="&#xe924;",r.CLOSE_PLAIN="&#xe925;",r.CHECK_PLAIN="&#xe926;",r.ARTICLE="&#xe927;",r.COLUMNS="&#xe928;",r.ANALYTICS="&#xe929;",r.COLLECTIONS="&#xe92a;",r.ARROW_DOWN="&#xe92b;",r.ARROW_LEFT="&#xe92c;",r.ARROW_RIGHT="&#xe92d;",r.ARROW_UP="&#xe92e;",r.SEARCH_IN_PUBLICATION="&#xe92f;",r.COPY_TO_CLIPBOARD="&#xe930;",r.SHARED_PBK="&#xe931;",r.ATTACHMENTS="&#xe932;",r.STRIPE_ARROW_LEFT="&#xe933;",r.STRIPE_ARROW_RIGHT="&#xe934;",r.FILTERS="&#xe935;",r.DOT="&#xe936;",r.MINUS="&#xe937;",r.PLUS="&#xe938;",r.MAILS_AND_NOTIFICATIONS="&#xe939;",r.SAVE="&#xe93a;",r.LOCKER="&#xe93b;",r.ADMIN_INTEGRATION="&#xe93c;",r.SYNC="&#xe93d;",r.TAG="&#xe93e;",r.BOOK_PLAIN="&#xe93f;",r.UPLOAD="&#xe940;",r.ONLINE="&#xe941;",r.TAG_PLAIN="&#xe942;",r.ACCOUNT_SETTINGS="&#xe943;",r.PRINT="&#xe944;",r.DEFAULT_ROLES="&#xe945;",r.SHORTCUT_MENU="&#xe946;",r.RELATIVES_PLAIN="&#xe947;",r.RELATIVES="&#xe948;",r.PAUSE="&#xe949;",r.PLAY="&#xe94a;",r.ADMIN_PORTAL="&#xe94b;",r.STAR="&#xe94c;",r.THUMBS_DOWN="&#xe94d;",r.THUMBS_DOWN_PLAIN="&#xe94e;",r.THUMBS_UP="&#xe94f;",r.THUMBS_UP_PLAIN="&#xe950;",r.FEEDBACK_PLAIN="&#xe951;",r.RATE_PLAIN="&#xe952;",r.RATE="&#xe953;",r.OFFLINE_SETTINGS="&#xe954;",r.MY_COLLECTIONS="&#xe955;",r.THIN_ARROW_LEFT="&#xe956;",r.THIN_ARROW_RIGHT="&#xe957;",r.RESET="&#xe958;",r.MY_LIBRARY="&#xe959;",r.UNSTRUCTURED_DOC="&#xe95a;",r.CONTEXTUAL="&#xe95b;",r.THIN_ARROW_UP="&#xe95c;",r.ARROW_RIGHT_TO_LINE="&#xe95d;",r.DESKTOP="&#xe95e;",r.TABLET_LANDSCAPE="&#xe95f;",r.TABLET_PORTRAIT="&#xe960;",r.MOBILE_LANDSCAPE="&#xe961;",r.MOBILE_PORTRAIT="&#xe962;",r.DIAGRAM_SUNBURST="&#xe963;",r.DIAGRAM_SANKEY="&#xe964;",r.COMMENT_QUESTION="&#xe965;",r.COMMENT_QUESTION_PLAIN="&#xe966;",r.MESSAGE_BOT="&#xe967;",r.CHART_SIMPLE="&#xe968;",r.BARS_PROGRESS="&#xe969;",r.BOOK_OPEN_GEAR="&#xe96a;",r.BOOK_OPEN_GEAR_SLASH="&#xe96b;",r.LINE_CHART="&#xe96c;",r.STACKED_CHART="&#xe96d;",r.CHART_BAR_STACKED="&#xe96e;",r.CHART_BAR_GROUPED="&#xe96f;",r.EYE_SLASH="&#xe970;",r.X_MARK="&#xe971;",r.EXPAND_WIDE="&#xe972;",r.PIP="&#xe973;",r.PIP_WIDE="&#xe974;",r.LIFE_RING="&#xe975;",r.GLOBE="&#xe976;",r.PIGGY_BANK="&#xe977;",r.EXTLINK_LIGHT="&#xe978;",r.CLONE="&#xe979;",r.CLONE_LINK_SIMPLE="&#xe97a;",r.CHART_BAR_NORMALIZED="&#xe97b;",r.CONSUMER="&#xe97c;",r.OCTAGON_XMARK="&#xe97d;",r.HOURGLASS_HALF="&#xe97e;",r.CLOCK="&#xe97f;",r.CLOCK_THREE="&#xe97f;",r.CALENDAR_DAY="&#xe980;",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",r.WAND_MAGIC_SPARKLES="&#xe982;",r.PAPER_PLANE="&#xe983;",r.CIRCLE_STOP="&#xe984;",r.ARROW_ROTATE_RIGHT="&#xe985;",r.ARROWS_ROTATE="&#xe986;",r.ALIGN_RIGHT="&#xe987;",r.FORMAT_CLEAR="&#xe988;",r.ALIGN_CENTER="&#xe989;",r.ALIGN_LEFT="&#xe98a;",r.PALETTE="&#xe98b;",r.BOLD="&#xe98c;",r.ITALIC="&#xe98d;",r.UNDERLINE="&#xe98e;",r.STRIKETHROUGH="&#xe98f;",r.LINK_SIMPLE_SLASH="&#xe990;",r.LINK_SIMPLE="&#xe991;",r.ROUTE="&#xe992;",r.CIRCLE_USER_SLASH="&#xe993;",r.CIRCLE_USER_CHECK="&#xe994;",r.LIST_MAGNIFYING_GLASS="&#xe995;",r.MEDAL="&#xe996;",r.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",r.ARROW_TURN_DOWN_RIGHT="&#xe998;",r.FLASK="&#xe999;",r.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",r.HOURGLASS_END="&#xe99b;",r.CIRCLE_QUESTION="&#xe99c;",r.GRIP_LINES_SOLID="&#xe99d;",r.TRANSLATE_SPARKLE_SOLID="&#xe99e;",r.CODE="&#xe99f;",r.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",r.PAPER_PLANE_SLASH="&#xe9a1;",r.COMPRESS="&#xe9a2;",r.EXPAND="&#xe9a3;",r.ARROW_ROTATE_LEFT="&#xe9a4;",r.MOBILE_SMALL="&#xe9a5;",r.SPARKLES="&#xe9a6;",r.HAND_SOLID="&#xe9a7;",r.CLOCK_SOLID="&#xe9a8;",r.CONTEXT_MENU_CURSOR="&#xe9a9;",r.LANGUAGE_SLASH="&#xe9aa;",r.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",r.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",r.BOOKMARK_SLASH="&#xe9ad;",r.CIRCLE_PAUSE="&#xe9ae;",r.CIRCLE_PLAY="&#xe9af;",r.CIRCLE_STOP_PLAIN="&#xe9b0;",r.CIRCLE_ARROW_DOWN="&#xe9b1;",r.SHARE_NODES="&#xe9b2;",r.BELL="&#xe9b3;",r.BELL_SLASH="&#xe9b4;",r.FILE="&#xe9b5;",r.HAND="&#xe9b6;",r.SQUARE_INFO_SOLID="&#xe9b7;",r.FILE_CODE="&#xe9b8;",r.BOX_CODE="&#xe9b9;",r.TOPICS_SOLID="&#xe9ba;",r.PHOTO_FILM="&#xe9bb;",r.HYPHEN_SOLID="&#xe9bc;",r.CROSSHAIRS="&#xe9bd;",r.PERSON_CHALKBOARD="&#xe9be;",r.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",r.BOOK_OPEN_COVER="&#xe9c0;",r.LIGHTBULB="&#xe9c1;",r.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",r.CHART_LINE_USER="&#xe9c3;",r.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",r.EYE="&#xf06e;",r.SHARE="&#xe80f1;"})(Pe||(Pe={}));(function(r){r.UNKNOWN="&#xe90a;",r.ABW="&#xe900;",r.AUDIO="&#xe901;",r.AVI="&#xe902;",r.CHM="&#xe904;",r.CODE="&#xe905;",r.CSV="&#xe903;",r.DITA="&#xe906;",r.EPUB="&#xe907;",r.EXCEL="&#xe908;",r.FLAC="&#xe909;",r.GIF="&#xe90b;",r.GZIP="&#xe90c;",r.HTML="&#xe90d;",r.IMAGE="&#xe90e;",r.JPEG="&#xe90f;",r.JSON="&#xe910;",r.M4A="&#xe911;",r.MOV="&#xe912;",r.MP3="&#xe913;",r.MP4="&#xe914;",r.OGG="&#xe915;",r.PDF="&#xe916;",r.PNG="&#xe917;",r.POWERPOINT="&#xe918;",r.RAR="&#xe91a;",r.STP="&#xe91b;",r.TEXT="&#xe91c;",r.VIDEO="&#xe91e;",r.WAV="&#xe91f;",r.WMA="&#xe920;",r.WORD="&#xe921;",r.XML="&#xe922;",r.YAML="&#xe919;",r.ZIP="&#xe923;"})(N||(N={}));Vd=new Map([...["abw"].map(r=>[r,N.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(r=>[r,N.AUDIO]),...["avi"].map(r=>[r,N.AVI]),...["chm","xhs"].map(r=>[r,N.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(r=>[r,N.CODE]),...["csv"].map(r=>[r,N.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,N.DITA]),...["epub"].map(r=>[r,N.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,N.EXCEL]),...["flac"].map(r=>[r,N.FLAC]),...["gif"].map(r=>[r,N.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,N.GZIP]),...["html","htm","xhtml"].map(r=>[r,N.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(r=>[r,N.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,N.JPEG]),...["json"].map(r=>[r,N.JSON]),...["m4a","m4p"].map(r=>[r,N.M4A]),...["mov","qt"].map(r=>[r,N.MOV]),...["mp3"].map(r=>[r,N.MP3]),...["mp4","m4v"].map(r=>[r,N.MP4]),...["ogg","oga"].map(r=>[r,N.OGG]),...["pdf","ps"].map(r=>[r,N.PDF]),...["png"].map(r=>[r,N.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,N.POWERPOINT]),...["rar"].map(r=>[r,N.RAR]),...["stp"].map(r=>[r,N.STP]),...["txt","rtf","md","mdown"].map(r=>[r,N.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(r=>[r,N.VIDEO]),...["wav"].map(r=>[r,N.WAV]),...["wma"].map(r=>[r,N.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,N.WORD]),...["xml","xsl","rdf"].map(r=>[r,N.XML]),...["yaml","yml","x-yaml"].map(r=>[r,N.YAML]),...["zip"].map(r=>[r,N.ZIP])]),sO=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);Z$={[N.ABW]:"#91ABC6",[N.AUDIO]:"#1795E3",[N.AVI]:"#E63324",[N.CHM]:"#71C3EB",[N.CODE]:"#71C3EB",[N.CSV]:"#1F7345",[N.DITA]:"#71C3EB",[N.EPUB]:"#85B926",[N.EXCEL]:"#1F7345",[N.FLAC]:"#1795E3",[N.GIF]:"#59B031",[N.GZIP]:"#F8AB36",[N.HTML]:"#71C3EB",[N.IMAGE]:"#59B031",[N.JPEG]:"#59B031",[N.JSON]:"#71C3EB",[N.M4A]:"#1795E3",[N.MOV]:"#E63324",[N.MP3]:"#1795E3",[N.MP4]:"#E63324",[N.OGG]:"#1795E3",[N.PDF]:"#E44948",[N.PNG]:"#59B031",[N.POWERPOINT]:"#B54A2B",[N.RAR]:"#F8AB36",[N.STP]:"#3764B1",[N.TEXT]:"#3162AB",[N.UNKNOWN]:"#999999",[N.VIDEO]:"#E63324",[N.WAV]:"#1795E3",[N.WMA]:"#1795E3",[N.WORD]:"#3162AB",[N.XML]:"#71C3EB",[N.YAML]:"#71C3EB",[N.ZIP]:"#F8AB36"}});var Ln,Se,jd=u(()=>{"use strict";_();K();O();Ki();Wd();Li();Hd();Ln=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},Se=class extends D{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=T}render(){let e=this.variant&&Object.values(at).includes(this.variant)?this.variant:at.fluid_topics,t=e!==at.material||!!this.value;return b`
413
413
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
414
414
  ${so(this.resolvedIcon)}
415
415
  <slot ?hidden=${t}></slot>
416
416
  </i>
417
- `}getTextContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&t!==void 0?t:""}update(e){super.update(e),["value","variant"].some(t=>e.has(t))&&this.resolveIcon()}resolveIcon(){var e,t;let o=this.value||this.getTextContent();switch(this.variant){case at.file_format:this.resolvedIcon=(e=N[o.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:o;break;case at.material:this.resolvedIcon=this.value||T;break;default:this.resolvedIcon=(t=Pe[o.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:o;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};Se.elementDefinitions={};Se.styles=ab;Ln([h()],Se.prototype,"variant",void 0);Ln([h()],Se.prototype,"value",void 0);Ln([h({reflect:!0,attribute:"aria-hidden"})],Se.prototype,"ariaHidden",void 0);Ln([I()],Se.prototype,"resolvedIcon",void 0);Ln([F("slot")],Se.prototype,"slottedContent",void 0)});var sb,lb=u(()=>{"use strict";Gd();sb={"ft-icon":Se}});var cb=u(()=>{"use strict";O();lb();U(sb)});var wr=u(()=>{"use strict";Li();Vd();Gd();jd();cb()});var Po,db,Ya=u(()=>{"use strict";_();O();Po={color:i.extend("--ft-loader-color","",S.colorPrimary),size:i.create("--ft-loader-size","","SIZE","80px")},db=R`
417
+ `}getTextContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&t!==void 0?t:""}update(e){super.update(e),["value","variant"].some(t=>e.has(t))&&this.resolveIcon()}resolveIcon(){var e,t;let o=this.value||this.getTextContent();switch(this.variant){case at.file_format:this.resolvedIcon=(e=N[o.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:o;break;case at.material:this.resolvedIcon=this.value||T;break;default:this.resolvedIcon=(t=Pe[o.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:o;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};Se.elementDefinitions={};Se.styles=ob;Ln([h()],Se.prototype,"variant",void 0);Ln([h()],Se.prototype,"value",void 0);Ln([h({reflect:!0,attribute:"aria-hidden"})],Se.prototype,"ariaHidden",void 0);Ln([I()],Se.prototype,"resolvedIcon",void 0);Ln([F("slot")],Se.prototype,"slottedContent",void 0)});var ib,nb=u(()=>{"use strict";jd();ib={"ft-icon":Se}});var ab=u(()=>{"use strict";O();nb();U(ib)});var wr=u(()=>{"use strict";Li();Hd();jd();Wd();ab()});var Po,sb,Qa=u(()=>{"use strict";_();O();Po={color:i.extend("--ft-loader-color","",S.colorPrimary),size:i.create("--ft-loader-size","","SIZE","80px")},sb=R`
418
418
  :host {
419
419
  line-height: 0;
420
420
  }
@@ -483,14 +483,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
483
483
  transform: translate(calc(0.35 * ${Po.size}), 0);
484
484
  }
485
485
  }
486
- `});var ub=u(()=>{"use strict"});var No,Kd=u(()=>{"use strict";_();O();Ya();No=class extends D{render(){return b`
486
+ `});var lb=u(()=>{"use strict"});var No,Gd=u(()=>{"use strict";_();O();Qa();No=class extends D{render(){return b`
487
487
  <div class="ft-loader">
488
488
  <div></div>
489
489
  <div></div>
490
490
  <div></div>
491
491
  <div></div>
492
492
  </div>
493
- `}};No.styles=db});var pb,fb=u(()=>{"use strict";Kd();pb={"ft-loader":No}});var hb=u(()=>{"use strict";O();fb();U(pb)});var mb=u(()=>{"use strict";Ya();ub();Kd();hb()});var qr,gb=u(()=>{At();qr=r=>r??T});var Xa=u(()=>{gb()});var yb,Q,bb,qd,Kt,vb,$o=u(()=>{"use strict";_();O();xr();Vt();Ya();Li();yb=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:yb,fontSize:i.extend("--ft-button-font-size","",nr.fontSize),iconSize:i.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:i.extend("--ft-button-ripple-color","",yb),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")},bb=i.extend("--ft-button-primary-color","",i.extend("--ft-button-color","",S.colorOnPrimary)),qd={backgroundColor:i.extend("--ft-button-primary-background-color","",i.extend("--ft-button-background-color","",S.colorPrimary)),color:bb,rippleColor:i.extend("--ft-button-primary-ripple-color","",bb)},Kt={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")},vb=R`
493
+ `}};No.styles=sb});var cb,db=u(()=>{"use strict";Gd();cb={"ft-loader":No}});var ub=u(()=>{"use strict";O();db();U(cb)});var pb=u(()=>{"use strict";Qa();lb();Gd();ub()});var qr,fb=u(()=>{At();qr=r=>r??T});var Ya=u(()=>{fb()});var hb,Q,mb,Kd,Kt,gb,$o=u(()=>{"use strict";_();O();xr();Vt();Qa();Li();hb=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:hb,fontSize:i.extend("--ft-button-font-size","",nr.fontSize),iconSize:i.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:i.extend("--ft-button-ripple-color","",hb),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")},mb=i.extend("--ft-button-primary-color","",i.extend("--ft-button-color","",S.colorOnPrimary)),Kd={backgroundColor:i.extend("--ft-button-primary-background-color","",i.extend("--ft-button-background-color","",S.colorPrimary)),color:mb,rippleColor:i.extend("--ft-button-primary-ripple-color","",mb)},Kt={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")},gb=R`
494
494
  :host {
495
495
  display: inline-block;
496
496
  max-width: 100%;
@@ -581,9 +581,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
581
581
  }
582
582
 
583
583
  .ft-button.ft-button--primary {
584
- background-color: ${qd.backgroundColor};
585
- --button-internal-color: ${qd.color};
586
- ${A(le.color,qd.rippleColor)};
584
+ background-color: ${Kd.backgroundColor};
585
+ --button-internal-color: ${Kd.color};
586
+ ${A(le.color,Kd.rippleColor)};
587
587
  }
588
588
 
589
589
  .ft-button--label {
@@ -628,7 +628,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
628
628
  ${A(Po.size,Q.iconSize)};
629
629
  ${A(Po.color,"var(--button-internal-color)")};
630
630
  }
631
- `});var Ae,j,Zd=u(()=>{"use strict";O();ot();Hd();wr();mb();_();tt();K();Xa();_e();$o();Ae=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},j=class extends Fc(D){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.label="",this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var t;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((t=this.form)===null||t===void 0||t.requestSubmit())})}render(){var e,t,o;let n=b`
631
+ `});var Ae,j,qd=u(()=>{"use strict";O();ot();zd();wr();pb();_();tt();K();Ya();_e();$o();Ae=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},j=class extends Mc(D){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.label="",this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",e=>{var t;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((t=this.form)===null||t===void 0||t.requestSubmit())})}render(){var e,t,o;let n=b`
632
632
  <ft-ripple part="ripple"
633
633
  ?disabled=${this.isDisabled()}
634
634
  ?activated=${this.activated}
@@ -670,7 +670,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
670
670
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
671
671
  `:b`
672
672
  <slot part="icon" name="icon"></slot>
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}};j.elementDefinitions={"ft-ripple":Z,"ft-tooltip":Ie,"ft-icon":Se,"ft-loader":No,"ft-typography":ne};j.styles=[Ql,vb,yo];Ae([h({type:Boolean})],j.prototype,"primary",void 0);Ae([h({type:Boolean})],j.prototype,"outlined",void 0);Ae([h({type:Boolean})],j.prototype,"dense",void 0);Ae([h({type:Boolean})],j.prototype,"round",void 0);Ae([h({type:Boolean})],j.prototype,"disabled",void 0);Ae([h()],j.prototype,"icon",void 0);Ae([h()],j.prototype,"iconVariant",void 0);Ae([h({type:Boolean})],j.prototype,"trailingIcon",void 0);Ae([h()],j.prototype,"label",void 0);Ae([h()],j.prototype,"type",void 0);Ae([h()],j.prototype,"href",void 0);Ae([h()],j.prototype,"target",void 0);Ae([h({type:Boolean})],j.prototype,"loading",void 0);Ae([h({attribute:"aria-label"})],j.prototype,"ariaLabel",void 0);Ae([h()],j.prototype,"ariaHasPopup",void 0);Ae([h({attribute:"aria-pressed"})],j.prototype,"ariaPressed",void 0);Ae([h()],j.prototype,"tooltipPosition",void 0);Ae([h({type:Boolean})],j.prototype,"hideTooltip",void 0);Ae([h({type:Boolean})],j.prototype,"forceTooltip",void 0);Ae([h({type:Boolean})],j.prototype,"activated",void 0);Ae([F(".ft-button")],j.prototype,"button",void 0);Ae([F(".ft-button--label slot")],j.prototype,"slottedContent",void 0);Ae([F("[part=tooltip]")],j.prototype,"tooltip",void 0)});var xb=u(()=>{"use strict"});var Sb,Cb=u(()=>{"use strict";Zd();Sb={"ft-button":j}});var Ob=u(()=>{"use strict";O();Cb();U(Sb)});var qt=u(()=>{"use strict";Zd();$o();xb();Ob()});var be,Qd,kn=u(()=>{"use strict";_();O();qt();be={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)},Qd=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}};j.elementDefinitions={"ft-ripple":Z,"ft-tooltip":Ie,"ft-icon":Se,"ft-loader":No,"ft-typography":ne};j.styles=[Zl,gb,yo];Ae([h({type:Boolean})],j.prototype,"primary",void 0);Ae([h({type:Boolean})],j.prototype,"outlined",void 0);Ae([h({type:Boolean})],j.prototype,"dense",void 0);Ae([h({type:Boolean})],j.prototype,"round",void 0);Ae([h({type:Boolean})],j.prototype,"disabled",void 0);Ae([h()],j.prototype,"icon",void 0);Ae([h()],j.prototype,"iconVariant",void 0);Ae([h({type:Boolean})],j.prototype,"trailingIcon",void 0);Ae([h()],j.prototype,"label",void 0);Ae([h()],j.prototype,"type",void 0);Ae([h()],j.prototype,"href",void 0);Ae([h()],j.prototype,"target",void 0);Ae([h({type:Boolean})],j.prototype,"loading",void 0);Ae([h({attribute:"aria-label"})],j.prototype,"ariaLabel",void 0);Ae([h()],j.prototype,"ariaHasPopup",void 0);Ae([h({attribute:"aria-pressed"})],j.prototype,"ariaPressed",void 0);Ae([h()],j.prototype,"tooltipPosition",void 0);Ae([h({type:Boolean})],j.prototype,"hideTooltip",void 0);Ae([h({type:Boolean})],j.prototype,"forceTooltip",void 0);Ae([h({type:Boolean})],j.prototype,"activated",void 0);Ae([F(".ft-button")],j.prototype,"button",void 0);Ae([F(".ft-button--label slot")],j.prototype,"slottedContent",void 0);Ae([F("[part=tooltip]")],j.prototype,"tooltip",void 0)});var yb=u(()=>{"use strict"});var bb,vb=u(()=>{"use strict";qd();bb={"ft-button":j}});var xb=u(()=>{"use strict";O();vb();U(bb)});var qt=u(()=>{"use strict";qd();$o();yb();xb()});var be,Zd,kn=u(()=>{"use strict";_();O();qt();be={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)},Zd=R`
674
674
  * {
675
675
  box-sizing: border-box;
676
676
  ${A(Q.color,be.buttonColor)};
@@ -744,15 +744,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
744
744
  height: 20px;
745
745
  border-right: 1px solid ${be.colorOutline};
746
746
  }
747
- `});var Ja,Yd,es=u(()=>{"use strict";_();O();Ja={highlightBackgroundColor:i.create("--ft-sra-highlight-background-color","","COLOR","transparent")},Yd=R`
747
+ `});var Xa,Qd,Ja=u(()=>{"use strict";_();O();Xa={highlightBackgroundColor:i.create("--ft-sra-highlight-background-color","","COLOR","transparent")},Qd=R`
748
748
  .kwicmatch {
749
749
  font-weight: 700;
750
- background-color: ${Ja.highlightBackgroundColor};
750
+ background-color: ${Xa.highlightBackgroundColor};
751
751
  }
752
- `});var ts,Xd,rs=u(()=>{"use strict";_();O();ts={highlightBackgroundColor:i.create("--ft-srt-highlight-background-color","","COLOR","transparent")},Xd=R`
752
+ `});var es,Yd,ts=u(()=>{"use strict";_();O();es={highlightBackgroundColor:i.create("--ft-srt-highlight-background-color","","COLOR","transparent")},Yd=R`
753
753
  .kwicmatch {
754
754
  font-weight: 700;
755
- background-color: ${ts.highlightBackgroundColor};
755
+ background-color: ${es.highlightBackgroundColor};
756
756
  }
757
757
 
758
758
  a {
@@ -763,11 +763,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
763
763
  a:focus {
764
764
  outline: revert;
765
765
  }
766
- `});function Lb(r){var e;return((e=_t(r))===null||e===void 0?void 0:e.openMode)===Ra.EXTERNAL}function is(r){return Lb(r)?_t(r).originUrl:sl(r)}function kb(r,e){return qr(e&&Lb(r)?"_blank":void 0)}var tu=u(()=>{"use strict";Vr();Xa();O()});var Ti,_i,ns,as,ss,Tn,_n=u(()=>{"use strict";Ti=class extends CustomEvent{constructor(e,t){super("ft-search-result-click",{detail:{result:e,rank:t},bubbles:!0,composed:!0})}},_i=class extends CustomEvent{constructor(e,t){super("ft-search-result-open-context-menu",{detail:{result:e,rank:t},bubbles:!0,composed:!0})}},ns=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},as=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},ss=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,ou,iu=u(()=>{"use strict";_();pO={},ou=R`
767
- `});var _b=u(()=>{"use strict"});var Zt,Ii=u(()=>{"use strict";(function(r){r.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Zt||(Zt={}))});var fO,Ib,Pb=u(()=>{"use strict";O();fO={setRequest:(r,e)=>{r.request=e.payload}},Ib=r=>vr.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 ls,Nb=u(()=>{"use strict";Wt();ls=class extends Ye{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 $b,Db,hO,Pi,nu=u(()=>{"use strict";Ii();O();Pb();Vr();Nb();_n();Wt();$b=r=>r.request.virtualField===Eo.TITLE_ONLY&&r.request.scope===fi.DOCUMENTS,Db=r=>r.request.keywordMatch==Hr.MANDATORY,hO=20,Pi=class r extends Co{static build(e,t){return new r(Ib(e.trim()||"context"),t)}constructor(e,t){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.onNewNeededRequest=o=>{o==Zt.CLUSTERED_SEARCH&&this.launchSearch(this.buildSearchRequest(this.store.getState()))},this.onStorageEvent=o=>{o.key===this.recentQueriesStorageKey?this.loadRecentQueries():o.key===this.taruqaConfigStorageKey&&this.loadTaruqaTemplate()},this.loadTaruqaTemplate=()=>{var o;let n;if(Aa(z.getState().session,Te.DEBUG_USER)){let a=JSON.parse((o=window.localStorage.getItem(this.taruqaConfigStorageKey))!==null&&o!==void 0?o:"{}");n=a.overrideEnabled?a.template:void 0}this.updateSearchRequest({taruqaTemplateOverride:n,changedByConfiguration:!0})},this.localesDebouncer=new ae(10),this.searchDebouncer=new ae(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 ae(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 ls,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.loadTaruqaTemplate(),this.launchSearch()}addListeners(){window.addEventListener("storage",this.onStorageEvent),z.addEventListener(Or.eventName,this.loadTaruqaTemplate)}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),z.removeEventListener(Or.eventName,this.loadTaruqaTemplate)}get recentQueriesStorageKey(){return z.getState().tenantId+"-ft-recent-queries"}get taruqaConfigStorageKey(){return z.getState().tenantId+"-taruqa-experiment-conf"}updateSearchRequest(e,t=!1){let o=mt(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.store.getState().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:hr(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 $b(this.store.getState())}get keywordMatch(){return Db(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(this.recentQueriesStorageKey))!==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(this.recentQueriesStorageKey,t),window.dispatchEvent(new StorageEvent("storage",{key:this.recentQueriesStorageKey,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(Zt.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 Xt||(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 Xt)&&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 Mb,su,Fb,au,mO,gO,$t,Do=u(()=>{"use strict";O();K();Ii();nu();Mb=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},su=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Fb=Symbol("registerInterval"),au=Symbol("registerAttempts"),mO=40,gO=we(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[au]=0,this.tryToRegisterToContext(),this[Fb]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[au]>mO?window.clearInterval(this[Fb]):(this[au]++,this.dispatchEvent(new su))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Mb([I()],e.prototype,"stateManager",void 0),Mb([I({hasChanged:gt})],e.prototype,"neededSearchRequests",void 0),e}),$t=class extends gO(bt){}});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 lu=u(()=>{"use strict"});var cs,Bb=u(()=>{"use strict";O();Vr();Wt();lu();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||!n)return;let a=this.store.getState().request;this.document==null?this.sendKhubSearchEvent(a,o,n):this.sendDocumentSearchEvent(a,o,n)},this.eventsService=t??new za,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}=z.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}=z.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.totalClustersCount},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.totalClustersCount},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==ir.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==ir.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 ir.MAP:return{id:e.map.mapId,title:e.map.title,type:zr.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case ir.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:zr.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case ir.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:zr.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case ir.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:zr.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case ir.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=_t(e))===null||t===void 0?void 0:t.originUrl}}});var Fe,ve,cu=u(()=>{"use strict";_();K();O();iu();Do();Wt();Fa();Bb();_n();Fe=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},ve=class extends bt{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=Pi.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(z)}render(){return b`
766
+ `});function wb(r){var e;return((e=_t(r))===null||e===void 0?void 0:e.openMode)===Ra.EXTERNAL}function os(r){return wb(r)?_t(r).originUrl:al(r)}function Rb(r,e){return qr(e&&wb(r)?"_blank":void 0)}var eu=u(()=>{"use strict";Vr();Ya();O()});var Ti,_i,is,ns,as,Tn,_n=u(()=>{"use strict";Ti=class extends CustomEvent{constructor(e,t){super("ft-search-result-click",{detail:{result:e,rank:t},bubbles:!0,composed:!0})}},_i=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,composed:!0,bubbles:!0})}},ns=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e,composed:!0,bubbles:!0})}},as=class extends CustomEvent{constructor(e,t,o){super("ft-search-results-change",{detail:{request:e,paging:t,spellcheck:o},composed:!0,bubbles:!0})}},Tn=class r extends Event{constructor(){super(r.eventName)}};Tn.eventName="search-context-clear-all-filters"});var dO,ru,ou=u(()=>{"use strict";_();dO={},ru=R`
767
+ `});var Lb=u(()=>{"use strict"});var Zt,Ii=u(()=>{"use strict";(function(r){r.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Zt||(Zt={}))});var uO,kb,Tb=u(()=>{"use strict";O();uO={setRequest:(r,e)=>{r.request=e.payload}},kb=r=>vr.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:uO})});var ss,_b=u(()=>{"use strict";Wt();ss=class extends Ye{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 Ib,Pb,pO,Pi,iu=u(()=>{"use strict";Ii();O();Tb();Vr();_b();_n();Wt();Ib=r=>r.request.virtualField===Eo.TITLE_ONLY&&r.request.scope===fi.DOCUMENTS,Pb=r=>r.request.keywordMatch==Hr.MANDATORY,pO=20,Pi=class r extends Co{static build(e,t){return new r(kb(e.trim()||"context"),t)}constructor(e,t){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.onNewNeededRequest=o=>{o==Zt.CLUSTERED_SEARCH&&this.launchSearch(this.buildSearchRequest(this.store.getState()))},this.onStorageEvent=o=>{o.key===this.recentQueriesStorageKey?this.loadRecentQueries():o.key===this.taruqaConfigStorageKey&&this.loadTaruqaTemplate()},this.loadTaruqaTemplate=()=>{var o;let n;if(Aa(z.getState().session,Te.DEBUG_USER)){let a=JSON.parse((o=window.localStorage.getItem(this.taruqaConfigStorageKey))!==null&&o!==void 0?o:"{}");n=a.overrideEnabled?a.template:void 0}this.updateSearchRequest({taruqaTemplateOverride:n,changedByConfiguration:!0})},this.localesDebouncer=new ae(10),this.searchDebouncer=new ae(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 ae(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.loadTaruqaTemplate(),this.launchSearch()}addListeners(){window.addEventListener("storage",this.onStorageEvent),z.addEventListener(Or.eventName,this.loadTaruqaTemplate)}removeListeners(){window.removeEventListener("storage",this.onStorageEvent),z.removeEventListener(Or.eventName,this.loadTaruqaTemplate)}get recentQueriesStorageKey(){return z.getState().tenantId+"-ft-recent-queries"}get taruqaConfigStorageKey(){return z.getState().tenantId+"-taruqa-experiment-conf"}updateSearchRequest(e,t=!1){let o=mt(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.store.getState().localesConfiguration)===null||o===void 0)&&o.searchLanguageSetsUiLanguage)&&e&&Sn.requestUiLocaleUpdate(e,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:hr(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 Ib(this.store.getState())}get keywordMatch(){return Pb(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(this.recentQueriesStorageKey))!==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,pO-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(this.recentQueriesStorageKey,t),window.dispatchEvent(new StorageEvent("storage",{key:this.recentQueriesStorageKey,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(Zt.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 Xt||(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 Xt)&&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 Nb,au,$b,nu,fO,hO,$t,Do=u(()=>{"use strict";O();K();Ii();iu();Nb=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=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},$b=Symbol("registerInterval"),nu=Symbol("registerAttempts"),fO=40,hO=we(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[nu]=0,this.tryToRegisterToContext(),this[$b]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[nu]>fO?window.clearInterval(this[$b]):(this[nu]++,this.dispatchEvent(new au))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Nb([I()],e.prototype,"stateManager",void 0),Nb([I({hasChanged:gt})],e.prototype,"neededSearchRequests",void 0),e}),$t=class extends hO(bt){}});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 su=u(()=>{"use strict"});var ls,Db=u(()=>{"use strict";O();Vr();Wt();su();ls=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||!n)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}=z.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}=z.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.totalClustersCount},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.totalClustersCount},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==ir.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==ir.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 ir.MAP:return{id:e.map.mapId,title:e.map.title,type:zr.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case ir.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:zr.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case ir.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:zr.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case ir.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:zr.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case ir.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=_t(e))===null||t===void 0?void 0:t.originUrl}}});var Fe,ve,lu=u(()=>{"use strict";_();K();O();ou();Do();Wt();Db();_n();Fe=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},ve=class extends bt{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=Pi.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 ls(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(z)}render(){return b`
768
768
  <slot @register-ft-search-component=${this.registerComponent} @ft-search-result-click=${this.onResultClicked}
769
769
  @ft-search-result-open-context-menu=${this.onResultContextMenuOpened}></slot>
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.addListeners()}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new as(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new ss(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 ns(e))}reloadSavedSearches(){Ed.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)}};ve.elementDefinitions={};ve.styles=ou;Fe([fe({store:z.name})],ve.prototype,"session",void 0);Fe([h()],ve.prototype,"query",void 0);Fe([h()],ve.prototype,"contentLocale",void 0);Fe([Tt()],ve.prototype,"pageSize",void 0);Fe([h({type:Boolean})],ve.prototype,"searchInDocumentTitlesOnly",void 0);Fe([h()],ve.prototype,"keywordMatch",void 0);Fe([h()],ve.prototype,"scope",void 0);Fe([h()],ve.prototype,"virtualField",void 0);Fe([h({type:Boolean})],ve.prototype,"ignoreEmptyQuery",void 0);Fe([fe({store:z.name})],ve.prototype,"openExternalDocumentInNewTab",void 0);Fe([ue([])],ve.prototype,"filters",void 0);Fe([h()],ve.prototype,"sortId",void 0);Fe([ue([])],ve.prototype,"sort",void 0);Fe([ue({})],ve.prototype,"otherQueryParams",void 0);Fe([fe({store:"search"})],ve.prototype,"request",void 0);Fe([fe({store:"search"})],ve.prototype,"paging",void 0);Fe([fe({store:"search",selector:r=>r.spellcheck})],ve.prototype,"spellcheckAutocorrect",void 0);Fe([fe({store:z.name,selector:r=>r.apiIntegrationIdentifier!==void 0&&r.apiIntegrationAppVersion!==void 0})],ve.prototype,"_appIntegrationInfoReady",void 0);Fe([h({attribute:!1})],ve.prototype,"searchServiceProvider",void 0)});var Ub,zb=u(()=>{"use strict";cu();Ub={"ft-search-context":ve}});var Hb=u(()=>{"use strict";O();zb();U(Ub)});var Vb={};q(Vb,{FtSearchContext:()=>ve,FtSearchContextCssVariables:()=>pO,FtSearchStateManager:()=>Pi,convertMetadataFilterToAnalyticsFacet:()=>Pn,getAnalyticsLastUpdate:()=>In,keywordMatchSelector:()=>Db,searchInDocumentTitlesOnlySelector:()=>$b,styles:()=>ou});var Wb=u(()=>{"use strict";iu();_b();cu();nu();lu();Hb()});var jb=u(()=>{"use strict"});var Rr,du=u(()=>{"use strict";Nt();Rr=ar.build("designedSearchInput")});var Dt,uu=u(()=>{"use strict";(function(r){r.S="S",r.M="M",r.L="L",r.XL="XL",r.XXL="XXL"})(Dt||(Dt={}))});var Gb,pu=u(()=>{"use strict";_();Gb=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.addListeners()}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),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))}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)}};ve.elementDefinitions={};ve.styles=ru;Fe([fe({store:z.name})],ve.prototype,"session",void 0);Fe([h()],ve.prototype,"query",void 0);Fe([h()],ve.prototype,"contentLocale",void 0);Fe([Tt()],ve.prototype,"pageSize",void 0);Fe([h({type:Boolean})],ve.prototype,"searchInDocumentTitlesOnly",void 0);Fe([h()],ve.prototype,"keywordMatch",void 0);Fe([h()],ve.prototype,"scope",void 0);Fe([h()],ve.prototype,"virtualField",void 0);Fe([h({type:Boolean})],ve.prototype,"ignoreEmptyQuery",void 0);Fe([fe({store:z.name})],ve.prototype,"openExternalDocumentInNewTab",void 0);Fe([ue([])],ve.prototype,"filters",void 0);Fe([h()],ve.prototype,"sortId",void 0);Fe([ue([])],ve.prototype,"sort",void 0);Fe([ue({})],ve.prototype,"otherQueryParams",void 0);Fe([fe({store:"search"})],ve.prototype,"request",void 0);Fe([fe({store:"search"})],ve.prototype,"paging",void 0);Fe([fe({store:"search",selector:r=>r.spellcheck})],ve.prototype,"spellcheckAutocorrect",void 0);Fe([fe({store:z.name,selector:r=>r.apiIntegrationIdentifier!==void 0&&r.apiIntegrationAppVersion!==void 0})],ve.prototype,"_appIntegrationInfoReady",void 0);Fe([h({attribute:!1})],ve.prototype,"searchServiceProvider",void 0)});var Mb,Fb=u(()=>{"use strict";lu();Mb={"ft-search-context":ve}});var Bb=u(()=>{"use strict";O();Fb();U(Mb)});var Ub={};q(Ub,{FtSearchContext:()=>ve,FtSearchContextCssVariables:()=>dO,FtSearchStateManager:()=>Pi,convertMetadataFilterToAnalyticsFacet:()=>Pn,getAnalyticsLastUpdate:()=>In,keywordMatchSelector:()=>Pb,searchInDocumentTitlesOnlySelector:()=>Ib,styles:()=>ru});var zb=u(()=>{"use strict";ou();Lb();lu();iu();su();Bb()});var Hb=u(()=>{"use strict"});var Rr,cu=u(()=>{"use strict";Nt();Rr=ar.build("designedSearchInput")});var Dt,du=u(()=>{"use strict";(function(r){r.S="S",r.M="M",r.L="L",r.XL="XL",r.XXL="XXL"})(Dt||(Dt={}))});var Vb,uu=u(()=>{"use strict";_();Vb=R`
771
771
  .ft-size-watcher--pixel {
772
772
  width: 0;
773
773
  height: 0;
@@ -786,11 +786,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
786
786
  .ft-size-watcher--local .ft-size-watcher--watcher {
787
787
  width: 100%;
788
788
  }
789
- `});var Nn,fu,St,hu=u(()=>{"use strict";_();K();O();uu();pu();Nn=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},fu=class extends CustomEvent{constructor(e,t){super("change",{detail:{size:e,category:t}})}},St=class extends D{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=Dt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new ae}render(){return b`
789
+ `});var Nn,pu,St,fu=u(()=>{"use strict";_();K();O();du();uu();Nn=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},pu=class extends CustomEvent{constructor(e,t){super("change",{detail:{size:e,category:t}})}},St=class extends D{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=Dt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new ae}render(){return b`
790
790
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
791
791
  <div class="ft-size-watcher--watcher"></div>
792
792
  </div>
793
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=Dt.S:this.size<976?this.category=Dt.M:this.size<1024?this.category=Dt.L:this.size<1440?this.category=Dt.XL:this.category=Dt.XXL,this.dispatchEvent(new fu(this.size,this.category)))},this.debounceTimeout)}};St.elementDefinitions={};St.styles=Gb;Nn([h({type:Number})],St.prototype,"debounceTimeout",void 0);Nn([h({type:Boolean})],St.prototype,"local",void 0);Nn([h({type:Number,reflect:!0})],St.prototype,"size",void 0);Nn([h({type:String,reflect:!0})],St.prototype,"category",void 0);Nn([F(".ft-size-watcher--watcher")],St.prototype,"watcher",void 0)});var Kb,qb=u(()=>{"use strict";hu();Kb={"ft-size-watcher":St}});var Zb=u(()=>{"use strict";O();qb();U(Kb)});var Qb=u(()=>{"use strict";hu();pu();uu();Zb()});function ds(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Yb(r){return ds(r).split("|").pop()}function Xb(r){return ds(r).split("|").join(" > ")}function Jb(r,e){return{label:r.label,selected:!e&&r.selected,subOptions:r.childNodes.map(t=>Jb(t,r.selected)),value:r.value}}function ev(r){return yt(r.options,e=>{var t;return(t=e.subOptions)!==null&&t!==void 0?t:[]}).filter(e=>e.selected).map(e=>e.label)}function mu(r){return{id:r.key,label:r.label,multivalued:r.multiSelectionable,options:r.rootNodes.map(e=>Jb(e,!1))}}function tv(r){return yt(r.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var gu=u(()=>{"use strict";O()});var $n,rv,yu=u(()=>{"use strict";_();O();$o();Vt();$n={buttonMoreColor:i.extend("--ft-filter-level-button-more-color","",S.colorOnSurface),borderRadiusM:i.external(S.borderRadiusM,"Design system"),colorOutline:i.external(S.colorOutline,"Design system"),colorOnSurface:i.external(S.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.external(S.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:i.external(S.colorOnSurfaceDisabled,"Design system"),colorPrimary:i.external(S.colorPrimary,"Design system"),colorOnPrimary:i.external(S.colorOnPrimary,"Design system"),fontFamily:i.external(Me.fontFamily,"Body2 typography"),fontSize:i.external(Me.fontSize,"Body2 typography"),fontWeight:i.external(Me.fontWeight,"Body2 typography"),letterSpacing:i.external(Me.letterSpacing,"Body2 typography"),lineHeight:i.external(Me.lineHeight,"Body2 typography"),textTransform:i.external(Me.textTransform,"Body2 typography")},rv=R`
793
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=Dt.S:this.size<976?this.category=Dt.M:this.size<1024?this.category=Dt.L:this.size<1440?this.category=Dt.XL:this.category=Dt.XXL,this.dispatchEvent(new pu(this.size,this.category)))},this.debounceTimeout)}};St.elementDefinitions={};St.styles=Vb;Nn([h({type:Number})],St.prototype,"debounceTimeout",void 0);Nn([h({type:Boolean})],St.prototype,"local",void 0);Nn([h({type:Number,reflect:!0})],St.prototype,"size",void 0);Nn([h({type:String,reflect:!0})],St.prototype,"category",void 0);Nn([F(".ft-size-watcher--watcher")],St.prototype,"watcher",void 0)});var Wb,jb=u(()=>{"use strict";fu();Wb={"ft-size-watcher":St}});var Gb=u(()=>{"use strict";O();jb();U(Wb)});var Kb=u(()=>{"use strict";fu();uu();du();Gb()});function cs(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function qb(r){return cs(r).split("|").pop()}function Zb(r){return cs(r).split("|").join(" > ")}function Qb(r,e){return{label:r.label,selected:!e&&r.selected,subOptions:r.childNodes.map(t=>Qb(t,r.selected)),value:r.value}}function Yb(r){return yt(r.options,e=>{var t;return(t=e.subOptions)!==null&&t!==void 0?t:[]}).filter(e=>e.selected).map(e=>e.label)}function hu(r){return{id:r.key,label:r.label,multivalued:r.multiSelectionable,options:r.rootNodes.map(e=>Qb(e,!1))}}function Xb(r){return yt(r.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var mu=u(()=>{"use strict";O()});var $n,Jb,gu=u(()=>{"use strict";_();O();$o();Vt();$n={buttonMoreColor:i.extend("--ft-filter-level-button-more-color","",S.colorOnSurface),borderRadiusM:i.external(S.borderRadiusM,"Design system"),colorOutline:i.external(S.colorOutline,"Design system"),colorOnSurface:i.external(S.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.external(S.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:i.external(S.colorOnSurfaceDisabled,"Design system"),colorPrimary:i.external(S.colorPrimary,"Design system"),colorOnPrimary:i.external(S.colorOnPrimary,"Design system"),fontFamily:i.external(Me.fontFamily,"Body2 typography"),fontSize:i.external(Me.fontSize,"Body2 typography"),fontWeight:i.external(Me.fontWeight,"Body2 typography"),letterSpacing:i.external(Me.letterSpacing,"Body2 typography"),lineHeight:i.external(Me.lineHeight,"Body2 typography"),textTransform:i.external(Me.textTransform,"Body2 typography")},Jb=R`
794
794
  .ft-filter-level--container {
795
795
  display: flex;
796
796
  flex-direction: column;
@@ -861,7 +861,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
861
861
  margin: 10px 0;
862
862
  color: ${$n.colorOnSurfaceMedium};
863
863
  }
864
- `});var Ct,ov,bu=u(()=>{"use strict";O();_();_e();ot();Ct={textColor:i.extend("--ft-checkbox-text-color","",S.colorOnSurfaceHigh),fontSize:i.extend("--ft-checkbox-font-size","",$.fontSize),activeColor:i.extend("--ft-checkbox-active-color","",S.colorPrimary),checkColor:i.extend("--ft-checkbox-check-color","",S.colorOnPrimary),borderColor:i.extend("--ft-checkbox-border-color","",S.colorOnSurfaceMedium),disabledColor:i.extend("--ft-checkbox-disabled-color","",S.colorOnSurfaceDisabled),errorColor:i.extend("--ft-checkbox-error-color","",S.colorError)},ov=R`
864
+ `});var Ct,ev,yu=u(()=>{"use strict";O();_();_e();ot();Ct={textColor:i.extend("--ft-checkbox-text-color","",S.colorOnSurfaceHigh),fontSize:i.extend("--ft-checkbox-font-size","",$.fontSize),activeColor:i.extend("--ft-checkbox-active-color","",S.colorPrimary),checkColor:i.extend("--ft-checkbox-check-color","",S.colorOnPrimary),borderColor:i.extend("--ft-checkbox-border-color","",S.colorOnSurfaceMedium),disabledColor:i.extend("--ft-checkbox-disabled-color","",S.colorOnSurfaceDisabled),errorColor:i.extend("--ft-checkbox-error-color","",S.colorError)},ev=R`
865
865
  * {
866
866
  box-sizing: border-box;
867
867
  }
@@ -954,7 +954,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
954
954
  }
955
955
  }
956
956
  }
957
- `});var Ar,vu,He,xu=u(()=>{"use strict";_();K();O();tt();ot();_e();bu();Ar=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},vu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},He=class extends D{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return b`
957
+ `});var Ar,bu,He,vu=u(()=>{"use strict";_();K();O();tt();ot();_e();yu();Ar=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},bu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},He=class extends D{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return b`
958
958
  <div class="ft-checkbox--box-container" part="checkbox-box-container">
959
959
  <ft-ripple part="checkbox-ripple"
960
960
  ?disabled=${this.disabled}
@@ -988,7 +988,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
988
988
  <path class="ft-checkbox--checkmark-path" fill="none"
989
989
  d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
990
990
  </svg>
991
- `}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new vu(this.checked))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),(t=this.ripple)===null||t===void 0||t.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};He.elementDefinitions={"ft-ripple":Z,"ft-typography":ne};He.styles=ov;Ar([h()],He.prototype,"name",void 0);Ar([h()],He.prototype,"value",void 0);Ar([h({type:Boolean,reflect:!0})],He.prototype,"checked",void 0);Ar([h({type:Boolean})],He.prototype,"indeterminate",void 0);Ar([h({type:Boolean})],He.prototype,"disabled",void 0);Ar([h({type:Boolean})],He.prototype,"error",void 0);Ar([F(".ft-checkbox")],He.prototype,"container",void 0);Ar([F("ft-ripple")],He.prototype,"ripple",void 0);Ar([F("input")],He.prototype,"input",void 0)});var iv=u(()=>{"use strict"});var nv,av=u(()=>{"use strict";xu();nv={"ft-checkbox":He}});var sv=u(()=>{"use strict";O();av();U(nv)});var lv=u(()=>{"use strict";xu();bu();iv();sv()});var Zr,cv,Su=u(()=>{"use strict";_();O();_e();Zr={textColor:i.extend("--ft-radio-text-color","",S.colorOnSurfaceHigh),fontSize:i.extend("--ft-radio-font-size","",$.fontSize),colorPrimary:i.external(S.colorPrimary,"Design system"),colorOnPrimary:i.external(S.colorOnPrimary,"Design system"),borderColor:i.extend("--ft-radio-border-color","",S.colorOnSurfaceMedium),colorOnSurfaceDisabled:i.external(S.colorOnSurfaceDisabled,"Design system")},cv=R`
991
+ `}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new bu(this.checked))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),(t=this.ripple)===null||t===void 0||t.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};He.elementDefinitions={"ft-ripple":Z,"ft-typography":ne};He.styles=ev;Ar([h()],He.prototype,"name",void 0);Ar([h()],He.prototype,"value",void 0);Ar([h({type:Boolean,reflect:!0})],He.prototype,"checked",void 0);Ar([h({type:Boolean})],He.prototype,"indeterminate",void 0);Ar([h({type:Boolean})],He.prototype,"disabled",void 0);Ar([h({type:Boolean})],He.prototype,"error",void 0);Ar([F(".ft-checkbox")],He.prototype,"container",void 0);Ar([F("ft-ripple")],He.prototype,"ripple",void 0);Ar([F("input")],He.prototype,"input",void 0)});var tv=u(()=>{"use strict"});var rv,ov=u(()=>{"use strict";vu();rv={"ft-checkbox":He}});var iv=u(()=>{"use strict";O();ov();U(rv)});var nv=u(()=>{"use strict";vu();yu();tv();iv()});var Zr,av,xu=u(()=>{"use strict";_();O();_e();Zr={textColor:i.extend("--ft-radio-text-color","",S.colorOnSurfaceHigh),fontSize:i.extend("--ft-radio-font-size","",$.fontSize),colorPrimary:i.external(S.colorPrimary,"Design system"),colorOnPrimary:i.external(S.colorOnPrimary,"Design system"),borderColor:i.extend("--ft-radio-border-color","",S.colorOnSurfaceMedium),colorOnSurfaceDisabled:i.external(S.colorOnSurfaceDisabled,"Design system")},av=R`
992
992
  * {
993
993
  box-sizing: border-box;
994
994
  }
@@ -1077,7 +1077,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1077
1077
  .ft-radio ft-typography {
1078
1078
  padding-right: 2px;
1079
1079
  }
1080
- `});var Qr,us,Be,Cu=u(()=>{"use strict";_();K();O();tt();ot();_e();Ia();Su();Qr=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},us=class extends CustomEvent{constructor(e,t){super("change",{detail:{value:e,checked:t},bubbles:!0,composed:!0})}},Be=class extends D{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return b`
1080
+ `});var Qr,ds,Be,Su=u(()=>{"use strict";_();K();O();tt();ot();_e();Ia();xu();Qr=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},ds=class extends CustomEvent{constructor(e,t){super("change",{detail:{value:e,checked:t},bubbles:!0,composed:!0})}},Be=class extends D{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return b`
1081
1081
  <div class="${ge(this.radioClasses)}"
1082
1082
  @click=${this.onClick}>
1083
1083
  <div class="ft-radio--box-container">
@@ -1103,7 +1103,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1103
1103
  </ft-typography>
1104
1104
  </label>
1105
1105
  </div>
1106
- `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new us(this.value,this.checked))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),(t=this.ripple)===null||t===void 0||t.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new us(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var t;return(t=this.ripple)===null||t===void 0?void 0:t.forceFocusUpdate()},0)}onClick(e){var t;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(t=this.input)===null||t===void 0||t.click())}};Be.elementDefinitions={"ft-ripple":Z,"ft-typography":ne};Be.styles=cv;Qr([h()],Be.prototype,"name",void 0);Qr([h()],Be.prototype,"value",void 0);Qr([h({type:Boolean,reflect:!0})],Be.prototype,"checked",void 0);Qr([h({attribute:"aria-checked",reflect:!0})],Be.prototype,"ariaChecked",void 0);Qr([h({type:Boolean})],Be.prototype,"disabled",void 0);Qr([F(".ft-radio")],Be.prototype,"container",void 0);Qr([F("ft-ripple")],Be.prototype,"ripple",void 0);Qr([F("input")],Be.prototype,"input",void 0)});var dv=u(()=>{"use strict"});var uv,Ou=u(()=>{"use strict";_();uv=R`
1106
+ `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new ds(this.value,this.checked))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),(t=this.ripple)===null||t===void 0||t.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new ds(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var t;return(t=this.ripple)===null||t===void 0?void 0:t.forceFocusUpdate()},0)}onClick(e){var t;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(t=this.input)===null||t===void 0||t.click())}};Be.elementDefinitions={"ft-ripple":Z,"ft-typography":ne};Be.styles=av;Qr([h()],Be.prototype,"name",void 0);Qr([h()],Be.prototype,"value",void 0);Qr([h({type:Boolean,reflect:!0})],Be.prototype,"checked",void 0);Qr([h({attribute:"aria-checked",reflect:!0})],Be.prototype,"ariaChecked",void 0);Qr([h({type:Boolean})],Be.prototype,"disabled",void 0);Qr([F(".ft-radio")],Be.prototype,"container",void 0);Qr([F("ft-ripple")],Be.prototype,"ripple",void 0);Qr([F("input")],Be.prototype,"input",void 0)});var sv=u(()=>{"use strict"});var lv,Cu=u(()=>{"use strict";_();lv=R`
1107
1107
  :host {
1108
1108
  display: block;
1109
1109
  }
@@ -1111,12 +1111,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1111
1111
  :host(:focus-visible) {
1112
1112
  outline: none;
1113
1113
  }
1114
- `});var Dn,Ot,Eu=u(()=>{"use strict";O();K();_();Ou();Dn=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},Ot=class extends D{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,t;return(t=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(o=>o.matches("ft-radio,ftds-radio")?[o]:[...o.querySelectorAll("ft-radio,ftds-radio")]))!==null&&t!==void 0?t:[]}render(){return b`
1114
+ `});var Dn,Ot,Ou=u(()=>{"use strict";O();K();_();Cu();Dn=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},Ot=class extends D{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,t;return(t=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(o=>o.matches("ft-radio,ftds-radio")?[o]:[...o.querySelectorAll("ft-radio,ftds-radio")]))!==null&&t!==void 0?t:[]}render(){return b`
1115
1115
  <slot @slotchange=${this.onSlotChange}
1116
1116
  @change=${this.onChange}
1117
1117
  @keydown=${this.onKeyDown}
1118
1118
  ></slot>
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()}};Ot.elementDefinitions={};Ot.styles=uv;Dn([h()],Ot.prototype,"name",void 0);Dn([h({reflect:!0,attribute:"role"})],Ot.prototype,"role",void 0);Dn([h({reflect:!0,attribute:"aria-labelledby"})],Ot.prototype,"ariaLabelledBy",void 0);Dn([zs()],Ot.prototype,"assignedElements",void 0);Dn([I()],Ot.prototype,"currentSelectedIndex",void 0)});var pv=u(()=>{"use strict"});var fv,hv=u(()=>{"use strict";Cu();Eu();fv={"ft-radio":Be,"ft-radio-group":Ot}});var mv=u(()=>{"use strict";O();hv();U(fv)});var wu=u(()=>{"use strict";Cu();dv();Su();Eu();pv();Ou();mv()});var Ve,Ru,Le,gv=u(()=>{"use strict";_();K();Bt();O();qt();_e();ot();wr();lv();wu();yu();Nt();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},Ru={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},Le=class extends _a(ut(gn(D)),Ru){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 ae(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()}};Ot.elementDefinitions={};Ot.styles=lv;Dn([h()],Ot.prototype,"name",void 0);Dn([h({reflect:!0,attribute:"role"})],Ot.prototype,"role",void 0);Dn([h({reflect:!0,attribute:"aria-labelledby"})],Ot.prototype,"ariaLabelledBy",void 0);Dn([Us()],Ot.prototype,"assignedElements",void 0);Dn([I()],Ot.prototype,"currentSelectedIndex",void 0)});var cv=u(()=>{"use strict"});var dv,uv=u(()=>{"use strict";Su();Ou();dv={"ft-radio":Be,"ft-radio-group":Ot}});var pv=u(()=>{"use strict";O();uv();U(dv)});var Eu=u(()=>{"use strict";Su();sv();xu();Ou();cv();Cu();pv()});var Ve,wu,Le,fv=u(()=>{"use strict";_();K();Bt();O();qt();_e();ot();wr();nv();Eu();gu();Nt();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},wu={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},Le=class extends _a(ut(gn(D)),wu){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 ae(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`
1120
1120
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1121
1121
  ${this.parent==null?null:b`
1122
1122
  <div tabindex="0"
@@ -1184,7 +1184,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1184
1184
  @change=${t=>this.optionsChanged(t,e)}>
1185
1185
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1186
1186
  </ft-radio>
1187
- `}onRadioKeyDown(e,t){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,t))}optionsChanged(e,t){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:t}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let t=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(t)})}};Le.elementDefinitions={"ft-button":j,"ft-ripple":Z,"ft-typography":ne,"ft-checkbox":He,"ft-icon":Se,"ft-radio":Be};Le.styles=rv;Ve([h({type:String})],Le.prototype,"filterId",void 0);Ve([h({type:Object})],Le.prototype,"parent",void 0);Ve([h({type:Array,hasChanged:gt})],Le.prototype,"options",void 0);Ve([h({type:Boolean})],Le.prototype,"multivalued",void 0);Ve([h({type:Boolean})],Le.prototype,"disabled",void 0);Ve([h({type:Boolean})],Le.prototype,"hideSelectedOptions",void 0);Ve([h({type:Boolean})],Le.prototype,"displayCount",void 0);Ve([h({type:Boolean})],Le.prototype,"preventNavigation",void 0);Ve([h({type:String})],Le.prototype,"filter",void 0);Ve([h({type:String})],Le.prototype,"moreValuesButtonLabel",void 0);Ve([h({type:String})],Le.prototype,"noValuesLabel",void 0);Ve([h()],Le.prototype,"filteredOptionsNumberAriaNotification",void 0);Ve([Tt()],Le.prototype,"displayedValuesLimit",void 0);Ve([F(".ft-filter-level--container")],Le.prototype,"container",void 0);Ve([I()],Le.prototype,"radios",void 0);Ve([I()],Le.prototype,"displayedPages",void 0);Ve([I()],Le.prototype,"filteredOptions",void 0)});var st,yv,ps=u(()=>{"use strict";_();O();$o();st={buttonsColor:i.extend("--ft-snap-scroll-buttons-color","",S.colorPrimary),buttonsZIndex:i.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:i.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:i.external(S.colorSurface,"Design system")},yv=R`
1187
+ `}onRadioKeyDown(e,t){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,t))}optionsChanged(e,t){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:t}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let t=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(t)})}};Le.elementDefinitions={"ft-button":j,"ft-ripple":Z,"ft-typography":ne,"ft-checkbox":He,"ft-icon":Se,"ft-radio":Be};Le.styles=Jb;Ve([h({type:String})],Le.prototype,"filterId",void 0);Ve([h({type:Object})],Le.prototype,"parent",void 0);Ve([h({type:Array,hasChanged:gt})],Le.prototype,"options",void 0);Ve([h({type:Boolean})],Le.prototype,"multivalued",void 0);Ve([h({type:Boolean})],Le.prototype,"disabled",void 0);Ve([h({type:Boolean})],Le.prototype,"hideSelectedOptions",void 0);Ve([h({type:Boolean})],Le.prototype,"displayCount",void 0);Ve([h({type:Boolean})],Le.prototype,"preventNavigation",void 0);Ve([h({type:String})],Le.prototype,"filter",void 0);Ve([h({type:String})],Le.prototype,"moreValuesButtonLabel",void 0);Ve([h({type:String})],Le.prototype,"noValuesLabel",void 0);Ve([h()],Le.prototype,"filteredOptionsNumberAriaNotification",void 0);Ve([Tt()],Le.prototype,"displayedValuesLimit",void 0);Ve([F(".ft-filter-level--container")],Le.prototype,"container",void 0);Ve([I()],Le.prototype,"radios",void 0);Ve([I()],Le.prototype,"displayedPages",void 0);Ve([I()],Le.prototype,"filteredOptions",void 0)});var st,hv,us=u(()=>{"use strict";_();O();$o();st={buttonsColor:i.extend("--ft-snap-scroll-buttons-color","",S.colorPrimary),buttonsZIndex:i.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:i.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:i.external(S.colorSurface,"Design system")},hv=R`
1188
1188
  .ft-snap-scroll {
1189
1189
  box-sizing: border-box;
1190
1190
  position: relative;
@@ -1309,7 +1309,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1309
1309
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1310
1310
  background-color: ${st.colorSurface};
1311
1311
  }
1312
- `});var sr,Au,Ne,Lu=u(()=>{"use strict";_();K();O();qt();tt();ps();sr=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=class extends CustomEvent{constructor(e,t){super("current-element-change",{detail:{index:e,element:t}})}},Ne=class extends D{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 ae(200),this.updateScrollDebouncer=new ae(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=ge({"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 sr,Ru,Ne,Au=u(()=>{"use strict";_();K();O();qt();tt();us();sr=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},Ru=class extends CustomEvent{constructor(e,t){super("current-element-change",{detail:{index:e,element:t}})}},Ne=class extends D{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 ae(200),this.updateScrollDebouncer=new ae(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=ge({"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`
1313
1313
  <div part="container" class="${e}">
1314
1314
  <ft-button
1315
1315
  class="ft-snap-scroll--previous"
@@ -1333,7 +1333,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1333
1333
  @click=${this.next}
1334
1334
  ></ft-button>
1335
1335
  </div>
1336
- `}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Au(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(t=this.listenedContainer)===null||t===void 0||t.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let t=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<t&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var t,o;e&&(this.horizontal?(t=this.contentSlot)===null||t===void 0||t.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(o=this.contentSlot)===null||o===void 0||o.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,t;this.elements=(t=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(o=>o))!==null&&t!==void 0?t:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let t=0;t<this.elements.length;t++)(e<0||this.getDistanceFromStart(this.elements[t])<this.getDistanceFromStart(this.elements[e]))&&(e=t);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let t=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-t)}};Ne.elementDefinitions={"ft-button":j};Ne.styles=yv;sr([h({type:Boolean})],Ne.prototype,"horizontal",void 0);sr([h({type:Boolean})],Ne.prototype,"hideScrollbar",void 0);sr([h({type:Boolean})],Ne.prototype,"controls",void 0);sr([h({type:Boolean})],Ne.prototype,"limitSize",void 0);sr([I()],Ne.prototype,"elements",void 0);sr([I()],Ne.prototype,"currentElement",void 0);sr([I()],Ne.prototype,"withScroll",void 0);sr([I()],Ne.prototype,"startReached",void 0);sr([I()],Ne.prototype,"endReached",void 0);sr([F(".ft-snap-scroll--content")],Ne.prototype,"contentSlot",void 0)});var bv=u(()=>{"use strict"});var vv,xv=u(()=>{"use strict";Lu();vv={"ft-snap-scroll":Ne}});var Sv=u(()=>{"use strict";O();xv();U(vv)});var fs=u(()=>{"use strict";Lu();ps();bv();Sv()});var ft,Cv,hs=u(()=>{"use strict";_();O();Vt();$o();ft={colorOutline:i.external(S.colorOutline,"Design system"),colorOnSurface:i.external(S.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.external(S.colorOnSurfaceMedium,"Design system"),colorPrimary:i.external(S.colorPrimary,"Design system"),colorSurface:i.external(S.colorSurface,"Design system"),transitionDuration:i.external(S.transitionDuration,"Design system"),transitionTimingFunction:i.external(S.transitionTimingFunction,"Design system"),labelColor:i.extend("--ft-filter-label-color","",S.colorOnSurface),labelFontSize:i.extend("--ft-filter-label-font-size","",$.fontSize,"16px")},Cv=[Gr,bo,R`
1336
+ `}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Ru(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(t=this.listenedContainer)===null||t===void 0||t.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let t=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<t&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var t,o;e&&(this.horizontal?(t=this.contentSlot)===null||t===void 0||t.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(o=this.contentSlot)===null||o===void 0||o.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,t;this.elements=(t=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(o=>o))!==null&&t!==void 0?t:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let t=0;t<this.elements.length;t++)(e<0||this.getDistanceFromStart(this.elements[t])<this.getDistanceFromStart(this.elements[e]))&&(e=t);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let t=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-t)}};Ne.elementDefinitions={"ft-button":j};Ne.styles=hv;sr([h({type:Boolean})],Ne.prototype,"horizontal",void 0);sr([h({type:Boolean})],Ne.prototype,"hideScrollbar",void 0);sr([h({type:Boolean})],Ne.prototype,"controls",void 0);sr([h({type:Boolean})],Ne.prototype,"limitSize",void 0);sr([I()],Ne.prototype,"elements",void 0);sr([I()],Ne.prototype,"currentElement",void 0);sr([I()],Ne.prototype,"withScroll",void 0);sr([I()],Ne.prototype,"startReached",void 0);sr([I()],Ne.prototype,"endReached",void 0);sr([F(".ft-snap-scroll--content")],Ne.prototype,"contentSlot",void 0)});var mv=u(()=>{"use strict"});var gv,yv=u(()=>{"use strict";Au();gv={"ft-snap-scroll":Ne}});var bv=u(()=>{"use strict";O();yv();U(gv)});var ps=u(()=>{"use strict";Au();us();mv();bv()});var ft,vv,fs=u(()=>{"use strict";_();O();Vt();$o();ft={colorOutline:i.external(S.colorOutline,"Design system"),colorOnSurface:i.external(S.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.external(S.colorOnSurfaceMedium,"Design system"),colorPrimary:i.external(S.colorPrimary,"Design system"),colorSurface:i.external(S.colorSurface,"Design system"),transitionDuration:i.external(S.transitionDuration,"Design system"),transitionTimingFunction:i.external(S.transitionTimingFunction,"Design system"),labelColor:i.extend("--ft-filter-label-color","",S.colorOnSurface),labelFontSize:i.extend("--ft-filter-label-font-size","",$.fontSize,"16px")},vv=[Gr,bo,R`
1337
1337
  :host {
1338
1338
  display: flex;
1339
1339
  max-height: 100%;
@@ -1450,7 +1450,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1450
1450
  slot:not([name]) {
1451
1451
  display: none;
1452
1452
  }
1453
- `]});var Ce,ku,de,Tu=u(()=>{"use strict";_();K();O();_e();gv();qt();fs();hs();Ce=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},ku=class extends CustomEvent{constructor(e){super("change",{detail:e})}},de=class extends _a(D,Ru){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 ae(300),this.changeDebouncer=new ae(10),this.lastDispatchedValues=[]}get flatOptions(){return yt(this.options,e=>{var t;return(t=e.subOptions)!==null&&t!==void 0?t:[]})}get childrenFilteredFlatOptions(){return yt(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 Ce,Lu,de,ku=u(()=>{"use strict";_();K();O();_e();fv();qt();ps();fs();Ce=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){super("change",{detail:e})}},de=class extends _a(D,wu){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 ae(300),this.changeDebouncer=new ae(10),this.lastDispatchedValues=[]}get flatOptions(){return yt(this.options,e=>{var t;return(t=e.subOptions)!==null&&t!==void 0?t:[]})}get childrenFilteredFlatOptions(){return yt(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`
1454
1454
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1455
1455
  part="container">
1456
1456
  ${!this.label&&!e?null:b`
@@ -1517,7 +1517,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1517
1517
  class="${e}"
1518
1518
  filterId="${this.id}"
1519
1519
  .filter=${this.filter}
1520
- .configuredAnalyticsActions="${this.configuredAnalyticsActions}"
1520
+ .configuredAnalyticsActions=${this.configuredAnalyticsActions}
1521
1521
  moreValuesButtonLabel="${this.moreValuesButtonLabel}"
1522
1522
  ?multivalued=${this.multivalued}
1523
1523
  ?disabled=${this.disabled||e!=="ft-filter--level-center"}
@@ -1534,17 +1534,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1534
1534
  noValuesLabel="${this.noValuesLabel}"
1535
1535
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
1536
1536
  ></ft-filter-level>
1537
- `}goBack(e){this.slideOut=e.detail.value,Zi(()=>this.slideOut===void 0).then(()=>{var t;let o=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");o?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,Zi(()=>this.slideIn===void 0).then(()=>{var t;let o=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");o?.focusOnBackButton()})}focusOnFirstOption(){Zi(()=>this.slideOut===void 0).then(()=>{var e;let t=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");t?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var t;e.stopPropagation();let o=this.flatOptions.find(a=>a.value===e.detail.value);o.selected=!o.selected;let n=a=>{var s;a!==o&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(t=o.subOptions)===null||t===void 0||t.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(t=>t.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;De(this.lastDispatchedValues,e)||(this.dispatchEvent(new ku(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(t=>t),this.optionsChanged()}onFilterChange(){var e,t;this.filter=(t=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&t!==void 0?t:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};de.elementDefinitions={"ft-button":j,"ft-filter-level":Le,"ft-snap-scroll":Ne,"ft-typography":ne};de.styles=Cv;Ce([h({type:String})],de.prototype,"id",void 0);Ce([h({type:String})],de.prototype,"label",void 0);Ce([h({type:String})],de.prototype,"filterPlaceHolder",void 0);Ce([h({type:String})],de.prototype,"clearButtonLabel",void 0);Ce([h({type:String})],de.prototype,"moreValuesButtonLabel",void 0);Ce([h({type:String})],de.prototype,"noValuesLabel",void 0);Ce([ue([])],de.prototype,"options",void 0);Ce([h({type:Boolean})],de.prototype,"multivalued",void 0);Ce([h({type:Boolean})],de.prototype,"disabled",void 0);Ce([h({type:Boolean})],de.prototype,"raiseSelectedOptions",void 0);Ce([h({type:Boolean})],de.prototype,"displayCount",void 0);Ce([Tt()],de.prototype,"displayedValuesLimit",void 0);Ce([ue(void 0)],de.prototype,"filteredOptionsNumberAriaNotification",void 0);Ce([h({type:Boolean})],de.prototype,"hideClearButton",void 0);Ce([F(".ft-filter--slot")],de.prototype,"slotElement",void 0);Ce([F(".ft-filter--container")],de.prototype,"container",void 0);Ce([F(".ft-filter--values")],de.prototype,"valuesContainer",void 0);Ce([F(".ft-filter--levels")],de.prototype,"levelsContainer",void 0);Ce([I()],de.prototype,"lastLevelHasHiddenvalues",void 0);Ce([F(".ft-filter--filter input")],de.prototype,"filterInput",void 0);Ce([Us(".ft-filter--levels ft-filter-level")],de.prototype,"levels",void 0);Ce([I()],de.prototype,"withScroll",void 0);Ce([I()],de.prototype,"filter",void 0);Ce([I()],de.prototype,"slideIn",void 0);Ce([I()],de.prototype,"slideOut",void 0)});var Ov=u(()=>{"use strict"});var Ni,Et,_u=u(()=>{"use strict";O();K();_();Ni=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},Et=class extends D{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return b`
1537
+ `}goBack(e){this.slideOut=e.detail.value,Zi(()=>this.slideOut===void 0).then(()=>{var t;let o=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");o?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,Zi(()=>this.slideIn===void 0).then(()=>{var t;let o=(t=this.levelsContainer)===null||t===void 0?void 0:t.querySelector(".ft-filter--level-center");o?.focusOnBackButton()})}focusOnFirstOption(){Zi(()=>this.slideOut===void 0).then(()=>{var e;let t=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");t?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var t;e.stopPropagation();let o=this.flatOptions.find(a=>a.value===e.detail.value);o.selected=!o.selected;let n=a=>{var s;a!==o&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(t=o.subOptions)===null||t===void 0||t.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(t=>t.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;De(this.lastDispatchedValues,e)||(this.dispatchEvent(new Lu(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(t=>t),this.optionsChanged()}onFilterChange(){var e,t;this.filter=(t=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&t!==void 0?t:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};de.elementDefinitions={"ft-button":j,"ft-filter-level":Le,"ft-snap-scroll":Ne,"ft-typography":ne};de.styles=vv;Ce([h({type:String})],de.prototype,"id",void 0);Ce([h({type:String})],de.prototype,"label",void 0);Ce([h({type:String})],de.prototype,"filterPlaceHolder",void 0);Ce([h({type:String})],de.prototype,"clearButtonLabel",void 0);Ce([h({type:String})],de.prototype,"moreValuesButtonLabel",void 0);Ce([h({type:String})],de.prototype,"noValuesLabel",void 0);Ce([ue([])],de.prototype,"options",void 0);Ce([h({type:Boolean})],de.prototype,"multivalued",void 0);Ce([h({type:Boolean})],de.prototype,"disabled",void 0);Ce([h({type:Boolean})],de.prototype,"raiseSelectedOptions",void 0);Ce([h({type:Boolean})],de.prototype,"displayCount",void 0);Ce([Tt()],de.prototype,"displayedValuesLimit",void 0);Ce([ue(void 0)],de.prototype,"filteredOptionsNumberAriaNotification",void 0);Ce([h({type:Boolean})],de.prototype,"hideClearButton",void 0);Ce([F(".ft-filter--slot")],de.prototype,"slotElement",void 0);Ce([F(".ft-filter--container")],de.prototype,"container",void 0);Ce([F(".ft-filter--values")],de.prototype,"valuesContainer",void 0);Ce([F(".ft-filter--levels")],de.prototype,"levelsContainer",void 0);Ce([I()],de.prototype,"lastLevelHasHiddenvalues",void 0);Ce([F(".ft-filter--filter input")],de.prototype,"filterInput",void 0);Ce([Bs(".ft-filter--levels ft-filter-level")],de.prototype,"levels",void 0);Ce([I()],de.prototype,"withScroll",void 0);Ce([I()],de.prototype,"filter",void 0);Ce([I()],de.prototype,"slideIn",void 0);Ce([I()],de.prototype,"slideOut",void 0)});var xv=u(()=>{"use strict"});var Ni,Et,Tu=u(()=>{"use strict";O();K();_();Ni=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},Et=class extends D{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return b`
1538
1538
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1539
- `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(t=>t)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Et.elementDefinitions={};Ni([h({type:String})],Et.prototype,"label",void 0);Ni([h({type:Object,converter:r=>r})],Et.prototype,"value",void 0);Ni([h({type:Boolean,reflect:!0})],Et.prototype,"selected",void 0);Ni([h({type:Object})],Et.prototype,"subOptions",void 0);Ni([ue({})],Et.prototype,"renderOption",void 0);Ni([F(".ft-filter-option--slot")],Et.prototype,"slotElement",void 0)});var Ev=u(()=>{"use strict"});var wv,Rv=u(()=>{"use strict";Tu();_u();wv={"ft-filter":de,"ft-filter-option":Et}});var Av=u(()=>{"use strict";O();Rv();U(wv)});var Lv=u(()=>{"use strict";yu();Tu();hs();Ov();_u();Ev();Av()});var kv,Iu=u(()=>{"use strict";_();kv=R`
1539
+ `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(t=>t)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Et.elementDefinitions={};Ni([h({type:String})],Et.prototype,"label",void 0);Ni([h({type:Object,converter:r=>r})],Et.prototype,"value",void 0);Ni([h({type:Boolean,reflect:!0})],Et.prototype,"selected",void 0);Ni([h({type:Object})],Et.prototype,"subOptions",void 0);Ni([ue({})],Et.prototype,"renderOption",void 0);Ni([F(".ft-filter-option--slot")],Et.prototype,"slotElement",void 0)});var Sv=u(()=>{"use strict"});var Cv,Ov=u(()=>{"use strict";ku();Tu();Cv={"ft-filter":de,"ft-filter-option":Et}});var Ev=u(()=>{"use strict";O();Ov();U(Cv)});var wv=u(()=>{"use strict";gu();ku();fs();xv();Tu();Sv();Ev()});var Rv,_u=u(()=>{"use strict";_();Rv=R`
1540
1540
  .ft-accordion {
1541
1541
  box-sizing: border-box;
1542
1542
  }
1543
- `});var Tv,lr,Pu=u(()=>{"use strict";_();K();O();Iu();Tv=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 D{constructor(){super(...arguments),this.multi=!1}render(){return b`
1543
+ `});var Av,lr,Iu=u(()=>{"use strict";_();K();O();_u();Av=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 D{constructor(){super(...arguments),this.multi=!1}render(){return b`
1544
1544
  <div class="ft-accordion">
1545
1545
  <slot @activated=${this.onChange}></slot>
1546
1546
  </div>
1547
- `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(t=>t.active=t===e.target)}};lr.elementDefinitions={};lr.styles=kv;Tv([h({type:Boolean})],lr.prototype,"multi",void 0);Tv([F("slot")],lr.prototype,"content",void 0)});var _v=u(()=>{"use strict"});var Mo,Iv,Nu=u(()=>{"use strict";_();O();Mo={horizontalSpacing:i.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:i.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:i.external(S.colorOutline,"Design system"),backgroundColor:i.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Iv=R`
1547
+ `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(t=>t.active=t===e.target)}};lr.elementDefinitions={};lr.styles=Rv;Av([h({type:Boolean})],lr.prototype,"multi",void 0);Av([F("slot")],lr.prototype,"content",void 0)});var Lv=u(()=>{"use strict"});var Mo,kv,Pu=u(()=>{"use strict";_();O();Mo={horizontalSpacing:i.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:i.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:i.external(S.colorOutline,"Design system"),backgroundColor:i.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},kv=R`
1548
1548
  .ft-accordion-item {
1549
1549
  display: flex;
1550
1550
  flex-direction: column;
@@ -1590,7 +1590,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1590
1590
  .ft-accordion-item--separator {
1591
1591
  border-bottom: 1px solid ${Mo.colorOutline};
1592
1592
  }
1593
- `});var ms,Mt,$u=u(()=>{"use strict";_();K();O();ot();_e();wr();Nu();ms=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},Mt=class extends D{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return b`
1593
+ `});var hs,Mt,Nu=u(()=>{"use strict";_();K();O();ot();_e();wr();Pu();hs=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},Mt=class extends D{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return b`
1594
1594
  <div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
1595
1595
  <div class="ft-accordion-item--toggle"
1596
1596
  part="toggle"
@@ -1620,7 +1620,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1620
1620
  </div>
1621
1621
  <div class="ft-accordion-item--separator" part="separator"></div>
1622
1622
  </div>
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)}};Mt.elementDefinitions={"ft-ripple":Z,"ft-typography":ne,"ft-icon":Se};Mt.styles=Iv;ms([h()],Mt.prototype,"icon",void 0);ms([h()],Mt.prototype,"iconVariant",void 0);ms([h()],Mt.prototype,"label",void 0);ms([h({type:Boolean,reflect:!0})],Mt.prototype,"active",void 0)});var Pv=u(()=>{"use strict"});var Nv,$v=u(()=>{"use strict";Pu();$u();Nv={"ft-accordion":lr,"ft-accordion-item":Mt}});var Dv=u(()=>{"use strict";O();$v();U(Nv)});var Mv=u(()=>{"use strict";Pu();Iu();_v();$u();Nu();Pv();Dv()});var Fv,We,Bv,Du,Uv,zv,Mu=u(()=>{"use strict";_();O();xr();Vt();Li();qt();Fv=i.extend("--ft-chip-color","",S.colorOnSurface),We={backgroundColor:i.extend("--ft-chip-background-color","",S.colorSurface),color:Fv,fontSize:i.extend("--ft-chip-font-size","",Me.fontSize),fontWeight:i.extend("--ft-chip-font-weight","",Me.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","",Fv),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")},Bv=i.extend("--ft-chip-highlighted-color","",i.extend("--ft-chip-color","",S.colorOnPrimary)),Du={backgroundColor:i.extend("--ft-chip-highlighted-background-color","",i.extend("--ft-chip-background-color","",S.colorPrimary)),color:Bv,rippleColor:i.extend("--ft-chip-highlighted-ripple-color","",Bv)},Uv={horizontalPadding:i.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:i.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},zv=[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)}};Mt.elementDefinitions={"ft-ripple":Z,"ft-typography":ne,"ft-icon":Se};Mt.styles=kv;hs([h()],Mt.prototype,"icon",void 0);hs([h()],Mt.prototype,"iconVariant",void 0);hs([h()],Mt.prototype,"label",void 0);hs([h({type:Boolean,reflect:!0})],Mt.prototype,"active",void 0)});var Tv=u(()=>{"use strict"});var _v,Iv=u(()=>{"use strict";Iu();Nu();_v={"ft-accordion":lr,"ft-accordion-item":Mt}});var Pv=u(()=>{"use strict";O();Iv();U(_v)});var Nv=u(()=>{"use strict";Iu();_u();Lv();Nu();Pu();Tv();Pv()});var $v,We,Dv,$u,Mv,Fv,Du=u(()=>{"use strict";_();O();xr();Vt();Li();qt();$v=i.extend("--ft-chip-color","",S.colorOnSurface),We={backgroundColor:i.extend("--ft-chip-background-color","",S.colorSurface),color:$v,fontSize:i.extend("--ft-chip-font-size","",Me.fontSize),fontWeight:i.extend("--ft-chip-font-weight","",Me.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","",$v),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")},Dv=i.extend("--ft-chip-highlighted-color","",i.extend("--ft-chip-color","",S.colorOnPrimary)),$u={backgroundColor:i.extend("--ft-chip-highlighted-background-color","",i.extend("--ft-chip-background-color","",S.colorPrimary)),color:Dv,rippleColor:i.extend("--ft-chip-highlighted-ripple-color","",Dv)},Mv={horizontalPadding:i.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:i.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Fv=[yo,R`
1624
1624
  :host {
1625
1625
  display: inline-block;
1626
1626
  max-width: 100%;
@@ -1660,8 +1660,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1660
1660
 
1661
1661
  .ft-chip--dense {
1662
1662
  --chip-internal-icon-padding: 3px;
1663
- --chip-internal-vertical-padding: ${Uv.verticalPadding};
1664
- --chip-internal-horizontal-padding: ${Uv.horizontalPadding};
1663
+ --chip-internal-vertical-padding: ${Mv.verticalPadding};
1664
+ --chip-internal-horizontal-padding: ${Mv.horizontalPadding};
1665
1665
  --chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
1666
1666
  }
1667
1667
 
@@ -1679,9 +1679,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1679
1679
  .ft-chip--highlighted {
1680
1680
  border: none;
1681
1681
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1682
- background-color: ${Du.backgroundColor};
1683
- ${A(le.color,Du.rippleColor)};
1684
- color: ${Du.color};
1682
+ background-color: ${$u.backgroundColor};
1683
+ ${A(le.color,$u.rippleColor)};
1684
+ color: ${$u.color};
1685
1685
  }
1686
1686
 
1687
1687
  .ft-chip--clickable {
@@ -1760,7 +1760,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1760
1760
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1761
1761
  order: -1;
1762
1762
  }
1763
- `]});var lt,gs,ke,Fu=u(()=>{"use strict";_();K();tt();O();ot();_e();wr();Mu();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")}},ke=class extends D{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,ms,ke,Mu=u(()=>{"use strict";_();K();tt();O();ot();_e();wr();Du();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},ms=class extends CustomEvent{constructor(){super("icon-click")}},ke=class extends D{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`
1764
1764
  <div class="${ge(t)}"
1765
1765
  aria-label="${this.getLabel()}"
1766
1766
  tabindex="${this.interactionsOnChip?0:-1}"
@@ -1787,7 +1787,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1787
1787
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1788
1788
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
1789
1789
  </div>
1790
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new gs))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new gs))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return Zo(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ke.elementDefinitions={"ft-ripple":Z,"ft-typography":ne,"ft-icon":Se,"ft-button":j};ke.styles=zv;lt([h({type:Boolean})],ke.prototype,"highlighted",void 0);lt([h({type:Boolean})],ke.prototype,"removable",void 0);lt([h({type:Boolean})],ke.prototype,"disabled",void 0);lt([h({type:Boolean})],ke.prototype,"clickable",void 0);lt([h({type:Boolean})],ke.prototype,"iconClickable",void 0);lt([h({type:Boolean})],ke.prototype,"dense",void 0);lt([h({type:Boolean})],ke.prototype,"multiLine",void 0);lt([h()],ke.prototype,"label",void 0);lt([h()],ke.prototype,"iconLabel",void 0);lt([h({type:Boolean})],ke.prototype,"hideIconTooltip",void 0);lt([h()],ke.prototype,"icon",void 0);lt([h()],ke.prototype,"iconVariant",void 0);lt([h({type:Boolean})],ke.prototype,"trailingIcon",void 0);lt([h()],ke.prototype,"typographyVariant",void 0);lt([F("ft-typography slot")],ke.prototype,"slottedContent",void 0)});var Hv=u(()=>{"use strict"});var Vv,Wv=u(()=>{"use strict";Fu();Vv={"ft-chip":ke}});var jv=u(()=>{"use strict";O();Wv();U(Vv)});var Bu=u(()=>{"use strict";Fu();Mu();Hv();jv()});var re,Gv,Mn=u(()=>{"use strict";_();O();Vt();re={fontSize:i.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:i.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:i.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:i.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:i.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:i.extend("--ft-input-label-border-color","",S.colorOutline),textColor:i.extend("--ft-input-label-text-color","",S.colorOnSurfaceMedium),disabledTextColor:i.extend("--ft-input-label-disabled-text-color","",S.colorOnSurfaceDisabled),backgroundColor:i.extend("--ft-input-label-background-color","",S.colorSurface),borderRadius:i.extend("--ft-input-label-border-radius","",S.borderRadiusS),colorError:i.external(S.colorError,"Design system")},Gv=R`
1790
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new ms))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new ms))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return Zo(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ke.elementDefinitions={"ft-ripple":Z,"ft-typography":ne,"ft-icon":Se,"ft-button":j};ke.styles=Fv;lt([h({type:Boolean})],ke.prototype,"highlighted",void 0);lt([h({type:Boolean})],ke.prototype,"removable",void 0);lt([h({type:Boolean})],ke.prototype,"disabled",void 0);lt([h({type:Boolean})],ke.prototype,"clickable",void 0);lt([h({type:Boolean})],ke.prototype,"iconClickable",void 0);lt([h({type:Boolean})],ke.prototype,"dense",void 0);lt([h({type:Boolean})],ke.prototype,"multiLine",void 0);lt([h()],ke.prototype,"label",void 0);lt([h()],ke.prototype,"iconLabel",void 0);lt([h({type:Boolean})],ke.prototype,"hideIconTooltip",void 0);lt([h()],ke.prototype,"icon",void 0);lt([h()],ke.prototype,"iconVariant",void 0);lt([h({type:Boolean})],ke.prototype,"trailingIcon",void 0);lt([h()],ke.prototype,"typographyVariant",void 0);lt([F("ft-typography slot")],ke.prototype,"slottedContent",void 0)});var Bv=u(()=>{"use strict"});var Uv,zv=u(()=>{"use strict";Mu();Uv={"ft-chip":ke}});var Hv=u(()=>{"use strict";O();zv();U(Uv)});var Fu=u(()=>{"use strict";Mu();Du();Bv();Hv()});var re,Vv,Mn=u(()=>{"use strict";_();O();Vt();re={fontSize:i.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:i.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:i.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:i.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:i.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:i.extend("--ft-input-label-border-color","",S.colorOutline),textColor:i.extend("--ft-input-label-text-color","",S.colorOnSurfaceMedium),disabledTextColor:i.extend("--ft-input-label-disabled-text-color","",S.colorOnSurfaceDisabled),backgroundColor:i.extend("--ft-input-label-background-color","",S.colorSurface),borderRadius:i.extend("--ft-input-label-border-radius","",S.borderRadiusS),colorError:i.external(S.colorError,"Design system")},Vv=R`
1791
1791
  .ft-input-label {
1792
1792
  position: absolute;
1793
1793
  inset: 0;
@@ -1909,7 +1909,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1909
1909
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1910
1910
  border-top: none;
1911
1911
  }
1912
- `});var Kv,Fo,qv=u(()=>{"use strict";_();K();ka();tt();O();Kv=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},Fo=class extends D{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return b`
1912
+ `});var Wv,Fo,jv=u(()=>{"use strict";_();K();ka();tt();O();Wv=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},Fo=class extends D{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return b`
1913
1913
  <div class="${ge(this.inputLabelClasses)}">
1914
1914
  ${Ro(this.text,()=>b`
1915
1915
  <div class="ft-input-label--text ft-typography--caption">
@@ -1918,7 +1918,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1918
1918
  </div>
1919
1919
  `)}
1920
1920
  </div>
1921
- `}};Fo.elementDefinitions={};Kv([h({type:String})],Fo.prototype,"text",void 0);Kv([h({type:Boolean})],Fo.prototype,"raised",void 0)});var Uu,Qt,zu=u(()=>{"use strict";K();Vt();Mn();qv();Uu=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},Qt=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}}};Qt.elementDefinitions={};Qt.styles=[Gr,Gv];Uu([h({type:Boolean})],Qt.prototype,"outlined",void 0);Uu([h({type:Boolean})],Qt.prototype,"error",void 0);Uu([h({type:Boolean})],Qt.prototype,"disabled",void 0)});var Zv=u(()=>{"use strict"});var Qv,Yv=u(()=>{"use strict";zu();Qv={"ft-input-label":Qt}});var Xv=u(()=>{"use strict";O();Yv();U(Qv)});var Jv=u(()=>{"use strict";zu();Mn();Zv();Xv()});var X,ex,Fn=u(()=>{"use strict";_();O();Mn();Vt();xr();Li();X={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")},ex=R`
1921
+ `}};Fo.elementDefinitions={};Wv([h({type:String})],Fo.prototype,"text",void 0);Wv([h({type:Boolean})],Fo.prototype,"raised",void 0)});var Bu,Qt,Uu=u(()=>{"use strict";K();Vt();Mn();jv();Bu=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},Qt=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}}};Qt.elementDefinitions={};Qt.styles=[Gr,Vv];Bu([h({type:Boolean})],Qt.prototype,"outlined",void 0);Bu([h({type:Boolean})],Qt.prototype,"error",void 0);Bu([h({type:Boolean})],Qt.prototype,"disabled",void 0)});var Gv=u(()=>{"use strict"});var Kv,qv=u(()=>{"use strict";Uu();Kv={"ft-input-label":Qt}});var Zv=u(()=>{"use strict";O();qv();U(Kv)});var Qv=u(()=>{"use strict";Uu();Mn();Gv();Zv()});var X,Yv,Fn=u(()=>{"use strict";_();O();Mn();Vt();xr();Li();X={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")},Yv=R`
1922
1922
  *:focus {
1923
1923
  outline: none;
1924
1924
  }
@@ -2054,7 +2054,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2054
2054
  .ft-select:not(.ft-select--has-option-selected) .ft-select--selected-option {
2055
2055
  opacity: 0;
2056
2056
  }
2057
- `});var tx,rx=u(()=>{"use strict";xr();O();Fn();_();tx=R`
2057
+ `});var Xv,Jv=u(()=>{"use strict";xr();O();Fn();_();Xv=R`
2058
2058
  .ft-select--option {
2059
2059
  ${A(le.opacityContentOnSurfaceHover,"0.08")};
2060
2060
  ${A(le.opacityContentOnSurfacePressed,"0.04")};
@@ -2081,7 +2081,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2081
2081
  overflow: hidden;
2082
2082
  }
2083
2083
 
2084
- `});var Bn,Je,ox=u(()=>{"use strict";O();ot();_e();_();tt();K();rx();Bn=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},Je=class extends D{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.isSlotEmpty=!0}render(){var e,t;let o={"ft-select--option":!0,"ft-select--option-selected":this.selected,"ft-typography--body2":!0};return b`
2084
+ `});var Bn,Je,ex=u(()=>{"use strict";O();ot();_e();_();tt();K();Jv();Bn=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},Je=class extends D{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.isSlotEmpty=!0}render(){var e,t;let o={"ft-select--option":!0,"ft-select--option-selected":this.selected,"ft-typography--body2":!0};return b`
2085
2085
  <div class="${ge(o)}"
2086
2086
  part="option option-${(t=(e=this.value)===null||e===void 0?void 0:e.toString())===null||t===void 0?void 0:t.replace(/[^\w-]/g,"")}"
2087
2087
  tabindex="0"
@@ -2093,7 +2093,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2093
2093
  </slot>
2094
2094
  ${this.isSlotEmpty?b`<span>${this.label}</span>`:b``}
2095
2095
  </div>
2096
- `}onSlotChange(){this.isSlotEmpty=an(this.slotElement)}onClick(){this.dispatchEvent(new Event("select-option",{bubbles:!0,composed:!0}))}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Je.elementDefinitions={"ft-ripple":Z};Je.shadowRootOptions={...Lt.shadowRootOptions,delegatesFocus:!0};Je.styles=[tx,jr];Bn([h({type:String})],Je.prototype,"label",void 0);Bn([h({type:Object,converter:r=>r})],Je.prototype,"value",void 0);Bn([h({type:Boolean,reflect:!0})],Je.prototype,"selected",void 0);Bn([F("slot")],Je.prototype,"slotElement",void 0);Bn([I()],Je.prototype,"isSlotEmpty",void 0)});var je,xe,Hu=u(()=>{"use strict";_();K();tt();Bt();ka();Xa();O();_e();Jv();ot();wr();Fn();ox();je=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},xe=class r extends D{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.isSlotEmpty=!0,this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}get firstOption(){return this.optionsList[0]}get optionsList(){let e=[...this.querySelectorAll("ft-select-option")];return e.length>0?e:[...this.shadowRoot.querySelectorAll("ft-select-option")]}get focusedOption(){return this.optionsList.find(e=>e.matches(":focus-within"))}get selectedOptionElement(){return this.optionsList.find(e=>e.selected)}get lastOption(){return Xs(this.optionsList)}render(){var e,t,o,n,a;let s=this.hasOptionsMenuOpen,l=this.disabled||!this.hasOptions,d=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((o=(t=this.selectedOption)===null||t===void 0?void 0:t.label)!==null&&o!==void 0?o:"").length>0,f={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":l,"ft-select--options-displayed":s,"ft-select--has-option-selected":d,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return b`
2096
+ `}onSlotChange(){this.isSlotEmpty=an(this.slotElement)}onClick(){this.dispatchEvent(new Event("select-option",{bubbles:!0,composed:!0}))}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Je.elementDefinitions={"ft-ripple":Z};Je.shadowRootOptions={...Lt.shadowRootOptions,delegatesFocus:!0};Je.styles=[Xv,jr];Bn([h({type:String})],Je.prototype,"label",void 0);Bn([h({type:Object,converter:r=>r})],Je.prototype,"value",void 0);Bn([h({type:Boolean,reflect:!0})],Je.prototype,"selected",void 0);Bn([F("slot")],Je.prototype,"slotElement",void 0);Bn([I()],Je.prototype,"isSlotEmpty",void 0)});var je,xe,zu=u(()=>{"use strict";_();K();tt();Bt();ka();Ya();O();_e();Qv();ot();wr();Fn();ex();je=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},xe=class r extends D{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.isSlotEmpty=!0,this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}get firstOption(){return this.optionsList[0]}get optionsList(){let e=[...this.querySelectorAll("ft-select-option")];return e.length>0?e:[...this.shadowRoot.querySelectorAll("ft-select-option")]}get focusedOption(){return this.optionsList.find(e=>e.matches(":focus-within"))}get selectedOptionElement(){return this.optionsList.find(e=>e.selected)}get lastOption(){return Ys(this.optionsList)}render(){var e,t,o,n,a;let s=this.hasOptionsMenuOpen,l=this.disabled||!this.hasOptions,d=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((o=(t=this.selectedOption)===null||t===void 0?void 0:t.label)!==null&&o!==void 0?o:"").length>0,f={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":l,"ft-select--options-displayed":s,"ft-select--has-option-selected":d,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return b`
2097
2097
  <div class="${ge(f)}" part="container">
2098
2098
  <div class="ft-select--main-panel" part="main-panel">
2099
2099
  <ft-input-label text="${this.label}"
@@ -2149,7 +2149,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2149
2149
  label="${e.label}"
2150
2150
  .value=${e.value}
2151
2151
  ></ft-select-option>
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"];Nl(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",X.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=>De(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=>De(n.value,e));o&&this.selectOption(o,t)}selectOption(e,t=!0){var o,n;if(!De((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)}};xe.elementDefinitions={"ft-input-label":Qt,"ft-typography":ne,"ft-ripple":Z,"ft-icon":Se,"ft-select-option":Je};xe.searchTimeoutMilliseconds=2e3;xe.styles=[Gr,ex];je([h({type:String})],xe.prototype,"label",void 0);je([h({type:String})],xe.prototype,"ariaLabel",void 0);je([h({type:String})],xe.prototype,"helper",void 0);je([h({type:Boolean})],xe.prototype,"outlined",void 0);je([h({type:Boolean})],xe.prototype,"disabled",void 0);je([h({type:Boolean})],xe.prototype,"error",void 0);je([h({type:Boolean})],xe.prototype,"fixedMenuPosition",void 0);je([h({type:Array})],xe.prototype,"options",void 0);je([I()],xe.prototype,"selectedOption",void 0);je([I()],xe.prototype,"optionsDisplayed",void 0);je([I()],xe.prototype,"focusOptions",void 0);je([I()],xe.prototype,"currentSearch",void 0);je([I()],xe.prototype,"lastSearchInputDate",void 0);je([F(".ft-select")],xe.prototype,"container",void 0);je([F(".ft-select--options")],xe.prototype,"optionsMenu",void 0);je([F(".ft-select--input-panel")],xe.prototype,"mainPanel",void 0);je([F("slot:not([name])")],xe.prototype,"optionsSlot",void 0)});var ix=u(()=>{"use strict"});var nx,ax=u(()=>{"use strict";Hu();nx={"ft-select":xe,"ft-select-option":Je}});var sx=u(()=>{"use strict";O();ax();U(nx)});var lx=u(()=>{"use strict";Hu();Fn();ix();sx()});var Ge,cx,ys=u(()=>{"use strict";_();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")},cx=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"];Pl(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",X.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===" "&&(e.preventDefault(),e.stopPropagation()),e.key){case" ":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=>De(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=>De(n.value,e));o&&this.selectOption(o,t)}selectOption(e,t=!0){var o,n;if(!De((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)}};xe.elementDefinitions={"ft-input-label":Qt,"ft-typography":ne,"ft-ripple":Z,"ft-icon":Se,"ft-select-option":Je};xe.searchTimeoutMilliseconds=2e3;xe.styles=[Gr,Yv];je([h({type:String})],xe.prototype,"label",void 0);je([h({type:String})],xe.prototype,"ariaLabel",void 0);je([h({type:String})],xe.prototype,"helper",void 0);je([h({type:Boolean})],xe.prototype,"outlined",void 0);je([h({type:Boolean})],xe.prototype,"disabled",void 0);je([h({type:Boolean})],xe.prototype,"error",void 0);je([h({type:Boolean})],xe.prototype,"fixedMenuPosition",void 0);je([h({type:Array})],xe.prototype,"options",void 0);je([I()],xe.prototype,"selectedOption",void 0);je([I()],xe.prototype,"optionsDisplayed",void 0);je([I()],xe.prototype,"focusOptions",void 0);je([I()],xe.prototype,"currentSearch",void 0);je([I()],xe.prototype,"lastSearchInputDate",void 0);je([F(".ft-select")],xe.prototype,"container",void 0);je([F(".ft-select--options")],xe.prototype,"optionsMenu",void 0);je([F(".ft-select--input-panel")],xe.prototype,"mainPanel",void 0);je([F("slot:not([name])")],xe.prototype,"optionsSlot",void 0)});var tx=u(()=>{"use strict"});var rx,ox=u(()=>{"use strict";zu();rx={"ft-select":xe,"ft-select-option":Je}});var ix=u(()=>{"use strict";O();ox();U(rx)});var nx=u(()=>{"use strict";zu();Fn();tx();ix()});var Ge,ax,gs=u(()=>{"use strict";_();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")},ax=R`
2153
2153
  :host {
2154
2154
  width: ${Ge.width};
2155
2155
  height: ${Ge.height};
@@ -2176,7 +2176,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2176
2176
  background-position: calc(100vw + ${Ge.glareWidth}) 0, calc(${Ge.glareWidth} * -1) 0;
2177
2177
  }
2178
2178
  }
2179
- `});var W,dx,ux,bs=u(()=>{"use strict";O();_();$o();Mn();Fn();ys();ps();hs();Vt();W={height:i.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:i.extend("--ft-search-bar-border-radius","",S.borderRadiusS),mobileOpenPosition:i.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:i.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:i.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:i.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:i.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:i.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:i.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:i.external(S.colorSurface,"Design system"),colorOnSurface:i.external(S.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.external(S.colorOnSurfaceMedium,"Design system"),colorOutline:i.external(S.colorOutline,"Design system"),colorPrimary:i.external(S.colorPrimary,"Design system"),elevation02:i.external(S.elevation02,"Design system"),buttonColor:i.external(Q.color,"Button"),buttonRippleColor:i.external(Q.rippleColor,"Button"),activeItemBorderColor:i.extend("--ft-search-bar-active-border-color","",S.colorPrimary)},dx=R`
2179
+ `});var W,sx,lx,ys=u(()=>{"use strict";O();_();$o();Mn();Fn();gs();us();fs();Vt();W={height:i.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:i.extend("--ft-search-bar-border-radius","",S.borderRadiusS),mobileOpenPosition:i.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:i.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:i.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:i.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:i.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:i.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:i.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:i.external(S.colorSurface,"Design system"),colorOnSurface:i.external(S.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.external(S.colorOnSurfaceMedium,"Design system"),colorOutline:i.external(S.colorOutline,"Design system"),colorPrimary:i.external(S.colorPrimary,"Design system"),elevation02:i.external(S.elevation02,"Design system"),buttonColor:i.external(Q.color,"Button"),buttonRippleColor:i.external(Q.rippleColor,"Button"),activeItemBorderColor:i.extend("--ft-search-bar-active-border-color","",S.colorPrimary)},sx=R`
2180
2180
  * {
2181
2181
  box-sizing: border-box;
2182
2182
  }
@@ -2369,7 +2369,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2369
2369
  ${A($.fontWeight,"bold")};
2370
2370
  }
2371
2371
 
2372
- `,ux=R`
2372
+ `,lx=R`
2373
2373
  .ft-search-bar--presets {
2374
2374
  min-width: 200px;
2375
2375
  }
@@ -2530,8 +2530,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2530
2530
  .ft-search-bar--desktop-menu .ft-search-bar--launch-search {
2531
2531
  margin: 0;
2532
2532
  }
2533
- `});var Yr,Vu=u(()=>{"use strict";_();O();ys();Yr=class extends D{render(){return b`
2534
- `}};Yr.elementDefinitions={};Yr.styles=cx});var px=u(()=>{"use strict"});var fx,hx=u(()=>{"use strict";Vu();fx={"ft-skeleton":Yr}});var mx=u(()=>{"use strict";O();hx();U(fx)});var gx=u(()=>{"use strict";Vu();ys();px();mx()});var cr,vs=u(()=>{"use strict";_();Bt();wr();O();bs();ot();cr=class{constructor(e,t=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new ae(t)}render(){let e=this.recentSearchesMatchingQuery;return b`
2533
+ `});var Yr,Hu=u(()=>{"use strict";_();O();gs();Yr=class extends D{render(){return b`
2534
+ `}};Yr.elementDefinitions={};Yr.styles=ax});var cx=u(()=>{"use strict"});var dx,ux=u(()=>{"use strict";Hu();dx={"ft-skeleton":Yr}});var px=u(()=>{"use strict";O();ux();U(dx)});var fx=u(()=>{"use strict";Hu();gs();cx();px()});var cr,bs=u(()=>{"use strict";_();Bt();wr();O();ys();ot();cr=class{constructor(e,t=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new ae(t)}render(){let e=this.recentSearchesMatchingQuery;return b`
2535
2535
  <div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
2536
2536
  id="${this.listboxId}"
2537
2537
  role="listbox"
@@ -2584,7 +2584,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2584
2584
  </div>
2585
2585
  `)}
2586
2586
  </div>
2587
- `}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,t)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(o=>o.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,t){this.searchBar.setQuery(t),this.searchBar.onLaunchSearch()}removeRecentSearch(e,t){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(o=>o.toLowerCase()!==t.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let t=e.type==="DOCUMENT"?at.file_format:at.fluid_topics,o;switch(e.type){case"MAP":o=e.editorialType==="BOOK"?Pe.BOOK:Pe.ARTICLE;break;case"DOCUMENT":o=Qa(e.mimeType,e.filenameExtension);break;case"TOPIC":o=Pe.TOPICS;break;case"HTML_PACKAGE":o=Pe.BOX_CODE;break;case"HTML_PACKAGE_PAGE":o=Pe.FILE_CODE;break}return b`
2587
+ `}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,t)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(o=>o.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,t){this.searchBar.setQuery(t),this.searchBar.onLaunchSearch()}removeRecentSearch(e,t){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(o=>o.toLowerCase()!==t.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let t=e.type==="DOCUMENT"?at.file_format:at.fluid_topics,o;switch(e.type){case"MAP":o=e.editorialType==="BOOK"?Pe.BOOK:Pe.ARTICLE;break;case"DOCUMENT":o=Za(e.mimeType,e.filenameExtension);break;case"TOPIC":o=Pe.TOPICS;break;case"HTML_PACKAGE":o=Pe.BOX_CODE;break;case"HTML_PACKAGE_PAGE":o=Pe.FILE_CODE;break}return b`
2588
2588
  <ft-icon .variant=${t} .value=${o} part="suggestion-icon"></ft-icon>
2589
2589
  `}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var t;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(t=e.querySelector("[part=suggestions]"))===null||t===void 0?void 0:t.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};cr.styles=[dn,R`
2590
2590
  .ft-search-bar--mobile .ft-search-bar--suggestions {
@@ -2676,7 +2676,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2676
2676
  ft-ripple {
2677
2677
  ${A(le.opacityContentOnSurfaceHover,le.opacityContentOnSurfaceSelected)}
2678
2678
  }
2679
- `]});var dr,xs=u(()=>{"use strict";_();Bt();gu();O();fs();Bu();dr=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`
2679
+ `]});var dr,vs=u(()=>{"use strict";_();Bt();mu();O();ps();Fu();dr=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`
2680
2680
  ${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?b`
2681
2681
  <ft-chip part="selected-filters selected-filter-ft-locale"
2682
2682
  ?dense=${this.searchBar.dense&&!e}
@@ -2687,20 +2687,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2687
2687
  ${this.getLocaleLabel(this.searchBar.contentLocale)}
2688
2688
  </ft-chip>
2689
2689
  `:null}
2690
- ${ye(this.searchBar.facets,n=>n.key,n=>{let a=tv(n);return ye(a,s=>{let l=n.label+": "+Xb(s),d=n.key.replace(":","-"),f=b`
2690
+ ${ye(this.searchBar.facets,n=>n.key,n=>{let a=Xb(n);return ye(a,s=>{let l=n.label+": "+Zb(s),d=n.key.replace(":","-"),f=b`
2691
2691
  <ft-chip
2692
2692
  part="selected-filters selected-filter-${d}"
2693
2693
  ?dense=${this.searchBar.dense&&!e}
2694
2694
  ?clickable=${e}
2695
2695
  ?removable=${!e}
2696
- icon=${e?T:"close"}
2696
+ icon="${e?T:"close"}"
2697
2697
  label="${l}"
2698
- title=${t?l:T}
2698
+ title="${t?l:T}"
2699
2699
  @click=${()=>this.openMobileFilters(n.key)}
2700
2700
  @icon-click=${()=>this.searchBar.setFilter(n.key,a.filter(g=>g!==s))}
2701
2701
  data-key="${n.key}"
2702
2702
  data-value="${s}">
2703
- ${Yb(s)}
2703
+ ${qb(s)}
2704
2704
  </ft-chip>
2705
2705
  `;return t?f:b`
2706
2706
  <ft-tooltip inline text="${l}">
@@ -2756,7 +2756,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2756
2756
  .ft-search-bar--selected-filters ft-chip {
2757
2757
  flex-grow: 0;
2758
2758
  }
2759
- `});var yO,$i,yx=u(()=>{"use strict";_();xs();vs();tt();O();yO=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},$i=class{constructor(e,t,o){this.searchBar=e,this.selectedFacetsManager=t??new dr(e),this.suggestManager=o??new cr(e)}render(){var e;let t={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return b`
2759
+ `});var mO,$i,hx=u(()=>{"use strict";_();vs();bs();tt();O();mO=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},$i=class{constructor(e,t,o){this.searchBar=e,this.selectedFacetsManager=t??new dr(e),this.suggestManager=o??new cr(e)}render(){var e;let t={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return b`
2760
2760
  <div class="${ge(t)}" part="container" tabindex="-1">
2761
2761
  <div class="ft-search-bar" role="search">
2762
2762
  <div class="ft-search-bar--input-container" part="input-container">
@@ -2815,7 +2815,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2815
2815
  </div>
2816
2816
  `}onSearchBarKeyDown(e){var t;switch(e.key){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}};$i.styles=R`
2817
2817
 
2818
- `;yO([Ir()],$i.prototype,"onSearchBarKeyDown",null)});var bO,Di,bx=u(()=>{"use strict";_();Bt();xs();vs();tt();O();bO=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},Di=class{constructor(e,t,o){this.searchBar=e,this.selectedFacetsManager=t??new dr(e),this.suggestManager=o??new cr(e)}render(){var e;let t={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return b`
2818
+ `;mO([Ir()],$i.prototype,"onSearchBarKeyDown",null)});var gO,Di,mx=u(()=>{"use strict";_();Bt();vs();bs();tt();O();gO=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},Di=class{constructor(e,t,o){this.searchBar=e,this.selectedFacetsManager=t??new dr(e),this.suggestManager=o??new cr(e)}render(){var e;let t={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return b`
2819
2819
  <div class="${ge(t)}" part="container" tabindex="-1">
2820
2820
  <div class="ft-search-bar" part="search-bar" role="search">
2821
2821
  ${this.renderSearchBarLeftAction()}
@@ -2894,7 +2894,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2894
2894
  </div>
2895
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)}};Di.styles=R`
2896
2896
 
2897
- `;bO([Ir()],Di.prototype,"onSearchBarKeyDown",null)});var oe,vx,Wu,vO,G,ju=u(()=>{"use strict";_();K();Bt();O();Qb();_e();gu();Lv();wr();Mv();qt();Bu();lx();fs();Hd();ot();bs();gx();vs();xs();yx();bx();wu();Wt();oe=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");vx={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"},Wu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},vO=()=>{},G=class extends D{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(vx,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new Wr(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Dt.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 cr(this),this.selectedFacetsManager=new dr(this),this.desktopSearchBarManager=new Di(this),this.mobileSearchBarManager=new $i(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new ae(10),this.updateLocalesDebouncer=new ae(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 ae(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===Dt.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
+ `;gO([Ir()],Di.prototype,"onSearchBarKeyDown",null)});var oe,gx,Vu,yO,G,Wu=u(()=>{"use strict";_();K();Bt();O();Kb();_e();mu();wv();wr();Nv();qt();Fu();nx();ps();zd();ot();ys();fx();bs();vs();hx();mx();Eu();Wt();oe=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");gx={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"},Vu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},yO=()=>{},G=class extends D{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(gx,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new Wr(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Dt.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 cr(this),this.selectedFacetsManager=new dr(this),this.desktopSearchBarManager=new Di(this),this.mobileSearchBarManager=new $i(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new ae(10),this.updateLocalesDebouncer=new ae(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 ae(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===Dt.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`
2898
2898
  <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
2899
2899
  <div class="sr-only" aria-live="polite" aria-atomic="true">
2900
2900
  ${this.renderLiveText()}
@@ -2922,7 +2922,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2922
2922
  </div>
2923
2923
  </ft-accordion-item>
2924
2924
  `:null}
2925
- ${ye(this.facets,t=>t.key,t=>{let o=mu(t),n=t.key.replace(":","-"),a=ev(o);return t.rootNodes.length>0?b`
2925
+ ${ye(this.facets,t=>t.key,t=>{let o=hu(t),n=t.key.replace(":","-"),a=Yb(o);return t.rootNodes.length>0?b`
2926
2926
  <ft-accordion-item data-facet-key="${t.key}">
2927
2927
  <div class="ft-search-bar--filter-label" slot="toggle">
2928
2928
  <ft-typography variant="button">${t.label}</ft-typography>
@@ -3015,7 +3015,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3015
3015
  ${this.getContentLocaleRadioGroup()}
3016
3016
  </div>
3017
3017
  `:T}
3018
- ${ye(this.facets,e=>e.key,e=>{let t=mu(e),o=t.options.some(a=>{var s,l;return((l=(s=a.subOptions)===null||s===void 0?void 0:s.length)!==null&&l!==void 0?l:0)>0}),n=e.key.replace(":","-");return b`
3018
+ ${ye(this.facets,e=>e.key,e=>{let t=hu(e),o=t.options.some(a=>{var s,l;return((l=(s=a.subOptions)===null||s===void 0?void 0:s.length)!==null&&l!==void 0?l:0)>0}),n=e.key.replace(":","-");return b`
3019
3019
  <ft-filter
3020
3020
  class="${o?"ft-search-bar--hierarchical-filter":""}"
3021
3021
  part="filters filter filter-${n}"
@@ -3034,14 +3034,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3034
3034
  ></ft-filter>
3035
3035
  `})}
3036
3036
  </ft-snap-scroll>
3037
- `:T}async firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",t=>{t.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var t,o,n,a,s;if(e.has("labels")&&(this.labelResolver=new $r(vx,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let l=d=>this.availableContentLocales.some(f=>f.lang==d);l(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&l(e.get("contentLocale"))?e.get("contentLocale"):(t=this.availableContentLocales[0])===null||t===void 0?void 0:t.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((o=this.presets)!==null&&o!==void 0?o:[]).forEach(l=>l.metadataFilters.forEach(d=>{d.valueFilter&&(d.valueFilter.values=d.valueFilter.values.map(f=>ds(f)))})),e.has("presets")||e.has("selectedPreset")){let l=((n=this.presets)!==null&&n!==void 0?n:[]).find(d=>d.name===this.selectedPreset);l&&!this.compareRequests(this.request,l)&&this.setFiltersFromPreset(l)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(l=>e.has(l))&&(this.selectedPreset=(s=((a=this.presets)!==null&&a!==void 0?a:[]).find(l=>this.compareRequests(l,this.request)))===null||s===void 0?void 0:s.name),["baseUrl","apiIntegrationIdentifier"].some(l=>e.has(l))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(l=>e.has(l))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(l=>e.has(l))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(l=>e.has(l))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new Wu(this.request)))}updateFacets(){this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):(this.facets=[],this.facetsLoaded=!0,this.facetsInitialized=!0)}contentAvailableCallback(e){var t,o,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((t=this.floatingContainer)===null||t===void 0||t.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(o=this.scrollingFiltersContainer)===null||o===void 0||o.scrollIndexIntoView(this.facets.findIndex(s=>s.key===this.scrollToFacet));let a=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);a&&(a.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;if(this.facetsRequest.length==0){this.facets=[];return}let t=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(o=>o.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),t.set(n.key,n)})).catch(vO)),this.facets=[];for(let o of this.facetsRequest)t.has(o.id)?this.facets.push(t.get(o.id)):this.knownFacetLabels.has(o.id)&&this.facets.push({key:o.id,label:this.knownFacetLabels.get(o.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var t;e.key==="Escape"&&(this.displayFacets=!1,(t=this.filtersOpener)===null||t===void 0||t.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(t=>t.toLowerCase()!==this.query.toLowerCase()).filter((t,o)=>o<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!bn&&this.focusInput(),z.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),z.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,t){let o=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&yt(n.rootNodes,a=>a.childNodes).forEach(a=>a.selected=t.includes(a.value))}),t.length&&o.push({key:e,valueFilter:{negative:!1,values:t}}),this.metadataFilters=o,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(t=>yt(t.rootNodes,o=>o.childNodes).forEach(o=>o.selected=!1)),this.metadataFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?T:b`
3037
+ `:T}firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",t=>{t.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var t,o,n,a,s;if(e.has("labels")&&(this.labelResolver=new $r(gx,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let l=d=>this.availableContentLocales.some(f=>f.lang==d);l(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&l(e.get("contentLocale"))?e.get("contentLocale"):(t=this.availableContentLocales[0])===null||t===void 0?void 0:t.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((o=this.presets)!==null&&o!==void 0?o:[]).forEach(l=>l.metadataFilters.forEach(d=>{d.valueFilter&&(d.valueFilter.values=d.valueFilter.values.map(f=>cs(f)))})),e.has("presets")||e.has("selectedPreset")){let l=((n=this.presets)!==null&&n!==void 0?n:[]).find(d=>d.name===this.selectedPreset);l&&!this.compareRequests(this.request,l)&&this.setFiltersFromPreset(l)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(l=>e.has(l))&&(this.selectedPreset=(s=((a=this.presets)!==null&&a!==void 0?a:[]).find(l=>this.compareRequests(l,this.request)))===null||s===void 0?void 0:s.name),["baseUrl","apiIntegrationIdentifier"].some(l=>e.has(l))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(l=>e.has(l))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(l=>e.has(l))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(l=>e.has(l))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new Vu(this.request)))}updateFacets(){this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):(this.facets=[],this.facetsLoaded=!0,this.facetsInitialized=!0)}contentAvailableCallback(e){var t,o,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((t=this.floatingContainer)===null||t===void 0||t.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(o=this.scrollingFiltersContainer)===null||o===void 0||o.scrollIndexIntoView(this.facets.findIndex(s=>s.key===this.scrollToFacet));let a=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);a&&(a.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;if(this.facetsRequest.length==0){this.facets=[];return}let t=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(o=>o.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),t.set(n.key,n)})).catch(yO)),this.facets=[];for(let o of this.facetsRequest)t.has(o.id)?this.facets.push(t.get(o.id)):this.knownFacetLabels.has(o.id)&&this.facets.push({key:o.id,label:this.knownFacetLabels.get(o.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var t;e.key==="Escape"&&(this.displayFacets=!1,(t=this.filtersOpener)===null||t===void 0||t.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(t=>t.toLowerCase()!==this.query.toLowerCase()).filter((t,o)=>o<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!bn&&this.focusInput(),z.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),z.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,t){let o=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&yt(n.rootNodes,a=>a.childNodes).forEach(a=>a.selected=t.includes(a.value))}),t.length&&o.push({key:e,valueFilter:{negative:!1,values:t}}),this.metadataFilters=o,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(t=>yt(t.rootNodes,o=>o.childNodes).forEach(o=>o.selected=!1)),this.metadataFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?T:b`
3038
3038
  <div class="ft-search-bar--floating-panel"
3039
3039
  id="ft-search-bar-floating-panel"
3040
3040
  @keyup=${this.onFloatingContainerKeyUp}
3041
3041
  part="floating-panel"
3042
3042
  tabindex="-1">
3043
3043
  ${this.renderDesktopMenu()}
3044
- </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};G.elementDefinitions={"ft-accordion":lr,"ft-accordion-item":Mt,"ft-button":j,"ft-chip":ke,"ft-filter":de,"ft-filter-option":Et,"ft-icon":Se,"ft-ripple":Z,"ft-select":xe,"ft-select-option":Je,"ft-size-watcher":St,"ft-skeleton":Yr,"ft-snap-scroll":Ne,"ft-tooltip":Ie,"ft-typography":ne,"ft-radio-group":Ot,"ft-radio":Be};G.styles=[jr,bo,dx,ux,dr.styles,cr.styles,mi];oe([h({type:Boolean})],G.prototype,"dense",void 0);oe([h()],G.prototype,"mode",void 0);oe([h({type:Boolean})],G.prototype,"forceMobileMenuOpen",void 0);oe([h({type:Boolean})],G.prototype,"forceMenuOpen",void 0);oe([h()],G.prototype,"baseUrl",void 0);oe([h()],G.prototype,"apiIntegrationIdentifier",void 0);oe([h()],G.prototype,"contentLocale",void 0);oe([I()],G.prototype,"availableContentLocales",void 0);oe([I()],G.prototype,"availableContentLocalesInitialized",void 0);oe([h()],G.prototype,"uiLocale",void 0);oe([ue({})],G.prototype,"labels",void 0);oe([ue([])],G.prototype,"displayedFilters",void 0);oe([ue([])],G.prototype,"presets",void 0);oe([h({type:String,reflect:!0})],G.prototype,"selectedPreset",void 0);oe([ue([])],G.prototype,"priors",void 0);oe([h()],G.prototype,"searchRequestSerializer",void 0);oe([h({type:Boolean})],G.prototype,"focusOnDisplay",void 0);oe([I()],G.prototype,"metadataFilters",void 0);oe([I()],G.prototype,"sizeCategory",void 0);oe([I()],G.prototype,"displayFacets",void 0);oe([I()],G.prototype,"mobileMenuOpen",void 0);oe([I()],G.prototype,"facets",void 0);oe([I()],G.prototype,"facetsInitialized",void 0);oe([F(".ft-search-bar--container")],G.prototype,"container",void 0);oe([F(".ft-search-bar--filters-opener")],G.prototype,"filtersOpener",void 0);oe([F(".ft-search-bar--floating-panel")],G.prototype,"floatingContainer",void 0);oe([F("ft-snap-scroll.ft-search-bar--filters-container")],G.prototype,"scrollingFiltersContainer",void 0);oe([F(".ft-search-bar--input")],G.prototype,"input",void 0);oe([F(".ft-search-bar--launch-search")],G.prototype,"launchSearchButton",void 0);oe([I()],G.prototype,"query",void 0);oe([I()],G.prototype,"suggestions",void 0);oe([I()],G.prototype,"recentSearches",void 0);oe([I()],G.prototype,"scrollToFacet",void 0);oe([I()],G.prototype,"api",void 0);oe([I()],G.prototype,"displaySuggestListbox",void 0);oe([I()],G.prototype,"selectedSuggestOptionId",void 0);oe([I()],G.prototype,"selectedSuggestRemoveRecent",void 0);oe([I()],G.prototype,"facetsLoaded",void 0)});var xx=u(()=>{"use strict"});var Sx,Cx=u(()=>{"use strict";ju();Sx={"ft-search-bar":G}});var Ox=u(()=>{"use strict";O();Cx();U(Sx)});var Ex=u(()=>{"use strict";ju();bs();xx();Ox()});var wx,Rx=u(()=>{"use strict";_();kn();O();ot();Ex();wx=R`
3044
+ </div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};G.elementDefinitions={"ft-accordion":lr,"ft-accordion-item":Mt,"ft-button":j,"ft-chip":ke,"ft-filter":de,"ft-filter-option":Et,"ft-icon":Se,"ft-ripple":Z,"ft-select":xe,"ft-select-option":Je,"ft-size-watcher":St,"ft-skeleton":Yr,"ft-snap-scroll":Ne,"ft-tooltip":Ie,"ft-typography":ne,"ft-radio-group":Ot,"ft-radio":Be};G.styles=[jr,bo,sx,lx,dr.styles,cr.styles,mi];oe([h({type:Boolean})],G.prototype,"dense",void 0);oe([h()],G.prototype,"mode",void 0);oe([h({type:Boolean})],G.prototype,"forceMobileMenuOpen",void 0);oe([h({type:Boolean})],G.prototype,"forceMenuOpen",void 0);oe([h()],G.prototype,"baseUrl",void 0);oe([h()],G.prototype,"apiIntegrationIdentifier",void 0);oe([h()],G.prototype,"contentLocale",void 0);oe([I()],G.prototype,"availableContentLocales",void 0);oe([I()],G.prototype,"availableContentLocalesInitialized",void 0);oe([h()],G.prototype,"uiLocale",void 0);oe([ue({})],G.prototype,"labels",void 0);oe([ue([])],G.prototype,"displayedFilters",void 0);oe([ue([])],G.prototype,"presets",void 0);oe([h({type:String,reflect:!0})],G.prototype,"selectedPreset",void 0);oe([ue([])],G.prototype,"priors",void 0);oe([h()],G.prototype,"searchRequestSerializer",void 0);oe([h({type:Boolean})],G.prototype,"focusOnDisplay",void 0);oe([I()],G.prototype,"metadataFilters",void 0);oe([I()],G.prototype,"sizeCategory",void 0);oe([I()],G.prototype,"displayFacets",void 0);oe([I()],G.prototype,"mobileMenuOpen",void 0);oe([I()],G.prototype,"facets",void 0);oe([I()],G.prototype,"facetsInitialized",void 0);oe([F(".ft-search-bar--container")],G.prototype,"container",void 0);oe([F(".ft-search-bar--filters-opener")],G.prototype,"filtersOpener",void 0);oe([F(".ft-search-bar--floating-panel")],G.prototype,"floatingContainer",void 0);oe([F("ft-snap-scroll.ft-search-bar--filters-container")],G.prototype,"scrollingFiltersContainer",void 0);oe([F(".ft-search-bar--input")],G.prototype,"input",void 0);oe([F(".ft-search-bar--launch-search")],G.prototype,"launchSearchButton",void 0);oe([I()],G.prototype,"query",void 0);oe([I()],G.prototype,"suggestions",void 0);oe([I()],G.prototype,"recentSearches",void 0);oe([I()],G.prototype,"scrollToFacet",void 0);oe([I()],G.prototype,"api",void 0);oe([I()],G.prototype,"displaySuggestListbox",void 0);oe([I()],G.prototype,"selectedSuggestOptionId",void 0);oe([I()],G.prototype,"selectedSuggestRemoveRecent",void 0);oe([I()],G.prototype,"facetsLoaded",void 0)});var yx=u(()=>{"use strict"});var bx,vx=u(()=>{"use strict";Wu();bx={"ft-search-bar":G}});var xx=u(()=>{"use strict";O();vx();U(bx)});var Sx=u(()=>{"use strict";Wu();ys();yx();xx()});var Cx,Ox=u(()=>{"use strict";_();kn();O();ot();Sx();Cx=R`
3045
3045
  * {
3046
3046
  box-sizing: border-box;
3047
3047
  }
@@ -3095,7 +3095,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3095
3095
  ft-ripple {
3096
3096
  ${A(le.opacityContentOnSurfaceHover,le.opacityContentOnSurfaceSelected)}
3097
3097
  }
3098
- `});var Xr,Ax=u(()=>{"use strict";O();_();Rx();Bt();wr();ot();_e();Wt();du();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`
3098
+ `});var Xr,Ex=u(()=>{"use strict";O();_();Ox();Bt();wr();ot();_e();Wt();cu();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`
3099
3099
  <div class="ft-search-input-suggestion ft-word-wrap"
3100
3100
  id="${this.listboxId}"
3101
3101
  role="listbox"
@@ -3104,7 +3104,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3104
3104
  ${ye(o,n=>n,(n,a)=>this.renderRecentQuery(a,n,t))}
3105
3105
  ${ye((e=this.ftSearchInput.suggestResults)!==null&&e!==void 0?e:[],n=>n.value,(n,a)=>this.renderSuggestion(o.length+a,n,t))}
3106
3106
  </div>
3107
- `}renderRecentQuery(e,t,o){return this.renderOption(e,t,"history",at.material,!0,o)}renderSuggestion(e,t,o){let n=t.type==="DOCUMENT"?at.file_format:at.fluid_topics,a;switch(t.type){case"MAP":a=t.editorialType==="BOOK"?Pe.BOOK:Pe.ARTICLE;break;case"DOCUMENT":a=Qa(t.mimeType,t.filenameExtension);break;case"TOPIC":a=Pe.TOPICS;break;case"HTML_PACKAGE":a=Pe.BOX_CODE;break;case"HTML_PACKAGE_PAGE":a=Pe.FILE_CODE;break}return this.renderOption(e,t.value,a,n,!1,o)}renderOption(e,t,o,n,a,s){let l=this.ftSearchInput.selectedSuggestOptionIndex===e,d=this.ftSearchInput.selectedSuggestOptionRemove,f=this.ftSearchInput.launchSearchPath?s.serializeToCurrentPageIfPossible({...this.ftSearchInput.request,query:t},this.ftSearchInput.launchSearchPath):T;return b`
3107
+ `}renderRecentQuery(e,t,o){return this.renderOption(e,t,"history",at.material,!0,o)}renderSuggestion(e,t,o){let n=t.type==="DOCUMENT"?at.file_format:at.fluid_topics,a;switch(t.type){case"MAP":a=t.editorialType==="BOOK"?Pe.BOOK:Pe.ARTICLE;break;case"DOCUMENT":a=Za(t.mimeType,t.filenameExtension);break;case"TOPIC":a=Pe.TOPICS;break;case"HTML_PACKAGE":a=Pe.BOX_CODE;break;case"HTML_PACKAGE_PAGE":a=Pe.FILE_CODE;break}return this.renderOption(e,t.value,a,n,!1,o)}renderOption(e,t,o,n,a,s){let l=this.ftSearchInput.selectedSuggestOptionIndex===e,d=this.ftSearchInput.selectedSuggestOptionRemove,f=this.ftSearchInput.launchSearchPath?s.serializeToCurrentPageIfPossible({...this.ftSearchInput.request,query:t},this.ftSearchInput.launchSearchPath):T;return b`
3108
3108
  <div part="suggestion-container"
3109
3109
  class="ft-search-input-suggestion--container">
3110
3110
  <a href="${f}"
@@ -3134,7 +3134,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3134
3134
  </ft-button>
3135
3135
  `:T}
3136
3136
  </div>
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":ne,"ft-icon":Se,"ft-button":j};Xr.styles=[dn,wx]});function SO(r){let e=r.liveQuery.trim().toLowerCase();return r.recentQueries.filter(t=>t.toLowerCase().includes(e)).slice(0,xO)}var Ke,xO,Ee,Gu=u(()=>{"use strict";_();O();kn();Do();Nt();du();K();tt();Ax();qt();_e();Wt();Za();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;Ee=class extends ut($t){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":ne,"ft-icon":Se,"ft-button":j};Xr.styles=[dn,Cx]});function vO(r){let e=r.liveQuery.trim().toLowerCase();return r.recentQueries.filter(t=>t.toLowerCase().includes(e)).slice(0,bO)}var Ke,bO,Ee,ju=u(()=>{"use strict";_();O();kn();Do();Nt();cu();K();tt();Ex();qt();_e();Wt();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},bO=5;Ee=class extends ut($t){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`
3138
3138
  <div class="${ge(o)}" @focusout=${()=>this.forceCloseSuggestion=!1} role="search">
3139
3139
  <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
3140
3140
  <div class="ft-search-input--input-outline" part="input-outline">
@@ -3181,12 +3181,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3181
3181
  ></ft-button>
3182
3182
  </div>
3183
3183
  </div>
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)}};Ee.elementDefinitions={"ft-button":j,...Xr.elementDefinitions};Ee.styles=[jr,bo,Qd,...Xr.styles,mi];Ke([fe()],Ee.prototype,"request",void 0);Ke([fe()],Ee.prototype,"liveQuery",void 0);Ke([fe()],Ee.prototype,"suggestResults",void 0);Ke([fe({selector:SO})],Ee.prototype,"recentQuerySuggestions",void 0);Ke([I()],Ee.prototype,"forceCloseSuggestion",void 0);Ke([I()],Ee.prototype,"displaySuggestListbox",void 0);Ke([I()],Ee.prototype,"selectedSuggestOptionIndex",void 0);Ke([I()],Ee.prototype,"selectedSuggestOptionRemove",void 0);Ke([h()],Ee.prototype,"launchSearchPath",void 0);Ke([Ai()],Ee.prototype,"placeholder",void 0);Ke([h({type:Boolean})],Ee.prototype,"useCustomSearchPath",void 0);Ke([h({type:Boolean})],Ee.prototype,"triggerSearchOnClear",void 0);Ke([h({type:Boolean})],Ee.prototype,"focusOnDisplay",void 0);Ke([F(".ft-search-input--input")],Ee.prototype,"input",void 0);Ke([F('[part="launch-search-in-input"]')],Ee.prototype,"launchSearchButton",void 0);Ke([Ir()],Ee.prototype,"onSearchBarKeyDown",null);Ke([Ir()],Ee.prototype,"onSearchBarKeyUp",null)});var Lx,kx=u(()=>{"use strict";Gu();Lx={"ft-search-input":Ee}});var Tx=u(()=>{"use strict";O();kx();U(Lx)});var _x={};q(_x,{FtSearchInput:()=>Ee,FtSearchInputCssVariables:()=>be,styles:()=>Qd});var Ix=u(()=>{"use strict";kn();jb();Gu();Tx()});var CO,Ku,qu=u(()=>{"use strict";_();CO={},Ku=R`
3185
- `});var Px=u(()=>{"use strict"});var Zu,Nx=u(()=>{"use strict";Nt();Zu=ar.fromGwt("designedActionBlockAriaLabels")});var $x,Lr,Qu=u(()=>{"use strict";_();O();qu();qt();Do();Nt();Nx();Ii();$x=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 ut($t){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.neededSearchRequests=[Zt.CLUSTERED_SEARCH],this.addI18nContext(Zu)}render(){return this.isLastPage?T:b`
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)}};Ee.elementDefinitions={"ft-button":j,...Xr.elementDefinitions};Ee.styles=[jr,bo,Zd,...Xr.styles,mi];Ke([fe()],Ee.prototype,"request",void 0);Ke([fe()],Ee.prototype,"liveQuery",void 0);Ke([fe()],Ee.prototype,"suggestResults",void 0);Ke([fe({selector:vO})],Ee.prototype,"recentQuerySuggestions",void 0);Ke([I()],Ee.prototype,"forceCloseSuggestion",void 0);Ke([I()],Ee.prototype,"displaySuggestListbox",void 0);Ke([I()],Ee.prototype,"selectedSuggestOptionIndex",void 0);Ke([I()],Ee.prototype,"selectedSuggestOptionRemove",void 0);Ke([h()],Ee.prototype,"launchSearchPath",void 0);Ke([Ai()],Ee.prototype,"placeholder",void 0);Ke([h({type:Boolean})],Ee.prototype,"useCustomSearchPath",void 0);Ke([h({type:Boolean})],Ee.prototype,"triggerSearchOnClear",void 0);Ke([h({type:Boolean})],Ee.prototype,"focusOnDisplay",void 0);Ke([F(".ft-search-input--input")],Ee.prototype,"input",void 0);Ke([F('[part="launch-search-in-input"]')],Ee.prototype,"launchSearchButton",void 0);Ke([Ir()],Ee.prototype,"onSearchBarKeyDown",null);Ke([Ir()],Ee.prototype,"onSearchBarKeyUp",null)});var wx,Rx=u(()=>{"use strict";ju();wx={"ft-search-input":Ee}});var Ax=u(()=>{"use strict";O();Rx();U(wx)});var Lx={};q(Lx,{FtSearchInput:()=>Ee,FtSearchInputCssVariables:()=>be,styles:()=>Zd});var kx=u(()=>{"use strict";kn();Hb();ju();Ax()});var xO,Gu,Ku=u(()=>{"use strict";_();xO={},Gu=R`
3185
+ `});var Tx=u(()=>{"use strict"});var qu,_x=u(()=>{"use strict";Nt();qu=ar.fromGwt("designedActionBlockAriaLabels")});var Ix,Lr,Zu=u(()=>{"use strict";_();O();Ku();qt();Do();Nt();_x();Ii();Ix=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 ut($t){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.neededSearchRequests=[Zt.CLUSTERED_SEARCH],this.addI18nContext(qu)}render(){return this.isLastPage?T:b`
3186
3186
  <ft-button @click=${this.loadMore}>
3187
- ${Zu.messages.searchPageLoadMore()}
3187
+ ${qu.messages.searchPageLoadMore()}
3188
3188
  </ft-button>
3189
- `}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};Lr.elementDefinitions={"ft-button":j};Lr.styles=Ku;$x([fe({store:"search",selector:r=>{var e,t;return(t=(e=r.paging)===null||e===void 0?void 0:e.currentPage)!==null&&t!==void 0?t:1}})],Lr.prototype,"currentPage",void 0);$x([fe({store:"search",selector:r=>{var e,t;return(t=(e=r.paging)===null||e===void 0?void 0:e.isLastPage)!==null&&t!==void 0?t:!0}})],Lr.prototype,"isLastPage",void 0)});var Dx,Mx=u(()=>{"use strict";Qu();Dx={"ft-search-load-more-button":Lr}});var Fx=u(()=>{"use strict";O();Mx();U(Dx)});var Bx={};q(Bx,{FtSearchLoadMoreButton:()=>Lr,FtSearchLoadMoreButtonCssVariables:()=>CO,styles:()=>Ku});var Ux=u(()=>{"use strict";qu();Px();Qu();Fx()});var zx=u(()=>{"use strict"});var Ss,Xu,Yu,OO,Mi,Ju=u(()=>{"use strict";O();Do();K();Ss=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},Xu=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},Yu=Symbol("registerInterval"),OO=we(Symbol("toFtSearchResultComponent"),function(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setResultStateManager(n){this.resultStateManager=n}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Yu]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Yu]):this.dispatchEvent(new Xu)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=Yu,Ss([h({attribute:!1})],t.prototype,"cluster",void 0),Ss([h({attribute:!1})],t.prototype,"result",void 0),Ss([Tt()],t.prototype,"rank",void 0),Ss([h({attribute:!1,type:Boolean})],t.prototype,"openResultInNewTab",void 0),t}),Mi=class extends OO($t){}});var Bo,ep=u(()=>{"use strict";_();O();Ju();es();Ki();_e();Bo=class extends Mi{render(){var e;let t=(e=_t(this.result))===null||e===void 0?void 0:e.htmlExcerpt;return t?b`
3189
+ `}loadMore(){var e;(e=this.stateManager)===null||e===void 0||e.setPageNumber(this.currentPage+1)}};Lr.elementDefinitions={"ft-button":j};Lr.styles=Gu;Ix([fe({store:"search",selector:r=>{var e,t;return(t=(e=r.paging)===null||e===void 0?void 0:e.currentPage)!==null&&t!==void 0?t:1}})],Lr.prototype,"currentPage",void 0);Ix([fe({store:"search",selector:r=>{var e,t;return(t=(e=r.paging)===null||e===void 0?void 0:e.isLastPage)!==null&&t!==void 0?t:!0}})],Lr.prototype,"isLastPage",void 0)});var Px,Nx=u(()=>{"use strict";Zu();Px={"ft-search-load-more-button":Lr}});var $x=u(()=>{"use strict";O();Nx();U(Px)});var Dx={};q(Dx,{FtSearchLoadMoreButton:()=>Lr,FtSearchLoadMoreButtonCssVariables:()=>xO,styles:()=>Gu});var Mx=u(()=>{"use strict";Ku();Tx();Zu();$x()});var Fx=u(()=>{"use strict"});var xs,Yu,Qu,SO,Mi,Xu=u(()=>{"use strict";O();Do();K();xs=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},Yu=class extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}},Qu=Symbol("registerInterval"),SO=we(Symbol("toFtSearchResultComponent"),function(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setResultStateManager(n){this.resultStateManager=n}unregisterResultStateManager(){this.resultStateManager&&(this.resultStateManager.unregisterComponent(this),this.resultStateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Qu]=window.setInterval(()=>this.tryToRegisterToResultContext(),50)}tryToRegisterToResultContext(){this.result!=null?window.clearInterval(this[Qu]):this.dispatchEvent(new Yu)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterResultStateManager()}}return e=Qu,xs([h({attribute:!1})],t.prototype,"cluster",void 0),xs([h({attribute:!1})],t.prototype,"result",void 0),xs([Tt()],t.prototype,"rank",void 0),xs([h({attribute:!1,type:Boolean})],t.prototype,"openResultInNewTab",void 0),t}),Mi=class extends SO($t){}});var Bo,Ju=u(()=>{"use strict";_();O();Xu();Ja();Ki();_e();Bo=class extends Mi{render(){var e;let t=(e=_t(this.result))===null||e===void 0?void 0:e.htmlExcerpt;return t?b`
3190
3190
  <ft-typography variant="${he.body1}" part="text">${so(t)}</ft-typography>
3191
3191
  `:b`
3192
3192
  <style>
@@ -3194,30 +3194,30 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3194
3194
  display: none !important;
3195
3195
  }
3196
3196
  </style>
3197
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(t=>t.setAttribute("part","kwicmatch"))}};Bo.elementDefinitions={"ft-typography":ne};Bo.styles=Yd});var Hx,Vx=u(()=>{"use strict";ep();Hx={"ft-search-result-abstract":Bo}});var Wx=u(()=>{"use strict";O();Vx();U(Hx)});var jx={};q(jx,{FtSearchResultAbstract:()=>Bo,FtSearchResultAbstractCssVariables:()=>Ja,styles:()=>Yd});var tp=u(()=>{"use strict";es();zx();ep();Wx()});var Gx=u(()=>{"use strict"});var EO,Jr,rp=u(()=>{"use strict";_();K();O();Ju();rs();_e();Ki();tu();_n();EO=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},Jr=class extends Mi{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():b`
3198
- <a href="${is(this.result)}"
3197
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(t=>t.setAttribute("part","kwicmatch"))}};Bo.elementDefinitions={"ft-typography":ne};Bo.styles=Qd});var Bx,Ux=u(()=>{"use strict";Ju();Bx={"ft-search-result-abstract":Bo}});var ep=u(()=>{"use strict";O();Ux();U(Bx)});var zx={};q(zx,{FtSearchResultAbstract:()=>Bo,FtSearchResultAbstractCssVariables:()=>Xa,styles:()=>Qd});var Hx=u(()=>{"use strict";Ja();Fx();Ju();ep()});var Vx=u(()=>{"use strict"});var CO,Jr,tp=u(()=>{"use strict";_();K();O();Xu();ts();_e();Ki();eu();_n();CO=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},Jr=class extends Mi{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():b`
3198
+ <a href="${os(this.result)}"
3199
3199
  @click=${this.onResultClick}
3200
3200
  @auxclick=${t=>this.onAuxClick(t)}
3201
3201
  @contextmenu=${this.onContextMenu}
3202
- target="${kb(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}"
3202
+ target="${Rb(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}"
3203
3203
  part="link">
3204
3204
  ${this.renderTitle()}
3205
3205
  </a>
3206
3206
  `:T}onAuxClick(e){e.button==1&&this.onResultClick()}renderTitle(){var e;return b`
3207
3207
  <ft-typography variant="${he.title}" part="text">${so((e=_t(this.result))===null||e===void 0?void 0:e.htmlTitle)}</ft-typography>
3208
- `}onResultClick(){this.dispatchEvent(new Ti(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new _i(this.result,this.rank))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(o=>o.setAttribute("part","kwicmatch")),!this.withoutLink&&e.has("rank")&&this.rank!=null&&!((t=this.stateManager)===null||t===void 0)&&t.store.commands.consume(`focus-result-${this.rank}`)&&(this.elementToFocus={selector:"a"})}};Jr.elementDefinitions={"ft-typography":ne};Jr.styles=Xd;EO([h({type:Boolean})],Jr.prototype,"withoutLink",void 0)});var Kx,qx=u(()=>{"use strict";rp();Kx={"ft-search-result-title":Jr}});var Zx=u(()=>{"use strict";O();qx();U(Kx)});var Qx={};q(Qx,{FtSearchResultTitle:()=>Jr,FtSearchResultTitleCssVariables:()=>ts,styles:()=>Xd});var op=u(()=>{"use strict";rs();Gx();rp();Zx()});var wO,ip,np=u(()=>{"use strict";_();wO={},ip=R`
3208
+ `}onResultClick(){this.dispatchEvent(new Ti(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new _i(this.result,this.rank))}contentAvailableCallback(e){var t;super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(o=>o.setAttribute("part","kwicmatch")),!this.withoutLink&&e.has("rank")&&this.rank!=null&&!((t=this.stateManager)===null||t===void 0)&&t.store.commands.consume(`focus-result-${this.rank}`)&&(this.elementToFocus={selector:"a"})}};Jr.elementDefinitions={"ft-typography":ne};Jr.styles=Yd;CO([h({type:Boolean})],Jr.prototype,"withoutLink",void 0)});var Wx,jx=u(()=>{"use strict";tp();Wx={"ft-search-result-title":Jr}});var rp=u(()=>{"use strict";O();jx();U(Wx)});var Gx={};q(Gx,{FtSearchResultTitle:()=>Jr,FtSearchResultTitleCssVariables:()=>es,styles:()=>Yd});var Kx=u(()=>{"use strict";ts();Vx();tp();rp()});var OO,op,ip=u(()=>{"use strict";_();OO={},op=R`
3209
3209
  [part="no-results-message"] {
3210
3210
  text-align: center;
3211
3211
  padding: 12px;
3212
3212
  }
3213
- `});var Yx=u(()=>{"use strict"});var Xx,ap=u(()=>{"use strict";_();Xx=R`
3213
+ `});var qx=u(()=>{"use strict"});var Zx,Qx=u(()=>{"use strict";_();Zx=R`
3214
3214
  a {
3215
3215
  color: inherit;
3216
3216
  text-decoration: inherit;
3217
3217
  }
3218
- `});var Jx=u(()=>{"use strict"});var Cs,e0=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,sp,ur,lp=u(()=>{"use strict";_();K();O();ap();e0();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},sp=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},ur=class extends D{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new Cs(e=>this.onResultSelected(e))}render(){return b`
3218
+ `});var Ss,Yx=u(()=>{"use strict";Ss=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 Cs,np,ur,Xx=u(()=>{"use strict";_();K();O();Qx();Yx();Cs=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},np=class extends CustomEvent{constructor(e){super("ft-search-result-cluster-change",{detail:e,bubbles:!0,composed:!0})}},ur=class extends D{constructor(){super(...arguments),this.openResultInNewTab=!1,this.index=0,this.stateManager=new Ss(e=>this.onResultSelected(e))}render(){return b`
3219
3219
  <slot @register-ft-search-result-component=${this.registerComponent}></slot>
3220
- `}onResultSelected(e){this.result=e,this.dispatchEvent(new sp(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()}};ur.elementDefinitions={};ur.styles=Xx;Os([h({attribute:!1})],ur.prototype,"cluster",void 0);Os([h({attribute:!1,type:Boolean})],ur.prototype,"openResultInNewTab",void 0);Os([I()],ur.prototype,"result",void 0);Os([h()],ur.prototype,"index",void 0)});var t0,r0=u(()=>{"use strict";lp();t0={"ft-search-result-context":ur}});var o0=u(()=>{"use strict";O();r0();U(t0)});var i0=u(()=>{"use strict";ap();Jx();lp();o0()});var Fi,n0,cp=u(()=>{"use strict";Nt();Fi=ar.build("searchResultsNumber"),n0={results:"{0} results","results[\\=1]":"1 result"}});var Uo,wt,dp=u(()=>{"use strict";_();Bt();K();O();np();Do();i0();op();tp();Nt();cp();Ii();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},wt=class extends ut($t){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>b`
3220
+ `}onResultSelected(e){this.result=e,this.dispatchEvent(new np(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()}};ur.elementDefinitions={};ur.styles=Zx;Cs([h({attribute:!1})],ur.prototype,"cluster",void 0);Cs([h({attribute:!1,type:Boolean})],ur.prototype,"openResultInNewTab",void 0);Cs([I()],ur.prototype,"result",void 0);Cs([h()],ur.prototype,"index",void 0)});var Jx,e0=u(()=>{"use strict";Xx();Jx={"ft-search-result-context":ur}});var t0=u(()=>{"use strict";O();e0();U(Jx)});var Fi,r0,ap=u(()=>{"use strict";Nt();Fi=ar.build("searchResultsNumber"),r0={results:"{0} results","results[\\=1]":"1 result"}});var Uo,wt,sp=u(()=>{"use strict";_();Bt();K();O();ip();Do();t0();rp();ep();Nt();ap();Ii();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},wt=class extends ut($t){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>b`
3221
3221
  <ft-search-result-title></ft-search-result-title>
3222
3222
  <ft-search-result-abstract></ft-search-result-abstract>
3223
3223
  `,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.neededSearchRequests=[Zt.CLUSTERED_SEARCH],this.addI18nContext(Fi)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return b`
@@ -3227,13 +3227,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3227
3227
  @ft-search-result-cluster-change=${a=>this.onClusterChange(t.id,a.detail)}>
3228
3228
  ${this.renderResult((n=this.selectedResultByCluster[t.id])!==null&&n!==void 0?n:t.entries[0],o)}
3229
3229
  </ft-search-result-context>
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&&Tc.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}};wt.styles=ip;Uo([h({type:String,attribute:"cluster-policy"})],wt.prototype,"clusterPolicy",void 0);Uo([h({type:Boolean})],wt.prototype,"displayNoResultsMessage",void 0);Uo([h({attribute:!1})],wt.prototype,"renderResult",void 0);Uo([ue([])],wt.prototype,"clusterSortCriterion",void 0);Uo([fe({selector:r=>({...r.request,paging:void 0})})],wt.prototype,"requestWithoutPaging",void 0);Uo([fe({selector:r=>r.request.paging})],wt.prototype,"paging",void 0);Uo([fe()],wt.prototype,"results",void 0)});var a0,s0=u(()=>{"use strict";dp();a0={"ft-search-results":wt}});var l0=u(()=>{"use strict";O();s0();U(a0)});var c0={};q(c0,{FtSearchResults:()=>wt,FtSearchResultsCssVariables:()=>wO,styles:()=>ip});var d0=u(()=>{"use strict";np();Yx();dp();l0()});var RO,up,pp=u(()=>{"use strict";_();RO={},up=R`
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&&kc.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}};wt.styles=op;Uo([h({type:String,attribute:"cluster-policy"})],wt.prototype,"clusterPolicy",void 0);Uo([h({type:Boolean})],wt.prototype,"displayNoResultsMessage",void 0);Uo([h({attribute:!1})],wt.prototype,"renderResult",void 0);Uo([ue([])],wt.prototype,"clusterSortCriterion",void 0);Uo([fe({selector:r=>({...r.request,paging:void 0})})],wt.prototype,"requestWithoutPaging",void 0);Uo([fe({selector:r=>r.request.paging})],wt.prototype,"paging",void 0);Uo([fe()],wt.prototype,"results",void 0)});var o0,i0=u(()=>{"use strict";sp();o0={"ft-search-results":wt}});var n0=u(()=>{"use strict";O();i0();U(o0)});var a0={};q(a0,{FtSearchResults:()=>wt,FtSearchResultsCssVariables:()=>OO,styles:()=>op});var s0=u(()=>{"use strict";ip();qx();sp();n0()});var EO,lp,cp=u(()=>{"use strict";_();EO={},lp=R`
3231
3231
 
3232
- `});var u0=u(()=>{"use strict"});var p0,kr,fp=u(()=>{"use strict";_();O();pp();Do();Nt();cp();_e();Ii();p0=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(ut($t)){constructor(){super(),this.ariaNotificationDebouncer=new ae(100),this.searchNumberOfResults={context:"officialContext",key:"searchNumberOfResults",message:""},this.neededSearchRequests=[Zt.CLUSTERED_SEARCH],this.addI18nContext(Fi,n0)}render(){return this.paging==null?T:b`
3232
+ `});var l0=u(()=>{"use strict"});var c0,kr,dp=u(()=>{"use strict";_();O();cp();Do();Nt();ap();_e();Ii();c0=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(ut($t)){constructor(){super(),this.ariaNotificationDebouncer=new ae(100),this.searchNumberOfResults={context:"officialContext",key:"searchNumberOfResults",message:""},this.neededSearchRequests=[Zt.CLUSTERED_SEARCH],this.addI18nContext(Fi,r0)}render(){return this.paging==null?T:b`
3233
3233
  <ft-typography variant="${he.body1}">
3234
3234
  ${Fi.messages.results(this.paging.totalClustersCount)}
3235
3235
  </ft-typography>
3236
- `}willUpdate(e){super.willUpdate(e),e.has("paging")&&this.ariaNotificationDebouncer.run(async()=>{if(this.paging!==void 0){let t=await this.awaitI18n({...this.searchNumberOfResults,args:[this.paging.totalClustersCount]});this.sendAriaNotification(t)}})}};kr.elementDefinitions={"ft-typography":ne};kr.styles=up;p0([ue({context:"officialContext",key:"searchNumberOfResults"})],kr.prototype,"searchNumberOfResults",void 0);p0([fe()],kr.prototype,"paging",void 0)});var f0,h0=u(()=>{"use strict";fp();f0={"ft-search-results-number":kr}});var m0=u(()=>{"use strict";O();h0();U(f0)});var g0={};q(g0,{FtSearchResultsNumber:()=>kr,FtSearchResultsNumberCssVariables:()=>RO,styles:()=>up});var y0=u(()=>{"use strict";pp();u0();fp();m0()});O();_();O();_();O();_();O();xr();var me={padding:i.create("--ft-card-padding","","SIZE","12px"),borderRadius:i.extend("--ft-card-border-radius","",S.borderRadiusM),borderStyle:i.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:i.extend("--ft-card-border-color","",S.colorOutline),hoverBorderColor:i.extend("--ft-card-hover-border-color","",S.colorPrimary),outlineStyle:i.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:i.create("--ft-card-outline-width","","SIZE","0"),outlineColor:i.extend("--ft-card-outline-color","",S.colorPrimary),selectedOutlineStyle:i.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:i.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:i.extend("--ft-card-selected-outline-color","",S.colorPrimary),selectedBorderRadius:i.extend("--ft-card-selected-border-radius","",S.borderRadiusM),colorSurface:i.extend("--ft-card-background-color","",S.colorSurface),colorOnSurfaceMedium:i.extend("--ft-card-content-color","",S.colorOnSurfaceMedium),colorOnSurfaceHigh:i.extend("--ft-card-title-color","",S.colorOnSurfaceHigh),elevation02:i.extend("--ft-card-elevation","",S.elevation02),elevation04:i.extend("--ft-card-selected-elevation","",S.elevation04)},Hg=R`
3236
+ `}willUpdate(e){super.willUpdate(e),e.has("paging")&&this.ariaNotificationDebouncer.run(async()=>{if(this.paging!==void 0){let t=await this.awaitI18n({...this.searchNumberOfResults,args:[this.paging.totalClustersCount]});this.sendAriaNotification(t)}})}};kr.elementDefinitions={"ft-typography":ne};kr.styles=lp;c0([ue({context:"officialContext",key:"searchNumberOfResults"})],kr.prototype,"searchNumberOfResults",void 0);c0([fe()],kr.prototype,"paging",void 0)});var d0,u0=u(()=>{"use strict";dp();d0={"ft-search-results-number":kr}});var p0=u(()=>{"use strict";O();u0();U(d0)});var f0={};q(f0,{FtSearchResultsNumber:()=>kr,FtSearchResultsNumberCssVariables:()=>EO,styles:()=>lp});var h0=u(()=>{"use strict";cp();l0();dp();p0()});O();_();O();_();O();_();O();xr();var me={padding:i.create("--ft-card-padding","","SIZE","12px"),borderRadius:i.extend("--ft-card-border-radius","",S.borderRadiusM),borderStyle:i.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:i.extend("--ft-card-border-color","",S.colorOutline),hoverBorderColor:i.extend("--ft-card-hover-border-color","",S.colorPrimary),outlineStyle:i.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:i.create("--ft-card-outline-width","","SIZE","0"),outlineColor:i.extend("--ft-card-outline-color","",S.colorPrimary),selectedOutlineStyle:i.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:i.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:i.extend("--ft-card-selected-outline-color","",S.colorPrimary),selectedBorderRadius:i.extend("--ft-card-selected-border-radius","",S.borderRadiusM),colorSurface:i.extend("--ft-card-background-color","",S.colorSurface),colorOnSurfaceMedium:i.extend("--ft-card-content-color","",S.colorOnSurfaceMedium),colorOnSurfaceHigh:i.extend("--ft-card-title-color","",S.colorOnSurfaceHigh),elevation02:i.extend("--ft-card-elevation","",S.elevation02),elevation04:i.extend("--ft-card-selected-elevation","",S.elevation04)},Bg=R`
3237
3237
  :host {
3238
3238
  display: block;
3239
3239
  }
@@ -3322,7 +3322,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3322
3322
  #action {
3323
3323
  grid-area: actions;
3324
3324
  }
3325
- `;kn();es();xr();rs();var Xe={searchFieldBackgroundColor:i.extend("--ft-rsid-search-field-background-color","",S.colorSurface),searchFieldBorderColor:i.extend("--ft-rsid-search-field-border-color","",S.colorOutline),searchFieldTextColor:i.extend("--ft-rsid-search-field-text-color","",S.colorOnSurface),searchFieldBorderRadius:i.extend("--ft-rsid-search-field-border-radius","",S.borderRadiusS),searchButtonColor:i.extend("--ft-rsid-search-field-button-color","",S.colorPrimary),resultsNumberColor:i.extend("--ft-rsid-results-number-color","",S.colorOnSurfaceMedium),resultBackgroundColor:i.extend("--ft-rsid-result-background-color","",S.colorSurface),resultBorderColor:i.extend("--ft-rsid-result-border-color","",S.colorOutline),resultBorderRadius:i.extend("--ft-rsid-result-border-radius","",S.borderRadiusS),resultTitleTextColor:i.extend("--ft-rsid-result-title-text-color","",S.colorOnSurface),resultBreadcrumbTextColor:i.extend("--ft-rsid-result-breadcrumb-text-color","",S.colorOnSurfaceMedium),resultContentTextColor:i.extend("--ft-rsid-result-content-text-color","",S.colorOnSurface),resultHighlightBackgroundColor:i.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:i.extend("--ft-rsid-result-hover-background-color","",S.colorPrimary),resultHoverBorderColor:i.extend("--ft-rsid-result-hover-border-color","",S.colorPrimary)},Eb=R`
3325
+ `;kn();Ja();xr();ts();var Xe={searchFieldBackgroundColor:i.extend("--ft-rsid-search-field-background-color","",S.colorSurface),searchFieldBorderColor:i.extend("--ft-rsid-search-field-border-color","",S.colorOutline),searchFieldTextColor:i.extend("--ft-rsid-search-field-text-color","",S.colorOnSurface),searchFieldBorderRadius:i.extend("--ft-rsid-search-field-border-radius","",S.borderRadiusS),searchButtonColor:i.extend("--ft-rsid-search-field-button-color","",S.colorPrimary),resultsNumberColor:i.extend("--ft-rsid-results-number-color","",S.colorOnSurfaceMedium),resultBackgroundColor:i.extend("--ft-rsid-result-background-color","",S.colorSurface),resultBorderColor:i.extend("--ft-rsid-result-border-color","",S.colorOutline),resultBorderRadius:i.extend("--ft-rsid-result-border-radius","",S.borderRadiusS),resultTitleTextColor:i.extend("--ft-rsid-result-title-text-color","",S.colorOnSurface),resultBreadcrumbTextColor:i.extend("--ft-rsid-result-breadcrumb-text-color","",S.colorOnSurfaceMedium),resultContentTextColor:i.extend("--ft-rsid-result-content-text-color","",S.colorOnSurface),resultHighlightBackgroundColor:i.create("--ft-rsid-result-highlight-background-color","","COLOR","#FFF26E"),resultHoverBackgroundColor:i.extend("--ft-rsid-result-hover-background-color","",S.colorPrimary),resultHoverBorderColor:i.extend("--ft-rsid-result-hover-border-color","",S.colorPrimary)},Sb=R`
3326
3326
  .ft-search-in-doc--container {
3327
3327
  display: flex;
3328
3328
  flex-direction: column;
@@ -3348,7 +3348,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3348
3348
  ft-search-load-more-button {
3349
3349
  margin: auto;
3350
3350
  }
3351
- `,wb=R`
3351
+ `,Cb=R`
3352
3352
  ft-card {
3353
3353
  margin-bottom: 8px;
3354
3354
  ${A(me.elevation04,"none")};
@@ -3362,7 +3362,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3362
3362
 
3363
3363
  ft-search-result-title {
3364
3364
  color: ${Xe.resultTitleTextColor};
3365
- ${A(ts.highlightBackgroundColor,Xe.resultHighlightBackgroundColor)};
3365
+ ${A(es.highlightBackgroundColor,Xe.resultHighlightBackgroundColor)};
3366
3366
  }
3367
3367
 
3368
3368
  .breadcrumb {
@@ -3371,7 +3371,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3371
3371
 
3372
3372
  ft-search-result-abstract {
3373
3373
  color: ${Xe.resultContentTextColor};
3374
- ${A(Ja.highlightBackgroundColor,Xe.resultHighlightBackgroundColor)};
3374
+ ${A(Xa.highlightBackgroundColor,Xe.resultHighlightBackgroundColor)};
3375
3375
  }
3376
3376
 
3377
3377
  ft-card:hover {
@@ -3389,7 +3389,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3389
3389
  text-decoration: none;
3390
3390
  color: inherit;
3391
3391
  }
3392
- `;Nt();O();K();var Rb;(function(r){r.clusteringHelperCreated="clustering-helper-created",r.mapAttachmentsUpdate="map-attachments-update",r.visibleTopicChange="visible-topic-change",r.requestedTopicNotFound="requested-topic-not-found"})(Rb||(Rb={}));var Ab;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Ab||(Ab={}));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},eu=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Jd=Symbol("registerInterval"),uO=we(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[Jd]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Jd]):this.dispatchEvent(new eu)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Jd,dO([I()],t.prototype,"stateManager",void 0),t}),os=class extends uO(bt){};K();tu();Nt();var ru=ar.build("designedReaderSearchInDocument");_();K();O();ot();_e();tt();var ki=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},pt=class extends D{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
+ `;Nt();O();K();var Ob;(function(r){r.clusteringHelperCreated="clustering-helper-created",r.mapAttachmentsUpdate="map-attachments-update",r.visibleTopicChange="visible-topic-change",r.requestedTopicNotFound="requested-topic-not-found"})(Ob||(Ob={}));var Eb;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Eb||(Eb={}));var lO=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},Jd=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Xd=Symbol("registerInterval"),cO=we(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[Xd]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Xd]):this.dispatchEvent(new Jd)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Xd,lO([I()],t.prototype,"stateManager",void 0),t}),rs=class extends cO(bt){};K();eu();Nt();var tu=ar.build("designedReaderSearchInDocument");_();K();O();ot();_e();tt();var ki=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},pt=class extends D{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`
3393
3393
  <div id="container" part="container" class="${ge(e)}">
3394
3394
  ${this.clickable?b`
3395
3395
  <ft-ripple primary ?selected=${this.selected}></ft-ripple>
@@ -3407,9 +3407,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3407
3407
  </ft-typography>
3408
3408
  </div>
3409
3409
  </div>
3410
- `}};pt.elementDefinitions={"ft-ripple":Z,"ft-typography":ne};pt.styles=Hg;ki([h()],pt.prototype,"title",void 0);ki([h({type:Boolean})],pt.prototype,"clickable",void 0);ki([h({type:Boolean})],pt.prototype,"selected",void 0);ki([h({type:Boolean})],pt.prototype,"noHeader",void 0);ki([h({type:Boolean})],pt.prototype,"noContent",void 0);ki([h({type:Boolean})],pt.prototype,"oneLineHeader",void 0);O();var Tb={"ft-card":pt};U(Tb);_n();_e();Za();var pr=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},et=class r extends ut(os){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.uniqueId=el(6,"search-in-document-"),this.addI18nContext(ru)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}}]}renderResult(e,t){var o;return b`
3411
- <style> ${wb}</style>
3412
- <a href="${is(e)}" @click=${()=>this.onLinkClick(e,t)}
3410
+ `}};pt.elementDefinitions={"ft-ripple":Z,"ft-typography":ne};pt.styles=Bg;ki([h()],pt.prototype,"title",void 0);ki([h({type:Boolean})],pt.prototype,"clickable",void 0);ki([h({type:Boolean})],pt.prototype,"selected",void 0);ki([h({type:Boolean})],pt.prototype,"noHeader",void 0);ki([h({type:Boolean})],pt.prototype,"noContent",void 0);ki([h({type:Boolean})],pt.prototype,"oneLineHeader",void 0);O();var Ab={"ft-card":pt};U(Ab);_n();_e();qa();var pr=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},et=class r extends ut(rs){constructor(){super(),this.searchInDocumentQuery="",this.hideResultTitle=!1,this.hideResultBreadcrumb=!1,this.hideResultAbstract=!1,this.hideResultsNumber=!1,this.emptyResultOnClear=!1,this.uniqueId=Js(6,"search-in-document-"),this.addI18nContext(tu)}get filters(){return[{key:"ft:publicationId",valueFilter:{negative:!1,values:[this.map.id]}}]}renderResult(e,t){var o;return b`
3411
+ <style> ${Cb}</style>
3412
+ <a href="${os(e)}" @click=${()=>this.onLinkClick(e,t)}
3413
3413
  @auxclick=${n=>this.onAuxClick(n,e,t)}
3414
3414
  @contextmenu=${()=>this.onContextMenu(e,t)}>
3415
3415
  <ft-card clickable noheader>
@@ -3434,7 +3434,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3434
3434
  scope="ALL_TOPICS"
3435
3435
  ignoreEmptyQuery>
3436
3436
  <div class="ft-search-in-doc--container">
3437
- <ft-search-input placeholder="${this.placeholder?this.placeholder.message:ru.messages.placeholder()}"
3437
+ <ft-search-input placeholder="${this.placeholder?this.placeholder.message:tu.messages.placeholder()}"
3438
3438
  ?triggerSearchOnClear=${this.emptyResultOnClear}
3439
3439
  @change=${e=>{var t;(t=this.stateManager)===null||t===void 0||t.setSearchInDocumentQuery(e.detail)}}></ft-search-input>
3440
3440
  ${this.hideResultsNumber?T:b`
@@ -3449,7 +3449,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3449
3449
  </slot>
3450
3450
  </div>
3451
3451
  </ft-search-context>
3452
- `:T}willUpdate(e){super.willUpdate(e),e.has("map")&&this.map&&this.initEventManager(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some(t=>e.has(t))&&this.searchResults&&this.searchResults.requestUpdate()}initEventManager(){_r(()=>{var e;return(e=this.searchContext)===null||e===void 0?void 0:e.eventManager}).then(e=>{e.setDocumentSearchFromMap(this.map),e.initAppInfo()})}onLinkClick(e,t){this.dispatchEvent(new Ti(e,t))}importDynamicDependencies(){super.importDynamicDependencies();let e=r.registry;Promise.resolve().then(()=>(Wb(),Vb)).then(({FtSearchContext:t})=>e.define("ft-search-context",t)),Promise.resolve().then(()=>(Ix(),_x)).then(({FtSearchInput:t})=>e.define("ft-search-input",t)),Promise.resolve().then(()=>(Ux(),Bx)).then(({FtSearchLoadMoreButton:t})=>e.define("ft-search-load-more-button",t)),Promise.resolve().then(()=>(tp(),jx)).then(({FtSearchResultAbstract:t})=>e.define("ft-search-result-abstract",t)),Promise.resolve().then(()=>(op(),Qx)).then(({FtSearchResultTitle:t})=>e.define("ft-search-result-title",t)),Promise.resolve().then(()=>(d0(),c0)).then(({FtSearchResults:t})=>e.define("ft-search-results",t)),Promise.resolve().then(()=>(y0(),g0)).then(({FtSearchResultsNumber:t})=>e.define("ft-search-results-number",t))}};et.elementDefinitions={"ft-card":pt};et.styles=Eb;pr([fe()],et.prototype,"map",void 0);pr([fe()],et.prototype,"searchInDocumentQuery",void 0);pr([F("ft-search-results")],et.prototype,"searchResults",void 0);pr([h({type:Boolean})],et.prototype,"hideResultTitle",void 0);pr([h({type:Boolean})],et.prototype,"hideResultBreadcrumb",void 0);pr([h({type:Boolean})],et.prototype,"hideResultAbstract",void 0);pr([h({type:Boolean})],et.prototype,"hideResultsNumber",void 0);pr([h({type:Boolean})],et.prototype,"emptyResultOnClear",void 0);pr([F('[part="search-context"]')],et.prototype,"searchContext",void 0);pr([Ai()],et.prototype,"placeholder",void 0);var b0={"ft-reader-search-in-document":et};U(b0);})();
3452
+ `:T}willUpdate(e){super.willUpdate(e),e.has("map")&&this.map&&this.initEventManager(),["hideResultTitle","hideResultBreadcrumb","hideResultAbstract"].some(t=>e.has(t))&&this.searchResults&&this.searchResults.requestUpdate()}initEventManager(){_r(()=>{var e;return(e=this.searchContext)===null||e===void 0?void 0:e.eventManager}).then(e=>{e.setDocumentSearchFromMap(this.map),e.initAppInfo()})}onLinkClick(e,t){this.dispatchEvent(new Ti(e,t))}importDynamicDependencies(){super.importDynamicDependencies();let e=r.registry;Promise.resolve().then(()=>(zb(),Ub)).then(({FtSearchContext:t})=>e.define("ft-search-context",t)),Promise.resolve().then(()=>(kx(),Lx)).then(({FtSearchInput:t})=>e.define("ft-search-input",t)),Promise.resolve().then(()=>(Mx(),Dx)).then(({FtSearchLoadMoreButton:t})=>e.define("ft-search-load-more-button",t)),Promise.resolve().then(()=>(Hx(),zx)).then(({FtSearchResultAbstract:t})=>e.define("ft-search-result-abstract",t)),Promise.resolve().then(()=>(Kx(),Gx)).then(({FtSearchResultTitle:t})=>e.define("ft-search-result-title",t)),Promise.resolve().then(()=>(s0(),a0)).then(({FtSearchResults:t})=>e.define("ft-search-results",t)),Promise.resolve().then(()=>(h0(),f0)).then(({FtSearchResultsNumber:t})=>e.define("ft-search-results-number",t))}};et.elementDefinitions={"ft-card":pt};et.styles=Sb;pr([fe()],et.prototype,"map",void 0);pr([fe()],et.prototype,"searchInDocumentQuery",void 0);pr([F("ft-search-results")],et.prototype,"searchResults",void 0);pr([h({type:Boolean})],et.prototype,"hideResultTitle",void 0);pr([h({type:Boolean})],et.prototype,"hideResultBreadcrumb",void 0);pr([h({type:Boolean})],et.prototype,"hideResultAbstract",void 0);pr([h({type:Boolean})],et.prototype,"hideResultsNumber",void 0);pr([h({type:Boolean})],et.prototype,"emptyResultOnClear",void 0);pr([F('[part="search-context"]')],et.prototype,"searchContext",void 0);pr([Ai()],et.prototype,"placeholder",void 0);var m0={"ft-reader-search-in-document":et};U(m0);})();
3453
3453
  /*! Bundled license information:
3454
3454
 
3455
3455
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js: