@fluid-topics/ft-reader-search-in-document 2.1.15 → 2.1.17

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 C0=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)C0(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,z=new Set(C.observedAttributes||[]);y(C,z,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:z};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(z=>k.resolve=z),this._whenDefinedPromises.set(E,k)),k.promise}_upgradeWhenDefined(E,C,k){let z=this._awaitingUpgrade.get(C);z||this._awaitingUpgrade.set(C,z=new Set),k?z.add(E):z.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 z=g(k)||window.customElements,ce=z._getDefinition(E);return ce?x(k,ce):a.set(k,z),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 z=E.prototype.setAttribute;z&&(E.prototype.setAttribute=function(ee,M){let V=ee.toLowerCase();if(C.has(V)){let se=this.getAttribute(V);z.call(this,V,M),k.call(this,V,se,M)}else z.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 Ke=this.getAttribute(V);k.call(this,V,se,Ke)}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(z=>{E.hasAttribute(z)&&C.attributeChangedCallback.call(E,z,null,E.getAttribute(z))}),k&&C.connectedCallback&&E.isConnected&&C.connectedCallback.call(E)},A=Element.prototype.attachShadow;Element.prototype.attachShadow=function(E){let C=A.apply(this,arguments);return E.customElements&&(C.customElements=E.customElements),C};let L=[document],P=(E,C,k=void 0)=>{let z=(k?Object.getPrototypeOf(k):E.prototype)[C];E.prototype[C]=function(){L.push(this);let ce=z.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(z){L.push(this),k.set.call(this,z),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 Ke=E.get(this);if(n.get(Ke).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 z 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,Ke)=>{let Es=se.getAttribute("name"),hp=V.get(Es)||[];this[+Ke]=se,hp.push(se),V.set(Es,hp)}),this.length=M.length,V.forEach((se,Ke)=>{se&&(se.length===1?this[Ke]=se[0]:this[Ke]=new z(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,Ui,ws,yp,zo,Jr,w,zi,zn,Hn=u(()=>{Un=globalThis,Ui=Un.ShadowRoot&&(Un.ShadyCSS===void 0||Un.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ws=Symbol(),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(Ui&&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}},Jr=r=>new zo(typeof r=="string"?r:r+"",void 0,ws),w=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((o,n,a)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[a+1],r[0]);return new zo(t,r,ws)},zi=(r,e)=>{if(Ui)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),n=Un.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)}},zn=Ui?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return Jr(t)})(r):r});var O0,E0,w0,R0,A0,L0,Vn,bp,k0,T0,Hi,Ho,Vi,vp,Rt,Vo=u(()=>{Hn();Hn();({is:O0,defineProperty:E0,getOwnPropertyDescriptor:w0,getOwnPropertyNames:R0,getOwnPropertySymbols:A0,getPrototypeOf:L0}=Object),Vn=globalThis,bp=Vn.trustedTypes,k0=bp?bp.emptyScript:"",T0=Vn.reactiveElementPolyfillSupport,Hi=(r,e)=>r,Ho={toAttribute(r,e){switch(e){case Boolean:r=r?k0:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Vi=(r,e)=>!O0(r,e),vp={attribute:!0,type:String,converter:Ho,reflect:!1,useDefault:!1,hasChanged:Vi};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&&E0(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:a}=w0(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(Hi("elementProperties")))return;let e=L0(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Hi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Hi("properties"))){let t=this.properties,o=[...R0(t),...A0(t)];for(let n of o)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,n]of t)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let n=this._$Eu(t,o);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)t.unshift(zn(n))}else e!==void 0&&t.push(zn(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return zi(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$ET(e,t){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Ho).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,n=o._$Eh.get(e);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Ho;this._$Em=n;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??Vi)(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[Hi("elementProperties")]=new Map,Rt[Hi("finalized")]=new Map,T0?.({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 oo(r,e,t=r,o){if(e===$e)return e;let n=o!==void 0?t._$Co?.[o]:t._$Cl,a=Gi(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=n:t._$Cl=n),n!==void 0&&(e=oo(r,n._$AS(r,e.values),n,o)),e}var As,xp,Wn,Sp,Ls,mr,ks,_0,ro,ji,Gi,Ts,Ap,Rs,Wi,Cp,Op,eo,Ep,wp,Lp,_s,b,Is,Ps,$e,T,Rp,to,Tp,Ki,jn,Wo,io,Gn,Kn,qn,Zn,Ns,I0,$s,At=u(()=>{As=globalThis,xp=r=>r,Wn=As.trustedTypes,Sp=Wn?Wn.createPolicy("lit-html",{createHTML:r=>r}):void 0,Ls="$lit$",mr=`lit$${Math.random().toFixed(9).slice(2)}$`,ks="?"+mr,_0=`<${ks}>`,ro=document,ji=()=>ro.createComment(""),Gi=r=>r===null||typeof r!="object"&&typeof r!="function",Ts=Array.isArray,Ap=r=>Ts(r)||typeof r?.[Symbol.iterator]=="function",Rs=`[
2
- \f\r]`,Wi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Cp=/-->/g,Op=/>/g,eo=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,to=ro.createTreeWalker(ro,129);Tp=(r,e)=>{let t=r.length-1,o=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=Wi;for(let l=0;l<t;l++){let d=r[l],f,g,m=-1,y=0;for(;y<d.length&&(s.lastIndex=y,g=s.exec(d),g!==null);)y=s.lastIndex,s===Wi?g[1]==="!--"?s=Cp:g[1]!==void 0?s=Op:g[2]!==void 0?(Lp.test(g[2])&&(n=RegExp("</"+g[2],"g")),s=eo):g[3]!==void 0&&(s=eo):s===eo?g[0]===">"?(s=n??Wi,m=-1):g[1]===void 0?m=-2:(m=s.lastIndex-g[2].length,f=g[1],s=g[3]===void 0?eo:g[3]==='"'?wp:Ep):s===wp||s===Ep?s=eo:s===Cp||s===Op?s=Wi:(s=eo,n=void 0);let v=s===eo&&r[l+1].startsWith("/>")?" ":"";a+=s===Wi?d+_0:m>=0?(o.push(f),d.slice(0,m)+Ls+d.slice(m)+mr+v):d+mr+(m===-2?l:v)}return[kp(r,a+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),o]},Ki=class r{constructor({strings:e,_$litType$:t},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[f,g]=Tp(e,t);if(this.el=r.createElement(f,o),to.currentNode=this.el.content,t===2||t===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(n=to.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(mr),x=/([.?@])?(.*)/.exec(y);d.push({type:1,index:a,name:x[2],strings:v,ctor:x[1]==="."?Gn:x[1]==="?"?Kn:x[1]==="@"?qn:io}),n.removeAttribute(m)}else m.startsWith(mr)&&(d.push({type:6,index:a}),n.removeAttribute(m));if(Lp.test(n.tagName)){let m=n.textContent.split(mr),y=m.length-1;if(y>0){n.textContent=Wn?Wn.emptyScript:"";for(let v=0;v<y;v++)n.append(m[v],ji()),to.nextNode(),d.push({type:2,index:++a});n.append(m[y],ji())}}}else if(n.nodeType===8)if(n.data===ks)d.push({type:2,index:a});else{let m=-1;for(;(m=n.data.indexOf(mr,m+1))!==-1;)d.push({type:7,index:a}),m+=mr.length-1}a++}}static createElement(e,t){let o=ro.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??ro).importNode(t,!0);to.currentNode=n;let a=to.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=to.nextNode(),s++)}return to.currentNode=ro,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=oo(this,e,t),Gi(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&&Gi(this._$AH)?this._$AA.nextSibling.data=e:this.T(ro.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Ki.createElement(kp(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new jn(n,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(e){let t=Rp.get(e.strings);return t===void 0&&Rp.set(e.strings,t=new Ki(e)),t}k(e){Ts(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let a of e)n===t.length?t.push(o=new r(this.O(ji()),this.O(ji()),this,this.options)):o=t[n],o._$AI(a),n++;n<t.length&&(this._$AR(o&&o._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let o=xp(e).nextSibling;xp(e).remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},io=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=oo(this,e,t,0),s=!Gi(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=oo(this,l[o+d],t,d),f===$e&&(f=this._$AH[d]),s||=!Gi(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 io{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===T?void 0:e}},Kn=class extends io{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==T)}},qn=class extends io{constructor(e,t,o,n,a){super(e,t,o,n,a),this.type=5}_$AI(e,t=this){if((e=oo(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){oo(this,e)}},Ns={M:Ls,P:mr,A:ks,C:1,L:Tp,R:jn,D:Ap,V:oo,I:Wo,H:io,N:Kn,U:qn,B:Gn,F:Zn},I0=As.litHtmlPolyfillSupport;I0?.(Ki,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(ji(),a),a,void 0,t??{})}return n._$AI(r),n}});var Ds,Lt,P0,_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});P0=Ds.litElementPolyfillSupport;P0?.({LitElement:Lt});_p={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(Ds.litElementVersions??=[]).push("4.2.2")});var WO,Ip=u(()=>{WO=!1});var Fs={};q(Fs,{CSSResult:()=>zo,LitElement:()=>Lt,ReactiveElement:()=>Rt,_$LE:()=>_p,_$LH:()=>Ns,adoptStyles:()=>zi,css:()=>w,defaultConverter:()=>Ho,getCompatibleStyle:()=>zn,html:()=>b,isServer:()=>WO,mathml:()=>Ps,noChange:()=>$e,notEqual:()=>Vi,nothing:()=>T,render:()=>$s,supportsAdoptingStyleSheets:()=>Ui,svg:()=>Is,unsafeCSS:()=>Jr});var _=u(()=>{Vo();At();Ms();Ip()});var N0,Pp=u(()=>{N0=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 $0,Np,Bs=u(()=>{Vo();$0={attribute:!0,type:String,converter:Ho,reflect:!1,hasChanged:Vi},Np=(r=$0,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 D0(r){return(e,t)=>{let o=typeof e=="function"?e:e[t];Object.assign(o,r)}}var Dp=u(()=>{});var Ut,jo=u(()=>{Ut=(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 Ut(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 Ut(t,o,{get(){return a(this)}})}}var Mp=u(()=>{jo();});function Us(r){return(e,t)=>Ut(e,t,{get(){return(this.renderRoot??(M0??=document.createDocumentFragment())).querySelectorAll(r)}})}var M0,Fp=u(()=>{jo();});function F0(r){return(e,t)=>Ut(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 Ut(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 Ut(e,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var zp=u(()=>{jo();});var Vs={};q(Vs,{customElement:()=>N0,eventOptions:()=>D0,property:()=>h,query:()=>F,queryAll:()=>Us,queryAssignedElements:()=>zs,queryAssignedNodes:()=>Hs,queryAsync:()=>F0,standardProperty:()=>Np,state:()=>I});var K=u(()=>{Pp();Bs();$p();Dp();Mp();Fp();Bp();Up();zp()});var Xt,ht,kt,no=u(()=>{Xt={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 B0,Hp,Wp,Vp,Go,Tr,U0,jp,Gp,Qn,Ws=u(()=>{At();({I:B0}=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 B0(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),U0={},jp=(r,e=U0)=>r._$AH=e,Gp=r=>r._$AH,Qn=r=>{r._$AR(),r._$AA.remove()}});var Kp,ye,qp=u(()=>{At();no();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!==Xt.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,e,t){let o;t===void 0?t=e:e!==void 0&&(o=e);let n=[],a=[],s=0;for(let l of r)n[s]=o?o(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:n}}render(r,e,t){return this.dt(r,e,t).values}update(r,[e,t,o]){let n=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 A=g.get(s[v]),L=A!==void 0?n[A]: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[A]=null;v++}else Qn(n[y]),y--;else Qn(n[m]),m++;for(;v<=x;){let A=Go(r,d[x+1]);Tr(A,a[v]),d[v++]=A}for(;m<=y;){let A=n[m++];A!==null&&Qn(A)}return this.ut=s,jp(r,d),$e}})});var js={};q(js,{repeat:()=>ye});var zt=u(()=>{qp()});var ge,Zp=u(()=>{At();no();ge=ht(class extends kt{constructor(r){if(super(r),r.type!==Xt.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in e)e[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(e)}let t=r.element.classList;for(let o of this.st)o in e||(t.remove(o),this.st.delete(o));for(let o in e){let n=!!e[o];n===this.st.has(o)||this.nt?.has(o)||(n?(t.add(o),this.st.add(o)):(t.remove(o),this.st.delete(o)))}return $e}})});var Gs={};q(Gs,{classMap:()=>ge});var tt=u(()=>{Zp()});var Qp,z0,H0,Yp=u(()=>{At();no();Qp="important",z0=" !"+Qp,H0=ht(class extends kt{constructor(r){if(super(r),r.type!==Xt.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((e,t)=>{let o=r[t];return o==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(r,[e]){let{style:t}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let o of this.ft)e[o]==null&&(this.ft.delete(o),o.includes("-")?t.removeProperty(o):t[o]=null);for(let o in e){let n=e[o];if(n!=null){this.ft.add(o);let a=typeof n=="string"&&n.endsWith(z0);o.includes("-")||a?t.setProperty(o,a?n.slice(0,-11):n,a?Qp:""):t[o]=n}}return $e}})});var Ks={};q(Ks,{styleMap:()=>H0});var Xp=u(()=>{Yp()});var Ko,ao,Jp=u(()=>{At();no();Ko=class extends kt{constructor(e){if(super(e),this.it=T,e.type!==Xt.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;ao=ht(Ko)});var qs={};q(qs,{UnsafeHTMLDirective:()=>Ko,unsafeHTML:()=>ao});var qi=u(()=>{Jp()});var Zs={};q(Zs,{CancelablePromise:()=>Yn,CanceledPromiseError:()=>Jt,cancelable:()=>qo});var Jt,Yn,qo,Xn=u(()=>{"use strict";Jt=class extends Error{constructor(e,t,o){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=o}},Yn=class extends Promise{constructor(e){super((t,o)=>e(n=>{this.isCanceled?o(new Jt("Promise has been canceled",n)):t(n)},n=>{this.isCanceled?o(new Jt("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},qo=r=>new Yn((e,t)=>r.then(e).catch(t))});var Qs={};q(Qs,{customElement:()=>Zi,dateProperty:()=>W0,isNumber:()=>ef,jsonProperty:()=>ue,numberProperty:()=>Tt,optionalNumberProperty:()=>V0});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 V0(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)?gr(n,+e,a):void 0},toAttribute:e=>e==null?void 0:""+e},useDefault:!0,...r??{}})}function ef(r){return!isNaN(parseFloat(r))}function W0(r){return h({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let t=new Date(Date.parse(e));if(!isNaN(t.valueOf()))return t},toAttribute:e=>e?.toISOString()},useDefault:!0,...r??{}})}var Zi,so=u(()=>{"use strict";K();rt();Zi=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)}});var tl={};q(tl,{applyMixinOnce:()=>we,customElements:()=>U,dateReviver:()=>G0,deepCopy:()=>mt,deepEqual:()=>De,delay:()=>Jn,eventPathContainsMatchingElement:()=>Ys,everyDeep:()=>j0,flatDeep:()=>yt,forEachDeep:()=>tf,getComposedPathTo:()=>Js,hasChanged:()=>gt,ignoreComposingEvents:()=>Ir,last:()=>Xs,minmax:()=>gr,parseDate:()=>of,randomId:()=>el,someDeep:()=>rf,unslotText:()=>Zo,waitFor:()=>_r,waitUntil:()=>Qi});async function Qi(r,e=10,t=2e4){await _r(async()=>await r()||void 0,e,t)}async function _r(r,e=10,t=2e4){let o=await r(),n=performance.now(),a=n;for(;o==null&&(!t||a-n<t);)await Jn(e),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function 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 j0(r,e,t){return!rf(r,e,(o,n,a,s)=>!t(o,n,a,s))}function G0(...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 K0(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 K0(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 gr(r,e,t){return Math.min(Math.max(r,e),t)}function Xs(r){return r[r.length-1]}function Zo(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(e=>Zo(e)).join(""):r?.textContent||""}function Js(r){let e=[],t=o=>{o.stopPropagation(),e=o.composedPath()};return r.addEventListener("get-composed-path",t),r.dispatchEvent(new Event("get-composed-path",{composed:!0})),r.removeEventListener("get-composed-path",t),e}function 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))Zi(e)(t)}var Jn,rt=u(()=>{"use strict";so();Jn=r=>new Promise(e=>setTimeout(e,r))});var il={};q(il,{FtNotificationEvent:()=>Yi,PostResizeEvent:()=>ol,PreResizeEvent:()=>rl,WithEventBus:()=>yr,withEventBus:()=>ea});var Yi,rl,ol,ea,yr,Qo=u(()=>{"use strict";rt();Yi=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},rl=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ol=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}},ea=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)}}}),yr=class extends ea(Object){}});var nl={};q(nl,{CacheRegistry:()=>er,ClearCacheEvent:()=>Xi});var Xi,er,al=u(()=>{"use strict";Xn();Qo();Xi=class extends CustomEvent{constructor(e){super("clear-cache",{detail:{clearedKeys:e}})}},er=class extends yr{constructor(){super(...arguments),this.content={}}register(e,t,o=!1){var n;let a=this.content[e],s=(n=a?.status)!==null&&n!==void 0?n:"REGISTERED";this.content[e]={...a,loader:t,final:o,status:s}}registerFinal(e,t){this.register(e,t,!0)}clearAll(e=!0){return this.clearMatching(()=>!0,e)}clearMatching(e,t=!0){let o=Object.keys(this.content).filter(e).filter(n=>this.clear(n,!1)!=null);return t&&o.length>0&&this.dispatchEvent(new Xi(o)),o}clear(e,t=!0){if(this.content[e]&&!this.content[e].final)return this.forceClear(e),t&&this.dispatchEvent(new Xi([e])),e}forceClear(e){var t;let o=this.content[e];o&&(this.clearClearTimeout(e),(t=o.promise)===null||t===void 0||t.cancel(),this.content[e]={loader:o.loader,final:o.final,status:"REGISTERED"})}clearClearTimeout(e){var t,o,n;((t=this.content[e])===null||t===void 0?void 0:t.clearTimeout)!=null&&(window.clearTimeout((o=this.content[e])===null||o===void 0?void 0:o.clearTimeout),(n=this.content[e])===null||n===void 0||delete n.clearTimeout)}set(e,t,o=!1){this.forceClear(e);let n=async()=>t,a="RESOLVED";this.content[e]={loader:n,final:o,status:a,value:t}}setFinal(e,t){return this.set(e,t,!0)}async get(e,t,o){if(!this.isRegistered(e)){if(!t)throw new Error("Unknown cache key "+e);this.register(e,t)}let n=this.content[e];switch(n.status){case"ERROR":throw n.error;case"LOADING":return n.promise;case"RESOLVED":return n.value;case"REGISTERED":return t=t??n.loader,n.status="LOADING",n.promise=qo(t()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,o!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),o)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var t;return(t=this.content[e])===null||t===void 0?void 0:t.value}has(e){var t,o;return((t=this.content[e])===null||t===void 0?void 0:t.status)!==void 0&&((o=this.content[e])===null||o===void 0?void 0:o.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var t;return((t=this.content[e])===null||t===void 0?void 0:t.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}}});var ll={};q(ll,{accessBreadcrumb:()=>q0,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 q0(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 R(r,e){return Pr(`${r.name}: ${e}`)}var Pr,i,te=u(()=>{_();Pr=r=>typeof r=="string"?Jr(r):r,i=class{static create(e,t,o,n){let a=l=>Pr(l??n),s=w`var(${Pr(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.set=l=>R(s,l??a(n)),s.get=l=>w`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=w`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=>R(s,l??a(n)),s.get=l=>w`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=w`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=>w`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,Z0,Q0,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")},Z0={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},Q0=["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 Y0,Sf=u(()=>{te();ie();pe();Y0={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 X0,Cf=u(()=>{te();ie();pe();X0={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 J0,Of=u(()=>{te();ie();pe();J0={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 eS,Ef=u(()=>{te();ie();pe();eS={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 tS,wf=u(()=>{te();ie();pe();tS={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 rS,Rf=u(()=>{te();ie();pe();rS={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 oS,Af=u(()=>{te();ie();pe();oS={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 iS,Lf=u(()=>{te();ie();pe();iS={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 nS,kf=u(()=>{te();ie();pe();nS={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 aS,Tf=u(()=>{te();ie();pe();aS={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 sS,_f=u(()=>{te();ie();pe();sS={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 lS,If=u(()=>{te();ie();pe();lS={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 cS,Pf=u(()=>{te();ie();pe();cS={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 dS,Nf=u(()=>{te();ie();pe();dS={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 uS,$f=u(()=>{te();ie();pe();uS={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 pS,Df=u(()=>{te();ie();pS={contentHorizontalPadding:i.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:i.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)}});var fS,Mf=u(()=>{te();ie();pe();fS={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 hS,Ff=u(()=>{te();ie();pe();hS={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 mS,Bf=u(()=>{te();ie();pe();mS={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 gS,Uf=u(()=>{te();ie();pe();gS={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 yS,zf=u(()=>{te();ie();pe();yS={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 bS,Hf=u(()=>{te();ie();pe();bS={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 vS,Vf=u(()=>{te();ie();pe();vS={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 xS,Wf=u(()=>{te();ie();pe();xS={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 SS,jf=u(()=>{te();ie();pe();SS={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 CS,Gf=u(()=>{te();ie();pe();CS={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 OS,Kf=u(()=>{te();ie();pe();OS={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 ES,qf=u(()=>{te();ie();ES={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 wS,Zf=u(()=>{te();ie();wS={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 RS,Qf=u(()=>{te();ie();pe();RS={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 AS,Yf=u(()=>{te();ie();pe();AS={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 LS,Xf=u(()=>{te();ie();pe();LS={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 kS,Jf=u(()=>{te();ie();pe();kS={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 TS,eh=u(()=>{te();ie();TS={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 Ji,en,rh=u(()=>{(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Ji||(Ji={}));(function(r){r.large="large",r.medium="medium",r.small="small"})(en||(en={}))});var Yo=u(()=>{te();th();rh()});var gl={};q(gl,{DesignSystemFamily:()=>Ji,DesignSystemSize:()=>en,FtCssVariableFactory:()=>i,badge:()=>lS,banner:()=>sS,button:()=>Y0,card:()=>X0,chart:()=>ES,checkbox:()=>eS,chip:()=>iS,chipChoice:()=>oS,chipGroup:()=>nS,collapsible:()=>CS,combobox:()=>xS,dateRangePicker:()=>TS,drawer:()=>mS,floatingMenu:()=>vS,foundation:()=>c,link:()=>aS,modal:()=>fS,notice:()=>RS,notification:()=>LS,pageDesigner:()=>wS,pageFooter:()=>uS,pageHeader:()=>dS,pageLayout:()=>pS,popover:()=>SS,radio:()=>tS,reorderableList:()=>hS,resolveFamilyClass:()=>hl,resolveSizeClass:()=>ml,semantic:()=>p,setVariable:()=>R,switch_:()=>OS,table:()=>rS,tabs:()=>gS,textArea:()=>bS,textInput:()=>yS,titleBreadcrumb:()=>cS,toggle:()=>AS,tooltip:()=>kS,treeList:()=>J0,typographies:()=>Z0,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:()=>Q0});var ia=u(()=>{"use strict";Yo()});var yl={};q(yl,{designSystemVariables:()=>S});var S,bl=u(()=>{"use strict";ia();S={colorPrimary:i.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:i.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:i.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:i.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:i.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:i.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:i.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:i.create("--ft-color-warning","","COLOR","#B74706"),colorError:i.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:i.create("--ft-color-success","","COLOR","#187856"),colorOutline:i.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:i.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:i.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:i.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:i.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:i.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:i.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:i.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:i.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:i.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:i.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:i.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:i.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:i.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:i.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:i.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:i.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:i.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:i.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:i.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:i.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:i.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:i.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:i.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:i.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:i.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:i.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:i.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:i.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:i.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:i.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:i.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:i.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:i.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:i.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:i.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:i.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:i.create("--ft-elevation-00","","SHADOW","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:i.create("--ft-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:i.create("--ft-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:i.create("--ft-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:i.create("--ft-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:i.create("--ft-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:i.create("--ft-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:i.create("--ft-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:i.create("--ft-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:i.create("--ft-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:i.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:i.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:i.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:i.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:i.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:i.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")}});var vl={};q(vl,{DynamicImporter:()=>na,dynamicImporter:()=>_S});var na,_S,xl=u(()=>{"use strict";na=class{async import(e){if(e)return import(e)}},_S=new na});function nh(r,e,t){return tr(r,lo(e,t))}function Xo(r,e){return typeof r=="function"?r(e):r}function co(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=co(r);return IS[e]+r.slice(e.length)}function PS(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"?PS(r):{top:r,right:r,bottom:r,left:r}}function uo(r){let{x:e,y:t,width:o,height:n}=r;return{width:o,height:n,top:t,left:e,right:e+o,bottom:t+n,x:e,y:t}}var ih,oh,Cl,lo,tr,tn,Ht,IS,aa=u(()=>{ih=["top","right","bottom","left"],oh=["start","end"],Cl=ih.reduce((r,e)=>r.concat(e,e+"-"+oh[0],e+"-"+oh[1]),[]),lo=Math.min,tr=Math.max,tn=Math.round,Ht=r=>({x:r,y:r}),IS={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=co(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=uo(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=uo(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 $S(r,e,t){return(r?[...t.filter(n=>rr(n)===r),...t.filter(n=>rr(n)!==r)]:t.filter(n=>co(n)===n)).filter(n=>r?rr(n)===r||(e?sh(n)!==n:!1):!0)}async function MS(r,e){let{placement:t,platform:o,elements:n}=r,a=await(o.isRTL==null?void 0:o.isRTL(n.floating)),s=co(t),l=rr(t),d=Jo(t)==="y",f=DS.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 NS,uh,ph,DS,fh,hh,mh,gh=u(()=>{aa();aa();NS=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 A=0;A<a.length;A++){let L=a[A];if(!L)continue;let{name:P,fn:B}=L,{x:E,y:C,data:k,reset:z}=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},z&&v<NS&&(v++,typeof z=="object"&&(z.placement&&(y=z.placement),z.rects&&(f=z.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:n}):z.rects),{x:g,y:m}=ch(f,y,d)),A=-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),A=m!==void 0||y===Cl?$S(m||null,v,y):y,L=((t=s.autoPlacement)==null?void 0:t.index)||0,P=A[L];if(P==null)return{};if(l!==P)return{reset:{placement:A[0]}};let B=await d.detectOverflow(e,x),E=ah(P,a,await(d.isRTL==null?void 0:d.isRTL(f.floating))),C=[B[co(P)],B[E[0]],B[E[1]]],k=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:P,overflows:C}],z=A[L+1];if(z)return{data:{index:L+1,overflows:k},reset:{placement:z}};let ce=k.map(M=>{let V=rr(M.placement);return[M.placement,V&&g?M.overflows.slice(0,2).reduce((se,Ke)=>se+Ke,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}}:{}}}},DS=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 MS(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],A=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&&(A=L(y,A));let P=d.fn({...e,[v]:x,[y]:A});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=co(t),g=rr(t),m=Jo(t)==="y",{width:y,height:v}=o.floating,x,A;f==="top"||f==="bottom"?(x=f,A=g===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(A=f,x=g==="end"?"top":"bottom");let L=v-d.top-d.bottom,P=y-d.left-d.right,B=lo(v-d[x],L),E=lo(y-d[A],P),C=e.middlewareData.shift,k=!C,z=B,ce=E;C!=null&&C.enabled.x&&(ce=P),C!=null&&C.enabled.y&&(z=L),k&&!g&&(m?ce=y-2*tr(d.left,d.right):z=v-2*tr(d.top,d.bottom)),await s({...e,availableWidth:ce,availableHeight:z});let J=await n.getDimensions(a.floating);return y!==J.width||v!==J.height?{reset:{rects:!0}}:{}}}}});function la(){return typeof window<"u"}function fo(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 or(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 It(r){return la()?r instanceof Element||r instanceof ct(r).Element:!1}function ir(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 ei(r){let{overflow:e,overflowX:t,overflowY:o,display:n}=Pt(r);return/auto|scroll|overlay|hidden|clip/.test(e+o+t)&&n!=="inline"&&n!=="contents"}function vh(r){return/^(table|td|th)$/.test(fo(r))}function rn(r){try{if(r.matches(":popover-open"))return!0}catch{}try{return r.matches(":modal")}catch{return!1}}function ti(r){let e=It(r)?Pt(r):r;return po(e.transform)||po(e.translate)||po(e.scale)||po(e.rotate)||po(e.perspective)||!ca()&&(po(e.backdropFilter)||po(e.filter))||FS.test(e.willChange||"")||BS.test(e.contain||"")}function xh(r){let e=br(r);for(;ir(e)&&!ho(e);){if(ti(e))return e;if(rn(e))return null;e=br(e)}return null}function ca(){return Rl==null&&(Rl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Rl}function ho(r){return/^(html|body|#document)$/.test(fo(r))}function Pt(r){return ct(r).getComputedStyle(r)}function on(r){return It(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.scrollX,scrollTop:r.scrollY}}function br(r){if(fo(r)==="html")return r;let e=r.assignedSlot||r.parentNode||yh(r)&&r.host||or(r);return yh(e)?e.host:e}function Sh(r){let e=br(r);return ho(e)?(r.ownerDocument||r).body:ir(e)&&ei(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||[],ei(n)?n:[],l&&t?sa(l):[])}else return e.concat(n,sa(n,[],t))}function da(r){return r.parent&&Object.getPrototypeOf(r.parent)?r.frameElement:null}var FS,BS,po,Rl,Al=u(()=>{FS=/transform|translate|scale|rotate|perspective|filter/,BS=/paint|layout|strict|content/,po=r=>!!r&&r!=="none"});function wh(r){let e=Pt(r),t=parseFloat(e.width)||0,o=parseFloat(e.height)||0,n=ir(r),a=n?r.offsetWidth:t,s=n?r.offsetHeight:o,l=tn(t)!==a||tn(o)!==s;return l&&(t=a,o=s),{width:t,height:o,$:l}}function Rh(r){return It(r)?r:r.contextElement}function ri(r){let e=Rh(r);if(!ir(e))return Ht(1);let t=e.getBoundingClientRect(),{width:o,height:n,$:a}=wh(e),s=(a?tn(t.width):t.width)/o,l=(a?tn(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function Ah(r){let e=ct(r);return!ca()||!e.visualViewport?US:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function zS(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==ct(r)?!1:e}function nn(r,e,t,o){e===void 0&&(e=!1),t===void 0&&(t=!1);let n=r.getBoundingClientRect(),a=Rh(r),s=Ht(1);e&&(o?It(o)&&(s=ri(o)):s=ri(r));let l=zS(a,t,o)?Ah(a):Ht(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){let y=ct(a),v=o&&It(o)?ct(o):o,x=y,A=da(x);for(;A&&o&&v!==x;){let L=ri(A),P=A.getBoundingClientRect(),B=Pt(A),E=P.left+(A.clientLeft+parseFloat(B.paddingLeft))*L.x,C=P.top+(A.clientTop+parseFloat(B.paddingTop))*L.y;d*=L.x,f*=L.y,g*=L.x,m*=L.y,d+=E,f+=C,x=ct(A),A=da(x)}}return uo({width:g,height:m,x:d,y:f})}function ua(r,e){let t=on(r).scrollLeft;return e?e.left+t:nn(or(r)).left+t}function Lh(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 HS(r){let{elements:e,rect:t,offsetParent:o,strategy:n}=r,a=n==="fixed",s=or(o),l=e?rn(e.floating):!1;if(o===s||l&&a)return t;let d={scrollLeft:0,scrollTop:0},f=Ht(1),g=Ht(0),m=ir(o);if((m||!m&&!a)&&((fo(o)!=="body"||ei(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?Lh(s,d):Ht(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 VS(r){return Array.from(r.getClientRects())}function WS(r){let e=or(r),t=on(r),o=r.ownerDocument.body,n=tr(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=tr(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-t.scrollLeft+ua(r),l=-t.scrollTop;return Pt(o).direction==="rtl"&&(s+=tr(e.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:l}}function jS(r,e){let t=ct(r),o=or(r),n=t.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,d=0;if(n){a=n.width,s=n.height;let g=ca();(!g||g&&e==="fixed")&&(l=n.offsetLeft,d=n.offsetTop)}let f=ua(o);if(f<=0){let g=o.ownerDocument,m=g.body,y=getComputedStyle(m),v=g.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,x=Math.abs(o.clientWidth-m.clientWidth-v);x<=Ch&&(a-=x)}else f<=Ch&&(a+=f);return{width:a,height:s,x:l,y:d}}function GS(r,e){let t=nn(r,!0,e==="fixed"),o=t.top+r.clientTop,n=t.left+r.clientLeft,a=ir(r)?ri(r):Ht(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,d=n*a.x,f=o*a.y;return{width:s,height:l,x:d,y:f}}function Oh(r,e,t){let o;if(e==="viewport")o=jS(r,t);else if(e==="document")o=WS(or(r));else if(It(e))o=GS(e,t);else{let n=Ah(r);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return uo(o)}function kh(r,e){let t=br(r);return t===e||!It(t)||ho(t)?!1:Pt(t).position==="fixed"||kh(t,e)}function KS(r,e){let t=e.get(r);if(t)return t;let o=sa(r,[],!1).filter(l=>It(l)&&fo(l)!=="body"),n=null,a=Pt(r).position==="fixed",s=a?br(r):r;for(;It(s)&&!ho(s);){let l=Pt(s),d=ti(s);!d&&l.position==="fixed"&&(n=null),(a?!d&&!n:!d&&l.position==="static"&&!!n&&(n.position==="absolute"||n.position==="fixed")||ei(s)&&!d&&kh(r,s))?o=o.filter(g=>g!==s):n=l,s=br(s)}return e.set(r,o),o}function qS(r){let{element:e,boundary:t,rootBoundary:o,strategy:n}=r,s=[...t==="clippingAncestors"?rn(e)?[]:KS(e,this._c):[].concat(t),o],l=Oh(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=Oh(e,s[y],n);d=tr(v.top,d),f=lo(v.right,f),g=lo(v.bottom,g),m=tr(v.left,m)}return{width:f-m,height:g-d,x:m,y:d}}function ZS(r){let{width:e,height:t}=wh(r);return{width:e,height:t}}function QS(r,e,t){let o=ir(e),n=or(e),a=t==="fixed",s=nn(r,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Ht(0);function f(){d.x=ua(n)}if(o||!o&&!a)if((fo(e)!=="body"||ei(n))&&(l=on(e)),o){let v=nn(e,!0,a,e);d.x=v.x+e.clientLeft,d.y=v.y+e.clientTop}else n&&f();a&&!o&&n&&f();let g=n&&!o&&!a?Lh(n,l):Ht(0),m=s.left+l.scrollLeft-d.x-g.x,y=s.top+l.scrollTop-d.y-g.y;return{x:m,y,width:s.width,height:s.height}}function Ll(r){return Pt(r).position==="static"}function Eh(r,e){if(!ir(r)||Pt(r).position==="fixed")return null;if(e)return e(r);let t=r.offsetParent;return or(r)===t&&(t=t.ownerDocument.body),t}function Th(r,e){let t=ct(r);if(rn(r))return t;if(!ir(r)){let n=br(r);for(;n&&!ho(n);){if(It(n)&&!Ll(n))return n;n=br(n)}return t}let o=Eh(r,e);for(;o&&vh(o)&&Ll(o);)o=Eh(o,e);return o&&ho(o)&&Ll(o)&&!ti(o)?t:o||xh(r)||t}function XS(r){return Pt(r).direction==="rtl"}var US,Ch,YS,oi,_h,kl,Ih,Ph,Tl,Nh=u(()=>{gh();aa();Al();US=Ht(0);Ch=25;YS=async function(r){let e=this.getOffsetParent||Th,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:HS,getDocumentElement:or,getClippingRect:qS,getOffsetParent:Th,getElementRects:YS,getClientRects:VS,getDimensions:ZS,getScale:ri,isElement:It,isRTL:XS},_h=fh,kl=ph,Ih=hh,Ph=mh,Tl=(r,e,t)=>{let o=new Map,n={platform:oi,...t},a={...n.platform,_c:o};return uh(r,e,{...n,platform:a})}});function Il(r){return JS(r)}function _l(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function JS(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"||ti(t)||e.tagName==="BODY"))return e}return null}var $h=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:[Ih({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:[_h(s??4),kl({allowedPlacements:o}),Ph({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";Nh();$h()});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();so();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 zi(o,e.elementStyles),o}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([t,o])=>this.defineScopedElement(t,o))}static defineScopedElement(e,t){Zi(e)(t),this.canDefineScopedElement(e)&&this.registry.define(e,t)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,t){this.scopedRegistryConstructor.defineScopedElement(e,t)}}});var Ul={};q(Ul,{shadowQuerySelector:()=>Bl,shadowQuerySelectorAll:()=>eC});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 eC(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,Bh,Dh,Mh,Uh,Fh,mo,D,ln=u(()=>{"use strict";K();so();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},Dh=Symbol("constructorPrototype"),Mh=Symbol("constructorName"),Uh=Symbol("exportpartsDebouncer"),Fh=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[Bh]=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[Uh].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[Mh]=this.constructor.name,this[Dh]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Mh]&&Object.setPrototypeOf(this,this[Dh])}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[Fh]||(t[Fh]=!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:[],A=[...v,...x].filter(d).map(L=>L.trim());for(let L of A)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(", ")}};Bh=Uh;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:()=>Hh});var zh,Hh,Hl,Wl=u(()=>{"use strict";ln();K();Yo();rt();zh=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},Hh=we(Symbol("toFtdsBase"),function(r){class e extends r{constructor(){super(...arguments),this.size=en.medium,this.family=Ji.neutral}getDesignSystemBaseClasses(){return{[hl(this.family)]:!0,[ml(this.size)]:!0}}}return zh([h()],e.prototype,"size",void 0),zh([h()],e.prototype,"family",void 0),e}),Hl=class extends Hh(D){}});var Vh={};var jl=u(()=>{"use strict"});var go,Wh=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,jh=u(()=>{Wh();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 Gh=u(()=>{jh()});var ql={};q(ql,{highlightHtml:()=>Kl,highlightHtmlColorCssVariable:()=>Kh,highlightHtmlStyles:()=>rC});function Kl(r,e,t){var o,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new tC(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 tC,Kh,rC,Zl=u(()=>{"use strict";_();Yo();Gh();tC=Gl,Kh=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),rC=w`
1
+ "use strict";(()=>{var x0=Object.defineProperty;var u=(r,e,t)=>()=>{if(t)throw t[0];try{return r&&(e=r(r=0)),e}catch(o){throw t=[o],o}};var q=(r,e)=>{for(var t in e)x0(r,t,{get:e[t],enumerable:!0})};var 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,z=new Set(C.observedAttributes||[]);y(C,z,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:z};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(z=>k.resolve=z),this._whenDefinedPromises.set(E,k)),k.promise}_upgradeWhenDefined(E,C,k){let z=this._awaitingUpgrade.get(C);z||this._awaitingUpgrade.set(C,z=new Set),k?z.add(E):z.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 z=g(k)||window.customElements,ce=z._getDefinition(E);return ce?x(k,ce):a.set(k,z),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 z=E.prototype.setAttribute;z&&(E.prototype.setAttribute=function(ee,M){let V=ee.toLowerCase();if(C.has(V)){let se=this.getAttribute(V);z.call(this,V,M),k.call(this,V,se,M)}else z.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 Ke=this.getAttribute(V);k.call(this,V,se,Ke)}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(z=>{E.hasAttribute(z)&&C.attributeChangedCallback.call(E,z,null,E.getAttribute(z))}),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 z=(k?Object.getPrototypeOf(k):E.prototype)[C];E.prototype[C]=function(){L.push(this);let ce=z.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(z){L.push(this),k.set.call(this,z),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 Ke=E.get(this);if(n.get(Ke).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 z 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,Ke)=>{let Es=se.getAttribute("name"),hp=V.get(Es)||[];this[+Ke]=se,hp.push(se),V.set(Es,hp)}),this.length=M.length,V.forEach((se,Ke)=>{se&&(se.length===1?this[Ke]=se[0]:this[Ke]=new z(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,Uo,Jr,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,Uo=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}},Jr=r=>new Uo(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 Uo(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 Jr(t)})(r):r});var S0,C0,O0,E0,w0,R0,Vn,bp,A0,L0,zi,zo,Hi,vp,Rt,Ho=u(()=>{Hn();Hn();({is:S0,defineProperty:C0,getOwnPropertyDescriptor:O0,getOwnPropertyNames:E0,getOwnPropertySymbols:w0,getPrototypeOf:R0}=Object),Vn=globalThis,bp=Vn.trustedTypes,A0=bp?bp.emptyScript:"",L0=Vn.reactiveElementPolyfillSupport,zi=(r,e)=>r,zo={toAttribute(r,e){switch(e){case Boolean:r=r?A0:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},Hi=(r,e)=>!S0(r,e),vp={attribute:!0,type:String,converter:zo,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&&C0(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:a}=O0(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get:n,set(s){let l=n?.call(this);a?.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??vp}static _$Ei(){if(this.hasOwnProperty(zi("elementProperties")))return;let e=R0(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(zi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(zi("properties"))){let t=this.properties,o=[...E0(t),...w0(t)];for(let n of o)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,n]of t)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let n=this._$Eu(t,o);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)t.unshift(zn(n))}else e!==void 0&&t.push(zn(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return 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:zo).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:zo;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,L0?.({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 oo(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=oo(r,n._$AS(r,e.values),n,o)),e}var As,xp,Wn,Sp,Ls,fr,ks,k0,ro,Wi,ji,Ts,Ap,Rs,Vi,Cp,Op,eo,Ep,wp,Lp,_s,b,Is,Ps,$e,T,Rp,to,Tp,Gi,jn,Vo,io,Gn,Kn,qn,Zn,Ns,T0,$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,k0=`<${ks}>`,ro=document,Wi=()=>ro.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,eo=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,to=ro.createTreeWalker(ro,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=eo):g[3]!==void 0&&(s=eo):s===eo?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?eo:g[3]==='"'?wp:Ep):s===wp||s===Ep?s=eo:s===Cp||s===Op?s=Vi:(s=eo,n=void 0);let v=s===eo&&r[l+1].startsWith("/>")?" ":"";a+=s===Vi?d+k0: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),to.currentNode=this.el.content,t===2||t===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(n=to.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:io}),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()),to.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=ro.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??ro).importNode(t,!0);to.currentNode=n;let a=to.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let f;d.type===2?f=new Vo(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=to.nextNode(),s++)}return to.currentNode=ro,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++}},Vo=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=oo(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(ro.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))}},io=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=oo(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=oo(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 io{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===T?void 0:e}},Kn=class extends io{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==T)}},qn=class extends io{constructor(e,t,o,n,a){super(e,t,o,n,a),this.type=5}_$AI(e,t=this){if((e=oo(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){oo(this,e)}},Ns={M:Ls,P:fr,A:ks,C:1,L:Tp,R:jn,D:Ap,V:oo,I:Vo,H:io,N:Kn,U:qn,B:Gn,F:Zn},T0=As.litHtmlPolyfillSupport;T0?.(Gi,Vo),(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 Vo(e.insertBefore(Wi(),a),a,void 0,t??{})}return n._$AI(r),n}});var Ds,Lt,_0,_p,Ms=u(()=>{Ho();Ho();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});_0=Ds.litElementPolyfillSupport;_0?.({LitElement:Lt});_p={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(Ds.litElementVersions??=[]).push("4.2.2")});var VO,Ip=u(()=>{VO=!1});var Fs={};q(Fs,{CSSResult:()=>Uo,LitElement:()=>Lt,ReactiveElement:()=>Rt,_$LE:()=>_p,_$LH:()=>Ns,adoptStyles:()=>Ui,css:()=>R,defaultConverter:()=>zo,getCompatibleStyle:()=>zn,html:()=>b,isServer:()=>VO,mathml:()=>Ps,noChange:()=>$e,notEqual:()=>Hi,nothing:()=>T,render:()=>$s,supportsAdoptingStyleSheets:()=>Bi,svg:()=>Is,unsafeCSS:()=>Jr});var _=u(()=>{Ho();At();Ms();Ip()});var I0,Pp=u(()=>{I0=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)}});function h(r){return(e,t)=>typeof t=="object"?Np(r,e,t):((o,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,o),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,e,t)}var P0,Np,Bs=u(()=>{Ho();P0={attribute:!0,type:String,converter:zo,reflect:!1,hasChanged:Hi},Np=(r=P0,e,t)=>{let{kind:o,metadata:n}=t,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),o==="setter"&&((r=Object.create(r)).wrapped=!0),a.set(t.name,r),o==="accessor"){let{name:s}=t;return{set(l){let d=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,d,r,!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 N0(r){return(e,t)=>{let o=typeof e=="function"?e:e[t];Object.assign(o,r)}}var Dp=u(()=>{});var Ft,Wo=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(()=>{Wo();});function Us(r){return(e,t)=>Ft(e,t,{get(){return(this.renderRoot??($0??=document.createDocumentFragment())).querySelectorAll(r)}})}var $0,Fp=u(()=>{Wo();});function D0(r){return(e,t)=>Ft(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}var Bp=u(()=>{Wo();});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(()=>{Wo();});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(()=>{Wo();});var Vs={};q(Vs,{customElement:()=>I0,eventOptions:()=>N0,property:()=>h,query:()=>F,queryAll:()=>Us,queryAssignedElements:()=>zs,queryAssignedNodes:()=>Hs,queryAsync:()=>D0,standardProperty:()=>Np,state:()=>I});var K=u(()=>{Pp();Bs();$p();Dp();Mp();Fp();Bp();Up();zp()});var Yt,ht,kt,no=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 M0,Hp,Wp,Vp,jo,kr,F0,jp,Gp,Qn,Ws=u(()=>{At();({I:M0}=Ns),Hp=r=>r,Wp=r=>r.strings===void 0,Vp=()=>document.createComment(""),jo=(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 M0(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==r;if(l){let d;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(d=r._$AU)!==s._$AU&&t._$AP(d)}if(a!==n||l){let d=t._$AA;for(;d!==a;){let f=Hp(d).nextSibling;Hp(o).insertBefore(d,n),d=f}}}return t},kr=(r,e,t=r)=>(r._$AI(e,t),r),F0={},jp=(r,e=F0)=>r._$AH=e,Gp=r=>r._$AH,Qn=r=>{r._$AR(),r._$AA.remove()}});var Kp,ye,qp=u(()=>{At();no();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]=kr(n[m],a[v]),m++,v++;else if(l[y]===s[x])d[x]=kr(n[y],a[x]),y--,x--;else if(l[m]===s[x])d[x]=kr(n[m],a[x]),jo(r,d[x+1],n[m]),m++,x--;else if(l[y]===s[v])d[v]=kr(n[y],a[v]),jo(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=jo(r,n[m]);kr(P,a[v]),d[v]=P}else d[v]=kr(L,a[v]),jo(r,n[m],L),n[w]=null;v++}else Qn(n[y]),y--;else Qn(n[m]),m++;for(;v<=x;){let w=jo(r,d[x+1]);kr(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();no();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,B0,U0,Yp=u(()=>{At();no();Qp="important",B0=" !"+Qp,U0=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(B0);o.includes("-")||a?t.setProperty(o,a?n.slice(0,-11):n,a?Qp:""):t[o]=n}}return $e}})});var Ks={};q(Ks,{styleMap:()=>U0});var Xp=u(()=>{Yp()});var Go,ao,Jp=u(()=>{At();no();Go=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:[]}}};Go.directiveName="unsafeHTML",Go.resultType=1;ao=ht(Go)});var qs={};q(qs,{UnsafeHTMLDirective:()=>Go,unsafeHTML:()=>ao});var Ki=u(()=>{Jp()});var Zs={};q(Zs,{CancelablePromise:()=>Yn,CanceledPromiseError:()=>Xt,cancelable:()=>Ko});var Xt,Yn,Ko,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}},Ko=r=>new Yn((e,t)=>r.then(e).catch(t))});var Qs={};q(Qs,{customElement:()=>qi,dateProperty:()=>H0,isNumber:()=>ef,jsonProperty:()=>ue,numberProperty:()=>Tt,optionalNumberProperty:()=>z0});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 z0(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 H0(r){return h({type:Object,converter:{fromAttribute:e=>{if(e==null)return;let t=new Date(Date.parse(e));if(!isNaN(t.valueOf()))return t},toAttribute:e=>e?.toISOString()},useDefault:!0,...r??{}})}var qi,so=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:()=>W0,deepCopy:()=>mt,deepEqual:()=>De,delay:()=>Jn,eventPathContainsMatchingElement:()=>Ys,everyDeep:()=>V0,flatDeep:()=>yt,forEachDeep:()=>tf,getComposedPathTo:()=>Js,hasChanged:()=>gt,ignoreComposingEvents:()=>_r,last:()=>Xs,minmax:()=>hr,parseDate:()=>of,randomId:()=>el,someDeep:()=>rf,unslotText:()=>qo,waitFor:()=>Tr,waitUntil:()=>Zi});async function Zi(r,e=10,t=2e4){await Tr(async()=>await r()||void 0,e,t)}async function Tr(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 V0(r,e,t){return!rf(r,e,(o,n,a,s)=>!t(o,n,a,s))}function W0(...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 j0(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;let t,o;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(o=t;o--!==0;)if(!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 j0(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 qo(r){return r instanceof HTMLSlotElement?r.assignedNodes().map(e=>qo(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 _r(){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";so();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,Zo=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();Zo();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=Ko(t()),n.promise.then(a=>(n.status="RESOLVED",n.value=a,o!=null&&(this.clearClearTimeout(e),n.clearTimeout=window.setTimeout(()=>this.clear(e),o)),a)).catch(a=>{var s;throw!((s=n.promise)===null||s===void 0)&&s.isCanceled||(n.status="ERROR",n.error=a),a})}}isRegistered(e){return this.content[e]!=null}getNow(e){var t;return(t=this.content[e])===null||t===void 0?void 0:t.value}has(e){var t,o;return((t=this.content[e])===null||t===void 0?void 0:t.status)!==void 0&&((o=this.content[e])===null||o===void 0?void 0:o.status)!=="REGISTERED"}resolvedKeys(){return Object.keys(this.content).filter(e=>{var t;return((t=this.content[e])===null||t===void 0?void 0:t.status)==="RESOLVED"})}resolvedValues(){return this.resolvedKeys().map(e=>this.content[e].value)}keys(){return Object.keys(this.content)}}});var ll={};q(ll,{accessBreadcrumb:()=>G0,accessResult:()=>_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 G0(r){return r?.topic?[r.topic.mapTitle,...r.topic.breadcrumb]:r?.map?[r.map.title]:r?.document?[r.document.title]:r?.htmlPackage?[r.htmlPackage.title]:r?.htmlPackagePage?[r.htmlPackagePage.packageTitle,r.htmlPackagePage.title]:[]}var ra=u(()=>{"use strict"});var ul={};q(ul,{ClusteringHelper:()=>dl,formatHierarchicalValues:()=>cl});function cl(r,e){return e&&e>1&&r.length>=e?`... > ${r[r.length-1]}`:r.join(" > ")}var dl,pl=u(()=>{"use strict";ra();dl=class r{constructor(e,t,o,n){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=o,this.metadataDescriptors=n}static findResultWithMetadataValue(e,t,o){return e?.find(n=>{var a;return((a=this.extractResultMetadata({result:n}).find(s=>s.key==t))===null||a===void 0?void 0:a.value)==o})}static extractResultMetadata(e){var t,o;let n=(o=(t=_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 Ir(`${r.name}: ${e}`)}var Ir,i,te=u(()=>{_();Ir=r=>typeof r=="string"?Jr(r):r,i=class{static create(e,t,o,n){let a=l=>Ir(l??n),s=R`var(${Ir(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(${Ir(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(${Ir(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(${Ir(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(${Ir(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(${Ir(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,K0,q0,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")},K0={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},q0=["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 Z0,Sf=u(()=>{te();ie();pe();Z0={largeHeight:i.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ftds-button-large-horizontal-padding","",c.spacing4),largeGap:i.extend("--ftds-button-large-gap","",c.spacing2),largeBorderRadius:i.extend("--ftds-button-large-border-radius","",c.borderRadiusS),largeIconSize:i.extend("--ftds-button-large-icon-size","",c.iconSize3),largeBorderWidth:i.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:i.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:i.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:i.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:i.extend("--ftds-button-medium-horizontal-padding","",c.spacing3),mediumGap:i.extend("--ftds-button-medium-gap","",c.spacing2),mediumBorderRadius:i.extend("--ftds-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:i.extend("--ftds-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:i.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:i.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:i.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:i.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-button-small-horizontal-padding","",c.spacing2),smallGap:i.extend("--ftds-button-small-gap","",c.spacing1),smallBorderRadius:i.extend("--ftds-button-small-border-radius","",c.borderRadiusS),smallIconSize:i.extend("--ftds-button-small-icon-size","",c.iconSize1),smallBorderWidth:i.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:i.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:i.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:i.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:i.extend("--ftds-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:i.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:i.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:i.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:i.extend("--ftds-button-round-border-radius","",c.borderRadiusPill),primaryBrandBackgroundColor:i.extend("--ftds-button-primary-brand-background-color","",p.backgroundActionPrimary),primaryBrandColor:i.extend("--ftds-button-primary-brand-color","",p.contentGlobalOnColor),primaryBrandIconColor:i.extend("--ftds-button-primary-brand-icon-color","",p.contentGlobalOnColor),primaryBrandStateLayerColor:i.extend("--ftds-button-primary-brand-state-layer-color","",p.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",c.opacity16),primaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",c.opacity16),primaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-primary-brand-active-state-layer-opacity","",c.opacity24),primaryBrandDisabledComponentOpacity:i.extend("--ftds-button-primary-brand-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-button-focus-focus-ring-color","",p.borderActionFocusRing),tertiaryBrandBackgroundColor:i.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:i.extend("--ftds-button-tertiary-brand-color","",p.contentActionPrimary),tertiaryBrandIconColor:i.extend("--ftds-button-tertiary-brand-icon-color","",p.contentActionPrimary),tertiaryBrandStateLayerColor:i.extend("--ftds-button-tertiary-brand-state-layer-color","",p.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",c.opacity8),tertiaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",c.opacity8),tertiaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",c.opacity16),tertiaryBrandDisabledComponentOpacity:i.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",c.opacity40),tertiaryInfoBackgroundColor:i.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:i.extend("--ftds-button-tertiary-info-color","",p.contentInfoPrimary),tertiaryInfoIconColor:i.extend("--ftds-button-tertiary-info-icon-color","",p.contentInfoPrimary),tertiaryInfoStateLayerColor:i.extend("--ftds-button-tertiary-info-state-layer-color","",p.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",c.opacity8),tertiaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",c.opacity8),tertiaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",c.opacity16),tertiaryInfoDisabledComponentOpacity:i.extend("--ftds-button-tertiary-info-disabled-component-opacity","",c.opacity40),tertiarySuccessBackgroundColor:i.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:i.extend("--ftds-button-tertiary-success-color","",p.contentSuccessPrimary),tertiarySuccessIconColor:i.extend("--ftds-button-tertiary-success-icon-color","",p.contentSuccessPrimary),tertiarySuccessStateLayerColor:i.extend("--ftds-button-tertiary-success-state-layer-color","",p.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",c.opacity8),tertiarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",c.opacity8),tertiarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",c.opacity16),tertiarySuccessDisabledComponentOpacity:i.extend("--ftds-button-tertiary-success-disabled-component-opacity","",c.opacity40),tertiaryWarningBackgroundColor:i.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:i.extend("--ftds-button-tertiary-warning-color","",p.contentWarningPrimary),tertiaryWarningIconColor:i.extend("--ftds-button-tertiary-warning-icon-color","",p.contentWarningPrimary),tertiaryWarningStateLayerColor:i.extend("--ftds-button-tertiary-warning-state-layer-color","",p.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",c.opacity8),tertiaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",c.opacity8),tertiaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",c.opacity16),tertiaryWarningDisabledComponentOpacity:i.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",c.opacity40),tertiaryErrorBackgroundColor:i.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:i.extend("--ftds-button-tertiary-error-color","",p.contentErrorPrimary),tertiaryErrorIconColor:i.extend("--ftds-button-tertiary-error-icon-color","",p.contentErrorPrimary),tertiaryErrorStateLayerColor:i.extend("--ftds-button-tertiary-error-state-layer-color","",p.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",c.opacity8),tertiaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",c.opacity8),tertiaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",c.opacity16),tertiaryErrorDisabledComponentOpacity:i.extend("--ftds-button-tertiary-error-disabled-component-opacity","",c.opacity40),tertiaryNeutralBackgroundColor:i.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:i.extend("--ftds-button-tertiary-neutral-icon-color","",p.contentGlobalSecondary),tertiaryNeutralColor:i.extend("--ftds-button-tertiary-neutral-color","",p.contentGlobalSecondary),tertiaryNeutralStateLayerColor:i.extend("--ftds-button-tertiary-neutral-state-layer-color","",p.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",c.opacity8),tertiaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",c.opacity8),tertiaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",c.opacity16),tertiaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",c.opacity40),secondaryBrandBackgroundColor:i.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:i.extend("--ftds-button-secondary-brand-color","",p.contentActionPrimary),secondaryBrandIconColor:i.extend("--ftds-button-secondary-brand-icon-color","",p.contentActionPrimary),secondaryBrandStateLayerColor:i.extend("--ftds-button-secondary-brand-state-layer-color","",p.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:i.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",c.opacity8),secondaryBrandFocusStateLayerOpacity:i.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",c.opacity8),secondaryBrandActiveStateLayerOpacity:i.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",c.opacity16),secondaryBrandDisabledComponentOpacity:i.extend("--ftds-button-secondary-brand-disabled-component-opacity","",c.opacity40),secondaryBrandBorderColor:i.extend("--ftds-button-secondary-brand-border-color","",p.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",c.opacity8),secondaryNeutralFocusStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",c.opacity8),secondaryNeutralActiveStateLayerOpacity:i.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",c.opacity16),secondaryNeutralDisabledComponentOpacity:i.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",c.opacity40),secondaryNeutralBackgroundColor:i.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:i.extend("--ftds-button-secondary-neutral-color","",p.contentGlobalSecondary),secondaryNeutralIconColor:i.extend("--ftds-button-secondary-neutral-icon-color","",p.contentGlobalSecondary),secondaryNeutralStateLayerColor:i.extend("--ftds-button-secondary-neutral-state-layer-color","",p.contentGlobalSecondary),secondaryNeutralBorderColor:i.extend("--ftds-button-secondary-neutral-border-color","",p.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:i.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",c.opacity8),secondaryInfoFocusStateLayerOpacity:i.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",c.opacity8),secondaryInfoActiveStateLayerOpacity:i.extend("--ftds-button-secondary-info-active-state-layer-opacity","",c.opacity16),secondaryInfoDisabledComponentOpacity:i.extend("--ftds-button-secondary-info-disabled-component-opacity","",c.opacity40),secondaryInfoBackgroundColor:i.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:i.extend("--ftds-button-secondary-info-border-color","",p.borderInfoPrimary),secondaryInfoColor:i.extend("--ftds-button-secondary-info-color","",p.contentInfoPrimary),secondaryInfoIconColor:i.extend("--ftds-button-secondary-info-icon-color","",p.contentInfoPrimary),secondaryInfoStateLayerColor:i.extend("--ftds-button-secondary-info-state-layer-color","",p.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:i.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",c.opacity8),secondarySuccessFocusStateLayerOpacity:i.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",c.opacity8),secondarySuccessActiveStateLayerOpacity:i.extend("--ftds-button-secondary-success-active-state-layer-opacity","",c.opacity16),secondarySuccessDisabledComponentOpacity:i.extend("--ftds-button-secondary-success-disabled-component-opacity","",c.opacity40),secondarySuccessBackgroundColor:i.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:i.extend("--ftds-button-secondary-success-border-color","",p.borderSuccessPrimary),secondarySuccessColor:i.extend("--ftds-button-secondary-success-color","",p.contentSuccessPrimary),secondarySuccessIconColor:i.extend("--ftds-button-secondary-success-icon-color","",p.contentSuccessPrimary),secondarySuccessStateLayerColor:i.extend("--ftds-button-secondary-success-state-layer-color","",p.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:i.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",c.opacity8),secondaryWarningFocusStateLayerOpacity:i.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",c.opacity8),secondaryWarningActiveStateLayerOpacity:i.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",c.opacity16),secondaryWarningDisabledComponentOpacity:i.extend("--ftds-button-secondary-warning-disabled-component-opacity","",c.opacity40),secondaryWarningBackgroundColor:i.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:i.extend("--ftds-button-secondary-warning-border-color","",p.borderWarningPrimary),secondaryWarningColor:i.extend("--ftds-button-secondary-warning-color","",p.contentWarningPrimary),secondaryWarningIconColor:i.extend("--ftds-button-secondary-warning-icon-color","",p.contentWarningPrimary),secondaryWarningStateLayerColor:i.extend("--ftds-button-secondary-warning-state-layer-color","",p.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:i.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",c.opacity8),secondaryErrorFocusStateLayerOpacity:i.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",c.opacity8),secondaryErrorActiveStateLayerOpacity:i.extend("--ftds-button-secondary-error-active-state-layer-opacity","",c.opacity16),secondaryErrorDisabledComponentOpacity:i.extend("--ftds-button-secondary-error-disabled-component-opacity","",c.opacity40),secondaryErrorBackgroundColor:i.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:i.extend("--ftds-button-secondary-error-border-color","",p.contentErrorPrimary),secondaryErrorColor:i.extend("--ftds-button-secondary-error-color","",p.contentErrorPrimary),secondaryErrorIconColor:i.extend("--ftds-button-secondary-error-icon-color","",p.contentErrorPrimary),secondaryErrorStateLayerColor:i.extend("--ftds-button-secondary-error-state-layer-color","",p.contentErrorPrimary)}});var Q0,Cf=u(()=>{te();ie();pe();Q0={borderRadius:i.extend("--ftds-card-border-radius","",c.borderRadiusS),focusFocusRingColor:i.extend("--ftds-card-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:i.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:i.extend("--ftds-card-header-title-horizontal-padding","",c.spacing4),headerTitleVerticalPadding:i.extend("--ftds-card-header-title-vertical-padding","",c.spacing3),headerActionHorizontalPadding:i.extend("--ftds-card-header-action-horizontal-padding","",c.spacing2),headerActionVerticalPadding:i.extend("--ftds-card-header-action-vertical-padding","",c.spacing2),headerActionGap:i.extend("--ftds-card-header-action-gap","",c.spacing1),bodyHorizontalPadding:i.extend("--ftds-card-body-horizontal-padding","",c.spacing4),bodyVerticalPadding:i.extend("--ftds-card-body-vertical-padding","",c.spacing4),footerActionHorizontalPadding:i.extend("--ftds-card-footer-action-horizontal-padding","",c.spacing2),footerActionVerticalPadding:i.extend("--ftds-card-footer-action-vertical-padding","",c.spacing2),footerActionGap:i.extend("--ftds-card-footer-action-gap","",c.spacing1),footerContentHorizontalPadding:i.extend("--ftds-card-footer-content-horizontal-padding","",c.spacing4),footerContentVerticalPadding:i.extend("--ftds-card-footer-content-vertical-padding","",c.spacing3),sideBarHorizontalPadding:i.extend("--ftds-card-side-bar-horizontal-padding","",c.spacing1),sideBarVerticalPadding:i.extend("--ftds-card-side-bar-vertical-padding","",c.spacing1),sideBarGap:i.extend("--ftds-card-side-bar-gap","",c.spacing1),nonSelectableBorderWidth:i.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:i.extend("--ftds-card-non-selectable-state-layer-color","",p.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:i.extend("--ftds-card-non-selectable-default-background-color","",p.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:i.extend("--ftds-card-non-selectable-default-border-color","",p.borderGlobalSecondary),nonSelectableHoverBorderColor:i.extend("--ftds-card-non-selectable-hover-border-color","",p.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:i.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",c.opacity4),nonSelectableFocusBorderColor:i.extend("--ftds-card-non-selectable-focus-border-color","",p.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:i.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",c.opacity4),internalBorderColor:i.extend("--ftds-card-internal-border-color","",p.borderGlobalSecondary),selectableUnselectedBorderWidth:i.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:i.extend("--ftds-card-selectable-unselected-state-layer-color","",p.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:i.extend("--ftds-card-selectable-unselected-default-background-color","",p.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:i.extend("--ftds-card-selectable-unselected-default-border-color","",p.borderGlobalSecondary),selectableUnselectedHoverBorderColor:i.extend("--ftds-card-selectable-unselected-hover-border-color","",p.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",c.opacity4),selectableUnselectedFocusBorderColor:i.extend("--ftds-card-selectable-unselected-focus-border-color","",p.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",c.opacity4),selectableSelectedBorderColor:i.extend("--ftds-card-selectable-selected-border-color","",p.borderActionPrimary),selectableSelectedBorderWidth:i.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:i.extend("--ftds-card-selectable-selected-state-layer-color","",p.contentActionPrimary),selectableSelectedBackgroundColor:i.extend("--ftds-card-selectable-selected-background-color","",p.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:i.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",c.opacity4),selectableSelectedHoverStateLayerOpacity:i.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",c.opacity4),selectableSelectedFocusStateLayerOpacity:i.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",c.opacity4),internalBorderWidth:i.create("--ftds-card-internal-border-width","","SIZE","1px")}});var Y0,Of=u(()=>{te();ie();pe();Y0={loadMoreIconSize:i.extend("--ftds-tree-list-load-more-icon-size","",c.iconSize2),loadMorePaddingLeft:i.extend("--ftds-tree-list-load-more-padding-left","",c.spacing6),loadMoreUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-unselected-default-border-color","",p.borderGlobalSubtle),loadMoreIconColor:i.extend("--ftds-tree-list-load-more-icon-color","",p.contentActionPrimary),loadMoreLabelColor:i.extend("--ftds-tree-list-load-more-label-color","",p.contentActionPrimary),loadMoreHoverBorderColor:i.extend("--ftds-tree-list-load-more-hover-border-color","",c.colorBrand20),loadMoreHoverBackgroundColor:i.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:i.extend("--ftds-tree-list-load-more-active-border-color","",c.colorBrand20),loadMoreActiveBackgroundColor:i.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:i.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:i.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),loadMoreLabelMarginLeft:i.extend("--ftds-tree-list-load-more-label-margin-left","",c.spacing1),nodeIconSize:i.extend("--ftds-tree-list-node-icon-size","",c.iconSize2),nodeHeight:i.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:i.extend("--ftds-tree-list-node-parent-label-margin-left","",c.spacing2),nodeParentLabelMarginRight:i.extend("--ftds-tree-list-node-parent-label-margin-right","",c.spacing2),nodeRootPaddingLeft:i.extend("--ftds-tree-list-node-root-padding-left","",c.spacing6),nodeChildPaddingLeft:i.extend("--ftds-tree-list-node-child-padding-left","",c.spacing5),nodeLeafPaddingLeft:i.extend("--ftds-tree-list-node-leaf-padding-left","",c.spacing6),nodeUnselectedDefaultBorderColor:i.extend("--ftds-tree-list-node-unselected-default-border-color","",p.borderGlobalSubtle),nodeUnselectedIconColor:i.extend("--ftds-tree-list-node-unselected-icon-color","",p.contentGlobalSecondary),nodeUnselectedLabelColor:i.extend("--ftds-tree-list-node-unselected-label-color","",p.contentGlobalSecondary),nodeUnselectedCounterColor:i.extend("--ftds-tree-list-node-unselected-counter-color","",p.contentGlobalSecondary),nodeHoverBorderColor:i.extend("--ftds-tree-list-node-hover-border-color","",p.borderActionPrimary),nodeFocusFocusRingColor:i.extend("--ftds-tree-list-node-focus-focus-ring-color","",p.borderActionFocusRing),nodeFocusOutlineWidth:i.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-selected-default-border-color","",p.borderGlobalPrimary),nodeSelectedIconColor:i.extend("--ftds-tree-list-node-selected-icon-color","",p.contentGlobalSecondary),nodeSelectedLabelColor:i.extend("--ftds-tree-list-node-selected-label-color","",p.contentGlobalPrimary),nodeSelectedCounterColor:i.extend("--ftds-tree-list-node-selected-counter-color","",p.contentGlobalSecondary),nodeSelectedBackgroundColor:i.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:i.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",p.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:i.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:i.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:i.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",p.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:i.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:i.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:i.extend("--ftds-tree-list-header-section-padding-left","",c.spacing6),headerSectionPaddingRight:i.extend("--ftds-tree-list-header-section-padding-right","",c.spacing3),headerSectionHorizontalGap:i.extend("--ftds-tree-list-header-section-horizontal-gap","",c.spacing2),headerSectionMarginBottom:i.extend("--ftds-tree-list-header-section-margin-bottom","",c.spacing2),headerSectionColor:i.extend("--ftds-tree-list-header-section-color","",p.contentGlobalPrimary),headerSectionCounterColor:i.extend("--ftds-tree-list-header-section-counter-color","",p.contentGlobalSecondary),listContainerBorderWidth:i.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:i.extend("--ftds-tree-list-list-container-background-color","",p.backgroundGlobalSurface),listContainerBorderColor:i.extend("--ftds-tree-list-list-container-border-color","",p.borderGlobalSubtle),emptyStateIllustrationWidth:i.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:i.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:i.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",c.spacing10),emptyStateContainerPaddingTop:i.extend("--ftds-tree-list-empty-state-container-padding-top","",c.spacing10),emptyStateContainerPaddingBottom:i.extend("--ftds-tree-list-empty-state-container-padding-bottom","",c.spacing10),emptyStateTitleMarginBottom:i.extend("--ftds-tree-list-empty-state-title-margin-bottom","",c.spacing2),emptyStateTitleLabelColor:i.extend("--ftds-tree-list-empty-state-title-label-color","",p.contentGlobalSecondary),emptyStateDescriptionLabelColor:i.extend("--ftds-tree-list-empty-state-description-label-color","",p.contentGlobalSecondary)}});var X0,Ef=u(()=>{te();ie();pe();X0={iconSize:i.extend("--ftds-checkbox-icon-size","",c.iconSize2),boxSize:i.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:i.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:i.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:i.extend("--ftds-checkbox-label-horizontal-gap","",c.spacing1),color:i.extend("--ftds-checkbox-color","",p.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ftds-checkbox-checked-background-color","",p.contentActionPrimary),checkedStateLayerColor:i.extend("--ftds-checkbox-checked-state-layer-color","",p.contentActionPrimary),checkedIconColor:i.extend("--ftds-checkbox-checked-icon-color","",p.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:i.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:i.extend("--ftds-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:i.extend("--ftds-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:i.extend("--ftds-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:i.extend("--ftds-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-checkbox-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:i.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:i.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:i.extend("--ftds-checkbox-horizontal-gap","",c.spacing3),helperPaddingTop:i.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:i.extend("--ftds-checkbox-helper-icon-size","",c.iconSize2),helperHorizontalGap:i.extend("--ftds-checkbox-helper-horizontal-gap","",c.spacing1),errorUncheckedBorderColor:i.extend("--ftds-checkbox-error-unchecked-border-color","",p.borderErrorPrimary),errorStateLayerColor:i.extend("--ftds-checkbox-error-state-layer-color","",p.contentErrorPrimary),errorHelperTextColor:i.extend("--ftds-checkbox-error-helper-text-color","",p.borderErrorPrimary),errorCheckedBackgroundColor:i.extend("--ftds-checkbox-error-checked-background-color","",p.contentErrorPrimary),helperTextColor:i.extend("--ftds-checkbox-helper-text-color","",p.contentGlobalSubtle),groupVerticalGap:i.extend("--ftds-checkbox-group-vertical-gap","",c.spacing3)}});var J0,wf=u(()=>{te();ie();pe();J0={circleSize:i.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:i.create("--ftds-radio-border-width","","SIZE","2px"),color:i.extend("--ftds-radio-color","",p.contentGlobalPrimary),selectedRadioColor:i.extend("--ftds-radio-selected-radio-color","",p.contentActionPrimary),selectedStateLayerColor:i.extend("--ftds-radio-selected-state-layer-color","",p.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ftds-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:i.extend("--ftds-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:i.extend("--ftds-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:i.extend("--ftds-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:i.extend("--ftds-radio-unselected-state-layer-color","",p.borderInputPrimary),unselectedBorderColor:i.extend("--ftds-radio-unselected-border-color","",p.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ftds-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ftds-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ftds-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:i.extend("--ftds-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:i.extend("--ftds-radio-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:i.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:i.extend("--ftds-radio-vertical-gap","",c.spacing3),horizontalGap:i.extend("--ftds-radio-horizontal-gap","",c.spacing3)}});var eS,Rf=u(()=>{te();ie();pe();eS={headerRowBorderWidth:i.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:i.extend("--ftds-table-header-row-background-color","",p.backgroundGlobalOnSurfaceDark),headerRowBorderColor:i.extend("--ftds-table-header-row-border-color","",p.borderGlobalPrimary),headerRowColor:i.extend("--ftds-table-header-row-color","",p.contentGlobalPrimary),dataRowBorderWidth:i.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:i.extend("--ftds-table-data-row-background-color","",p.backgroundGlobalOnSurface),dataRowBorderColor:i.extend("--ftds-table-data-row-border-color","",p.borderGlobalSubtle),dataRowColor:i.extend("--ftds-table-data-row-color","",p.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:i.extend("--ftds-table-data-row-default-hover-background-color","",c.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",c.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-default-background-color","",c.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:i.extend("--ftds-table-data-row-selectable-selected-default-border-color","",c.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:i.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",c.colorBrand20),dataRowSelectableSelectedHoverBorderColor:i.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",c.colorBrand30),dataRowSelectableSelectedColor:i.extend("--ftds-table-data-row-selectable-selected-color","",p.contentActionPrimary),dataRowClickableHoverBackgroundColor:i.extend("--ftds-table-data-row-clickable-hover-background-color","",c.colorGray30),dataRowClickableFocusBorderColor:i.extend("--ftds-table-data-row-clickable-focus-border-color","",p.borderActionFocusRing),dataRowClickableFocusBackgroundColor:i.extend("--ftds-table-data-row-clickable-focus-background-color","",c.colorGray30),dataRowClickableActiveBackgroundColor:i.extend("--ftds-table-data-row-clickable-active-background-color","",c.colorGray40),headerCellHorizontalGap:i.extend("--ftds-table-header-cell-horizontal-gap","",c.spacing1),headerCellVerticalPadding:i.extend("--ftds-table-header-cell-vertical-padding","",c.spacing2),headerCellHorizontalPadding:i.extend("--ftds-table-header-cell-horizontal-padding","",c.spacing3),dataCellVerticalPadding:i.extend("--ftds-table-data-cell-vertical-padding","",c.spacing2),dataCellHorizontalPadding:i.extend("--ftds-table-data-cell-horizontal-padding","",c.spacing3),dataCellVerticalGap:i.extend("--ftds-table-data-cell-vertical-gap","",c.spacing1)}});var tS,Af=u(()=>{te();ie();pe();tS={neutralOffHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",c.opacity8),neutralOffFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",c.opacity8),neutralOffFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",p.borderActionFocusRing),neutralOffActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",c.opacity16),neutralOffBackgroundColor:i.extend("--ftds-chip-choice-neutral-off-background-color","",p.backgroundGlobalOnSurface),neutralOffBorderColor:i.extend("--ftds-chip-choice-neutral-off-border-color","",p.borderGlobalPrimary),neutralOffColor:i.extend("--ftds-chip-choice-neutral-off-color","",p.contentGlobalSecondary),neutralOffStateLayerColor:i.extend("--ftds-chip-choice-neutral-off-state-layer-color","",p.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",c.opacity16),neutralOnHoverStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",c.opacity24),neutralOnFocusStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",c.opacity24),neutralOnFocusFocusRingColor:i.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",p.borderActionFocusRing),neutralOnActiveStateLayerOpacity:i.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",c.opacity32),neutralOnBackgroundColor:i.extend("--ftds-chip-choice-neutral-on-background-color","",p.backgroundGlobalOnSurface),neutralOnBorderColor:i.extend("--ftds-chip-choice-neutral-on-border-color","",p.borderGlobalPrimary),neutralOnColor:i.extend("--ftds-chip-choice-neutral-on-color","",p.contentGlobalPrimary),neutralOnIconColor:i.extend("--ftds-chip-choice-neutral-on-icon-color","",p.contentGlobalPrimary),neutralOnStateLayerColor:i.extend("--ftds-chip-choice-neutral-on-state-layer-color","",p.contentGlobalPrimary),largeMinHeight:i.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-choice-large-horizontal-padding","",c.spacing3),largeGap:i.extend("--ftds-chip-choice-large-gap","",c.spacing1),largeBorderRadius:i.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-choice-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-choice-medium-horizontal-padding","",c.spacing2),mediumGap:i.extend("--ftds-chip-choice-medium-gap","",c.spacing1),mediumBorderRadius:i.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-choice-medium-icon-size","",c.iconSize2)}});var rS,Lf=u(()=>{te();ie();pe();rS={largeMinHeight:i.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ftds-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:i.extend("--ftds-chip-large-button-right-padding","",c.spacing1),largeGap:i.extend("--ftds-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:i.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:i.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ftds-chip-large-icon-size","",c.iconSize3),mediumMinHeight:i.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ftds-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:i.extend("--ftds-chip-medium-button-right-padding","",c.spacing05),mediumGap:i.extend("--ftds-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:i.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:i.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ftds-chip-medium-icon-size","",c.iconSize2),smallMinHeight:i.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ftds-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:i.extend("--ftds-chip-small-button-right-padding","",c.spacing05),smallGap:i.extend("--ftds-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:i.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:i.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:i.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:i.extend("--ftds-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:i.extend("--ftds-chip-neutral-background-color","",p.backgroundGlobalOnSurface),neutralColor:i.extend("--ftds-chip-neutral-color","",p.contentGlobalSecondary),neutralIconColor:i.extend("--ftds-chip-neutral-icon-color","",p.contentGlobalSecondary),neutralBorderColor:i.extend("--ftds-chip-neutral-border-color","",p.borderGlobalSecondary),infoBackgroundColor:i.extend("--ftds-chip-info-background-color","",p.backgroundInfoSubtle),infoColor:i.extend("--ftds-chip-info-color","",p.contentInfoPrimary),infoIconColor:i.extend("--ftds-chip-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-chip-info-border-color","",p.borderInfoSubtle),successBackgroundColor:i.extend("--ftds-chip-success-background-color","",p.backgroundSuccessSubtle),successColor:i.extend("--ftds-chip-success-color","",p.contentSuccessPrimary),successIconColor:i.extend("--ftds-chip-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:i.extend("--ftds-chip-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:i.extend("--ftds-chip-warning-background-color","",p.backgroundWarningSubtle),warningColor:i.extend("--ftds-chip-warning-color","",p.contentWarningPrimary),warningIconColor:i.extend("--ftds-chip-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:i.extend("--ftds-chip-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:i.extend("--ftds-chip-error-background-color","",p.backgroundErrorSubtle),errorColor:i.extend("--ftds-chip-error-color","",p.contentErrorPrimary),errorIconColor:i.extend("--ftds-chip-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:i.extend("--ftds-chip-error-border-color","",p.borderErrorSubtle)}});var oS,kf=u(()=>{te();ie();pe();oS={horizontalGap:i.extend("--ftds-chip-group-horizontal-gap","",c.spacing2),verticalGap:i.extend("--ftds-chip-group-vertical-gap","",c.spacing2),countChipDefaultBackgroundColor:i.extend("--ftds-chip-group-count-chip-default-background-color","",c.colorBrand10),countChipDefaultBorderColor:i.extend("--ftds-chip-group-count-chip-default-border-color","",c.colorBrand60),countChipDefaultContentColor:i.extend("--ftds-chip-group-count-chip-default-content-color","",p.contentActionPrimary),countChipHoverBackgroundColor:i.extend("--ftds-chip-group-count-chip-hover-background-color","",c.colorBrand20),countChipHoverBorderColor:i.extend("--ftds-chip-group-count-chip-hover-border-color","",c.colorBrand70),countChipHoverContentColor:i.extend("--ftds-chip-group-count-chip-hover-content-color","",p.contentActionPrimary),countChipFocusedBackgroundColor:i.extend("--ftds-chip-group-count-chip-focused-background-color","",c.colorBrand20),countChipFocusedBorderColor:i.extend("--ftds-chip-group-count-chip-focused-border-color","",c.colorBrand70),countChipFocusedContentColor:i.extend("--ftds-chip-group-count-chip-focused-content-color","",p.contentActionPrimary)}});var iS,Tf=u(()=>{te();ie();pe();iS={brandHoverOpacity:i.extend("--ftds-link-brand-hover-opacity","",c.opacity80),brandHoverColor:i.extend("--ftds-link-brand-hover-color","",p.contentActionPrimary),brandFocusFocusRingColor:i.extend("--ftds-link-brand-focus-focus-ring-color","",p.borderActionFocusRing),brandFocusColor:i.extend("--ftds-link-brand-focus-color","",p.contentActionPrimary),brandDefaultColor:i.extend("--ftds-link-brand-default-color","",p.contentActionPrimary),brandActiveColor:i.extend("--ftds-link-brand-active-color","",p.contentActionPrimary),infoHoverOpacity:i.extend("--ftds-link-info-hover-opacity","",c.opacity80),infoHoverColor:i.extend("--ftds-link-info-hover-color","",p.contentInfoPrimary),infoFocusFocusRingColor:i.extend("--ftds-link-info-focus-focus-ring-color","",p.borderActionFocusRing),infoFocusColor:i.extend("--ftds-link-info-focus-color","",p.contentInfoPrimary),infoDefaultColor:i.extend("--ftds-link-info-default-color","",p.contentInfoPrimary),infoActiveColor:i.extend("--ftds-link-info-active-color","",p.contentInfoPrimary),neutralFocusFocusRingColor:i.extend("--ftds-link-neutral-focus-focus-ring-color","",p.borderActionFocusRing),neutralFocusColor:i.extend("--ftds-link-neutral-focus-color","",p.contentActionPrimary),neutralDefaultColor:i.extend("--ftds-link-neutral-default-color","",p.contentGlobalPrimary),neutralHoverColor:i.extend("--ftds-link-neutral-hover-color","",p.contentActionPrimary),neutralActiveColor:i.extend("--ftds-link-neutral-active-color","",p.contentActionPrimary),neutralVisitedColor:i.extend("--ftds-link-neutral-visited-color","",c.colorBrand100),horizontalGap:i.extend("--ftds-link-horizontal-gap","",c.spacing1)}});var nS,_f=u(()=>{te();ie();pe();nS={iconSize:i.extend("--ftds-banner-icon-size","",c.iconSize5),borderWidth:i.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:i.extend("--ftds-banner-left-padding","",c.spacing6),rightPadding:i.extend("--ftds-banner-right-padding","",c.spacing6),verticalPadding:i.extend("--ftds-banner-vertical-padding","",c.spacing6),horizontalSideGap:i.extend("--ftds-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:i.extend("--ftds-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:i.extend("--ftds-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:i.extend("--ftds-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:i.extend("--ftds-banner-info-background-color","",p.backgroundInfoSubtle),infoColor:i.extend("--ftds-banner-info-color","",p.contentInfoPrimary),infoIconColor:i.extend("--ftds-banner-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:i.extend("--ftds-banner-info-border-color","",p.borderInfoSubtle)}});var aS,If=u(()=>{te();ie();pe();aS={horizontalPadding:i.extend("--ftds-badge-horizontal-padding","",c.spacing1),verticalPadding:i.extend("--ftds-badge-vertical-padding","",c.spacing1),borderRadius:i.extend("--ftds-badge-border-radius","",c.borderRadiusPill),color:i.extend("--ftds-badge-color","",p.contentGlobalOnColor),backgroundColor:i.extend("--ftds-badge-background-color","",p.contentActionPrimary)}});var sS,Pf=u(()=>{te();ie();pe();sS={horizontalGap:i.extend("--ftds-title-breadcrumb-horizontal-gap","",c.spacing1),currentColor:i.extend("--ftds-title-breadcrumb-current-color","",p.contentGlobalPrimary),previousNonClickableColor:i.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",p.contentGlobalSecondary),iconColor:i.extend("--ftds-title-breadcrumb-icon-color","",p.contentGlobalSubtle)}});var lS,Nf=u(()=>{te();ie();pe();lS={parentHorizontalPadding:i.extend("--ftds-page-header-parent-horizontal-padding","",c.spacing6),parentTopPadding:i.extend("--ftds-page-header-parent-top-padding","",c.spacing4),parentBottomPadding:i.extend("--ftds-page-header-parent-bottom-padding","",c.spacing6),parentHelpLeftMargin:i.extend("--ftds-page-header-parent-help-left-margin","",c.spacing1),parentTitleColor:i.extend("--ftds-page-header-parent-title-color","",p.contentGlobalPrimary),parentSubtitleColor:i.extend("--ftds-page-header-parent-subtitle-color","",p.contentGlobalSecondary),parentChipLeftMargin:i.extend("--ftds-page-header-parent-chip-left-margin","",c.spacing4),parentVerticalGap:i.extend("--ftds-page-header-parent-vertical-gap","",c.spacing2),parentButtonsGroupHorizontalGap:i.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",c.spacing4),parentButtonsGroupVerticalGap:i.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",c.spacing4),parentChipsGroupHorizontalGap:i.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",c.spacing2),parentChipsGroupVerticalGap:i.extend("--ftds-page-header-parent-chips-group-vertical-gap","",c.spacing2),childHorizontalPadding:i.extend("--ftds-page-header-child-horizontal-padding","",c.spacing6),childTopPadding:i.extend("--ftds-page-header-child-top-padding","",c.spacing2),childBottomPadding:i.extend("--ftds-page-header-child-bottom-padding","",c.spacing2),childHelpLeftMargin:i.extend("--ftds-page-header-child-help-left-margin","",c.spacing1),childChipLeftMargin:i.extend("--ftds-page-header-child-chip-left-margin","",c.spacing4),childVerticalGap:i.extend("--ftds-page-header-child-vertical-gap","",c.spacing2),childMinHeight:i.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:i.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",c.spacing4),childButtonsGroupVerticalGap:i.extend("--ftds-page-header-child-buttons-group-vertical-gap","",c.spacing4),childChipsGroupHorizontalGap:i.extend("--ftds-page-header-child-chips-group-horizontal-gap","",c.spacing2),childChipsGroupVerticalGap:i.extend("--ftds-page-header-child-chips-group-vertical-gap","",c.spacing2),backgroundColor:i.extend("--ftds-page-header-background-color","",c.colorWhite),bottomBorderColor:i.extend("--ftds-page-header-bottom-border-color","",p.borderGlobalSubtle),bottomBorderWidth:i.create("--ftds-page-header-bottom-border-width","","SIZE","1px")}});var cS,$f=u(()=>{te();ie();pe();cS={horizontalPadding:i.extend("--ftds-page-footer-horizontal-padding","",c.spacing6),verticalPadding:i.extend("--ftds-page-footer-vertical-padding","",c.spacing2),verticalGap:i.extend("--ftds-page-footer-vertical-gap","",c.spacing2),minHeight:i.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:i.extend("--ftds-page-footer-background-color","",c.colorWhite),topBorderColor:i.extend("--ftds-page-footer-top-border-color","",p.borderGlobalSubtle),topBorderWidth:i.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:i.extend("--ftds-page-footer-buttons-group-gap","",c.spacing4)}});var dS,Df=u(()=>{te();ie();dS={contentHorizontalPadding:i.extend("--ftds-page-layout-content-horizontal-padding","",c.spacing6),contentVerticalPadding:i.extend("--ftds-page-layout-content-vertical-padding","",c.spacing6)}});var uS,Mf=u(()=>{te();ie();pe();uS={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 pS,Ff=u(()=>{te();ie();pe();pS={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 fS,Bf=u(()=>{te();ie();pe();fS={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 hS,Uf=u(()=>{te();ie();pe();hS={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 mS,zf=u(()=>{te();ie();pe();mS={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 gS,Hf=u(()=>{te();ie();pe();gS={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 yS,Vf=u(()=>{te();ie();pe();yS={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 bS,Wf=u(()=>{te();ie();pe();bS={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 vS,jf=u(()=>{te();ie();pe();vS={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 xS,Gf=u(()=>{te();ie();pe();xS={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 SS,Kf=u(()=>{te();ie();pe();SS={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 CS,qf=u(()=>{te();ie();CS={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 OS,Zf=u(()=>{te();ie();OS={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 ES,Qf=u(()=>{te();ie();pe();ES={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 wS,Yf=u(()=>{te();ie();pe();wS={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 RS,Xf=u(()=>{te();ie();pe();RS={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 AS,Jf=u(()=>{te();ie();pe();AS={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 LS,eh=u(()=>{te();ie();LS={menuHorizontalPadding:i.extend("--ftds-date-range-picker-menu-horizontal-padding","",c.spacing4),menuVerticalPadding:i.extend("--ftds-date-range-picker-menu-vertical-padding","",c.spacing4),menuVerticalGap:i.extend("--ftds-date-range-picker-menu-vertical-gap","",c.spacing4),menuButtonsVerticalGap:i.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",c.spacing2)}});var 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 Qo=u(()=>{te();th();rh()});var gl={};q(gl,{DesignSystemFamily:()=>Xi,DesignSystemSize:()=>Ji,FtCssVariableFactory:()=>i,badge:()=>aS,banner:()=>nS,button:()=>Z0,card:()=>Q0,chart:()=>CS,checkbox:()=>X0,chip:()=>rS,chipChoice:()=>tS,chipGroup:()=>oS,collapsible:()=>xS,combobox:()=>bS,dateRangePicker:()=>LS,drawer:()=>fS,floatingMenu:()=>yS,foundation:()=>c,link:()=>iS,modal:()=>uS,notice:()=>ES,notification:()=>RS,pageDesigner:()=>OS,pageFooter:()=>cS,pageHeader:()=>lS,pageLayout:()=>dS,popover:()=>vS,radio:()=>J0,reorderableList:()=>pS,resolveFamilyClass:()=>hl,resolveSizeClass:()=>ml,semantic:()=>p,setVariable:()=>A,switch_:()=>SS,table:()=>eS,tabs:()=>hS,textArea:()=>gS,textInput:()=>mS,titleBreadcrumb:()=>sS,toggle:()=>wS,tooltip:()=>AS,treeList:()=>Y0,typographies:()=>K0,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:()=>q0});var ia=u(()=>{"use strict";Qo()});var yl={};q(yl,{designSystemVariables:()=>S});var S,bl=u(()=>{"use strict";ia();S={colorPrimary:i.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:i.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:i.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:i.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:i.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:i.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorInfo:i.create("--ft-color-info","","COLOR","#0F6BC5"),colorWarning:i.create("--ft-color-warning","","COLOR","#B74706"),colorError:i.create("--ft-color-error","","COLOR","#B00020"),colorSuccess:i.create("--ft-color-success","","COLOR","#187856"),colorOutline:i.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:i.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:i.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:i.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:i.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:i.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:i.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:i.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:i.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:i.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:i.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:i.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:i.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:i.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:i.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:i.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:i.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:i.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:i.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:i.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:i.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:i.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:i.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:i.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:i.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:i.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:i.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:i.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:i.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:i.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:i.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:i.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:i.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:i.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:i.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:i.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:i.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:i.create("--ft-elevation-00","","SHADOW","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:i.create("--ft-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:i.create("--ft-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:i.create("--ft-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:i.create("--ft-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:i.create("--ft-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:i.create("--ft-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:i.create("--ft-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:i.create("--ft-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:i.create("--ft-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:i.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXL:i.create("--ft-border-radius-xl","","SIZE","16px"),titleFont:i.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:i.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:i.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:i.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")}});var vl={};q(vl,{DynamicImporter:()=>na,dynamicImporter:()=>kS});var na,kS,xl=u(()=>{"use strict";na=class{async import(e){if(e)return import(e)}},kS=new na});function nh(r,e,t){return er(r,lo(e,t))}function Yo(r,e){return typeof r=="function"?r(e):r}function co(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 Xo(r){let e=r[0];return e==="t"||e==="b"?"y":"x"}function wl(r){return Ol(Xo(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=co(r);return TS[e]+r.slice(e.length)}function _S(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"?_S(r):{top:r,right:r,bottom:r,left:r}}function uo(r){let{x:e,y:t,width:o,height:n}=r;return{width:o,height:n,top:t,left:e,right:e+o,bottom:t+n,x:e,y:t}}var ih,oh,Cl,lo,er,en,tr,TS,aa=u(()=>{ih=["top","right","bottom","left"],oh=["start","end"],Cl=ih.reduce((r,e)=>r.concat(e,e+"-"+oh[0],e+"-"+oh[1]),[]),lo=Math.min,er=Math.max,en=Math.round,tr=r=>({x:r,y:r}),TS={left:"right",right:"left",bottom:"top",top:"bottom"}});function ch(r,e,t){let{reference:o,floating:n}=r,a=Xo(e),s=wl(e),l=El(s),d=co(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}=Yo(e,r),x=lh(v),L=l[y?m==="floating"?"reference":"floating":m],P=uo(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=uo(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 PS(r,e,t){return(r?[...t.filter(n=>rr(n)===r),...t.filter(n=>rr(n)!==r)]:t.filter(n=>co(n)===n)).filter(n=>r?rr(n)===r||(e?sh(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=co(t),l=rr(t),d=Xo(t)==="y",f=NS.has(s)?-1:1,g=a&&d?-1:1,m=Yo(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 IS,uh,ph,NS,fh,hh,mh,gh=u(()=>{aa();aa();IS=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:z}=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},z&&v<IS&&(v++,typeof z=="object"&&(z.placement&&(y=z.placement),z.rects&&(f=z.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:n}):z.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}=Yo(r,e),w=m!==void 0||y===Cl?PS(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[co(P)],B[E[0]],B[E[1]]],k=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:P,overflows:C}],z=w[L+1];if(z)return{data:{index:L+1,overflows:k},reset:{placement:z}};let ce=k.map(M=>{let V=rr(M.placement);return[M.placement,V&&g?M.overflows.slice(0,2).reduce((se,Ke)=>se+Ke,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}}:{}}}},NS=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 $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}}}}},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}=Yo(r,e),g={x:t,y:o},m=await a.detectOverflow(e,f),y=Xo(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}=Yo(r,e),d=await n.detectOverflow(e,l),f=co(t),g=rr(t),m=Xo(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=lo(v-d[x],L),E=lo(y-d[w],P),C=e.middlewareData.shift,k=!C,z=B,ce=E;C!=null&&C.enabled.x&&(ce=P),C!=null&&C.enabled.y&&(z=L),k&&!g&&(m?ce=y-2*er(d.left,d.right):z=v-2*er(d.top,d.bottom)),await s({...e,availableWidth:ce,availableHeight:z});let J=await n.getDimensions(a.floating);return y!==J.width||v!==J.height?{reset:{rects:!0}}:{}}}}});function la(){return typeof window<"u"}function fo(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(fo(r))}function rn(r){try{if(r.matches(":popover-open"))return!0}catch{}try{return r.matches(":modal")}catch{return!1}}function Jo(r){let e=Ut(r)?zt(r):r;return po(e.transform)||po(e.translate)||po(e.scale)||po(e.rotate)||po(e.perspective)||!ca()&&(po(e.backdropFilter)||po(e.filter))||DS.test(e.willChange||"")||MS.test(e.contain||"")}function xh(r){let e=Pr(r);for(;yr(e)&&!ei(e);){if(Jo(e))return e;if(rn(e))return null;e=Pr(e)}return null}function ca(){return Rl==null&&(Rl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Rl}function ei(r){return/^(html|body|#document)$/.test(fo(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 Pr(r){if(fo(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=Pr(r);return ei(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 DS,MS,po,Rl,Al=u(()=>{DS=/transform|translate|scale|rotate|perspective|filter/,MS=/paint|layout|strict|content/,po=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 ti(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?FS:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function BS(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=ti(o)):s=ti(r));let l=BS(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=ti(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 uo({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 US(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)&&((fo(o)!=="body"||tn(s))&&(d=on(o)),m)){let v=nn(o);f=ti(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 zS(r){return r.getClientRects?Array.from(r.getClientRects()):[]}function HS(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 WS(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<=VS&&(l-=P)}return{width:l,height:d,x:f,y:g}}function jS(r,e){let t=nn(r,!0,e==="fixed"),o=t.top+r.clientTop,n=t.left+r.clientLeft,a=ti(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=WS(r,t,e);else if(e==="document")o=HS(gr(r));else if(Ut(e))o=jS(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 uo(o)}function GS(r,e){let t=e.get(r);if(t)return t;let o=sa(r,[],!1).filter(l=>Ut(l)&&fo(l)!=="body"),n=null,a=zt(r).position==="fixed",s=a?Pr(r):r;for(;Ut(s)&&!ei(s);){let l=zt(s),d=Jo(s),f=n?n.position:a?"fixed":"";!d&&(f==="fixed"||f==="absolute"&&l.position==="static")?o=o.filter(m=>m!==s):n=l,s=Pr(s)}return e.set(r,o),o}function KS(r){let{element:e,boundary:t,rootBoundary:o,strategy:n}=r,s=[...t==="clippingAncestors"?rn(e)?[]:GS(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=lo(v.right,f),g=lo(v.bottom,g),m=er(v.left,m)}return{width:f-m,height:g-d,x:m,y:d}}function qS(r){let{width:e,height:t}=Eh(r);return{width:e,height:t}}function ZS(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)&&((fo(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=Pr(r);for(;n&&!ei(n);){if(Ut(n)&&!Ll(n))return n;n=Pr(n)}return t}let o=Oh(r,e);for(;o&&vh(o)&&Ll(o);)o=Oh(o,e);return o&&ei(o)&&Ll(o)&&!Jo(o)?t:o||xh(r)||t}function YS(r){return zt(r).direction==="rtl"}var FS,VS,QS,ri,kh,kl,Th,_h,Tl,Ih=u(()=>{gh();aa();Al();FS=tr(0);VS=25;QS=async function(r){let e=this.getOffsetParent||Lh,t=this.getDimensions,o=await t(r.floating);return{reference:ZS(r.reference,await e(r.floating),r.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};ri={convertOffsetParentRelativeRectToViewportRelativeRect:US,getDocumentElement:gr,getClippingRect:KS,getOffsetParent:Lh,getElementRects:QS,getClientRects:zS,getDimensions:qS,getScale:ti,isElement:Ut,isRTL:YS},kh=fh,kl=ph,Th=hh,_h=mh,Tl=(r,e,t)=>{let o=new Map,n=t??{},a={...ri,...n.platform,_c:o};return uh(r,e,{...n,platform:a})}});function Il(r){return XS(r)}function _l(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function XS(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"||Jo(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:{...ri,getOffsetParent:n=>ri.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:{...ri,getOffsetParent:f=>ri.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();so();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:()=>JS});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 JS(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:()=>ho,FtLitElement:()=>D});var oi,Mh,Nh,$h,Fh,Dh,ho,D,ln=u(()=>{"use strict";K();so();oa();fa();ha();oi=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"),ho=class r extends CustomEvent{constructor(){super(r.eventName,{bubbles:!0})}};ho.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(ho.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(ho.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 ho)})}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;oi([h()],D.prototype,"exportpartsPrefix",void 0);oi([ue([])],D.prototype,"exportpartsPrefixes",void 0);oi([h({reflect:!0})],D.prototype,"exportparts",void 0);oi([h()],D.prototype,"customStylesheet",void 0);oi([h()],D.prototype,"elementToFocus",void 0);oi([I()],D.prototype,"useAdoptedStyleSheets",void 0)});var Vl={};q(Vl,{FtdsBase:()=>Hl,toFtdsBase:()=>Uh});var Bh,Uh,Hl,Wl=u(()=>{"use strict";ln();K();Qo();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 mo,Hh=u(()=>{mo=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 mo(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 mo.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=mo.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:()=>tC});function Kl(r,e,t){var o,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new eC(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 eC,jh,tC,Zl=u(()=>{"use strict";_();Qo();Wh();eC=Gl,jh=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),tC=R`
5
5
  .highlight-html-match {
6
- background: ${Kh};
6
+ background: ${jh};
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=w`
8
+ `});var Yl={};q(Yl,{noTextInputDefaultClearButton:()=>yo,noTextSelect:()=>go,safariEllipsisFix:()=>Ql,wordWrap:()=>dn});var go,dn,Ql,yo,Xl=u(()=>{"use strict";_();go=R`
9
9
  .ft-no-text-select {
10
10
  -webkit-touch-callout: none;
11
11
  -webkit-user-select: none;
@@ -14,7 +14,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
14
14
  -ms-user-select: none;
15
15
  user-select: none;
16
16
  }
17
- `,dn=w`
17
+ `,dn=R`
18
18
  .ft-word-wrap {
19
19
  white-space: normal;
20
20
  word-wrap: break-word;
@@ -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=w`
29
+ `,Ql=R`
30
30
  .ft-safari-ellipsis-fix {
31
31
  margin-right: 0;
32
32
 
@@ -37,14 +37,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
37
37
  display: inline-block;
38
38
  width: 0;
39
39
  }
40
- `,bo=w`
40
+ `,yo=R`
41
41
  input::-webkit-search-cancel-button,
42
42
  input::-webkit-search-decoration,
43
43
  input::-webkit-search-results-button,
44
44
  input::-webkit-search-results-decoration {
45
45
  display: none;
46
46
  }
47
- `});var qh={};var Jl=u(()=>{"use strict"});var ec={};q(ec,{ParametrizedLabelResolver:()=>Nr});var Nr,tc=u(()=>{"use strict";Nr=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 oC,fe,iC,Zh=u(()=>{"use strict";rt();K();oC=()=>(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})}},iC=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,$r,vo,Qh,bt,Yh=u(()=>{"use strict";ln();ma();rt();pn=Symbol("internalReduxEventsUnsubscribers"),$r=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[$r].has(s.store):this[$r].size>0)&&(this[l]=s.selector(f.getState(),this))}})}subscribeToStore(s,l){var d;this[$r].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[$r].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[$r].has(s)&&this[$r].get(s)(),this[$r].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=$r,t=vo,o=pn,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),bt=class extends Qh(D){}});function Nt(r){for(var e=arguments.length,t=Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function vr(r){return!!r&&!!r[Oe]}function Vt(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)===pC})(r)||Array.isArray(r)||!!r[im]||!!(!((e=r.constructor)===null||e===void 0)&&e[im])||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 nC(r,e){return li(r)===2?r.get(e):r[e]}function nm(r,e,t){var o=li(r);o===2?r.set(e,t):o===3?r.add(t):r[e]=t}function am(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function uc(r){return dC&&r instanceof Map}function pc(r){return uC&&r instanceof Set}function Dr(r){return r.o||r.t}function fc(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=cm(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)||vr(r)||!Vt(r)||(li(r)>1&&(r.set=r.add=r.clear=r.delete=aC),Object.freeze(r),e&&xo(r,(function(t,o){return hc(o,!0)}),!0)),r}function aC(){Nt(2)}function mc(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function nr(r){var e=dc[r];return e||Nt(18,r),e}function sC(r,e){dc[r]||(dc[r]=e)}function sc(){return hn}function oc(r,e){e&&(nr("Patches"),r.u=[],r.s=[],r.v=e)}function ga(r){lc(r),r.p.forEach(lC),r.p=null}function lc(r){r===hn&&(hn=r.l)}function Xh(r){return hn={p:[],l:hn,h:r,m:!0,_:0}}function lC(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||nr("ES5").S(e,r,o),o?(t[Oe].P&&(ga(e),Nt(4)),Vt(r)&&(r=ya(e,r),e.l||ba(e,r)),e.u&&nr("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!==lm?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 Jh(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 Jh(r,o,n,l,d,t,s)})),ba(r,n,!1),t&&r.u&&nr("Patches").N(o,t,r.u,r.s)}return o.o}function Jh(r,e,t,o,n,a,s){if(vr(n)){var l=ya(r,n,a&&e&&e.i!==3&&!ai(e.R,o)?a.concat(o):void 0);if(nm(t,o,l),!vr(l))return;r.m=!1}else s&&t.add(n);if(Vt(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?Dr(t):r)[e]}function em(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 Mr(r){r.P||(r.P=!0,r.l&&Mr(r.l))}function ac(r){r.o||(r.o=fc(r.t))}function cc(r,e,t){var o=uc(e)?nr("MapSet").F(e,t):pc(e)?nr("MapSet").T(e,t):r.O?(function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A: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):nr("ES5").J(e,t);return(t?t.A:sc()).p.push(o),o}function cC(r){return vr(r)||Nt(22,r),(function e(t){if(!Vt(t))return t;var o,n=t[Oe],a=li(t);if(n){if(!n.P&&(n.i<4||!nr("ES5").K(n)))return n.t;n.I=!0,o=tm(t,a),n.I=!1}else o=tm(t,a);return xo(o,(function(s,l){n&&nC(n.t,s)===l||nm(o,s,e(l))})),a===3?new Set(o):o})(r)}function tm(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return fc(r)}function sm(){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)&&Mr(d);break;case 4:t(d)&&Mr(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:!am(v,y))return!0}}var A=!!l[Oe];return f.length!==si(l).length+(A?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&&Nt(3,JSON.stringify(Dr(s)))}var a={};sC("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 A=cm(y);delete A[Oe];for(var L=si(A),P=0;P<L.length;P++){var B=L[P];A[B]=r(B,m||!!A[B].enumerable)}return Object.create(Object.getPrototypeOf(y),A)})(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?vr(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,A=m.i;if(A===4)xo(v,(function(C){C!==Oe&&(y[C]!==void 0||ai(y,C)?x[C]||f(v[C]):(x[C]=!0,Mr(m)))})),xo(y,(function(C){v[C]!==void 0||ai(v,C)||(x[C]=!1,Mr(m))}));else if(A===5){if(o(m)&&(Mr(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 rm,hn,gc,dC,uC,om,lm,im,Oe,pC,si,cm,dc,mn,fn,fC,vt,hC,yk,bk,vk,xk,Sk,Ck,va,xa=u(()=>{gc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",dC=typeof Map<"u",uC=typeof Set<"u",om=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",lm=gc?Symbol.for("immer-nothing"):((rm={})["immer-nothing"]=!0,rm),im=gc?Symbol.for("immer-draftable"):"__$immer_draftable",Oe=gc?Symbol.for("immer-state"):"__$immer_state",pC=""+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,cm=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=Dr(r);if(!ai(t,e))return(function(n,a,s){var l,d=em(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||!Vt(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 Dr(r)},ownKeys:function(r){return Reflect.ownKeys(Dr(r))},set:function(r,e,t){var o=em(Dr(r),e);if(o?.set)return o.set.call(r.k,t),!0;if(!r.P){var n=nc(Dr(r),e),a=n?.[Oe];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(am(t,n)&&(t!==void 0||ai(r.t,e)))return!0;ac(r),Mr(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),Mr(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=Dr(r),o=Reflect.getOwnPropertyDescriptor(t,e);return o&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:o.enumerable,value:t[e]}},defineProperty:function(){Nt(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){Nt(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])};fC=(function(){function r(t){var o=this;this.O=om,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(A){var L=this;A===void 0&&(A=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(A,(function(C){var k;return(k=a).call.apply(k,[L,C].concat(B))}))}}var f;if(typeof a!="function"&&Nt(6),s!==void 0&&typeof s!="function"&&Nt(7),Vt(n)){var g=Xh(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(A){return oc(g,s),ic(A,g)}),(function(A){throw ga(g),A})):(oc(g,s),ic(f,g))}if(!n||typeof n!="object"){if((f=a(n))===void 0&&(f=n),f===lm&&(f=void 0),o.D&&hc(f,!0),s){var v=[],x=[];nr("Patches").M(n,f,v,x),s(v,x)}return f}Nt(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){Vt(t)||Nt(8),vr(t)&&(t=cC(t));var o=Xh(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&&!om&&Nt(20),this.O=t},e.applyPatches=function(t,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(o=o.slice(n+1));var s=nr("Patches").$;return vr(t)?s(t,o):this.produce(t,(function(l){return s(l,o)}))},r})(),vt=new fC,hC=vt.produce,yk=vt.produceWithPatches.bind(vt),bk=vt.setAutoFreeze.bind(vt),vk=vt.setUseProxies.bind(vt),xk=vt.applyPatches.bind(vt),Sk=vt.createDraft.bind(vt),Ck=vt.finishDraft.bind(vt),va=hC});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 dm(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 um=u(()=>{yc()});function pm(r){var e=dm(r,"string");return So(e)=="symbol"?e:e+""}var fm=u(()=>{yc();um()});function hm(r,e,t){return(e=pm(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var mm=u(()=>{fm()});function gm(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?gm(Object(t),!0).forEach(function(o){hm(r,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):gm(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o))})}return r}var ym=u(()=>{mm()});function qe(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}function mC(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(qe(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(qe(1));return t(xc)(r,e)}if(typeof r!="function")throw new Error(qe(2));var n=r,a=e,s=[],l=s,d=!1;function f(){l===s&&(l=s.slice())}function g(){if(d)throw new Error(qe(3));return a}function m(A){if(typeof A!="function")throw new Error(qe(4));if(d)throw new Error(qe(5));var L=!0;return f(),l.push(A),function(){if(L){if(d)throw new Error(qe(6));L=!1,f();var B=l.indexOf(A);l.splice(B,1),s=null}}}function y(A){if(!mC(A))throw new Error(qe(7));if(typeof A.type>"u")throw new Error(qe(8));if(d)throw new Error(qe(9));try{d=!0,a=n(a,A)}finally{d=!1}for(var L=s=l,P=0;P<L.length;P++){var B=L[P];B()}return A}function v(A){if(typeof A!="function")throw new Error(qe(10));n=A,y({type:Sa.REPLACE})}function x(){var A,L=m;return A={subscribe:function(B){if(typeof B!="object"||B===null)throw new Error(qe(11));function E(){B.next&&B.next(g())}E();var C=L(E);return{unsubscribe:C}}},A[bm]=function(){return this},A}return y({type:Sa.INIT}),o={dispatch:y,subscribe:m,getState:g,replaceReducer:v},o[bm]=x,o}function gC(r){Object.keys(r).forEach(function(e){var t=r[e],o=t(void 0,{type:Sa.INIT});if(typeof o>"u")throw new Error(qe(12));if(typeof t(void 0,{type:Sa.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(qe(13))})}function vm(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{gC(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 A=a[x],L=t[A],P=f[A],B=L(P,g);if(typeof B>"u"){var E=g&&g.type;throw new Error(qe(14))}v[A]=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 xm(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(qe(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=ci.apply(void 0,l)(n.dispatch),bc(bc({},n),{},{dispatch:a})}}}var bm,vc,Sa,Ca=u(()=>{ym();bm=(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 Sm(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 Cm,Sc,Om=u(()=>{Cm=Sm();Cm.withExtraArgument=Sm;Sc=Cm});function wC(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 Br(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 Fr(Fr({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 Vt(r)?va(r,function(){}):r}function LC(r){return typeof r=="boolean"}function kC(){return function(e){return TC(e)}}function TC(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 RC;if(t&&(LC(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 km(r){var e=kC(),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(wC(n))v=vm(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 A=xm.apply(void 0,x),L=ci;d&&(L=EC(Fr({trace:!Oc},typeof d=="object"&&d)));var P=new AC(A),B=P;Array.isArray(y)?B=di([A],y):typeof y=="function"&&(B=y(P));var E=L.apply(void 0,B);return xc(v,g,E)}function Tm(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 _C(r){return typeof r=="function"}function IC(r,e,t,o){t===void 0&&(t=[]);var n=typeof e=="function"?Tm(e):[e,t,o],a=n[0],s=n[1],l=n[2],d;if(_C(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 A=x.matcher;return A(y)}).map(function(x){var A=x.reducer;return A}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,A){if(A)if(vr(x)){var L=x,P=A(L,y);return P===void 0?x:P}else{if(Vt(x))return va(x,function(B){return A(B,y)});var P=A(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 PC(r,e){return r+"/"+e}function _m(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=PC(e,g),v,x;"reducer"in m?(v=m.reducer,x=m.prepare):v=m,a[g]=v,s[y]=v,l[g]=x?Br(y,x):Br(y)});function d(){var g=typeof r.extraReducers=="function"?Tm(r.extraReducers):[r.extraReducers],m=g[0],y=m===void 0?{}:m,v=g[1],x=v===void 0?[]:v,A=g[2],L=A===void 0?void 0:A,P=Fr(Fr({},y),s);return IC(t,function(B){for(var E in P)B.addCase(E,P[E]);for(var C=0,k=x;C<k.length;C++){var z=k[C];B.addMatcher(z.matcher,z.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 FC(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function BC(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Lm,yC,di,bC,vC,xC,Em,SC,CC,wm,Fr,Cc,OC,EC,Uk,RC,AC,Oc,NC,$C,DC,Ec,Rm,MC,Wk,Im,Pm,Nm,jk,Gk,Kk,qk,Rc,Zk,Qk,Yk,Am,Xk,UC,Jk,$m=u(()=>{xa();Ca();Ca();Ca();Om();xa();xa();Lm=(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)}})(),yC=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},bC=Object.defineProperty,vC=Object.defineProperties,xC=Object.getOwnPropertyDescriptors,Em=Object.getOwnPropertySymbols,SC=Object.prototype.hasOwnProperty,CC=Object.prototype.propertyIsEnumerable,wm=function(r,e,t){return e in r?bC(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Fr=function(r,e){for(var t in e||(e={}))SC.call(e,t)&&wm(r,t,e[t]);if(Em)for(var o=0,n=Em(e);o<n.length;o++){var t=n[o];CC.call(e,t)&&wm(r,t,e[t])}return r},Cc=function(r,e){return vC(r,xC(e))},OC=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())})},EC=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)},Uk=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};RC=(function(r){Lm(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),AC=(function(r){Lm(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;NC="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",$C=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=NC[Math.random()*64|0];return e},DC=["name","message","stack","code"],Ec=(function(){function r(e,t){this.payload=e,this.meta=t}return r})(),Rm=(function(){function r(e,t){this.payload=e,this.meta=t}return r})(),MC=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,o=DC;t<o.length;t++){var n=o[t];typeof r[n]=="string"&&(e[n]=r[n])}return e}return{message:String(r)}},Wk=(function(){function r(e,t,o){var n=Br(e+"/fulfilled",function(g,m,y,v){return{payload:g,meta:Cc(Fr({},v||{}),{arg:y,requestId:m,requestStatus:"fulfilled"})}}),a=Br(e+"/pending",function(g,m,y){return{payload:void 0,meta:Cc(Fr({},y||{}),{arg:m,requestId:g,requestStatus:"pending"})}}),s=Br(e+"/rejected",function(g,m,y,v,x){return{payload:v,error:(o&&o.serializeError||MC)(g||"Rejected"),meta:Cc(Fr({},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):$C(),A=new d,L,P=!1;function B(C){L=C,A.abort()}var E=(function(){return OC(this,null,function(){var C,k,z,ce,J,ee,M;return yC(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}),BC(ce)?[4,ce]:[3,2];case 1:ce=V.sent(),V.label=2;case 2:if(ce===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return P=!0,J=new Promise(function(se,Ke){return A.signal.addEventListener("abort",function(){return Ke({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:A.signal,abort:B,rejectWithValue:function(se,Ke){return new Ec(se,Ke)},fulfillWithValue:function(se,Ke){return new Rm(se,Ke)}})).then(function(se){if(se instanceof Ec)throw se;return se instanceof Rm?n(se.payload,x,g,se.meta):n(se,x,g)})])];case 3:return z=V.sent(),[3,5];case 4:return ee=V.sent(),z=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(z)&&z.meta.condition,M||m(z),[2,z]}})})})();return Object.assign(E,{abort:B,requestId:x,arg:g,unwrap:function(){return E.then(FC)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return r.withTypes=function(){return r},r})();Im="listener",Pm="completed",Nm="cancelled",jk="task-"+Nm,Gk="task-"+Pm,Kk=Im+"-"+Nm,qk=Im+"-"+Pm,Rc="listenerMiddleware",Zk=Br(Rc+"/add"),Qk=Br(Rc+"/removeAll"),Yk=Br(Rc+"/remove"),Xk=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Am||(Am=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},UC=function(r){return function(e){setTimeout(e,r)}},Jk=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:UC(10);sm()});function zC(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))ni(e)&&e.clear()}var xr,Dm=u(()=>{"use strict";$m();ma();rc();Qo();rt();window.ftReduxStores||(window.ftReduxStores={});xr=class r extends yr{static get(e){var t;let o=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(ni(a))return a;if(n==null)return;let s=_m({...n,reducers:(t=n.reducers)!==null&&t!==void 0?t:{}}),l=km({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,Mm=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,Fm=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:()=>xr,FtStateManager:()=>Co,ReduxWatcher:()=>Oa,clearAllStores:()=>zC,isFtReduxStore:()=>ni,redux:()=>fe,reduxEventListener:()=>iC,reduxReactive:()=>oC,watch:()=>ui,withRedux:()=>Qh});var Ea=u(()=>{"use strict";Zh();rc();Yh();Dm();ma();Mm();Fm()});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=gr(0,(s-o.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(t?.position,l)*(a-s)+s;o.scrollTo({behavior:t?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(Lc=window.FluidTopicsScrollHelper)!==null&&Lc!==void 0?Lc:new kc;Tc=window.FluidTopicsScrollHelper});var Pc=u(()=>{});var Bm,Um,zm,Ur,Hm,Vm,Wm,Oo,jm,Gm,Km,qm,Zm,Qm,Ym,Xm,zr,Jm,eg,Eo,ng,tg,Ra,rg,pi,ag,ar,fi,og,Ie,$t,ig,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"})(Bm||(Bm={}));(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Um||(Um={}));(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"})(zm||(zm={}));(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"})(Ur||(Ur={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(Hm||(Hm={}));(function(r){r.VALUE="VALUE",r.DATE="DATE",r.RANGE="RANGE"})(Vm||(Vm={}));(function(r){r.OFFICIAL="OFFICIAL",r.AI="AI"})(Wm||(Wm={}));(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"})(jm||(jm={}));(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"})(Gm||(Gm={}));(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"})(Km||(Km={}));(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(qm||(qm={}));(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Zm||(Zm={}));(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"})(Ym||(Ym={}));(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"})(Xm||(Xm={}));(function(r){r.OPTIONAL="OPTIONAL",r.MANDATORY="MANDATORY"})(zr||(zr={}));(function(r){r.ASC="ASC",r.DESC="DESC"})(Jm||(Jm={}));(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(eg||(eg={}));(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Eo||(Eo={}));ng=r=>Object.keys(Eo).includes(r);(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK",r.HTML_PACKAGE="HTML_PACKAGE"})(tg||(tg={}));(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"})(rg||(rg={}));(function(r){r.LAST_WEEK="LAST_WEEK",r.LAST_MONTH="LAST_MONTH",r.LAST_QUARTER="LAST_QUARTER",r.LAST_YEAR="LAST_YEAR"})(pi||(pi={}));ag=r=>Object.keys(pi).includes(r);(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.HTML_PACKAGE="HTML_PACKAGE",r.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ar||(ar={}));(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS",r.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(fi||(fi={}));(function(r){r.PLAIN_TEXT="PLAIN_TEXT",r.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",r.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(og||(og={}));(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",r.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN"})(Ie||(Ie={}));(function(r){r.SEARCHES="SEARCHES",r.BOOKMARKS="BOOKMARKS",r.BOOKS="BOOKS",r.COLLECTIONS="COLLECTIONS"})($t||($t={}));(function(r){r.UNAUTHENTICATED="UNAUTHENTICATED",r.USER_INCOMPLETE="USER_INCOMPLETE",r.MFA_REQUIRED="MFA_REQUIRED",r.AUTHENTICATED="AUTHENTICATED"})(ig||(ig={}))});var sg,lg,cg,dg,ug,pg,fg,hg,mg,gg,yg,bg=u(()=>{(function(r){r.UNREACHABLE="UNREACHABLE",r.UNAUTHORIZED="UNAUTHORIZED",r.FORBIDDEN="FORBIDDEN",r.INCOMPATIBLE="INCOMPATIBLE",r.FAILED="FAILED",r.OK="OK"})(sg||(sg={}));(function(r){r.VALID="VALID",r.INVALID="INVALID"})(lg||(lg={}));(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"})(cg||(cg={}));(function(r){r.INACCURATE="INACCURATE",r.INCOMPLETE="INCOMPLETE",r.OFF_TOPIC="OFF_TOPIC",r.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",r.SLOW="SLOW",r.OTHER="OTHER"})(dg||(dg={}));(function(r){r.JSON="JSON",r.TEXT="TEXT"})(ug||(ug={}));(function(r){r.JSON="JSON",r.TEXT="TEXT"})(pg||(pg={}));(function(r){r.TEXT="TEXT",r.HTML="HTML"})(fg||(fg={}));(function(r){r.IN_PROGRESS="IN_PROGRESS",r.ERROR="ERROR",r.DONE="DONE"})(hg||(hg={}));(function(r){r.HTML="HTML",r.MARKDOWN="MARKDOWN"})(mg||(mg={}));(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"})(gg||(gg={}));(function(r){r.MAP="MAP",r.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(yg||(yg={}))});var vg=u(()=>{Nc();bg()});function xg(r,e){return r===e||(HC[r]??[]).some(t=>xg(t,e))}function Sg(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=>xg(o,e))}var HC,Cg=u(()=>{Nc();HC={[Ie.PERSONAL_BOOK_SHARE_USER]:[Ie.PERSONAL_BOOK_USER],[Ie.HTML_EXPORT_USER]:[Ie.PERSONAL_BOOK_USER],[Ie.PDF_EXPORT_USER]:[Ie.PERSONAL_BOOK_USER],[Ie.KHUB_ADMIN]:[Ie.CONTENT_PUBLISHER],[Ie.ADMIN]:[Ie.KHUB_ADMIN,Ie.USERS_ADMIN,Ie.PORTAL_ADMIN,Ie.BEHAVIOR_DATA_USER],[Ie.GENERATIVE_AI_EXPORT_USER]:[Ie.GENERATIVE_AI_USER]}});var Og=u(()=>{});var Hr=u(()=>{Pc();vg();Cg();Og();Pc()});var $c={};q($c,{SearchPlaceConverter:()=>Vr,SearchPlaceQueryParams:()=>Y,isSearchPlaceQueryParams:()=>wg,serializeRequest:()=>WC});function VC(r){return`"${r}"`}function Eg(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function WC(r,e){return new Vr(r).serialize(e)}function wg(r){return jC.has(r)}var Y,jC,Vr,Dc=u(()=>{"use strict";Hr();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={}));jC=new Set(Object.values(Y));Vr=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,A;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=>VC(Eg(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 z=(A=e.otherQueryParams)!==null&&A!==void 0?A:{};for(let J in z)L.append(J,z[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),A=x?x.toUpperCase()===zr.MANDATORY?zr.MANDATORY:zr.OPTIONAL:void 0,L={};for(let P of d.keys())wg(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:ng(g)?g:"EVERYWHERE",sortId:m,metadataFilters:this.parseCompatFilters(d),facets:[],paging:{page:1,perPage:gr(1,isNaN(v)?this.defaultPerPage:v,1e3)},keywordMatch:A,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(Eg).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(ag(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,Aa=u(()=>{"use strict";wo=class{static format(e,t,o,n,a){return window.moment?window.moment(e).locale(t).format(this.getMomentDateFormat(o,n,!!a)):this.getIntlDateTime(e,t,o,n,!!a)}static getMomentDateFormat(e,t,o){return o?"LT":e?t?"lll":"ll":t?"L LT":"L"}static getIntlDateTime(e,t,o,n,a){let s=typeof e=="string"?new Date(e):e,l=new Intl.DateTimeFormat(t,{dateStyle:o?"medium":"short"}).format(s),d=new Intl.DateTimeFormat(t,{timeStyle:"short"}).format(s);return a?d:n?`${l} ${d}`:l}static getTimezoneAsString(){let e=o=>String(Math.floor(o)).padStart(2,"0"),t=new Date().getTimezoneOffset();return`${t<0?"+":"-"}${e(Math.abs(t)/60)}:${e(Math.abs(t)%60)}`}}});var 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 Rg={};function GC(r){(r.key==="Enter"||r.key===" "||r.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=r.key}function KC(r){window.FluidTopicsA11yHints.isKeyboardNavigation=r.detail==0}var qc=u(()=>{"use strict";window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};document.addEventListener("keydown",GC);document.addEventListener("click",KC)});var mi,Zc=u(()=>{"use strict";_();mi=w`
47
+ `});var Gh={};var Jl=u(()=>{"use strict"});var ec={};q(ec,{ParametrizedLabelResolver:()=>Nr});var Nr,tc=u(()=>{"use strict";Nr=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 rC,fe,oC,Kh=u(()=>{"use strict";rt();K();rC=()=>(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})}},oC=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 ii(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ma=u(()=>{"use strict"});var pn,$r,bo,qh,bt,Zh=u(()=>{"use strict";ln();ma();rt();pn=Symbol("internalReduxEventsUnsubscribers"),$r=Symbol("internalStoresUnsubscribers"),bo=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[bo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[bo].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[bo].get(s)}addStore(s,l){var d;l=(d=l??s.name)!==null&&d!==void 0?d:"default-store",this.unsubscribeFromStore(l),this[bo].set(l,s),this.subscribeToStore(l,s),this.updateFromStores()}removeStore(s){let l=typeof s=="string"?s:s.name;this.unsubscribeFromStore(l),this[bo].delete(l)}setupStores(){this.unsubscribeFromStores(),this[bo].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[$r].has(s.store):this[$r].size>0)&&(this[l]=s.selector(f.getState(),this))}})}subscribeToStore(s,l){var d;this[$r].set(s,l.subscribe(()=>this.updateFromStores())),this[pn].set(s,[]),ii(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[$r].forEach((s,l)=>this.unsubscribeFromStore(l))}unsubscribeFromStore(s){var l;this[$r].has(s)&&this[$r].get(s)(),this[$r].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=$r,t=bo,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)===uC})(r)||Array.isArray(r)||!!r[rm]||!!(!((e=r.constructor)===null||e===void 0)&&e[rm])||uc(r)||pc(r))}function vo(r,e,t){t===void 0&&(t=!1),si(r)===0?(t?Object.keys:ai)(r).forEach((function(o){t&&typeof o=="symbol"||e(o,r[o],r)})):r.forEach((function(o,n){return e(n,o,r)}))}function si(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 ni(r,e){return si(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function iC(r,e){return si(r)===2?r.get(e):r[e]}function om(r,e,t){var o=si(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 cC&&r instanceof Map}function pc(r){return dC&&r instanceof Set}function Dr(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=ai(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)||(si(r)>1&&(r.set=r.add=r.clear=r.delete=nC),Object.freeze(r),e&&vo(r,(function(t,o){return hc(o,!0)}),!0)),r}function nC(){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 aC(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(sC),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 sC(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 vo(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),vo(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&&!ni(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?Dr(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 Mr(r){r.P||(r.P=!0,r.l&&Mr(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 lC(r){return br(r)||It(22,r),(function e(t){if(!Ht(t))return t;var o,n=t[Oe],a=si(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 vo(o,(function(s,l){n&&iC(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)&&Mr(d);break;case 4:t(d)&&Mr(d)}}}function t(s){for(var l=s.t,d=s.k,f=ai(d),g=f.length-1;g>=0;g--){var m=f[g];if(m!==Oe){var y=l[m];if(y===void 0&&!ni(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!==ai(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(Dr(s)))}var a={};aC("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=ai(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)vo(v,(function(C){C!==Oe&&(y[C]!==void 0||ni(y,C)?x[C]||f(v[C]):(x[C]=!0,Mr(m)))})),vo(y,(function(C){v[C]!==void 0||ni(v,C)||(x[C]=!1,Mr(m))}));else if(w===5){if(o(m)&&(Mr(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,cC,dC,tm,am,rm,Oe,uC,ai,sm,dc,mn,fn,pC,vt,fC,gk,yk,bk,vk,xk,Sk,va,xa=u(()=>{gc=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",cC=typeof Map<"u",dC=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",uC=""+Object.prototype.constructor,ai=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 ai(r).forEach((function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)})),e},dc={},mn={get:function(r,e){if(e===Oe)return r;var t=Dr(r);if(!ni(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 Dr(r)},ownKeys:function(r){return Reflect.ownKeys(Dr(r))},set:function(r,e,t){var o=Xh(Dr(r),e);if(o?.set)return o.set.call(r.k,t),!0;if(!r.P){var n=nc(Dr(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||ni(r.t,e)))return!0;ac(r),Mr(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),Mr(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=Dr(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={};vo(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])};pC=(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=lC(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 pC,fC=vt.produce,gk=vt.produceWithPatches.bind(vt),yk=vt.setAutoFreeze.bind(vt),bk=vt.setUseProxies.bind(vt),vk=vt.applyPatches.bind(vt),xk=vt.createDraft.bind(vt),Sk=vt.finishDraft.bind(vt),va=fC});function xo(r){"@babel/helpers - typeof";return xo=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},xo(r)}var yc=u(()=>{});function lm(r,e){if(xo(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(xo(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 xo(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 qe(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}function hC(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(qe(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(qe(1));return t(xc)(r,e)}if(typeof r!="function")throw new Error(qe(2));var n=r,a=e,s=[],l=s,d=!1;function f(){l===s&&(l=s.slice())}function g(){if(d)throw new Error(qe(3));return a}function m(w){if(typeof w!="function")throw new Error(qe(4));if(d)throw new Error(qe(5));var L=!0;return f(),l.push(w),function(){if(L){if(d)throw new Error(qe(6));L=!1,f();var B=l.indexOf(w);l.splice(B,1),s=null}}}function y(w){if(!hC(w))throw new Error(qe(7));if(typeof w.type>"u")throw new Error(qe(8));if(d)throw new Error(qe(9));try{d=!0,a=n(a,w)}finally{d=!1}for(var 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(qe(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(qe(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 mC(r){Object.keys(r).forEach(function(e){var t=r[e],o=t(void 0,{type:Sa.INIT});if(typeof o>"u")throw new Error(qe(12));if(typeof t(void 0,{type:Sa.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(qe(13))})}function ym(r){for(var e=Object.keys(r),t={},o=0;o<e.length;o++){var n=e[o];typeof r[n]=="function"&&(t[n]=r[n])}var a=Object.keys(t),s,l;try{mC(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(qe(14))}v[w]=B,y=y||B!==P}return y=y||a.length!==Object.keys(f).length,y?v:f}}function li(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function bm(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(qe(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=li.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 EC(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 Br(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 Fr(Fr({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 AC(r){return typeof r=="boolean"}function LC(){return function(e){return kC(e)}}function kC(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 wC;if(t&&(AC(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=LC(),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(EC(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=li;d&&(L=OC(Fr({trace:!Oc},typeof d=="object"&&d)));var P=new RC(w),B=P;Array.isArray(y)?B=ci([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 TC(r){return typeof r=="function"}function _C(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(TC(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=ci([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 IC(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=IC(e,g),v,x;"reducer"in m?(v=m.reducer,x=m.prepare):v=m,a[g]=v,s[y]=v,l[g]=x?Br(y,x):Br(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=Fr(Fr({},y),s);return _C(t,function(B){for(var E in P)B.addCase(E,P[E]);for(var C=0,k=x;C<k.length;C++){var z=k[C];B.addMatcher(z.matcher,z.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 MC(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function FC(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Rm,gC,ci,yC,bC,vC,Cm,xC,SC,Om,Fr,Cc,CC,OC,Bk,wC,RC,Oc,PC,NC,$C,Ec,Em,DC,Vk,Tm,_m,Im,Wk,jk,Gk,Kk,Rc,qk,Zk,Qk,wm,Yk,BC,Xk,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)}})(),gC=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}}},ci=function(r,e){for(var t=0,o=e.length,n=r.length;t<o;t++,n++)r[n]=e[t];return r},yC=Object.defineProperty,bC=Object.defineProperties,vC=Object.getOwnPropertyDescriptors,Cm=Object.getOwnPropertySymbols,xC=Object.prototype.hasOwnProperty,SC=Object.prototype.propertyIsEnumerable,Om=function(r,e,t){return e in r?yC(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Fr=function(r,e){for(var t in e||(e={}))xC.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];SC.call(e,t)&&Om(r,t,e[t])}return r},Cc=function(r,e){return bC(r,vC(e))},CC=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())})},OC=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?li:li.apply(null,arguments)},Bk=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};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,ci([void 0],t[0].concat(this)))):new(e.bind.apply(e,ci([void 0],t.concat(this))))},e})(Array),RC=(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,ci([void 0],t[0].concat(this)))):new(e.bind.apply(e,ci([void 0],t.concat(this))))},e})(Array);Oc=!0;PC="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",NC=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=PC[Math.random()*64|0];return e},$C=["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})(),DC=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)}},Vk=(function(){function r(e,t,o){var n=Br(e+"/fulfilled",function(g,m,y,v){return{payload:g,meta:Cc(Fr({},v||{}),{arg:y,requestId:m,requestStatus:"fulfilled"})}}),a=Br(e+"/pending",function(g,m,y){return{payload:void 0,meta:Cc(Fr({},y||{}),{arg:m,requestId:g,requestStatus:"pending"})}}),s=Br(e+"/rejected",function(g,m,y,v,x){return{payload:v,error:(o&&o.serializeError||DC)(g||"Rejected"),meta:Cc(Fr({},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):NC(),w=new d,L,P=!1;function B(C){L=C,w.abort()}var E=(function(){return CC(this,null,function(){var C,k,z,ce,J,ee,M;return gC(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}),FC(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,Ke){return w.signal.addEventListener("abort",function(){return Ke({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,Ke){return new Ec(se,Ke)},fulfillWithValue:function(se,Ke){return new Em(se,Ke)}})).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 z=V.sent(),[3,5];case 4:return ee=V.sent(),z=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(z)&&z.meta.condition,M||m(z),[2,z]}})})})();return Object.assign(E,{abort:B,requestId:x,arg:g,unwrap:function(){return E.then(MC)}})}}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",Wk="task-"+Im,jk="task-"+_m,Gk=Tm+"-"+Im,Kk=Tm+"-"+_m,Rc="listenerMiddleware",qk=Br(Rc+"/add"),Zk=Br(Rc+"/removeAll"),Qk=Br(Rc+"/remove"),Yk=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)})},BC=function(r){return function(e){setTimeout(e,r)}},Xk=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:BC(10);nm()});function UC(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))ii(e)&&e.clear()}var vr,Nm=u(()=>{"use strict";Pm();ma();rc();Zo();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(ii(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 di(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 So,Dm=u(()=>{"use strict";So=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:()=>So,ReduxWatcher:()=>Oa,clearAllStores:()=>UC,isFtReduxStore:()=>ii,redux:()=>fe,reduxEventListener:()=>oC,reduxReactive:()=>rC,watch:()=>di,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,Ur,Um,zm,Hm,Co,Vm,Wm,jm,Gm,Km,qm,Zm,Qm,zr,Ym,Xm,Oo,og,Jm,Ra,eg,ui,ig,ir,pi,tg,Ie,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"})(Ur||(Ur={}));(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"})(Co||(Co={}));(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"})(zr||(zr={}));(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"})(Oo||(Oo={}));og=r=>Object.keys(Oo).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"})(ui||(ui={}));ig=r=>Object.keys(ui).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"})(pi||(pi={}));(function(r){r.PLAIN_TEXT="PLAIN_TEXT",r.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",r.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(tg||(tg={}));(function(r){r.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",r.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",r.HTML_EXPORT_USER="HTML_EXPORT_USER",r.PDF_EXPORT_USER="PDF_EXPORT_USER",r.SAVED_SEARCH_USER="SAVED_SEARCH_USER",r.COLLECTION_USER="COLLECTION_USER",r.OFFLINE_USER="OFFLINE_USER",r.ANALYTICS_USER="ANALYTICS_USER",r.BETA_USER="BETA_USER",r.DEBUG_USER="DEBUG_USER",r.PRINT_USER="PRINT_USER",r.RATING_USER="RATING_USER",r.FEEDBACK_USER="FEEDBACK_USER",r.GENERATIVE_AI_USER="GENERATIVE_AI_USER",r.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",r.CONTENT_PUBLISHER="CONTENT_PUBLISHER",r.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",r.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",r.KHUB_ADMIN="KHUB_ADMIN",r.USERS_ADMIN="USERS_ADMIN",r.PORTAL_ADMIN="PORTAL_ADMIN",r.ADMIN="ADMIN"})(Ie||(Ie={}));(function(r){r.SEARCHES="SEARCHES",r.BOOKMARKS="BOOKMARKS",r.BOOKS="BOOKS",r.COLLECTIONS="COLLECTIONS"})(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||(zC[r]??[]).some(t=>bg(t,e))}function vg(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>bg(o,e))}var zC,xg=u(()=>{Nc();zC={[Ie.PERSONAL_BOOK_SHARE_USER]:[Ie.PERSONAL_BOOK_USER],[Ie.HTML_EXPORT_USER]:[Ie.PERSONAL_BOOK_USER],[Ie.PDF_EXPORT_USER]:[Ie.PERSONAL_BOOK_USER],[Ie.KHUB_ADMIN]:[Ie.CONTENT_PUBLISHER],[Ie.ADMIN]:[Ie.KHUB_ADMIN,Ie.USERS_ADMIN,Ie.PORTAL_ADMIN,Ie.BEHAVIOR_DATA_USER],[Ie.GENERATIVE_AI_EXPORT_USER]:[Ie.GENERATIVE_AI_USER]}});var Sg=u(()=>{});var Hr=u(()=>{Pc();yg();xg();Sg();Pc()});var $c={};q($c,{SearchPlaceConverter:()=>Vr,SearchPlaceQueryParams:()=>Y,isSearchPlaceQueryParams:()=>Og,serializeRequest:()=>VC});function HC(r){return`"${r}"`}function Cg(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function VC(r,e){return new Vr(r).serialize(e)}function Og(r){return WC.has(r)}var Y,WC,Vr,Dc=u(()=>{"use strict";Hr();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={}));WC=new Set(Object.values(Y));Vr=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=>HC(Cg(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 z=(w=e.otherQueryParams)!==null&&w!==void 0?w:{};for(let J in z)L.append(J,z[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()===zr.MANDATORY?zr.MANDATORY:zr.OPTIONAL:void 0,L={};for(let P of d.keys())Og(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(Cg).map(n=>this.unescapeFilterValue(n)),negative:t}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(t=>({key:t[0],dateFilter:{type:ui[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:ui[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:()=>Eo});var Eo,Aa=u(()=>{"use strict";Eo=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:()=>fi});var Hc,fi,Wc=u(()=>{"use strict";Hc="__all__",fi=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 fi(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 fi(t[0],o))}});Storage.prototype.clear=new Proxy(Storage.prototype.clear,{apply(r,e,t){Reflect.apply(r,e,t),window.dispatchEvent(new fi(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 Eg={};function jC(r){(r.key==="Enter"||r.key===" "||r.key==="Tab")&&(window.FluidTopicsA11yHints.isKeyboardNavigation=!0),window.FluidTopicsA11yHints.lastPressedKey=r.key}function GC(r){window.FluidTopicsA11yHints.isKeyboardNavigation=r.detail==0}var qc=u(()=>{"use strict";window.FluidTopicsA11yHints={isKeyboardNavigation:!1,lastPressedKey:""};document.addEventListener("keydown",jC);document.addEventListener("click",GC)});var hi,Zc=u(()=>{"use strict";_();hi=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 qC,gn,Yc=u(()=>{"use strict";rt();Qo();qC={checkVisibility:!0},gn=we(Symbol("withAriaNotification"),function(r){class e extends r{sendAriaNotification(o,n){let{checkVisibility:a}={...qC,...n};setTimeout(()=>{(!a||this.checkVisibility())&&(o=typeof o=="string"?o:o?.message,o&&this.dispatchEvent(new Yi({type:"aria",message:o})))},20)}}return e})});var Xc={};q(Xc,{withConditionalVisibility:()=>ZC});function ZC(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 Ag([h({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),Ag([I()],e.prototype,"isVisible",void 0),e}var Ag,Jc=u(()=>{"use strict";K();Ag=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 Lg=u(()=>{});var La=u(()=>{Lg()});var Ue,Ao,Lo,rd,JT,kg=u(()=>{"use strict";td();K();zt();La();_();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}})}},JT=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 Qc={};q(Qc,{withAriaNotification:()=>gn});var KC,gn,Yc=u(()=>{"use strict";rt();Zo();KC={checkVisibility:!0},gn=we(Symbol("withAriaNotification"),function(r){class e extends r{sendAriaNotification(o,n){let{checkVisibility:a}={...KC,...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:()=>qC});function qC(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 wg([h({type:Boolean,attribute:!1})],e.prototype,"forceVisible",void 0),wg([I()],e.prototype,"isVisible",void 0),e}var wg,Jc=u(()=>{"use strict";K();wg=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 wo(r,e,t){return r?e(r):t?.(r)}var Rg=u(()=>{});var La=u(()=>{Rg()});var Ue,Ro,Ao,rd,XT,Ag=u(()=>{"use strict";td();K();Bt();La();_();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"})(Ro||(Ro={}));(function(r){r.default="default",r.warning="warning",r.error="error"})(Ao||(Ao={}));rd=class extends CustomEvent{constructor(e){super("input-validated",{detail:{level:e}})}},XT=we(Symbol("toFtInput"),function(r){class e extends r{constructor(){super(...arguments),this.warningRules=[],this.errorRules=[],this.validateOn=Ro.input,this.validateAtRender=!1,this.label="",this.hideLabel=!1,this.name="",this.disabled=!1,this.errorMessages=[],this.warningMessages=[],this.status=Ao.default,this.focused=!1,this.additionalWarningRules=[],this.additionalErrorRules=[]}connectedCallback(){super.connectedCallback(),this.validateAtRender&&this.triggerValidation()}onBlur(){this.focused=!1,(this.validateOn===Ro.blur||this.validateOn===Ro.blurWithStatusResolutionOnInput)&&this.triggerValidation()}onFocus(){this.focused=!0}onInput(){(this.status!==Ao.default&&this.validateOn===Ro.blurWithStatusResolutionOnInput||this.validateOn===Ro.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`
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`
@@ -77,11 +77,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
77
77
  ${ye(this.warningMessages,o=>b`
78
78
  <li>${o}</li>
79
79
  `)}
80
- ${Ro(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>b`
80
+ ${wo(!this.errorMessages.length&&!this.warningMessages.length&&this.helperText,()=>b`
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 Tg=u(()=>{"use strict";kg();td()});function QC(r){this._$AN!==void 0?(ka(this),this._$AM=r,_g(this)):this._$AM=r}function YC(r,e=!1,t=0){let o=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(o))for(let a=t;a<o.length;a++)yn(o[a],!1),ka(o[a]);else o!=null&&(yn(o,!1),ka(o));else yn(this,r)}var yn,ka,_g,XC,gi,Ig=u(()=>{Ws();no();no();yn=(r,e)=>{let t=r._$AN;if(t===void 0)return!1;for(let o of t)o._$AO?.(e,!1),yn(o,e);return!0},ka=r=>{let e,t;do{if((e=r._$AM)===void 0)break;t=e._$AN,t.delete(r),r=e}while(t?.size===0)},_g=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),XC(e)}};XC=r=>{r.type==Xt.CHILD&&(r._$AP??=YC,r._$AQ??=QC)},gi=class extends kt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,o){super._$AT(e,t,o),_g(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(yn(this,e),ka(this))}setValue(e){if(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(()=>{Ig()});var Pg=u(()=>{Vo();At();Ms()});var id,y_,Ng=u(()=>{"use strict";_();od();Pg();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}},y_=ht(id)});var $g,JC,nd,S_,Dg=u(()=>{"use strict";od();_();(function(r){r.sm="sm",r.md="md",r.lg="lg",r.xl="xl"})($g||($g={}));JC={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:JC[e]}},S_=ht(nd)});var Mg=u(()=>{"use strict";Ng();Dg()});function Ta(r,e){class t extends r{constructor(){super(...arguments),this.configuredAnalyticsActions={}}emitAnalyticsAction(n,a){var s,l;let d=(l=(s=this.configuredAnalyticsActions)===null||s===void 0?void 0:s[n])===null||l===void 0?void 0:l.eventName;if(!d)return;let f=e[n];this.dispatchEvent(new ad({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||f?.defaultComponentId||this.tagName.toLowerCase(),data:a}))}}return t.analyticsActions=e,eO([ue({})],t.prototype,"configuredAnalyticsActions",void 0),t}var eO,ad,Fg=u(()=>{"use strict";so();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},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();zt();tt();Xp();qi();al();Xn();pl();oa();so();bl();xl();Qo();pa();Ml();ia();Wl();ln();jl();rt();Zl();Xl();Jl();tc();Ea();fa();Ic();ha();Dc();Uc();Aa();Yo();Wc();Kc();qc();Zc();ra();Yc();Jc();Kc();qc();al();Xn();pl();Aa();oa();so();bl();xl();Qo();pa();Ic();Ml();ia();Wl();Uc();ln();Yc();Jc();jl();rt();Zl();Xl();Jl();tc();Ea();Wc();fa();ha();Dc();Zc();Tg();Mg();ra();Yo();Fg();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,...Rg,..._c,...Dl,...gl,...Vl,...Bc,...zl,...Qc,...Xc,...Vh,...tl,...ql,...vl,...Yl,...mi,...qh,...ec,...Ac,...Vc,...Fl,...Ul,...$c,...ll,isSafari:ko,isTouchScreen:bn,setVariable:R}}});var Bg,le,Ug,zg,Hg,Vg,Wg,Sr=u(()=>{"use strict";_();O();Bg=i.extend("--ft-ripple-color","",S.colorContent),le={color:Bg,backgroundColor:i.extend("--ft-ripple-background-color","",Bg),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")},Ug=i.extend("--ft-ripple-color","",S.colorPrimary),zg={color:Ug,backgroundColor:i.extend("--ft-ripple-background-color","",Ug)},Hg=i.extend("--ft-ripple-color","",S.colorSecondary),Vg={color:Hg,backgroundColor:i.extend("--ft-ripple-background-color","",Hg)},Wg=w`
84
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Ao.error:this.warningMessages.length?Ao.warning:Ao.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 Lg=u(()=>{"use strict";Ag();td()});function ZC(r){this._$AN!==void 0?(ka(this),this._$AM=r,kg(this)):this._$AM=r}function QC(r,e=!1,t=0){let o=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(e)if(Array.isArray(o))for(let a=t;a<o.length;a++)yn(o[a],!1),ka(o[a]);else o!=null&&(yn(o,!1),ka(o));else yn(this,r)}var yn,ka,kg,YC,mi,Tg=u(()=>{Ws();no();no();yn=(r,e)=>{let t=r._$AN;if(t===void 0)return!1;for(let o of t)o._$AO?.(e,!1),yn(o,e);return!0},ka=r=>{let e,t;do{if((e=r._$AM)===void 0)break;t=e._$AN,t.delete(r),r=e}while(t?.size===0)},kg=r=>{for(let e;e=r._$AM;r=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(r))break;t.add(r),YC(e)}};YC=r=>{r.type==Yt.CHILD&&(r._$AP??=QC,r._$AQ??=ZC)},mi=class extends kt{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,o){super._$AT(e,t,o),kg(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(yn(this,e),ka(this))}setValue(e){if(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(()=>{Tg()});var _g=u(()=>{Ho();At();Ms()});var id,g_,Ig=u(()=>{"use strict";_();od();_g();id=class extends mi{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}},g_=ht(id)});var Pg,XC,nd,x_,Ng=u(()=>{"use strict";od();_();(function(r){r.sm="sm",r.md="md",r.lg="lg",r.xl="xl"})(Pg||(Pg={}));XC={sm:640,md:768,lg:1024,xl:1280},nd=class extends mi{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:XC[e]}},x_=ht(nd)});var $g=u(()=>{"use strict";Ig();Ng()});function Ta(r,e){class t extends r{constructor(){super(...arguments),this.configuredAnalyticsActions={}}emitAnalyticsAction(n,a){var s,l;let d=(l=(s=this.configuredAnalyticsActions)===null||s===void 0?void 0:s[n])===null||l===void 0?void 0:l.eventName;if(!d)return;let f=e[n];this.dispatchEvent(new ad({eventName:d,actionType:n,componentType:this.tagName.toLowerCase(),componentId:this.id||f?.defaultComponentId||this.tagName.toLowerCase(),data:a}))}}return t.analyticsActions=e,JC([ue({})],t.prototype,"configuredAnalyticsActions",void 0),t}var JC,ad,Dg=u(()=>{"use strict";so();JC=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,Lo,bn,O=u(()=>{"use strict";gp();_();K();Bt();tt();Xp();Ki();al();Xn();pl();oa();so();bl();xl();Zo();pa();Ml();ia();Wl();ln();jl();rt();Zl();Xl();Jl();tc();Ea();fa();Ic();ha();Dc();Uc();Aa();Qo();Wc();Kc();qc();Zc();ra();Yc();Jc();Kc();qc();al();Xn();pl();Aa();oa();so();bl();xl();Zo();pa();Ic();Ml();ia();Wl();Uc();ln();Yc();Jc();jl();rt();Zl();Xl();Jl();tc();Ea();Wc();fa();ha();Dc();Zc();Lg();$g();ra();Qo();Dg();Lo=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,...Eg,..._c,...Dl,...gl,...Vl,...Bc,...zl,...Qc,...Xc,...zh,...tl,...ql,...vl,...Yl,...hi,...Gh,...ec,...Ac,...Vc,...Fl,...Ul,...$c,...ll,isSafari:Lo,isTouchScreen:bn,setVariable:A}}});var Mg,le,Fg,Bg,Ug,zg,Hg,xr=u(()=>{"use strict";_();O();Mg=i.extend("--ft-ripple-color","",S.colorContent),le={color:Mg,backgroundColor:i.extend("--ft-ripple-background-color","",Mg),opacityContentOnSurfacePressed:i.external(S.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(S.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(S.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(S.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},Fg=i.extend("--ft-ripple-color","",S.colorPrimary),Bg={color:Fg,backgroundColor:i.extend("--ft-ripple-background-color","",Fg)},Ug=i.extend("--ft-ripple-color","",S.colorSecondary),zg={color:Ug,backgroundColor:i.extend("--ft-ripple-background-color","",Ug)},Hg=R`
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: ${Vg.backgroundColor};
139
+ background-color: ${zg.backgroundColor};
140
140
  }
141
141
 
142
142
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
143
- background-color: ${Vg.color};
143
+ background-color: ${zg.color};
144
144
  }
145
145
 
146
146
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
147
- background-color: ${zg.backgroundColor};
147
+ background-color: ${Bg.backgroundColor};
148
148
  }
149
149
 
150
150
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
151
- background-color: ${zg.color};
151
+ background-color: ${Bg.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();Sr();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,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`
197
197
  <style>
198
198
  .ft-ripple .ft-ripple--effect {
199
199
  left: ${this.originX}px;
@@ -204,8 +204,17 @@ 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=Wg;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 Gg=u(()=>{"use strict"});var Kg,qg=u(()=>{"use strict";ud();Kg={"ft-ripple":Z}});var Zg=u(()=>{"use strict";O();qg();U(Kg)});var ot=u(()=>{"use strict";ud();Sr();Gg();Zg()});var Yg,tO,pd,Qg,fd,hd,FI,BI,Xg=u(()=>{At();Yg=Symbol.for(""),tO=r=>{if(r?.r===Yg)return r?._$litStatic$},pd=r=>({_$litStatic$:r,r:Yg}),Qg=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=tO(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=Qg.get(m))===void 0&&(s.raw=s,Qg.set(m,e=s)),t=l}return r(e,...t)},hd=fd(b),FI=fd(Is),BI=fd(Ps)});var Jg=u(()=>{Xg()});var he,_a=u(()=>{"use strict";(function(r){r.title="title",r.title_dense="title-dense",r.subtitle1="subtitle1",r.subtitle2="subtitle2",r.body1="body1",r.body2="body2",r.caption="caption",r.breadcrumb="breadcrumb",r.overline="overline",r.button="button"})(he||(he={}))});var ey,Or,$,yi,bi,vi,xi,Cr,Me,xt,Si,Ci,sr,ty,ry,oy,iy,ny,Wr,jr,ay,sy,ly,cy,Wt=u(()=>{"use strict";_();O();ey=i.extend("--ft-typography-font-family","",S.titleFont),Or=i.extend("--ft-typography-font-family","",S.contentFont),$={fontFamily:Or,fontSize:i.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:i.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:i.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:i.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:i.create("--ft-typography-text-transform","","UNKNOWN","inherit")},yi={fontFamily:i.extend("--ft-typography-title-font-family","",ey),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","",ey),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","",Or),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","",Or),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")},Cr={fontFamily:i.extend("--ft-typography-body1-font-family","",Or),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","",Or),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","",Or),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","",Or),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","",Or),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")},sr={fontFamily:i.extend("--ft-typography-button-font-family","",Or),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")},ty=w`
207
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var t,o;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(t=this.target)===null||t===void 0||t.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,t;let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;o&&this.setupFor((t=this.target)!==null&&t!==void 0?t:o)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let t=(...l)=>d=>{l.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(d)},o=t("mouseup","contextmenu"),n=t("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&t("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",o,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",o,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let t=e,o=e,n,a;return t.x!=null?{x:n,y:a}=t:o.touches!=null&&(n=o.touches[0].clientX,a=o.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let t of e.composedPath()){if(t===this.target)break;if("hasAttribute"in t&&t.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Z.elementDefinitions={};Z.styles=Hg;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 Wg=u(()=>{"use strict"});var jg,Gg=u(()=>{"use strict";ud();jg={"ft-ripple":Z}});var Kg=u(()=>{"use strict";O();Gg();U(jg)});var ot=u(()=>{"use strict";ud();xr();Wg();Kg()});var Zg,eO,pd,qg,fd,hd,MI,FI,Qg=u(()=>{At();Zg=Symbol.for(""),eO=r=>{if(r?.r===Zg)return r?._$litStatic$},pd=r=>({_$litStatic$:r,r:Zg}),qg=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=eO(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=qg.get(m))===void 0&&(s.raw=s,qg.set(m,e=s)),t=l}return r(e,...t)},hd=fd(b),MI=fd(Is),FI=fd(Ps)});var Yg=u(()=>{Qg()});var he,_a=u(()=>{"use strict";(function(r){r.title="title",r.title_dense="title-dense",r.subtitle1="subtitle1",r.subtitle2="subtitle2",r.body1="body1",r.body2="body2",r.caption="caption",r.breadcrumb="breadcrumb",r.overline="overline",r.button="button"})(he||(he={}))});var Xg,Cr,$,gi,yi,bi,vi,Sr,Me,xt,xi,Si,nr,Jg,ey,ty,ry,oy,Wr,jr,iy,ny,ay,sy,Vt=u(()=>{"use strict";_();O();Xg=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")},gi={fontFamily:i.extend("--ft-typography-title-font-family","",Xg),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")},yi={fontFamily:i.extend("--ft-typography-title-dense-font-family","",Xg),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")},bi={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")},vi={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")},xi={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")},Si={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")},Jg=R`
208
208
  .ft-typography--title {
209
+ font-family: ${gi.fontFamily};
210
+ font-size: ${gi.fontSize};
211
+ font-weight: ${gi.fontWeight};
212
+ letter-spacing: ${gi.letterSpacing};
213
+ line-height: ${gi.lineHeight};
214
+ text-transform: ${gi.textTransform};
215
+ }
216
+ `,ey=R`
217
+ .ft-typography--title-dense {
209
218
  font-family: ${yi.fontFamily};
210
219
  font-size: ${yi.fontSize};
211
220
  font-weight: ${yi.fontWeight};
@@ -213,8 +222,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
213
222
  line-height: ${yi.lineHeight};
214
223
  text-transform: ${yi.textTransform};
215
224
  }
216
- `,ry=w`
217
- .ft-typography--title-dense {
225
+ `,ty=R`
226
+ .ft-typography--subtitle1 {
218
227
  font-family: ${bi.fontFamily};
219
228
  font-size: ${bi.fontSize};
220
229
  font-weight: ${bi.fontWeight};
@@ -222,8 +231,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
222
231
  line-height: ${bi.lineHeight};
223
232
  text-transform: ${bi.textTransform};
224
233
  }
225
- `,oy=w`
226
- .ft-typography--subtitle1 {
234
+ `,ry=R`
235
+ .ft-typography--subtitle2 {
227
236
  font-family: ${vi.fontFamily};
228
237
  font-size: ${vi.fontSize};
229
238
  font-weight: ${vi.fontWeight};
@@ -231,26 +240,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
231
240
  line-height: ${vi.lineHeight};
232
241
  text-transform: ${vi.textTransform};
233
242
  }
234
- `,iy=w`
235
- .ft-typography--subtitle2 {
236
- font-family: ${xi.fontFamily};
237
- font-size: ${xi.fontSize};
238
- font-weight: ${xi.fontWeight};
239
- letter-spacing: ${xi.letterSpacing};
240
- line-height: ${xi.lineHeight};
241
- text-transform: ${xi.textTransform};
242
- }
243
243
 
244
- `,ny=w`
244
+ `,oy=R`
245
245
  .ft-typography--body1 {
246
- font-family: ${Cr.fontFamily};
247
- font-size: ${Cr.fontSize};
248
- font-weight: ${Cr.fontWeight};
249
- letter-spacing: ${Cr.letterSpacing};
250
- line-height: ${Cr.lineHeight};
251
- text-transform: ${Cr.textTransform};
252
- }
253
- `,Wr=w`
246
+ font-family: ${Sr.fontFamily};
247
+ font-size: ${Sr.fontSize};
248
+ font-weight: ${Sr.fontWeight};
249
+ letter-spacing: ${Sr.letterSpacing};
250
+ line-height: ${Sr.lineHeight};
251
+ text-transform: ${Sr.textTransform};
252
+ }
253
+ `,Wr=R`
254
254
  .ft-typography--body2 {
255
255
  font-family: ${Me.fontFamily};
256
256
  font-size: ${Me.fontSize};
@@ -259,7 +259,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
259
259
  line-height: ${Me.lineHeight};
260
260
  text-transform: ${Me.textTransform};
261
261
  }
262
- `,jr=w`
262
+ `,jr=R`
263
263
  .ft-typography--caption {
264
264
  font-family: ${xt.fontFamily};
265
265
  font-size: ${xt.fontSize};
@@ -268,8 +268,17 @@ 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
- `,ay=w`
271
+ `,iy=R`
272
272
  .ft-typography--breadcrumb {
273
+ font-family: ${xi.fontFamily};
274
+ font-size: ${xi.fontSize};
275
+ font-weight: ${xi.fontWeight};
276
+ letter-spacing: ${xi.letterSpacing};
277
+ line-height: ${xi.lineHeight};
278
+ text-transform: ${xi.textTransform};
279
+ }
280
+ `,ny=R`
281
+ .ft-typography--overline {
273
282
  font-family: ${Si.fontFamily};
274
283
  font-size: ${Si.fontSize};
275
284
  font-weight: ${Si.fontWeight};
@@ -277,29 +286,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
277
286
  line-height: ${Si.lineHeight};
278
287
  text-transform: ${Si.textTransform};
279
288
  }
280
- `,sy=w`
281
- .ft-typography--overline {
282
- font-family: ${Ci.fontFamily};
283
- font-size: ${Ci.fontSize};
284
- font-weight: ${Ci.fontWeight};
285
- letter-spacing: ${Ci.letterSpacing};
286
- line-height: ${Ci.lineHeight};
287
- text-transform: ${Ci.textTransform};
288
- }
289
- `,ly=w`
289
+ `,ay=R`
290
290
  .ft-typography--button {
291
- font-family: ${sr.fontFamily};
292
- font-size: ${sr.fontSize};
293
- font-weight: ${sr.fontWeight};
294
- letter-spacing: ${sr.letterSpacing};
295
- line-height: ${sr.lineHeight};
296
- text-transform: ${sr.textTransform};
297
- }
298
- `,cy=w`
291
+ font-family: ${nr.fontFamily};
292
+ font-size: ${nr.fontSize};
293
+ font-weight: ${nr.fontWeight};
294
+ letter-spacing: ${nr.letterSpacing};
295
+ line-height: ${nr.lineHeight};
296
+ text-transform: ${nr.textTransform};
297
+ }
298
+ `,sy=R`
299
299
  .ft-typography {
300
300
  vertical-align: inherit;
301
301
  }
302
- `});var dy,ne,md=u(()=>{"use strict";Jg();K();O();_a();Wt();dy=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`
302
+ `});var ly,ne,md=u(()=>{"use strict";Yg();K();O();_a();Vt();ly=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
303
  <${pd(this.element)}
304
304
  part="text"
305
305
  class="ft-typography ft-typography--${this.variant}">
@@ -307,7 +307,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
307
307
  </${pd(this.element)}>
308
308
  `:hd`
309
309
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
310
- `}};ne.styles=[ty,ry,oy,iy,ny,Wr,jr,ay,sy,ly,cy];dy([h()],ne.prototype,"element",void 0);dy([h()],ne.prototype,"variant",void 0)});var uy,py=u(()=>{"use strict";md();uy={"ft-typography":ne}});var fy=u(()=>{"use strict";O();py();U(uy)});var Te=u(()=>{"use strict";md();Wt();_a();fy()});var vn,hy,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")},hy=w`
310
+ `}};ne.styles=[Jg,ey,ty,ry,oy,Wr,jr,iy,ny,ay,sy];ly([h()],ne.prototype,"element",void 0);ly([h()],ne.prototype,"variant",void 0)});var cy,dy=u(()=>{"use strict";md();cy={"ft-typography":ne}});var uy=u(()=>{"use strict";O();dy();U(cy)});var Te=u(()=>{"use strict";md();Vt();_a();uy()});var vn,py,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")},py=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 rO,Oi,xn,oO,H,Ze=u(()=>{"use strict";O();rO="ft-app-info",Oi=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};Oi.eventName="authentication-change";xn=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};xn.eventName="ui-locale-changed";oO={session:(r,e)=>{De(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>H.dispatchEvent(new Oi(e.payload)),0))}},H=xr.get({name:rO,reducers:oO,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}})});var Ia,bP,my=u(()=>{"use strict";K();Ea();Aa();Ze();O();Ia=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},bP=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(H)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===o))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>wo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ia([h({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ia([h({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ia([fe({store:H.name,selector:t=>{var o,n;return(n=(o=t.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Ia([fe({store:H.name})],e.prototype,"uiLocale",void 0),e})});var To,yd=u(()=>{"use strict";Ze();To=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:o}=H.getState(),n=e??o;if(t&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,n,!0)}static await(e){return new Promise(t=>{let o=r.get(e);if(o)t(o);else{let n=H.subscribe(()=>{o=r.get(e),o&&(n(),t(o))})}})}}});var Ei,bd=u(()=>{"use strict";yd();Ei=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:To.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):To.await()}}});var Qe,Gr=u(()=>{"use strict";O();bd();Qe=class extends Ei{constructor(e=!0,t){var o;super(t),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([l],[d])=>l.localeCompare(d)));let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new er,this.cache=e?n.commonCache:new er}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((t,o)=>0|31*t+o.charCodeAt(0),0))}}});var Pa,vd=u(()=>{"use strict";Ze();Hr();Gr();Pa=class extends Qe{async listMySearches(){let{session:e}=H.getState();return Sg(e,Ie.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var Na,xd=u(()=>{"use strict";Ze();Gr();Na=class extends Qe{async listMyBookmarks(){let e=H.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var $a,gy=u(()=>{"use strict";Ze();Gr();$a=class extends Qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=H.getState().session;return!!e?.sessionAuthenticated}}});var Da,yy=u(()=>{"use strict";Gr();Ze();Da=class extends Qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=H.getState().session;return!!e?.sessionAuthenticated}}});var iO,nO,xy,Sd,Cd,by,vy,it,Od,Ed,Ma=u(()=>{"use strict";Hr();O();vd();xd();Ze();gy();yy();iO="ft-user-assets",nO={setAssetCount:(r,e)=>{let{userAssetType:t,count:o}=e.payload.assetCount;r.assetCounts.allAsset[t]=o},clearAssetCount:r=>{Object.values($t).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]),by(r,t,1,o),vy(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)),vy(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)),by(r,t,-1,o)}},xy={[$t.SEARCHES]:"savedSearches",[$t.BOOKMARKS]:"bookmarks",[$t.BOOKS]:void 0,[$t.COLLECTIONS]:void 0},Sd=(r,e)=>{var t;let o=xy[e];return o?(t=r[o])!==null&&t!==void 0?t:[]:[]},Cd=(r,e,t)=>{let o=xy[e];o&&(r[o]=t)},by=(r,e,t,o)=>{let n=r.assetCounts.allAsset[e];if(n!==void 0&&(r.assetCounts.allAsset[e]=Math.max(0,n+t),e===$t.BOOKMARKS&&o)){let a=r.assetCounts.bookmarkByMap[o];r.assetCounts.bookmarkByMap[o]=Math.max(0,a+t)}},vy=(r,e)=>{let t=r.assetLabels.map(n=>n.title),o=e.labels.filter(n=>!t.includes(n)).map(n=>({title:n}));r.assetLabels.push(...o)},it=xr.get({name:iO,reducers:nO,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values($t).map(r=>[r,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Od=class{constructor(e=new $a,t=new Da){this.assetCountsService=e,this.assetLabelsService=t,this.currentSession=H.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Na,this.savedSearchesService=new Pa,H.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=H.getState();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===$t.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 Sy=u(()=>{"use strict";Hr();Ma()});var wd,Cy=u(()=>{"use strict";Ze();wd=class{addCommand(e,t=!1){H.commands.add(e,t)}consumeCommand(e){return H.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new wd});var Oy,wi,aO,Fa,Ri,Ba,Ey=u(()=>{"use strict";Ze();O();Gr();wi=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},aO=Symbol("clearAfterUnitTest"),Fa=class extends ea(Qe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Oy]=()=>{this.defaultMessages={},this.cache=new er,this.listeners={}},this.currentUiLocale=H.getState().uiLocale,H.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=H.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var o;if(e=e.toLowerCase(),t&&Object.keys(t).length>0){let n={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...t};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 Nr((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(t,...o)}async fetchContext(e){let t=!this.cache.has(e),o;try{o=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),t&&await this.notify(e)}catch(n){!(n instanceof Jt)&&t&&console.error(n)}return o}subscribe(e,t){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(t),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(t)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new wi({loadedContexts:e})),this.dispatchEvent(new wi({loadedContexts:e})),await Promise.all(e.map(t=>this.notify(t,!1)))}async notify(e,t=!0){t&&(document.body.dispatchEvent(new wi({loadedContexts:[e]})),this.dispatchEvent(new wi({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>Jn(0).then(()=>o()).catch(()=>null)))}};Oy=aO;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Fa{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Fa{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});Ri=window.FluidTopicsI18nService,Ba=window.FluidTopicsCustomI18nService});var Rd,wy=u(()=>{"use strict";O();Rd=class{highlightHtml(e,t,o){Kl(e,t,o)}};window.FluidTopicsHighlightHtmlService=new Rd});var Ad,Ry=u(()=>{"use strict";O();Ze();Ad=class{isDate(e){var t,o,n,a;return(a=(n=((o=(t=H.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,t){var o,n,a,s;if(e==null)return"";try{return wo.format(e,(o=t?.locale)!==null&&o!==void 0?o:H.getState().uiLocale,(n=t?.longFormat)!==null&&n!==void 0?n:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1,(s=t?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new Ad});var Er,Ld=u(()=>{"use strict";O();Ze();Er=class{static get(e,t){var o,n;let a=H.getState(),{lang:s,region:l}=(n=(o=a.defaultLocales)===null||o===void 0?void 0:o.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Vr(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,t??`${s}-${l}`)}}});var Ua,Ay=u(()=>{"use strict";Gr();Ua=class extends Qe{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let t;switch(e.editorialType){case"BOOK":t="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":t="SHARED_PERSONAL_BOOK";break;case"ARTICLE":t="RESOURCE";break;case"HTML_PACKAGE":t="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:t,metadata:e.metadata}}sortEventArrays(e){let t=Object.entries(e).map(([o,n])=>Array.isArray(n)?[o,n.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof n=="object"&&n!==null?[o,this.sortEventArrays(n)]:[o,n]);return Object.fromEntries(t)}sendEvents(e,t){let o="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>o).catch(n=>(console.info(t),console.debug(n),o)),1e3)}}});var kd,Ly=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,ky=u(()=>{"use strict";_o=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{currentItem:e}})}};_o.eventName="change"});var Td,Ty,_y=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))}},Ty=new Td});var za,Iy=u(()=>{"use strict";O();ky();_y();za=class r extends yr{static build(){return new r(window.history,Ty,()=>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 Py=u(()=>{"use strict";Iy();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 Ny=u(()=>{"use strict";Ze()});var Ha=u(()=>{"use strict";xd();yd();Cy();Ey();Gr();wy();vd();Ry();Ld();Ay();Ly();Py();Ny()});var $y,_d=u(()=>{"use strict";_();$y=w`
342
- `});var Dy=u(()=>{"use strict"});function My(r,e){let{authenticationRequired:t,session:o}=H.getState();return t&&!o?.sessionAuthenticated?Promise.resolve(e):r()}var Fy=u(()=>{"use strict";Ze()});var Va,By=u(()=>{"use strict";bd();Va=class extends Ei{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}}});var Id,Sn,Pd=u(()=>{"use strict";O();Ze();Fy();Ha();By();Id=class r extends Co{static build(e){return new r(H,e)}constructor(e,t){super(),this.store=e,this.cache=new er,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new Va,this.cleanSessionDebouncer=new ae,this.reloadDebouncer=new ae(500),this.apiProvider=t??(()=>To.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Oi.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},t.idleTimeoutInMillis),t});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let t=await this.cache.get("availableContentLocales",()=>My(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=t.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){var t,o,n,a,s;this.localesConfiguration=e,this.store.actions.defaultLocales(this.localesConfiguration.defaultLocales),this.store.actions.availableUiLocales((t=this.localesConfiguration.availableUiLocales)!==null&&t!==void 0?t:[]),this.store.actions.searchInAllLanguagesAllowed((o=this.localesConfiguration.allLanguagesAllowed)!==null&&o!==void 0?o:!1),this.store.actions.searchLanguageSetsUiLanguage((n=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&n!==void 0?n:!1),this.store.actions.uiLanguageSetsSearchLanguage((a=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&a!==void 0?a:!1),this.store.actions.uiLanguageSetsReaderLanguage((s=this.localesConfiguration.uiLanguageSetsReaderLanguage)!==null&&s!==void 0?s:!1),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e){this.userLocaleService.updateUiLocale({uiLocale:e}).then(t=>{t.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new xn(t)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},Sn=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 Uy=u(()=>{});var Nd=u(()=>{Cn();});var zy=u(()=>{});var $d=u(()=>{Cn();zy();});var On,Hy=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 Vy=u(()=>{$d();});var Wy=u(()=>{Nd();});var jy=u(()=>{Cn();Uy();Nd();$d();Hy();Vy();Wy()});var Ye,ke,Dd=u(()=>{"use strict";_();K();O();_d();Ha();Pd();jy();Ye=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ke=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 tO,Ci,xn,rO,H,Ze=u(()=>{"use strict";O();tO="ft-app-info",Ci=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};Ci.eventName="authentication-change";xn=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:e})}};xn.eventName="ui-locale-changed";rO={session:(r,e)=>{De(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>H.dispatchEvent(new Ci(e.payload)),0))}},H=vr.get({name:tO,reducers:rO,initialState:{baseUrl: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 Ia,yP,fy=u(()=>{"use strict";K();Ea();Aa();Ze();O();Ia=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},yP=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(H)}dateFormatOptionsChanged(o){return o.has("metadataDescriptors")||o.has("useLongDateFormat")||o.has("useDateTimeFormat")||o.has("uiLocale")}getDateFormatter(o){var n,a;return((a=(n=this.metadataDescriptors.find(l=>l.key===o))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?l=>Eo.format(l,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ia([h({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ia([h({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ia([fe({store:H.name,selector:t=>{var o,n;return(n=(o=t.metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Ia([fe({store:H.name})],e.prototype,"uiLocale",void 0),e})});var ko,yd=u(()=>{"use strict";Ze();ko=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:o}=H.getState(),n=e??o;if(t&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,n,!0)}static await(e){return new Promise(t=>{let o=r.get(e);if(o)t(o);else{let n=H.subscribe(()=>{o=r.get(e),o&&(n(),t(o))})}})}}});var 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:ko.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ko.await()}}});var Qe,Gr=u(()=>{"use strict";O();bd();Qe=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 Pa,vd=u(()=>{"use strict";Ze();Hr();Gr();Pa=class extends Qe{async listMySearches(){let{session:e}=H.getState();return vg(e,Ie.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}}});var Na,xd=u(()=>{"use strict";Ze();Gr();Na=class extends Qe{async listMyBookmarks(){let e=H.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}}});var $a,hy=u(()=>{"use strict";Ze();Gr();$a=class extends Qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=H.getState().session;return!!e?.sessionAuthenticated}}});var Da,my=u(()=>{"use strict";Gr();Ze();Da=class extends Qe{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=H.getState().session;return!!e?.sessionAuthenticated}}});var oO,iO,by,Sd,Cd,gy,yy,it,Od,Ed,Ma=u(()=>{"use strict";Hr();O();vd();xd();Ze();hy();my();oO="ft-user-assets",iO={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]),gy(r,t,1,o),yy(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)),yy(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)),gy(r,t,-1,o)}},by={[Pt.SEARCHES]:"savedSearches",[Pt.BOOKMARKS]:"bookmarks",[Pt.BOOKS]:void 0,[Pt.COLLECTIONS]:void 0},Sd=(r,e)=>{var t;let o=by[e];return o?(t=r[o])!==null&&t!==void 0?t:[]:[]},Cd=(r,e,t)=>{let o=by[e];o&&(r[o]=t)},gy=(r,e,t,o)=>{let n=r.assetCounts.allAsset[e];if(n!==void 0&&(r.assetCounts.allAsset[e]=Math.max(0,n+t),e===Pt.BOOKMARKS&&o)){let a=r.assetCounts.bookmarkByMap[o];r.assetCounts.bookmarkByMap[o]=Math.max(0,a+t)}},yy=(r,e)=>{let t=r.assetLabels.map(n=>n.title),o=e.labels.filter(n=>!t.includes(n)).map(n=>({title:n}));r.assetLabels.push(...o)},it=vr.get({name:oO,reducers:iO,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 $a,t=new Da){this.assetCountsService=e,this.assetLabelsService=t,this.currentSession=H.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Na,this.savedSearchesService=new Pa,H.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=H.getState();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 vy=u(()=>{"use strict";Hr();Ma()});var wd,xy=u(()=>{"use strict";Ze();wd=class{addCommand(e,t=!1){H.commands.add(e,t)}consumeCommand(e){return H.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new wd});var Sy,Ei,nO,Fa,wi,Ba,Cy=u(()=>{"use strict";Ze();O();Gr();Ei=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},nO=Symbol("clearAfterUnitTest"),Fa=class extends ea(Qe){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Sy]=()=>{this.defaultMessages={},this.cache=new Jt,this.listeners={}},this.currentUiLocale=H.getState().uiLocale,H.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=H.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var o;if(e=e.toLowerCase(),t&&Object.keys(t).length>0){let n={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...t};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 Nr((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)))}};Sy=nO;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 Rd,Oy=u(()=>{"use strict";O();Rd=class{highlightHtml(e,t,o){Kl(e,t,o)}};window.FluidTopicsHighlightHtmlService=new Rd});var Ad,Ey=u(()=>{"use strict";O();Ze();Ad=class{isDate(e){var t,o,n,a;return(a=(n=((o=(t=H.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,t){var o,n,a,s;if(e==null)return"";try{return Eo.format(e,(o=t?.locale)!==null&&o!==void 0?o:H.getState().uiLocale,(n=t?.longFormat)!==null&&n!==void 0?n:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1,(s=t?.onlyTime)!==null&&s!==void 0?s:!1)}catch(l){throw console.error(`Date ${JSON.stringify(e)} is not valid`,l),l}}};window.FluidTopicsDateService=new Ad});var Or,Ld=u(()=>{"use strict";O();Ze();Or=class{static get(e,t){var o,n,a,s;let l=H.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 Vr(l.baseUrl,e??20,(s=l.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,t??`${d}-${f}`)}}});var Ua,wy=u(()=>{"use strict";Gr();Ua=class extends Qe{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let t;switch(e.editorialType){case"BOOK":t="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":t="SHARED_PERSONAL_BOOK";break;case"ARTICLE":t="RESOURCE";break;case"HTML_PACKAGE":t="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:t,metadata:e.metadata}}sortEventArrays(e){let t=Object.entries(e).map(([o,n])=>Array.isArray(n)?[o,n.map(a=>typeof a=="object"&&a!=null&&!Array.isArray(a)?this.sortEventArrays(a):a).sort((a,s)=>typeof a=="object"&&a!==null&&"key"in a?a.key.localeCompare(s.key):typeof a=="string"&&typeof s=="string"?a.localeCompare(s):String(a).localeCompare(String(s)))]:typeof n=="object"&&n!==null?[o,this.sortEventArrays(n)]:[o,n]);return Object.fromEntries(t)}sendEvents(e,t){let o="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>o).catch(n=>(console.info(t),console.debug(n),o)),1e3)}}});var kd,Ry=u(()=>{"use strict";Ld();kd=class{urlToSearchRequest(e){return Or.get().parse(e)}searchRequestToUrl(e){return Or.get().serialize(e)}};window.FluidTopicsUrlService=new kd});var To,Ay=u(()=>{"use strict";To=class r extends CustomEvent{constructor(e){super(r.eventName,{detail:{currentItem:e}})}};To.eventName="change"});var Td,Ly,ky=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))}},Ly=new Td});var za,Ty=u(()=>{"use strict";O();Ay();ky();za=class r extends mr{static build(){return new r(window.history,Ly,()=>window.location,!1)}constructor(e,t,o,n){var a,s;super(),this.history=e,this.historyStorage=t,this.windowLocation=o,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,t=!1){let o=t&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,o&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),De(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new To(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(To.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(To.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 _y=u(()=>{"use strict";Ty();window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=za.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:r=>window.FluidTopicsInternalHistoryService.backwardItemMatching(r),addHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(r),removeHistoryChangeListener:r=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(r)})});var Iy=u(()=>{"use strict";Ze()});var Ha=u(()=>{"use strict";xd();yd();xy();Cy();Gr();Oy();vd();Ey();Ld();wy();Ry();_y();Iy()});var Py,_d=u(()=>{"use strict";_();Py=R`
342
+ `});var Ny=u(()=>{"use strict"});function $y(r,e){let{authenticationRequired:t,session:o}=H.getState();return t&&!o?.sessionAuthenticated?Promise.resolve(e):r()}var Dy=u(()=>{"use strict";Ze()});var Va,My=u(()=>{"use strict";bd();Va=class extends Oi{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}}});var Id,Sn,Pd=u(()=>{"use strict";O();Ze();Dy();Ha();My();Id=class r extends So{static build(e){return new r(H,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??(()=>ko.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Ci.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}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 _o,Cn=u(()=>{_o=class extends Event{constructor(e,t,o,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=t,this.callback=o,this.subscribe=n??!1}}});var Fy=u(()=>{});var Nd=u(()=>{Cn();});var By=u(()=>{});var $d=u(()=>{Cn();By();});var On,Uy=u(()=>{Cn();On=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let t=this.pendingContextRequests.get(e.context);if(t===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:o}=t;for(let{elementRef:n,callbackRef:a}of o){let s=n.deref(),l=a.deref();s===void 0||l===void 0||s.dispatchEvent(new _o(e.context,s,l,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let t=e.contextTarget??e.composedPath()[0],o=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let a=n.callbacks.get(t);a===void 0&&n.callbacks.set(t,a=new WeakSet),a.has(o)||(a.add(o),n.requests.push({elementRef:new WeakRef(t),callbackRef:new WeakRef(o)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}}});var zy=u(()=>{$d();});var Hy=u(()=>{Nd();});var Vy=u(()=>{Cn();Fy();Nd();$d();Uy();zy();Hy()});var Ye,ke,Dd=u(()=>{"use strict";_();K();O();_d();Ha();Pd();Vy();Ye=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ke=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("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>Ri.addContext(o)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((t=this.stateManager)===null||t===void 0||t.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};ke.elementDefinitions={};ke.styles=$y;Ye([h()],ke.prototype,"baseUrl",void 0);Ye([h()],ke.prototype,"apiIntegrationIdentifier",void 0);Ye([h()],ke.prototype,"apiIntegrationAppVersion",void 0);Ye([h()],ke.prototype,"uiLocale",void 0);Ye([ue(null)],ke.prototype,"availableUiLocales",void 0);Ye([ue(null)],ke.prototype,"metadataConfiguration",void 0);Ye([h({type:Boolean})],ke.prototype,"editorMode",void 0);Ye([h({type:Boolean})],ke.prototype,"noCustom",void 0);Ye([h({type:Boolean})],ke.prototype,"openExternalDocumentInNewTab",void 0);Ye([h({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],ke.prototype,"noCustomComponent",void 0);Ye([h({type:Boolean})],ke.prototype,"withManualResources",void 0);Ye([h({type:Boolean})],ke.prototype,"navigatorOnline",void 0);Ye([h({type:Boolean})],ke.prototype,"forcedOffline",void 0);Ye([h({type:Boolean})],ke.prototype,"authenticationRequired",void 0);Ye([ue([])],ke.prototype,"messageContexts",void 0);Ye([ue(void 0)],ke.prototype,"session",void 0)});var Gy,Ky=u(()=>{"use strict";Dd();Gy={"ft-app-context":ke}});var qy=u(()=>{"use strict";O();Ky();U(Gy)});var jt=u(()=>{"use strict";my();Ze();Ma();Sy();Ha();_d();Dy();Dd();Pd();qy()});var Md,Ai,Wa=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-]+$/)}},Ai=new Md});var cO,wn,Zy,Qy,ja,En,ut,Ga,Ka,Rn=u(()=>{"use strict";O();jt();K();Wa();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},wn=Symbol("i18nAttributes"),Zy=Symbol("i18nListAttributes"),Qy=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:Ri}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(Ai.isI18nKey(a)){let[l,d]=a.split(".");return this.i18n({custom:!0,context:l,key:d,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,l,d)=>a.has(l)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,l,d)=>{var f;return((f=d?.context)===null||f===void 0?void 0:f.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,l;let d=this,f=(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[Zy])===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[Qy])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[ja].set(d,{isCustomContext:l}),this[En].has(d)||this[En].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[ja].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ja].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[En].forEach(a=>a()),this[En].clear()}}return e=ja,t=En,cO([h({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}),Ga=class extends ut(D){},Ka=class extends ut(bt){}});var Fd,dO,Yy=u(()=>{"use strict";Wa();Fd=class{fromAttribute(e){if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t.map(o=>typeof o=="string"?Ai.fromAttribute(o):o):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},dO=new Fd});var Li,qa=u(()=>{"use strict";Rn();O();Wa();Yy();Li=(r,e)=>(t,o)=>{var n;t.constructor.createProperty(o,{type:Object,hasChanged:gt,converter:Ai,...e}),t[wn]=(n=t[wn])!==null&&n!==void 0?n:new Map,t[wn].set(o,r??{})}});var lr,Xy=u(()=>{"use strict";jt();lr=class r{static build(e){return new r(e)}static buildCustom(e){return new r(e,!0)}static fromGwt(e){return new r(e)}get service(){return this.custom?Ba:Ri}constructor(e,t=!1){this.name=e,this.custom=t,this.properties=new Proxy({},{get:(o,n)=>{let a=n;return s=>({context:this.name,key:a,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(o,n)=>(...a)=>this.service.resolveMessage(this.name,n,...a)}),this.rawMessages=new Proxy({},{get:(o,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(o,n)=>()=>n}),this.attributes=new Proxy({},{get:(o,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}}});var Jy=u(()=>{"use strict";Rn()});var eb,Bd=u(()=>{"use strict";_();eb=w`
345
- `});var tb=u(()=>{"use strict"});var An,Gt,Ud=u(()=>{"use strict";_();K();O();Bd();Rn();jt();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},Gt=class extends Ka{constructor(){super(),this.editorMode=!1,this.addStore(H)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":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("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())}};ke.elementDefinitions={};ke.styles=Py;Ye([h()],ke.prototype,"baseUrl",void 0);Ye([h()],ke.prototype,"apiIntegrationIdentifier",void 0);Ye([h()],ke.prototype,"apiIntegrationAppVersion",void 0);Ye([h()],ke.prototype,"uiLocale",void 0);Ye([ue(null)],ke.prototype,"availableUiLocales",void 0);Ye([ue(null)],ke.prototype,"metadataConfiguration",void 0);Ye([h({type:Boolean})],ke.prototype,"editorMode",void 0);Ye([h({type:Boolean})],ke.prototype,"noCustom",void 0);Ye([h({type:Boolean})],ke.prototype,"openExternalDocumentInNewTab",void 0);Ye([h({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],ke.prototype,"noCustomComponent",void 0);Ye([h({type:Boolean})],ke.prototype,"withManualResources",void 0);Ye([h({type:Boolean})],ke.prototype,"navigatorOnline",void 0);Ye([h({type:Boolean})],ke.prototype,"forcedOffline",void 0);Ye([h({type:Boolean})],ke.prototype,"authenticationRequired",void 0);Ye([ue([])],ke.prototype,"messageContexts",void 0);Ye([ue(void 0)],ke.prototype,"session",void 0)});var Wy,jy=u(()=>{"use strict";Dd();Wy={"ft-app-context":ke}});var Gy=u(()=>{"use strict";O();jy();U(Wy)});var Wt=u(()=>{"use strict";fy();Ze();Ma();vy();Ha();_d();Ny();Dd();Pd();Gy()});var Md,Ri,Wa=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 lO,wn,Ky,qy,ja,En,ut,Ga,Ka,Rn=u(()=>{"use strict";O();Wt();K();Wa();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},wn=Symbol("i18nAttributes"),Ky=Symbol("i18nListAttributes"),qy=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[Ky])===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[qy])===null||s===void 0||s.forEach((l,d)=>{a(l,d)&&(this[d]=this.i18n(l))})}addI18nMessages(a,s,l){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,l)}addI18nContext(a,s,l){let d=(typeof a=="string"?a:a.name).toLowerCase();l=typeof a=="string"?l:a.custom,this[ja].set(d,{isCustomContext:l}),this[En].has(d)||this[En].set(d,this.getI18nService(l).subscribe(d,()=>this.onI18nUpdate(d))),this.getI18nService(l).prepareContext(d,s)}hasI18nContext(a){return this[ja].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[ja].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[En].forEach(a=>a()),this[En].clear()}}return e=ja,t=En,lO([h({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}),Ga=class extends ut(D){},Ka=class extends ut(bt){}});var Fd,cO,Zy=u(()=>{"use strict";Wa();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)}},cO=new Fd});var Ai,qa=u(()=>{"use strict";Rn();O();Wa();Zy();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,Qy=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 Yy=u(()=>{"use strict";Rn()});var Xy,Bd=u(()=>{"use strict";_();Xy=R`
345
+ `});var Jy=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 Ka{constructor(){super(),this.editorMode=!1,this.addStore(H)}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:""})}};Gt.elementDefinitions={};Gt.styles=eb;An([fe()],Gt.prototype,"editorMode",void 0);An([h()],Gt.prototype,"context",void 0);An([h()],Gt.prototype,"key",void 0);An([ue([])],Gt.prototype,"args",void 0);An([h()],Gt.prototype,"defaultMessage",void 0)});var rb,ob=u(()=>{"use strict";Ud();rb={"ft-i18n":Gt}});var ib=u(()=>{"use strict";O();ob();U(rb)});var Dt=u(()=>{"use strict";Xy();Rn();Jy();Bd();tb();Ud();ib()});var Kt,_e,zd=u(()=>{"use strict";_();K();O();Te();gd();pa();qa();Dt();Kt=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},_e=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`
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=Xy;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 eb,tb=u(()=>{"use strict";Ud();eb={"ft-i18n":jt}});var rb=u(()=>{"use strict";O();tb();U(eb)});var Nt=u(()=>{"use strict";Qy();Rn();Yy();Bd();Jy();Ud();rb()});var Gt,_e,zd=u(()=>{"use strict";_();K();O();Te();gd();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},_e=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)}};_e.elementDefinitions={"ft-typography":ne};_e.styles=hy;Kt([Li()],_e.prototype,"text",void 0);Kt([h({type:Boolean})],_e.prototype,"manual",void 0);Kt([h({type:Boolean})],_e.prototype,"inline",void 0);Kt([Tt()],_e.prototype,"delay",void 0);Kt([h()],_e.prototype,"position",void 0);Kt([ue([])],_e.prototype,"ignoreMatchingElements",void 0);Kt([Hs()],_e.prototype,"slotNodes",void 0);Kt([F(".ft-tooltip--container")],_e.prototype,"container",void 0);Kt([F(".ft-tooltip")],_e.prototype,"tooltip",void 0);Kt([F(".ft-tooltip--content")],_e.prototype,"tooltipContent",void 0);Kt([I()],_e.prototype,"visible",void 0)});var nb=u(()=>{"use strict"});var ab,sb=u(()=>{"use strict";zd();ab={"ft-tooltip":_e}});var lb=u(()=>{"use strict";O();sb();U(ab)});var Hd=u(()=>{"use strict";zd();gd();nb();lb()});var nt,cb,ki=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")},cb=[w`
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)}};_e.elementDefinitions={"ft-typography":ne};_e.styles=py;Gt([Ai()],_e.prototype,"text",void 0);Gt([h({type:Boolean})],_e.prototype,"manual",void 0);Gt([h({type:Boolean})],_e.prototype,"inline",void 0);Gt([Tt()],_e.prototype,"delay",void 0);Gt([h()],_e.prototype,"position",void 0);Gt([ue([])],_e.prototype,"ignoreMatchingElements",void 0);Gt([Hs()],_e.prototype,"slotNodes",void 0);Gt([F(".ft-tooltip--container")],_e.prototype,"container",void 0);Gt([F(".ft-tooltip")],_e.prototype,"tooltip",void 0);Gt([F(".ft-tooltip--content")],_e.prototype,"tooltipContent",void 0);Gt([I()],_e.prototype,"visible",void 0)});var ob=u(()=>{"use strict"});var ib,nb=u(()=>{"use strict";zd();ib={"ft-tooltip":_e}});var ab=u(()=>{"use strict";O();nb();U(ib)});var Hd=u(()=>{"use strict";zd();gd();ob();ab()});var nt,sb,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")},sb=[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 Za(r,e){var t,o,n,a;r=(r??"").toLowerCase(),e=(e??"").toLowerCase();let[s,l]=(((t=uO.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,uO,J$,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])]),uO=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"]]);J$={[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();qi();jd();ki();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
+ `,go]});var at,Vd=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=dO.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,dO,X$,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])]),dO=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"]]);X$={[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`
413
413
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
414
414
  ${ao(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=cb;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 db,ub=u(()=>{"use strict";Gd();db={"ft-icon":Se}});var pb=u(()=>{"use strict";O();ub();U(db)});var wr=u(()=>{"use strict";ki();Vd();Gd();jd();pb()});var Po,fb,Qa=u(()=>{"use strict";_();O();Po={color:i.extend("--ft-loader-color","",S.colorPrimary),size:i.create("--ft-loader-size","","SIZE","80px")},fb=w`
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=sb;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 lb,cb=u(()=>{"use strict";Gd();lb={"ft-icon":Se}});var db=u(()=>{"use strict";O();cb();U(lb)});var Er=u(()=>{"use strict";Li();Vd();Gd();jd();db()});var Io,ub,Qa=u(()=>{"use strict";_();O();Io={color:i.extend("--ft-loader-color","",S.colorPrimary),size:i.create("--ft-loader-size","","SIZE","80px")},ub=R`
418
418
  :host {
419
419
  line-height: 0;
420
420
  }
@@ -423,8 +423,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
423
423
  display: inline-block;
424
424
  position: relative;
425
425
 
426
- width: ${Po.size};
427
- height: ${Po.size};
426
+ width: ${Io.size};
427
+ height: ${Io.size};
428
428
  }
429
429
 
430
430
  .ft-loader div {
@@ -433,7 +433,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
433
433
  width: 25%;
434
434
  height: 25%;
435
435
  border-radius: 50%;
436
- background: ${Po.color};
436
+ background: ${Io.color};
437
437
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
438
438
  }
439
439
 
@@ -480,17 +480,17 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
480
480
  transform: translate(0, 0);
481
481
  }
482
482
  100% {
483
- transform: translate(calc(0.35 * ${Po.size}), 0);
483
+ transform: translate(calc(0.35 * ${Io.size}), 0);
484
484
  }
485
485
  }
486
- `});var hb=u(()=>{"use strict"});var No,Kd=u(()=>{"use strict";_();O();Qa();No=class extends D{render(){return b`
486
+ `});var pb=u(()=>{"use strict"});var Po,Kd=u(()=>{"use strict";_();O();Qa();Po=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=fb});var mb,gb=u(()=>{"use strict";Kd();mb={"ft-loader":No}});var yb=u(()=>{"use strict";O();gb();U(mb)});var bb=u(()=>{"use strict";Qa();hb();Kd();yb()});var Kr,vb=u(()=>{At();Kr=r=>r??T});var Ya=u(()=>{vb()});var xb,Q,Sb,qd,qt,Cb,$o=u(()=>{"use strict";_();O();Sr();Wt();Qa();ki();xb=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:xb,fontSize:i.extend("--ft-button-font-size","",sr.fontSize),iconSize:i.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:i.extend("--ft-button-ripple-color","",xb),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")},Sb=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:Sb,rippleColor:i.extend("--ft-button-primary-ripple-color","",Sb)},qt={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")},Cb=w`
493
+ `}};Po.styles=ub});var fb,hb=u(()=>{"use strict";Kd();fb={"ft-loader":Po}});var mb=u(()=>{"use strict";O();hb();U(fb)});var gb=u(()=>{"use strict";Qa();pb();Kd();mb()});var Kr,yb=u(()=>{At();Kr=r=>r??T});var Ya=u(()=>{yb()});var bb,Q,vb,qd,Kt,xb,No=u(()=>{"use strict";_();O();xr();Vt();Qa();Li();bb=i.extend("--ft-button-color","",S.colorPrimary),Q={backgroundColor:i.extend("--ft-button-background-color","",S.colorSurface),borderRadius:i.extend("--ft-button-border-radius","",S.borderRadiusL),color:bb,fontSize:i.extend("--ft-button-font-size","",nr.fontSize),iconSize:i.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:i.extend("--ft-button-ripple-color","",bb),verticalPadding:i.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:i.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:i.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:i.external(S.colorOpacityDisabled,"Design system")},vb=i.extend("--ft-button-primary-color","",i.extend("--ft-button-color","",S.colorOnPrimary)),qd={backgroundColor:i.extend("--ft-button-primary-background-color","",i.extend("--ft-button-background-color","",S.colorPrimary)),color:vb,rippleColor:i.extend("--ft-button-primary-ripple-color","",vb)},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")},xb=R`
494
494
  :host {
495
495
  display: inline-block;
496
496
  max-width: 100%;
@@ -537,9 +537,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
537
537
 
538
538
  --button-internal-line-height: max(calc(${Q.fontSize} + 2px), ${Q.iconSize});
539
539
  --button-internal-color: ${Q.color};
540
- ${R(nt.size,Q.iconSize)};
541
- ${R(le.color,Q.rippleColor)};
542
- ${R(le.borderRadius,Q.borderRadius)};
540
+ ${A(nt.size,Q.iconSize)};
541
+ ${A(le.color,Q.rippleColor)};
542
+ ${A(le.borderRadius,Q.borderRadius)};
543
543
 
544
544
  border-radius: ${Q.borderRadius};
545
545
  padding: ${Q.verticalPadding} ${Q.horizontalPadding};
@@ -553,14 +553,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
553
553
  }
554
554
 
555
555
  .ft-button.ft-button--dense {
556
- padding: ${qt.verticalPadding} ${qt.horizontalPadding};
557
- border-radius: ${qt.borderRadius};
558
- gap: ${qt.iconPadding};
559
- ${R(le.borderRadius,qt.borderRadius)};
556
+ padding: ${Kt.verticalPadding} ${Kt.horizontalPadding};
557
+ border-radius: ${Kt.borderRadius};
558
+ gap: ${Kt.iconPadding};
559
+ ${A(le.borderRadius,Kt.borderRadius)};
560
560
  }
561
561
 
562
562
  .ft-button.ft-button--dense.ft-button--outlined {
563
- padding: calc(${qt.verticalPadding} - 1px) calc(${qt.horizontalPadding} - 1px);
563
+ padding: calc(${Kt.verticalPadding} - 1px) calc(${Kt.horizontalPadding} - 1px);
564
564
  }
565
565
 
566
566
  .ft-button:not([disabled]):hover {
@@ -572,7 +572,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
572
572
  }
573
573
 
574
574
  .ft-button--round.ft-button--dense {
575
- border-radius: calc(var(--button-internal-line-height) / 2 + ${qt.verticalPadding});
575
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${Kt.verticalPadding});
576
576
  }
577
577
 
578
578
  .ft-button[disabled] {
@@ -583,7 +583,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
583
583
  .ft-button.ft-button--primary {
584
584
  background-color: ${qd.backgroundColor};
585
585
  --button-internal-color: ${qd.color};
586
- ${R(le.color,qd.rippleColor)};
586
+ ${A(le.color,qd.rippleColor)};
587
587
  }
588
588
 
589
589
  .ft-button--label {
@@ -593,12 +593,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
593
593
  text-overflow: ellipsis;
594
594
  display: block;
595
595
  margin: 0 ${Q.iconPadding};
596
- ${R(sr.fontSize,"1em")};
597
- ${R(sr.lineHeight,"var(--button-internal-line-height)")};
596
+ ${A(nr.fontSize,"1em")};
597
+ ${A(nr.lineHeight,"var(--button-internal-line-height)")};
598
598
  }
599
599
 
600
600
  .ft-button--dense .ft-button--label {
601
- margin: 0 ${qt.iconPadding};
601
+ margin: 0 ${Kt.iconPadding};
602
602
  }
603
603
 
604
604
  .ft-button--label[hidden] {
@@ -616,8 +616,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
616
616
  }
617
617
 
618
618
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
619
- margin: 0 calc(${qt.horizontalPadding} * -1);
620
- padding: 0 ${qt.verticalPadding};
619
+ margin: 0 calc(${Kt.horizontalPadding} * -1);
620
+ padding: 0 ${Kt.verticalPadding};
621
621
  }
622
622
 
623
623
  .ft-button:not(.ft-button--trailing-icon) [part="label"] {
@@ -625,10 +625,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
625
625
  }
626
626
 
627
627
  ft-loader {
628
- ${R(Po.size,Q.iconSize)};
629
- ${R(Po.color,"var(--button-internal-color)")};
628
+ ${A(Io.size,Q.iconSize)};
629
+ ${A(Io.color,"var(--button-internal-color)")};
630
630
  }
631
- `});var Re,j,Zd=u(()=>{"use strict";O();ot();Hd();wr();bb();_();tt();K();Ya();Te();$o();Re=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 Re,j,Zd=u(()=>{"use strict";O();ot();Hd();Er();gb();_();tt();K();Ya();Te();No();Re=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`
632
632
  <ft-ripple part="ripple"
633
633
  ?disabled=${this.isDisabled()}
634
634
  ?activated=${this.activated}
@@ -636,7 +636,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
636
636
  <ft-typography part="label"
637
637
  variant="${he.button}"
638
638
  element="span"
639
- class="ft-button--label ${ko?"ft-safari-ellipsis-fix":""}"
639
+ class="ft-button--label ${Lo?"ft-safari-ellipsis-fix":""}"
640
640
  ?hidden=${!this.hasTextContent()}>
641
641
  <slot @slotchange=${this.onSlotchange}></slot>
642
642
  </ft-typography>
@@ -670,11 +670,11 @@ 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":_e,"ft-icon":Se,"ft-loader":No,"ft-typography":ne};j.styles=[Ql,Cb,yo];Re([h({type:Boolean})],j.prototype,"primary",void 0);Re([h({type:Boolean})],j.prototype,"outlined",void 0);Re([h({type:Boolean})],j.prototype,"dense",void 0);Re([h({type:Boolean})],j.prototype,"round",void 0);Re([h({type:Boolean})],j.prototype,"disabled",void 0);Re([h()],j.prototype,"icon",void 0);Re([h()],j.prototype,"iconVariant",void 0);Re([h({type:Boolean})],j.prototype,"trailingIcon",void 0);Re([h()],j.prototype,"label",void 0);Re([h()],j.prototype,"type",void 0);Re([h()],j.prototype,"href",void 0);Re([h()],j.prototype,"target",void 0);Re([h({type:Boolean})],j.prototype,"loading",void 0);Re([h({attribute:"aria-label"})],j.prototype,"ariaLabel",void 0);Re([h()],j.prototype,"ariaHasPopup",void 0);Re([h({attribute:"aria-pressed"})],j.prototype,"ariaPressed",void 0);Re([h()],j.prototype,"tooltipPosition",void 0);Re([h({type:Boolean})],j.prototype,"hideTooltip",void 0);Re([h({type:Boolean})],j.prototype,"forceTooltip",void 0);Re([h({type:Boolean})],j.prototype,"activated",void 0);Re([F(".ft-button")],j.prototype,"button",void 0);Re([F(".ft-button--label slot")],j.prototype,"slottedContent",void 0);Re([F("[part=tooltip]")],j.prototype,"tooltip",void 0)});var Ob=u(()=>{"use strict"});var Eb,wb=u(()=>{"use strict";Zd();Eb={"ft-button":j}});var Rb=u(()=>{"use strict";O();wb();U(Eb)});var Zt=u(()=>{"use strict";Zd();$o();Ob();Rb()});var be,Qd,kn=u(()=>{"use strict";_();O();Zt();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=w`
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 qo(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":_e,"ft-icon":Se,"ft-loader":Po,"ft-typography":ne};j.styles=[Ql,xb,go];Re([h({type:Boolean})],j.prototype,"primary",void 0);Re([h({type:Boolean})],j.prototype,"outlined",void 0);Re([h({type:Boolean})],j.prototype,"dense",void 0);Re([h({type:Boolean})],j.prototype,"round",void 0);Re([h({type:Boolean})],j.prototype,"disabled",void 0);Re([h()],j.prototype,"icon",void 0);Re([h()],j.prototype,"iconVariant",void 0);Re([h({type:Boolean})],j.prototype,"trailingIcon",void 0);Re([h()],j.prototype,"label",void 0);Re([h()],j.prototype,"type",void 0);Re([h()],j.prototype,"href",void 0);Re([h()],j.prototype,"target",void 0);Re([h({type:Boolean})],j.prototype,"loading",void 0);Re([h({attribute:"aria-label"})],j.prototype,"ariaLabel",void 0);Re([h()],j.prototype,"ariaHasPopup",void 0);Re([h({attribute:"aria-pressed"})],j.prototype,"ariaPressed",void 0);Re([h()],j.prototype,"tooltipPosition",void 0);Re([h({type:Boolean})],j.prototype,"hideTooltip",void 0);Re([h({type:Boolean})],j.prototype,"forceTooltip",void 0);Re([h({type:Boolean})],j.prototype,"activated",void 0);Re([F(".ft-button")],j.prototype,"button",void 0);Re([F(".ft-button--label slot")],j.prototype,"slottedContent",void 0);Re([F("[part=tooltip]")],j.prototype,"tooltip",void 0)});var Sb=u(()=>{"use strict"});var Cb,Ob=u(()=>{"use strict";Zd();Cb={"ft-button":j}});var Eb=u(()=>{"use strict";O();Ob();U(Cb)});var qt=u(()=>{"use strict";Zd();No();Sb();Eb()});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`
674
674
  * {
675
675
  box-sizing: border-box;
676
- ${R(Q.color,be.buttonColor)};
677
- ${R(Q.rippleColor,be.buttonRippleColor)};
676
+ ${A(Q.color,be.buttonColor)};
677
+ ${A(Q.rippleColor,be.buttonRippleColor)};
678
678
  }
679
679
 
680
680
  .ft-search-input {
@@ -732,7 +732,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
732
732
  .ft-search-input > ft-button,
733
733
  .ft-search-input--actions ft-button {
734
734
  flex-shrink: 0;
735
- ${R(Q.backgroundColor,"transparent")};
735
+ ${A(Q.backgroundColor,"transparent")};
736
736
  }
737
737
 
738
738
  .ft-search-input .ft-search-input--launch-search,
@@ -744,12 +744,12 @@ 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 Xa,Yd,Ja=u(()=>{"use strict";_();O();Xa={highlightBackgroundColor:i.create("--ft-sra-highlight-background-color","","COLOR","transparent")},Yd=w`
747
+ `});var Xa,Yd,Ja=u(()=>{"use strict";_();O();Xa={highlightBackgroundColor:i.create("--ft-sra-highlight-background-color","","COLOR","transparent")},Yd=R`
748
748
  .kwicmatch {
749
749
  font-weight: 700;
750
750
  background-color: ${Xa.highlightBackgroundColor};
751
751
  }
752
- `});var es,Xd,ts=u(()=>{"use strict";_();O();es={highlightBackgroundColor:i.create("--ft-srt-highlight-background-color","","COLOR","transparent")},Xd=w`
752
+ `});var es,Xd,ts=u(()=>{"use strict";_();O();es={highlightBackgroundColor:i.create("--ft-srt-highlight-background-color","","COLOR","transparent")},Xd=R`
753
753
  .kwicmatch {
754
754
  font-weight: 700;
755
755
  background-color: ${es.highlightBackgroundColor};
@@ -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 _b(r){var e;return((e=_t(r))===null||e===void 0?void 0:e.openMode)===Ra.EXTERNAL}function os(r){return _b(r)?_t(r).originUrl:sl(r)}function Ib(r,e){return Kr(e&&_b(r)?"_blank":void 0)}var tu=u(()=>{"use strict";Hr();Ya();O()});var _i,Ii,is,ns,as,Tn,_n=u(()=>{"use strict";_i=class extends CustomEvent{constructor(e,t){super("ft-search-result-click",{detail:{result:e,rank:t},bubbles:!0,composed:!0})}},Ii=class extends CustomEvent{constructor(e,t){super("ft-search-result-open-context-menu",{detail:{result:e,rank:t},bubbles:!0,composed:!0})}},is=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},ns=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},as=class extends CustomEvent{constructor(e,t,o){super("ft-search-results-change",{detail:{request:e,paging:t,spellcheck:o}})}},Tn=class r extends Event{constructor(){super(r.eventName)}};Tn.eventName="search-context-clear-all-filters"});var hO,ou,iu=u(()=>{"use strict";_();hO={},ou=w`
767
- `});var Nb=u(()=>{"use strict"});var Qt,Pi=u(()=>{"use strict";(function(r){r.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Qt||(Qt={}))});var mO,$b,Db=u(()=>{"use strict";O();mO={setRequest:(r,e)=>{r.request=e.payload}},$b=r=>xr.get({name:"ft-search-"+r,initialState:{request:{query:"",clusterSortCriterions:[],metadataFilters:[],facets:[],sort:[],sortId:void 0,paging:{page:1,perPage:20},keywordMatch:void 0},liveQuery:"",recentQueries:[],paging:void 0,facets:void 0,spellcheck:void 0,locales:[],results:void 0,announcements:void 0,suggestResults:void 0,configuration:void 0},reducers:mO})});var ss,Mb=u(()=>{"use strict";jt();ss=class extends Qe{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((o,n)=>o.id.localeCompare(n.id))};return this.cache.get("search-"+this.hash(t),async()=>(await this.awaitApi).search(e),120*1e3)}async launchSuggest(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(t),async()=>(await this.awaitApi).getSuggestions(e),120*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(t=>t.valueFilter==null?t:{...t,valueFilter:{...t.valueFilter,values:[...t.valueFilter.values].sort((o,n)=>o.localeCompare(n))}}).sort((t,o)=>t.key.localeCompare(o.key))}}});var Fb,Bb,ls,gO,Ni,nu=u(()=>{"use strict";Pi();O();Db();Hr();Mb();_n();jt();Fb=r=>r.request.virtualField===Eo.TITLE_ONLY&&r.request.scope===fi.DOCUMENTS,Bb=r=>r.request.keywordMatch==zr.MANDATORY,ls="ft-recent-queries",gO=20,Ni=class r extends Co{static build(e,t){return new r($b(e.trim()||"context"),t)}constructor(e,t){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.onNewNeededRequest=o=>{o==Qt.CLUSTERED_SEARCH&&this.launchSearch(this.buildSearchRequest(this.store.getState()))},this.onStorageEvent=o=>{o.key===ls&&this.loadRecentQueries()},this.localesDebouncer=new 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.launchSearch()}addWindowListeners(){window.addEventListener("storage",this.onStorageEvent)}removeWindowListeners(){window.removeEventListener("storage",this.onStorageEvent)}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.localesConfiguration)===null||o===void 0)&&o.searchLanguageSetsUiLanguage)&&e&&Sn.requestUiLocaleUpdate(e)}return e}forceContentLocale(e){this.updateSearchRequest({contentLocale:e})}setPageSize(e){let t=this.store.getState().request;this.updateSearchRequest({paging:{...t.paging,perPage:isNaN(e)?20:gr(1,e,1e3)}})}setPageNumber(e){let t=this.store.getState().request;this.updateSearchRequest({paging:{...t.paging,page:isNaN(e)?1:Math.max(1,e)}})}get sortOptions(){var e,t;return(t=(e=this.store.getState().configuration)===null||e===void 0?void 0:e.sortOptions)!==null&&t!==void 0?t:[]}setSort(e){this.updateSearchRequest({sort:e},!0)}setSortId(e,t=!1){var o;let n=t?{changedByConfiguration:!0}:{};if(e==null||this.sortOptions.length==0)return this.updateSearchRequest({sortId:e,...n},!0),e;let a=(o=this.sortOptions.find(s=>s.id==e))!==null&&o!==void 0?o:this.sortOptions[0];return this.updateSearchRequest({sortId:a.id,...n},!0),a.id}setFilters(e){let t=e.filter(o=>!o.valueFilter||o.valueFilter.values.length>0);this.updateSearchRequest({metadataFilters:t},!0)}setClusterSortCriterion(e){this.updateSearchRequest({clusterSortCriterions:e})}setSearchInDocumentTitlesOnly(e){e?this.updateSearchRequest({virtualField:Eo.TITLE_ONLY,scope:fi.DOCUMENTS},!0):this.updateSearchRequest({virtualField:Eo.EVERYWHERE,scope:fi.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return Fb(this.store.getState())}get keywordMatch(){return Bb(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new Tn)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,t){let o=this.facetIds.filter(n=>n!=e);t&&o.push(t),this.facetIds=o}get facetIds(){var e;let t=this.store.getState().request;return[...new Set([...t.facets.map(o=>o.id),...((e=t.metadataFilters)!==null&&e!==void 0?e:[]).map(o=>o.key)])]}set facetIds(e){let o=[...new Set(e)].map(n=>({id:n}));this.updateSearchRequest({facets:o})}setFilter(e,t){this.setValueFilter(e,t)}setValueFilter(e,t){let o=this.store.getState().request.metadataFilters,n={key:e,valueFilter:{values:t,negative:!1}},a=[...o.filter(s=>!s.valueFilter),...o.filter(s=>s.valueFilter&&s.key!==n.key),n];this.setFilters(a)}setDateFilter(e,t){let o=this.store.getState().request.metadataFilters,n={key:e,dateFilter:{type:t}},a=[...o.filter(s=>!s.dateFilter),...o.filter(s=>s.dateFilter&&s.key!==n.key),n];this.setFilters(a)}removeDateFilter(e){let t=this.store.getState().request.metadataFilters,o=[...t.filter(n=>!n.dateFilter),...t.filter(n=>n.dateFilter&&n.key!==e)];this.setFilters(o)}setRangeFilter(e,t,o){let n=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:t,to:o}},s=[...n.filter(l=>!l.rangeFilter),...n.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let t=this.store.getState().request.metadataFilters,o=[...t.filter(n=>!n.rangeFilter),...t.filter(n=>n.rangeFilter&&n.key!==e)];this.setFilters(o)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.updateSearchRequest({...e,facets:this.store.getState().request.facets},!0),this.setLiveQuery(e.query)}setScope(e){this.updateSearchRequest({scope:e})}setOtherQueryParams(e){this.updateSearchRequest({otherQueryParams:e})}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setCanUpdateUiLocale(e){this.canUpdateUiLocale=e}loadRecentQueries(){var e;this.store.actions.recentQueries(JSON.parse((e=window.localStorage.getItem(ls))!==null&&e!==void 0?e:"[]"))}addRecentQuery(e){if(e=e.trim(),e.length===0)return;let t=e.toLowerCase(),o=this.store.getState().recentQueries.filter(n=>n.toLowerCase()!==t).slice(0,gO-1);o.unshift(e),this.setRecentQueries(o)}removeRecentQuery(e){let t=e.trim().toLowerCase(),o=this.store.getState().recentQueries,n=o.filter(a=>a.toLowerCase()!==t);o.length!==n.length&&this.setRecentQueries(n)}setRecentQueries(e){let t=JSON.stringify(e);window.localStorage.setItem(ls,t),window.dispatchEvent(new StorageEvent("storage",{key:ls,newValue:t,storageArea:window.localStorage,url:window.location.href}))}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var t,o,n,a,s;if((t=this.cancelableSearch)===null||t===void 0||t.cancel(),!!this.isRequestNeeded(Qt.CLUSTERED_SEARCH))try{if(this.store.actions.paging(void 0),this.ignoreEmptyQuery&&e.query.length==0)this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0);else{!((o=this.store.getState().results)===null||o===void 0)&&o.length||this.store.actions.results(void 0),this.cancelableSearch=qo(this.service.launchSearch(e));let l=await this.cancelableSearch;if(this.store.actions.announcements(l.announcements),l.paging.currentPage<=1)this.store.actions.results(l.results),this.store.actions.facets(l.facets),this.store.actions.spellcheck(l.spellcheck);else{let d=((n=this.store.getState().results)!==null&&n!==void 0?n:[]).concat(l.results);this.store.actions.results(d),this.store.commands.clear(/^focus-result-/),this.store.commands.add({type:`focus-result-${(l.paging.currentPage-1)*((a=e.paging.perPage)!==null&&a!==void 0?a:20)+1}`})}this.store.actions.paging(l.paging)}}catch(l){l instanceof Jt||(console.error(l),(s=this.errorHandler)===null||s===void 0||s.call(this,l))}}async fetchSuggestData(e){var t;try{if((t=this.cancelableSuggest)===null||t===void 0||t.cancel(),e.input.length<3){this.store.actions.suggestResults([]);return}this.cancelableSuggest=qo(this.service.launchSuggest(e));let o=await this.cancelableSuggest;this.store.actions.suggestResults(o.suggestions)}catch(o){!(o instanceof Jt)&&this.errorHandler&&this.errorHandler(o)}}clear(){this.store.clear()}clearResults(){this.store.actions.paging(void 0),this.store.actions.results(void 0),this.store.actions.announcements(void 0),this.store.actions.facets(void 0),this.store.actions.spellcheck(void 0)}}});var Ub,su,zb,au,yO,bO,Mt,Do=u(()=>{"use strict";O();K();Pi();nu();Ub=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})}},zb=Symbol("registerInterval"),au=Symbol("registerAttempts"),yO=40,bO=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[zb]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[au]>yO?window.clearInterval(this[zb]):(this[au]++,this.dispatchEvent(new su))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Ub([I()],e.prototype,"stateManager",void 0),Ub([I({hasChanged:gt})],e.prototype,"neededSearchRequests",void 0),e}),Mt=class extends bO(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,Hb=u(()=>{"use strict";O();Hr();jt();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 Ua,this.resultsWatcher=ui(e,o=>[o.results,o.paging],this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.eventsService.convertMapToAnalyticsDocument(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:t}=H.getState();this.setAppName(e??"unknown"),this.setAppVersion(t??"unknown")}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=H.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,t,o){let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Oo.KHUB__SEARCH,searchResponse:{autocorrect:this.store.getState().spellcheck!=null,nbResults:o.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==ar.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Oo.SEARCH_PAGE__SELECT,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:In(o.metadataFilters),facets:o.metadataFilters.map(s=>Pn(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchPageSelectEvent(a)}sendResultContextMenuOpenedEvent(e,t){if(!this.canSendEvent())return;let o=this.store.getState().request,n;e.type==ar.TOPIC&&(n={tocId:e.topic.tocId,title:e.topic.title});let a={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Oo.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU,searchQuery:{terms:o.query,searchType:o.virtualField,lastUpdate:In(o.metadataFilters),facets:o.metadataFilters.map(s=>Pn(s))},searchResult:{rank:t,type:e.type,document:this.convertDocument(e),topic:n},externalLink:this.convertExternalLink(e)};this.eventsService.sendSearchResultOpenContextMenuEvent(a)}convertDocument(e){switch(e.type){case ar.MAP:return{id:e.map.mapId,title:e.map.title,type:Ur.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case ar.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Ur.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case ar.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Ur.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case ar.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:Ur.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case ar.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:Ur.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();jt();Ma();Hb();_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=Ni.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")}return this._stateManager}get eventManager(){return this._eventManager==null&&(this._eventManager=new cs(this.stateManager.store)),this._eventManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.otherQueryParams={},this._appIntegrationInfoReady=!1,this.addStore(H)}render(){return b`
766
+ `});function kb(r){var e;return((e=_t(r))===null||e===void 0?void 0:e.openMode)===Ra.EXTERNAL}function os(r){return kb(r)?_t(r).originUrl:sl(r)}function Tb(r,e){return Kr(e&&kb(r)?"_blank":void 0)}var tu=u(()=>{"use strict";Hr();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})}},ns=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},as=class extends CustomEvent{constructor(e,t,o){super("ft-search-results-change",{detail:{request:e,paging:t,spellcheck:o}})}},Tn=class r extends Event{constructor(){super(r.eventName)}};Tn.eventName="search-context-clear-all-filters"});var fO,ou,iu=u(()=>{"use strict";_();fO={},ou=R`
767
+ `});var Ib=u(()=>{"use strict"});var Zt,Ii=u(()=>{"use strict";(function(r){r.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Zt||(Zt={}))});var hO,Pb,Nb=u(()=>{"use strict";O();hO={setRequest:(r,e)=>{r.request=e.payload}},Pb=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:hO})});var ss,$b=u(()=>{"use strict";Wt();ss=class extends Qe{constructor(e){super(!0,e),this.cache.registerFinal("search-configuration",async()=>(await this.awaitApi).getSearchConfiguration())}async launchSearch(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters),facets:[...e.facets].sort((o,n)=>o.id.localeCompare(n.id))};return this.cache.get("search-"+this.hash(t),async()=>(await this.awaitApi).search(e),120*1e3)}async launchSuggest(e){let t={...e,metadataFilters:this.sortFilters(e.metadataFilters)};return this.cache.get("suggest-"+this.hash(t),async()=>(await this.awaitApi).getSuggestions(e),120*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}async getConfiguration(){return this.cache.get("search-configuration")}sortFilters(e){return e.map(t=>t.valueFilter==null?t:{...t,valueFilter:{...t.valueFilter,values:[...t.valueFilter.values].sort((o,n)=>o.localeCompare(n))}}).sort((t,o)=>t.key.localeCompare(o.key))}}});var Db,Mb,ls,mO,Pi,nu=u(()=>{"use strict";Ii();O();Nb();Hr();$b();_n();Wt();Db=r=>r.request.virtualField===Oo.TITLE_ONLY&&r.request.scope===pi.DOCUMENTS,Mb=r=>r.request.keywordMatch==zr.MANDATORY,ls="ft-recent-queries",mO=20,Pi=class r extends So{static build(e,t){return new r(Pb(e.trim()||"context"),t)}constructor(e,t){super(),this.store=e,this.ignoreEmptyQuery=!1,this.canUpdateUiLocale=!1,this.openExternalDocumentInNewTab=!1,this.onNewNeededRequest=o=>{o==Zt.CLUSTERED_SEARCH&&this.launchSearch(this.buildSearchRequest(this.store.getState()))},this.onStorageEvent=o=>{o.key===ls&&this.loadRecentQueries()},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=di(e,this.buildSearchRequest,this.launchSearch),this.suggestWatcher=di(e,this.buildSuggestRequest,this.launchSuggest)}async initService(){return this.updateLocales(),this.service.getConfiguration().then(e=>{this.store.actions.configuration(e),this.setSortId(this.store.getState().request.sortId)}),this.loadRecentQueries(),this.launchSearch()}addWindowListeners(){window.addEventListener("storage",this.onStorageEvent)}removeWindowListeners(){window.removeEventListener("storage",this.onStorageEvent)}updateSearchRequest(e,t=!1){let o=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:Oo.TITLE_ONLY,scope:pi.DOCUMENTS},!0):this.updateSearchRequest({virtualField:Oo.EVERYWHERE,scope:pi.DEFAULT},!0)}setKeywordMatch(e){this.updateSearchRequest({keywordMatch:e},!0)}setVirtualField(e){this.updateSearchRequest({virtualField:e},!0)}get searchInDocumentTitlesOnly(){return Db(this.store.getState())}get keywordMatch(){return Mb(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.dispatchEvent(new Tn)}addFacet(e){this.facetIds=[...this.facetIds,e]}replaceFacet(e,t){let o=this.facetIds.filter(n=>n!=e);t&&o.push(t),this.facetIds=o}get facetIds(){var e;let t=this.store.getState().request;return[...new Set([...t.facets.map(o=>o.id),...((e=t.metadataFilters)!==null&&e!==void 0?e:[]).map(o=>o.key)])]}set facetIds(e){let o=[...new Set(e)].map(n=>({id:n}));this.updateSearchRequest({facets:o})}setFilter(e,t){this.setValueFilter(e,t)}setValueFilter(e,t){let o=this.store.getState().request.metadataFilters,n={key:e,valueFilter:{values:t,negative:!1}},a=[...o.filter(s=>!s.valueFilter),...o.filter(s=>s.valueFilter&&s.key!==n.key),n];this.setFilters(a)}setDateFilter(e,t){let o=this.store.getState().request.metadataFilters,n={key:e,dateFilter:{type:t}},a=[...o.filter(s=>!s.dateFilter),...o.filter(s=>s.dateFilter&&s.key!==n.key),n];this.setFilters(a)}removeDateFilter(e){let t=this.store.getState().request.metadataFilters,o=[...t.filter(n=>!n.dateFilter),...t.filter(n=>n.dateFilter&&n.key!==e)];this.setFilters(o)}setRangeFilter(e,t,o){let n=this.store.getState().request.metadataFilters,a={key:e,rangeFilter:{from:t,to:o}},s=[...n.filter(l=>!l.rangeFilter),...n.filter(l=>l.rangeFilter&&l.key!==a.key),a];this.setFilters(s)}removeRangeFilter(e){let t=this.store.getState().request.metadataFilters,o=[...t.filter(n=>!n.rangeFilter),...t.filter(n=>n.rangeFilter&&n.key!==e)];this.setFilters(o)}setLiveQuery(e){this.store.actions.liveQuery(e)}setRequest(e){this.updateSearchRequest({...e,facets:this.store.getState().request.facets},!0),this.setLiveQuery(e.query)}setScope(e){this.updateSearchRequest({scope:e})}setOtherQueryParams(e){this.updateSearchRequest({otherQueryParams:e})}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setCanUpdateUiLocale(e){this.canUpdateUiLocale=e}loadRecentQueries(){var e;this.store.actions.recentQueries(JSON.parse((e=window.localStorage.getItem(ls))!==null&&e!==void 0?e:"[]"))}addRecentQuery(e){if(e=e.trim(),e.length===0)return;let t=e.toLowerCase(),o=this.store.getState().recentQueries.filter(n=>n.toLowerCase()!==t).slice(0,mO-1);o.unshift(e),this.setRecentQueries(o)}removeRecentQuery(e){let t=e.trim().toLowerCase(),o=this.store.getState().recentQueries,n=o.filter(a=>a.toLowerCase()!==t);o.length!==n.length&&this.setRecentQueries(n)}setRecentQueries(e){let t=JSON.stringify(e);window.localStorage.setItem(ls,t),window.dispatchEvent(new StorageEvent("storage",{key:ls,newValue:t,storageArea:window.localStorage,url:window.location.href}))}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.locales((await this.service.getAvailableSearchLocales()).contentLocales))}async fetchSearchData(e){var t,o,n,a,s;if((t=this.cancelableSearch)===null||t===void 0||t.cancel(),!!this.isRequestNeeded(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=Ko(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=Ko(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 Fb,su,Bb,au,gO,yO,$t,$o=u(()=>{"use strict";O();K();Ii();nu();Fb=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},su=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},Bb=Symbol("registerInterval"),au=Symbol("registerAttempts"),gO=40,yO=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[Bb]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[au]>gO?window.clearInterval(this[Bb]):(this[au]++,this.dispatchEvent(new su))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Fb([I()],e.prototype,"stateManager",void 0),Fb([I({hasChanged:gt})],e.prototype,"neededSearchRequests",void 0),e}),$t=class extends yO(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,Ub=u(()=>{"use strict";O();Hr();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 Ua,this.resultsWatcher=di(e,o=>[o.results,o.paging],this.sendEvent)}setEnableAnalyticsEvents(e){this.enableAnalyticsEvents=e}setAppName(e){this.appName=e}setAppVersion(e){this.appVersion=e}setDocumentSearch(e){this.document=e}setDocumentSearchFromMap(e){this.setDocumentSearch(this.eventsService.convertMapToAnalyticsDocument(e))}initAppInfo(){let{apiIntegrationIdentifier:e,apiIntegrationAppVersion:t}=H.getState();this.setAppName(e??"unknown"),this.setAppVersion(t??"unknown")}canSendEvent(){if(this.appName==null||this.appVersion==null)return console.debug("ft-search-context.eventManager is not initialized. No events will be sent!"),!1;let{editorMode:e}=H.getState();return this.enableAnalyticsEvents&&!e}sendKhubSearchEvent(e,t,o){let n={offline:!1,appVersion:this.appVersion,appName:this.appName,name:Co.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:Co.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:Co.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:Co.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:Ur.STRUCTURED_DOCUMENT,metadata:e.map.metadata};case ir.TOPIC:return{id:e.topic.mapId,title:e.topic.mapTitle,type:Ur.STRUCTURED_DOCUMENT,metadata:e.topic.metadata};case ir.DOCUMENT:return{id:e.document.documentId,title:e.document.title,type:Ur.UNSTRUCTURED_DOCUMENT,metadata:e.document.metadata,mimeType:e.document.mimeType};case ir.HTML_PACKAGE:return{id:e.htmlPackage.packageId,title:e.htmlPackage.title,type:Ur.HTML_PACKAGE,metadata:e.htmlPackage.metadata};case ir.HTML_PACKAGE_PAGE:return{id:e.htmlPackagePage.packageId,title:e.htmlPackagePage.title,type:Ur.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();$o();Wt();Ma();Ub();_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(H)}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.addWindowListeners()}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeWindowListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new ns(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new as(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new is(e))}reloadSavedSearches(){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:H.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:H.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:H.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 Vb,Wb=u(()=>{"use strict";cu();Vb={"ft-search-context":ve}});var jb=u(()=>{"use strict";O();Wb();U(Vb)});var Gb={};q(Gb,{FtSearchContext:()=>ve,FtSearchContextCssVariables:()=>hO,FtSearchStateManager:()=>Ni,convertMetadataFilterToAnalyticsFacet:()=>Pn,getAnalyticsLastUpdate:()=>In,keywordMatchSelector:()=>Bb,searchInDocumentTitlesOnlySelector:()=>Fb,styles:()=>ou});var Kb=u(()=>{"use strict";iu();Nb();cu();nu();lu();jb()});var qb=u(()=>{"use strict"});var Rr,du=u(()=>{"use strict";Dt();Rr=lr.build("designedSearchInput")});var Ft,uu=u(()=>{"use strict";(function(r){r.S="S",r.M="M",r.L="L",r.XL="XL",r.XXL="XXL"})(Ft||(Ft={}))});var Zb,pu=u(()=>{"use strict";_();Zb=w`
770
+ `}willUpdate(e){super.willUpdate(e),e.has("_appIntegrationInfoReady")&&this._appIntegrationInfoReady&&this.eventManager.initAppInfo(),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.forceContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sortId")&&this.stateManager.setSortId(this.sortId),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("keywordMatch")&&this.stateManager.setKeywordMatch(this.keywordMatch),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("otherQueryParams")&&this.otherQueryParams!==void 0&&this.stateManager.setOtherQueryParams(this.otherQueryParams),e.has("session")&&this.session!==void 0&&e.get("session")!=null&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.stateManager.clearResults(),this.stateManager.setQuery(this.query),this.stateManager.forceContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort),this.stateManager.setOtherQueryParams(this.otherQueryParams),this.stateManager.addWindowListeners()}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeWindowListeners(),this.stateManager.clearResults()}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new ns(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new as(this.request,this.paging,this.spellcheckAutocorrect))}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new is(e))}reloadSavedSearches(){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:H.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:H.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:H.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 zb,Hb=u(()=>{"use strict";cu();zb={"ft-search-context":ve}});var Vb=u(()=>{"use strict";O();Hb();U(zb)});var Wb={};q(Wb,{FtSearchContext:()=>ve,FtSearchContextCssVariables:()=>fO,FtSearchStateManager:()=>Pi,convertMetadataFilterToAnalyticsFacet:()=>Pn,getAnalyticsLastUpdate:()=>In,keywordMatchSelector:()=>Mb,searchInDocumentTitlesOnlySelector:()=>Db,styles:()=>ou});var jb=u(()=>{"use strict";iu();Ib();cu();nu();lu();Vb()});var Gb=u(()=>{"use strict"});var wr,du=u(()=>{"use strict";Nt();wr=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 Kb,pu=u(()=>{"use strict";_();Kb=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=Ft.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new ae}render(){return b`
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`
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=Ft.S:this.size<976?this.category=Ft.M:this.size<1024?this.category=Ft.L:this.size<1440?this.category=Ft.XL:this.category=Ft.XXL,this.dispatchEvent(new fu(this.size,this.category)))},this.debounceTimeout)}};St.elementDefinitions={};St.styles=Zb;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 Qb,Yb=u(()=>{"use strict";hu();Qb={"ft-size-watcher":St}});var Xb=u(()=>{"use strict";O();Yb();U(Qb)});var Jb=u(()=>{"use strict";hu();pu();uu();Xb()});function ds(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function ev(r){return ds(r).split("|").pop()}function tv(r){return ds(r).split("|").join(" > ")}function rv(r,e){return{label:r.label,selected:!e&&r.selected,subOptions:r.childNodes.map(t=>rv(t,r.selected)),value:r.value}}function ov(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=>rv(e,!1))}}function iv(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,nv,yu=u(()=>{"use strict";_();O();$o();Wt();$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")},nv=w`
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=Kb;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 qb,Zb=u(()=>{"use strict";hu();qb={"ft-size-watcher":St}});var Qb=u(()=>{"use strict";O();Zb();U(qb)});var Yb=u(()=>{"use strict";hu();pu();uu();Qb()});function ds(r){return r.startsWith('"')&&r.endsWith('"')?r.replace(/(^"+)|("+$)/g,""):r}function Xb(r){return ds(r).split("|").pop()}function Jb(r){return ds(r).split("|").join(" > ")}function ev(r,e){return{label:r.label,selected:!e&&r.selected,subOptions:r.childNodes.map(t=>ev(t,r.selected)),value:r.value}}function tv(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=>ev(e,!1))}}function rv(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,ov,yu=u(()=>{"use strict";_();O();No();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")},ov=R`
794
794
  .ft-filter-level--container {
795
795
  display: flex;
796
796
  flex-direction: column;
@@ -841,11 +841,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
841
841
  }
842
842
 
843
843
  ft-button {
844
- ${R(Q.color,$n.colorOnSurface)};
844
+ ${A(Q.color,$n.colorOnSurface)};
845
845
  }
846
846
 
847
847
  ft-button.ft-filter-level--display-more {
848
- ${R(Q.color,$n.buttonMoreColor)};
848
+ ${A(Q.color,$n.buttonMoreColor)};
849
849
  }
850
850
 
851
851
  ft-radio, ft-checkbox {
@@ -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,av,bu=u(()=>{"use strict";O();_();Te();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)},av=w`
864
+ `});var Ct,iv,bu=u(()=>{"use strict";O();_();Te();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)},iv=R`
865
865
  * {
866
866
  box-sizing: border-box;
867
867
  }
@@ -942,7 +942,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
942
942
 
943
943
  .ft-checkbox.ft-checkbox--error {
944
944
  color: ${Ct.errorColor};
945
- ${R(le.color,Ct.errorColor)};
945
+ ${A(le.color,Ct.errorColor)};
946
946
 
947
947
  .ft-checkbox--box {
948
948
  border-color: ${Ct.errorColor};
@@ -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,ze,xu=u(()=>{"use strict";_();K();O();tt();ot();Te();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})}},ze=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 Rr,vu,ze,xu=u(()=>{"use strict";_();K();O();tt();ot();Te();bu();Rr=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})}},ze=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)}};ze.elementDefinitions={"ft-ripple":Z,"ft-typography":ne};ze.styles=av;Ar([h()],ze.prototype,"name",void 0);Ar([h()],ze.prototype,"value",void 0);Ar([h({type:Boolean,reflect:!0})],ze.prototype,"checked",void 0);Ar([h({type:Boolean})],ze.prototype,"indeterminate",void 0);Ar([h({type:Boolean})],ze.prototype,"disabled",void 0);Ar([h({type:Boolean})],ze.prototype,"error",void 0);Ar([F(".ft-checkbox")],ze.prototype,"container",void 0);Ar([F("ft-ripple")],ze.prototype,"ripple",void 0);Ar([F("input")],ze.prototype,"input",void 0)});var sv=u(()=>{"use strict"});var lv,cv=u(()=>{"use strict";xu();lv={"ft-checkbox":ze}});var dv=u(()=>{"use strict";O();cv();U(lv)});var uv=u(()=>{"use strict";xu();bu();sv();dv()});var qr,pv,Su=u(()=>{"use strict";_();O();Te();qr={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")},pv=w`
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)}};ze.elementDefinitions={"ft-ripple":Z,"ft-typography":ne};ze.styles=iv;Rr([h()],ze.prototype,"name",void 0);Rr([h()],ze.prototype,"value",void 0);Rr([h({type:Boolean,reflect:!0})],ze.prototype,"checked",void 0);Rr([h({type:Boolean})],ze.prototype,"indeterminate",void 0);Rr([h({type:Boolean})],ze.prototype,"disabled",void 0);Rr([h({type:Boolean})],ze.prototype,"error",void 0);Rr([F(".ft-checkbox")],ze.prototype,"container",void 0);Rr([F("ft-ripple")],ze.prototype,"ripple",void 0);Rr([F("input")],ze.prototype,"input",void 0)});var nv=u(()=>{"use strict"});var av,sv=u(()=>{"use strict";xu();av={"ft-checkbox":ze}});var lv=u(()=>{"use strict";O();sv();U(av)});var cv=u(()=>{"use strict";xu();bu();nv();lv()});var qr,dv,Su=u(()=>{"use strict";_();O();Te();qr={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")},dv=R`
992
992
  * {
993
993
  box-sizing: border-box;
994
994
  }
@@ -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=pv;Zr([h()],Be.prototype,"name",void 0);Zr([h()],Be.prototype,"value",void 0);Zr([h({type:Boolean,reflect:!0})],Be.prototype,"checked",void 0);Zr([h({attribute:"aria-checked",reflect:!0})],Be.prototype,"ariaChecked",void 0);Zr([h({type:Boolean})],Be.prototype,"disabled",void 0);Zr([F(".ft-radio")],Be.prototype,"container",void 0);Zr([F("ft-ripple")],Be.prototype,"ripple",void 0);Zr([F("input")],Be.prototype,"input",void 0)});var fv=u(()=>{"use strict"});var hv,Ou=u(()=>{"use strict";_();hv=w`
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=dv;Zr([h()],Be.prototype,"name",void 0);Zr([h()],Be.prototype,"value",void 0);Zr([h({type:Boolean,reflect:!0})],Be.prototype,"checked",void 0);Zr([h({attribute:"aria-checked",reflect:!0})],Be.prototype,"ariaChecked",void 0);Zr([h({type:Boolean})],Be.prototype,"disabled",void 0);Zr([F(".ft-radio")],Be.prototype,"container",void 0);Zr([F("ft-ripple")],Be.prototype,"ripple",void 0);Zr([F("input")],Be.prototype,"input",void 0)});var uv=u(()=>{"use strict"});var pv,Ou=u(()=>{"use strict";_();pv=R`
1107
1107
  :host {
1108
1108
  display: block;
1109
1109
  }
@@ -1116,7 +1116,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
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=hv;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 mv=u(()=>{"use strict"});var gv,yv=u(()=>{"use strict";Cu();Eu();gv={"ft-radio":Be,"ft-radio-group":Ot}});var bv=u(()=>{"use strict";O();yv();U(gv)});var wu=u(()=>{"use strict";Cu();fv();Su();Eu();mv();Ou();bv()});var He,Ru,Ae,vv=u(()=>{"use strict";_();K();zt();O();Zt();Te();ot();wr();uv();wu();yu();Dt();He=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"}},Ae=class extends Ta(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=pv;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 fv=u(()=>{"use strict"});var hv,mv=u(()=>{"use strict";Cu();Eu();hv={"ft-radio":Be,"ft-radio-group":Ot}});var gv=u(()=>{"use strict";O();mv();U(hv)});var wu=u(()=>{"use strict";Cu();uv();Su();Eu();fv();Ou();gv()});var He,Ru,Ae,yv=u(()=>{"use strict";_();K();Bt();O();qt();Te();ot();Er();cv();wu();yu();Nt();He=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"}},Ae=class extends Ta(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`
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)})}};Ae.elementDefinitions={"ft-button":j,"ft-ripple":Z,"ft-typography":ne,"ft-checkbox":ze,"ft-icon":Se,"ft-radio":Be};Ae.styles=nv;He([h({type:String})],Ae.prototype,"filterId",void 0);He([h({type:Object})],Ae.prototype,"parent",void 0);He([h({type:Array,hasChanged:gt})],Ae.prototype,"options",void 0);He([h({type:Boolean})],Ae.prototype,"multivalued",void 0);He([h({type:Boolean})],Ae.prototype,"disabled",void 0);He([h({type:Boolean})],Ae.prototype,"hideSelectedOptions",void 0);He([h({type:Boolean})],Ae.prototype,"displayCount",void 0);He([h({type:Boolean})],Ae.prototype,"preventNavigation",void 0);He([h({type:String})],Ae.prototype,"filter",void 0);He([h({type:String})],Ae.prototype,"moreValuesButtonLabel",void 0);He([h({type:String})],Ae.prototype,"noValuesLabel",void 0);He([h()],Ae.prototype,"filteredOptionsNumberAriaNotification",void 0);He([Tt()],Ae.prototype,"displayedValuesLimit",void 0);He([F(".ft-filter-level--container")],Ae.prototype,"container",void 0);He([I()],Ae.prototype,"radios",void 0);He([I()],Ae.prototype,"displayedPages",void 0);He([I()],Ae.prototype,"filteredOptions",void 0)});var st,xv,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")},xv=w`
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)})}};Ae.elementDefinitions={"ft-button":j,"ft-ripple":Z,"ft-typography":ne,"ft-checkbox":ze,"ft-icon":Se,"ft-radio":Be};Ae.styles=ov;He([h({type:String})],Ae.prototype,"filterId",void 0);He([h({type:Object})],Ae.prototype,"parent",void 0);He([h({type:Array,hasChanged:gt})],Ae.prototype,"options",void 0);He([h({type:Boolean})],Ae.prototype,"multivalued",void 0);He([h({type:Boolean})],Ae.prototype,"disabled",void 0);He([h({type:Boolean})],Ae.prototype,"hideSelectedOptions",void 0);He([h({type:Boolean})],Ae.prototype,"displayCount",void 0);He([h({type:Boolean})],Ae.prototype,"preventNavigation",void 0);He([h({type:String})],Ae.prototype,"filter",void 0);He([h({type:String})],Ae.prototype,"moreValuesButtonLabel",void 0);He([h({type:String})],Ae.prototype,"noValuesLabel",void 0);He([h()],Ae.prototype,"filteredOptionsNumberAriaNotification",void 0);He([Tt()],Ae.prototype,"displayedValuesLimit",void 0);He([F(".ft-filter-level--container")],Ae.prototype,"container",void 0);He([I()],Ae.prototype,"radios",void 0);He([I()],Ae.prototype,"displayedPages",void 0);He([I()],Ae.prototype,"filteredOptions",void 0)});var st,bv,ps=u(()=>{"use strict";_();O();No();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")},bv=R`
1188
1188
  .ft-snap-scroll {
1189
1189
  box-sizing: border-box;
1190
1190
  position: relative;
@@ -1265,8 +1265,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1265
1265
  z-index: ${st.buttonsZIndex};
1266
1266
  opacity: 1;
1267
1267
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1268
- ${R(Q.backgroundColor,"transparent")};
1269
- ${R(Q.color,st.buttonsColor)};
1268
+ ${A(Q.backgroundColor,"transparent")};
1269
+ ${A(Q.color,st.buttonsColor)};
1270
1270
  }
1271
1271
 
1272
1272
  .ft-snap-scroll--previous[hidden],
@@ -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 cr,Au,Ne,Lu=u(()=>{"use strict";_();K();O();Zt();tt();ps();cr=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},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,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":Lo}),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=xv;cr([h({type:Boolean})],Ne.prototype,"horizontal",void 0);cr([h({type:Boolean})],Ne.prototype,"hideScrollbar",void 0);cr([h({type:Boolean})],Ne.prototype,"controls",void 0);cr([h({type:Boolean})],Ne.prototype,"limitSize",void 0);cr([I()],Ne.prototype,"elements",void 0);cr([I()],Ne.prototype,"currentElement",void 0);cr([I()],Ne.prototype,"withScroll",void 0);cr([I()],Ne.prototype,"startReached",void 0);cr([I()],Ne.prototype,"endReached",void 0);cr([F(".ft-snap-scroll--content")],Ne.prototype,"contentSlot",void 0)});var Sv=u(()=>{"use strict"});var Cv,Ov=u(()=>{"use strict";Lu();Cv={"ft-snap-scroll":Ne}});var Ev=u(()=>{"use strict";O();Ov();U(Cv)});var fs=u(()=>{"use strict";Lu();ps();Sv();Ev()});var ft,wv,hs=u(()=>{"use strict";_();O();Wt();$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")},wv=[jr,bo,w`
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=bv;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 vv=u(()=>{"use strict"});var xv,Sv=u(()=>{"use strict";Lu();xv={"ft-snap-scroll":Ne}});var Cv=u(()=>{"use strict";O();Sv();U(xv)});var fs=u(()=>{"use strict";Lu();ps();vv();Cv()});var ft,Ov,hs=u(()=>{"use strict";_();O();Vt();No();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")},Ov=[jr,yo,R`
1337
1337
  :host {
1338
1338
  display: flex;
1339
1339
  max-height: 100%;
@@ -1361,7 +1361,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1361
1361
  .ft-filter--header ft-button {
1362
1362
  flex-shrink: 0;
1363
1363
  margin-left: auto;
1364
- ${R(Q.iconSize,"18px")};
1364
+ ${A(Q.iconSize,"18px")};
1365
1365
  }
1366
1366
 
1367
1367
  .filter-label {
@@ -1375,8 +1375,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1375
1375
  word-break: break-word;
1376
1376
  color: ${ft.labelColor};
1377
1377
  font-size: ${ft.labelFontSize};
1378
- ${R($.lineHeight,"22px")};
1379
- ${R($.fontWeight,"bold")};
1378
+ ${A($.lineHeight,"22px")};
1379
+ ${A($.fontWeight,"bold")};
1380
1380
  }
1381
1381
 
1382
1382
  .ft-filter--filter {
@@ -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();Te();vv();Zt();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 Ta(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,ku,de,Tu=u(()=>{"use strict";_();K();O();Te();yv();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 Ta(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`
1454
1454
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1455
1455
  part="container">
1456
1456
  ${!this.label&&!e?null:b`
@@ -1534,21 +1534,21 @@ 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,Qi(()=>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,Qi(()=>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(){Qi(()=>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":Ae,"ft-snap-scroll":Ne,"ft-typography":ne};de.styles=wv;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 Rv=u(()=>{"use strict"});var $i,Et,_u=u(()=>{"use strict";O();K();_();$i=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 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":Ae,"ft-snap-scroll":Ne,"ft-typography":ne};de.styles=Ov;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 Ev=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`
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={};$i([h({type:String})],Et.prototype,"label",void 0);$i([h({type:Object,converter:r=>r})],Et.prototype,"value",void 0);$i([h({type:Boolean,reflect:!0})],Et.prototype,"selected",void 0);$i([h({type:Object})],Et.prototype,"subOptions",void 0);$i([ue({})],Et.prototype,"renderOption",void 0);$i([F(".ft-filter-option--slot")],Et.prototype,"slotElement",void 0)});var Av=u(()=>{"use strict"});var Lv,kv=u(()=>{"use strict";Tu();_u();Lv={"ft-filter":de,"ft-filter-option":Et}});var Tv=u(()=>{"use strict";O();kv();U(Lv)});var _v=u(()=>{"use strict";yu();Tu();hs();Rv();_u();Av();Tv()});var Iv,Iu=u(()=>{"use strict";_();Iv=w`
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 wv=u(()=>{"use strict"});var Rv,Av=u(()=>{"use strict";Tu();_u();Rv={"ft-filter":de,"ft-filter-option":Et}});var Lv=u(()=>{"use strict";O();Av();U(Rv)});var kv=u(()=>{"use strict";yu();Tu();hs();Ev();_u();wv();Lv()});var Tv,Iu=u(()=>{"use strict";_();Tv=R`
1540
1540
  .ft-accordion {
1541
1541
  box-sizing: border-box;
1542
1542
  }
1543
- `});var Pv,dr,Pu=u(()=>{"use strict";_();K();O();Iu();Pv=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},dr=class extends D{constructor(){super(...arguments),this.multi=!1}render(){return b`
1543
+ `});var _v,lr,Pu=u(()=>{"use strict";_();K();O();Iu();_v=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)}};dr.elementDefinitions={};dr.styles=Iv;Pv([h({type:Boolean})],dr.prototype,"multi",void 0);Pv([F("slot")],dr.prototype,"content",void 0)});var Nv=u(()=>{"use strict"});var Mo,$v,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")},$v=w`
1547
+ `}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(t=>t.active=t===e.target)}};lr.elementDefinitions={};lr.styles=Tv;_v([h({type:Boolean})],lr.prototype,"multi",void 0);_v([F("slot")],lr.prototype,"content",void 0)});var Iv=u(()=>{"use strict"});var Do,Pv,Nu=u(()=>{"use strict";_();O();Do={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")},Pv=R`
1548
1548
  .ft-accordion-item {
1549
1549
  display: flex;
1550
1550
  flex-direction: column;
1551
- background-color: ${Mo.backgroundColor};
1551
+ background-color: ${Do.backgroundColor};
1552
1552
  }
1553
1553
 
1554
1554
  .ft-accordion-item--toggle {
@@ -1558,8 +1558,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1558
1558
  display: flex;
1559
1559
  align-items: center;
1560
1560
  cursor: pointer;
1561
- padding: ${Mo.verticalSpacing} ${Mo.horizontalSpacing};
1562
- gap: calc(${Mo.horizontalSpacing} / 2);
1561
+ padding: ${Do.verticalSpacing} ${Do.horizontalSpacing};
1562
+ gap: calc(${Do.horizontalSpacing} / 2);
1563
1563
  outline: none;
1564
1564
  }
1565
1565
 
@@ -1584,13 +1584,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1584
1584
  .ft-accordion-item--active .ft-accordion-item--content {
1585
1585
  height: initial;
1586
1586
  overflow: visible;
1587
- padding: ${Mo.verticalSpacing} ${Mo.horizontalSpacing};
1587
+ padding: ${Do.verticalSpacing} ${Do.horizontalSpacing};
1588
1588
  }
1589
1589
 
1590
1590
  .ft-accordion-item--separator {
1591
- border-bottom: 1px solid ${Mo.colorOutline};
1591
+ border-bottom: 1px solid ${Do.colorOutline};
1592
1592
  }
1593
- `});var ms,Bt,$u=u(()=>{"use strict";_();K();O();ot();Te();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},Bt=class extends D{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return b`
1593
+ `});var ms,Mt,$u=u(()=>{"use strict";_();K();O();ot();Te();Er();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`
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)}};Bt.elementDefinitions={"ft-ripple":Z,"ft-typography":ne,"ft-icon":Se};Bt.styles=$v;ms([h()],Bt.prototype,"icon",void 0);ms([h()],Bt.prototype,"iconVariant",void 0);ms([h()],Bt.prototype,"label",void 0);ms([h({type:Boolean,reflect:!0})],Bt.prototype,"active",void 0)});var Dv=u(()=>{"use strict"});var Mv,Fv=u(()=>{"use strict";Pu();$u();Mv={"ft-accordion":dr,"ft-accordion-item":Bt}});var Bv=u(()=>{"use strict";O();Fv();U(Mv)});var Uv=u(()=>{"use strict";Pu();Iu();Nv();$u();Nu();Dv();Bv()});var zv,Ve,Hv,Du,Vv,Wv,Mu=u(()=>{"use strict";_();O();Sr();Wt();ki();Zt();zv=i.extend("--ft-chip-color","",S.colorOnSurface),Ve={backgroundColor:i.extend("--ft-chip-background-color","",S.colorSurface),color:zv,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","",zv),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")},Hv=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:Hv,rippleColor:i.extend("--ft-chip-highlighted-ripple-color","",Hv)},Vv={horizontalPadding:i.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:i.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Wv=[yo,w`
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=Pv;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 Nv=u(()=>{"use strict"});var $v,Dv=u(()=>{"use strict";Pu();$u();$v={"ft-accordion":lr,"ft-accordion-item":Mt}});var Mv=u(()=>{"use strict";O();Dv();U($v)});var Fv=u(()=>{"use strict";Pu();Iu();Iv();$u();Nu();Nv();Mv()});var Bv,Ve,Uv,Du,zv,Hv,Mu=u(()=>{"use strict";_();O();xr();Vt();Li();qt();Bv=i.extend("--ft-chip-color","",S.colorOnSurface),Ve={backgroundColor:i.extend("--ft-chip-background-color","",S.colorSurface),color:Bv,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","",Bv),horizontalPadding:i.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:i.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:i.extend("--ft-chip-border-color","",S.colorOutline),opacityDisabled:i.external(S.colorOpacityDisabled,"Design system")},Uv=i.extend("--ft-chip-highlighted-color","",i.extend("--ft-chip-color","",S.colorOnPrimary)),Du={backgroundColor:i.extend("--ft-chip-highlighted-background-color","",i.extend("--ft-chip-background-color","",S.colorPrimary)),color:Uv,rippleColor:i.extend("--ft-chip-highlighted-ripple-color","",Uv)},zv={horizontalPadding:i.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:i.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Hv=[go,R`
1624
1624
  :host {
1625
1625
  display: inline-block;
1626
1626
  max-width: 100%;
@@ -1639,7 +1639,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1639
1639
  --chip-internal-font-size: ${Ve.fontSize};
1640
1640
  --chip-internal-font-weight: ${Ve.fontWeight};
1641
1641
  --chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
1642
- ${R(nt.size,Ve.iconSize)};
1642
+ ${A(nt.size,Ve.iconSize)};
1643
1643
  --chip-internal-vertical-padding: ${Ve.verticalPadding};
1644
1644
  --chip-internal-horizontal-padding: ${Ve.horizontalPadding};
1645
1645
  --chip-internal-icon-padding: 3px;
@@ -1647,7 +1647,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1647
1647
 
1648
1648
  border: 1px solid ${Ve.borderColor};
1649
1649
  color: ${Ve.color};
1650
- ${R(le.color,Ve.rippleColor)};
1650
+ ${A(le.color,Ve.rippleColor)};
1651
1651
  border-radius: var(${Jr(Ve.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1652
1652
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
1653
1653
  background-color: ${Ve.backgroundColor};
@@ -1660,13 +1660,13 @@ 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: ${Vv.verticalPadding};
1664
- --chip-internal-horizontal-padding: ${Vv.horizontalPadding};
1663
+ --chip-internal-vertical-padding: ${zv.verticalPadding};
1664
+ --chip-internal-horizontal-padding: ${zv.horizontalPadding};
1665
1665
  --chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
1666
1666
  }
1667
1667
 
1668
1668
  .ft-chip--no-content {
1669
- --chip-internal-horizontal-padding: ${Ve.horizontalPadding.get(w`var(--chip-internal-vertical-padding)`)};
1669
+ --chip-internal-horizontal-padding: ${Ve.horizontalPadding.get(R`var(--chip-internal-vertical-padding)`)};
1670
1670
  }
1671
1671
 
1672
1672
  .ft-chip--disabled {
@@ -1680,7 +1680,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1680
1680
  border: none;
1681
1681
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1682
1682
  background-color: ${Du.backgroundColor};
1683
- ${R(le.color,Du.rippleColor)};
1683
+ ${A(le.color,Du.rippleColor)};
1684
1684
  color: ${Du.color};
1685
1685
  }
1686
1686
 
@@ -1712,9 +1712,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1712
1712
  }
1713
1713
 
1714
1714
  .ft-chip--icon-button {
1715
- ${R(Q.iconSize,Ve.iconSize)};
1716
- ${R(Q.horizontalPadding,"var(--chip-internal-icon-padding)")};
1717
- ${R(Q.verticalPadding,"var(--chip-internal-icon-padding)")};
1715
+ ${A(Q.iconSize,Ve.iconSize)};
1716
+ ${A(Q.horizontalPadding,"var(--chip-internal-icon-padding)")};
1717
+ ${A(Q.verticalPadding,"var(--chip-internal-icon-padding)")};
1718
1718
  margin: calc((-1) * var(--chip-internal-icon-padding));
1719
1719
  }
1720
1720
 
@@ -1722,9 +1722,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1722
1722
  vertical-align: bottom;
1723
1723
  display: block;
1724
1724
  margin: 0 var(--chip-internal-horizontal-padding);
1725
- ${R(Me.fontSize,"var(--chip-internal-font-size)")};
1726
- ${R(Me.fontWeight,"var(--chip-internal-font-weight)")};
1727
- ${R(Me.lineHeight,"var(--chip-internal-content-height)")};
1725
+ ${A(Me.fontSize,"var(--chip-internal-font-size)")};
1726
+ ${A(Me.fontWeight,"var(--chip-internal-font-weight)")};
1727
+ ${A(Me.lineHeight,"var(--chip-internal-content-height)")};
1728
1728
  }
1729
1729
 
1730
1730
  .ft-chip--safari-fix .ft-chip--label {
@@ -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,Le,Fu=u(()=>{"use strict";_();K();tt();O();ot();Te();wr();Mu();Zt();lt=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},gs=class extends CustomEvent{constructor(){super("icon-click")}},Le=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,gs,Le,Fu=u(()=>{"use strict";_();K();tt();O();ot();Te();Er();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")}},Le=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":Lo};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)}};Le.elementDefinitions={"ft-ripple":Z,"ft-typography":ne,"ft-icon":Se,"ft-button":j};Le.styles=Wv;lt([h({type:Boolean})],Le.prototype,"highlighted",void 0);lt([h({type:Boolean})],Le.prototype,"removable",void 0);lt([h({type:Boolean})],Le.prototype,"disabled",void 0);lt([h({type:Boolean})],Le.prototype,"clickable",void 0);lt([h({type:Boolean})],Le.prototype,"iconClickable",void 0);lt([h({type:Boolean})],Le.prototype,"dense",void 0);lt([h({type:Boolean})],Le.prototype,"multiLine",void 0);lt([h()],Le.prototype,"label",void 0);lt([h()],Le.prototype,"iconLabel",void 0);lt([h({type:Boolean})],Le.prototype,"hideIconTooltip",void 0);lt([h()],Le.prototype,"icon",void 0);lt([h()],Le.prototype,"iconVariant",void 0);lt([h({type:Boolean})],Le.prototype,"trailingIcon",void 0);lt([h()],Le.prototype,"typographyVariant",void 0);lt([F("ft-typography slot")],Le.prototype,"slottedContent",void 0)});var jv=u(()=>{"use strict"});var Gv,Kv=u(()=>{"use strict";Fu();Gv={"ft-chip":Le}});var qv=u(()=>{"use strict";O();Kv();U(Gv)});var Bu=u(()=>{"use strict";Fu();Mu();jv();qv()});var re,Zv,Mn=u(()=>{"use strict";_();O();Wt();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")},Zv=w`
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 qo(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Le.elementDefinitions={"ft-ripple":Z,"ft-typography":ne,"ft-icon":Se,"ft-button":j};Le.styles=Hv;lt([h({type:Boolean})],Le.prototype,"highlighted",void 0);lt([h({type:Boolean})],Le.prototype,"removable",void 0);lt([h({type:Boolean})],Le.prototype,"disabled",void 0);lt([h({type:Boolean})],Le.prototype,"clickable",void 0);lt([h({type:Boolean})],Le.prototype,"iconClickable",void 0);lt([h({type:Boolean})],Le.prototype,"dense",void 0);lt([h({type:Boolean})],Le.prototype,"multiLine",void 0);lt([h()],Le.prototype,"label",void 0);lt([h()],Le.prototype,"iconLabel",void 0);lt([h({type:Boolean})],Le.prototype,"hideIconTooltip",void 0);lt([h()],Le.prototype,"icon",void 0);lt([h()],Le.prototype,"iconVariant",void 0);lt([h({type:Boolean})],Le.prototype,"trailingIcon",void 0);lt([h()],Le.prototype,"typographyVariant",void 0);lt([F("ft-typography slot")],Le.prototype,"slottedContent",void 0)});var Vv=u(()=>{"use strict"});var Wv,jv=u(()=>{"use strict";Fu();Wv={"ft-chip":Le}});var Gv=u(()=>{"use strict";O();jv();U(Wv)});var Bu=u(()=>{"use strict";Fu();Mu();Vv();Gv()});var re,Kv,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")},Kv=R`
1791
1791
  .ft-input-label {
1792
1792
  position: absolute;
1793
1793
  inset: 0;
@@ -1838,8 +1838,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1838
1838
  transition: font-size 250ms, line-height 250ms, color 250ms;
1839
1839
  max-width: calc(${re.labelMaxWidth} - 2 * (${re.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
1840
1840
  text-overflow: ellipsis;
1841
- ${R(xt.fontSize,re.fontSize)};
1842
- ${R(xt.lineHeight,re.fontSize)};
1841
+ ${A(xt.fontSize,re.fontSize)};
1842
+ ${A(xt.lineHeight,re.fontSize)};
1843
1843
  }
1844
1844
 
1845
1845
  .ft-input-label--in-error .ft-input-label--text {
@@ -1871,8 +1871,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1871
1871
  }
1872
1872
 
1873
1873
  .ft-input-label--raised .ft-input-label--text {
1874
- ${R(xt.fontSize,re.raisedFontSize)};
1875
- ${R(xt.lineHeight,re.raisedFontSize)};
1874
+ ${A(xt.fontSize,re.raisedFontSize)};
1875
+ ${A(xt.lineHeight,re.raisedFontSize)};
1876
1876
  }
1877
1877
 
1878
1878
  .ft-input-label--raised .ft-input-label--floating-text {
@@ -1909,16 +1909,16 @@ 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 Qv,Fo,Yv=u(()=>{"use strict";_();K();La();tt();O();Qv=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 qv,Mo,Zv=u(()=>{"use strict";_();K();La();tt();O();qv=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},Mo=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
- ${Ro(this.text,()=>b`
1914
+ ${wo(this.text,()=>b`
1915
1915
  <div class="ft-input-label--text ft-typography--caption">
1916
1916
  <label class="ft-input-label--floating-text">${this.text}</label>
1917
1917
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1918
1918
  </div>
1919
1919
  `)}
1920
1920
  </div>
1921
- `}};Fo.elementDefinitions={};Qv([h({type:String})],Fo.prototype,"text",void 0);Qv([h({type:Boolean})],Fo.prototype,"raised",void 0)});var Uu,Yt,zu=u(()=>{"use strict";K();Wt();Mn();Yv();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},Yt=class extends Fo{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};Yt.elementDefinitions={};Yt.styles=[jr,Zv];Uu([h({type:Boolean})],Yt.prototype,"outlined",void 0);Uu([h({type:Boolean})],Yt.prototype,"error",void 0);Uu([h({type:Boolean})],Yt.prototype,"disabled",void 0)});var Xv=u(()=>{"use strict"});var Jv,ex=u(()=>{"use strict";zu();Jv={"ft-input-label":Yt}});var tx=u(()=>{"use strict";O();ex();U(Jv)});var rx=u(()=>{"use strict";zu();Mn();Xv();tx()});var X,ox,Fn=u(()=>{"use strict";_();O();Mn();Wt();Sr();ki();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")},ox=w`
1921
+ `}};Mo.elementDefinitions={};qv([h({type:String})],Mo.prototype,"text",void 0);qv([h({type:Boolean})],Mo.prototype,"raised",void 0)});var Uu,Qt,zu=u(()=>{"use strict";K();Vt();Mn();Zv();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 Mo{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=[jr,Kv];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 Qv=u(()=>{"use strict"});var Yv,Xv=u(()=>{"use strict";zu();Yv={"ft-input-label":Qt}});var Jv=u(()=>{"use strict";O();Xv();U(Yv)});var ex=u(()=>{"use strict";zu();Mn();Qv();Jv()});var X,tx,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")},tx=R`
1922
1922
  *:focus {
1923
1923
  outline: none;
1924
1924
  }
@@ -1946,13 +1946,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1946
1946
  padding-right: ${X.horizontalSpacing};
1947
1947
  gap: 8px;
1948
1948
  color: ${X.selectedOptionColor};
1949
- ${R(le.color,X.selectedOptionColor)};
1949
+ ${A(le.color,X.selectedOptionColor)};
1950
1950
  }
1951
1951
 
1952
1952
  .ft-select--input-panel,
1953
1953
  .ft-select--options {
1954
- ${R(le.opacityContentOnSurfaceHover,"0.08")};
1955
- ${R(le.opacityContentOnSurfacePressed,"0.04")};
1954
+ ${A(le.opacityContentOnSurfaceHover,"0.08")};
1955
+ ${A(le.opacityContentOnSurfacePressed,"0.04")};
1956
1956
  }
1957
1957
 
1958
1958
  .ft-select--input-panel > *:not(ft-ripple) {
@@ -1970,12 +1970,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1970
1970
  }
1971
1971
 
1972
1972
  ft-input-label {
1973
- ${R(re.fontSize,X.selectedOptionSize)};
1974
- ${R(re.raisedFontSize,X.labelSize)};
1975
- ${R(re.verticalSpacing,X.verticalSpacing)};
1976
- ${R(re.horizontalSpacing,X.horizontalSpacing)};
1977
- ${R(re.backgroundColor,X.backgroundColor)};
1978
- ${R(re.labelMaxWidth,`calc(100% - ${nt.size} - 8px)`)};
1973
+ ${A(re.fontSize,X.selectedOptionSize)};
1974
+ ${A(re.raisedFontSize,X.labelSize)};
1975
+ ${A(re.verticalSpacing,X.verticalSpacing)};
1976
+ ${A(re.horizontalSpacing,X.horizontalSpacing)};
1977
+ ${A(re.backgroundColor,X.backgroundColor)};
1978
+ ${A(re.labelMaxWidth,`calc(100% - ${nt.size} - 8px)`)};
1979
1979
  }
1980
1980
 
1981
1981
  .ft-select:not(.ft-select--disabled):focus-within ft-icon {
@@ -1983,8 +1983,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1983
1983
  }
1984
1984
 
1985
1985
  .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
1986
- ${R(re.borderColor,X.colorPrimary)};
1987
- ${R(re.textColor,X.colorPrimary)};
1986
+ ${A(re.borderColor,X.colorPrimary)};
1987
+ ${A(re.textColor,X.colorPrimary)};
1988
1988
  }
1989
1989
 
1990
1990
  .ft-select--selected-option {
@@ -1994,8 +1994,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
1994
1994
  overflow: hidden;
1995
1995
  white-space: nowrap;
1996
1996
  text-overflow: ellipsis;
1997
- ${R(Cr.fontSize,X.selectedOptionSize)};
1998
- ${R(Cr.lineHeight,X.selectedOptionSize)};
1997
+ ${A(Sr.fontSize,X.selectedOptionSize)};
1998
+ ${A(Sr.lineHeight,X.selectedOptionSize)};
1999
1999
  }
2000
2000
 
2001
2001
  .ft-select--in-error .ft-select--selected-option {
@@ -2054,10 +2054,10 @@ 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 ix,nx=u(()=>{"use strict";Sr();O();Fn();_();ix=w`
2057
+ `});var rx,ox=u(()=>{"use strict";xr();O();Fn();_();rx=R`
2058
2058
  .ft-select--option {
2059
- ${R(le.opacityContentOnSurfaceHover,"0.08")};
2060
- ${R(le.opacityContentOnSurfacePressed,"0.04")};
2059
+ ${A(le.opacityContentOnSurfaceHover,"0.08")};
2060
+ ${A(le.opacityContentOnSurfacePressed,"0.04")};
2061
2061
  }
2062
2062
 
2063
2063
  .ft-select--option > *:not(ft-ripple) {
@@ -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,ax=u(()=>{"use strict";O();ot();Te();_();tt();K();nx();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,ix=u(()=>{"use strict";O();ot();Te();_();tt();K();ox();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=[ix,Wr];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 We,xe,Hu=u(()=>{"use strict";_();K();tt();zt();La();Ya();O();Te();rx();ot();wr();Fn();ax();We=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=[rx,Wr];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 We,xe,Hu=u(()=>{"use strict";_();K();tt();Bt();La();Ya();O();Te();ex();ot();Er();Fn();ix();We=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`
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}"
@@ -2110,7 +2110,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2110
2110
  @click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
2111
2111
  @keydown=${this.onMainPanelKeyDown}
2112
2112
  aria-label="${Kr(this.ariaLabel)}"
2113
- aria-labelledby="${Ro(!this.ariaLabel,()=>"label")}"
2113
+ aria-labelledby="${wo(!this.ariaLabel,()=>"label")}"
2114
2114
  aria-haspopup="listbox"
2115
2115
  aria-expanded="${s}"
2116
2116
  aria-activedescendant="${Kr(this.getOptionId(this.selectedOption))}"
@@ -2134,7 +2134,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2134
2134
  @option-change=${this.updateOptionsFromSlot}
2135
2135
  >
2136
2136
  </slot>
2137
- ${Ro(this.isSlotEmpty,()=>ye(this.options,g=>g.value,g=>this.renderOption(g)))}
2137
+ ${wo(this.isSlotEmpty,()=>ye(this.options,g=>g.value,g=>this.renderOption(g)))}
2138
2138
  </div>
2139
2139
  </div>
2140
2140
  <slot name="helper" part="helper">
@@ -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":Yt,"ft-typography":ne,"ft-ripple":Z,"ft-icon":Se,"ft-select-option":Je};xe.searchTimeoutMilliseconds=2e3;xe.styles=[jr,ox];We([h({type:String})],xe.prototype,"label",void 0);We([h({type:String})],xe.prototype,"ariaLabel",void 0);We([h({type:String})],xe.prototype,"helper",void 0);We([h({type:Boolean})],xe.prototype,"outlined",void 0);We([h({type:Boolean})],xe.prototype,"disabled",void 0);We([h({type:Boolean})],xe.prototype,"error",void 0);We([h({type:Boolean})],xe.prototype,"fixedMenuPosition",void 0);We([h({type:Array})],xe.prototype,"options",void 0);We([I()],xe.prototype,"selectedOption",void 0);We([I()],xe.prototype,"optionsDisplayed",void 0);We([I()],xe.prototype,"focusOptions",void 0);We([I()],xe.prototype,"currentSearch",void 0);We([I()],xe.prototype,"lastSearchInputDate",void 0);We([F(".ft-select")],xe.prototype,"container",void 0);We([F(".ft-select--options")],xe.prototype,"optionsMenu",void 0);We([F(".ft-select--input-panel")],xe.prototype,"mainPanel",void 0);We([F("slot:not([name])")],xe.prototype,"optionsSlot",void 0)});var sx=u(()=>{"use strict"});var lx,cx=u(()=>{"use strict";Hu();lx={"ft-select":xe,"ft-select-option":Je}});var dx=u(()=>{"use strict";O();cx();U(lx)});var ux=u(()=>{"use strict";Hu();Fn();sx();dx()});var je,px,ys=u(()=>{"use strict";_();O();je={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")},px=w`
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=[jr,tx];We([h({type:String})],xe.prototype,"label",void 0);We([h({type:String})],xe.prototype,"ariaLabel",void 0);We([h({type:String})],xe.prototype,"helper",void 0);We([h({type:Boolean})],xe.prototype,"outlined",void 0);We([h({type:Boolean})],xe.prototype,"disabled",void 0);We([h({type:Boolean})],xe.prototype,"error",void 0);We([h({type:Boolean})],xe.prototype,"fixedMenuPosition",void 0);We([h({type:Array})],xe.prototype,"options",void 0);We([I()],xe.prototype,"selectedOption",void 0);We([I()],xe.prototype,"optionsDisplayed",void 0);We([I()],xe.prototype,"focusOptions",void 0);We([I()],xe.prototype,"currentSearch",void 0);We([I()],xe.prototype,"lastSearchInputDate",void 0);We([F(".ft-select")],xe.prototype,"container",void 0);We([F(".ft-select--options")],xe.prototype,"optionsMenu",void 0);We([F(".ft-select--input-panel")],xe.prototype,"mainPanel",void 0);We([F("slot:not([name])")],xe.prototype,"optionsSlot",void 0)});var nx=u(()=>{"use strict"});var ax,sx=u(()=>{"use strict";Hu();ax={"ft-select":xe,"ft-select-option":Je}});var lx=u(()=>{"use strict";O();sx();U(ax)});var cx=u(()=>{"use strict";Hu();Fn();nx();lx()});var je,dx,ys=u(()=>{"use strict";_();O();je={display:i.create("--ft-skeleton--display","","DISPLAY","block"),width:i.create("--ft-skeleton--width","","SIZE","100%"),height:i.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:i.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:i.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:i.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:i.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:i.external(S.borderRadiusM,"Design system")},dx=R`
2153
2153
  :host {
2154
2154
  width: ${je.width};
2155
2155
  height: ${je.height};
@@ -2176,7 +2176,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2176
2176
  background-position: calc(100vw + ${je.glareWidth}) 0, calc(${je.glareWidth} * -1) 0;
2177
2177
  }
2178
2178
  }
2179
- `});var W,fx,hx,bs=u(()=>{"use strict";O();_();$o();Mn();Fn();ys();ps();hs();Wt();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)},fx=w`
2179
+ `});var W,ux,px,bs=u(()=>{"use strict";O();_();No();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)},ux=R`
2180
2180
  * {
2181
2181
  box-sizing: border-box;
2182
2182
  }
@@ -2224,8 +2224,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2224
2224
  }
2225
2225
 
2226
2226
  .ft-search-bar--skeleton {
2227
- ${R(je.height,W.height)};
2228
- ${R(je.borderRadiusM,W.borderRadius)};
2227
+ ${A(je.height,W.height)};
2228
+ ${A(je.borderRadiusM,W.borderRadius)};
2229
2229
  }
2230
2230
 
2231
2231
  .ft-search-bar--floating-panel-open .ft-search-bar {
@@ -2283,11 +2283,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2283
2283
  .ft-search-bar > ft-button,
2284
2284
  .ft-search-bar--actions ft-button {
2285
2285
  flex-shrink: 0;
2286
- ${R(Q.backgroundColor,"transparent")};
2286
+ ${A(Q.backgroundColor,"transparent")};
2287
2287
  }
2288
2288
 
2289
2289
  .ft-search-bar--left-action {
2290
- ${R(Q.borderRadius,`calc(${W.borderRadius} - 1px) 0 0 calc(${W.borderRadius} - 1px)`)};
2290
+ ${A(Q.borderRadius,`calc(${W.borderRadius} - 1px) 0 0 calc(${W.borderRadius} - 1px)`)};
2291
2291
  border-right: 1px solid ${W.colorOutline};
2292
2292
  height: 100%;
2293
2293
  }
@@ -2297,7 +2297,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2297
2297
  }
2298
2298
 
2299
2299
  .ft-search-bar--floating-panel-open .ft-search-bar--left-action {
2300
- ${R(Q.borderRadius,`calc(${W.borderRadius} - 1px) 0 0 0`)};
2300
+ ${A(Q.borderRadius,`calc(${W.borderRadius} - 1px) 0 0 0`)};
2301
2301
  }
2302
2302
 
2303
2303
  .ft-search-bar .ft-search-bar--launch-search,
@@ -2311,9 +2311,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2311
2311
  }
2312
2312
 
2313
2313
  .ft-search-bar--left-action.ft-search-bar--content-locale {
2314
- ${R(re.borderColor,"transparent")};
2315
- ${R(re.borderRadius,`calc(${W.borderRadius} - 1px)`)};
2316
- ${R(X.selectedOptionColor,W.buttonColor)};
2314
+ ${A(re.borderColor,"transparent")};
2315
+ ${A(re.borderRadius,`calc(${W.borderRadius} - 1px)`)};
2316
+ ${A(X.selectedOptionColor,W.buttonColor)};
2317
2317
  }
2318
2318
 
2319
2319
  .ft-search-bar--left-action.ft-search-bar--content-locale,
@@ -2357,7 +2357,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2357
2357
  flex-shrink: 0;
2358
2358
  padding: 0 10px;
2359
2359
  margin-bottom: 8px;
2360
- ${R($.fontSize,"14px")};
2360
+ ${A($.fontSize,"14px")};
2361
2361
  }
2362
2362
 
2363
2363
  [part="content-locale-selector-label"] {
@@ -2365,18 +2365,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2365
2365
  flex-shrink: 1;
2366
2366
  flex-grow: 1;
2367
2367
  word-break: break-word;
2368
- ${R($.lineHeight,"22px")};
2369
- ${R($.fontWeight,"bold")};
2368
+ ${A($.lineHeight,"22px")};
2369
+ ${A($.fontWeight,"bold")};
2370
2370
  }
2371
2371
 
2372
- `,hx=w`
2372
+ `,px=R`
2373
2373
  .ft-search-bar--presets {
2374
2374
  min-width: 200px;
2375
2375
  }
2376
2376
 
2377
2377
  .ft-search-bar--desktop-menu .ft-search-bar--presets {
2378
2378
  margin-right: auto;
2379
- ${R(X.optionsZIndex,"2")};
2379
+ ${A(X.optionsZIndex,"2")};
2380
2380
  }
2381
2381
 
2382
2382
  .ft-search-bar--desktop-menu {
@@ -2430,7 +2430,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2430
2430
  .ft-search-bar--desktop-menu .ft-search-bar--filters-container {
2431
2431
  display: block;
2432
2432
  height: ${W.desktopFiltersHeight};
2433
- ${R(st.gap,"16px")};
2433
+ ${A(st.gap,"16px")};
2434
2434
  }
2435
2435
 
2436
2436
  .ft-search-bar--desktop-menu ft-filter {
@@ -2531,7 +2531,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2531
2531
  margin: 0;
2532
2532
  }
2533
2533
  `});var Qr,Vu=u(()=>{"use strict";_();O();ys();Qr=class extends D{render(){return b`
2534
- `}};Qr.elementDefinitions={};Qr.styles=px});var mx=u(()=>{"use strict"});var gx,yx=u(()=>{"use strict";Vu();gx={"ft-skeleton":Qr}});var bx=u(()=>{"use strict";O();yx();U(gx)});var vx=u(()=>{"use strict";Vu();ys();mx();bx()});var ur,vs=u(()=>{"use strict";_();zt();wr();O();bs();ot();ur=class{constructor(e,t=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new ae(t)}render(){let e=this.recentSearchesMatchingQuery;return b`
2534
+ `}};Qr.elementDefinitions={};Qr.styles=dx});var fx=u(()=>{"use strict"});var hx,mx=u(()=>{"use strict";Vu();hx={"ft-skeleton":Qr}});var gx=u(()=>{"use strict";O();mx();U(hx)});var yx=u(()=>{"use strict";Vu();ys();fx();gx()});var cr,vs=u(()=>{"use strict";_();Bt();Er();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`
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"
@@ -2586,7 +2586,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2586
2586
  </div>
2587
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
- `}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()))}};ur.styles=[dn,w`
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 {
2591
2591
  flex-grow: 1;
2592
2592
  flex-shrink: 1;
@@ -2674,9 +2674,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2674
2674
  }
2675
2675
 
2676
2676
  ft-ripple {
2677
- ${R(le.opacityContentOnSurfaceHover,le.opacityContentOnSurfaceSelected)}
2677
+ ${A(le.opacityContentOnSurfaceHover,le.opacityContentOnSurfaceSelected)}
2678
2678
  }
2679
- `]});var pr,xs=u(()=>{"use strict";_();zt();gu();O();fs();Bu();pr=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return b``;let e=this.searchBar.isMobile(),t=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),o=b`
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`
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,7 +2687,7 @@ 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=iv(n);return ye(a,s=>{let l=n.label+": "+tv(s),d=n.key.replace(":","-"),f=b`
2690
+ ${ye(this.searchBar.facets,n=>n.key,n=>{let a=rv(n);return ye(a,s=>{let l=n.label+": "+Jb(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}
@@ -2700,7 +2700,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
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
- ${ev(s)}
2703
+ ${Xb(s)}
2704
2704
  </ft-chip>
2705
2705
  `;return t?f:b`
2706
2706
  <ft-tooltip inline text="${l}">
@@ -2726,7 +2726,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2726
2726
  <div class="ft-search-bar--selected-filters" part="selected-filters-container">
2727
2727
  ${o}
2728
2728
  </div>
2729
- `}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var t;return(t=this.searchBar.availableContentLocales.filter(o=>{var n;return((n=o.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(o=>o.label).pop())!==null&&t!==void 0?t:e}};pr.styles=w`
2729
+ `}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var t;return(t=this.searchBar.availableContentLocales.filter(o=>{var n;return((n=o.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(o=>o.label).pop())!==null&&t!==void 0?t:e}};dr.styles=R`
2730
2730
  .ft-search-bar--selected-filters:not(ft-snap-scroll) {
2731
2731
  flex-shrink: 0;
2732
2732
  display: flex;
@@ -2737,7 +2737,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2737
2737
 
2738
2738
  ft-snap-scroll.ft-search-bar--selected-filters {
2739
2739
  overflow: hidden;
2740
- ${R(st.gap,"4px")};
2740
+ ${A(st.gap,"4px")};
2741
2741
  }
2742
2742
 
2743
2743
  ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
@@ -2745,8 +2745,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2745
2745
  }
2746
2746
 
2747
2747
  .ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
2748
- ${R(Ve.iconSize,"17px")};
2749
- ${R(Ve.fontSize,"12px")};
2748
+ ${A(Ve.iconSize,"17px")};
2749
+ ${A(Ve.fontSize,"12px")};
2750
2750
  }
2751
2751
 
2752
2752
  .ft-search-bar--selected-filters * {
@@ -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 vO,Di,xx=u(()=>{"use strict";_();xs();vs();tt();O();vO=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 pr(e),this.suggestManager=o??new ur(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 bO,$i,bx=u(()=>{"use strict";_();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},$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">
@@ -2813,9 +2813,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2813
2813
  @click=${()=>{var t;return this.searchBar.isMobileMenuOpen()?this.searchBar.onLaunchSearch():(t=this.searchBar.input)===null||t===void 0?void 0:t.focus()}}
2814
2814
  ></ft-button>
2815
2815
  </div>
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}};Di.styles=w`
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
- `;vO([Ir()],Di.prototype,"onSearchBarKeyDown",null)});var xO,Mi,Sx=u(()=>{"use strict";_();zt();xs();vs();tt();O();xO=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},Mi=class{constructor(e,t,o){this.searchBar=e,this.selectedFacetsManager=t??new pr(e),this.suggestManager=o??new ur(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
+ `;bO([_r()],$i.prototype,"onSearchBarKeyDown",null)});var vO,Di,vx=u(()=>{"use strict";_();Bt();xs();vs();tt();O();vO=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()}
@@ -2892,9 +2892,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
2892
2892
  @click=${()=>this.searchBar.onLaunchSearch()}
2893
2893
  ></ft-button>
2894
2894
  </div>
2895
- `}onSearchBarKeyDown(e){var t;switch(["Escape","Tab","Shift"].includes(e.key)||(this.searchBar.displaySuggestListbox=!0),e.key){case"Tab":this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0;break;case"Escape":this.suggestManager.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0),this.searchBar.mobileMenuOpen=!1;break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(t=this.suggestManager.selectedSuggestRemoveRecentButton)===null||t===void 0||t.click();else{let o=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;o?.click()}break}}onInput(e){let t=e.composedPath()[0];this.searchBar.query=t.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};Mi.styles=w`
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
- `;xO([Ir()],Mi.prototype,"onSearchBarKeyDown",null)});var oe,Cx,Wu,SO,G,ju=u(()=>{"use strict";_();K();zt();O();Jb();Te();gu();_v();wr();Uv();Zt();Bu();ux();fs();Hd();ot();bs();vx();vs();xs();xx();Sx();wu();jt();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");Cx={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})}},SO=()=>{},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 Nr(Cx,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new Vr(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=Ft.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new ur(this),this.selectedFacetsManager=new pr(this),this.desktopSearchBarManager=new Mi(this),this.mobileSearchBarManager=new Di(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new 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===Ft.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
+ `;vO([_r()],Di.prototype,"onSearchBarKeyDown",null)});var oe,xx,Wu,xO,G,ju=u(()=>{"use strict";_();K();Bt();O();Yb();Te();gu();kv();Er();Fv();qt();Bu();cx();fs();Hd();ot();bs();yx();vs();xs();bx();vx();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");xx={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},Wu=class extends CustomEvent{constructor(e){super("change",{detail:e})}},xO=()=>{},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 Nr(xx,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new Vr(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 Tr(()=>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=ov(o);return t.rootNodes.length>0?b`
2925
+ ${ye(this.facets,t=>t.key,t=>{let o=mu(t),n=t.key.replace(":","-"),a=tv(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>
@@ -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 Nr(Cx,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(SO)),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(),H.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),H.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}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 Nr(xx,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(xO)),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(),H.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),H.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":dr,"ft-accordion-item":Bt,"ft-button":j,"ft-chip":Le,"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":Qr,"ft-snap-scroll":Ne,"ft-tooltip":_e,"ft-typography":ne,"ft-radio-group":Ot,"ft-radio":Be};G.styles=[Wr,bo,fx,hx,pr.styles,ur.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 Ox=u(()=>{"use strict"});var Ex,wx=u(()=>{"use strict";ju();Ex={"ft-search-bar":G}});var Rx=u(()=>{"use strict";O();wx();U(Ex)});var Ax=u(()=>{"use strict";ju();bs();Ox();Rx()});var Lx,kx=u(()=>{"use strict";_();kn();O();ot();Ax();Lx=w`
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":Le,"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":Qr,"ft-snap-scroll":Ne,"ft-tooltip":_e,"ft-typography":ne,"ft-radio-group":Ot,"ft-radio":Be};G.styles=[Wr,yo,ux,px,dr.styles,cr.styles,hi];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 Sx=u(()=>{"use strict"});var Cx,Ox=u(()=>{"use strict";ju();Cx={"ft-search-bar":G}});var Ex=u(()=>{"use strict";O();Ox();U(Cx)});var wx=u(()=>{"use strict";ju();bs();Sx();Ex()});var Rx,Ax=u(()=>{"use strict";_();kn();O();ot();wx();Rx=R`
3045
3045
  * {
3046
3046
  box-sizing: border-box;
3047
3047
  }
@@ -3093,13 +3093,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3093
3093
  }
3094
3094
 
3095
3095
  ft-ripple {
3096
- ${R(le.opacityContentOnSurfaceHover,le.opacityContentOnSurfaceSelected)}
3096
+ ${A(le.opacityContentOnSurfaceHover,le.opacityContentOnSurfaceSelected)}
3097
3097
  }
3098
- `});var Yr,Tx=u(()=>{"use strict";O();_();kx();zt();wr();ot();Te();jt();du();Zt();Yr=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 Yr,Lx=u(()=>{"use strict";O();_();Ax();Bt();Er();ot();Te();Wt();du();qt();Yr=class{constructor(e){this.ftSearchInput=e,this.listboxId="ft-search-input-suggestion"}render(){var e;let t=Or.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"
3102
- aria-label="${Rr.messages.suggestionsLabel()}"
3102
+ aria-label="${wr.messages.suggestionsLabel()}"
3103
3103
  part="container">
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))}
@@ -3126,7 +3126,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3126
3126
  part="remove-suggestion"
3127
3127
  class="ft-search-input-suggestion--remove"
3128
3128
  id="remove-suggestion-${e}"
3129
- label="${Rr.messages.removeRecentQuery(t)}"
3129
+ label="${wr.messages.removeRecentQuery(t)}"
3130
3130
  tooltipPosition="left"
3131
3131
  tabindex="-1"
3132
3132
  ?activated=${l&&d}
@@ -3134,14 +3134,14 @@ 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()}};Yr.elementDefinitions={"ft-ripple":Z,"ft-typography":ne,"ft-icon":Se,"ft-button":j};Yr.styles=[dn,Lx]});function OO(r){let e=r.liveQuery.trim().toLowerCase();return r.recentQueries.filter(t=>t.toLowerCase().includes(e)).slice(0,CO)}var Ge,CO,Ee,Gu=u(()=>{"use strict";_();O();kn();Do();Dt();du();K();tt();Tx();Zt();Te();jt();qa();Ge=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},CO=5;Ee=class extends ut(Mt){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 Yr(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()}};Yr.elementDefinitions={"ft-ripple":Z,"ft-typography":ne,"ft-icon":Se,"ft-button":j};Yr.styles=[dn,Rx]});function CO(r){let e=r.liveQuery.trim().toLowerCase();return r.recentQueries.filter(t=>t.toLowerCase().includes(e)).slice(0,SO)}var Ge,SO,Ee,Gu=u(()=>{"use strict";_();O();kn();$o();Nt();du();K();tt();Lx();qt();Te();Wt();qa();Ge=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},SO=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 Yr(this),this.showSuggestionsOnFocus=!0,this.onPointerDown=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||this.suggestions.closeBox()},this.addI18nContext(wr)}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=Or.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">
3141
3141
  <input class="ft-search-input--input ft-typography--body2"
3142
3142
  part="input"
3143
3143
  type="search"
3144
- placeholder="${this.placeholder?this.placeholder.message:Rr.messages.placeholder()}"
3144
+ placeholder="${this.placeholder?this.placeholder.message:wr.messages.placeholder()}"
3145
3145
  .value=${this.liveQuery}
3146
3146
  role="combobox"
3147
3147
  aria-autocomplete="list"
@@ -3155,7 +3155,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3155
3155
  @keyup=${this.onSearchBarKeyUp}>
3156
3156
  </div>
3157
3157
  <div class="sr-only" aria-live="polite" aria-atomic="true">
3158
- ${l?Rr.messages.ariaLiveSuggestions(this.suggestions.recentQueriesCount(),this.suggestions.suggestionsCount()):""}
3158
+ ${l?wr.messages.ariaLiveSuggestions(this.suggestions.recentQueriesCount(),this.suggestions.suggestionsCount()):""}
3159
3159
  </div>
3160
3160
  ${l?this.suggestions.render():T}
3161
3161
  </div>
@@ -3166,7 +3166,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3166
3166
  part="clear-query"
3167
3167
  icon="close"
3168
3168
  round dense
3169
- label="${Rr.messages.clearButton()}"
3169
+ label="${wr.messages.clearButton()}"
3170
3170
  @click=${()=>this.onClearInput()}
3171
3171
  ></ft-button>
3172
3172
  <div class="ft-search-input--separator"></div>
@@ -3175,18 +3175,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3175
3175
  part="launch-search-in-input"
3176
3176
  icon="search"
3177
3177
  round dense
3178
- label="${Rr.messages.searchButton()}"
3178
+ label="${wr.messages.searchButton()}"
3179
3179
  href="${this.useCustomSearchPath?s:""}"
3180
3180
  @click=${()=>this.launchSearch(this.liveQuery)}
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,...Yr.elementDefinitions};Ee.styles=[Wr,bo,Qd,...Yr.styles,mi];Ge([fe()],Ee.prototype,"request",void 0);Ge([fe()],Ee.prototype,"liveQuery",void 0);Ge([fe()],Ee.prototype,"suggestResults",void 0);Ge([fe({selector:OO})],Ee.prototype,"recentQuerySuggestions",void 0);Ge([I()],Ee.prototype,"forceCloseSuggestion",void 0);Ge([I()],Ee.prototype,"displaySuggestListbox",void 0);Ge([I()],Ee.prototype,"selectedSuggestOptionIndex",void 0);Ge([I()],Ee.prototype,"selectedSuggestOptionRemove",void 0);Ge([h()],Ee.prototype,"launchSearchPath",void 0);Ge([Li()],Ee.prototype,"placeholder",void 0);Ge([h({type:Boolean})],Ee.prototype,"useCustomSearchPath",void 0);Ge([h({type:Boolean})],Ee.prototype,"triggerSearchOnClear",void 0);Ge([h({type:Boolean})],Ee.prototype,"focusOnDisplay",void 0);Ge([F(".ft-search-input--input")],Ee.prototype,"input",void 0);Ge([F('[part="launch-search-in-input"]')],Ee.prototype,"launchSearchButton",void 0);Ge([Ir()],Ee.prototype,"onSearchBarKeyDown",null);Ge([Ir()],Ee.prototype,"onSearchBarKeyUp",null)});var _x,Ix=u(()=>{"use strict";Gu();_x={"ft-search-input":Ee}});var Px=u(()=>{"use strict";O();Ix();U(_x)});var Nx={};q(Nx,{FtSearchInput:()=>Ee,FtSearchInputCssVariables:()=>be,styles:()=>Qd});var $x=u(()=>{"use strict";kn();qb();Gu();Px()});var EO,Ku,qu=u(()=>{"use strict";_();EO={},Ku=w`
3185
- `});var Dx=u(()=>{"use strict"});var Zu,Mx=u(()=>{"use strict";Dt();Zu=lr.fromGwt("designedActionBlockAriaLabels")});var Fx,Lr,Qu=u(()=>{"use strict";_();O();qu();Zt();Do();Dt();Mx();Pi();Fx=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(Mt){constructor(){super(),this.currentPage=1,this.isLastPage=!0,this.neededSearchRequests=[Qt.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 Tr(()=>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,...Yr.elementDefinitions};Ee.styles=[Wr,yo,Qd,...Yr.styles,hi];Ge([fe()],Ee.prototype,"request",void 0);Ge([fe()],Ee.prototype,"liveQuery",void 0);Ge([fe()],Ee.prototype,"suggestResults",void 0);Ge([fe({selector:CO})],Ee.prototype,"recentQuerySuggestions",void 0);Ge([I()],Ee.prototype,"forceCloseSuggestion",void 0);Ge([I()],Ee.prototype,"displaySuggestListbox",void 0);Ge([I()],Ee.prototype,"selectedSuggestOptionIndex",void 0);Ge([I()],Ee.prototype,"selectedSuggestOptionRemove",void 0);Ge([h()],Ee.prototype,"launchSearchPath",void 0);Ge([Ai()],Ee.prototype,"placeholder",void 0);Ge([h({type:Boolean})],Ee.prototype,"useCustomSearchPath",void 0);Ge([h({type:Boolean})],Ee.prototype,"triggerSearchOnClear",void 0);Ge([h({type:Boolean})],Ee.prototype,"focusOnDisplay",void 0);Ge([F(".ft-search-input--input")],Ee.prototype,"input",void 0);Ge([F('[part="launch-search-in-input"]')],Ee.prototype,"launchSearchButton",void 0);Ge([_r()],Ee.prototype,"onSearchBarKeyDown",null);Ge([_r()],Ee.prototype,"onSearchBarKeyUp",null)});var kx,Tx=u(()=>{"use strict";Gu();kx={"ft-search-input":Ee}});var _x=u(()=>{"use strict";O();Tx();U(kx)});var Ix={};q(Ix,{FtSearchInput:()=>Ee,FtSearchInputCssVariables:()=>be,styles:()=>Qd});var Px=u(()=>{"use strict";kn();Gb();Gu();_x()});var OO,Ku,qu=u(()=>{"use strict";_();OO={},Ku=R`
3185
+ `});var Nx=u(()=>{"use strict"});var Zu,$x=u(()=>{"use strict";Nt();Zu=ar.fromGwt("designedActionBlockAriaLabels")});var Dx,Ar,Qu=u(()=>{"use strict";_();O();qu();qt();$o();Nt();$x();Ii();Dx=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ar=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`
3186
3186
  <ft-button @click=${this.loadMore}>
3187
3187
  ${Zu.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;Fx([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);Fx([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 Bx,Ux=u(()=>{"use strict";Qu();Bx={"ft-search-load-more-button":Lr}});var zx=u(()=>{"use strict";O();Ux();U(Bx)});var Hx={};q(Hx,{FtSearchLoadMoreButton:()=>Lr,FtSearchLoadMoreButtonCssVariables:()=>EO,styles:()=>Ku});var Vx=u(()=>{"use strict";qu();Dx();Qu();zx()});var Wx=u(()=>{"use strict"});var Ss,Xu,Yu,wO,Fi,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"),wO=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}),Fi=class extends wO(Mt){}});var Bo,ep=u(()=>{"use strict";_();O();Ju();Ja();qi();Te();Bo=class extends Fi{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)}};Ar.elementDefinitions={"ft-button":j};Ar.styles=Ku;Dx([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}})],Ar.prototype,"currentPage",void 0);Dx([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}})],Ar.prototype,"isLastPage",void 0)});var Mx,Fx=u(()=>{"use strict";Qu();Mx={"ft-search-load-more-button":Ar}});var Bx=u(()=>{"use strict";O();Fx();U(Mx)});var Ux={};q(Ux,{FtSearchLoadMoreButton:()=>Ar,FtSearchLoadMoreButtonCssVariables:()=>OO,styles:()=>Ku});var zx=u(()=>{"use strict";qu();Nx();Qu();Bx()});var Hx=u(()=>{"use strict"});var Ss,Xu,Yu,EO,Mi,Ju=u(()=>{"use strict";O();$o();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"),EO=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 EO($t){}});var Fo,ep=u(()=>{"use strict";_();O();Ju();Ja();Ki();Te();Fo=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">${ao(t)}</ft-typography>
3191
3191
  `:b`
3192
3192
  <style>
@@ -3194,46 +3194,46 @@ 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 jx,Gx=u(()=>{"use strict";ep();jx={"ft-search-result-abstract":Bo}});var Kx=u(()=>{"use strict";O();Gx();U(jx)});var qx={};q(qx,{FtSearchResultAbstract:()=>Bo,FtSearchResultAbstractCssVariables:()=>Xa,styles:()=>Yd});var tp=u(()=>{"use strict";Ja();Wx();ep();Kx()});var Zx=u(()=>{"use strict"});var RO,Xr,rp=u(()=>{"use strict";_();K();O();Ju();ts();Te();qi();tu();_n();RO=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},Xr=class extends Fi{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():b`
3197
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.shadowRoot.querySelectorAll(".kwicmatch").forEach(t=>t.setAttribute("part","kwicmatch"))}};Fo.elementDefinitions={"ft-typography":ne};Fo.styles=Yd});var Vx,Wx=u(()=>{"use strict";ep();Vx={"ft-search-result-abstract":Fo}});var jx=u(()=>{"use strict";O();Wx();U(Vx)});var Gx={};q(Gx,{FtSearchResultAbstract:()=>Fo,FtSearchResultAbstractCssVariables:()=>Xa,styles:()=>Yd});var tp=u(()=>{"use strict";Ja();Hx();ep();jx()});var Kx=u(()=>{"use strict"});var wO,Xr,rp=u(()=>{"use strict";_();K();O();Ju();ts();Te();Ki();tu();_n();wO=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},Xr=class extends Mi{constructor(){super(...arguments),this.withoutLink=!1}render(){var e;return this.result?this.withoutLink?this.renderTitle():b`
3198
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="${Ib(this.result,(e=this.stateManager)===null||e===void 0?void 0:e.openExternalDocumentInNewTab)}"
3202
+ target="${Tb(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">${ao((e=_t(this.result))===null||e===void 0?void 0:e.htmlTitle)}</ft-typography>
3208
- `}onResultClick(){this.dispatchEvent(new _i(this.result,this.rank))}onContextMenu(){this.result.type!="HTML_PACKAGE"&&this.result.type!="HTML_PACKAGE_PAGE"&&this.dispatchEvent(new Ii(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"})}};Xr.elementDefinitions={"ft-typography":ne};Xr.styles=Xd;RO([h({type:Boolean})],Xr.prototype,"withoutLink",void 0)});var Qx,Yx=u(()=>{"use strict";rp();Qx={"ft-search-result-title":Xr}});var Xx=u(()=>{"use strict";O();Yx();U(Qx)});var Jx={};q(Jx,{FtSearchResultTitle:()=>Xr,FtSearchResultTitleCssVariables:()=>es,styles:()=>Xd});var op=u(()=>{"use strict";ts();Zx();rp();Xx()});var AO,ip,np=u(()=>{"use strict";_();AO={},ip=w`
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"})}};Xr.elementDefinitions={"ft-typography":ne};Xr.styles=Xd;wO([h({type:Boolean})],Xr.prototype,"withoutLink",void 0)});var qx,Zx=u(()=>{"use strict";rp();qx={"ft-search-result-title":Xr}});var Qx=u(()=>{"use strict";O();Zx();U(qx)});var Yx={};q(Yx,{FtSearchResultTitle:()=>Xr,FtSearchResultTitleCssVariables:()=>es,styles:()=>Xd});var op=u(()=>{"use strict";ts();Kx();rp();Qx()});var RO,ip,np=u(()=>{"use strict";_();RO={},ip=R`
3209
3209
  [part="no-results-message"] {
3210
3210
  text-align: center;
3211
3211
  padding: 12px;
3212
3212
  }
3213
- `});var e0=u(()=>{"use strict"});var t0,ap=u(()=>{"use strict";_();t0=w`
3213
+ `});var Xx=u(()=>{"use strict"});var Jx,ap=u(()=>{"use strict";_();Jx=R`
3214
3214
  a {
3215
3215
  color: inherit;
3216
3216
  text-decoration: inherit;
3217
3217
  }
3218
- `});var r0=u(()=>{"use strict"});var Cs,o0=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,fr,lp=u(()=>{"use strict";_();K();O();ap();o0();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})}},fr=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 e0=u(()=>{"use strict"});var Cs,t0=u(()=>{"use strict";Cs=class{constructor(e){this.onResultSelected=e,this.registeredComponents=[],this.registeredMetadata=new Set}registerComponent(e){e.setResultStateManager(this),this.registeredComponents.push(e),this.bindComponent(e)}unregisterComponent(e){this.registeredComponents.splice(this.registeredComponents.indexOf(e),1),e.cluster=void 0,e.result=void 0,e.rank=void 0}registerMetadata(e){this.registeredMetadata.add(e)}unregisterMetadata(e){this.registeredMetadata.delete(e)}updateCluster(e,t){this.cluster=e,this.rank=t,this.selectResult(this.cluster.entries[0])}updateOpenResultInNewTab(e){this.openResultInNewTab=e}selectResult(e){this.result=e,this.onResultSelected(e),this.registeredComponents.forEach(t=>this.bindComponent(t))}clear(){this.registeredComponents=[]}bindComponent(e){e.cluster=this.cluster,e.result=this.result,e.rank=this.rank,e.openResultInNewTab=this.openResultInNewTab}}});var Os,sp,ur,lp=u(()=>{"use strict";_();K();O();ap();t0();Os=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},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`
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()}};fr.elementDefinitions={};fr.styles=t0;Os([h({attribute:!1})],fr.prototype,"cluster",void 0);Os([h({attribute:!1,type:Boolean})],fr.prototype,"openResultInNewTab",void 0);Os([I()],fr.prototype,"result",void 0);Os([h()],fr.prototype,"index",void 0)});var i0,n0=u(()=>{"use strict";lp();i0={"ft-search-result-context":fr}});var a0=u(()=>{"use strict";O();n0();U(i0)});var s0=u(()=>{"use strict";ap();r0();lp();a0()});var Bi,l0,cp=u(()=>{"use strict";Dt();Bi=lr.build("searchResultsNumber"),l0={results:"{0} results","results[\\=1]":"1 result"}});var Uo,wt,dp=u(()=>{"use strict";_();zt();K();O();np();Do();s0();op();tp();Dt();cp();Pi();Uo=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},wt=class extends ut(Mt){constructor(){super(),this.clusterPolicy="display-first-result",this.displayNoResultsMessage=!1,this.renderResult=()=>b`
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=Jx;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 r0,o0=u(()=>{"use strict";lp();r0={"ft-search-result-context":ur}});var i0=u(()=>{"use strict";O();o0();U(r0)});var n0=u(()=>{"use strict";ap();e0();lp();i0()});var Fi,a0,cp=u(()=>{"use strict";Nt();Fi=ar.build("searchResultsNumber"),a0={results:"{0} results","results[\\=1]":"1 result"}});var Bo,wt,dp=u(()=>{"use strict";_();Bt();K();O();np();$o();n0();op();tp();Nt();cp();Ii();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},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
- `,this.clusterSortCriterion=[],this.selectedResultByCluster={},this.neededSearchRequests=[Qt.CLUSTERED_SEARCH],this.addI18nContext(Bi)}render(){if(this.displayNoResultsMessage&&this.results!=null&&this.results.length==0)return b`
3224
- <ft-typography part="no-results-message" variant="body1">${Bi.messages.results(0)}</ft-typography>
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`
3224
+ <ft-typography part="no-results-message" variant="body1">${Fi.messages.results(0)}</ft-typography>
3225
3225
  `;let e=this.buildClusters();return ye(e,t=>t.id,(t,o)=>{var n;return b`
3226
3226
  <ft-search-result-context .cluster=${t} index="${o}"
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 c0,d0=u(()=>{"use strict";dp();c0={"ft-search-results":wt}});var u0=u(()=>{"use strict";O();d0();U(c0)});var p0={};q(p0,{FtSearchResults:()=>wt,FtSearchResultsCssVariables:()=>AO,styles:()=>ip});var f0=u(()=>{"use strict";np();e0();dp();u0()});var LO,up,pp=u(()=>{"use strict";_();LO={},up=w`
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;Bo([h({type:String,attribute:"cluster-policy"})],wt.prototype,"clusterPolicy",void 0);Bo([h({type:Boolean})],wt.prototype,"displayNoResultsMessage",void 0);Bo([h({attribute:!1})],wt.prototype,"renderResult",void 0);Bo([ue([])],wt.prototype,"clusterSortCriterion",void 0);Bo([fe({selector:r=>({...r.request,paging:void 0})})],wt.prototype,"requestWithoutPaging",void 0);Bo([fe({selector:r=>r.request.paging})],wt.prototype,"paging",void 0);Bo([fe()],wt.prototype,"results",void 0)});var s0,l0=u(()=>{"use strict";dp();s0={"ft-search-results":wt}});var c0=u(()=>{"use strict";O();l0();U(s0)});var d0={};q(d0,{FtSearchResults:()=>wt,FtSearchResultsCssVariables:()=>RO,styles:()=>ip});var u0=u(()=>{"use strict";np();Xx();dp();c0()});var AO,up,pp=u(()=>{"use strict";_();AO={},up=R`
3231
3231
 
3232
- `});var h0=u(()=>{"use strict"});var m0,kr,fp=u(()=>{"use strict";_();O();pp();Do();Dt();cp();Te();Pi();m0=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(Mt)){constructor(){super(),this.ariaNotificationDebouncer=new ae(100),this.searchNumberOfResults={context:"officialContext",key:"searchNumberOfResults",message:""},this.neededSearchRequests=[Qt.CLUSTERED_SEARCH],this.addI18nContext(Bi,l0)}render(){return this.paging==null?T:b`
3232
+ `});var p0=u(()=>{"use strict"});var f0,Lr,fp=u(()=>{"use strict";_();O();pp();$o();Nt();cp();Te();Ii();f0=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Lr=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,a0)}render(){return this.paging==null?T:b`
3233
3233
  <ft-typography variant="${he.body1}">
3234
- ${Bi.messages.results(this.paging.totalClustersCount)}
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;m0([ue({context:"officialContext",key:"searchNumberOfResults"})],kr.prototype,"searchNumberOfResults",void 0);m0([fe()],kr.prototype,"paging",void 0)});var g0,y0=u(()=>{"use strict";fp();g0={"ft-search-results-number":kr}});var b0=u(()=>{"use strict";O();y0();U(g0)});var v0={};q(v0,{FtSearchResultsNumber:()=>kr,FtSearchResultsNumberCssVariables:()=>LO,styles:()=>up});var x0=u(()=>{"use strict";pp();h0();fp();b0()});O();_();O();_();O();_();O();Sr();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)},jg=w`
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)}})}};Lr.elementDefinitions={"ft-typography":ne};Lr.styles=up;f0([ue({context:"officialContext",key:"searchNumberOfResults"})],Lr.prototype,"searchNumberOfResults",void 0);f0([fe()],Lr.prototype,"paging",void 0)});var h0,m0=u(()=>{"use strict";fp();h0={"ft-search-results-number":Lr}});var g0=u(()=>{"use strict";O();m0();U(h0)});var y0={};q(y0,{FtSearchResultsNumber:()=>Lr,FtSearchResultsNumberCssVariables:()=>AO,styles:()=>up});var b0=u(()=>{"use strict";pp();p0();fp();g0()});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)},Vg=R`
3237
3237
  :host {
3238
3238
  display: block;
3239
3239
  }
@@ -3247,7 +3247,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3247
3247
  border-style: ${me.borderStyle};
3248
3248
  border-width: 1px;
3249
3249
  border-radius: ${me.borderRadius};
3250
- ${R(le.borderRadius,me.borderRadius)};
3250
+ ${A(le.borderRadius,me.borderRadius)};
3251
3251
  box-shadow: ${me.elevation02};
3252
3252
  position: relative;
3253
3253
  width: 100%;
@@ -3286,7 +3286,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3286
3286
  outline-width: ${me.selectedOutlineWidth};
3287
3287
  outline-color: ${me.selectedOutlineColor};
3288
3288
  border-radius: ${me.selectedBorderRadius};
3289
- ${R(le.borderRadius,me.selectedBorderRadius)};
3289
+ ${A(le.borderRadius,me.selectedBorderRadius)};
3290
3290
  box-shadow: ${me.elevation04};
3291
3291
  }
3292
3292
 
@@ -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();Ja();Sr();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)},Ab=w`
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)},wb=R`
3326
3326
  .ft-search-in-doc--container {
3327
3327
  display: flex;
3328
3328
  flex-direction: column;
@@ -3330,11 +3330,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3330
3330
  }
3331
3331
 
3332
3332
  ft-search-input {
3333
- ${R(be.colorSurface,Xe.searchFieldBackgroundColor)};
3334
- ${R(be.colorOutline,Xe.searchFieldBorderColor)};
3335
- ${R(be.colorOnSurface,Xe.searchFieldTextColor)};
3336
- ${R(be.borderRadius,Xe.searchFieldBorderRadius)};
3337
- ${R(be.buttonColor,Xe.searchButtonColor)};
3333
+ ${A(be.colorSurface,Xe.searchFieldBackgroundColor)};
3334
+ ${A(be.colorOutline,Xe.searchFieldBorderColor)};
3335
+ ${A(be.colorOnSurface,Xe.searchFieldTextColor)};
3336
+ ${A(be.borderRadius,Xe.searchFieldBorderRadius)};
3337
+ ${A(be.buttonColor,Xe.searchButtonColor)};
3338
3338
  }
3339
3339
 
3340
3340
  ft-search-results-number {
@@ -3348,21 +3348,21 @@ 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
- `,Lb=w`
3351
+ `,Rb=R`
3352
3352
  ft-card {
3353
3353
  margin-bottom: 8px;
3354
- ${R(me.elevation04,"none")};
3355
- ${R(me.elevation02,"none")};
3356
- ${R(me.borderStyle,"solid")};
3357
- ${R(me.borderRadius,S.borderRadiusS)};
3358
- ${R(me.colorSurface,Xe.resultBackgroundColor)};
3359
- ${R(me.borderColor,Xe.resultBorderColor)};
3360
- ${R(me.borderRadius,Xe.resultBorderRadius)};
3354
+ ${A(me.elevation04,"none")};
3355
+ ${A(me.elevation02,"none")};
3356
+ ${A(me.borderStyle,"solid")};
3357
+ ${A(me.borderRadius,S.borderRadiusS)};
3358
+ ${A(me.colorSurface,Xe.resultBackgroundColor)};
3359
+ ${A(me.borderColor,Xe.resultBorderColor)};
3360
+ ${A(me.borderRadius,Xe.resultBorderRadius)};
3361
3361
  }
3362
3362
 
3363
3363
  ft-search-result-title {
3364
3364
  color: ${Xe.resultTitleTextColor};
3365
- ${R(es.highlightBackgroundColor,Xe.resultHighlightBackgroundColor)};
3365
+ ${A(es.highlightBackgroundColor,Xe.resultHighlightBackgroundColor)};
3366
3366
  }
3367
3367
 
3368
3368
  .breadcrumb {
@@ -3371,12 +3371,12 @@ 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
- ${R(Xa.highlightBackgroundColor,Xe.resultHighlightBackgroundColor)};
3374
+ ${A(Xa.highlightBackgroundColor,Xe.resultHighlightBackgroundColor)};
3375
3375
  }
3376
3376
 
3377
3377
  ft-card:hover {
3378
- ${R(me.hoverBorderColor,Xe.resultHoverBorderColor)};
3379
- ${R(le.color,Xe.resultHoverBackgroundColor)};
3378
+ ${A(me.hoverBorderColor,Xe.resultHoverBorderColor)};
3379
+ ${A(le.color,Xe.resultHoverBackgroundColor)};
3380
3380
  }
3381
3381
 
3382
3382
  .result-container {
@@ -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
- `;Dt();O();K();var kb;(function(r){r.clusteringHelperCreated="clustering-helper-created",r.mapAttachmentsUpdate="map-attachments-update",r.visibleTopicChange="visible-topic-change",r.requestedTopicNotFound="requested-topic-not-found"})(kb||(kb={}));var Tb;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Tb||(Tb={}));var pO=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"),fO=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,pO([I()],t.prototype,"stateManager",void 0),t}),rs=class extends fO(bt){};K();tu();Dt();var ru=lr.build("designedReaderSearchInDocument");_();K();O();ot();Te();tt();var Ti=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},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 Ab;(function(r){r.clusteringHelperCreated="clustering-helper-created",r.mapAttachmentsUpdate="map-attachments-update",r.visibleTopicChange="visible-topic-change",r.requestedTopicNotFound="requested-topic-not-found"})(Ab||(Ab={}));var Lb;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Lb||(Lb={}));var 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},eu=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Jd=Symbol("registerInterval"),pO=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,uO([I()],t.prototype,"stateManager",void 0),t}),rs=class extends pO(bt){};K();tu();Nt();var ru=ar.build("designedReaderSearchInDocument");_();K();O();ot();Te();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,8 +3407,8 @@ 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=jg;Ti([h()],pt.prototype,"title",void 0);Ti([h({type:Boolean})],pt.prototype,"clickable",void 0);Ti([h({type:Boolean})],pt.prototype,"selected",void 0);Ti([h({type:Boolean})],pt.prototype,"noHeader",void 0);Ti([h({type:Boolean})],pt.prototype,"noContent",void 0);Ti([h({type:Boolean})],pt.prototype,"oneLineHeader",void 0);O();var Pb={"ft-card":pt};U(Pb);_n();Te();qa();var hr=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=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> ${Lb}</style>
3410
+ `}};pt.elementDefinitions={"ft-ripple":Z,"ft-typography":ne};pt.styles=Vg;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 _b={"ft-card":pt};U(_b);_n();Te();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=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> ${Rb}</style>
3412
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)}>
@@ -3425,7 +3425,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:i.extend("--ftds-con
3425
3425
  </div>
3426
3426
  </ft-card>
3427
3427
  </a>
3428
- `}onAuxClick(e,t,o){e.button==1&&this.onLinkClick(t,o)}onContextMenu(e,t){this.dispatchEvent(new Ii(e,t))}render(){return this.map?b`
3428
+ `}onAuxClick(e,t,o){e.button==1&&this.onLinkClick(t,o)}onContextMenu(e,t){this.dispatchEvent(new _i(e,t))}render(){return this.map?b`
3429
3429
  <ft-search-context id="${this.uniqueId}"
3430
3430
  part="search-context"
3431
3431
  contentLocale="${this.map.lang}"
@@ -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 _i(e,t))}importDynamicDependencies(){super.importDynamicDependencies();let e=r.registry;Promise.resolve().then(()=>(Kb(),Gb)).then(({FtSearchContext:t})=>e.define("ft-search-context",t)),Promise.resolve().then(()=>($x(),Nx)).then(({FtSearchInput:t})=>e.define("ft-search-input",t)),Promise.resolve().then(()=>(Vx(),Hx)).then(({FtSearchLoadMoreButton:t})=>e.define("ft-search-load-more-button",t)),Promise.resolve().then(()=>(tp(),qx)).then(({FtSearchResultAbstract:t})=>e.define("ft-search-result-abstract",t)),Promise.resolve().then(()=>(op(),Jx)).then(({FtSearchResultTitle:t})=>e.define("ft-search-result-title",t)),Promise.resolve().then(()=>(f0(),p0)).then(({FtSearchResults:t})=>e.define("ft-search-results",t)),Promise.resolve().then(()=>(x0(),v0)).then(({FtSearchResultsNumber:t})=>e.define("ft-search-results-number",t))}};et.elementDefinitions={"ft-card":pt};et.styles=Ab;hr([fe()],et.prototype,"map",void 0);hr([fe()],et.prototype,"searchInDocumentQuery",void 0);hr([F("ft-search-results")],et.prototype,"searchResults",void 0);hr([h({type:Boolean})],et.prototype,"hideResultTitle",void 0);hr([h({type:Boolean})],et.prototype,"hideResultBreadcrumb",void 0);hr([h({type:Boolean})],et.prototype,"hideResultAbstract",void 0);hr([h({type:Boolean})],et.prototype,"hideResultsNumber",void 0);hr([h({type:Boolean})],et.prototype,"emptyResultOnClear",void 0);hr([F('[part="search-context"]')],et.prototype,"searchContext",void 0);hr([Li()],et.prototype,"placeholder",void 0);var S0={"ft-reader-search-in-document":et};U(S0);})();
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(){Tr(()=>{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(()=>(jb(),Wb)).then(({FtSearchContext:t})=>e.define("ft-search-context",t)),Promise.resolve().then(()=>(Px(),Ix)).then(({FtSearchInput:t})=>e.define("ft-search-input",t)),Promise.resolve().then(()=>(zx(),Ux)).then(({FtSearchLoadMoreButton:t})=>e.define("ft-search-load-more-button",t)),Promise.resolve().then(()=>(tp(),Gx)).then(({FtSearchResultAbstract:t})=>e.define("ft-search-result-abstract",t)),Promise.resolve().then(()=>(op(),Yx)).then(({FtSearchResultTitle:t})=>e.define("ft-search-result-title",t)),Promise.resolve().then(()=>(u0(),d0)).then(({FtSearchResults:t})=>e.define("ft-search-results",t)),Promise.resolve().then(()=>(b0(),y0)).then(({FtSearchResultsNumber:t})=>e.define("ft-search-results-number",t))}};et.elementDefinitions={"ft-card":pt};et.styles=wb;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 v0={"ft-reader-search-in-document":et};U(v0);})();
3453
3453
  /*! Bundled license information:
3454
3454
 
3455
3455
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js: